@noy-db/hub 0.2.0-pre.3 → 0.2.0-pre.31

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 (384) hide show
  1. package/README.md +126 -0
  2. package/dist/adapter/index.d.ts +9 -0
  3. package/dist/adapter/index.js +14 -0
  4. package/dist/aggregate/index.d.ts +3 -2
  5. package/dist/aggregate/index.js +10 -8
  6. package/dist/aggregate/index.js.map +1 -1
  7. package/dist/attestation/index.d.ts +7 -5
  8. package/dist/attestation/index.js +7 -6
  9. package/dist/attestation/index.js.map +1 -1
  10. package/dist/blobs/index.d.ts +9 -7
  11. package/dist/blobs/index.js +12 -6
  12. package/dist/blobs/index.js.map +1 -1
  13. package/dist/bundle/index.d.ts +29 -18
  14. package/dist/bundle/index.js +53 -192
  15. package/dist/bundle/index.js.map +1 -1
  16. package/dist/{chunk-75QDHSE4.js → chunk-2QDWRK3B.js} +5 -5
  17. package/dist/{chunk-74JEQFMT.js → chunk-2UT7HJJR.js} +5 -5
  18. package/dist/chunk-2UT7HJJR.js.map +1 -0
  19. package/dist/{chunk-FCDO7UAO.js → chunk-2ZYIN3BL.js} +2 -2
  20. package/dist/{chunk-BFI3RS42.js → chunk-33EQCZXE.js} +2 -2
  21. package/dist/chunk-33EQCZXE.js.map +1 -0
  22. package/dist/{chunk-WRLHNG6H.js → chunk-4K4QKYK4.js} +4 -4
  23. package/dist/chunk-4K4QKYK4.js.map +1 -0
  24. package/dist/{chunk-HGZ7DC5H.js → chunk-4L6N56B4.js} +2 -2
  25. package/dist/chunk-4L6N56B4.js.map +1 -0
  26. package/dist/{chunk-YMYK7US4.js → chunk-4YD7VZH4.js} +2 -2
  27. package/dist/chunk-4YD7VZH4.js.map +1 -0
  28. package/dist/{chunk-ZUMGGHRB.js → chunk-5PTX7PKD.js} +4 -4
  29. package/dist/{chunk-QAU5HM6Q.js → chunk-6EKRQ7QF.js} +3 -3
  30. package/dist/{chunk-ZC2AAE6J.js → chunk-7GPQPLGO.js} +19 -4
  31. package/dist/chunk-7GPQPLGO.js.map +1 -0
  32. package/dist/{chunk-EPK6A3WJ.js → chunk-A3JMGXPG.js} +2 -2
  33. package/dist/chunk-A3JMGXPG.js.map +1 -0
  34. package/dist/{chunk-FXQYZNOW.js → chunk-A7DNZVAV.js} +1 -1
  35. package/dist/chunk-A7DNZVAV.js.map +1 -0
  36. package/dist/{chunk-UMLVJTYV.js → chunk-ADB7GPM3.js} +7 -4
  37. package/dist/chunk-ADB7GPM3.js.map +1 -0
  38. package/dist/{chunk-YL2DR3HY.js → chunk-ASIGWYRA.js} +2 -2
  39. package/dist/chunk-ASIGWYRA.js.map +1 -0
  40. package/dist/{chunk-2EYC3WDT.js → chunk-AWU4JF7C.js} +93 -93
  41. package/dist/chunk-AWU4JF7C.js.map +1 -0
  42. package/dist/chunk-BEZ2EV43.js +129 -0
  43. package/dist/chunk-BEZ2EV43.js.map +1 -0
  44. package/dist/{chunk-IS5HWQO7.js → chunk-CIZDUAHI.js} +30 -4
  45. package/dist/chunk-CIZDUAHI.js.map +1 -0
  46. package/dist/{chunk-4OQWR46B.js → chunk-CUPTCF4R.js} +5 -5
  47. package/dist/chunk-CUPTCF4R.js.map +1 -0
  48. package/dist/{chunk-5ZGZ6HIZ.js → chunk-DEE4CRYN.js} +30 -7
  49. package/dist/chunk-DEE4CRYN.js.map +1 -0
  50. package/dist/{chunk-UOF74WQY.js → chunk-E2MDPPOC.js} +37 -2
  51. package/dist/chunk-E2MDPPOC.js.map +1 -0
  52. package/dist/{chunk-SAVQ6E2O.js → chunk-FFKQ65YX.js} +10 -3
  53. package/dist/chunk-FFKQ65YX.js.map +1 -0
  54. package/dist/{chunk-2XLVPKXG.js → chunk-G7ALNCQH.js} +10 -2
  55. package/dist/chunk-G7ALNCQH.js.map +1 -0
  56. package/dist/chunk-GGXN73NM.js +252 -0
  57. package/dist/chunk-GGXN73NM.js.map +1 -0
  58. package/dist/{chunk-UVPGJXVO.js → chunk-JOJPBZSZ.js} +5 -5
  59. package/dist/{chunk-YDLAFP36.js → chunk-JZ5DS4DP.js} +346 -3
  60. package/dist/chunk-JZ5DS4DP.js.map +1 -0
  61. package/dist/{chunk-KMI2NBBF.js → chunk-K4JID2ZE.js} +44 -8
  62. package/dist/chunk-K4JID2ZE.js.map +1 -0
  63. package/dist/{aggregate/index.cjs → chunk-K6NVSHAH.js} +241 -210
  64. package/dist/chunk-K6NVSHAH.js.map +1 -0
  65. package/dist/chunk-KJ3K5VZM.js +524 -0
  66. package/dist/chunk-KJ3K5VZM.js.map +1 -0
  67. package/dist/chunk-L5HHBOMS.js +232 -0
  68. package/dist/chunk-L5HHBOMS.js.map +1 -0
  69. package/dist/{chunk-YK72A4IT.js → chunk-LBILABKZ.js} +4 -4
  70. package/dist/chunk-LXKBG52H.js +151 -0
  71. package/dist/chunk-LXKBG52H.js.map +1 -0
  72. package/dist/{chunk-NGSPBLLE.js → chunk-MPIZQGFA.js} +50 -20
  73. package/dist/chunk-MPIZQGFA.js.map +1 -0
  74. package/dist/{chunk-4X2S7PBF.js → chunk-MRJPSXPE.js} +84 -70
  75. package/dist/chunk-MRJPSXPE.js.map +1 -0
  76. package/dist/{chunk-6S3LLAQ5.js → chunk-MSMDDDDJ.js} +3 -3
  77. package/dist/{chunk-6S3LLAQ5.js.map → chunk-MSMDDDDJ.js.map} +1 -1
  78. package/dist/{chunk-GAUBWHAF.js → chunk-OCYFFBZS.js} +4 -4
  79. package/dist/{chunk-NCO2JGKK.js → chunk-PDVP3C2I.js} +1 -1
  80. package/dist/chunk-PDVP3C2I.js.map +1 -0
  81. package/dist/chunk-PZ5AY32C.js +10 -0
  82. package/dist/{chunk-P6256WTJ.js → chunk-QBLPY44S.js} +3 -3
  83. package/dist/chunk-QBLPY44S.js.map +1 -0
  84. package/dist/{query/index.cjs → chunk-QGBBQKDS.js} +706 -831
  85. package/dist/chunk-QGBBQKDS.js.map +1 -0
  86. package/dist/{chunk-FS7A4XNF.js → chunk-QWJCNXH2.js} +3 -3
  87. package/dist/chunk-QXWJQ7UU.js +380 -0
  88. package/dist/chunk-QXWJQ7UU.js.map +1 -0
  89. package/dist/{chunk-GDTCGIPX.js → chunk-RCB6GWTC.js} +27 -5
  90. package/dist/chunk-RCB6GWTC.js.map +1 -0
  91. package/dist/{chunk-K5PVGKE4.js → chunk-SAAJYSVV.js} +2 -2
  92. package/dist/{chunk-G7PAZ3TD.js → chunk-SHJ3BRTZ.js} +46 -10
  93. package/dist/chunk-SHJ3BRTZ.js.map +1 -0
  94. package/dist/chunk-SQXTKZL7.js +125 -0
  95. package/dist/chunk-SQXTKZL7.js.map +1 -0
  96. package/dist/chunk-STNPB3UM.js +9 -0
  97. package/dist/chunk-STNPB3UM.js.map +1 -0
  98. package/dist/{chunk-NSLTPGEN.js → chunk-TMUMMAWV.js} +12 -2
  99. package/dist/{chunk-NSLTPGEN.js.map → chunk-TMUMMAWV.js.map} +1 -1
  100. package/dist/{chunk-LS3JLEIB.js → chunk-TZGWI5AX.js} +4 -4
  101. package/dist/{chunk-GD3BGKAR.js → chunk-UBF5JEOJ.js} +44 -5
  102. package/dist/chunk-UBF5JEOJ.js.map +1 -0
  103. package/dist/{chunk-T6HQMVML.js → chunk-W5NVNJDX.js} +5250 -801
  104. package/dist/chunk-W5NVNJDX.js.map +1 -0
  105. package/dist/chunk-XAYDHD2O.js +123 -0
  106. package/dist/chunk-XAYDHD2O.js.map +1 -0
  107. package/dist/{chunk-LOL725S4.js → chunk-XYW2CSCI.js} +31 -3
  108. package/dist/chunk-XYW2CSCI.js.map +1 -0
  109. package/dist/{chunk-TLFUDXVV.js → chunk-ZCMOS4H2.js} +31 -10
  110. package/dist/chunk-ZCMOS4H2.js.map +1 -0
  111. package/dist/{chunk-FBMXWVGP.js → chunk-ZK66B5EY.js} +450 -30
  112. package/dist/chunk-ZK66B5EY.js.map +1 -0
  113. package/dist/{chunk-GVXBHCZ2.js → chunk-ZPJSQPQH.js} +66 -7
  114. package/dist/chunk-ZPJSQPQH.js.map +1 -0
  115. package/dist/consent/index.d.ts +8 -6
  116. package/dist/consent/index.js +4 -3
  117. package/dist/consent/index.js.map +1 -1
  118. package/dist/crdt/index.js +1 -0
  119. package/dist/crdt/index.js.map +1 -1
  120. package/dist/{crypto-H2Y3DDFW.js → crypto-OSIV2IIW.js} +8 -3
  121. package/dist/{ulid-CiM2OAeM.d.ts → decrypt-partition-CXS5KopB.d.ts} +37 -82
  122. package/dist/{delegation-QSC7G5QC.js → delegation-BQTRJATI.js} +6 -5
  123. package/dist/derivations/index.d.ts +11 -9
  124. package/dist/derivations/index.js +9 -6
  125. package/dist/{dev-unlock-Cf2B7Kih.d.ts → dev-unlock-CnHTTVea.d.ts} +1 -1
  126. package/dist/discriminant-BN9REW3o.d.ts +60 -0
  127. package/dist/errors-BAWO5Z5a.d.ts +1500 -0
  128. package/dist/executor-KYSKFJ2R.js +9 -0
  129. package/dist/executor-M7W3NEKR.js +9 -0
  130. package/dist/executor-VDTDGWO6.js +13 -0
  131. package/dist/{fanout-sidecar-NRBWSLRK.js → fanout-sidecar-AZALISHB.js} +3 -2
  132. package/dist/fanout-sidecar-AZALISHB.js.map +1 -0
  133. package/dist/forget/index.d.ts +1 -0
  134. package/dist/forget/index.js +15 -0
  135. package/dist/guards/index.d.ts +16 -8
  136. package/dist/guards/index.js +12 -5
  137. package/dist/{hash-gVn_uKhp.d.ts → hash-oc5paYl0.d.ts} +1 -1
  138. package/dist/history/index.d.ts +9 -7
  139. package/dist/history/index.js +10 -7
  140. package/dist/history/index.js.map +1 -1
  141. package/dist/i18n/index.d.ts +8 -6
  142. package/dist/i18n/index.js +116 -15
  143. package/dist/i18n/index.js.map +1 -1
  144. package/dist/index-BMmajblo.d.ts +362 -0
  145. package/dist/index-BmhGztUi.d.ts +93 -0
  146. package/dist/{types-D9eB0Rvh.d.ts → index-DHn9lEP0.d.ts} +4305 -1523
  147. package/dist/{index-BF1B2HB9.d.ts → index-Ddm8D3Oo.d.ts} +186 -1151
  148. package/dist/index.d.ts +342 -70
  149. package/dist/index.js +420 -112
  150. package/dist/index.js.map +1 -1
  151. package/dist/indexing/index.d.ts +3 -3
  152. package/dist/indexing/index.js +5 -4
  153. package/dist/indexing/index.js.map +1 -1
  154. package/dist/issue-DPHRF2TI.js +13 -0
  155. package/dist/kernel/index.d.ts +11 -0
  156. package/dist/kernel/index.js +50 -0
  157. package/dist/{lazy-builder-Rpd-V3jP.d.ts → lazy-builder-ChSqcF5t.d.ts} +2 -2
  158. package/dist/{ledger-WOEJUYTP.js → ledger-CI7GSMLB.js} +7 -6
  159. package/dist/materialized-views/index.d.ts +23 -20
  160. package/dist/materialized-views/index.js +9 -7
  161. package/dist/mime-magic-JeLKHRng.d.ts +103 -0
  162. package/dist/noydb-NAU2DTFP.js +40 -0
  163. package/dist/overlay-views/index.d.ts +32 -12
  164. package/dist/overlay-views/index.js +7 -6
  165. package/dist/periods/index.d.ts +8 -6
  166. package/dist/periods/index.js +7 -6
  167. package/dist/{predicate-Dnu81tsS.d.cts → predicate-BmhBSPCH.d.ts} +87 -5
  168. package/dist/{public-envelope-OHQ5UZFM.js → public-envelope-MFMBFJLZ.js} +5 -4
  169. package/dist/query/index.d.ts +4 -3
  170. package/dist/query/index.js +14 -6
  171. package/dist/read-only-facade-3OQRZ3VS.js +8 -0
  172. package/dist/registry-IX5WKK4F.js +8 -0
  173. package/dist/registry-LMHO5265.js +11 -0
  174. package/dist/registry-TXCKWH26.js +9 -0
  175. package/dist/registry-VFEDQSYV.js +9 -0
  176. package/dist/revoke-5PUOZPJJ.js +18 -0
  177. package/dist/revoke-5PUOZPJJ.js.map +1 -0
  178. package/dist/sealed-record/index.d.ts +123 -0
  179. package/dist/sealed-record/index.js +43 -0
  180. package/dist/sealed-record/index.js.map +1 -0
  181. package/dist/session/index.d.ts +9 -7
  182. package/dist/session/index.js +4 -3
  183. package/dist/session/index.js.map +1 -1
  184. package/dist/shadow/index.d.ts +8 -6
  185. package/dist/shadow/index.js +3 -2
  186. package/dist/shadow/index.js.map +1 -1
  187. package/dist/{signer-M4K5HBLD.js → signer-UB5TQOZ6.js} +6 -5
  188. package/dist/signer-UB5TQOZ6.js.map +1 -0
  189. package/dist/snapshots/index.d.ts +30 -0
  190. package/dist/snapshots/index.js +153 -0
  191. package/dist/snapshots/index.js.map +1 -0
  192. package/dist/{stale-PAGCS4K5.js → stale-J3TUF5C5.js} +3 -2
  193. package/dist/stale-J3TUF5C5.js.map +1 -0
  194. package/dist/store/index.d.ts +15 -6
  195. package/dist/store/index.js +3 -2
  196. package/dist/{strategy-DSTrsZ8t.d.ts → strategy-8QGs5KQE.d.ts} +475 -7
  197. package/dist/sync/index.d.ts +7 -5
  198. package/dist/sync/index.js +5 -4
  199. package/dist/sync/index.js.map +1 -1
  200. package/dist/team/index.d.ts +8 -6
  201. package/dist/team/index.js +9 -8
  202. package/dist/transition-guard-Dy3NioQr.d.ts +165 -0
  203. package/dist/tx/index.d.ts +26 -8
  204. package/dist/tx/index.js +10 -5
  205. package/dist/tx/index.js.map +1 -1
  206. package/dist/ulid-DRH25k3y.d.ts +66 -0
  207. package/dist/{ulid-COREQ2RQ.js → ulid-KEPZMD2N.js} +2 -1
  208. package/dist/ulid-KEPZMD2N.js.map +1 -0
  209. package/dist/util/index.d.ts +2 -0
  210. package/dist/util/index.js +6 -1
  211. package/dist/util/index.js.map +1 -1
  212. package/dist/{with-materialized-view-qtoJ3xKJ.d.ts → with-materialized-view-DIVeez0W.d.ts} +2 -2
  213. package/dist/{with-overlayed-view-DFaRfgMr.d.ts → with-overlayed-view-DVZrc5Hb.d.ts} +2 -2
  214. package/dist/with-rollup-CbU-O4wP.d.ts +47 -0
  215. package/dist/zod-HAJM7LMS.js +14763 -0
  216. package/dist/zod-HAJM7LMS.js.map +1 -0
  217. package/package.json +73 -191
  218. package/dist/aggregate/index.cjs.map +0 -1
  219. package/dist/aggregate/index.d.cts +0 -38
  220. package/dist/attestation/index.cjs +0 -305
  221. package/dist/attestation/index.cjs.map +0 -1
  222. package/dist/attestation/index.d.cts +0 -52
  223. package/dist/blobs/index.cjs +0 -1480
  224. package/dist/blobs/index.cjs.map +0 -1
  225. package/dist/blobs/index.d.cts +0 -46
  226. package/dist/bundle/index.cjs +0 -18561
  227. package/dist/bundle/index.cjs.map +0 -1
  228. package/dist/bundle/index.d.cts +0 -176
  229. package/dist/chunk-2EYC3WDT.js.map +0 -1
  230. package/dist/chunk-2XLVPKXG.js.map +0 -1
  231. package/dist/chunk-4OQWR46B.js.map +0 -1
  232. package/dist/chunk-4UBOTYP5.js +0 -1367
  233. package/dist/chunk-4UBOTYP5.js.map +0 -1
  234. package/dist/chunk-4X2S7PBF.js.map +0 -1
  235. package/dist/chunk-5YHWBPOT.js +0 -19
  236. package/dist/chunk-5YHWBPOT.js.map +0 -1
  237. package/dist/chunk-5ZGZ6HIZ.js.map +0 -1
  238. package/dist/chunk-74JEQFMT.js.map +0 -1
  239. package/dist/chunk-A6SWRXUQ.js +0 -118
  240. package/dist/chunk-A6SWRXUQ.js.map +0 -1
  241. package/dist/chunk-BFI3RS42.js.map +0 -1
  242. package/dist/chunk-EMEX37ZN.js +0 -51
  243. package/dist/chunk-EMEX37ZN.js.map +0 -1
  244. package/dist/chunk-EPK6A3WJ.js.map +0 -1
  245. package/dist/chunk-FBMXWVGP.js.map +0 -1
  246. package/dist/chunk-FXQYZNOW.js.map +0 -1
  247. package/dist/chunk-G7PAZ3TD.js.map +0 -1
  248. package/dist/chunk-GD3BGKAR.js.map +0 -1
  249. package/dist/chunk-GDTCGIPX.js.map +0 -1
  250. package/dist/chunk-GVXBHCZ2.js.map +0 -1
  251. package/dist/chunk-HGZ7DC5H.js.map +0 -1
  252. package/dist/chunk-IS5HWQO7.js.map +0 -1
  253. package/dist/chunk-KMI2NBBF.js.map +0 -1
  254. package/dist/chunk-KYKMKLJ6.js +0 -340
  255. package/dist/chunk-KYKMKLJ6.js.map +0 -1
  256. package/dist/chunk-LOL725S4.js.map +0 -1
  257. package/dist/chunk-MRIBLZL3.js +0 -86
  258. package/dist/chunk-MRIBLZL3.js.map +0 -1
  259. package/dist/chunk-NCO2JGKK.js.map +0 -1
  260. package/dist/chunk-NGSPBLLE.js.map +0 -1
  261. package/dist/chunk-P6256WTJ.js.map +0 -1
  262. package/dist/chunk-SAVQ6E2O.js.map +0 -1
  263. package/dist/chunk-T6HQMVML.js.map +0 -1
  264. package/dist/chunk-TLFUDXVV.js.map +0 -1
  265. package/dist/chunk-UMLVJTYV.js.map +0 -1
  266. package/dist/chunk-UOF74WQY.js.map +0 -1
  267. package/dist/chunk-WRLHNG6H.js.map +0 -1
  268. package/dist/chunk-YDLAFP36.js.map +0 -1
  269. package/dist/chunk-YL2DR3HY.js.map +0 -1
  270. package/dist/chunk-YMYK7US4.js.map +0 -1
  271. package/dist/chunk-ZC2AAE6J.js.map +0 -1
  272. package/dist/consent/index.cjs +0 -204
  273. package/dist/consent/index.cjs.map +0 -1
  274. package/dist/consent/index.d.cts +0 -25
  275. package/dist/crdt/index.cjs +0 -152
  276. package/dist/crdt/index.cjs.map +0 -1
  277. package/dist/crdt/index.d.cts +0 -30
  278. package/dist/derivations/index.cjs +0 -351
  279. package/dist/derivations/index.cjs.map +0 -1
  280. package/dist/derivations/index.d.cts +0 -72
  281. package/dist/dev-unlock-De3mjQWv.d.cts +0 -263
  282. package/dist/executor-BZKFZVRC.js +0 -8
  283. package/dist/executor-GFZFDQXV.js +0 -8
  284. package/dist/executor-KT2IOZVP.js +0 -11
  285. package/dist/fanout-sidecar-NRBWSLRK.js.map +0 -1
  286. package/dist/guards/index.cjs +0 -322
  287. package/dist/guards/index.cjs.map +0 -1
  288. package/dist/guards/index.d.cts +0 -31
  289. package/dist/hash-vBCB0-Ps.d.cts +0 -63
  290. package/dist/history/index.cjs +0 -1222
  291. package/dist/history/index.cjs.map +0 -1
  292. package/dist/history/index.d.cts +0 -63
  293. package/dist/i18n/index.cjs +0 -840
  294. package/dist/i18n/index.cjs.map +0 -1
  295. package/dist/i18n/index.d.cts +0 -39
  296. package/dist/index-DVkvrgpm.d.cts +0 -2290
  297. package/dist/index.cjs +0 -23590
  298. package/dist/index.cjs.map +0 -1
  299. package/dist/index.d.cts +0 -778
  300. package/dist/indexing/index.cjs +0 -738
  301. package/dist/indexing/index.cjs.map +0 -1
  302. package/dist/indexing/index.d.cts +0 -36
  303. package/dist/issue-BAJ7ZB4S.js +0 -12
  304. package/dist/lazy-builder-C-rPfWG0.d.cts +0 -304
  305. package/dist/materialized-views/index.cjs +0 -837
  306. package/dist/materialized-views/index.cjs.map +0 -1
  307. package/dist/materialized-views/index.d.cts +0 -184
  308. package/dist/mime-magic-CBBSOkjm.d.cts +0 -50
  309. package/dist/mime-magic-CBBSOkjm.d.ts +0 -50
  310. package/dist/noydb-XNQSKXGO.js +0 -34
  311. package/dist/overlay-views/index.cjs +0 -359
  312. package/dist/overlay-views/index.cjs.map +0 -1
  313. package/dist/overlay-views/index.d.cts +0 -82
  314. package/dist/periods/index.cjs +0 -1041
  315. package/dist/periods/index.cjs.map +0 -1
  316. package/dist/periods/index.d.cts +0 -22
  317. package/dist/predicate-Dnu81tsS.d.ts +0 -185
  318. package/dist/query/index.cjs.map +0 -1
  319. package/dist/query/index.d.cts +0 -3
  320. package/dist/read-only-facade-ITU6L7BL.js +0 -7
  321. package/dist/registry-2IEARCGT.js +0 -7
  322. package/dist/registry-CDHASH73.js +0 -10
  323. package/dist/registry-EMGLZGR6.js +0 -8
  324. package/dist/registry-NQALYR77.js +0 -8
  325. package/dist/revoke-7JOVLZFD.js +0 -17
  326. package/dist/session/index.cjs +0 -495
  327. package/dist/session/index.cjs.map +0 -1
  328. package/dist/session/index.d.cts +0 -46
  329. package/dist/shadow/index.cjs +0 -133
  330. package/dist/shadow/index.cjs.map +0 -1
  331. package/dist/shadow/index.d.cts +0 -17
  332. package/dist/store/index.cjs +0 -1083
  333. package/dist/store/index.cjs.map +0 -1
  334. package/dist/store/index.d.cts +0 -492
  335. package/dist/strategy-BSxFXGzb.d.cts +0 -110
  336. package/dist/strategy-DSTrsZ8t.d.cts +0 -601
  337. package/dist/sync/index.cjs +0 -1062
  338. package/dist/sync/index.cjs.map +0 -1
  339. package/dist/sync/index.d.cts +0 -43
  340. package/dist/team/index.cjs +0 -2798
  341. package/dist/team/index.cjs.map +0 -1
  342. package/dist/team/index.d.cts +0 -118
  343. package/dist/tx/index.cjs +0 -544
  344. package/dist/tx/index.cjs.map +0 -1
  345. package/dist/tx/index.d.cts +0 -21
  346. package/dist/types-CSLcfytP.d.cts +0 -12493
  347. package/dist/ulid-CG2YvAbg.d.cts +0 -603
  348. package/dist/util/index.cjs +0 -230
  349. package/dist/util/index.cjs.map +0 -1
  350. package/dist/util/index.d.cts +0 -77
  351. package/dist/with-derivation-Bzpj6UTv.d.ts +0 -13
  352. package/dist/with-derivation-DWajFh4K.d.cts +0 -13
  353. package/dist/with-guard-DF_Ul3DT.d.cts +0 -18
  354. package/dist/with-guard-DR7U-l4v.d.ts +0 -18
  355. package/dist/with-materialized-view-_piodoIz.d.cts +0 -27
  356. package/dist/with-overlayed-view-DwzCKxn2.d.cts +0 -13
  357. /package/dist/{crypto-H2Y3DDFW.js.map → adapter/index.js.map} +0 -0
  358. /package/dist/{chunk-75QDHSE4.js.map → chunk-2QDWRK3B.js.map} +0 -0
  359. /package/dist/{chunk-FCDO7UAO.js.map → chunk-2ZYIN3BL.js.map} +0 -0
  360. /package/dist/{chunk-ZUMGGHRB.js.map → chunk-5PTX7PKD.js.map} +0 -0
  361. /package/dist/{chunk-QAU5HM6Q.js.map → chunk-6EKRQ7QF.js.map} +0 -0
  362. /package/dist/{chunk-UVPGJXVO.js.map → chunk-JOJPBZSZ.js.map} +0 -0
  363. /package/dist/{chunk-YK72A4IT.js.map → chunk-LBILABKZ.js.map} +0 -0
  364. /package/dist/{chunk-GAUBWHAF.js.map → chunk-OCYFFBZS.js.map} +0 -0
  365. /package/dist/{delegation-QSC7G5QC.js.map → chunk-PZ5AY32C.js.map} +0 -0
  366. /package/dist/{chunk-FS7A4XNF.js.map → chunk-QWJCNXH2.js.map} +0 -0
  367. /package/dist/{chunk-K5PVGKE4.js.map → chunk-SAAJYSVV.js.map} +0 -0
  368. /package/dist/{chunk-LS3JLEIB.js.map → chunk-TZGWI5AX.js.map} +0 -0
  369. /package/dist/{executor-BZKFZVRC.js.map → crypto-OSIV2IIW.js.map} +0 -0
  370. /package/dist/{executor-GFZFDQXV.js.map → delegation-BQTRJATI.js.map} +0 -0
  371. /package/dist/{executor-KT2IOZVP.js.map → executor-KYSKFJ2R.js.map} +0 -0
  372. /package/dist/{issue-BAJ7ZB4S.js.map → executor-M7W3NEKR.js.map} +0 -0
  373. /package/dist/{ledger-WOEJUYTP.js.map → executor-VDTDGWO6.js.map} +0 -0
  374. /package/dist/{noydb-XNQSKXGO.js.map → forget/index.js.map} +0 -0
  375. /package/dist/{public-envelope-OHQ5UZFM.js.map → issue-DPHRF2TI.js.map} +0 -0
  376. /package/dist/{read-only-facade-ITU6L7BL.js.map → kernel/index.js.map} +0 -0
  377. /package/dist/{registry-2IEARCGT.js.map → ledger-CI7GSMLB.js.map} +0 -0
  378. /package/dist/{registry-CDHASH73.js.map → noydb-NAU2DTFP.js.map} +0 -0
  379. /package/dist/{registry-EMGLZGR6.js.map → public-envelope-MFMBFJLZ.js.map} +0 -0
  380. /package/dist/{registry-NQALYR77.js.map → read-only-facade-3OQRZ3VS.js.map} +0 -0
  381. /package/dist/{revoke-7JOVLZFD.js.map → registry-IX5WKK4F.js.map} +0 -0
  382. /package/dist/{signer-M4K5HBLD.js.map → registry-LMHO5265.js.map} +0 -0
  383. /package/dist/{stale-PAGCS4K5.js.map → registry-TXCKWH26.js.map} +0 -0
  384. /package/dist/{ulid-COREQ2RQ.js.map → registry-VFEDQSYV.js.map} +0 -0
