@noy-db/hub 0.3.0-pre.8 → 0.3.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 (955) hide show
  1. package/dist/aggregate/index.js +9 -8
  2. package/dist/aggregate/index.js.map +1 -1
  3. package/dist/api-ZGS6LCOF.js +20 -0
  4. package/dist/as/index.js +11 -11
  5. package/dist/attestation/index.js +18 -18
  6. package/dist/backup-BJ57IKAO.js +242 -0
  7. package/dist/backup-BJ57IKAO.js.map +1 -0
  8. package/dist/blobs/index.js +13 -11
  9. package/dist/blobs/index.js.map +1 -1
  10. package/dist/broker/index.js +92 -0
  11. package/dist/broker/index.js.map +1 -0
  12. package/dist/bundle/index.js +25 -22
  13. package/dist/bundle/index.js.map +1 -1
  14. package/dist/by/index.js +2 -2
  15. package/dist/cargo/index.js +31 -31
  16. package/dist/chunk-2NVOWNI3.js +167 -0
  17. package/dist/chunk-2NVOWNI3.js.map +1 -0
  18. package/dist/chunk-3B5VVCNY.js +71 -0
  19. package/dist/chunk-3LQ2YKO4.js +230 -0
  20. package/dist/chunk-3QCRBHCY.js +54 -0
  21. package/dist/chunk-454JXE57.js +1697 -0
  22. package/dist/chunk-454JXE57.js.map +1 -0
  23. package/dist/chunk-4CTHCN4J.js +480 -0
  24. package/dist/chunk-4CTHCN4J.js.map +1 -0
  25. package/dist/chunk-4GPE63GU.js +111 -0
  26. package/dist/chunk-4GPE63GU.js.map +1 -0
  27. package/dist/chunk-4JBYV75E.js +150 -0
  28. package/dist/chunk-4NXKCLLQ.js +97 -0
  29. package/dist/chunk-4VNQOLML.js +29 -0
  30. package/dist/chunk-4VNQOLML.js.map +1 -0
  31. package/dist/chunk-5M5DVGV7.js +69 -0
  32. package/dist/chunk-5O3XF4DV.js +150 -0
  33. package/dist/chunk-5O3XF4DV.js.map +1 -0
  34. package/dist/chunk-5YOLBEQ6.js +30 -0
  35. package/dist/chunk-6CRIV7DE.js +129 -0
  36. package/dist/chunk-6JTIAGHD.js +621 -0
  37. package/dist/chunk-6JTIAGHD.js.map +1 -0
  38. package/dist/chunk-6QTNZJBS.js +255 -0
  39. package/dist/chunk-6T2SCQRU.js +86 -0
  40. package/dist/chunk-7DSTRQIJ.js +45 -0
  41. package/dist/chunk-AUSTCW2X.js +589 -0
  42. package/dist/chunk-B3HJYUOF.js +209 -0
  43. package/dist/chunk-BDVFPG6Y.js +164 -0
  44. package/dist/chunk-BIOUI4HL.js +1554 -0
  45. package/dist/chunk-BIOUI4HL.js.map +1 -0
  46. package/dist/chunk-CAF6WOK7.js +36 -0
  47. package/dist/chunk-CDUQTA3Z.js +381 -0
  48. package/dist/chunk-CDUQTA3Z.js.map +1 -0
  49. package/dist/chunk-CIE2BASH.js +404 -0
  50. package/dist/chunk-CRI4OUV4.js +42 -0
  51. package/dist/chunk-DLG74CNB.js +91 -0
  52. package/dist/chunk-E5ZQT5KX.js +30 -0
  53. package/dist/chunk-E5ZQT5KX.js.map +1 -0
  54. package/dist/chunk-EQO2UVP4.js +247 -0
  55. package/dist/chunk-EQO2UVP4.js.map +1 -0
  56. package/dist/chunk-ERJ7FU55.js +367 -0
  57. package/dist/chunk-EVVGJDRQ.js +205 -0
  58. package/dist/chunk-EVX47VBM.js +74 -0
  59. package/dist/chunk-EVX47VBM.js.map +1 -0
  60. package/dist/chunk-EXK7QRWF.js +59 -0
  61. package/dist/chunk-EYZ6IQ6X.js +202 -0
  62. package/dist/chunk-F64IRYG3.js +45 -0
  63. package/dist/chunk-FHS2HQSH.js +823 -0
  64. package/dist/chunk-FM3G3NOY.js +206 -0
  65. package/dist/chunk-FM3G3NOY.js.map +1 -0
  66. package/dist/chunk-FUG4SFN3.js +36 -0
  67. package/dist/chunk-FUG4SFN3.js.map +1 -0
  68. package/dist/chunk-GKEWXIV5.js +80 -0
  69. package/dist/chunk-GTGPO5KW.js +59 -0
  70. package/dist/chunk-HB3RFQSC.js +95 -0
  71. package/dist/chunk-HDMEGAQE.js +957 -0
  72. package/dist/chunk-HDMEGAQE.js.map +1 -0
  73. package/dist/chunk-HDQIIUPH.js +135 -0
  74. package/dist/chunk-HDQIIUPH.js.map +1 -0
  75. package/dist/chunk-HTJQYHZP.js +344 -0
  76. package/dist/chunk-HTJQYHZP.js.map +1 -0
  77. package/dist/chunk-I6GALP6E.js +99 -0
  78. package/dist/chunk-IGJCYUT5.js +99 -0
  79. package/dist/chunk-IGJCYUT5.js.map +1 -0
  80. package/dist/chunk-IL6POWCW.js +130 -0
  81. package/dist/chunk-IU6SNYX6.js +117 -0
  82. package/dist/chunk-J2ZX2XUV.js +778 -0
  83. package/dist/chunk-JIF24JPM.js +495 -0
  84. package/dist/chunk-JIF24JPM.js.map +1 -0
  85. package/dist/chunk-JK733I5V.js +23 -0
  86. package/dist/chunk-JK733I5V.js.map +1 -0
  87. package/dist/chunk-JKJOGPZN.js +29 -0
  88. package/dist/chunk-JNAI2HN2.js +32 -0
  89. package/dist/chunk-JNAI2HN2.js.map +1 -0
  90. package/dist/chunk-JZUV47FZ.js +41 -0
  91. package/dist/chunk-K5IMOGHB.js +30 -0
  92. package/dist/chunk-KPZS5QAQ.js +151 -0
  93. package/dist/chunk-KPZS5QAQ.js.map +1 -0
  94. package/dist/chunk-KSKBRKGJ.js +291 -0
  95. package/dist/chunk-KSKBRKGJ.js.map +1 -0
  96. package/dist/chunk-LASZKVMO.js +382 -0
  97. package/dist/chunk-LXEXBTKL.js +515 -0
  98. package/dist/chunk-LXEXBTKL.js.map +1 -0
  99. package/dist/chunk-M4CV6BRT.js +524 -0
  100. package/dist/chunk-M4CV6BRT.js.map +1 -0
  101. package/dist/chunk-MEFJPTZ4.js +371 -0
  102. package/dist/chunk-MEFJPTZ4.js.map +1 -0
  103. package/dist/chunk-MV43JSJF.js +265 -0
  104. package/dist/chunk-MV43JSJF.js.map +1 -0
  105. package/dist/chunk-NJ4EOKMB.js +392 -0
  106. package/dist/chunk-NJ4EOKMB.js.map +1 -0
  107. package/dist/chunk-NR5LT5RY.js +135 -0
  108. package/dist/chunk-NWSGI5C7.js +261 -0
  109. package/dist/chunk-NWSGI5C7.js.map +1 -0
  110. package/dist/chunk-OSDB5WW3.js +739 -0
  111. package/dist/chunk-OSDB5WW3.js.map +1 -0
  112. package/dist/chunk-PN2XMATY.js +37 -0
  113. package/dist/chunk-PN2XMATY.js.map +1 -0
  114. package/dist/chunk-Q5VNKNE5.js +70 -0
  115. package/dist/chunk-QLWMEXCT.js +21 -0
  116. package/dist/chunk-QRB7NAOJ.js +123 -0
  117. package/dist/chunk-R4ROFEYC.js +74 -0
  118. package/dist/chunk-RCVJZMFE.js +164 -0
  119. package/dist/chunk-RCVJZMFE.js.map +1 -0
  120. package/dist/chunk-RIX4V2TB.js +367 -0
  121. package/dist/chunk-RYCTDFUX.js +40 -0
  122. package/dist/chunk-RZ5SVOYR.js +155 -0
  123. package/dist/chunk-SLFHQTTW.js +99 -0
  124. package/dist/chunk-SNZ6URZZ.js +2782 -0
  125. package/dist/chunk-SNZ6URZZ.js.map +1 -0
  126. package/dist/chunk-T2FFWNPK.js +75 -0
  127. package/dist/chunk-T2FFWNPK.js.map +1 -0
  128. package/dist/chunk-UNFPPVNI.js +23 -0
  129. package/dist/chunk-VFUPHI2Z.js +333 -0
  130. package/dist/chunk-VFUPHI2Z.js.map +1 -0
  131. package/dist/chunk-VLFCJYTL.js +235 -0
  132. package/dist/chunk-VN3DBQAU.js +124 -0
  133. package/dist/chunk-VYYM3MEN.js +98 -0
  134. package/dist/chunk-VYYM3MEN.js.map +1 -0
  135. package/dist/chunk-VZRODIM3.js +49 -0
  136. package/dist/chunk-W22IKJE2.js +94 -0
  137. package/dist/chunk-X3YYQWOQ.js +155 -0
  138. package/dist/chunk-X7QBD67R.js +14405 -0
  139. package/dist/chunk-X7QBD67R.js.map +1 -0
  140. package/dist/chunk-XDYREZWE.js +1128 -0
  141. package/dist/chunk-XDYREZWE.js.map +1 -0
  142. package/dist/chunk-XWZVFISC.js +720 -0
  143. package/dist/chunk-XWZVFISC.js.map +1 -0
  144. package/dist/chunk-YFXZEAYK.js +85 -0
  145. package/dist/chunk-ZAJAVEXY.js +50 -0
  146. package/dist/chunk-ZICD77GM.js +34 -0
  147. package/dist/chunk-ZJ2AK4V7.js +38 -0
  148. package/dist/chunk-ZJ2AK4V7.js.map +1 -0
  149. package/dist/chunk-ZUODRVHY.js +14 -0
  150. package/dist/classified/index.js +5 -3
  151. package/dist/classified-marker-CZKA6ITE.js +28 -0
  152. package/dist/classified-marker-CZKA6ITE.js.map +1 -0
  153. package/dist/collection-facade-TLWIPI76.js +44 -0
  154. package/dist/computed-ZIQTYTDI.js +11 -0
  155. package/dist/consent/index.js +9 -9
  156. package/dist/crdt/index.js +1 -1
  157. package/dist/dead-filter-ESOBZZP5.js +28 -0
  158. package/dist/delegation-W7ZV2322.js +25 -0
  159. package/dist/derivations/index.js +12 -11
  160. package/dist/derive-H2BJTLUI.js +21 -0
  161. package/dist/enclave-AP3I5W7O.js +141 -0
  162. package/dist/executor-KGWTNEQD.js +9 -0
  163. package/dist/executor-OVEXR6RT.js +9 -0
  164. package/dist/executor-UNEH5ZYH.js +25 -0
  165. package/dist/export-accessible-PCMXSUZS.js +23 -0
  166. package/dist/extract-partition-SWHFSYJO.js +38 -0
  167. package/dist/fanout-sidecar-A765THMX.js +74 -0
  168. package/dist/find-N6345CNT.js +11 -0
  169. package/dist/forget/index.js +10 -10
  170. package/dist/forget/index.js.map +1 -1
  171. package/dist/guards/index.js +6 -6
  172. package/dist/history/index.js +14 -11
  173. package/dist/history/index.js.map +1 -1
  174. package/dist/i18n/index.js +50 -37
  175. package/dist/i18n/index.js.map +1 -1
  176. package/dist/index.d.ts +307 -1459
  177. package/dist/index.js +595 -198
  178. package/dist/index.js.map +1 -1
  179. package/dist/indexing/index.js +7 -7
  180. package/dist/indexing/index.js.map +1 -1
  181. package/dist/issue-5OKB6I2R.js +19 -0
  182. package/dist/kernel/best-effort-revert.d.ts +52 -0
  183. package/dist/kernel/cache/index.d.ts +10 -0
  184. package/dist/kernel/cache/lru.d.ts +97 -0
  185. package/dist/kernel/cache/policy.d.ts +32 -0
  186. package/dist/kernel/collection-config.d.ts +809 -0
  187. package/dist/kernel/collection.d.ts +1522 -0
  188. package/dist/kernel/constants.d.ts +18 -0
  189. package/dist/kernel/debug.d.ts +25 -0
  190. package/dist/kernel/enclave/broker/proof.d.ts +154 -0
  191. package/dist/kernel/enclave/classify/bidx.d.ts +77 -0
  192. package/dist/kernel/enclave/classify/compare.d.ts +10 -0
  193. package/dist/kernel/enclave/classify/digest.d.ts +8 -0
  194. package/dist/kernel/enclave/classify/find.d.ts +36 -0
  195. package/dist/kernel/enclave/classify/kofn.d.ts +7 -0
  196. package/dist/kernel/enclave/classify/normalize.d.ts +7 -0
  197. package/dist/kernel/enclave/classify/reveal.d.ts +10 -0
  198. package/dist/kernel/enclave/classify/vdig.d.ts +39 -0
  199. package/dist/kernel/enclave/classify/verify.d.ts +36 -0
  200. package/dist/kernel/enclave/classify/write.d.ts +8 -0
  201. package/dist/kernel/enclave/crypto.d.ts +263 -0
  202. package/dist/kernel/enclave/index.d.ts +79 -0
  203. package/dist/kernel/enclave/record-keys/deterministic.d.ts +55 -0
  204. package/dist/kernel/enclave/record-keys/envelope-body.d.ts +79 -0
  205. package/dist/kernel/enclave/record-keys/lifecycle.d.ts +107 -0
  206. package/dist/kernel/enclave/record-keys/record-codec.d.ts +328 -0
  207. package/dist/kernel/enclave/record-keys/sealed-slot.d.ts +14 -0
  208. package/dist/kernel/enclave/record-keys/sealed-slots.d.ts +123 -0
  209. package/dist/kernel/enclave/record-keys/sealing.d.ts +70 -0
  210. package/dist/kernel/enclave/record-keys/tombstone.d.ts +57 -0
  211. package/dist/kernel/env-check.d.ts +1 -0
  212. package/dist/kernel/errors.d.ts +1922 -0
  213. package/dist/kernel/events.d.ts +11 -0
  214. package/dist/kernel/lazy-count.d.ts +13 -0
  215. package/dist/kernel/memory-store.d.ts +17 -0
  216. package/dist/kernel/mutation.d.ts +14 -0
  217. package/dist/kernel/noydb.d.ts +826 -0
  218. package/dist/kernel/paths.d.ts +25 -0
  219. package/dist/kernel/query/builder.d.ts +520 -0
  220. package/dist/kernel/query/index.d.ts +31 -0
  221. package/dist/kernel/query/join.d.ts +205 -0
  222. package/dist/kernel/query/live.d.ts +111 -0
  223. package/dist/kernel/query/predicate.d.ts +139 -0
  224. package/dist/kernel/query/scan-builder.d.ts +334 -0
  225. package/dist/kernel/refs.d.ts +205 -0
  226. package/dist/kernel/schema.d.ts +134 -0
  227. package/dist/kernel/sync-policy.d.ts +188 -0
  228. package/dist/kernel/tier-visibility.d.ts +54 -0
  229. package/dist/kernel/types.d.ts +3239 -0
  230. package/dist/kernel/util/discriminant.d.ts +58 -0
  231. package/dist/kernel/util/index.d.ts +14 -0
  232. package/dist/kernel/util/sanitize-filename.d.ts +75 -0
  233. package/dist/kernel/validation.d.ts +130 -0
  234. package/dist/kernel/vault.d.ts +1740 -0
  235. package/dist/kernel/via/compose.d.ts +144 -0
  236. package/dist/kernel/via/dispatch.d.ts +195 -0
  237. package/dist/kernel/via/graph-wiring.d.ts +145 -0
  238. package/dist/kernel/via/graph.d.ts +166 -0
  239. package/dist/kernel/via/index.d.ts +200 -0
  240. package/dist/kernel/via/pipeline.d.ts +266 -0
  241. package/dist/kernel/via/reconcile.d.ts +153 -0
  242. package/dist/kernel/via/taint-binding.d.ts +66 -0
  243. package/dist/kernel/write-queue.d.ts +46 -0
  244. package/dist/ledger-GFBKVPV4.js +42 -0
  245. package/dist/legacy/bundle.d.ts +30 -0
  246. package/dist/legacy/kernel.d.ts +33 -0
  247. package/dist/liberate-3VDOT4KO.js +24 -0
  248. package/dist/link-set-Z7Q2ASFX.js +31 -0
  249. package/dist/materialized-views/index.js +19 -15
  250. package/dist/noydb-ZCJOYBDI.js +68 -0
  251. package/dist/on/index.js +9 -9
  252. package/dist/overlay-views/index.js +4 -4
  253. package/dist/periods/index.js +12 -12
  254. package/dist/pod/index.js +11 -11
  255. package/dist/policy-Z3RUAIY2.js +41 -0
  256. package/dist/port/as/index.d.ts +26 -0
  257. package/dist/port/at/index.d.ts +18 -0
  258. package/dist/port/by/default-provider.d.ts +9 -0
  259. package/dist/port/by/index.d.ts +17 -0
  260. package/dist/port/by/types.d.ts +86 -0
  261. package/dist/port/in/index.d.ts +21 -0
  262. package/dist/port/on/index.d.ts +27 -0
  263. package/dist/port/to/index.d.ts +19 -0
  264. package/dist/port/ui/index.d.ts +21 -0
  265. package/dist/port/with/blob-strategy.d.ts +98 -0
  266. package/dist/port/with/broker-strategy.d.ts +84 -0
  267. package/dist/port/with/capabilities.d.ts +31 -0
  268. package/dist/port/with/classified-marker.d.ts +9 -0
  269. package/dist/port/with/classified-strategy.d.ts +62 -0
  270. package/dist/port/with/computed-strategy.d.ts +19 -0
  271. package/dist/port/with/i18n-strategy.d.ts +175 -0
  272. package/dist/port/with/index.d.ts +18 -0
  273. package/dist/port/with/lazy-strategy.d.ts +48 -0
  274. package/dist/port/with/lookup-strategy.d.ts +129 -0
  275. package/dist/port/with/service-bus.d.ts +156 -0
  276. package/dist/port/with/team-strategy.d.ts +36 -0
  277. package/dist/port/with/write-hooks.d.ts +34 -0
  278. package/dist/portability/index.js +8 -8
  279. package/dist/post-register-JTH76BLY.js +60 -0
  280. package/dist/post-register-JTH76BLY.js.map +1 -0
  281. package/dist/public-envelope-B4KNWVUA.js +32 -0
  282. package/dist/purge-scope-FGNNLWHD.js +24 -0
  283. package/dist/purge-scope-FGNNLWHD.js.map +1 -0
  284. package/dist/query/index.js +9 -6
  285. package/dist/read-only-facade-CHCKSEPD.js +8 -0
  286. package/dist/register-VAHONCID.js +23 -0
  287. package/dist/registry-7MLVD3VO.js +19 -0
  288. package/dist/registry-EPKPD5SM.js +18 -0
  289. package/dist/registry-P5T7PS2U.js +9 -0
  290. package/dist/request-withdrawal-TI3A5WPS.js +31 -0
  291. package/dist/reveal-DIBHLUZX.js +38 -0
  292. package/dist/reveal-DIBHLUZX.js.map +1 -0
  293. package/dist/revoke-FDRD6GRW.js +24 -0
  294. package/dist/satellites/index.js +1 -1
  295. package/dist/sealed-record/index.js +12 -12
  296. package/dist/seed-Q6M2IZFL.js +231 -0
  297. package/dist/seed-Q6M2IZFL.js.map +1 -0
  298. package/dist/session/index.js +9 -9
  299. package/dist/shadow/index.js +2 -2
  300. package/dist/signer-MUWEIUI6.js +25 -0
  301. package/dist/snapshots/index.js +10 -10
  302. package/dist/stale-OSQ7J3AA.js +29 -0
  303. package/dist/storage-MVFCGEQE.js +23 -0
  304. package/dist/store-coordination-provider-64OEZFGS.js +142 -0
  305. package/dist/sync/index.js +9 -9
  306. package/dist/team/index.js +15 -15
  307. package/dist/tiers/index.js +14 -10
  308. package/dist/to/index.js +1 -2
  309. package/dist/tx/index.js +3 -3
  310. package/dist/util/index.js +1 -1
  311. package/dist/verify-ZASTRNPR.js +140 -0
  312. package/dist/verify-ZASTRNPR.js.map +1 -0
  313. package/dist/via/blob/active.d.ts +34 -0
  314. package/dist/via/blob/binding.d.ts +86 -0
  315. package/dist/via/blob/index.d.ts +34 -0
  316. package/dist/via/classified/active.d.ts +3 -0
  317. package/dist/via/classified/binding.d.ts +83 -0
  318. package/dist/via/classified/config-drift.d.ts +34 -0
  319. package/dist/via/classified/descriptor.d.ts +66 -0
  320. package/dist/via/classified/errors.d.ts +19 -0
  321. package/dist/via/classified/guards.d.ts +23 -0
  322. package/dist/via/classified/index.d.ts +11 -0
  323. package/dist/via/classified/presets.d.ts +65 -0
  324. package/dist/via/classified/resolve.d.ts +9 -0
  325. package/dist/via/classified/strategy.d.ts +11 -0
  326. package/dist/via/classified/validators.d.ts +3 -0
  327. package/dist/via/classified/write.d.ts +4 -0
  328. package/dist/via/computed/binding.d.ts +34 -0
  329. package/dist/via/computed/descriptor.d.ts +35 -0
  330. package/dist/via/i18n/active.d.ts +28 -0
  331. package/dist/via/i18n/binding.d.ts +36 -0
  332. package/dist/via/i18n/core.d.ts +267 -0
  333. package/dist/via/i18n/densify.d.ts +24 -0
  334. package/dist/via/i18n/dictionary.d.ts +200 -0
  335. package/dist/via/i18n/index.d.ts +21 -0
  336. package/dist/via/i18n/policy.d.ts +44 -0
  337. package/dist/via/i18n/script.d.ts +26 -0
  338. package/dist/via/i18n/strategy.d.ts +13 -0
  339. package/dist/via/lookup/active.d.ts +19 -0
  340. package/dist/via/lookup/binding.d.ts +99 -0
  341. package/dist/via/lookup/descriptor.d.ts +123 -0
  342. package/dist/via/lookup/handle.d.ts +220 -0
  343. package/dist/via/lookup/index.d.ts +17 -0
  344. package/dist/via/lookup/registry.d.ts +228 -0
  345. package/dist/via/lookup/snapshot.d.ts +67 -0
  346. package/dist/via/money/arith.d.ts +68 -0
  347. package/dist/via/money/binding.d.ts +21 -0
  348. package/dist/via/money/branded.d.ts +61 -0
  349. package/dist/via/money/descriptor.d.ts +73 -0
  350. package/dist/via/money/fixed-point.d.ts +51 -0
  351. package/dist/via/money/index.d.ts +15 -0
  352. package/dist/via/money/iso4217.d.ts +6 -0
  353. package/dist/via/money/money-reducer.d.ts +33 -0
  354. package/dist/via/money/normalize.d.ts +105 -0
  355. package/dist/via/money/paths.d.ts +61 -0
  356. package/dist/via/money/where.d.ts +127 -0
  357. package/dist/walk-SVNDIZ62.js +241 -0
  358. package/dist/with/index.js +11 -11
  359. package/dist/with-audit/attestation/active.d.ts +10 -0
  360. package/dist/with-audit/attestation/index.d.ts +16 -0
  361. package/dist/with-audit/attestation/issue.d.ts +29 -0
  362. package/dist/with-audit/attestation/revoke.d.ts +15 -0
  363. package/dist/with-audit/attestation/signer.d.ts +33 -0
  364. package/dist/with-audit/attestation/strategy.d.ts +44 -0
  365. package/dist/with-audit/attestation/vault-facade.d.ts +62 -0
  366. package/dist/with-audit/consent/active.d.ts +14 -0
  367. package/dist/with-audit/consent/consent.d.ts +114 -0
  368. package/dist/with-audit/consent/index.d.ts +14 -0
  369. package/dist/with-audit/consent/strategy.d.ts +36 -0
  370. package/dist/with-audit/forget/active.d.ts +31 -0
  371. package/dist/with-audit/forget/index.d.ts +28 -0
  372. package/dist/with-audit/forget/purge-scope.d.ts +54 -0
  373. package/dist/with-audit/forget/strategy.d.ts +199 -0
  374. package/dist/with-audit/forget/subject-index.d.ts +83 -0
  375. package/dist/with-audit/guards/executor.d.ts +26 -0
  376. package/dist/with-audit/guards/immutable-guard.d.ts +63 -0
  377. package/dist/with-audit/guards/index.d.ts +10 -0
  378. package/dist/with-audit/guards/read-only-facade.d.ts +31 -0
  379. package/dist/with-audit/guards/registry.d.ts +83 -0
  380. package/dist/with-audit/guards/transition-guard.d.ts +82 -0
  381. package/dist/with-audit/guards/types.d.ts +134 -0
  382. package/dist/with-audit/guards/with-guard.d.ts +15 -0
  383. package/dist/with-audit/periods/active.d.ts +11 -0
  384. package/dist/with-audit/periods/index.d.ts +18 -0
  385. package/dist/with-audit/periods/periods.d.ts +417 -0
  386. package/dist/with-audit/periods/strategy.d.ts +32 -0
  387. package/dist/with-audit/periods/vault-facade.d.ts +95 -0
  388. package/dist/with-audit/portability/active.d.ts +11 -0
  389. package/dist/with-audit/portability/export-accessible.d.ts +46 -0
  390. package/dist/with-audit/portability/index.d.ts +18 -0
  391. package/dist/with-audit/portability/request-withdrawal.d.ts +85 -0
  392. package/dist/with-audit/portability/strategy.d.ts +31 -0
  393. package/dist/with-audit/portability/withdraw-accessible.d.ts +82 -0
  394. package/dist/with-audit/sealed-record/active.d.ts +9 -0
  395. package/dist/with-audit/sealed-record/index.d.ts +55 -0
  396. package/dist/with-audit/sealed-record/strategy.d.ts +34 -0
  397. package/dist/with-audit/sealed-record/types.d.ts +27 -0
  398. package/dist/with-audit/tiers/active.d.ts +9 -0
  399. package/dist/with-audit/tiers/index.d.ts +394 -0
  400. package/dist/with-audit/tiers/strategy.d.ts +36 -0
  401. package/dist/with-cargo/active.d.ts +11 -0
  402. package/dist/with-cargo/adopt-partition.d.ts +81 -0
  403. package/dist/with-cargo/decrypt-partition.d.ts +19 -0
  404. package/dist/with-cargo/describe-extraction.d.ts +41 -0
  405. package/dist/with-cargo/extract-partition.d.ts +155 -0
  406. package/dist/with-cargo/index.d.ts +33 -0
  407. package/dist/with-cargo/strategy.d.ts +30 -0
  408. package/dist/with-cargo/vault-diff.d.ts +144 -0
  409. package/dist/with-cargo/walk-closure.d.ts +67 -0
  410. package/dist/with-commit/crdt/active.d.ts +25 -0
  411. package/dist/with-commit/crdt/crdt.d.ts +42 -0
  412. package/dist/with-commit/crdt/index.d.ts +16 -0
  413. package/dist/with-commit/crdt/strategy.d.ts +25 -0
  414. package/dist/with-commit/history/active.d.ts +40 -0
  415. package/dist/with-commit/history/diff.d.ts +23 -0
  416. package/dist/with-commit/history/history.d.ts +73 -0
  417. package/dist/with-commit/history/index.d.ts +30 -0
  418. package/dist/with-commit/history/ledger/constants.d.ts +37 -0
  419. package/dist/with-commit/history/ledger/entry.d.ts +195 -0
  420. package/dist/with-commit/history/ledger/hash.d.ts +30 -0
  421. package/dist/with-commit/history/ledger/index.d.ts +19 -0
  422. package/dist/with-commit/history/ledger/patch.d.ts +99 -0
  423. package/dist/with-commit/history/ledger/store.d.ts +356 -0
  424. package/dist/with-commit/history/strategy.d.ts +136 -0
  425. package/dist/with-commit/history/time-machine.d.ts +202 -0
  426. package/dist/with-commit/numbering/descriptor.d.ts +27 -0
  427. package/dist/with-commit/numbering/index.d.ts +69 -0
  428. package/dist/with-commit/sequence/active.d.ts +10 -0
  429. package/dist/with-commit/sequence/index.d.ts +150 -0
  430. package/dist/with-commit/sequence/strategy.d.ts +26 -0
  431. package/dist/with-commit/tx/active.d.ts +27 -0
  432. package/dist/with-commit/tx/dry-run.d.ts +29 -0
  433. package/dist/with-commit/tx/elevated-handle.d.ts +59 -0
  434. package/dist/with-commit/tx/index.d.ts +13 -0
  435. package/dist/with-commit/tx/invariants.d.ts +68 -0
  436. package/dist/with-commit/tx/strategy.d.ts +23 -0
  437. package/dist/with-commit/tx/transaction.d.ts +212 -0
  438. package/dist/with-fork/archive/engine.d.ts +71 -0
  439. package/dist/with-fork/archive/index.d.ts +23 -0
  440. package/dist/with-fork/shadow/active.d.ts +6 -0
  441. package/dist/with-fork/shadow/index.d.ts +14 -0
  442. package/dist/with-fork/shadow/strategy.d.ts +28 -0
  443. package/dist/with-fork/shadow/vault-frame.d.ts +93 -0
  444. package/dist/with-fork/snapshots/active.d.ts +20 -0
  445. package/dist/with-fork/snapshots/engine.d.ts +36 -0
  446. package/dist/with-fork/snapshots/index.d.ts +5 -0
  447. package/dist/with-fork/snapshots/noydb-facade.d.ts +64 -0
  448. package/dist/with-fork/snapshots/policy.d.ts +23 -0
  449. package/dist/with-fork/snapshots/scheduler.d.ts +34 -0
  450. package/dist/with-fork/snapshots/strategy.d.ts +48 -0
  451. package/dist/with-formula/computed/index.d.ts +48 -0
  452. package/dist/with-formula/computed/lazy.d.ts +13 -0
  453. package/dist/with-formula/derivations/executor.d.ts +61 -0
  454. package/dist/with-formula/derivations/fanout-sidecar.d.ts +75 -0
  455. package/dist/with-formula/derivations/index.d.ts +6 -0
  456. package/dist/with-formula/derivations/registry.d.ts +67 -0
  457. package/dist/with-formula/derivations/stale.d.ts +39 -0
  458. package/dist/with-formula/derivations/strategy-hash.d.ts +1 -0
  459. package/dist/with-formula/derivations/types.d.ts +248 -0
  460. package/dist/with-formula/derivations/with-derivation.d.ts +10 -0
  461. package/dist/with-formula/derivations/with-rollup.d.ts +34 -0
  462. package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +58 -0
  463. package/dist/with-formula/materialized-views/executor.d.ts +80 -0
  464. package/dist/with-formula/materialized-views/index.d.ts +11 -0
  465. package/dist/with-formula/materialized-views/query-hash.d.ts +23 -0
  466. package/dist/with-formula/materialized-views/registry.d.ts +99 -0
  467. package/dist/with-formula/materialized-views/stale.d.ts +113 -0
  468. package/dist/with-formula/materialized-views/types.d.ts +318 -0
  469. package/dist/with-formula/materialized-views/with-materialized-view.d.ts +24 -0
  470. package/dist/with-formula/overlay-views/index.d.ts +5 -0
  471. package/dist/with-formula/overlay-views/registry.d.ts +42 -0
  472. package/dist/with-formula/overlay-views/types.d.ts +97 -0
  473. package/dist/with-formula/overlay-views/virtual-collection.d.ts +90 -0
  474. package/dist/with-formula/overlay-views/with-overlayed-view.d.ts +9 -0
  475. package/dist/with-lookup/aggregate/active.d.ts +33 -0
  476. package/dist/with-lookup/aggregate/aggregation.d.ts +166 -0
  477. package/dist/with-lookup/aggregate/canonical-key.d.ts +16 -0
  478. package/dist/with-lookup/aggregate/groupby.d.ts +280 -0
  479. package/dist/with-lookup/aggregate/index.d.ts +23 -0
  480. package/dist/with-lookup/aggregate/reducers.d.ts +257 -0
  481. package/dist/with-lookup/aggregate/strategy.d.ts +59 -0
  482. package/dist/with-lookup/embeddings/cosine.d.ts +2 -0
  483. package/dist/with-lookup/embeddings/descriptor.d.ts +8 -0
  484. package/dist/with-lookup/embeddings/index.d.ts +4 -0
  485. package/dist/with-lookup/embeddings/vec-id.d.ts +47 -0
  486. package/dist/with-lookup/embeddings/vector-set.d.ts +19 -0
  487. package/dist/with-lookup/indexing/active.d.ts +30 -0
  488. package/dist/with-lookup/indexing/collection-facade.d.ts +157 -0
  489. package/dist/with-lookup/indexing/eager-indexes.d.ts +122 -0
  490. package/dist/with-lookup/indexing/index.d.ts +27 -0
  491. package/dist/with-lookup/indexing/lazy-builder.d.ts +102 -0
  492. package/dist/with-lookup/indexing/persisted-indexes.d.ts +229 -0
  493. package/dist/with-lookup/indexing/strategy.d.ts +56 -0
  494. package/dist/with-lookup/indexing/unique-constraints.d.ts +74 -0
  495. package/dist/with-lookup/search/active.d.ts +10 -0
  496. package/dist/with-lookup/search/build-docs.d.ts +15 -0
  497. package/dist/with-lookup/search/collection-facade.d.ts +163 -0
  498. package/dist/with-lookup/search/fuse.d.ts +22 -0
  499. package/dist/with-lookup/search/index-store.d.ts +19 -0
  500. package/dist/with-lookup/search/index.d.ts +19 -0
  501. package/dist/with-lookup/search/inverted-index.d.ts +47 -0
  502. package/dist/with-lookup/search/persisted-index-store.d.ts +121 -0
  503. package/dist/with-lookup/search/retrieve-types.d.ts +29 -0
  504. package/dist/with-lookup/search/scan.d.ts +28 -0
  505. package/dist/with-lookup/search/segment.d.ts +15 -0
  506. package/dist/with-lookup/search/serialize.d.ts +4 -0
  507. package/dist/with-lookup/search/snippet.d.ts +5 -0
  508. package/dist/with-lookup/search/strategy.d.ts +41 -0
  509. package/dist/with-lookup/search/tokenize.d.ts +12 -0
  510. package/dist/with-party/auth-introspection/index.d.ts +44 -0
  511. package/dist/with-party/broker/active.d.ts +23 -0
  512. package/dist/with-party/broker/index.d.ts +28 -0
  513. package/dist/with-party/broker/seed.d.ts +77 -0
  514. package/dist/with-party/custody/active.d.ts +10 -0
  515. package/dist/with-party/custody/index.d.ts +69 -0
  516. package/dist/with-party/custody/liberate.d.ts +64 -0
  517. package/dist/with-party/custody/strategy.d.ts +48 -0
  518. package/dist/with-party/directory/index.d.ts +11 -0
  519. package/dist/with-party/directory/public-envelope/index.d.ts +12 -0
  520. package/dist/with-party/directory/public-envelope/schema.d.ts +24 -0
  521. package/dist/with-party/directory/public-envelope/storage.d.ts +59 -0
  522. package/dist/with-party/directory/public-envelope/types.d.ts +80 -0
  523. package/dist/with-party/directory/storage.d.ts +33 -0
  524. package/dist/with-party/directory/types.d.ts +43 -0
  525. package/dist/with-party/directory/user-envelope/api.d.ts +201 -0
  526. package/dist/with-party/directory/user-envelope/index.d.ts +12 -0
  527. package/dist/with-party/directory/user-envelope/storage.d.ts +54 -0
  528. package/dist/with-party/directory/visibility.d.ts +47 -0
  529. package/dist/with-party/policy/engine.d.ts +60 -0
  530. package/dist/with-party/policy/index.d.ts +15 -0
  531. package/dist/with-party/policy/noydb-facade.d.ts +39 -0
  532. package/dist/with-party/policy/presets.d.ts +38 -0
  533. package/dist/with-party/policy/storage.d.ts +31 -0
  534. package/dist/with-party/session/active.d.ts +34 -0
  535. package/dist/with-party/session/dev-unlock.d.ts +128 -0
  536. package/dist/with-party/session/index.d.ts +23 -0
  537. package/dist/with-party/session/session-policy.d.ts +92 -0
  538. package/dist/with-party/session/session.d.ts +131 -0
  539. package/dist/with-party/session/strategy.d.ts +42 -0
  540. package/dist/with-party/session/unlock-state.d.ts +47 -0
  541. package/dist/with-party/sync/index.d.ts +31 -0
  542. package/dist/with-party/tab-coordination.d.ts +73 -0
  543. package/dist/with-party/tab-write-relay.d.ts +39 -0
  544. package/dist/with-party/team/active.d.ts +13 -0
  545. package/dist/with-party/team/authenticators.d.ts +95 -0
  546. package/dist/with-party/team/deed.d.ts +97 -0
  547. package/dist/with-party/team/delegation.d.ts +88 -0
  548. package/dist/with-party/team/index.d.ts +38 -0
  549. package/dist/with-party/team/keyring.d.ts +318 -0
  550. package/dist/with-party/team/magic-link-grant.d.ts +152 -0
  551. package/dist/with-party/team/managed-passphrase.d.ts +280 -0
  552. package/dist/with-party/team/noydb-facade.d.ts +484 -0
  553. package/dist/with-party/team/peer-recover.d.ts +81 -0
  554. package/dist/with-party/team/presence.d.ts +81 -0
  555. package/dist/with-party/team/recovery.d.ts +191 -0
  556. package/dist/with-party/team/reserved-secret-collections.d.ts +41 -0
  557. package/dist/with-party/team/rotate-recover.d.ts +275 -0
  558. package/dist/with-party/team/shamir-recovery-provider.d.ts +15 -0
  559. package/dist/with-party/team/strategy.d.ts +9 -0
  560. package/dist/with-party/team/sync-active.d.ts +33 -0
  561. package/dist/with-party/team/sync-credentials.d.ts +113 -0
  562. package/dist/with-party/team/sync-strategy.d.ts +67 -0
  563. package/dist/with-party/team/sync-transaction.d.ts +39 -0
  564. package/dist/with-party/team/sync.d.ts +174 -0
  565. package/dist/with-party/team/tiers.d.ts +39 -0
  566. package/dist/with-party/team/wrapped-deks.d.ts +86 -0
  567. package/dist/with-pod/backup.d.ts +74 -0
  568. package/dist/with-pod/bundle.d.ts +414 -0
  569. package/dist/with-pod/format.d.ts +203 -0
  570. package/dist/with-pod/index.d.ts +20 -0
  571. package/dist/with-pod/pod-store.d.ts +54 -0
  572. package/dist/with-pod/ulid.d.ts +64 -0
  573. package/dist/with-shape/blobs/blob-compaction.d.ts +170 -0
  574. package/dist/with-shape/blobs/blob-intent.d.ts +153 -0
  575. package/dist/with-shape/blobs/blob-set.d.ts +1286 -0
  576. package/dist/with-shape/blobs/export-blobs.d.ts +110 -0
  577. package/dist/with-shape/blobs/import-external.d.ts +50 -0
  578. package/dist/with-shape/blobs/mime-magic.d.ts +48 -0
  579. package/dist/with-shape/blobs/object-projection.d.ts +70 -0
  580. package/dist/with-shape/introspection/describe.d.ts +237 -0
  581. package/dist/with-shape/introspection/field-meta.d.ts +61 -0
  582. package/dist/with-shape/introspection/fields.d.ts +14 -0
  583. package/dist/with-shape/introspection/index.d.ts +12 -0
  584. package/dist/with-shape/introspection/json-schema.d.ts +13 -0
  585. package/dist/with-shape/introspection/meta.d.ts +22 -0
  586. package/dist/with-shape/introspection/projection.d.ts +13 -0
  587. package/dist/with-shape/introspection/types.d.ts +154 -0
  588. package/dist/with-shape/introspection/walk.d.ts +50 -0
  589. package/dist/with-shape/links/lazy-handle.d.ts +36 -0
  590. package/dist/with-shape/links/link-set.d.ts +67 -0
  591. package/dist/with-shape/links/names.d.ts +65 -0
  592. package/dist/with-shape/links/vault-facade.d.ts +211 -0
  593. package/dist/with-shape/persisted-schemas/canonicalize.d.ts +11 -0
  594. package/dist/with-shape/persisted-schemas/derive.d.ts +29 -0
  595. package/dist/with-shape/persisted-schemas/index.d.ts +21 -0
  596. package/dist/with-shape/persisted-schemas/register.d.ts +66 -0
  597. package/dist/with-shape/persisted-schemas/storage.d.ts +61 -0
  598. package/dist/with-shape/persisted-schemas/types.d.ts +54 -0
  599. package/dist/with-shape/satellites/dead-filter.d.ts +21 -0
  600. package/dist/with-shape/satellites/declare.d.ts +60 -0
  601. package/dist/with-shape/satellites/existence.d.ts +5 -0
  602. package/dist/with-shape/satellites/fanout.d.ts +38 -0
  603. package/dist/with-shape/satellites/forget.d.ts +47 -0
  604. package/dist/with-shape/satellites/index.d.ts +3 -0
  605. package/dist/with-shape/satellites/joined.d.ts +19 -0
  606. package/dist/with-shape/satellites/marker.d.ts +10 -0
  607. package/dist/with-shape/satellites/migrate-cek.d.ts +26 -0
  608. package/dist/with-shape/satellites/post-register.d.ts +6 -0
  609. package/dist/with-shape/satellites/proxy.d.ts +37 -0
  610. package/dist/with-shape/satellites/raw-target.d.ts +14 -0
  611. package/dist/with-shape/satellites/registry.d.ts +19 -0
  612. package/dist/with-shape/satellites/types.d.ts +37 -0
  613. package/dist/with-shape/satellites/validate.d.ts +17 -0
  614. package/dist/with-shape/schema-update/client-registry.d.ts +35 -0
  615. package/dist/with-shape/schema-update/cutover.d.ts +5 -0
  616. package/dist/with-shape/schema-update/delta.d.ts +2 -0
  617. package/dist/with-shape/schema-update/dispatch.d.ts +3 -0
  618. package/dist/with-shape/schema-update/fence-controller.d.ts +62 -0
  619. package/dist/with-shape/schema-update/fence-watcher.d.ts +37 -0
  620. package/dist/with-shape/schema-update/fence.d.ts +15 -0
  621. package/dist/with-shape/schema-update/gate.d.ts +16 -0
  622. package/dist/with-shape/schema-update/index.d.ts +6 -0
  623. package/dist/with-shape/schema-update/store-coordination-provider.d.ts +29 -0
  624. package/dist/with-shape/schema-update/strategies.d.ts +12 -0
  625. package/dist/with-shape/schema-update/types.d.ts +53 -0
  626. package/dist/with-store/index.d.ts +15 -0
  627. package/dist/with-store/lazy/active.d.ts +12 -0
  628. package/dist/with-store/lazy/index.d.ts +14 -0
  629. package/dist/with-store/lazy/strategy.d.ts +9 -0
  630. package/dist/with-store/route-store.d.ts +259 -0
  631. package/dist/with-store/store-middleware.d.ts +189 -0
  632. package/dist/withdraw-accessible-WZIEVWSR.js +28 -0
  633. package/package.json +47 -55
  634. package/dist/adapter/index.d.ts +0 -5
  635. package/dist/adapter/index.js +0 -15
  636. package/dist/aggregate/index.d.ts +0 -42
  637. package/dist/api-JDWL67WL.js +0 -20
  638. package/dist/as/index.d.ts +0 -7
  639. package/dist/at/index.d.ts +0 -5
  640. package/dist/attestation/index.d.ts +0 -20
  641. package/dist/backup-WRGNTGJF.js +0 -225
  642. package/dist/backup-WRGNTGJF.js.map +0 -1
  643. package/dist/blobs/index.d.ts +0 -44
  644. package/dist/bundle/index.d.ts +0 -122
  645. package/dist/bundle-DzWtVw7w.d.ts +0 -548
  646. package/dist/by/index.d.ts +0 -1
  647. package/dist/cargo/index.d.ts +0 -9
  648. package/dist/chunk-25G7PUTA.js +0 -235
  649. package/dist/chunk-26FSVNBL.js +0 -34
  650. package/dist/chunk-2PJB6H3H.js +0 -167
  651. package/dist/chunk-2PJB6H3H.js.map +0 -1
  652. package/dist/chunk-37JZR7CY.js +0 -91
  653. package/dist/chunk-3KBK5LU4.js +0 -117
  654. package/dist/chunk-3YKBGS3I.js +0 -686
  655. package/dist/chunk-3YKBGS3I.js.map +0 -1
  656. package/dist/chunk-44DV37ZV.js +0 -75
  657. package/dist/chunk-44DV37ZV.js.map +0 -1
  658. package/dist/chunk-47C4CI7R.js +0 -108
  659. package/dist/chunk-47C4CI7R.js.map +0 -1
  660. package/dist/chunk-4VDFUBTS.js +0 -275
  661. package/dist/chunk-4VDFUBTS.js.map +0 -1
  662. package/dist/chunk-55LSDABW.js +0 -94
  663. package/dist/chunk-56JB2BGI.js +0 -13003
  664. package/dist/chunk-56JB2BGI.js.map +0 -1
  665. package/dist/chunk-5GQE5IDB.js +0 -513
  666. package/dist/chunk-5GQE5IDB.js.map +0 -1
  667. package/dist/chunk-5HRJQSKN.js +0 -202
  668. package/dist/chunk-5HZULLHE.js +0 -404
  669. package/dist/chunk-5JQMX2EH.js +0 -50
  670. package/dist/chunk-5UOPIPZC.js +0 -95
  671. package/dist/chunk-5YBUFCFF.js +0 -135
  672. package/dist/chunk-62APEMF3.js +0 -280
  673. package/dist/chunk-62APEMF3.js.map +0 -1
  674. package/dist/chunk-6P5AJ2ZS.js +0 -120
  675. package/dist/chunk-6P5AJ2ZS.js.map +0 -1
  676. package/dist/chunk-6PALJTC2.js +0 -430
  677. package/dist/chunk-6PALJTC2.js.map +0 -1
  678. package/dist/chunk-6S7T6WC4.js +0 -111
  679. package/dist/chunk-6S7T6WC4.js.map +0 -1
  680. package/dist/chunk-6Z435B6N.js +0 -1656
  681. package/dist/chunk-6Z435B6N.js.map +0 -1
  682. package/dist/chunk-723XB5NX.js +0 -86
  683. package/dist/chunk-7CZ6YXMO.js +0 -124
  684. package/dist/chunk-7KTL4RHZ.js +0 -120
  685. package/dist/chunk-7KTL4RHZ.js.map +0 -1
  686. package/dist/chunk-7TAV3BFQ.js +0 -766
  687. package/dist/chunk-7TAV3BFQ.js.map +0 -1
  688. package/dist/chunk-BASCPHNM.js +0 -380
  689. package/dist/chunk-BASCPHNM.js.map +0 -1
  690. package/dist/chunk-BGIZAFY7.js +0 -1
  691. package/dist/chunk-BJ2XF2RC.js +0 -823
  692. package/dist/chunk-BM6E4MUT.js +0 -881
  693. package/dist/chunk-BM6E4MUT.js.map +0 -1
  694. package/dist/chunk-BTFTHF6Q.js +0 -42
  695. package/dist/chunk-C4NOLA5X.js +0 -132
  696. package/dist/chunk-C4NOLA5X.js.map +0 -1
  697. package/dist/chunk-CHK5VVMI.js +0 -155
  698. package/dist/chunk-DCVVCJVB.js +0 -45
  699. package/dist/chunk-EU7HDMT3.js +0 -54
  700. package/dist/chunk-F3EKFGUS.js +0 -99
  701. package/dist/chunk-FCOZ7DEC.js +0 -355
  702. package/dist/chunk-FCOZ7DEC.js.map +0 -1
  703. package/dist/chunk-FWART3VA.js +0 -205
  704. package/dist/chunk-FZK3JJJK.js +0 -150
  705. package/dist/chunk-GDOOG5YQ.js +0 -382
  706. package/dist/chunk-GLVXQU3E.js +0 -155
  707. package/dist/chunk-HU55NPHZ.js +0 -80
  708. package/dist/chunk-I6JJ6VJS.js +0 -97
  709. package/dist/chunk-I6URUNTD.js +0 -59
  710. package/dist/chunk-IARAK3PK.js +0 -14
  711. package/dist/chunk-II6DLDZM.js +0 -30
  712. package/dist/chunk-J5YUA6JB.js +0 -23
  713. package/dist/chunk-J7OH6R4K.js +0 -49
  714. package/dist/chunk-K2WCO3NX.js +0 -1
  715. package/dist/chunk-L6Q5NA22.js +0 -40
  716. package/dist/chunk-LFGJG4XZ.js +0 -30
  717. package/dist/chunk-M3OYTM5Z.js +0 -85
  718. package/dist/chunk-MOQ5M46U.js +0 -209
  719. package/dist/chunk-NTPWQH4S.js +0 -589
  720. package/dist/chunk-OJ64XMPJ.js +0 -1434
  721. package/dist/chunk-OJ64XMPJ.js.map +0 -1
  722. package/dist/chunk-OWGAXPRE.js +0 -129
  723. package/dist/chunk-P2PEPSPK.js +0 -230
  724. package/dist/chunk-P6TZ3IVN.js +0 -453
  725. package/dist/chunk-P6TZ3IVN.js.map +0 -1
  726. package/dist/chunk-PAJCRV7O.js +0 -123
  727. package/dist/chunk-PMMV5SQC.js +0 -416
  728. package/dist/chunk-PMMV5SQC.js.map +0 -1
  729. package/dist/chunk-PPPZIBKY.js +0 -261
  730. package/dist/chunk-PPPZIBKY.js.map +0 -1
  731. package/dist/chunk-PVC2FBCQ.js +0 -45
  732. package/dist/chunk-PYIUDUGS.js +0 -36
  733. package/dist/chunk-QABECTNN.js +0 -255
  734. package/dist/chunk-QYMMMKOO.js +0 -164
  735. package/dist/chunk-R4IVPJHN.js +0 -130
  736. package/dist/chunk-REWTMYSF.js +0 -32
  737. package/dist/chunk-REWTMYSF.js.map +0 -1
  738. package/dist/chunk-RNYDHIQL.js +0 -367
  739. package/dist/chunk-RUIMKQTA.js +0 -23
  740. package/dist/chunk-RUIMKQTA.js.map +0 -1
  741. package/dist/chunk-TCGVRKOS.js +0 -367
  742. package/dist/chunk-TIAYXOEI.js +0 -99
  743. package/dist/chunk-TQ3REHVF.js +0 -95
  744. package/dist/chunk-TQ3REHVF.js.map +0 -1
  745. package/dist/chunk-TUL5YQWF.js +0 -777
  746. package/dist/chunk-U7LV2DUN.js +0 -74
  747. package/dist/chunk-UB3XHGFG.js +0 -181
  748. package/dist/chunk-UB3XHGFG.js.map +0 -1
  749. package/dist/chunk-UMH35AQV.js +0 -70
  750. package/dist/chunk-UWZ7O4NR.js +0 -29
  751. package/dist/chunk-V76PHWLE.js +0 -41
  752. package/dist/chunk-VFQOE76I.js +0 -69
  753. package/dist/chunk-VIWOGJ2O.js +0 -71
  754. package/dist/chunk-VK6OC22R.js +0 -37
  755. package/dist/chunk-VK6OC22R.js.map +0 -1
  756. package/dist/chunk-VVLOWY74.js +0 -150
  757. package/dist/chunk-VVLOWY74.js.map +0 -1
  758. package/dist/chunk-W3JABOVB.js +0 -53
  759. package/dist/chunk-W3JABOVB.js.map +0 -1
  760. package/dist/chunk-WPNP3NF5.js +0 -1221
  761. package/dist/chunk-WPNP3NF5.js.map +0 -1
  762. package/dist/chunk-X5QZAJDB.js +0 -59
  763. package/dist/chunk-X6VNIRHS.js +0 -239
  764. package/dist/chunk-X6VNIRHS.js.map +0 -1
  765. package/dist/chunk-XBPUVQDO.js +0 -664
  766. package/dist/chunk-XBPUVQDO.js.map +0 -1
  767. package/dist/chunk-XW5LZYV4.js +0 -21
  768. package/dist/chunk-YTCCC6NG.js +0 -320
  769. package/dist/chunk-YTCCC6NG.js.map +0 -1
  770. package/dist/classified/index.d.ts +0 -17
  771. package/dist/collection-facade-EJVIN2BY.js +0 -39
  772. package/dist/computed-6FOFXQPE.js +0 -11
  773. package/dist/config-drift-RFEVGBKR.js +0 -24
  774. package/dist/config-drift-RFEVGBKR.js.map +0 -1
  775. package/dist/consent/index.d.ts +0 -23
  776. package/dist/crdt/index.d.ts +0 -34
  777. package/dist/dead-filter-RHMNYOXP.js +0 -28
  778. package/dist/decrypt-partition-IHtxEnTi.d.ts +0 -21
  779. package/dist/delegation-IHXOASHV.js +0 -25
  780. package/dist/derivations/index.d.ts +0 -70
  781. package/dist/derive-CD3ZVIXK.js +0 -21
  782. package/dist/describe/index.d.ts +0 -1
  783. package/dist/describe/index.js +0 -1
  784. package/dist/describe-C6iHNlqJ.d.ts +0 -162
  785. package/dist/dev-unlock-wgQ7Ci5I.d.ts +0 -263
  786. package/dist/discriminant-BN9REW3o.d.ts +0 -60
  787. package/dist/enclave-KGEUW2GL.js +0 -123
  788. package/dist/executor-EUPYHCLU.js +0 -9
  789. package/dist/executor-KZ4B3PRT.js +0 -9
  790. package/dist/executor-MHUM2VZK.js +0 -21
  791. package/dist/export-accessible-Z3NSZZHN.js +0 -23
  792. package/dist/extract-partition-VSKT35JG.js +0 -36
  793. package/dist/fanout-sidecar-NBDKKCHT.js +0 -74
  794. package/dist/find-OH4BEULF.js +0 -11
  795. package/dist/forget/index.d.ts +0 -36
  796. package/dist/guards/index.d.ts +0 -35
  797. package/dist/hash-CwHnoKyW.d.ts +0 -72
  798. package/dist/history/index.d.ts +0 -61
  799. package/dist/i18n/index.d.ts +0 -37
  800. package/dist/in/index.d.ts +0 -5
  801. package/dist/index-B9QdHytu.d.ts +0 -123
  802. package/dist/index-CTvUp94-.d.ts +0 -123
  803. package/dist/index-Dn5GzPg_.d.ts +0 -22138
  804. package/dist/indexing/index.d.ts +0 -39
  805. package/dist/issue-AEOL6RXA.js +0 -19
  806. package/dist/kernel/index.d.ts +0 -32
  807. package/dist/kernel/index.js +0 -59
  808. package/dist/lazy/index.d.ts +0 -21
  809. package/dist/ledger-3LR3YO2W.js +0 -42
  810. package/dist/liberate-XSEPRWEA.js +0 -24
  811. package/dist/link-set-NSUIX6BR.js +0 -31
  812. package/dist/materialized-views/index.d.ts +0 -173
  813. package/dist/mime-magic-CYbFNQ4h.d.ts +0 -103
  814. package/dist/noydb-POVTIVQ6.js +0 -62
  815. package/dist/on/index.d.ts +0 -5
  816. package/dist/overlay-views/index.d.ts +0 -98
  817. package/dist/periods/index.d.ts +0 -20
  818. package/dist/pod/index.d.ts +0 -63
  819. package/dist/policy-Y7HL2KGA.js +0 -41
  820. package/dist/portability/index.d.ts +0 -20
  821. package/dist/post-register-KOFRTCDD.js +0 -55
  822. package/dist/post-register-KOFRTCDD.js.map +0 -1
  823. package/dist/public-envelope-NC7SPNMV.js +0 -32
  824. package/dist/query/index.d.ts +0 -5
  825. package/dist/read-only-facade-5ADRJVTM.js +0 -8
  826. package/dist/register-3D6R2MKN.js +0 -23
  827. package/dist/registry-AI4E46PD.js +0 -19
  828. package/dist/registry-HSNQ4NBP.js +0 -9
  829. package/dist/registry-WIX6QCV5.js +0 -17
  830. package/dist/request-withdrawal-GU4XS2R5.js +0 -31
  831. package/dist/reveal-5Y777N5Q.js +0 -38
  832. package/dist/reveal-5Y777N5Q.js.map +0 -1
  833. package/dist/revoke-ZFETCLYV.js +0 -24
  834. package/dist/revoke-ZFETCLYV.js.map +0 -1
  835. package/dist/satellites/index.d.ts +0 -5
  836. package/dist/sealed-record/index.d.ts +0 -69
  837. package/dist/session/index.d.ts +0 -44
  838. package/dist/shadow/index.d.ts +0 -15
  839. package/dist/signer-GAIMQQ2J.js +0 -25
  840. package/dist/signer-GAIMQQ2J.js.map +0 -1
  841. package/dist/snapshots/index.d.ts +0 -26
  842. package/dist/stale-77LP2EEF.js +0 -14
  843. package/dist/stale-77LP2EEF.js.map +0 -1
  844. package/dist/storage-KEXIXLGM.js +0 -23
  845. package/dist/storage-KEXIXLGM.js.map +0 -1
  846. package/dist/store-coordination-provider-NJDDZ264.js +0 -142
  847. package/dist/subject-index-O75wKshW.d.ts +0 -362
  848. package/dist/sync/index.d.ts +0 -41
  849. package/dist/team/index.d.ts +0 -155
  850. package/dist/tiers/index.d.ts +0 -5
  851. package/dist/to/index.d.ts +0 -5
  852. package/dist/transition-guard-D5RLJv8S.d.ts +0 -165
  853. package/dist/tx/index.d.ts +0 -35
  854. package/dist/ui/index.d.ts +0 -1
  855. package/dist/ulid-DRH25k3y.d.ts +0 -66
  856. package/dist/util/index.d.ts +0 -79
  857. package/dist/validators-C3lrVF-c.d.ts +0 -101
  858. package/dist/vault-diff-_LSIcOMv.d.ts +0 -147
  859. package/dist/verify-CAYGXYNO.js +0 -139
  860. package/dist/verify-CAYGXYNO.js.map +0 -1
  861. package/dist/walk-SMAE4IEI.js +0 -241
  862. package/dist/with/index.d.ts +0 -38
  863. package/dist/with-materialized-view-Xv1-9Bh0.d.ts +0 -27
  864. package/dist/with-overlayed-view-CuWhq_-C.d.ts +0 -12
  865. package/dist/with-rollup-K_iwal4b.d.ts +0 -47
  866. package/dist/withdraw-accessible-Q7BULAN5.js +0 -28
  867. package/dist/withdraw-accessible-Q7BULAN5.js.map +0 -1
  868. /package/dist/{adapter/index.js.map → api-ZGS6LCOF.js.map} +0 -0
  869. /package/dist/{chunk-VIWOGJ2O.js.map → chunk-3B5VVCNY.js.map} +0 -0
  870. /package/dist/{chunk-P2PEPSPK.js.map → chunk-3LQ2YKO4.js.map} +0 -0
  871. /package/dist/{chunk-EU7HDMT3.js.map → chunk-3QCRBHCY.js.map} +0 -0
  872. /package/dist/{chunk-FZK3JJJK.js.map → chunk-4JBYV75E.js.map} +0 -0
  873. /package/dist/{chunk-I6JJ6VJS.js.map → chunk-4NXKCLLQ.js.map} +0 -0
  874. /package/dist/{chunk-VFQOE76I.js.map → chunk-5M5DVGV7.js.map} +0 -0
  875. /package/dist/{chunk-LFGJG4XZ.js.map → chunk-5YOLBEQ6.js.map} +0 -0
  876. /package/dist/{chunk-OWGAXPRE.js.map → chunk-6CRIV7DE.js.map} +0 -0
  877. /package/dist/{chunk-QABECTNN.js.map → chunk-6QTNZJBS.js.map} +0 -0
  878. /package/dist/{chunk-723XB5NX.js.map → chunk-6T2SCQRU.js.map} +0 -0
  879. /package/dist/{chunk-PVC2FBCQ.js.map → chunk-7DSTRQIJ.js.map} +0 -0
  880. /package/dist/{chunk-NTPWQH4S.js.map → chunk-AUSTCW2X.js.map} +0 -0
  881. /package/dist/{chunk-MOQ5M46U.js.map → chunk-B3HJYUOF.js.map} +0 -0
  882. /package/dist/{chunk-QYMMMKOO.js.map → chunk-BDVFPG6Y.js.map} +0 -0
  883. /package/dist/{chunk-PYIUDUGS.js.map → chunk-CAF6WOK7.js.map} +0 -0
  884. /package/dist/{chunk-5HZULLHE.js.map → chunk-CIE2BASH.js.map} +0 -0
  885. /package/dist/{chunk-BTFTHF6Q.js.map → chunk-CRI4OUV4.js.map} +0 -0
  886. /package/dist/{chunk-37JZR7CY.js.map → chunk-DLG74CNB.js.map} +0 -0
  887. /package/dist/{chunk-TCGVRKOS.js.map → chunk-ERJ7FU55.js.map} +0 -0
  888. /package/dist/{chunk-FWART3VA.js.map → chunk-EVVGJDRQ.js.map} +0 -0
  889. /package/dist/{chunk-X5QZAJDB.js.map → chunk-EXK7QRWF.js.map} +0 -0
  890. /package/dist/{chunk-5HRJQSKN.js.map → chunk-EYZ6IQ6X.js.map} +0 -0
  891. /package/dist/{chunk-DCVVCJVB.js.map → chunk-F64IRYG3.js.map} +0 -0
  892. /package/dist/{chunk-BJ2XF2RC.js.map → chunk-FHS2HQSH.js.map} +0 -0
  893. /package/dist/{chunk-HU55NPHZ.js.map → chunk-GKEWXIV5.js.map} +0 -0
  894. /package/dist/{chunk-I6URUNTD.js.map → chunk-GTGPO5KW.js.map} +0 -0
  895. /package/dist/{chunk-5UOPIPZC.js.map → chunk-HB3RFQSC.js.map} +0 -0
  896. /package/dist/{chunk-F3EKFGUS.js.map → chunk-I6GALP6E.js.map} +0 -0
  897. /package/dist/{chunk-R4IVPJHN.js.map → chunk-IL6POWCW.js.map} +0 -0
  898. /package/dist/{chunk-3KBK5LU4.js.map → chunk-IU6SNYX6.js.map} +0 -0
  899. /package/dist/{chunk-TUL5YQWF.js.map → chunk-J2ZX2XUV.js.map} +0 -0
  900. /package/dist/{chunk-UWZ7O4NR.js.map → chunk-JKJOGPZN.js.map} +0 -0
  901. /package/dist/{chunk-V76PHWLE.js.map → chunk-JZUV47FZ.js.map} +0 -0
  902. /package/dist/{chunk-II6DLDZM.js.map → chunk-K5IMOGHB.js.map} +0 -0
  903. /package/dist/{chunk-GDOOG5YQ.js.map → chunk-LASZKVMO.js.map} +0 -0
  904. /package/dist/{chunk-5YBUFCFF.js.map → chunk-NR5LT5RY.js.map} +0 -0
  905. /package/dist/{chunk-UMH35AQV.js.map → chunk-Q5VNKNE5.js.map} +0 -0
  906. /package/dist/{chunk-XW5LZYV4.js.map → chunk-QLWMEXCT.js.map} +0 -0
  907. /package/dist/{chunk-PAJCRV7O.js.map → chunk-QRB7NAOJ.js.map} +0 -0
  908. /package/dist/{chunk-U7LV2DUN.js.map → chunk-R4ROFEYC.js.map} +0 -0
  909. /package/dist/{chunk-RNYDHIQL.js.map → chunk-RIX4V2TB.js.map} +0 -0
  910. /package/dist/{chunk-L6Q5NA22.js.map → chunk-RYCTDFUX.js.map} +0 -0
  911. /package/dist/{chunk-CHK5VVMI.js.map → chunk-RZ5SVOYR.js.map} +0 -0
  912. /package/dist/{chunk-TIAYXOEI.js.map → chunk-SLFHQTTW.js.map} +0 -0
  913. /package/dist/{chunk-J5YUA6JB.js.map → chunk-UNFPPVNI.js.map} +0 -0
  914. /package/dist/{chunk-25G7PUTA.js.map → chunk-VLFCJYTL.js.map} +0 -0
  915. /package/dist/{chunk-7CZ6YXMO.js.map → chunk-VN3DBQAU.js.map} +0 -0
  916. /package/dist/{chunk-J7OH6R4K.js.map → chunk-VZRODIM3.js.map} +0 -0
  917. /package/dist/{chunk-55LSDABW.js.map → chunk-W22IKJE2.js.map} +0 -0
  918. /package/dist/{chunk-GLVXQU3E.js.map → chunk-X3YYQWOQ.js.map} +0 -0
  919. /package/dist/{chunk-M3OYTM5Z.js.map → chunk-YFXZEAYK.js.map} +0 -0
  920. /package/dist/{chunk-5JQMX2EH.js.map → chunk-ZAJAVEXY.js.map} +0 -0
  921. /package/dist/{chunk-26FSVNBL.js.map → chunk-ZICD77GM.js.map} +0 -0
  922. /package/dist/{chunk-IARAK3PK.js.map → chunk-ZUODRVHY.js.map} +0 -0
  923. /package/dist/{api-JDWL67WL.js.map → collection-facade-TLWIPI76.js.map} +0 -0
  924. /package/dist/{chunk-BGIZAFY7.js.map → computed-ZIQTYTDI.js.map} +0 -0
  925. /package/dist/{dead-filter-RHMNYOXP.js.map → dead-filter-ESOBZZP5.js.map} +0 -0
  926. /package/dist/{chunk-K2WCO3NX.js.map → delegation-W7ZV2322.js.map} +0 -0
  927. /package/dist/{collection-facade-EJVIN2BY.js.map → derive-H2BJTLUI.js.map} +0 -0
  928. /package/dist/{computed-6FOFXQPE.js.map → enclave-AP3I5W7O.js.map} +0 -0
  929. /package/dist/{delegation-IHXOASHV.js.map → executor-KGWTNEQD.js.map} +0 -0
  930. /package/dist/{derive-CD3ZVIXK.js.map → executor-OVEXR6RT.js.map} +0 -0
  931. /package/dist/{describe/index.js.map → executor-UNEH5ZYH.js.map} +0 -0
  932. /package/dist/{enclave-KGEUW2GL.js.map → export-accessible-PCMXSUZS.js.map} +0 -0
  933. /package/dist/{executor-EUPYHCLU.js.map → extract-partition-SWHFSYJO.js.map} +0 -0
  934. /package/dist/{fanout-sidecar-NBDKKCHT.js.map → fanout-sidecar-A765THMX.js.map} +0 -0
  935. /package/dist/{executor-KZ4B3PRT.js.map → find-N6345CNT.js.map} +0 -0
  936. /package/dist/{executor-MHUM2VZK.js.map → issue-5OKB6I2R.js.map} +0 -0
  937. /package/dist/{export-accessible-Z3NSZZHN.js.map → ledger-GFBKVPV4.js.map} +0 -0
  938. /package/dist/{extract-partition-VSKT35JG.js.map → liberate-3VDOT4KO.js.map} +0 -0
  939. /package/dist/{find-OH4BEULF.js.map → link-set-Z7Q2ASFX.js.map} +0 -0
  940. /package/dist/{issue-AEOL6RXA.js.map → noydb-ZCJOYBDI.js.map} +0 -0
  941. /package/dist/{kernel/index.js.map → policy-Z3RUAIY2.js.map} +0 -0
  942. /package/dist/{ledger-3LR3YO2W.js.map → public-envelope-B4KNWVUA.js.map} +0 -0
  943. /package/dist/{liberate-XSEPRWEA.js.map → read-only-facade-CHCKSEPD.js.map} +0 -0
  944. /package/dist/{link-set-NSUIX6BR.js.map → register-VAHONCID.js.map} +0 -0
  945. /package/dist/{noydb-POVTIVQ6.js.map → registry-7MLVD3VO.js.map} +0 -0
  946. /package/dist/{policy-Y7HL2KGA.js.map → registry-EPKPD5SM.js.map} +0 -0
  947. /package/dist/{public-envelope-NC7SPNMV.js.map → registry-P5T7PS2U.js.map} +0 -0
  948. /package/dist/{read-only-facade-5ADRJVTM.js.map → request-withdrawal-TI3A5WPS.js.map} +0 -0
  949. /package/dist/{register-3D6R2MKN.js.map → revoke-FDRD6GRW.js.map} +0 -0
  950. /package/dist/{registry-AI4E46PD.js.map → signer-MUWEIUI6.js.map} +0 -0
  951. /package/dist/{registry-HSNQ4NBP.js.map → stale-OSQ7J3AA.js.map} +0 -0
  952. /package/dist/{registry-WIX6QCV5.js.map → storage-MVFCGEQE.js.map} +0 -0
  953. /package/dist/{store-coordination-provider-NJDDZ264.js.map → store-coordination-provider-64OEZFGS.js.map} +0 -0
  954. /package/dist/{walk-SMAE4IEI.js.map → walk-SVNDIZ62.js.map} +0 -0
  955. /package/dist/{request-withdrawal-GU4XS2R5.js.map → withdraw-accessible-WZIEVWSR.js.map} +0 -0
