@noy-db/hub 0.2.0-pre.1 → 0.2.0-pre.11

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 (306) hide show
  1. package/dist/aggregate/index.cjs +9 -0
  2. package/dist/aggregate/index.cjs.map +1 -1
  3. package/dist/aggregate/index.d.cts +2 -2
  4. package/dist/aggregate/index.d.ts +2 -2
  5. package/dist/aggregate/index.js +4 -4
  6. package/dist/attestation/index.cjs +305 -0
  7. package/dist/attestation/index.cjs.map +1 -0
  8. package/dist/attestation/index.d.cts +52 -0
  9. package/dist/attestation/index.d.ts +52 -0
  10. package/dist/attestation/index.js +36 -0
  11. package/dist/attestation/index.js.map +1 -0
  12. package/dist/blobs/index.cjs.map +1 -1
  13. package/dist/blobs/index.d.cts +7 -6
  14. package/dist/blobs/index.d.ts +7 -6
  15. package/dist/blobs/index.js +10 -8
  16. package/dist/blobs/index.js.map +1 -1
  17. package/dist/bundle/index.cjs +18912 -129
  18. package/dist/bundle/index.cjs.map +1 -1
  19. package/dist/bundle/index.d.cts +175 -6
  20. package/dist/bundle/index.d.ts +175 -6
  21. package/dist/bundle/index.js +533 -5
  22. package/dist/bundle/index.js.map +1 -1
  23. package/dist/{chunk-6HPZY4ON.js → chunk-26NK23DZ.js} +9 -4
  24. package/dist/chunk-26NK23DZ.js.map +1 -0
  25. package/dist/{chunk-XGSOTWYX.js → chunk-2LPPNWF6.js} +3 -3
  26. package/dist/{chunk-537VFZTR.js → chunk-3DGHRDCX.js} +4 -4
  27. package/dist/{chunk-HB3Z2GCR.js → chunk-5OEJ6GOT.js} +2 -2
  28. package/dist/chunk-5OEJ6GOT.js.map +1 -0
  29. package/dist/{chunk-UA4RI7OT.js → chunk-6MFH4BMK.js} +5 -5
  30. package/dist/chunk-6MFH4BMK.js.map +1 -0
  31. package/dist/{chunk-UZXLQCHP.js → chunk-6T2UDBKG.js} +2 -2
  32. package/dist/chunk-6T2UDBKG.js.map +1 -0
  33. package/dist/{chunk-23TTQXVO.js → chunk-6YLPHBKR.js} +214 -9
  34. package/dist/chunk-6YLPHBKR.js.map +1 -0
  35. package/dist/chunk-73YLDCNF.js +83 -0
  36. package/dist/chunk-73YLDCNF.js.map +1 -0
  37. package/dist/chunk-77DWLQRY.js +233 -0
  38. package/dist/chunk-77DWLQRY.js.map +1 -0
  39. package/dist/{chunk-Z72JH4KG.js → chunk-7CEGU63S.js} +5 -35
  40. package/dist/chunk-7CEGU63S.js.map +1 -0
  41. package/dist/{chunk-PEULZC6M.js → chunk-A3JMGXPG.js} +8 -1
  42. package/dist/chunk-A3JMGXPG.js.map +1 -0
  43. package/dist/{chunk-I6MX32UC.js → chunk-BDV7INMP.js} +4 -4
  44. package/dist/{chunk-MKSA2V7A.js → chunk-C3WE6UJY.js} +2 -2
  45. package/dist/{chunk-FCXOFQAJ.js → chunk-CH22FZHT.js} +19 -2
  46. package/dist/chunk-CH22FZHT.js.map +1 -0
  47. package/dist/{chunk-DYBQG5PQ.js → chunk-CXFOITNS.js} +2 -2
  48. package/dist/{chunk-5ZGZ6HIZ.js → chunk-CXJG63MA.js} +11 -2
  49. package/dist/chunk-CXJG63MA.js.map +1 -0
  50. package/dist/{chunk-EGQYGYIU.js → chunk-DAP2XL7Q.js} +3 -3
  51. package/dist/chunk-DAP2XL7Q.js.map +1 -0
  52. package/dist/chunk-EBVBE7UK.js +59 -0
  53. package/dist/chunk-EBVBE7UK.js.map +1 -0
  54. package/dist/{chunk-DPMFBCV6.js → chunk-FO3UEG4S.js} +20 -3
  55. package/dist/chunk-FO3UEG4S.js.map +1 -0
  56. package/dist/{chunk-SIZWEV2Y.js → chunk-GAUEWM7D.js} +7 -5
  57. package/dist/chunk-GAUEWM7D.js.map +1 -0
  58. package/dist/chunk-GKI4SDP7.js +57 -0
  59. package/dist/chunk-GKI4SDP7.js.map +1 -0
  60. package/dist/chunk-IMYKDWB4.js +139 -0
  61. package/dist/chunk-IMYKDWB4.js.map +1 -0
  62. package/dist/{chunk-5SCJ5UEF.js → chunk-JQ4NEJJ6.js} +3 -3
  63. package/dist/chunk-LJXYPGRH.js +251 -0
  64. package/dist/chunk-LJXYPGRH.js.map +1 -0
  65. package/dist/{chunk-5DWL3JBF.js → chunk-LSTBFLL2.js} +2 -2
  66. package/dist/chunk-MPOLUAMI.js +10531 -0
  67. package/dist/chunk-MPOLUAMI.js.map +1 -0
  68. package/dist/{chunk-ADQ5MQ54.js → chunk-O6EJ6WTI.js} +163 -2
  69. package/dist/chunk-O6EJ6WTI.js.map +1 -0
  70. package/dist/chunk-PC3ZZBTO.js +79 -0
  71. package/dist/chunk-PC3ZZBTO.js.map +1 -0
  72. package/dist/{chunk-OMLIZL2P.js → chunk-PC6ZEDRL.js} +12 -2
  73. package/dist/{chunk-OMLIZL2P.js.map → chunk-PC6ZEDRL.js.map} +1 -1
  74. package/dist/{chunk-34YSDCDP.js → chunk-PVUUIWHY.js} +2 -2
  75. package/dist/{chunk-PA6R5ZCI.js → chunk-QCXNMCHN.js} +18 -5
  76. package/dist/chunk-QCXNMCHN.js.map +1 -0
  77. package/dist/{chunk-DYECX3IX.js → chunk-QSOYKKMD.js} +4 -4
  78. package/dist/chunk-QSOYKKMD.js.map +1 -0
  79. package/dist/{chunk-WCA2NROQ.js → chunk-R233SLY3.js} +2 -2
  80. package/dist/chunk-RC6SU5NO.js +36 -0
  81. package/dist/chunk-RC6SU5NO.js.map +1 -0
  82. package/dist/{chunk-P7EQ2S5O.js → chunk-RRNA5GKT.js} +2 -2
  83. package/dist/{chunk-ZNOEIM6Y.js → chunk-RYIL3PI2.js} +2 -2
  84. package/dist/{chunk-YS3POABP.js → chunk-SLV4LAKX.js} +1 -1
  85. package/dist/chunk-SLV4LAKX.js.map +1 -0
  86. package/dist/chunk-STNPB3UM.js +9 -0
  87. package/dist/chunk-STNPB3UM.js.map +1 -0
  88. package/dist/{chunk-7H6DOO3E.js → chunk-TGALXXLV.js} +211 -36
  89. package/dist/chunk-TGALXXLV.js.map +1 -0
  90. package/dist/{chunk-MRIBLZL3.js → chunk-TV3YZ35S.js} +5 -1
  91. package/dist/chunk-TV3YZ35S.js.map +1 -0
  92. package/dist/{chunk-VMIO4IXG.js → chunk-V2PZC6AW.js} +6 -229
  93. package/dist/chunk-V2PZC6AW.js.map +1 -0
  94. package/dist/{chunk-YMYK7US4.js → chunk-WIBHRONM.js} +2 -2
  95. package/dist/chunk-WIBHRONM.js.map +1 -0
  96. package/dist/{chunk-KESP7GOK.js → chunk-Y26YV5R3.js} +3 -3
  97. package/dist/{chunk-MIQHZESA.js → chunk-YM7LFCG7.js} +5 -5
  98. package/dist/{chunk-MIQHZESA.js.map → chunk-YM7LFCG7.js.map} +1 -1
  99. package/dist/{chunk-CBAHB2BF.js → chunk-YVZRTCGG.js} +7 -70
  100. package/dist/chunk-YVZRTCGG.js.map +1 -0
  101. package/dist/{chunk-4TFSM22V.js → chunk-YW5DBAPG.js} +4 -4
  102. package/dist/{chunk-2AXFIYHT.js → chunk-Z6FNBOTC.js} +1 -1
  103. package/dist/chunk-Z6FNBOTC.js.map +1 -0
  104. package/dist/{chunk-NIOHFJPJ.js → chunk-ZBBW7YQN.js} +218 -119
  105. package/dist/chunk-ZBBW7YQN.js.map +1 -0
  106. package/dist/{chunk-RD5LYKD6.js → chunk-ZROPXHJY.js} +2 -2
  107. package/dist/chunk-ZROPXHJY.js.map +1 -0
  108. package/dist/consent/index.cjs.map +1 -1
  109. package/dist/consent/index.d.cts +7 -6
  110. package/dist/consent/index.d.ts +7 -6
  111. package/dist/consent/index.js +3 -3
  112. package/dist/{crypto-A7FRXYHC.js → crypto-2CRLG4F4.js} +3 -3
  113. package/dist/{delegation-YBA4X4JN.js → delegation-ZTRT2PRV.js} +5 -5
  114. package/dist/derivations/index.cjs +18 -1
  115. package/dist/derivations/index.cjs.map +1 -1
  116. package/dist/derivations/index.d.cts +10 -9
  117. package/dist/derivations/index.d.ts +10 -9
  118. package/dist/derivations/index.js +4 -4
  119. package/dist/{dev-unlock-D9s-loPr.d.ts → dev-unlock-BH6y3Hx0.d.ts} +1 -1
  120. package/dist/{dev-unlock-DRwVSy2S.d.cts → dev-unlock-H1Xwxc3U.d.cts} +1 -1
  121. package/dist/discriminant-BN9REW3o.d.cts +60 -0
  122. package/dist/discriminant-BN9REW3o.d.ts +60 -0
  123. package/dist/executor-S76VN45G.js +8 -0
  124. package/dist/executor-UCXLIGLW.js +11 -0
  125. package/dist/executor-ZCNZJMGR.js +8 -0
  126. package/dist/{fanout-sidecar-VJ52RIEY.js → fanout-sidecar-F3ZRFU4H.js} +2 -2
  127. package/dist/fanout-sidecar-F3ZRFU4H.js.map +1 -0
  128. package/dist/guards/index.cjs +7 -0
  129. package/dist/guards/index.cjs.map +1 -1
  130. package/dist/guards/index.d.cts +8 -7
  131. package/dist/guards/index.d.ts +8 -7
  132. package/dist/guards/index.js +4 -4
  133. package/dist/{hash-DXXXusyk.d.ts → hash-D89JdDbj.d.ts} +1 -1
  134. package/dist/{hash-DtRih9MQ.d.cts → hash-_sDFvtmX.d.cts} +1 -1
  135. package/dist/history/index.cjs +2 -2
  136. package/dist/history/index.cjs.map +1 -1
  137. package/dist/history/index.d.cts +8 -7
  138. package/dist/history/index.d.ts +8 -7
  139. package/dist/history/index.js +6 -6
  140. package/dist/i18n/index.cjs +287 -27
  141. package/dist/i18n/index.cjs.map +1 -1
  142. package/dist/i18n/index.d.cts +7 -6
  143. package/dist/i18n/index.d.ts +7 -6
  144. package/dist/i18n/index.js +21 -6
  145. package/dist/i18n/index.js.map +1 -1
  146. package/dist/{index-CmVgTkqk.d.cts → index-B8bjExET.d.cts} +214 -18
  147. package/dist/{index-CNwA-B6-.d.ts → index-DfUbNad8.d.ts} +214 -18
  148. package/dist/index.cjs +3343 -447
  149. package/dist/index.cjs.map +1 -1
  150. package/dist/index.d.cts +43 -22
  151. package/dist/index.d.ts +43 -22
  152. package/dist/index.js +179 -8799
  153. package/dist/index.js.map +1 -1
  154. package/dist/indexing/index.cjs +5 -1
  155. package/dist/indexing/index.cjs.map +1 -1
  156. package/dist/indexing/index.d.cts +3 -3
  157. package/dist/indexing/index.d.ts +3 -3
  158. package/dist/indexing/index.js +4 -4
  159. package/dist/issue-IVTVSKWW.js +12 -0
  160. package/dist/{lazy-builder-Rpd-V3jP.d.ts → lazy-builder-Ci5_YG73.d.cts} +2 -2
  161. package/dist/{lazy-builder-C-rPfWG0.d.cts → lazy-builder-D5GU14TS.d.ts} +2 -2
  162. package/dist/{ledger-3TXNP47J.js → ledger-NYCGJX2D.js} +6 -6
  163. package/dist/materialized-views/index.cjs +21 -2
  164. package/dist/materialized-views/index.cjs.map +1 -1
  165. package/dist/materialized-views/index.d.cts +23 -20
  166. package/dist/materialized-views/index.d.ts +23 -20
  167. package/dist/materialized-views/index.js +12 -12
  168. package/dist/noydb-SH4RLE47.js +34 -0
  169. package/dist/overlay-views/index.cjs +11 -1
  170. package/dist/overlay-views/index.cjs.map +1 -1
  171. package/dist/overlay-views/index.d.cts +10 -9
  172. package/dist/overlay-views/index.d.ts +10 -9
  173. package/dist/overlay-views/index.js +6 -4
  174. package/dist/periods/index.cjs.map +1 -1
  175. package/dist/periods/index.d.cts +7 -6
  176. package/dist/periods/index.d.ts +7 -6
  177. package/dist/periods/index.js +6 -6
  178. package/dist/{predicate-Dnu81tsS.d.cts → predicate-Bt5ft-9c.d.cts} +28 -3
  179. package/dist/{predicate-Dnu81tsS.d.ts → predicate-Bt5ft-9c.d.ts} +28 -3
  180. package/dist/{public-envelope-PY6NKFLI.js → public-envelope-QOXZEHKH.js} +4 -4
  181. package/dist/query/index.cjs +255 -6
  182. package/dist/query/index.cjs.map +1 -1
  183. package/dist/query/index.d.cts +3 -3
  184. package/dist/query/index.d.ts +3 -3
  185. package/dist/query/index.js +12 -6
  186. package/dist/registry-DKEXOJVO.js +7 -0
  187. package/dist/{registry-3L3N3PTG.js → registry-ST2VNFZC.js} +3 -3
  188. package/dist/registry-UFIK7CSR.js +8 -0
  189. package/dist/registry-ZGYYSM5I.js +8 -0
  190. package/dist/registry-ZGYYSM5I.js.map +1 -0
  191. package/dist/revoke-RT7QYB4G.js +17 -0
  192. package/dist/revoke-RT7QYB4G.js.map +1 -0
  193. package/dist/session/index.cjs.map +1 -1
  194. package/dist/session/index.d.cts +8 -7
  195. package/dist/session/index.d.ts +8 -7
  196. package/dist/session/index.js +3 -3
  197. package/dist/shadow/index.cjs.map +1 -1
  198. package/dist/shadow/index.d.cts +7 -6
  199. package/dist/shadow/index.d.ts +7 -6
  200. package/dist/shadow/index.js +2 -2
  201. package/dist/signer-QNU66JF5.js +18 -0
  202. package/dist/signer-QNU66JF5.js.map +1 -0
  203. package/dist/snapshots/index.cjs +937 -0
  204. package/dist/snapshots/index.cjs.map +1 -0
  205. package/dist/snapshots/index.d.cts +28 -0
  206. package/dist/snapshots/index.d.ts +28 -0
  207. package/dist/snapshots/index.js +152 -0
  208. package/dist/snapshots/index.js.map +1 -0
  209. package/dist/{stale-HSC5YO2O.js → stale-VKXSXJF4.js} +2 -2
  210. package/dist/stale-VKXSXJF4.js.map +1 -0
  211. package/dist/store/index.cjs.map +1 -1
  212. package/dist/store/index.d.cts +7 -6
  213. package/dist/store/index.d.ts +7 -6
  214. package/dist/store/index.js +2 -2
  215. package/dist/{strategy-DSTrsZ8t.d.cts → strategy-CT2LCKAX.d.cts} +12 -0
  216. package/dist/{strategy-DSTrsZ8t.d.ts → strategy-CT2LCKAX.d.ts} +12 -0
  217. package/dist/sync/index.cjs.map +1 -1
  218. package/dist/sync/index.d.cts +6 -5
  219. package/dist/sync/index.d.ts +6 -5
  220. package/dist/sync/index.js +4 -4
  221. package/dist/team/index.cjs +1 -1
  222. package/dist/team/index.cjs.map +1 -1
  223. package/dist/team/index.d.cts +7 -6
  224. package/dist/team/index.d.ts +7 -6
  225. package/dist/team/index.js +13 -11
  226. package/dist/tx/index.cjs +82 -2
  227. package/dist/tx/index.cjs.map +1 -1
  228. package/dist/tx/index.d.cts +8 -7
  229. package/dist/tx/index.d.ts +8 -7
  230. package/dist/tx/index.js +56 -3
  231. package/dist/tx/index.js.map +1 -1
  232. package/dist/{types-DW9RGSSs.d.ts → types-CD8mc8zR.d.ts} +1279 -259
  233. package/dist/{types-C4lwMKKF.d.cts → types-DiSXn3a4.d.cts} +1279 -259
  234. package/dist/{index-4agOpzqd.d.ts → ulid-8p83wbR4.d.ts} +64 -46
  235. package/dist/{index-hdFvZkBP.d.cts → ulid-DQ1hcJvZ.d.cts} +64 -46
  236. package/dist/util/index.cjs +7 -0
  237. package/dist/util/index.cjs.map +1 -1
  238. package/dist/util/index.d.cts +2 -0
  239. package/dist/util/index.d.ts +2 -0
  240. package/dist/util/index.js +5 -1
  241. package/dist/util/index.js.map +1 -1
  242. package/dist/{with-derivation-C8LDlV7t.d.cts → with-derivation-CVT7-dUt.d.cts} +1 -1
  243. package/dist/{with-derivation-g-pGoMzL.d.ts → with-derivation-DWMTpgEH.d.ts} +1 -1
  244. package/dist/{with-guard-DWOCK4Ca.d.ts → with-guard-BRvt53da.d.ts} +1 -1
  245. package/dist/{with-guard-jI1x9Z3k.d.cts → with-guard-Dx2zZnTA.d.cts} +1 -1
  246. package/dist/{with-materialized-view-DaKR-N6J.d.ts → with-materialized-view-BTTU3BNK.d.cts} +2 -2
  247. package/dist/{with-materialized-view-DcTx4H3j.d.cts → with-materialized-view-X0CoL8-L.d.ts} +2 -2
  248. package/dist/{with-overlayed-view-N7jYuNOS.d.ts → with-overlayed-view-DQjO_DSG.d.ts} +2 -2
  249. package/dist/{with-overlayed-view-D-6oWAgM.d.cts → with-overlayed-view-DcacRRsS.d.cts} +2 -2
  250. package/package.json +27 -4
  251. package/dist/chunk-23TTQXVO.js.map +0 -1
  252. package/dist/chunk-2AXFIYHT.js.map +0 -1
  253. package/dist/chunk-5ZGZ6HIZ.js.map +0 -1
  254. package/dist/chunk-6HPZY4ON.js.map +0 -1
  255. package/dist/chunk-7H6DOO3E.js.map +0 -1
  256. package/dist/chunk-ADQ5MQ54.js.map +0 -1
  257. package/dist/chunk-CBAHB2BF.js.map +0 -1
  258. package/dist/chunk-DPMFBCV6.js.map +0 -1
  259. package/dist/chunk-DYECX3IX.js.map +0 -1
  260. package/dist/chunk-EGQYGYIU.js.map +0 -1
  261. package/dist/chunk-FCXOFQAJ.js.map +0 -1
  262. package/dist/chunk-HB3Z2GCR.js.map +0 -1
  263. package/dist/chunk-MRIBLZL3.js.map +0 -1
  264. package/dist/chunk-NIOHFJPJ.js.map +0 -1
  265. package/dist/chunk-PA6R5ZCI.js.map +0 -1
  266. package/dist/chunk-PEULZC6M.js.map +0 -1
  267. package/dist/chunk-RD5LYKD6.js.map +0 -1
  268. package/dist/chunk-SIZWEV2Y.js.map +0 -1
  269. package/dist/chunk-UA4RI7OT.js.map +0 -1
  270. package/dist/chunk-UZXLQCHP.js.map +0 -1
  271. package/dist/chunk-VMIO4IXG.js.map +0 -1
  272. package/dist/chunk-YMYK7US4.js.map +0 -1
  273. package/dist/chunk-YS3POABP.js.map +0 -1
  274. package/dist/chunk-Z72JH4KG.js.map +0 -1
  275. package/dist/executor-7E3VFGW7.js +0 -11
  276. package/dist/executor-CEWX2FQI.js +0 -8
  277. package/dist/executor-X4SQ3ZLC.js +0 -8
  278. package/dist/fanout-sidecar-VJ52RIEY.js.map +0 -1
  279. package/dist/registry-O47PUPSY.js +0 -8
  280. package/dist/registry-RFGGMVNJ.js +0 -7
  281. package/dist/registry-WLLMODKN.js +0 -8
  282. /package/dist/{chunk-XGSOTWYX.js.map → chunk-2LPPNWF6.js.map} +0 -0
  283. /package/dist/{chunk-537VFZTR.js.map → chunk-3DGHRDCX.js.map} +0 -0
  284. /package/dist/{chunk-I6MX32UC.js.map → chunk-BDV7INMP.js.map} +0 -0
  285. /package/dist/{chunk-MKSA2V7A.js.map → chunk-C3WE6UJY.js.map} +0 -0
  286. /package/dist/{chunk-DYBQG5PQ.js.map → chunk-CXFOITNS.js.map} +0 -0
  287. /package/dist/{chunk-5SCJ5UEF.js.map → chunk-JQ4NEJJ6.js.map} +0 -0
  288. /package/dist/{chunk-5DWL3JBF.js.map → chunk-LSTBFLL2.js.map} +0 -0
  289. /package/dist/{chunk-34YSDCDP.js.map → chunk-PVUUIWHY.js.map} +0 -0
  290. /package/dist/{chunk-WCA2NROQ.js.map → chunk-R233SLY3.js.map} +0 -0
  291. /package/dist/{chunk-P7EQ2S5O.js.map → chunk-RRNA5GKT.js.map} +0 -0
  292. /package/dist/{chunk-ZNOEIM6Y.js.map → chunk-RYIL3PI2.js.map} +0 -0
  293. /package/dist/{chunk-KESP7GOK.js.map → chunk-Y26YV5R3.js.map} +0 -0
  294. /package/dist/{chunk-4TFSM22V.js.map → chunk-YW5DBAPG.js.map} +0 -0
  295. /package/dist/{crypto-A7FRXYHC.js.map → crypto-2CRLG4F4.js.map} +0 -0
  296. /package/dist/{delegation-YBA4X4JN.js.map → delegation-ZTRT2PRV.js.map} +0 -0
  297. /package/dist/{executor-7E3VFGW7.js.map → executor-S76VN45G.js.map} +0 -0
  298. /package/dist/{executor-CEWX2FQI.js.map → executor-UCXLIGLW.js.map} +0 -0
  299. /package/dist/{executor-X4SQ3ZLC.js.map → executor-ZCNZJMGR.js.map} +0 -0
  300. /package/dist/{ledger-3TXNP47J.js.map → issue-IVTVSKWW.js.map} +0 -0
  301. /package/dist/{public-envelope-PY6NKFLI.js.map → ledger-NYCGJX2D.js.map} +0 -0
  302. /package/dist/{registry-3L3N3PTG.js.map → noydb-SH4RLE47.js.map} +0 -0
  303. /package/dist/{registry-O47PUPSY.js.map → public-envelope-QOXZEHKH.js.map} +0 -0
  304. /package/dist/{registry-RFGGMVNJ.js.map → registry-DKEXOJVO.js.map} +0 -0
  305. /package/dist/{registry-WLLMODKN.js.map → registry-ST2VNFZC.js.map} +0 -0
  306. /package/dist/{stale-HSC5YO2O.js.map → registry-UFIK7CSR.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-Dnu81tsS.js';
2
- import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as AggregateResult, g as GroupedQuery, h as GroupedQueryN } from './strategy-DSTrsZ8t.js';
1
+ import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-Bt5ft-9c.js';
2
+ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as AggregateResult, g as GroupedQuery, h as GroupedQueryN } from './strategy-CT2LCKAX.js';
3
3
 