@@ -8,6 +8,21 @@ var NoydbError = class extends Error {
8
8
  this.code = code;
9
9
  }
10
10
  };
11
+ var DebugPlaintextError = class extends NoydbError {
12
+ constructor(message = "debugPlaintext requires encrypt: false") {
13
+ super("DEBUG_PLAINTEXT_REQUIRES_UNENCRYPTED", message);
14
+ this.name = "DebugPlaintextError";
15
+ }
16
+ };
17
+ var DebugReservedFieldError = class extends NoydbError {
18
+ constructor(collection, field) {
19
+ super(
20
+ "DEBUG_RESERVED_FIELD",
21
+ `Record in "${collection}" has reserved field "${field}": the _ prefix is reserved under debugPlaintext mode`
22
+ );
23
+ this.name = "DebugReservedFieldError";
24
+ }
25
+ };
11
26
  var DecryptionError = class extends NoydbError {
12
27
  constructor(message = "Decryption failed") {
13
28
  super("DECRYPTION_FAILED", message);
@@ -137,6 +152,18 @@ var PrivilegeEscalationError = class extends NoydbError {
137
152
  this.offendingCollection = offendingCollection;
138
153
  }
139
154
  };
155
+ var ReservedVaultNameError = class extends NoydbError {
156
+ /** The rejected vault name. */
157
+ vaultName;
158
+ constructor(vaultName) {
159
+ super(
160
+ "RESERVED_VAULT_NAME",
161
+ `"${vaultName}" is a reserved internal vault name and cannot be used as a group name or partition key`
162
+ );
163
+ this.name = "ReservedVaultNameError";
164
+ this.vaultName = vaultName;
165
+ }
166
+ };
140
167
  var PeriodClosedError = class extends NoydbError {
141
168
  periodName;
142
169
  endDate;
@@ -182,6 +209,23 @@ var FieldFrozenError = class extends NoydbError {
182
209
  this.fields = fields;
183
210
  }
184
211
  };
212
+ var IllegalTransitionError = class extends NoydbError {
213
+ collection;
214
+ id;
215
+ from;
216
+ to;
217
+ constructor(collection, id, from, to) {
218
+ super(
219
+ "ILLEGAL_TRANSITION",
220
+ `Cannot transition ${collection}/${id} from "${from}" to "${to}" \u2014 not a declared arc. Use withTransactions({ amendment: true, reason }) with admin/owner role to override.`
221
+ );
222
+ this.name = "IllegalTransitionError";
223
+ this.collection = collection;
224
+ this.id = id;
225
+ this.from = from;
226
+ this.to = to;
227
+ }
228
+ };
185
229
  var InvariantError = class extends NoydbError {
186
230
  constructor(message) {
187
231
  super("INVARIANT_VIOLATED", message);
@@ -289,6 +333,39 @@ var LedgerContentionError = class extends NoydbError {
289
333
  this.attempts = attempts;
290
334
  }
291
335
  };
336
+ var SequenceContentionError = class extends NoydbError {
337
+ sequence;
338
+ attempts;
339
+ constructor(sequence, attempts) {
340
+ super(
341
+ "SEQUENCE_CONTENTION",
342
+ `vault.sequence("${sequence}").next(): failed to allocate after ${attempts} optimistic-CAS retries`
343
+ );
344
+ this.name = "SequenceContentionError";
345
+ this.sequence = sequence;
346
+ this.attempts = attempts;
347
+ }
348
+ };
349
+ var SequenceOfflineError = class extends NoydbError {
350
+ constructor() {
351
+ super(
352
+ "SEQUENCE_OFFLINE",
353
+ "vault.sequence().next() requires an online CAS-capable store (capabilities.casAtomic). Gap-free numbering cannot be serialized offline."
354
+ );
355
+ this.name = "SequenceOfflineError";
356
+ }
357
+ };
358
+ var NumberingUncertaintyError = class extends NoydbError {
359
+ series;
360
+ constructor(series) {
361
+ super(
362
+ "NUMBERING_UNCERTAINTY",
363
+ `Deferred numbering for series "${series}" cannot run: the store does not expose getStoreTime() (capabilities.serverWriteTime). Use a CAS sequence or a store with serverWriteTime.`
364
+ );
365
+ this.name = "NumberingUncertaintyError";
366
+ this.series = series;
367
+ }
368
+ };
292
369
  var BundleVersionConflictError = class extends NoydbError {
293
370
  /** The bundle handle of the newer remote version that rejected the push. */
294
371
  remoteVersion;
@@ -395,6 +472,31 @@ var IndexRequiredError = class extends NoydbError {
395
472
  this.missingFields = [...args.missingFields];
396
473
  }
397
474
  };
475
+ var UniqueConstraintError = class extends NoydbError {
476
+ collection;
477
+ recordId;
478
+ fields;
479
+ conflictingId;
480
+ constructor(collection, recordId, fields, conflictingId) {
481
+ super(
482
+ "UNIQUE_CONSTRAINT",
483
+ `Unique constraint on ${collection}.[${fields.join(", ")}] violated: record "${recordId}" duplicates a value already held by "${conflictingId}".`
484
+ );
485
+ this.name = "UniqueConstraintError";
486
+ this.collection = collection;
487
+ this.recordId = recordId;
488
+ this.fields = fields;
489
+ this.conflictingId = conflictingId;
490
+ }
491
+ };
492
+ var UnsupportedIndexOptionError = class extends NoydbError {
493
+ option;
494
+ constructor(option, message) {
495
+ super("UNSUPPORTED_INDEX_OPTION", message);
496
+ this.name = "UnsupportedIndexOptionError";
497
+ this.option = option;
498
+ }
499
+ };
398
500
  var IndexWriteFailureError = class extends NoydbError {
399
501
  recordId;
400
502
  field;
@@ -513,6 +615,57 @@ var LocaleNotSpecifiedError = class extends NoydbError {
513
615
  this.field = field;
514
616
  }
515
617
  };
618
+ var ScriptViolationError = class extends NoydbError {
619
+ /** The field whose value violated its script constraint. */
620
+ field;
621
+ /** The locale slot (e.g. `'en'`) that was checked. */
622
+ locale;
623
+ /** The Unicode scripts allowed for this slot. */
624
+ expected;
625
+ /** A short sample of the offending characters, for diagnostics. */
626
+ sample;
627
+ constructor(field, locale, expected, sample, message) {
628
+ super(
629
+ "SCRIPT_VIOLATION",
630
+ message ?? `Field "${field}" slot "${locale}" expects script(s) [${expected.join(", ")}] but contains disallowed character(s): "${sample}".`
631
+ );
632
+ this.name = "ScriptViolationError";
633
+ this.field = field;
634
+ this.locale = locale;
635
+ this.expected = expected;
636
+ this.sample = sample;
637
+ }
638
+ };
639
+ var StaticDictReadonlyError = class extends NoydbError {
640
+ /** The static dictionary name that was the target of the mutation. */
641
+ dictionaryName;
642
+ constructor(dictionaryName) {
643
+ super(
644
+ "STATIC_DICT_READONLY",
645
+ `Dictionary "${dictionaryName}" is a staticDict \u2014 its labels are code constants with no mutation surface. put/putAll/rename/delete are not supported; change the label in the staticDict() table and redeploy.`
646
+ );
647
+ this.name = "StaticDictReadonlyError";
648
+ this.dictionaryName = dictionaryName;
649
+ }
650
+ };
651
+ var UnknownDictCodeError = class extends NoydbError {
652
+ /** The static dictionary name. */
653
+ dictionaryName;
654
+ /** The field that carried the unknown code. */
655
+ field;
656
+ /** The offending code value. */
657
+ code;
658
+ constructor(dictionaryName, field, code) {
659
+ super(
660
+ "UNKNOWN_DICT_CODE",
661
+ `Field "${field}": code "${code}" is not a known key of staticDict "${dictionaryName}". Use a declared code, or pass { validateCodes: false } on the descriptor to allow open codes.`
662
+ );
663
+ this.name = "UnknownDictCodeError";
664
+ this.dictionaryName = dictionaryName;
665
+ this.field = field;
666
+ this.code = code;
667
+ }
668
+ };
516
669
  var TranslatorNotConfiguredError = class extends NoydbError {
517
670
  /** The field that requested auto-translation. */
518
671
  field;
@@ -613,6 +766,34 @@ var JoinTooLargeError = class extends NoydbError {
613
766
  this.side = opts.side;
614
767
  }
615
768
  };
769
+ var CrossJoinTooLargeError = class extends NoydbError {
770
+ target;
771
+ expected;
772
+ limit;
773
+ constructor(opts) {
774
+ super(
775
+ "CROSS_JOIN_TOO_LARGE",
776
+ `crossJoin("${opts.target}"): would produce ${opts.expected} rows, exceeding the limit of ${opts.limit}. Narrow the left side with .where() first, or raise the ceiling with crossJoin("${opts.target}", { ..., maxRows: ${opts.expected} }).`
777
+ );
778
+ this.name = "CrossJoinTooLargeError";
779
+ this.target = opts.target;
780
+ this.expected = opts.expected;
781
+ this.limit = opts.limit;
782
+ }
783
+ };
784
+ var CrossJoinSourceUnknownError = class extends NoydbError {
785
+ target;
786
+ leftCollection;
787
+ constructor(target, leftCollection) {
788
+ super(
789
+ "CROSS_JOIN_SOURCE_UNKNOWN",
790
+ `crossJoin("${target}"): collection "${target}" is not known in the vault (cross-joining from "${leftCollection}"). Make sure "${target}" is open in the same vault before executing this query.`
791
+ );
792
+ this.name = "CrossJoinSourceUnknownError";
793
+ this.target = target;
794
+ this.leftCollection = leftCollection;
795
+ }
796
+ };
616
797
  var DanglingReferenceError = class extends NoydbError {
617
798
  field;
618
799
  target;
@@ -803,9 +984,147 @@ var OverlayIdMismatchError = class extends NoydbError {
803
984
  this.expected = expected;
804
985
  }
805
986
  };
987
+ var SnapshotNotFoundError = class extends NoydbError {
988
+ version;
989
+ constructor(version) {
990
+ super(
991
+ "SNAPSHOT_NOT_FOUND",
992
+ `Snapshot not found: "${version}" does not exist in the snapshot store. It may have been pruned by the retention policy or deleted manually.`
993
+ );
994
+ this.name = "SnapshotNotFoundError";
995
+ this.version = version;
996
+ }
997
+ };
998
+ var UnknownShardError = class extends NoydbError {
999
+ partitionKey;
1000
+ constructor(partitionKey, groupName) {
1001
+ super(
1002
+ "SHARD_UNKNOWN",
1003
+ `No shard for partition key "${partitionKey}" in vault group "${groupName}" and autoCreate is disabled. Call group.createShard(${JSON.stringify(partitionKey)}) first, or enable sharding.autoCreate.`
1004
+ );
1005
+ this.name = "UnknownShardError";
1006
+ this.partitionKey = partitionKey;
1007
+ }
1008
+ };
1009
+ var ShardProvisioningError = class extends NoydbError {
1010
+ vaultId;
1011
+ constructor(vaultId, partitionKey) {
1012
+ super(
1013
+ "SHARD_PROVISIONING",
1014
+ `Registry has a row for partition "${partitionKey}" (vault "${vaultId}") but that vault is not provisioned in the store. Refusing to recreate it \u2014 the registry and store have diverged. Investigate before retrying.`
1015
+ );
1016
+ this.name = "ShardProvisioningError";
1017
+ this.vaultId = vaultId;
1018
+ }
1019
+ };
1020
+ var DataResidencyError = class extends NoydbError {
1021
+ vaultId;
1022
+ requiredRegion;
1023
+ backendRegion;
1024
+ constructor(vaultId, requiredRegion, backendRegion) {
1025
+ super(
1026
+ "DATA_RESIDENCY",
1027
+ `Shard "${vaultId}" requires region "${requiredRegion}" but its placement backend declares region ${backendRegion === void 0 ? "(none)" : `"${backendRegion}"`}. Refusing to provision \u2014 route this shard to a region-correct backend via routeStore({ vaultRoutes }) (e.g. a region-encoded partition key) before retrying.`
1028
+ );
1029
+ this.name = "DataResidencyError";
1030
+ this.vaultId = vaultId;
1031
+ this.requiredRegion = requiredRegion;
1032
+ this.backendRegion = backendRegion;
1033
+ }
1034
+ };
1035
+ var CrossShardJoinError = class extends NoydbError {
1036
+ constructor(message) {
1037
+ super("CROSS_SHARD_JOIN", message);
1038
+ this.name = "CrossShardJoinError";
1039
+ }
1040
+ };
1041
+ var VaultTemplateNotFoundError = class extends NoydbError {
1042
+ templateName;
1043
+ constructor(templateName) {
1044
+ super(
1045
+ "VAULT_TEMPLATE_NOT_FOUND",
1046
+ `No vault template registered under "${templateName}". Register the template before opening the vault group.`
1047
+ );
1048
+ this.name = "VaultTemplateNotFoundError";
1049
+ this.templateName = templateName;
1050
+ }
1051
+ };
1052
+ var ForgetStrategyNotConfiguredError = class extends NoydbError {
1053
+ constructor(message = 'vault.forget() requires a forget strategy. Pass `forgetStrategy: withForgetCascade({ subjects: { <collection>: <subjectField> } })` from "@noy-db/hub/forget" to createNoydb().') {
1054
+ super("FORGET_NOT_CONFIGURED", message);
1055
+ this.name = "ForgetStrategyNotConfiguredError";
1056
+ }
1057
+ };
1058
+ var SealedRecordExpiredError = class extends NoydbError {
1059
+ expiresAt;
1060
+ constructor(expiresAt) {
1061
+ super(
1062
+ "SEALED_RECORD_EXPIRED",
1063
+ `Sealed record CEK expired at ${expiresAt}. The grantor must re-seal the record with a later expiresAt.`
1064
+ );
1065
+ this.name = "SealedRecordExpiredError";
1066
+ this.expiresAt = expiresAt;
1067
+ }
1068
+ };
1069
+ var SealedRecordMismatchError = class extends NoydbError {
1070
+ expected;
1071
+ actual;
1072
+ constructor(expected, actual) {
1073
+ super(
1074
+ "SEALED_RECORD_MISMATCH",
1075
+ `Sealed CEK binding is for ${actual.collection}/${actual.id} but was presented against ${expected.collection}/${expected.id}. A CEK sealed for one record cannot decrypt another.`
1076
+ );
1077
+ this.name = "SealedRecordMismatchError";
1078
+ this.expected = expected;
1079
+ this.actual = actual;
1080
+ }
1081
+ };
1082
+ var RecordCekNotFoundError = class extends NoydbError {
1083
+ collection;
1084
+ id;
1085
+ constructor(collection, id) {
1086
+ super(
1087
+ "RECORD_CEK_NOT_FOUND",
1088
+ `No per-record CEK for ${collection}/${id}. The record is missing, or its collection was not opened with { perRecordKeys: true } \u2014 only per-record-key records carry a sealable CEK.`
1089
+ );
1090
+ this.name = "RecordCekNotFoundError";
1091
+ this.collection = collection;
1092
+ this.id = id;
1093
+ }
1094
+ };
1095
+ var EmbeddingDimMismatchError = class extends NoydbError {
1096
+ field;
1097
+ expected;
1098
+ actual;
1099
+ constructor(field, expected, actual) {
1100
+ super(
1101
+ "EMBEDDING_DIM_MISMATCH",
1102
+ `Embedding for "${field}" has dim ${actual}, expected ${expected}.`
1103
+ );
1104
+ this.name = "EmbeddingDimMismatchError";
1105
+ this.field = field;
1106
+ this.expected = expected;
1107
+ this.actual = actual;
1108
+ }
1109
+ };
1110
+ var EmbeddingModelMismatchError = class extends NoydbError {
1111
+ expected;
1112
+ found;
1113
+ constructor(expected, found) {
1114
+ super(
1115
+ "EMBEDDING_MODEL_MISMATCH",
1116
+ `Embedding model mismatch: collection uses "${expected}" but a stored vector is "${found}". Run vault.embeddings.reindex() after changing the encoder.`
1117
+ );
1118
+ this.name = "EmbeddingModelMismatchError";
1119
+ this.expected = expected;
1120
+ this.found = found;
1121
+ }
1122
+ };
806
1123
 
807
1124
  export {
808
1125
  NoydbError,
1126
+ DebugPlaintextError,
1127
+ DebugReservedFieldError,
809
1128
  DecryptionError,
810
1129
  TamperedError,
811
1130
  InvalidKeyError,
@@ -820,9 +1139,11 @@ export {
820
1139
  ImportCapabilityError,
821
1140
  StoreCapabilityError,
822
1141
  PrivilegeEscalationError,
1142
+ ReservedVaultNameError,
823
1143
  PeriodClosedError,
824
1144
  RecordLockedError,
825
1145
  FieldFrozenError,
1146
+ IllegalTransitionError,
826
1147
  InvariantError,
827
1148
  AmendmentForbiddenError,
828
1149
  DirectoryDisabledError,
@@ -833,6 +1154,9 @@ export {
833
1154
  DelegationTargetMissingError,
834
1155
  ConflictError,
835
1156
  LedgerContentionError,
1157
+ SequenceContentionError,
1158
+ SequenceOfflineError,
1159
+ NumberingUncertaintyError,
836
1160
  BundleVersionConflictError,
837
1161
  NetworkError,
838
1162
  NotFoundError,
@@ -846,6 +1170,8 @@ export {
846
1170
  QuiesceTimeoutError,
847
1171
  GroupCardinalityError,
848
1172
  IndexRequiredError,
1173
+ UniqueConstraintError,
1174
+ UnsupportedIndexOptionError,
849
1175
  IndexWriteFailureError,
850
1176
  BundleIntegrityError,
851
1177
  BundleSealMismatchError,
@@ -854,6 +1180,9 @@ export {
854
1180
  DictKeyInUseError,
855
1181
  MissingTranslationError,
856
1182
  LocaleNotSpecifiedError,
1183
+ ScriptViolationError,
1184
+ StaticDictReadonlyError,
1185
+ UnknownDictCodeError,
857
1186
  TranslatorNotConfiguredError,
858
1187
  BackupLedgerError,
859
1188
  BackupCorruptedError,
@@ -865,6 +1194,8 @@ export {
865
1194
  SessionNotFoundError,
866
1195
  SessionPolicyError,
867
1196
  JoinTooLargeError,
1197
+ CrossJoinTooLargeError,
1198
+ CrossJoinSourceUnknownError,
868
1199
  DanglingReferenceError,
869
1200
  FilenameSanitizationError,
870
1201
  PathEscapeError,
@@ -880,6 +1211,18 @@ export {
880
1211
  OverlayBaseIsVirtualError,
881
1212
  OverlayCollectionUnavailableError,
882
1213
  OverlayNameCollisionError,
883
- OverlayIdMismatchError
884
- };
885
- //# sourceMappingURL=chunk-YDLAFP36.js.map
1214
+ OverlayIdMismatchError,
1215
+ SnapshotNotFoundError,
1216
+ UnknownShardError,
1217
+ ShardProvisioningError,
1218
+ DataResidencyError,
1219
+ CrossShardJoinError,
1220
+ VaultTemplateNotFoundError,
1221
+ ForgetStrategyNotConfiguredError,
1222
+ SealedRecordExpiredError,
1223
+ SealedRecordMismatchError,
1224
+ RecordCekNotFoundError,
1225
+ EmbeddingDimMismatchError,
1226
+ EmbeddingModelMismatchError
1227
+ };
1228
+ //# sourceMappingURL=chunk-JZ5DS4DP.js.map