@@ -0,0 +1,1922 @@
1
+ /**
2
+ * All NOYDB error classes — a single import surface for `catch` blocks and
3
+ * `instanceof` checks.
4
+ *
5
+ * ## Class hierarchy
6
+ *
7
+ * ```
8
+ * Error
9
+ * └─ NoydbError (code: string)
10
+ * ├─ Crypto errors
11
+ * │ ├─ DecryptionError — AES-GCM tag failure
12
+ * │ ├─ TamperedError — ciphertext modified after write
13
+ * │ └─ InvalidKeyError — wrong passphrase / corrupt keyring
14
+ * ├─ Access errors
15
+ * │ ├─ NoAccessError — no DEK for this collection
16
+ * │ ├─ ReadOnlyError — ro permission, write attempted
17
+ * │ ├─ PermissionDeniedError — role too low for operation
18
+ * │ ├─ PrivilegeEscalationError — grant wider than grantor holds
19
+ * │ └─ StoreCapabilityError — optional store method missing
20
+ * ├─ Sync errors
21
+ * │ ├─ ConflictError — optimistic-lock version mismatch
22
+ * │ ├─ PodVersionConflictError — bundle push rejected by remote
23
+ * │ └─ NetworkError — push/pull network failure
24
+ * ├─ Data errors
25
+ * │ ├─ NotFoundError — get(id) on missing record
26
+ * │ ├─ ValidationError — application-level guard failed
27
+ * │ └─ SchemaValidationError — Standard Schema v1 rejection
28
+ * ├─ Query errors
29
+ * │ ├─ JoinTooLargeError — join row ceiling exceeded
30
+ * │ ├─ CrossJoinTooLargeError — cross-join row ceiling exceeded
31
+ * │ ├─ CrossJoinSourceUnknownError — target collection not in vault
32
+ * │ ├─ DanglingReferenceError — strict ref() points at nothing
33
+ * │ ├─ GroupCardinalityError — groupBy bucket cap exceeded
34
+ * │ ├─ IndexRequiredError — lazy-mode query touches unindexed field
35
+ * │ ├─ IndexWriteFailureError — index side-car put/delete failed post-main
36
+ * │ ├─ UniqueConstraintError — duplicate value on unique index
37
+ * │ ├─ UnsupportedIndexOptionError — unique+lazy or unique+crdt at registration
38
+ * │ └─ FieldNotQueryableError — field's Via posture is queryable: 'none'
39
+ * ├─ i18n / Dictionary errors
40
+ * │ ├─ ReservedCollectionNameError
41
+ * │ ├─ DictKeyMissingError
42
+ * │ ├─ DictKeyInUseError
43
+ * │ ├─ RestrictRefUnresolvableError — restrict edge's compare-key unresolvable (#654)
44
+ * │ ├─ MissingTranslationError
45
+ * │ ├─ LocaleNotSpecifiedError
46
+ * │ ├─ ScriptViolationError
47
+ * │ ├─ StaticDictReadonlyError
48
+ * │ ├─ UnknownDictCodeError
49
+ * │ ├─ UnknownLookupKeyError
50
+ * │ └─ TranslatorNotConfiguredError
51
+ * ├─ Backup errors
52
+ * │ ├─ BackupLedgerError — hash-chain verification failed
53
+ * │ └─ BackupCorruptedError — envelope hash mismatch in dump
54
+ * ├─ Bundle errors
55
+ * │ └─ BundleIntegrityError — .noydb body sha256 mismatch
56
+ * ├─ Session errors
57
+ * │ ├─ SessionExpiredError
58
+ * │ ├─ SessionNotFoundError
59
+ * │ └─ SessionPolicyError
60
+ * ├─ Snapshot errors
61
+ * │ └─ SnapshotNotFoundError — snapshot key absent from snapshot store
62
+ * └─ Computed field errors
63
+ * └─ ComputedFieldError — computed function threw during a write
64
+ * └─ Erasure errors
65
+ * └─ ForgetStrategyNotConfiguredError — vault.forget() with no withForgetCascade
66
+ * ├─ Sealed-record errors (record-scoped CEK sealing)
67
+ * │ ├─ SealedRecordExpiredError — sealed CEK binding past expiresAt
68
+ * │ ├─ SealedRecordMismatchError — CEK sealed for record A used on record B
69
+ * │ └─ RecordCekNotFoundError — record missing or no per-record `_cek`
70
+ * └─ Embedding errors
71
+ * ├─ EmbeddingDimMismatchError — stored vector dim ≠ descriptor dim
72
+ * └─ EmbeddingModelMismatchError — stored vector model tag ≠ descriptor model
73
+ * ```
74
+ *
75
+ * ## Catching all NOYDB errors
76
+ *
77
+ * ```ts
78
+ * import { NoydbError, InvalidKeyError, ConflictError } from '@noy-db/hub'
79
+ *
80
+ * try {
81
+ * await vault.unlock(passphrase)
82
+ * } catch (e) {
83
+ * if (e instanceof InvalidKeyError) { showBadPassphraseUI(); return }
84
+ * if (e instanceof NoydbError) { logToSentry(e.code, e); return }
85
+ * throw e // unexpected — re-throw
86
+ * }
87
+ * ```
88
+ *
89
+ * @module
90
+ */
91
+ import type { GateName, GatePolicy } from './types.js';
92
+ /**
93
+ * Base class for all NOYDB errors.
94
+ *
95
+ * Every error thrown by `@noy-db/hub` extends this class, so consumers can
96
+ * catch all NOYDB errors in a single `catch (e) { if (e instanceof NoydbError) ... }`
97
+ * block. The `code` field is a machine-readable string (e.g. `'DECRYPTION_FAILED'`)
98
+ * suitable for `switch` statements and logging pipelines.
99
+ */
100
+ export declare class NoydbError extends Error {
101
+ /** Machine-readable error code. Stable across library versions. */
102
+ readonly code: string;
103
+ constructor(code: string, message: string);
104
+ }
105
+ /**
106
+ * Thrown at construction when `debugPlaintext: true` is combined with
107
+ * encryption (`encrypt` not `false`). Debug-plaintext writes records in
108
+ * cleartext laid out for native store inspection; it is meaningless and
109
+ * unsafe under encryption, so the coupling is rejected loudly rather than
110
+ * silently ignored.
111
+ */
112
+ export declare class DebugPlaintextError extends NoydbError {
113
+ constructor(message?: string);
114
+ }
115
+ /**
116
+ * Thrown when a record written under `debugPlaintext` carries a top-level
117
+ * field whose name starts with `_`. Debug mode inlines record fields beside
118
+ * the reserved `_`-prefixed envelope metadata, so a `_`-prefixed record field
119
+ * would collide with metadata. The `_` namespace is reserved by NOYDB
120
+ * regardless; rename the field.
121
+ */
122
+ export declare class DebugReservedFieldError extends NoydbError {
123
+ constructor(collection: string, field: string);
124
+ }
125
+ /**
126
+ * Thrown when AES-GCM decryption fails.
127
+ *
128
+ * The most common cause is a wrong passphrase or a corrupted ciphertext.
129
+ * A `DecryptionError` at the wrong passphrase level is caught internally
130
+ * and re-thrown as `InvalidKeyError` — so in practice this surfaces for
131
+ * per-record corruption rather than authentication failures.
132
+ */
133
+ export declare class DecryptionError extends NoydbError {
134
+ constructor(message?: string);
135
+ }
136
+ /**
137
+ * Thrown when GCM tag verification fails, indicating the ciphertext was
138
+ * modified after encryption.
139
+ *
140
+ * AES-256-GCM is authenticated encryption — the tag over the ciphertext
141
+ * is checked on every decrypt. If any byte was flipped (accidental
142
+ * corruption or deliberate tampering), decryption throws this error.
143
+ * Treat it as a security alert: the stored bytes are not what NOYDB wrote.
144
+ */
145
+ export declare class TamperedError extends NoydbError {
146
+ constructor(message?: string);
147
+ }
148
+ /**
149
+ * Thrown when key unwrapping fails, typically because the passphrase is wrong
150
+ * or the keyring file is corrupted.
151
+ *
152
+ * NOYDB uses AES-KW (RFC 3394) to wrap DEKs with the KEK. If AES-KW
153
+ * unwrapping fails, it means either the KEK was derived from the wrong
154
+ * passphrase (PBKDF2 with 600K iterations) or the keyring bytes are
155
+ * corrupted. This is the error shown to the user on a failed unlock attempt.
156
+ */
157
+ export declare class InvalidKeyError extends NoydbError {
158
+ constructor(message?: string);
159
+ }
160
+ /**
161
+ * Thrown when a keyring's wrapped-DEK set unwraps partially — at least
162
+ * one DEK succeeds (proving the KEK is correct) but at least one fails.
163
+ * The passphrase is right; the failed entries are corrupted.
164
+ *
165
+ * This is distinct from {@link InvalidKeyError} so that
166
+ * `NoydbOptions.onInvalidKey: 'reset'` does NOT fire — resetting on
167
+ * partial corruption would destroy the still-valid DEKs and the data
168
+ * they protect, which is silent data loss in response to a feature
169
+ * designed for stale-credential recovery.
170
+ */
171
+ export declare class KeyringCorruptError extends NoydbError {
172
+ readonly failedCollections: readonly string[];
173
+ readonly intactCount: number;
174
+ constructor(opts: {
175
+ failedCollections: readonly string[];
176
+ intactCount: number;
177
+ message?: string;
178
+ });
179
+ }
180
+ /**
181
+ * Thrown when the authenticated user does not have a DEK for the requested
182
+ * collection — i.e. the collection is not in their keyring at all.
183
+ *
184
+ * This is the "no key for this door" error. It is different from
185
+ * `ReadOnlyError` (user has a key but it only grants ro) and from
186
+ * `PermissionDeniedError` (user's role doesn't allow the operation).
187
+ */
188
+ export declare class NoAccessError extends NoydbError {
189
+ constructor(message?: string);
190
+ }
191
+ /**
192
+ * Thrown when a user with read-only (`ro`) permission attempts a write
193
+ * operation (`put` or `delete`) on a collection.
194
+ *
195
+ * The user has a DEK for the collection (they can decrypt and read), but
196
+ * their keyring grants only `ro`. To fix: re-grant the user with `rw`
197
+ * permission, or do not attempt writes as a viewer/client role.
198
+ */
199
+ export declare class ReadOnlyError extends NoydbError {
200
+ constructor(message?: string);
201
+ }
202
+ /**
203
+ * Thrown when a write is attempted against a historical view produced
204
+ * by `vault.at(timestamp)`. Time-machine views are read-only by
205
+ * contract — mutating the past would require either the shadow-vault
206
+ * mechanism or a ledger-history rewrite (which breaks
207
+ * the tamper-evidence guarantee).
208
+ *
209
+ * Distinct from {@link ReadOnlyError} (keyring-level) and
210
+ * {@link PermissionDeniedError} (role-level): this error is about the
211
+ * *view* being historical, independent of the caller's permissions.
212
+ */
213
+ export declare class ReadOnlyAtInstantError extends NoydbError {
214
+ constructor(operation: string, timestamp: string);
215
+ }
216
+ /**
217
+ * Thrown when a write is attempted against a shadow-vault frame
218
+ * produced by `vault.frame()`. Frames are read-only by contract —
219
+ * the use case is screen-sharing / demos / compliance review where
220
+ * the operator wants to prevent accidental edits.
221
+ *
222
+ * Behavioural enforcement only — the underlying keyring still holds
223
+ * write-capable DEKs. See {@link VaultFrame} for the full caveat.
224
+ */
225
+ export declare class ReadOnlyFrameError extends NoydbError {
226
+ constructor(operation: string);
227
+ }
228
+ /**
229
+ * Thrown when the authenticated user's role does not permit the requested
230
+ * operation — e.g. a `viewer` calling `grantAccess()`, or an `operator`
231
+ * calling `rotateKeys()`.
232
+ *
233
+ * This is a role-level check (what the user's role allows), distinct from
234
+ * `NoAccessError` (collection not in keyring) and `ReadOnlyError` (in
235
+ * keyring, but write not allowed).
236
+ */
237
+ export declare class PermissionDeniedError extends NoydbError {
238
+ constructor(message?: string);
239
+ }
240
+ /**
241
+ * Thrown when an `@noy-db/as-*` export is attempted without the
242
+ * required capability bit on the invoking keyring.
243
+ *
244
+ * Two sub-cases discriminated by the `tier` field:
245
+ *
246
+ * - `tier: 'plaintext'` — a plaintext-tier export (`as-xlsx`,
247
+ * `as-csv`, `as-blob`, `as-zip`, …) was attempted but the
248
+ * keyring's `exportCapability.plaintext` does not include the
249
+ * requested `format` (nor the `'*'` wildcard). Default for every
250
+ * role is `plaintext: []` — the owner must positively grant.
251
+ * - `tier: 'bundle'` — an encrypted `as-noydb` bundle export was
252
+ * attempted but the keyring's `exportCapability.bundle` is
253
+ * `false`. Default for `owner`/`admin` is `true`; for
254
+ * `operator`/`viewer`/`client` it is `false`.
255
+ *
256
+ * Distinct from `PermissionDeniedError` (role-level check) and
257
+ * `NoAccessError` (collection not readable). Surfaces separately so
258
+ * UI layers can show a "request the export capability from your
259
+ * admin" flow rather than a generic permission error.
260
+ */
261
+ export declare class ExportCapabilityError extends NoydbError {
262
+ readonly tier: 'plaintext' | 'bundle';
263
+ readonly format?: string;
264
+ readonly userId: string;
265
+ constructor(opts: {
266
+ tier: 'plaintext' | 'bundle';
267
+ userId: string;
268
+ format?: string;
269
+ message?: string;
270
+ });
271
+ }
272
+ /**
273
+ * Thrown when a keyring file's `expires_at` cutoff has passed.
274
+ * Surfaced by `loadKeyring` before any DEK unwrap is attempted —
275
+ * past the cutoff the slot refuses to open even with the right
276
+ * passphrase. Distinct from PBKDF2 / unwrap errors so consumer code
277
+ * can show a precise "this bundle slot has expired" message instead
278
+ * of the generic decryption-failure UX.
279
+ *
280
+ * Used predominantly on `BundleRecipient` slots produced by
281
+ * `writePod({ recipients: [...] })` to time-box audit access.
282
+ */
283
+ export declare class KeyringExpiredError extends NoydbError {
284
+ readonly userId: string;
285
+ readonly expiresAt: string;
286
+ constructor(opts: {
287
+ userId: string;
288
+ expiresAt: string;
289
+ });
290
+ }
291
+ /**
292
+ * Thrown when an `@noy-db/as-*` import is attempted but the invoking
293
+ * keyring lacks the required import-capability bit.
294
+ *
295
+ * - `tier: 'plaintext'` — a plaintext-tier import (`as-csv`, `as-json`,
296
+ * `as-ndjson`, `as-zip`, …) was attempted but the keyring's
297
+ * `importCapability.plaintext` does not include the requested
298
+ * `format` (nor the `'*'` wildcard).
299
+ * - `tier: 'bundle'` — a `.noydb` bundle import was attempted but the
300
+ * keyring's `importCapability.bundle` is not `true`.
301
+ *
302
+ * Default for every role on every dimension is closed — owners and
303
+ * admins must positively grant the capability. Distinct from
304
+ * `PermissionDeniedError` and `NoAccessError` so UI layers can show a
305
+ * specific "request the import capability" flow.
306
+ */
307
+ export declare class ImportCapabilityError extends NoydbError {
308
+ readonly tier: 'plaintext' | 'bundle';
309
+ readonly format?: string;
310
+ readonly userId: string;
311
+ constructor(opts: {
312
+ tier: 'plaintext' | 'bundle';
313
+ userId: string;
314
+ format?: string;
315
+ message?: string;
316
+ });
317
+ }
318
+ /**
319
+ * Thrown when a grant would give the grantee a permission the grantor
320
+ * does not themselves hold — the "admin cannot grant what admin cannot
321
+ * do" rule from the admin-delegation work.
322
+ *
323
+ * Distinct from `PermissionDeniedError` so callers can tell the two
324
+ * cases apart in logs and tests:
325
+ *
326
+ * - `PermissionDeniedError` — "you are not allowed to perform this
327
+ * operation at all" (wrong role).
328
+ * - `PrivilegeEscalationError` — "you are allowed to grant, but not
329
+ * with these specific permissions" (widening attempt).
330
+ *
331
+ * Under the admin model the grantee of an admin-grants-admin call
332
+ * inherits the caller's entire DEK set by construction, so this error
333
+ * is structurally unreachable in typical flows. The check and error
334
+ * class exist so that future per-collection admin scoping cannot
335
+ * accidentally bypass the subset rule — the guard is already wired in.
336
+ *
337
+ * `offendingCollection` carries the first collection name that failed
338
+ * the subset check, to make the violation actionable in error output.
339
+ */
340
+ /**
341
+ * Thrown when a caller invokes an API that requires an optional
342
+ * store capability the active store does not implement.
343
+ *
344
+ * Today the only call site is `Noydb.listAccessibleVaults()`,
345
+ * which depends on the optional `NoydbStore.listVaults()`
346
+ * method. The error message names the missing method and the calling
347
+ * API so consumers know exactly which combination is unsupported,
348
+ * and the `capability` field is machine-readable so library code can
349
+ * pattern-match in catch blocks (e.g. fall back to a candidate-list
350
+ * shape).
351
+ *
352
+ * The class lives in `errors.ts` rather than as a generic
353
+ * `ValidationError` because the diagnostic shape is different: a
354
+ * `ValidationError` says "the inputs you passed are wrong"; this
355
+ * error says "the inputs are fine, but the store you wired up
356
+ * doesn't support what you're asking for." Different fix, different
357
+ * documentation.
358
+ */
359
+ export declare class StoreCapabilityError extends NoydbError {
360
+ /** The store method/capability that was missing. */
361
+ readonly capability: string;
362
+ constructor(capability: string, callerApi: string, storeName?: string);
363
+ }
364
+ export declare class PrivilegeEscalationError extends NoydbError {
365
+ readonly offendingCollection: string;
366
+ constructor(offendingCollection: string, message?: string);
367
+ }
368
+ /**
369
+ * Thrown when a reserved internal vault name (e.g. `__noydb_state__`) is used
370
+ * as a group name or partition key.
371
+ *
372
+ * Internal vault names are prefixed or surrounded with double-underscores to
373
+ * avoid collisions with user-defined vault names. Attempting to use one as a
374
+ * group name or partition key bypasses the naming policy and is rejected
375
+ * eagerly so the mis-configuration is surfaced immediately.
376
+ */
377
+ export declare class ReservedVaultNameError extends NoydbError {
378
+ /** The rejected vault name. */
379
+ readonly vaultName: string;
380
+ constructor(vaultName: string);
381
+ }
382
+ /**
383
+ * Thrown by `Collection.put` / `.delete` when the target record's
384
+ * envelope `_ts` falls within a closed accounting period.
385
+ *
386
+ * Distinct from `ReadOnlyError` (keyring-level), `ReadOnlyAtInstantError`
387
+ * (historical view), and `ReadOnlyFrameError` (shadow vault): this
388
+ * error is about the STORED RECORD being sealed by an operator call
389
+ * to `vault.closePeriod()`, independent of caller permissions or
390
+ * view type. The `periodName` and `endDate` fields name the sealing
391
+ * period so audit UIs can surface a "this record is locked in
392
+ * FY2026-Q1 (closed 2026-03-31)" message without parsing the error
393
+ * string.
394
+ *
395
+ * To apply a correction after close, book a compensating entry in a
396
+ * new period rather than unlocking the old one. Re-opening a closed
397
+ * period is deliberately unsupported.
398
+ */
399
+ export declare class PeriodClosedError extends NoydbError {
400
+ readonly periodName: string;
401
+ readonly endDate: string;
402
+ readonly recordTs: string;
403
+ constructor(periodName: string, endDate: string, recordTs: string);
404
+ }
405
+ /**
406
+ * Thrown when a `put()` or `delete()` is rejected by a guard's `check`
407
+ * function. The `reason` is the message the guard supplied — typically a
408
+ * short business description (e.g. "invoice is issued"). The full
409
+ * collection + id are surfaced so audit UIs can link back to the record.
410
+ */
411
+ export declare class RecordLockedError extends NoydbError {
412
+ readonly collection: string;
413
+ readonly id: string;
414
+ readonly reason: string;
415
+ constructor(collection: string, id: string, reason: string);
416
+ }
417
+ /**
418
+ * Thrown when a `put()` changes one or more fields that are frozen by a
419
+ * `frozenFields` guard. The `fields` list contains the specific paths
420
+ * that were detected as changed.
421
+ */
422
+ export declare class FieldFrozenError extends NoydbError {
423
+ readonly collection: string;
424
+ readonly id: string;
425
+ readonly fields: readonly string[];
426
+ constructor(collection: string, id: string, fields: readonly string[]);
427
+ }
428
+ /**
429
+ * Thrown by a `transitionGuard` when a write moves a state field along an
430
+ * arc that the declared transition graph does not allow — either an
431
+ * update `from → to` that is not a listed edge, or an insert whose
432
+ * initial state is not in the allowed `initial` set (reported with
433
+ * `from: '(none)'`). Override via an amendment transaction by an
434
+ * authorized role, like any guard.
435
+ */
436
+ export declare class IllegalTransitionError extends NoydbError {
437
+ readonly collection: string;
438
+ readonly id: string;
439
+ readonly from: string;
440
+ readonly to: string;
441
+ constructor(collection: string, id: string, from: string, to: string);
442
+ }
443
+ /**
444
+ * Thrown by an amendment invariant when the proposed change-set violates
445
+ * the declared business rule (e.g. disbursement total not preserved).
446
+ * Triggers a full transaction rollback via the existing revert pass.
447
+ */
448
+ export declare class InvariantError extends NoydbError {
449
+ constructor(message: string);
450
+ }
451
+ /**
452
+ * Thrown at `withTransactions({ amendment: true })` open if the caller's
453
+ * role is not in the guard's allowed amendment roles. Fail-fast: thrown
454
+ * before any writes are attempted.
455
+ */
456
+ export declare class AmendmentForbiddenError extends NoydbError {
457
+ readonly userId: string;
458
+ readonly role: string;
459
+ constructor(userId: string, role: string);
460
+ }
461
+ /**
462
+ * Thrown by `listUsersWithEnvelopes` when the vault's user directory
463
+ * has been disabled (via `db.setDirectoryEnabled(vault, false)`) and
464
+ * the caller's role is neither `owner` nor `admin`. Owner/admin can
465
+ * still enumerate users — the toggle is a UX privacy switch, not a
466
+ * security boundary.
467
+ *
468
+ * Honest caveat: this is a UX flag, not a privacy guarantee. The
469
+ * envelope ciphertext is still in the store, the keyring file is
470
+ * still listed at `_keyring/*`, and anyone with direct store read
471
+ * access can count keyrings without going through the hub. See
472
+ * `https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/user-envelope.md` → "Directory visibility".
473
+ */
474
+ export declare class DirectoryDisabledError extends NoydbError {
475
+ readonly vault: string;
476
+ constructor(vault: string);
477
+ }
478
+ /**
479
+ * Thrown when a user tries to act at a tier they are not cleared for.
480
+ *
481
+ * This is the umbrella error for tier write refusals:
482
+ * - `put({ tier: N })` when the user's keyring lacks tier-N DEK.
483
+ * - `elevate(id, N)` when the caller cannot reach tier N.
484
+ *
485
+ * Distinct from `TierAccessDeniedError` which covers *read* refusals on
486
+ * the invisibility/ghost path.
487
+ */
488
+ export declare class TierNotGrantedError extends NoydbError {
489
+ readonly tier: number;
490
+ readonly collection: string;
491
+ constructor(collection: string, tier: number);
492
+ }
493
+ /**
494
+ * Thrown when a tier-0 `put()` or `delete()` targets a record whose LIVE
495
+ * envelope is elevated (`_tier > 0`) — regardless of whether the caller
496
+ * holds the tier's DEK. `put()`/`delete()` are the tier-0 write APIs;
497
+ * the sanctioned way to write an elevated record is `putAtTier()`,
498
+ * `elevate()`, or `demote()`.
499
+ *
500
+ * Distinct from `TierNotGrantedError`, which means "no DEK for tier N"
501
+ * and refuses only non-holders. This error refuses HOLDERS too — the
502
+ * problem isn't clearance, it's that `put()`/`delete()` are the wrong
503
+ * API for an already-elevated record (a tier-0 `put()` over one would
504
+ * otherwise silently demote it; a tier-0 `delete()` would write a
505
+ * marker with no `_tier`, erasing the elevation signal). It is also
506
+ * distinct from the read-path invisibility gate (`liveRecordIsElevated`
507
+ * in `tier-visibility.ts`), which throws nothing — elevated records
508
+ * simply read as absent there. This is a write-path refusal, not a
509
+ * read-path ghost.
510
+ *
511
+ * #708: also raised by the coordinated-cutover pre-check
512
+ * (`assertCutoverTierSafe`) — a bulk-rewrite is a third tier-0 write path,
513
+ * so it gets the same refusal with a `detail` override naming the record.
514
+ */
515
+ export declare class TierWriteRefusedError extends NoydbError {
516
+ readonly tier: number;
517
+ readonly collection: string;
518
+ constructor(collection: string, tier: number, detail?: string);
519
+ }
520
+ /**
521
+ * Thrown at `vault.collection()` registration when `tiers` is declared
522
+ * together with a derived-artifact feature whose crypto has not yet been
523
+ * made tier-aware (elevate()/demote() do not re-key it), so an elevated
524
+ * record's data would stay readable at tier 0. Mirrors
525
+ * `UnsupportedIndexOptionError` — the refusal happens loudly at
526
+ * registration instead of leaking silently at rest.
527
+ *
528
+ * `feature` names the incompatible feature (e.g. `'blobs'`) so catch
529
+ * blocks can pattern-match without inspecting the error message.
530
+ */
531
+ export declare class UnsupportedTierCompositionError extends NoydbError {
532
+ readonly feature: string;
533
+ constructor(feature: string, message: string);
534
+ }
535
+ /**
536
+ * Thrown by `createIntent` (blob durability journal, #753 spec §7 C8) when a
537
+ * `_blob_intent` marker already exists for `{collection}::{recordId}` — the
538
+ * CAS create-if-absent (`expectedVersion: 0`) lost to a present row. A
539
+ * present marker means a shred or rehome is already in flight for this
540
+ * record and MUST be resumed before any new intent is minted (overwriting it
541
+ * would orphan the prior op's op-stamps — spec C8). Callers catch this and
542
+ * resume the pending marker first, then retry.
543
+ */
544
+ export declare class BlobIntentPendingError extends NoydbError {
545
+ readonly collection: string;
546
+ readonly recordId: string;
547
+ constructor(collection: string, recordId: string);
548
+ }
549
+ /**
550
+ * Thrown when an elevated-handle operation runs after the elevation's
551
+ * TTL expired. Reads continue at the original tier; only writes
552
+ * through the scoped handle flip to throwing once expired.
553
+ */
554
+ export declare class ElevationExpiredError extends NoydbError {
555
+ readonly tier: number;
556
+ readonly expiresAt: number;
557
+ constructor(opts: {
558
+ tier: number;
559
+ expiresAt: number;
560
+ });
561
+ }
562
+ /**
563
+ * Thrown by `vault.elevate(...)` when an elevation is already active
564
+ * on the vault. Adopters must `release()` the existing handle before
565
+ * starting a new elevation.
566
+ */
567
+ export declare class AlreadyElevatedError extends NoydbError {
568
+ readonly activeTier: number;
569
+ constructor(activeTier: number);
570
+ }
571
+ /**
572
+ * Thrown when `demote()` is called by someone who is not the original
573
+ * elevator and not an owner.
574
+ */
575
+ export declare class TierDemoteDeniedError extends NoydbError {
576
+ constructor(id: string, tier: number);
577
+ }
578
+ /**
579
+ * Thrown when `db.delegate()` is called against a user that has no
580
+ * keyring in the target vault — the delegation token cannot be
581
+ * constructed without the target user's KEK wrap.
582
+ */
583
+ export declare class DelegationTargetMissingError extends NoydbError {
584
+ readonly toUser: string;
585
+ constructor(toUser: string);
586
+ }
587
+ /**
588
+ * Thrown when a `put()` detects an optimistic concurrency conflict.
589
+ *
590
+ * NOYDB uses version numbers (`_v`) for optimistic locking. If a `put()`
591
+ * is called with `expectedVersion: N` but the stored record is at version
592
+ * `M ≠ N`, the write is rejected and the caller must re-read, re-apply their
593
+ * change, and retry. The `version` field carries the actual stored version
594
+ * so callers can decide whether to retry or surface the conflict to the user.
595
+ */
596
+ export declare class ConflictError extends NoydbError {
597
+ /** The actual stored version at the time of conflict. */
598
+ readonly version: number;
599
+ constructor(version: number, message?: string);
600
+ }
601
+ /**
602
+ * Thrown by `LedgerStore.append()` after exhausting its CAS retry
603
+ * budget under multi-writer contention. Two browser tabs, a
604
+ * web app + an offline mobile peer, or a server worker pool all
605
+ * producing ledger entries against the same vault can race on the
606
+ * "read head, write head+1" cycle; the optimistic-CAS retry loop
607
+ * resolves the race for `casAtomic: true` stores, but pathological
608
+ * contention (or a buggy peer) can still exhaust the budget. When
609
+ * that happens, the chain is intact — the failed writer simply
610
+ * couldn't claim a slot. Caller's choice whether to retry, queue,
611
+ * or surface the failure to the user.
612
+ */
613
+ export declare class LedgerContentionError extends NoydbError {
614
+ readonly attempts: number;
615
+ constructor(attempts: number);
616
+ }
617
+ /**
618
+ * Thrown by `vault.sequence(name).next()` after exhausting its CAS retry
619
+ * budget under contention. The counter is intact; the caller may retry.
620
+ */
621
+ export declare class SequenceContentionError extends NoydbError {
622
+ readonly sequence: string;
623
+ readonly attempts: number;
624
+ constructor(sequence: string, attempts: number);
625
+ }
626
+ /**
627
+ * Thrown by `vault.sequence(name).next()` when the backing store is not
628
+ * CAS-capable (`capabilities.casAtomic !== true`). Gap-free numbering
629
+ * requires single-authority serialization, which an offline / non-CAS
630
+ * store cannot provide — this is a deliberate online-only wall.
631
+ */
632
+ export declare class SequenceOfflineError extends NoydbError {
633
+ constructor();
634
+ }
635
+ /**
636
+ * Thrown by `vault.sequence()` when the atomic-sequence capability was not
637
+ * opted into (the default `NO_SEQUENCE` stub). Sequence is an opt-in,
638
+ * tree-shakeable capability: enable it with `sequenceStrategy: withSequence()`
639
+ * from "@noy-db/hub" in createNoydb(). Deferred-numbering series
640
+ * (`withDeferredNumbering`) are a separate capability and are unaffected.
641
+ */
642
+ export declare class SequenceNotEnabledError extends NoydbError {
643
+ constructor(message?: string);
644
+ }
645
+ /** Thrown by a deferred-numbering pass when the store clock is unavailable or its uncertainty cannot be resolved. */
646
+ export declare class NumberingUncertaintyError extends NoydbError {
647
+ readonly series: string;
648
+ constructor(series: string);
649
+ }
650
+ /**
651
+ * Thrown when a bundle push is rejected because the remote has been updated
652
+ * since the local bundle was last pulled.
653
+ *
654
+ * Unlike `ConflictError` (per-record), this is a whole-bundle conflict —
655
+ * the remote's bundle handle has changed. The caller must pull the new
656
+ * bundle, merge, and re-push. `remoteVersion` is the handle of the newer
657
+ * remote bundle for use in diagnostics.
658
+ */
659
+ export declare class PodVersionConflictError extends NoydbError {
660
+ /** The bundle handle of the newer remote version that rejected the push. */
661
+ readonly remoteVersion: string;
662
+ constructor(remoteVersion: string, message?: string);
663
+ }
664
+ /** @deprecated Use `PodVersionConflictError`. */
665
+ export declare const BundleVersionConflictError: typeof PodVersionConflictError;
666
+ /** @deprecated Use `PodVersionConflictError`. */
667
+ export type BundleVersionConflictError = PodVersionConflictError;
668
+ /**
669
+ * Thrown when a sync operation (push or pull) fails due to a network error.
670
+ *
671
+ * NOYDB's offline-first design means network errors are expected during sync.
672
+ * Callers should catch `NetworkError`, surface connectivity status in the UI,
673
+ * and rely on the `SyncScheduler` to retry when connectivity is restored.
674
+ */
675
+ export declare class NetworkError extends NoydbError {
676
+ constructor(message?: string);
677
+ }
678
+ /**
679
+ * Thrown when `collection.get(id)` is called with an ID that does not exist.
680
+ *
681
+ * NOYDB collections are memory-first, so this error is synchronous and cheap —
682
+ * it does not make a network round-trip. Callers that expect the record to be
683
+ * absent should use `collection.getOrNull(id)` instead.
684
+ */
685
+ export declare class NotFoundError extends NoydbError {
686
+ constructor(message?: string);
687
+ }
688
+ /**
689
+ * Thrown when application-level validation fails before encryption.
690
+ *
691
+ * Distinct from `SchemaValidationError` (Standard Schema v1 validator)
692
+ * and `MissingTranslationError` (i18nText). `ValidationError` is the
693
+ * general-purpose validation base — use it for custom guards in `put()`
694
+ * hooks or store middleware.
695
+ */
696
+ export declare class ValidationError extends NoydbError {
697
+ constructor(message?: string);
698
+ }
699
+ /**
700
+ * Thrown when a Standard Schema v1 validator rejects a record on
701
+ * `put()` (input validation) or on read (output validation). Carries
702
+ * the raw issue list so callers can render field-level errors.
703
+ *
704
+ * `direction` distinguishes the two cases:
705
+ * - `'input'`: the user passed bad data into `put()`. This is a
706
+ * normal error case that application code should handle — typically
707
+ * by showing validation messages in the UI.
708
+ * - `'output'`: stored data does not match the current schema. This
709
+ * indicates a schema drift (the schema was changed without
710
+ * migrating the existing records) and should be treated as a bug
711
+ * — the application should not swallow it silently.
712
+ *
713
+ * The `issues` type is deliberately `readonly unknown[]` on this class
714
+ * so that `errors.ts` doesn't need to import from `schema.ts` (and
715
+ * create a dependency cycle). Callers who know they're holding a
716
+ * `SchemaValidationError` can cast to the more precise
717
+ * `readonly StandardSchemaV1Issue[]` from `schema.ts`.
718
+ */
719
+ export declare class SchemaValidationError extends NoydbError {
720
+ readonly issues: readonly unknown[];
721
+ readonly direction: 'input' | 'output';
722
+ constructor(message: string, issues: readonly unknown[], direction: 'input' | 'output');
723
+ }
724
+ /** Base for schema-evolution strategy rejections. */
725
+ export declare class SchemaUpdateError extends NoydbError {
726
+ constructor(code: string, message: string);
727
+ }
728
+ /** A non-additive schema change was rejected by the `additiveOnly()` strategy. */
729
+ export declare class NonAdditiveSchemaChangeError extends SchemaUpdateError {
730
+ constructor(message: string);
731
+ }
732
+ /** A schema change was rejected by the `lockSchema()` strategy. */
733
+ export declare class SchemaLockedError extends SchemaUpdateError {
734
+ constructor(message: string);
735
+ }
736
+ /** Write attempted while a schema cutover fence is up (draining/migrating, or this collection has a pending cutover). */
737
+ export declare class SchemaFenceError extends SchemaUpdateError {
738
+ constructor(message: string);
739
+ }
740
+ /** Write attempted by a client whose generation snapshot is behind the live fence — reload required. */
741
+ export declare class MigrationRequiredError extends SchemaUpdateError {
742
+ constructor(message: string);
743
+ }
744
+ /** A coordinated cutover timed out waiting for active clients to quiesce. */
745
+ export declare class QuiesceTimeoutError extends SchemaUpdateError {
746
+ constructor(message: string);
747
+ }
748
+ /**
749
+ * Thrown when `.groupBy().aggregate()` produces more than the hard
750
+ * cardinality cap (default 100_000 groups)..
751
+ *
752
+ * The cap exists because `.groupBy()` materializes one bucket per
753
+ * distinct key value in memory, and runaway cardinality — a groupBy
754
+ * on a high-uniqueness field like `id` or `createdAt` — is almost
755
+ * always a query mistake rather than legitimate use. A hard error is
756
+ * better than silent OOM: the consumer sees an actionable message
757
+ * naming the field and the observed cardinality, with guidance to
758
+ * either narrow the query with `.where()` or accept the ceiling
759
+ * override.
760
+ *
761
+ * A separate one-shot warning fires at 10% of the cap (10_000
762
+ * groups) so consumers get a heads-up before the hard error — same
763
+ * pattern as `JoinTooLargeError` and the `.join()` row ceiling.
764
+ *
765
+ * **Not overridable in.** The 100k cap is a fixed constant so
766
+ * the failure mode is consistent across the codebase; a
767
+ * `{ maxGroups }` override can be added later without a break if a
768
+ * real consumer asks.
769
+ */
770
+ export declare class GroupCardinalityError extends NoydbError {
771
+ /** The field being grouped on. */
772
+ readonly field: string;
773
+ /** Observed number of distinct groups at the moment the cap tripped. */
774
+ readonly cardinality: number;
775
+ /** The cap that was exceeded. */
776
+ readonly maxGroups: number;
777
+ constructor(field: string, cardinality: number, maxGroups: number);
778
+ }
779
+ /**
780
+ * Thrown in lazy mode when a `.query()` / `.where()` / `.orderBy()` clause
781
+ * references a field that does not have a declared index.
782
+ *
783
+ * Lazy-mode queries only work when every touched field is indexed.
784
+ * This is deliberate — silent scan-fallback would hide the performance
785
+ * cliff that lazy-mode indexes exist to prevent.
786
+ *
787
+ * Payload:
788
+ * - `collection` — name of the collection queried
789
+ * - `touchedFields` — every field referenced by the query (filter + order)
790
+ * - `missingFields` — subset of `touchedFields` that have no declared index
791
+ */
792
+ export declare class IndexRequiredError extends NoydbError {
793
+ readonly collection: string;
794
+ readonly touchedFields: readonly string[];
795
+ readonly missingFields: readonly string[];
796
+ constructor(args: {
797
+ collection: string;
798
+ touchedFields: readonly string[];
799
+ missingFields: readonly string[];
800
+ });
801
+ }
802
+ /**
803
+ * Thrown by `Collection.put()` when writing a record would violate a
804
+ * unique-index constraint — the same field value (or composite field
805
+ * tuple) is already held by a *different* record id in the collection.
806
+ *
807
+ * Properties:
808
+ * - `collection` — name of the collection the write was targeting
809
+ * - `recordId` — the id of the record being written (the would-be violator)
810
+ * - `fields` — the constrained field(s), e.g. `['taxId']` or `['workerId','employerEntityId']`
811
+ * - `conflictingId` — the id of the record already holding the value
812
+ *
813
+ * Null-distinct semantics: if any constrained field is `null`/`undefined`,
814
+ * the row is exempt (the constraint does not fire). This matches standard
815
+ * SQL NULL-distinct behavior.
816
+ */
817
+ export declare class UniqueConstraintError extends NoydbError {
818
+ readonly collection: string;
819
+ readonly recordId: string;
820
+ readonly fields: readonly string[];
821
+ readonly conflictingId: string;
822
+ constructor(collection: string, recordId: string, fields: readonly string[], conflictingId: string);
823
+ }
824
+ /**
825
+ * Thrown at collection registration when an index option is declared that
826
+ * is incompatible with the collection's operating mode.
827
+ *
828
+ * Currently covers two cases:
829
+ * - `unique: true` on a lazy-mode (`prefetch: false`) collection — lazy mode
830
+ * does not pre-load all records, so an in-memory uniqueness map cannot be
831
+ * maintained reliably.
832
+ * - `unique: true` on a CRDT collection (`crdt: 'lww-map' | 'rga' | 'yjs'`) —
833
+ * CRDT put() short-circuits the unique-constraint check, so enforcement would
834
+ * silently not fire.
835
+ *
836
+ * Both cases are caught eagerly at `vault.collection()` time so the developer
837
+ * sees the incompatibility immediately rather than shipping silently-ignored
838
+ * constraints.
839
+ *
840
+ * The `option` field names the incompatible option (`'unique'`) so catch blocks
841
+ * can pattern-match without inspecting the error message.
842
+ */
843
+ export declare class UnsupportedIndexOptionError extends NoydbError {
844
+ readonly option: string;
845
+ constructor(option: string, message: string);
846
+ }
847
+ /**
848
+ * Thrown (or surfaced via the `index:write-partial` event) when one or more
849
+ * per-indexed-field side-car writes fail after the main record write has
850
+ * already succeeded.
851
+ *
852
+ * Not thrown out of `.put()` / `.delete()` directly — those succeed when the
853
+ * main record succeeds. Instead, `IndexWriteFailureError` instances are collected
854
+ * into the session-scoped reconcile queue and emitted on the Collection
855
+ * emitter as `index:write-partial`.
856
+ *
857
+ * Payload:
858
+ * - `recordId` — the id of the main record whose side-car writes failed
859
+ * - `field` — the indexed field whose side-car write failed
860
+ * - `op` — `'put'` or `'delete'`, indicating which mutation was in flight
861
+ * - `cause` — the underlying error from the store
862
+ */
863
+ export declare class IndexWriteFailureError extends NoydbError {
864
+ readonly recordId: string;
865
+ readonly field: string;
866
+ readonly op: 'put' | 'delete';
867
+ readonly cause: unknown;
868
+ constructor(args: {
869
+ recordId: string;
870
+ field: string;
871
+ op: 'put' | 'delete';
872
+ cause: unknown;
873
+ });
874
+ }
875
+ /**
876
+ * Thrown when `PersistedIndexStore`'s compensating `remove()` — the undo of a
877
+ * stale debounced `_ftindex` save that raced a purge (#725) — itself fails.
878
+ * That failure is sticky (`pendingCompensation`) and retried-first by every
879
+ * subsequent store entrypoint (`ensureBuilt`/`rebuildAndPersist`/
880
+ * `removePersisted`) rather than silently dropped, but was previously
881
+ * rethrown as the RAW adapter error indefinitely — indistinguishable from
882
+ * any other adapter failure, so a caller could not catch it deliberately the
883
+ * way `forget()` catches `_purgeSearchIndex` into `indexResidue` (#764).
884
+ *
885
+ * `cause` is the underlying adapter error. Callers that want stuck-
886
+ * compensation resilience instead of an abort (e.g. `elevate()`/`demote()`,
887
+ * #764) catch this type specifically and surface it as residue.
888
+ */
889
+ export declare class PersistedIndexCompensationError extends NoydbError {
890
+ readonly cause: unknown;
891
+ constructor(cause: unknown);
892
+ }
893
+ /**
894
+ * Thrown by `.where()` / `.orderBy()` / `.aggregate()` (via the Via
895
+ * pipeline's `postureFor`/`wrapReducers`) when the field is covered by a Via
896
+ * feature whose declared posture is `queryable: 'none'` — e.g. a `blobFields`
897
+ * slot (blob content is out-of-band; it never reaches the decrypted record,
898
+ * so nothing indexes or compares it). #629 Task 8 — the first posture
899
+ * consumer.
900
+ *
901
+ * Payload:
902
+ * - `field` — the refused field name
903
+ */
904
+ export declare class FieldNotQueryableError extends NoydbError {
905
+ readonly field: string;
906
+ constructor(field: string);
907
+ }
908
+ /**
909
+ * Thrown by `readPod()` when the body bytes don't match
910
+ * the integrity hash declared in the bundle header — i.e. someone
911
+ * modified the bytes between write and read.
912
+ *
913
+ * Distinct from a generic `Error` (which would be thrown for
914
+ * format violations like a missing magic prefix or malformed
915
+ * header JSON) so consumers can pattern-match the corruption case
916
+ * and handle it differently from a producer bug. A
917
+ * `BundleIntegrityError` indicates "the bytes you got are not
918
+ * what was written"; a plain `Error` from `parsePrefixAndHeader`
919
+ * indicates "what was written wasn't a valid bundle in the first
920
+ * place."
921
+ *
922
+ * Also thrown when decompression fails after the integrity hash
923
+ * passed — that's a producer bug (the wrong algorithm byte was
924
+ * written) but it surfaces with the same error class because the
925
+ * end result is "the body cannot be turned back into a dump."
926
+ */
927
+ export declare class BundleIntegrityError extends NoydbError {
928
+ constructor(message: string);
929
+ }
930
+ /**
931
+ * Thrown by `readPod` when the bundle carries
932
+ * sealed per-user passphrases but no supplied `SealingKeyProvider`
933
+ * has a `.id` (= `pid`) matching the sealed entry's `pid`.
934
+ *
935
+ * Carries the failing pid + the user id so the recipient can
936
+ * surface an actionable prompt:
937
+ *
938
+ * ```
939
+ * BundleSealMismatchError: bundle carries sealed passphrase for user "alice"
940
+ * under provider "macos-keychain:com.acme.app/alice@acme.example",
941
+ * but no registered provider matches that pid.
942
+ * ```
943
+ *
944
+ * Three resolution paths the message names (per foundation §11.9.4):
945
+ *
946
+ * 1. Configure a provider matching the pid and retry import.
947
+ * 2. Pass `attemptUnsealAcrossProviders: true` to try each
948
+ * registered provider regardless of pid.
949
+ * 3. Inspect without unsealing — pass no `sealingProviders` to
950
+ * receive the sealed entries unmodified for offline analysis.
951
+ */
952
+ export declare class BundleSealMismatchError extends NoydbError {
953
+ readonly userId: string;
954
+ readonly pid: string;
955
+ constructor(userId: string, pid: string);
956
+ }
957
+ /**
958
+ * Thrown when `vault.collection()` is called with a name that is
959
+ * reserved for NOYDB internal use (any name starting with `_dict_`).
960
+ *
961
+ * Dictionary collections are accessed exclusively via
962
+ * `vault.dictionary(name)` — attempting to open one as a regular
963
+ * collection would bypass the dictionary invariants (ACL, rename
964
+ * tracking, reserved-name policy).
965
+ */
966
+ export declare class ReservedCollectionNameError extends NoydbError {
967
+ /** The rejected collection name. */
968
+ readonly collectionName: string;
969
+ constructor(collectionName: string);
970
+ }
971
+ /**
972
+ * Thrown by `DictionaryHandle.get()` and `DictionaryHandle.delete()` when
973
+ * the requested key does not exist in the dictionary.
974
+ *
975
+ * Distinct from `NotFoundError` (which is for data records) so callers
976
+ * can distinguish "data record missing" from "dictionary key missing"
977
+ * without inspecting error messages.
978
+ */
979
+ export declare class DictKeyMissingError extends NoydbError {
980
+ /** The dictionary name. */
981
+ readonly dictionaryName: string;
982
+ /** The key that was not found. */
983
+ readonly key: string;
984
+ constructor(dictionaryName: string, key: string);
985
+ }
986
+ /**
987
+ * Thrown by `DictionaryHandle.delete()` in strict mode when the key to
988
+ * be deleted is still referenced by one or more records.
989
+ *
990
+ * The caller must either rename the key first (the only sanctioned
991
+ * mass-mutation path) or pass `{ mode: 'warn' }` to skip the check
992
+ * (development only).
993
+ */
994
+ export declare class DictKeyInUseError extends NoydbError {
995
+ /** The dictionary name. */
996
+ readonly dictionaryName: string;
997
+ /** The key that is still referenced. */
998
+ readonly key: string;
999
+ /** Name of the first collection found to reference this key. */
1000
+ readonly usedBy: string;
1001
+ /** Number of records in `usedBy` that reference this key. */
1002
+ readonly count: number;
1003
+ constructor(dictionaryName: string, key: string, usedBy: string, count: number);
1004
+ }
1005
+ /**
1006
+ * Thrown by `VaultLinks.checkLookupRefsRestrict()` (#654) when a `restrict`-mode lookup-ref
1007
+ * edge's compare-key cannot be resolved from the backing row — a matrix dimension with a
1008
+ * non-default `key` whose row is missing that field or holds a non-string/non-number value
1009
+ * (corruption-class rarity). Whether the referencer still points at this row can't be proven
1010
+ * either way, so the delete/forget is refused rather than silently allowed through — the
1011
+ * fail-closed twin of `DictKeyInUseError` ("cannot prove no references ⇒ do not delete").
1012
+ */
1013
+ export declare class RestrictRefUnresolvableError extends NoydbError {
1014
+ /** The dimension (backing collection/dictionary) whose row's compare-key was unresolvable. */
1015
+ readonly dimension: string;
1016
+ /** The backing row's key (its PUT-id) that was being deleted/forgotten. */
1017
+ readonly key: string;
1018
+ /** The unresolvable restrict edge, formatted `"collection.field"`. */
1019
+ readonly referencing: string;
1020
+ constructor(dimension: string, key: string, referencing: string);
1021
+ }
1022
+ /**
1023
+ * Thrown by `Collection.put()` when an `i18nText` field is missing one
1024
+ * or more required translations.
1025
+ *
1026
+ * The `missing` array names each locale code that was absent from the
1027
+ * field value. The `field` property names the field so callers can
1028
+ * render a field-level error message without parsing the string.
1029
+ */
1030
+ export declare class MissingTranslationError extends NoydbError {
1031
+ /** The field name whose translation(s) are missing. */
1032
+ readonly field: string;
1033
+ /** Locale codes that were required but absent. */
1034
+ readonly missing: readonly string[];
1035
+ constructor(field: string, missing: readonly string[], message?: string);
1036
+ }
1037
+ /**
1038
+ * Thrown when reading an `i18nText` field without specifying a locale —
1039
+ * either at the call site (`get(id, { locale })`) or on the vault
1040
+ * (`openVault(name, { locale })`).
1041
+ *
1042
+ * Also thrown when `resolveI18nText()` exhausts the fallback chain and
1043
+ * no translation is available for the requested locale.
1044
+ *
1045
+ * The `field` property names the field that triggered the error so the
1046
+ * caller can surface it in the UI.
1047
+ */
1048
+ export declare class LocaleNotSpecifiedError extends NoydbError {
1049
+ /** The field name that required a locale. */
1050
+ readonly field: string;
1051
+ constructor(field: string, message?: string);
1052
+ }
1053
+ /**
1054
+ * Thrown at write time when an `i18nText` slot's value contains
1055
+ * characters outside the script set allowed for that locale, and the
1056
+ * field's `onScriptViolation` policy is `'reject'` (the default).
1057
+ *
1058
+ * Distinct from {@link MissingTranslationError} (write-shape) and
1059
+ * {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
1060
+ * wrong-script value from a missing one.
1061
+ */
1062
+ export declare class ScriptViolationError extends NoydbError {
1063
+ /** The field whose value violated its script constraint. */
1064
+ readonly field: string;
1065
+ /** The locale slot (e.g. `'en'`) that was checked. */
1066
+ readonly locale: string;
1067
+ /** The Unicode scripts allowed for this slot. */
1068
+ readonly expected: readonly string[];
1069
+ /** A short sample of the offending characters, for diagnostics. */
1070
+ readonly sample: string;
1071
+ constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
1072
+ }
1073
+ /**
1074
+ * Thrown when a mutation (`put`/`putAll`/`rename`/`delete`) is attempted
1075
+ * against a dictionary name that is backed by a `staticDict()` descriptor.
1076
+ *
1077
+ * A static dict's labels are code constants with no per-vault storage and no
1078
+ * mutation surface — a label change is a code deploy, not a runtime write.
1079
+ * Distinct from the other dictionary errors so callers can tell a
1080
+ * "this dict is read-only by construction" refusal from a missing-key or
1081
+ * key-in-use failure.
1082
+ */
1083
+ export declare class StaticDictReadonlyError extends NoydbError {
1084
+ /** The static dictionary name that was the target of the mutation. */
1085
+ readonly dictionaryName: string;
1086
+ constructor(dictionaryName: string);
1087
+ }
1088
+ /**
1089
+ * Thrown at put-time when a record stores a code for a `staticDict()` field
1090
+ * that is not in the descriptor's declared `keys` (a typo or a stale code).
1091
+ *
1092
+ * Codes are closed by construction, so an unknown code is treated as a bug by
1093
+ * default. Opt out per descriptor with `{ validateCodes: false }`.
1094
+ *
1095
+ * Distinct from {@link LocaleNotSpecifiedError} (a read-hole) — this is a
1096
+ * write-shape error.
1097
+ */
1098
+ export declare class UnknownDictCodeError extends NoydbError {
1099
+ /** The static dictionary name. */
1100
+ readonly dictionaryName: string;
1101
+ /** The field that carried the unknown code. */
1102
+ readonly field: string;
1103
+ /** The offending code value. */
1104
+ readonly code: string;
1105
+ constructor(dictionaryName: string, field: string, code: string);
1106
+ }
1107
+ /**
1108
+ * Thrown at put-time when a `vocabulary: 'closed'` lookup field (#650 Task
1109
+ * 3 — `lookup()`/`enumOf()`/`dict()`, the via-lookup binding) carries a key
1110
+ * that is not a member of its dimension — the enum tier's declared key set,
1111
+ * the dict tier's declared keys / live reserved-collection entries, or the
1112
+ * matrix tier's backing collection.
1113
+ *
1114
+ * Distinct from {@link UnknownDictCodeError} (the `staticDict()` alias's own
1115
+ * error, unchanged by this task) — this is the native `lookup`/`dict`/`enum`
1116
+ * descriptors' equivalent. `'open'` vocabulary (the default) never throws
1117
+ * this; declare `{ vocabulary: 'closed' }` to opt in.
1118
+ */
1119
+ export declare class UnknownLookupKeyError extends NoydbError {
1120
+ /** The dimension (dictionary/target collection) name. */
1121
+ readonly dimension: string;
1122
+ /** The field that carried the unknown key. */
1123
+ readonly field: string;
1124
+ /** The offending key value. */
1125
+ readonly key: string;
1126
+ constructor(dimension: string, field: string, key: string);
1127
+ }
1128
+ /**
1129
+ * Thrown when a collection has an `i18nText` field with
1130
+ * `autoTranslate: true` but no `plaintextTranslator` was configured
1131
+ * on `createNoydb()`.
1132
+ *
1133
+ * The error is raised at `put()` time (not at schema construction) so
1134
+ * the mis-configuration is surfaced by the first write rather than
1135
+ * silently at startup.
1136
+ */
1137
+ export declare class TranslatorNotConfiguredError extends NoydbError {
1138
+ /** The field that requested auto-translation. */
1139
+ readonly field: string;
1140
+ /** The collection the put was targeting. */
1141
+ readonly collection: string;
1142
+ constructor(field: string, collection: string);
1143
+ }
1144
+ /**
1145
+ * Thrown when `Vault.load()` finds that a backup's hash chain
1146
+ * doesn't verify, or that its embedded `ledgerHead.hash` doesn't
1147
+ * match the chain head reconstructed from the loaded entries.
1148
+ *
1149
+ * Distinct from `BackupCorruptedError` so callers can choose to
1150
+ * recover from one but not the other (e.g., a corrupted JSON file is
1151
+ * unrecoverable; a chain mismatch might mean the backup is from an
1152
+ * incompatible noy-db version).
1153
+ */
1154
+ export declare class BackupLedgerError extends NoydbError {
1155
+ /** First-broken-entry index, if known. */
1156
+ readonly divergedAt?: number;
1157
+ constructor(message: string, divergedAt?: number);
1158
+ }
1159
+ /**
1160
+ * Thrown when `Vault.load()` finds that the backup's data
1161
+ * collection content doesn't match the ledger's recorded
1162
+ * `payloadHash`es. This is the "envelope was tampered with after
1163
+ * dump" detection — the chain itself can be intact, but if any
1164
+ * encrypted record bytes were swapped, this check catches it.
1165
+ */
1166
+ export declare class BackupCorruptedError extends NoydbError {
1167
+ /** The (collection, id) pair whose envelope failed the hash check. */
1168
+ readonly collection: string;
1169
+ readonly id: string;
1170
+ constructor(collection: string, id: string, message: string);
1171
+ }
1172
+ /**
1173
+ * Thrown by partition-extraction primitives when the
1174
+ * transitive-closure walk fails — e.g. the FK graph is deeper than
1175
+ * `maxDepth`, signalling a runaway or unexpectedly cyclic graph.
1176
+ */
1177
+ export declare class PartitionExtractionError extends NoydbError {
1178
+ constructor(message: string);
1179
+ }
1180
+ /**
1181
+ * Thrown by `adoptPartition` when the transfer seal can't be
1182
+ * opened — a wrong/short transfer key (AES-GCM auth-tag failure) or a
1183
+ * malformed sealed payload.
1184
+ */
1185
+ export declare class TransferSealError extends NoydbError {
1186
+ constructor(message: string);
1187
+ }
1188
+ /**
1189
+ * Thrown when an adoption-lifecycle precondition fails — re-adopting a
1190
+ * partition already consumed in this store, or owner-creation on a
1191
+ * vault that isn't in the adopted-unowned state.
1192
+ */
1193
+ export declare class AdoptionStateError extends NoydbError {
1194
+ constructor(message: string);
1195
+ }
1196
+ /** Document-attestation failures: undeclared field-schema, non-owner issue, missing field, signer failure. */
1197
+ export declare class AttestationError extends NoydbError {
1198
+ constructor(message: string);
1199
+ }
1200
+ /**
1201
+ * Thrown when an attestation capability method (`issueAttestation`,
1202
+ * `getDocumentSigningPublicKey`, `revokeAttestation`, `unrevokeAttestation`,
1203
+ * `getRevokedDocIds`, `publishRevocationList`) is called without opting into
1204
+ * the attestation capability (the default `NO_ATTESTATION` stub). Attestation
1205
+ * is an opt-in, tree-shakeable capability: enable it with
1206
+ * `attestationStrategy: withAttestation()` from "@noy-db/hub/attestation" in
1207
+ * createNoydb().
1208
+ */
1209
+ export declare class AttestationNotEnabledError extends NoydbError {
1210
+ constructor(message?: string);
1211
+ }
1212
+ /**
1213
+ * Thrown when `collection.reveal()` is called without opting into the
1214
+ * classified capability (the default `NO_CLASSIFIED` stub). Classified reveal
1215
+ * is an opt-in, tree-shakeable capability: enable it with
1216
+ * `classifiedStrategy: withClassified()` from "@noy-db/hub/classified" in
1217
+ * createNoydb().
1218
+ */
1219
+ export declare class ClassifiedNotEnabledError extends NoydbError {
1220
+ constructor(message?: string);
1221
+ }
1222
+ /**
1223
+ * Thrown when a hierarchical-tiers capability method (`putAtTier`, `getAtTier`,
1224
+ * `listAtTier`, `elevate`, `demote`) is called without opting into the tiers
1225
+ * capability (the default `NO_TIERS` stub). Tiers is an opt-in, tree-shakeable
1226
+ * capability: enable it with `tiersStrategy: withTiers()` from
1227
+ * "@noy-db/hub/tiers" in createNoydb().
1228
+ */
1229
+ export declare class TiersNotEnabledError extends NoydbError {
1230
+ constructor(message?: string);
1231
+ }
1232
+ /**
1233
+ * Thrown when a sealed-record grantor method (`sealRecordToHost`,
1234
+ * `revokeSealedRecord`, `rotateRecordCek`) is called without opting into the
1235
+ * sealed-record capability (the default `NO_SEALED_RECORD` stub). Sealed-record
1236
+ * is an opt-in, tree-shakeable capability: enable it with
1237
+ * `sealedRecordStrategy: withSealedRecord()` from "@noy-db/hub/sealed-record" in
1238
+ * createNoydb(). (The host-side `openSealedRecord` opener is ungated.)
1239
+ */
1240
+ export declare class SealedRecordNotEnabledError extends NoydbError {
1241
+ constructor(message?: string);
1242
+ }
1243
+ /**
1244
+ * Thrown when a portability capability method (`exportMyAccessibleData`,
1245
+ * `unilateralWithdrawal`, `requestWithdrawal`, `listWithdrawalRequests`,
1246
+ * `approveWithdrawal`, `rejectWithdrawal`) is called without opting into the
1247
+ * portability capability (the default `NO_PORTABILITY` stub). Portability is an
1248
+ * opt-in, tree-shakeable capability: enable it with
1249
+ * `portabilityStrategy: withPortability()` from "@noy-db/hub/portability" in
1250
+ * createNoydb().
1251
+ */
1252
+ export declare class PortabilityNotEnabledError extends NoydbError {
1253
+ constructor(message?: string);
1254
+ }
1255
+ /**
1256
+ * Thrown when a sovereign-custody (FR-6) operation — `db.grantCustodian`,
1257
+ * `db.revokeCustodian`, or `vault.custody.liberate()` (and the `vault.custody.*`
1258
+ * facade that composes them) — is called without opting into the custody
1259
+ * capability (the default `NO_CUSTODY` stub). Custody is an opt-in,
1260
+ * tree-shakeable capability: enable it with `custodyStrategy: withCustody()`
1261
+ * from "@noy-db/hub" in createNoydb(). (The lower-level `liberateVault` free
1262
+ * function stays ungated.)
1263
+ */
1264
+ export declare class CustodyNotEnabledError extends NoydbError {
1265
+ constructor(message?: string);
1266
+ }
1267
+ /**
1268
+ * Thrown when a multi-user team operation — `db.grant`, `db.revoke`, or
1269
+ * `db.rotate` — is called without opting into the team capability (the
1270
+ * default `NO_TEAM` stub). The always-on floor is single-user by design
1271
+ * (#267 keyring-grant → team split): enable multi-user grant/revoke/rotate
1272
+ * with `teamStrategy: withTeam()` from "@noy-db/hub/team" in createNoydb().
1273
+ * Single-user primitives (owner keyring, unlock, `listUsers`, `updateUser`,
1274
+ * passphrase rotate/recover) stay ungated.
1275
+ */
1276
+ export declare class TeamNotEnabledError extends NoydbError {
1277
+ constructor(message?: string);
1278
+ }
1279
+ /**
1280
+ * Thrown when a search / retrieval capability method — `collection.search`,
1281
+ * `collection.retrieve`, `collection.similarTo`, `collection.warmIndex`,
1282
+ * `collection.flushIndex`, or the put()-time embedding-vector compute for a
1283
+ * collection declaring `embeddings` — is called without opting into the search
1284
+ * capability (the default `NO_SEARCH` stub). Search is an opt-in,
1285
+ * tree-shakeable capability: enable it with `searchStrategy: withSearch()` from
1286
+ * "@noy-db/hub" in createNoydb(). Opting in also enables embedding compute (a
1287
+ * vector no gated retrieval could read would be dead weight).
1288
+ */
1289
+ export declare class SearchNotEnabledError extends NoydbError {
1290
+ constructor(message?: string);
1291
+ }
1292
+ /**
1293
+ * Thrown when the source-side cargo operation — `extractPartition(vault, …)` —
1294
+ * is called without opting into the cargo capability (the default `NO_CARGO`
1295
+ * stub). Cargo is an opt-in, tree-shakeable capability: enable it with
1296
+ * `cargoStrategy: withCargo()` from "@noy-db/hub/cargo" in createNoydb(). The
1297
+ * recipient-side `adoptPartition` / `decryptExtractedPartition` free functions —
1298
+ * and `diffVault` (shared import/merge infra) — operate without a gated source
1299
+ * instance and stay ungated.
1300
+ */
1301
+ export declare class CargoNotEnabledError extends NoydbError {
1302
+ constructor(message?: string);
1303
+ }
1304
+ /**
1305
+ * Thrown when `vault.broker()` is called without opting into the broker
1306
+ * capability (the default `NO_BROKER` stub). Opt in with
1307
+ * `brokerStrategy: withBroker(config)` from "@noy-db/hub/broker" in
1308
+ * createNoydb().
1309
+ */
1310
+ export declare class BrokerNotEnabledError extends NoydbError {
1311
+ constructor(message?: string);
1312
+ }
1313
+ /**
1314
+ * Thrown when the `_broker` seed cannot be enrolled with the broker host:
1315
+ * `enroll()`/`rotate()` called on a DEK-only keyring (KEK required to
1316
+ * provision the `_broker` DEK on first use — R-B8/I3), a `/enroll` POST
1317
+ * refused for lacking a valid dev-backend attestation (R-B3), or
1318
+ * `credentialSource()` called on a seed whose `/enroll` never completed
1319
+ * successfully (`registered !== true` — a partial enrol, I9).
1320
+ */
1321
+ export declare class BrokerEnrolmentError extends NoydbError {
1322
+ constructor(message?: string);
1323
+ }
1324
+ /**
1325
+ * Thrown when the broker host rejects a submitted challenge proof (MAC
1326
+ * mismatch, expired `expiresAt`, or a reused/burned challenge — R-B5).
1327
+ */
1328
+ export declare class BrokerProofError extends NoydbError {
1329
+ constructor(message?: string);
1330
+ }
1331
+ /**
1332
+ * Thrown by `resolveSession()` when the session token's `expiresAt`
1333
+ * timestamp is in the past. The session key is also removed from the
1334
+ * in-memory store when this is thrown, so retrying with the same sessionId
1335
+ * will produce `SessionNotFoundError`.
1336
+ *
1337
+ * Separate from `SessionNotFoundError` so callers can distinguish between
1338
+ * "session is gone" (key store cleared, tab reloaded) and "session is
1339
+ * still in the store but has exceeded its lifetime" (idle timeout, absolute
1340
+ * timeout, policy-driven expiry). The remediation differs: expired sessions
1341
+ * should prompt a fresh unlock; not-found sessions may indicate a bug or a
1342
+ * cross-tab scenario where the session was never established.
1343
+ */
1344
+ export declare class SessionExpiredError extends NoydbError {
1345
+ readonly sessionId: string;
1346
+ constructor(sessionId: string);
1347
+ }
1348
+ /**
1349
+ * Thrown by `resolveSession()` when the session key cannot be found in
1350
+ * the module-level store. This happens when:
1351
+ * - The session was explicitly revoked via `revokeSession()`.
1352
+ * - The JS context was reloaded (tab navigation, page refresh, worker restart).
1353
+ * - `Noydb.close()` was called (which calls `revokeAllSessions()`).
1354
+ * - The sessionId is wrong or was generated by a different JS context.
1355
+ *
1356
+ * The session token (if the caller holds it) is permanently useless after
1357
+ * this error — the key is gone and cannot be recovered.
1358
+ */
1359
+ export declare class SessionNotFoundError extends NoydbError {
1360
+ readonly sessionId: string;
1361
+ constructor(sessionId: string);
1362
+ }
1363
+ /**
1364
+ * Thrown when a session policy blocks an operation — for example,
1365
+ * `requireReAuthFor: ['export']` is set and the caller attempts to
1366
+ * call `exportStream()` without re-authenticating for this session.
1367
+ *
1368
+ * The `operation` field names the specific operation that was blocked
1369
+ * (e.g. `'export'`, `'grant'`, `'rotate'`) so the caller can surface
1370
+ * a targeted prompt ("Please re-enter your passphrase to export data").
1371
+ */
1372
+ export declare class SessionPolicyError extends NoydbError {
1373
+ readonly operation: string;
1374
+ constructor(operation: string, message?: string);
1375
+ }
1376
+ /**
1377
+ * Thrown when a `.join()` would exceed its configured row ceiling on
1378
+ * either side. The ceiling defaults to 50,000 per side and can be
1379
+ * overridden via the `{ maxRows }` option on `.join()`.
1380
+ *
1381
+ * Carries both row counts so the error message can show which side
1382
+ * tripped the limit (e.g. "left had 60,000 rows, right had 1,200,
1383
+ * max was 50,000"). The `side` field is machine-readable so test
1384
+ * code and devtools can match on it without regex-parsing the
1385
+ * message.
1386
+ *
1387
+ * The row ceiling exists because joins are bounded in-memory
1388
+ * operations over materialized record sets. Consumers whose
1389
+ * collections genuinely exceed the ceiling should track
1390
+ * (streaming joins over `scan()`) or filter the left side further
1391
+ * with `where()` / `limit()` before joining.
1392
+ */
1393
+ export declare class JoinTooLargeError extends NoydbError {
1394
+ readonly leftRows: number;
1395
+ readonly rightRows: number;
1396
+ readonly maxRows: number;
1397
+ readonly side: 'left' | 'right';
1398
+ constructor(opts: {
1399
+ leftRows: number;
1400
+ rightRows: number;
1401
+ maxRows: number;
1402
+ side: 'left' | 'right';
1403
+ message: string;
1404
+ });
1405
+ }
1406
+ /**
1407
+ * Thrown by `.crossJoin()` when the cumulative cartesian product (or lateral
1408
+ * filtered count) exceeds the configured ceiling. Check before allocating.
1409
+ * Mirrors the pattern of `JoinTooLargeError` and the `.join()` row ceiling.
1410
+ *
1411
+ * @see CrossJoinClause.maxRows — per-clause override
1412
+ * @see DEFAULT_CROSS_JOIN_MAX_ROWS — package default (50_000)
1413
+ */
1414
+ export declare class CrossJoinTooLargeError extends NoydbError {
1415
+ readonly target: string;
1416
+ readonly expected: number;
1417
+ readonly limit: number;
1418
+ constructor(opts: {
1419
+ target: string;
1420
+ expected: number;
1421
+ limit: number;
1422
+ });
1423
+ }
1424
+ /**
1425
+ * Thrown at cross-join execution time when the target collection is not
1426
+ * reachable from the current vault. The left collection is included in the
1427
+ * message for context.
1428
+ */
1429
+ export declare class CrossJoinSourceUnknownError extends NoydbError {
1430
+ readonly target: string;
1431
+ readonly leftCollection: string;
1432
+ constructor(target: string, leftCollection: string);
1433
+ }
1434
+ /**
1435
+ * Thrown by `.join()` in strict `ref()` mode when a left-side record
1436
+ * points at a right-side id that does not exist in the target
1437
+ * collection.
1438
+ *
1439
+ * Distinct from `RefIntegrityError` so test code can pattern-match
1440
+ * on the *read-time* dangling case without catching *write-time*
1441
+ * integrity violations. Both indicate "ref points at nothing" but
1442
+ * happen at different lifecycle phases and deserve different
1443
+ * remediation in documentation: a RefIntegrityError on `put()`
1444
+ * means the input is invalid; a DanglingReferenceError on `.join()`
1445
+ * means stored data has drifted and `vault.checkIntegrity()`
1446
+ * is the right tool to find the full set of orphans.
1447
+ */
1448
+ export declare class DanglingReferenceError extends NoydbError {
1449
+ readonly field: string;
1450
+ readonly target: string;
1451
+ readonly refId: string;
1452
+ constructor(opts: {
1453
+ field: string;
1454
+ target: string;
1455
+ refId: string;
1456
+ message: string;
1457
+ });
1458
+ }
1459
+ /**
1460
+ * Thrown by {@link sanitizeFilename} when an input filename cannot be
1461
+ * made safe — NUL byte, empty after normalization, missing
1462
+ * `opaqueId` for the opaque profile, `..` segment, or a `maxBytes`
1463
+ * cap too small to hold a single code point.
1464
+ */
1465
+ export declare class FilenameSanitizationError extends NoydbError {
1466
+ constructor(message: string);
1467
+ }
1468
+ /**
1469
+ * Thrown when a write target resolves OUTSIDE the requested
1470
+ * directory after sanitization — the canonical Zip-Slip class. The
1471
+ * sanitizer's job is to strip path-traversal segments; this error
1472
+ * is the defense-in-depth fallback at the FS write site.
1473
+ */
1474
+ export declare class PathEscapeError extends NoydbError {
1475
+ readonly attempted: string;
1476
+ readonly targetDir: string;
1477
+ constructor(opts: {
1478
+ attempted: string;
1479
+ targetDir: string;
1480
+ });
1481
+ }
1482
+ /**
1483
+ * Thrown at vault open if the derivation graph contains a cycle.
1484
+ * `path` is the offending chain (e.g. `['a', 'b', 'c', 'a']`).
1485
+ */
1486
+ export declare class DerivationCycleError extends NoydbError {
1487
+ readonly path: readonly string[];
1488
+ constructor(path: readonly string[]);
1489
+ }
1490
+ /**
1491
+ * Thrown when a cascade of source → output → source → … exceeds the
1492
+ * configured `maxDepth` (default 5).
1493
+ */
1494
+ export declare class DerivationDepthError extends NoydbError {
1495
+ readonly limit: number;
1496
+ readonly attempted: number;
1497
+ constructor(limit: number, attempted: number);
1498
+ }
1499
+ /**
1500
+ * Thrown at registration if a `withDerivation` strategy references an
1501
+ * output `collection` that isn't otherwise declared (no schema, no use
1502
+ * elsewhere). Surfacing this early catches typos in collection names.
1503
+ */
1504
+ export declare class DerivationOutputUnknownError extends NoydbError {
1505
+ readonly collection: string;
1506
+ constructor(collection: string);
1507
+ }
1508
+ /**
1509
+ * Thrown when the user's `derive` function returns a value that doesn't
1510
+ * match the declared output spec (e.g. wrong shape, wrong key set).
1511
+ */
1512
+ export declare class DerivationOutputShapeError extends NoydbError {
1513
+ readonly outputKey: string;
1514
+ constructor(outputKey: string, detail: string);
1515
+ }
1516
+ /**
1517
+ * Thrown by array-shape derivations when the `derive` function
1518
+ * returns more rows than the output's `maxFanout` cap. The cap exists
1519
+ * to keep dispatch cost bounded — without it a single source-row
1520
+ * update could fan out to thousands of derived rows, dominating the
1521
+ * write path.
1522
+ *
1523
+ * Defaults to `maxFanout: 64`. Raise on the output spec for
1524
+ * carry-forward expansion cases (e.g. monthly rows across multi-year
1525
+ * contracts).
1526
+ */
1527
+ export declare class DerivationCapExceededError extends NoydbError {
1528
+ readonly outputKey: string;
1529
+ readonly returned: number;
1530
+ readonly maxFanout: number;
1531
+ constructor(outputKey: string, returned: number, maxFanout: number);
1532
+ }
1533
+ /**
1534
+ * Thrown at vault open if the materialized-view graph contains a
1535
+ * cycle. `path` is the offending chain (e.g. `['a-mv', 'b-mv', 'a-mv']`).
1536
+ * Detected by the same shared DFS that catches `DerivationCycleError`;
1537
+ * surfaces with a distinct error type so consumers can disambiguate.
1538
+ */
1539
+ export declare class MaterializedViewCycleError extends NoydbError {
1540
+ readonly path: readonly string[];
1541
+ constructor(path: readonly string[]);
1542
+ }
1543
+ /**
1544
+ * Thrown at MV registration if the query references a source
1545
+ * collection that isn't declared on the vault. Surfacing this early
1546
+ * catches typos in collection names.
1547
+ */
1548
+ export declare class MaterializedViewSourceUnknownError extends NoydbError {
1549
+ readonly mvName: string;
1550
+ readonly collection: string;
1551
+ constructor(mvName: string, collection: string);
1552
+ }
1553
+ /**
1554
+ * Thrown by the MV executor when a refresh produces more rows than
1555
+ * the configured ceiling. Default ceiling is 100k rows; override
1556
+ * per-MV via `maxRows`. Mirrors `JoinTooLargeError` /
1557
+ * `GroupCardinalityError` from the query DSL — the explosion is
1558
+ * detected BEFORE writes hit the store, so the source-write
1559
+ * transaction can roll back cleanly via strict-mode.
1560
+ */
1561
+ export declare class MaterializedViewTooLargeError extends NoydbError {
1562
+ readonly mvName: string;
1563
+ readonly expected: number;
1564
+ readonly limit: number;
1565
+ constructor(mvName: string, expected: number, limit: number);
1566
+ }
1567
+ /**
1568
+ * Thrown by `withMaterializedView()` at registration time when the
1569
+ * strategy is structurally malformed. Distinct from
1570
+ * `MaterializedViewSourceUnknownError` (the source list is well-formed
1571
+ * but names a collection the vault doesn't know) and
1572
+ * `MaterializedViewCycleError` (the source graph has a cycle): this
1573
+ * error fires before either check, at the moment the spec is being
1574
+ * normalized.
1575
+ *
1576
+ * Today the trigger cases are all about the `query` / `unionSources`
1577
+ * dichotomy:
1578
+ * - both `query` and `unionSources` were set (mutually exclusive),
1579
+ * - neither `query` nor `unionSources` was set,
1580
+ * - `unionSources` has fewer than 2 arms,
1581
+ * - two arms in `unionSources` reference the same `collection`.
1582
+ *
1583
+ * The error message is prefixed with `[noy-db] withMaterializedView:`
1584
+ * so it's grep-friendly in logs and looks consistent with the existing
1585
+ * `ValidationError` messages from the same factory.
1586
+ */
1587
+ export declare class MaterializedViewConfigError extends NoydbError {
1588
+ constructor(message: string);
1589
+ }
1590
+ /**
1591
+ * Thrown at vault open when a `withOverlayedView` declaration uses
1592
+ * another virtual-overlay name as its `base`. Multi-overlay stacking
1593
+ * is a v2 non-goal — the shallow expansion in
1594
+ * `QueryDependencyAnalyzer` would truncate at the inner overlay
1595
+ * name, leaving downstream MVs silently stale.
1596
+ */
1597
+ export declare class OverlayBaseIsVirtualError extends NoydbError {
1598
+ readonly overlayName: string;
1599
+ readonly base: string;
1600
+ constructor(overlayName: string, base: string);
1601
+ }
1602
+ /**
1603
+ * Thrown at vault open when a `withOverlayedView`'s `overlay`
1604
+ * references an unknown collection or an MV-owned collection. The
1605
+ * overlay collection is user-writable; MV-owned collections aren't.
1606
+ */
1607
+ export declare class OverlayCollectionUnavailableError extends NoydbError {
1608
+ readonly overlayName: string;
1609
+ readonly overlay: string;
1610
+ constructor(overlayName: string, overlay: string);
1611
+ }
1612
+ /**
1613
+ * Thrown at vault open when a `withOverlayedView`'s virtual `name`
1614
+ * collides with an MV output or a concrete source collection.
1615
+ */
1616
+ export declare class OverlayNameCollisionError extends NoydbError {
1617
+ readonly overlayName: string;
1618
+ constructor(overlayName: string);
1619
+ }
1620
+ /**
1621
+ * Thrown by the virtual overlay's `put(id, record)` when the
1622
+ * consumer-supplied `id` doesn't match `rowKey(record)`. Catches
1623
+ * fat-finger separator typos that would otherwise silently produce
1624
+ * orphaned overlay rows. Direct writes to the underlying overlay
1625
+ * collection (bypass the virtual layer) skip this validation.
1626
+ */
1627
+ export declare class OverlayIdMismatchError extends NoydbError {
1628
+ readonly actual: string;
1629
+ readonly expected: string;
1630
+ constructor(actual: string, expected: string);
1631
+ }
1632
+ /**
1633
+ * Thrown when a requested snapshot version does not exist in the
1634
+ * snapshot store — either it was never created, was pruned by the
1635
+ * retention policy, or was deleted manually.
1636
+ *
1637
+ * The `version` field carries the key that was looked up so callers
1638
+ * can surface an actionable "snapshot X not found" message without
1639
+ * parsing the error string.
1640
+ */
1641
+ export declare class SnapshotNotFoundError extends NoydbError {
1642
+ readonly version: string;
1643
+ constructor(version: string);
1644
+ }
1645
+ /**
1646
+ * Thrown when a write targets a partition key that has no shard and
1647
+ * `sharding.autoCreate` is disabled.
1648
+ */
1649
+ export declare class UnknownShardError extends NoydbError {
1650
+ readonly partitionKey: string;
1651
+ constructor(partitionKey: string, groupName: string);
1652
+ }
1653
+ /**
1654
+ * Thrown by `createShard` when the registry has a row for a partition
1655
+ * but the corresponding vault is not provisioned in the store —
1656
+ * a registry/store divergence. Refusing to recreate avoids masking
1657
+ * data loss.
1658
+ */
1659
+ export declare class ShardProvisioningError extends NoydbError {
1660
+ readonly vaultId: string;
1661
+ constructor(vaultId: string, partitionKey: string);
1662
+ }
1663
+ /**
1664
+ * Thrown by `VaultGroup.createShard` when `sharding.regionOf` resolves a
1665
+ * required region that doesn't match the placement backend's
1666
+ * `capabilities.region` — the shard would land on a non-compliant backend
1667
+ * (a data-residency violation). Raised BEFORE provisioning, so no
1668
+ * vault is created.
1669
+ */
1670
+ export declare class DataResidencyError extends NoydbError {
1671
+ readonly vaultId: string;
1672
+ readonly requiredRegion: string;
1673
+ readonly backendRegion: string | undefined;
1674
+ constructor(vaultId: string, requiredRegion: string, backendRegion: string | undefined);
1675
+ }
1676
+ /**
1677
+ * Thrown by `ShardedQuery.crossShardJoin` / `broadcastJoin` for
1678
+ * deterministic, query-shaping errors: an undeclared join ref (which
1679
+ * would fail identically on every shard), or calling a deferred
1680
+ * reactive/aggregate surface on a query that already carries join legs.
1681
+ */
1682
+ export declare class CrossShardJoinError extends NoydbError {
1683
+ constructor(message: string);
1684
+ }
1685
+ /** Thrown when a VaultGroup references a template name that was never registered. */
1686
+ export declare class VaultTemplateNotFoundError extends NoydbError {
1687
+ readonly templateName: string;
1688
+ constructor(templateName: string);
1689
+ }
1690
+ /**
1691
+ * Thrown when `vault.forget(subjectId)` is called on a vault whose
1692
+ * `createNoydb({ forgetStrategy })` declared no subject fields (the
1693
+ * default `NO_FORGET`). GDPR crypto-shred needs a declared subject →
1694
+ * record index to know which records belong to a data subject; without
1695
+ * one there is nothing to erase and a silent no-op would be a dangerous
1696
+ * false "erased" signal. Configure with
1697
+ * `forgetStrategy: withForgetCascade({ subjects: { invoices: 'buyerId' } })`.
1698
+ */
1699
+ export declare class ForgetStrategyNotConfiguredError extends NoydbError {
1700
+ constructor(message?: string);
1701
+ }
1702
+ /**
1703
+ * Thrown by `openSealedRecord()` when the sealed CEK's binding has passed its
1704
+ * `expiresAt`. Surfaced on two checks: a cheap fast-path check on the delivery
1705
+ * envelope's clear-text `expiresAt`, and the AUTHORITATIVE check on the
1706
+ * `expiresAt` inside the sealed binding (the latter cannot be forged by editing
1707
+ * the delivery envelope). Distinct from {@link KeyringExpiredError} (bundle-slot
1708
+ * expiry) so a host can tell "this single-record grant lapsed" from a keyring-
1709
+ * level expiry.
1710
+ */
1711
+ export declare class SealedRecordExpiredError extends NoydbError {
1712
+ readonly expiresAt: string;
1713
+ constructor(expiresAt: string);
1714
+ }
1715
+ /**
1716
+ * Thrown by `openSealedRecord()` when the sealed binding's
1717
+ * `{collection, id}` does not match the record envelope the host is trying to
1718
+ * decrypt. This is the host-denial boundary: a CEK sealed for record A cannot
1719
+ * be replayed against record B's envelope. (A CEK sealed for a PRE-rotation
1720
+ * version of a record, applied to the POST-rotation live envelope, is a
1721
+ * different failure — the binding still matches `{collection, id}` so it gets
1722
+ * past this check, and the AES-GCM auth-tag failure surfaces as
1723
+ * {@link TamperedError} instead.)
1724
+ */
1725
+ export declare class SealedRecordMismatchError extends NoydbError {
1726
+ readonly expected: {
1727
+ collection: string;
1728
+ id: string;
1729
+ };
1730
+ readonly actual: {
1731
+ collection: string;
1732
+ id: string;
1733
+ };
1734
+ constructor(expected: {
1735
+ collection: string;
1736
+ id: string;
1737
+ }, actual: {
1738
+ collection: string;
1739
+ id: string;
1740
+ });
1741
+ }
1742
+ /**
1743
+ * Thrown by `vault.sealRecordToHost()` / `vault.rotateRecordCek()` when the
1744
+ * target record has no live envelope, or its live envelope carries no `_cek`
1745
+ * (a legacy / non-`perRecordKeys` collection has nothing record-scoped to
1746
+ * seal — its body is keyed off the shared collection DEK, which sealing
1747
+ * deliberately never exposes).
1748
+ */
1749
+ export declare class RecordCekNotFoundError extends NoydbError {
1750
+ readonly collection: string;
1751
+ readonly id: string;
1752
+ constructor(collection: string, id: string);
1753
+ }
1754
+ /**
1755
+ * Thrown when a stored vector's dimension does not match the dimension declared
1756
+ * by the active `EmbeddingDescriptor`. The `field`, `expected`, and `actual`
1757
+ * properties are machine-readable for switch blocks and logging.
1758
+ */
1759
+ export declare class EmbeddingDimMismatchError extends NoydbError {
1760
+ readonly field: string;
1761
+ readonly expected: number;
1762
+ readonly actual: number;
1763
+ constructor(field: string, expected: number, actual: number);
1764
+ }
1765
+ /**
1766
+ * Thrown when the model tag on a stored vector does not match the `model`
1767
+ * declared by the active `EmbeddingDescriptor`. Signals that the encoder was
1768
+ * swapped without re-indexing; call `vault.embeddings.reindex()` to rebuild.
1769
+ */
1770
+ export declare class EmbeddingModelMismatchError extends NoydbError {
1771
+ readonly expected: string;
1772
+ readonly found: string;
1773
+ constructor(expected: string, found: string);
1774
+ }
1775
+ /**
1776
+ * Thrown when a user-envelope payload exceeds {@link USER_ENVELOPE_MAX_BYTES}
1777
+ * after JSON-serialization. The error carries the actual size so callers
1778
+ * can decide whether to trim or split.
1779
+ */
1780
+ export declare class UserEnvelopeOversizedError extends NoydbError {
1781
+ readonly bytes: number;
1782
+ readonly limit: number;
1783
+ constructor(bytes: number, limit?: number);
1784
+ }
1785
+ /**
1786
+ * Why a gate denied a request. Stable across hub versions so consumers
1787
+ * can switch on the value in error UIs.
1788
+ */
1789
+ export type PolicyDenyReason = 'insufficient-tier' | 'missing-factor' | 'stale-proof' | 'disabled' | 'shared-device-blocked';
1790
+ /**
1791
+ * Thrown by {@link checkGate} when the active session does not meet
1792
+ * the gate's requirements. Carries the gate name, the reason, and the
1793
+ * full required {@link GatePolicy} so error UIs can prompt the user
1794
+ * for the missing factor without re-reading the policy document.
1795
+ */
1796
+ export declare class PolicyDeniedError extends NoydbError {
1797
+ readonly gate: GateName;
1798
+ readonly reason: PolicyDenyReason;
1799
+ readonly required: GatePolicy;
1800
+ constructor(gate: GateName, reason: PolicyDenyReason, required: GatePolicy, message?: string);
1801
+ }
1802
+ /**
1803
+ * Raised by `createNoydb({ ... })` when the developer omits a recovery
1804
+ * profile and `recover-passphrase` is not explicitly disabled. Vaults
1805
+ * MUST have at least one recovery path enrolled before being
1806
+ * production-ready (paper, shamir, multi-channel, or admin-mediated).
1807
+ *
1808
+ * The error message carries a pointer to the recovery design docs.
1809
+ */
1810
+ export declare class RecoveryNotEnrolledError extends NoydbError {
1811
+ constructor(message?: string);
1812
+ }
1813
+ /**
1814
+ * Raised by `openVault` when a managed-passphrase-mode vault has no
1815
+ * STRONG recovery profile enrolled.
1816
+ *
1817
+ * Managed mode means the user never types a passphrase — the unlock
1818
+ * material lives in a `SealingKeyProvider` (`at-*` package). If that
1819
+ * provider's key is lost AND no strong recovery is enrolled, the
1820
+ * vault is irrecoverable. To prevent that footgun, managed-mode vaults
1821
+ * require at least one strong recovery profile (Shamir today;
1822
+ * multi-channel / admin-mediated when those ship).
1823
+ *
1824
+ * Paper recovery alone is NOT strong under managed mode: the user has
1825
+ * no memorized passphrase to fall back on, so losing the paper sheet =
1826
+ * losing every record permanently.
1827
+ *
1828
+ * Bootstrap with `db.openVaultAndEnrollRecovery(vault, { recovery: [{ profile: "shamir", k, n }] })`
1829
+ * to atomically create-and-enroll, or call `db.enrollRecovery(vault, { profile: "shamir", ... })`
1830
+ * separately before re-attempting `openVault`.
1831
+ */
1832
+ export declare class ManagedRecoveryNotEnrolledError extends NoydbError {
1833
+ readonly vault: string;
1834
+ constructor(vault: string);
1835
+ }
1836
+ /**
1837
+ * Raised by `db.recoverPassphrase` / `db.enrollRecovery` /
1838
+ * `db.rotateRecovery` when the developer requests a recovery profile
1839
+ * not yet wired in this hub release.
1840
+ *
1841
+ * Implemented: `paper` and `shamir`.
1842
+ * Pending: `multi-channel` and `admin-mediated` (follow-up slices).
1843
+ *
1844
+ * The carried `profile` and `tracking` fields let consumers steer the
1845
+ * UI ("multi-channel recovery is not yet wired up — open issue #N to follow").
1846
+ */
1847
+ export declare class RecoveryProfileNotImplementedError extends NoydbError {
1848
+ readonly profile: string;
1849
+ readonly tracking: string;
1850
+ constructor(profile: string, tracking: string);
1851
+ }
1852
+ /**
1853
+ * Thrown by a `kernel/enclave` fork's **optional groups** — sealing,
1854
+ * deterministic, per-record-key lifecycle — when that fork's crypto
1855
+ * engine does not implement the requested behavior.
1856
+ *
1857
+ * The enclave barrel is a frozen fork-swap contract: every symbol must
1858
+ * exist, but the optional groups may refuse to work rather than
1859
+ * implement the full reference semantics. The unconditional core
1860
+ * (crypto ops, `RecordCodec`, tombstone) must never throw this — those
1861
+ * groups are load-bearing for every consumer regardless of which
1862
+ * enclave is wired in. noy-db's own reference enclave supports every
1863
+ * group, so this error is never thrown by `@noy-db/hub` itself; it
1864
+ * exists for fork authors to signal "my enclave doesn't do X" with a
1865
+ * stable, catchable code instead of an ad hoc throw.
1866
+ */
1867
+ export declare class EnclaveNotSupportedError extends NoydbError {
1868
+ /** The optional group that is not supported by this enclave. */
1869
+ readonly group: 'sealing' | 'deterministic' | 'per-record-keys';
1870
+ constructor(group: 'sealing' | 'deterministic' | 'per-record-keys', detail?: string);
1871
+ }
1872
+ /**
1873
+ * Raised when a collection's `classifiedFields` configuration is invalid
1874
+ * (e.g. a claimed field name collides with a rider companion or another
1875
+ * classified field). Homed in `kernel/errors.ts` (rather than the classified
1876
+ * feature module) so `kernel/enclave/classify/*` can throw it without
1877
+ * importing with-*; the classified feature module re-exports it under the
1878
+ * same name for backward-compatible import paths.
1879
+ */
1880
+ export declare class ClassifiedConfigError extends Error {
1881
+ readonly collection: string;
1882
+ constructor(collection: string, message: string);
1883
+ }
1884
+ /**
1885
+ * Raised by `collection.reveal()` when a field cannot be revealed — unknown
1886
+ * field, `storage:'never'`, or missing record. See {@link ClassifiedConfigError}
1887
+ * for why this lives in `kernel/errors.ts`.
1888
+ */
1889
+ export declare class ClassifiedRevealError extends Error {
1890
+ readonly collection: string;
1891
+ readonly field: string;
1892
+ constructor(collection: string, field: string, detail: string);
1893
+ }
1894
+ /**
1895
+ * Raised by the classified verify path (`storage:'digest-only'`, stage 2)
1896
+ * when a field cannot be verified — unknown field, not digest-only, or no
1897
+ * digest stored yet.
1898
+ */
1899
+ export declare class ClassifiedVerifyError extends Error {
1900
+ readonly collection: string;
1901
+ readonly field: string;
1902
+ constructor(collection: string, field: string, detail: string);
1903
+ }
1904
+ /**
1905
+ * Raised by the classified rotation path (stage 2) when a new value is
1906
+ * refused — e.g. reuse of one of the last N values (`notLastN`).
1907
+ */
1908
+ export declare class ClassifiedRotationError extends Error {
1909
+ readonly collection: string;
1910
+ readonly field: string;
1911
+ constructor(collection: string, field: string, detail: string);
1912
+ }
1913
+ /**
1914
+ * A satellite-collection declaration or operation violated the refusal
1915
+ * matrix (R-S1…R-S10) of the satellite-collections design. The message
1916
+ * always names the R-S id.
1917
+ */
1918
+ export declare class SatelliteConfigError extends NoydbError {
1919
+ constructor(message: string, options?: {
1920
+ readonly cause?: unknown;
1921
+ });
1922
+ }