4
4
  /**
5
5
  * All NOYDB error classes — a single import surface for `catch` blocks and
@@ -29,11 +29,15 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
29
29
  * │ ├─ ValidationError — application-level guard failed
30
30
  * │ └─ SchemaValidationError — Standard Schema v1 rejection
31
31
  * ├─ Query errors
32
- * │ ├─ JoinTooLargeError — join row ceiling exceeded
33
- * │ ├─ DanglingReferenceError strict ref() points at nothing
34
- * │ ├─ GroupCardinalityError groupBy bucket cap exceeded
35
- * │ ├─ IndexRequiredError lazy-mode query touches unindexed field
36
- * │ └─ IndexWriteFailureError index side-car put/delete failed post-main
32
+ * │ ├─ JoinTooLargeError — join row ceiling exceeded
33
+ * │ ├─ CrossJoinTooLargeError cross-join row ceiling exceeded
34
+ * │ ├─ CrossJoinSourceUnknownError target collection not in vault
35
+ * │ ├─ DanglingReferenceError strict ref() points at nothing
36
+ * │ ├─ GroupCardinalityError groupBy bucket cap exceeded
37
+ * │ ├─ IndexRequiredError — lazy-mode query touches unindexed field
38
+ * │ ├─ IndexWriteFailureError — index side-car put/delete failed post-main
39
+ * │ ├─ UniqueConstraintError — duplicate value on unique index
40
+ * │ └─ UnsupportedIndexOptionError — unique+lazy or unique+crdt at registration
37
41
  * ├─ i18n / Dictionary errors
38
42
  * │ ├─ ReservedCollectionNameError
39
43
  * │ ├─ DictKeyMissingError
@@ -46,10 +50,12 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
46
50
  * │ └─ BackupCorruptedError — envelope hash mismatch in dump
47
51
  * ├─ Bundle errors
48
52
  * │ └─ BundleIntegrityError — .noydb body sha256 mismatch
49
- * └─ Session errors
50
- * ├─ SessionExpiredError
51
- * ├─ SessionNotFoundError
52
- * └─ SessionPolicyError
53
+ * ├─ Session errors
54
+ *├─ SessionExpiredError
55
+ *├─ SessionNotFoundError
56
+ *└─ SessionPolicyError
57
+ * └─ Snapshot errors
58
+ * └─ SnapshotNotFoundError — snapshot key absent from snapshot store
53
59
  * ```
54
60
  *
55
61
  * ## Catching all NOYDB errors
@@ -558,6 +564,30 @@ declare class SchemaValidationError extends NoydbError {
558
564
  readonly direction: 'input' | 'output';
559
565
  constructor(message: string, issues: readonly unknown[], direction: 'input' | 'output');
560
566
  }
567
+ /** Base for schema-evolution strategy rejections. */
568
+ declare class SchemaUpdateError extends NoydbError {
569
+ constructor(code: string, message: string);
570
+ }
571
+ /** A non-additive schema change was rejected by the `additiveOnly()` strategy. */
572
+ declare class NonAdditiveSchemaChangeError extends SchemaUpdateError {
573
+ constructor(message: string);
574
+ }
575
+ /** A schema change was rejected by the `lockSchema()` strategy. */
576
+ declare class SchemaLockedError extends SchemaUpdateError {
577
+ constructor(message: string);
578
+ }
579
+ /** Write attempted while a schema cutover fence is up (draining/migrating, or this collection has a pending cutover). */
580
+ declare class SchemaFenceError extends SchemaUpdateError {
581
+ constructor(message: string);
582
+ }
583
+ /** Write attempted by a client whose generation snapshot is behind the live fence — reload required. */
584
+ declare class MigrationRequiredError extends SchemaUpdateError {
585
+ constructor(message: string);
586
+ }
587
+ /** A coordinated cutover timed out waiting for active clients to quiesce. */
588
+ declare class QuiesceTimeoutError extends SchemaUpdateError {
589
+ constructor(message: string);
590
+ }
561
591
  /**
562
592
  * Thrown when `.groupBy().aggregate()` produces more than the hard
563
593
  * cardinality cap (default 100_000 groups)..
@@ -612,6 +642,51 @@ declare class IndexRequiredError extends NoydbError {
612
642
  missingFields: readonly string[];
613
643
  });
614
644
  }
645
+ /**
646
+ * Thrown by `Collection.put()` when writing a record would violate a
647
+ * unique-index constraint — the same field value (or composite field
648
+ * tuple) is already held by a *different* record id in the collection.
649
+ *
650
+ * Properties:
651
+ * - `collection` — name of the collection the write was targeting
652
+ * - `recordId` — the id of the record being written (the would-be violator)
653
+ * - `fields` — the constrained field(s), e.g. `['taxId']` or `['workerId','employerEntityId']`
654
+ * - `conflictingId` — the id of the record already holding the value
655
+ *
656
+ * Null-distinct semantics: if any constrained field is `null`/`undefined`,
657
+ * the row is exempt (the constraint does not fire). This matches standard
658
+ * SQL NULL-distinct behavior.
659
+ */
660
+ declare class UniqueConstraintError extends NoydbError {
661
+ readonly collection: string;
662
+ readonly recordId: string;
663
+ readonly fields: readonly string[];
664
+ readonly conflictingId: string;
665
+ constructor(collection: string, recordId: string, fields: readonly string[], conflictingId: string);
666
+ }
667
+ /**
668
+ * Thrown at collection registration when an index option is declared that
669
+ * is incompatible with the collection's operating mode.
670
+ *
671
+ * Currently covers two cases:
672
+ * - `unique: true` on a lazy-mode (`prefetch: false`) collection — lazy mode
673
+ * does not pre-load all records, so an in-memory uniqueness map cannot be
674
+ * maintained reliably.
675
+ * - `unique: true` on a CRDT collection (`crdt: 'lww-map' | 'rga' | 'yjs'`) —
676
+ * CRDT put() short-circuits the unique-constraint check, so enforcement would
677
+ * silently not fire.
678
+ *
679
+ * Both cases are caught eagerly at `vault.collection()` time so the developer
680
+ * sees the incompatibility immediately rather than shipping silently-ignored
681
+ * constraints.
682
+ *
683
+ * The `option` field names the incompatible option (`'unique'`) so catch blocks
684
+ * can pattern-match without inspecting the error message.
685
+ */
686
+ declare class UnsupportedIndexOptionError extends NoydbError {
687
+ readonly option: string;
688
+ constructor(option: string, message: string);
689
+ }
615
690
  /**
616
691
  * Thrown (or surfaced via the `index:write-partial` event) when one or more
617
692
  * per-indexed-field side-car writes fail after the main record write has
@@ -663,7 +738,7 @@ declare class BundleIntegrityError extends NoydbError {
663
738
  constructor(message: string);
664
739
  }
665
740
  /**
666
- * Thrown by `readNoydbBundle` (#197) when the bundle carries
741
+ * Thrown by `readNoydbBundle` when the bundle carries
667
742
  * sealed per-user passphrases but no supplied `SealingKeyProvider`
668
743
  * has a `.id` (= `pid`) matching the sealed entry's `pid`.
669
744
  *
@@ -768,6 +843,26 @@ declare class LocaleNotSpecifiedError extends NoydbError {
768
843
  readonly field: string;
769
844
  constructor(field: string, message?: string);
770
845
  }
846
+ /**
847
+ * Thrown at write time when an `i18nText` slot's value contains
848
+ * characters outside the script set allowed for that locale, and the
849
+ * field's `onScriptViolation` policy is `'reject'` (the default).
850
+ *
851
+ * Distinct from {@link MissingTranslationError} (write-shape) and
852
+ * {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
853
+ * wrong-script value from a missing one.
854
+ */
855
+ declare class ScriptViolationError extends NoydbError {
856
+ /** The field whose value violated its script constraint. */
857
+ readonly field: string;
858
+ /** The locale slot (e.g. `'en'`) that was checked. */
859
+ readonly locale: string;
860
+ /** The Unicode scripts allowed for this slot. */
861
+ readonly expected: readonly string[];
862
+ /** A short sample of the offending characters, for diagnostics. */
863
+ readonly sample: string;
864
+ constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
865
+ }
771
866
  /**
772
867
  * Thrown when a collection has an `i18nText` field with
773
868
  * `autoTranslate: true` but no `plaintextTranslator` was configured
@@ -812,6 +907,34 @@ declare class BackupCorruptedError extends NoydbError {
812
907
  readonly id: string;
813
908
  constructor(collection: string, id: string, message: string);
814
909
  }
910
+ /**
911
+ * Thrown by partition-extraction primitives when the
912
+ * transitive-closure walk fails — e.g. the FK graph is deeper than
913
+ * `maxDepth`, signalling a runaway or unexpectedly cyclic graph.
914
+ */
915
+ declare class PartitionExtractionError extends NoydbError {
916
+ constructor(message: string);
917
+ }
918
+ /**
919
+ * Thrown by `adoptPartition` when the transfer seal can't be
920
+ * opened — a wrong/short transfer key (AES-GCM auth-tag failure) or a
921
+ * malformed sealed payload.
922
+ */
923
+ declare class TransferSealError extends NoydbError {
924
+ constructor(message: string);
925
+ }
926
+ /**
927
+ * Thrown when an adoption-lifecycle precondition fails — re-adopting a
928
+ * partition already consumed in this store, or owner-creation on a
929
+ * vault that isn't in the adopted-unowned state.
930
+ */
931
+ declare class AdoptionStateError extends NoydbError {
932
+ constructor(message: string);
933
+ }
934
+ /** Document-attestation failures: undeclared field-schema, non-owner issue, missing field, signer failure. */
935
+ declare class AttestationError extends NoydbError {
936
+ constructor(message: string);
937
+ }
815
938
  /**
816
939
  * Thrown by `resolveSession()` when the session token's `expiresAt`
817
940
  * timestamp is in the past. The session key is also removed from the
@@ -887,6 +1010,34 @@ declare class JoinTooLargeError extends NoydbError {
887
1010
  message: string;
888
1011
  });
889
1012
  }
1013
+ /**
1014
+ * Thrown by `.crossJoin()` when the cumulative cartesian product (or lateral
1015
+ * filtered count) exceeds the configured ceiling. Check before allocating.
1016
+ * Mirrors the pattern of `JoinTooLargeError` and the `.join()` row ceiling.
1017
+ *
1018
+ * @see CrossJoinClause.maxRows — per-clause override
1019
+ * @see DEFAULT_CROSS_JOIN_MAX_ROWS — package default (50_000)
1020
+ */
1021
+ declare class CrossJoinTooLargeError extends NoydbError {
1022
+ readonly target: string;
1023
+ readonly expected: number;
1024
+ readonly limit: number;
1025
+ constructor(opts: {
1026
+ target: string;
1027
+ expected: number;
1028
+ limit: number;
1029
+ });
1030
+ }
1031
+ /**
1032
+ * Thrown at cross-join execution time when the target collection is not
1033
+ * reachable from the current vault. The left collection is included in the
1034
+ * message for context.
1035
+ */
1036
+ declare class CrossJoinSourceUnknownError extends NoydbError {
1037
+ readonly target: string;
1038
+ readonly leftCollection: string;
1039
+ constructor(target: string, leftCollection: string);
1040
+ }
890
1041
  /**
891
1042
  * Thrown by `.join()` in strict `ref()` mode when a left-side record
892
1043
  * points at a right-side id that does not exist in the target
@@ -970,7 +1121,7 @@ declare class DerivationOutputShapeError extends NoydbError {
970
1121
  constructor(outputKey: string, detail: string);
971
1122
  }
972
1123
  /**
973
- * Thrown by array-shape derivations (#200) when the `derive` function
1124
+ * Thrown by array-shape derivations when the `derive` function
974
1125
  * returns more rows than the output's `maxFanout` cap. The cap exists
975
1126
  * to keep dispatch cost bounded — without it a single source-row
976
1127
  * update could fan out to thousands of derived rows, dominating the
@@ -1030,7 +1181,7 @@ declare class MaterializedViewTooLargeError extends NoydbError {
1030
1181
  * normalized.
1031
1182
  *
1032
1183
  * Today the trigger cases are all about the `query` / `unionSources`
1033
- * dichotomy introduced by #165:
1184
+ * dichotomy:
1034
1185
  * - both `query` and `unionSources` were set (mutually exclusive),
1035
1186
  * - neither `query` nor `unionSources` was set,
1036
1187
  * - `unionSources` has fewer than 2 arms,
@@ -1085,6 +1236,19 @@ declare class OverlayIdMismatchError extends NoydbError {
1085
1236
  readonly expected: string;
1086
1237
  constructor(actual: string, expected: string);
1087
1238
  }
1239
+ /**
1240
+ * Thrown when a requested snapshot version does not exist in the
1241
+ * snapshot store — either it was never created, was pruned by the
1242
+ * retention policy, or was deleted manually.
1243
+ *
1244
+ * The `version` field carries the key that was looked up so callers
1245
+ * can surface an actionable "snapshot X not found" message without
1246
+ * parsing the error string.
1247
+ */
1248
+ declare class SnapshotNotFoundError extends NoydbError {
1249
+ readonly version: string;
1250
+ constructor(version: string);
1251
+ }
1088
1252
 
1089
1253
  /**
1090
1254
  * Foreign-key references — the soft-FK mechanism.
@@ -1580,6 +1744,8 @@ interface QueryPlan {
1580
1744
  */
1581
1745
  readonly joins: readonly JoinLeg[];
1582
1746
  }
1747
+ /** Default row ceiling for cross-join expansion. Matches JoinTooLargeError's ceiling. */
1748
+ declare const DEFAULT_CROSS_JOIN_MAX_ROWS = 50000;
1583
1749
  /**
1584
1750
  * Source of records that a query executes against.
1585
1751
  *
@@ -1617,7 +1783,7 @@ interface QuerySource<T> {
1617
1783
  * error. See `query/join.ts` for the full design.
1618
1784
  */
1619
1785
  /**
1620
- * Declared deterministic predicate (#153). Carries the consumer's
1786
+ * Declared deterministic predicate. Carries the consumer's
1621
1787
  * stable `hash` (for function-body identity), the function itself,
1622
1788
  * and is keyed by name when registered on a `Query<T>` via
1623
1789
  * `_withPredicates()`.
@@ -1648,12 +1814,12 @@ declare class Query<T> {
1648
1814
  /**
1649
1815
  * @internal — clone this Query with a declared-predicate map
1650
1816
  * attached. Used by the materialized-view registry to enable
1651
- * `.wherePredicate(name, ctx?)` for the MV's query callback (#153).
1817
+ * `.wherePredicate(name, ctx?)` for the MV's query callback.
1652
1818
  * Consumers don't call this directly.
1653
1819
  */
1654
1820
  _withPredicates(predicates: ReadonlyMap<string, DeclaredPredicate>): Query<T>;
1655
1821
  /**
1656
- * Filter by a registered deterministic predicate (#153). Requires
1822
+ * Filter by a registered deterministic predicate. Requires
1657
1823
  * the Query to have been augmented with a predicates map (typically
1658
1824
  * via the materialized-view registry — bare Queries constructed
1659
1825
  * outside an MV throw on `.wherePredicate()`).
@@ -1748,6 +1914,36 @@ declare class Query<T> {
1748
1914
  strategy?: JoinStrategy;
1749
1915
  maxRows?: number;
1750
1916
  }): Query<T & Record<As, R | null>>;
1917
+ /**
1918
+ * Cartesian-product cross-join against `target` collection. Each result row
1919
+ * carries the original `T` fields plus `result[as]` populated from every
1920
+ * right-side row (or the filtered subset when `on:` is supplied).
1921
+ *
1922
+ * **Order matters:** `.where().crossJoin()` filters BEFORE expanding (cheaper);
1923
+ * `.crossJoin().where('alias.field', ...)` filters AFTER (required when the
1924
+ * where clause references the aliased fields).
1925
+ *
1926
+ * **Cost ceiling:** `CrossJoinTooLargeError` fires before allocation when
1927
+ * `leftRows × rightRows` (or the cumulative lateral count) exceeds the limit.
1928
+ * Default: 50,000 rows. Override per-clause with `{ maxRows: N }`.
1929
+ *
1930
+ * **`on:` shapes:**
1931
+ * - `on: (left) => TTarget[]` — subset form (most efficient)
1932
+ * - `on: (left) => (right) => boolean` — predicate form
1933
+ * - `on: { predicate: 'name' }` — MV-safe, hash-tracked form
1934
+ * (requires the Query to have been augmented via `_withPredicates`)
1935
+ *
1936
+ * Requires a JoinContext (constructed via `collection.query()`).
1937
+ */
1938
+ crossJoin<TTarget = unknown, As extends string = string>(target: string, opts: {
1939
+ as: As;
1940
+ on?: ((left: T) => unknown[] | ((right: TTarget) => boolean)) | {
1941
+ readonly predicate: string;
1942
+ };
1943
+ maxRows?: number;
1944
+ }): Query<T & {
1945
+ [K in As]: TTarget;
1946
+ }>;
1751
1947
  /**
1752
1948
  * Execute the plan and return the matching records. When the plan
1753
1949
  * carries any join legs, they are applied after `where` / `orderBy`
@@ -2235,4 +2431,4 @@ declare class ScanBuilder<T> implements AsyncIterable<T> {
2235
2431
  private recordMatches;
2236
2432
  }
2237
2433
 
2238
- export { KeyringCorruptError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, ElevationExpiredError as E, FieldFrozenError as F, ExportCapabilityError as G, FilenameSanitizationError as H, InvariantError as I, GroupCardinalityError as J, ImportCapabilityError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, IndexRequiredError as P, Query as Q, ReservedCollectionNameError as R, SessionExpiredError as S, TranslatorNotConfiguredError as T, IndexWriteFailureError as U, InvalidKeyError as V, type JoinContext as W, type JoinLeg as X, type JoinStrategy as Y, JoinTooLargeError as Z, type JoinableSource as _, DictKeyMissingError as a, KeyringExpiredError as a0, LedgerContentionError as a1, type LiveQuery as a2, type LiveUpstream as a3, NetworkError as a4, NoAccessError as a5, NotFoundError as a6, type OrderBy as a7, PathEscapeError as a8, PeriodClosedError as a9, PermissionDeniedError as aa, PrivilegeEscalationError as ab, type QueryPlan as ac, type QuerySource as ad, ReadOnlyAtInstantError as ae, ReadOnlyError as af, ReadOnlyFrameError as ag, type RefDescriptor as ah, RefIntegrityError as ai, type RefMode as aj, RefRegistry as ak, RefScopeError as al, type RefViolation as am, ScanBuilder as an, type ScanPageProvider as ao, SchemaValidationError as ap, StoreCapabilityError as aq, TamperedError as ar, TierDemoteDeniedError as as, TierNotGrantedError as at, ValidationError as au, applyJoins as av, buildLiveQuery as aw, executePlan as ax, ref as ay, resetJoinWarnings as az, SessionNotFoundError as b, SessionPolicyError as c, RecordLockedError as d, DerivationCapExceededError as e, DerivationCycleError as f, DerivationDepthError as g, DerivationOutputShapeError as h, DerivationOutputUnknownError as i, OverlayCollectionUnavailableError as j, OverlayIdMismatchError as k, OverlayNameCollisionError as l, MaterializedViewConfigError as m, MaterializedViewCycleError as n, MaterializedViewSourceUnknownError as o, MaterializedViewTooLargeError as p, AlreadyElevatedError as q, BackupLedgerError as r, BundleIntegrityError as s, BundleSealMismatchError as t, BundleVersionConflictError as u, DEFAULT_JOIN_MAX_ROWS as v, DanglingReferenceError as w, DecryptionError as x, DelegationTargetMissingError as y, DirectoryDisabledError as z };
2434
+ export { ImportCapabilityError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, CrossJoinSourceUnknownError as E, FieldFrozenError as F, CrossJoinTooLargeError as G, DEFAULT_CROSS_JOIN_MAX_ROWS as H, InvariantError as I, DEFAULT_JOIN_MAX_ROWS as J, DanglingReferenceError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, Query as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, DecryptionError as U, DelegationTargetMissingError as V, DirectoryDisabledError as W, ElevationExpiredError as X, ExportCapabilityError as Y, FilenameSanitizationError as Z, GroupCardinalityError as _, DictKeyMissingError as a, IndexRequiredError as a0, IndexWriteFailureError as a1, InvalidKeyError as a2, type JoinContext as a3, type JoinLeg as a4, type JoinStrategy as a5, JoinTooLargeError as a6, type JoinableSource as a7, KeyringCorruptError as a8, KeyringExpiredError as a9, type ScanPageProvider as aA, SchemaFenceError as aB, SchemaLockedError as aC, SchemaUpdateError as aD, SchemaValidationError as aE, StoreCapabilityError as aF, TamperedError as aG, TierDemoteDeniedError as aH, TierNotGrantedError as aI, UniqueConstraintError as aJ, UnsupportedIndexOptionError as aK, ValidationError as aL, applyJoins as aM, buildLiveQuery as aN, executePlan as aO, ref as aP, resetJoinWarnings as aQ, LedgerContentionError as aa, type LiveQuery as ab, type LiveUpstream as ac, MigrationRequiredError as ad, NetworkError as ae, NoAccessError as af, NonAdditiveSchemaChangeError as ag, NotFoundError as ah, type OrderBy as ai, PathEscapeError as aj, PeriodClosedError as ak, PermissionDeniedError as al, PrivilegeEscalationError as am, type QueryPlan as an, type QuerySource as ao, QuiesceTimeoutError as ap, ReadOnlyAtInstantError as aq, ReadOnlyError as ar, ReadOnlyFrameError as as, type RefDescriptor as at, RefIntegrityError as au, type RefMode as av, RefRegistry as aw, RefScopeError as ax, type RefViolation as ay, ScanBuilder as az, SessionExpiredError as b, SessionNotFoundError as c, SessionPolicyError as d, RecordLockedError as e, SnapshotNotFoundError as f, DerivationCapExceededError as g, DerivationCycleError as h, DerivationDepthError as i, DerivationOutputShapeError as j, DerivationOutputUnknownError as k, OverlayCollectionUnavailableError as l, OverlayIdMismatchError as m, OverlayNameCollisionError as n, AttestationError as o, AdoptionStateError as p, BackupLedgerError as q, BundleIntegrityError as r, BundleSealMismatchError as s, BundleVersionConflictError as t, TransferSealError as u, MaterializedViewConfigError as v, MaterializedViewCycleError as w, MaterializedViewSourceUnknownError as x, MaterializedViewTooLargeError as y, AlreadyElevatedError as z };