@noy-db/hub 0.2.0-pre.13 → 0.2.0-pre.14

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 (229) hide show
  1. package/dist/aggregate/index.cjs.map +1 -1
  2. package/dist/aggregate/index.js +2 -2
  3. package/dist/attestation/index.cjs.map +1 -1
  4. package/dist/attestation/index.d.cts +1 -1
  5. package/dist/attestation/index.d.ts +1 -1
  6. package/dist/attestation/index.js +5 -5
  7. package/dist/blobs/index.cjs.map +1 -1
  8. package/dist/blobs/index.d.cts +2 -2
  9. package/dist/blobs/index.d.ts +2 -2
  10. package/dist/blobs/index.js +4 -4
  11. package/dist/bundle/index.cjs +133 -8
  12. package/dist/bundle/index.cjs.map +1 -1
  13. package/dist/bundle/index.d.cts +3 -3
  14. package/dist/bundle/index.d.ts +3 -3
  15. package/dist/bundle/index.js +8 -8
  16. package/dist/{chunk-YWBHS25M.js → chunk-3EWA37FV.js} +2 -2
  17. package/dist/{chunk-AYNF7PVX.js → chunk-4PEFEETV.js} +2 -2
  18. package/dist/{chunk-SJ24GHID.js → chunk-4TBBMHVC.js} +2 -2
  19. package/dist/{chunk-NKGY3C53.js → chunk-535SSHBS.js} +8 -1
  20. package/dist/{chunk-NKGY3C53.js.map → chunk-535SSHBS.js.map} +1 -1
  21. package/dist/{chunk-HQXOEWLZ.js → chunk-56DJ7JVK.js} +3 -3
  22. package/dist/{chunk-KKB42D3Q.js → chunk-5LQG6ZO2.js} +2 -2
  23. package/dist/{chunk-TDECYU4Y.js → chunk-6AJBSQU4.js} +2 -2
  24. package/dist/{chunk-O2JW656W.js → chunk-6RR3MNMG.js} +3 -3
  25. package/dist/{chunk-7TEI2K2A.js → chunk-7HT2MEZ5.js} +4 -4
  26. package/dist/{chunk-WQKZIQIL.js → chunk-7PS7EOCF.js} +3 -3
  27. package/dist/{chunk-C3WRKABE.js → chunk-A5ZOOZFB.js} +3 -3
  28. package/dist/{chunk-5NISHSBO.js → chunk-AAVWKNZW.js} +2 -2
  29. package/dist/{chunk-P5MW7BG2.js → chunk-ACKFRSAH.js} +44 -44
  30. package/dist/{chunk-SOU42FGB.js → chunk-BIYRQQV6.js} +4 -4
  31. package/dist/{chunk-ILWQGTNH.js → chunk-BQ65SS5A.js} +2 -2
  32. package/dist/{chunk-SYSKC237.js → chunk-COFPAMX6.js} +5 -5
  33. package/dist/{chunk-KJF7EPUE.js → chunk-DKO2QFSA.js} +2 -2
  34. package/dist/{chunk-QFYVGJLI.js → chunk-DQU36Q7I.js} +2 -2
  35. package/dist/{chunk-NIUXQDWD.js → chunk-EGD5DXFT.js} +2 -2
  36. package/dist/{chunk-KHQ3N5AB.js → chunk-F4OJZIWQ.js} +4 -4
  37. package/dist/{chunk-3OUCWHV6.js → chunk-FWPKCXTN.js} +2 -2
  38. package/dist/{chunk-QIVFGU2M.js → chunk-HOR4R722.js} +3 -3
  39. package/dist/{chunk-4VCQH32J.js → chunk-JD3OZAI4.js} +2 -2
  40. package/dist/{chunk-NJMKHRQI.js → chunk-KGCORI4L.js} +3 -3
  41. package/dist/{chunk-J67BP5EP.js → chunk-KI6HAJWL.js} +3 -3
  42. package/dist/{chunk-PW26DAXS.js → chunk-L2FE64BU.js} +3 -3
  43. package/dist/{chunk-QAWCVWCX.js → chunk-LX3CB26H.js} +4 -4
  44. package/dist/{chunk-VAK6NQAK.js → chunk-NSCVNK5K.js} +4 -4
  45. package/dist/{chunk-3XZRRBFW.js → chunk-OHVFWCJP.js} +2 -2
  46. package/dist/{chunk-TEQGXA7L.js → chunk-PE4AQGFH.js} +4 -4
  47. package/dist/{chunk-UNQEWORI.js → chunk-TS26M2SB.js} +2 -2
  48. package/dist/{chunk-CWFQTAD4.js → chunk-UWNYBOOO.js} +4 -4
  49. package/dist/{chunk-FNVFT4HZ.js → chunk-VU7SWWT5.js} +2 -2
  50. package/dist/{chunk-GZJ5JBED.js → chunk-WBAYSNUQ.js} +3 -3
  51. package/dist/{chunk-HHZ77DHM.js → chunk-WGHU7BLI.js} +2 -2
  52. package/dist/{chunk-GL3Z7LH7.js → chunk-X73VS74Y.js} +2 -2
  53. package/dist/{chunk-M6KXHRIA.js → chunk-YHPM5D7Y.js} +3 -3
  54. package/dist/{chunk-D5Y3HIC6.js → chunk-YNTBADIY.js} +2 -2
  55. package/dist/{chunk-E3DIBDKA.js → chunk-YULZKK4F.js} +2 -2
  56. package/dist/{chunk-JWFNOD2T.js → chunk-Z4DO7YSI.js} +2 -2
  57. package/dist/{chunk-JPOQMXGT.js → chunk-ZNQYHJXX.js} +2 -2
  58. package/dist/{chunk-4YDZ7JPZ.js → chunk-ZWTNWAO4.js} +2 -2
  59. package/dist/consent/index.cjs.map +1 -1
  60. package/dist/consent/index.d.cts +2 -2
  61. package/dist/consent/index.d.ts +2 -2
  62. package/dist/consent/index.js +3 -3
  63. package/dist/{crypto-YXH6SAOW.js → crypto-QXQOHMHF.js} +3 -3
  64. package/dist/{delegation-K5ERUH6A.js → delegation-NIQ43IPU.js} +5 -5
  65. package/dist/derivations/index.cjs.map +1 -1
  66. package/dist/derivations/index.d.cts +3 -3
  67. package/dist/derivations/index.d.ts +3 -3
  68. package/dist/derivations/index.js +4 -4
  69. package/dist/{dev-unlock-a7SOtaV0.d.cts → dev-unlock-BF4OSxRv.d.cts} +1 -1
  70. package/dist/{dev-unlock-BW0GNBEV.d.ts → dev-unlock-DV7ujTCI.d.ts} +1 -1
  71. package/dist/executor-6ZDSDZ6V.js +8 -0
  72. package/dist/executor-723ZP6TH.js +11 -0
  73. package/dist/executor-IDZDAFNH.js +8 -0
  74. package/dist/guards/index.cjs.map +1 -1
  75. package/dist/guards/index.d.cts +3 -3
  76. package/dist/guards/index.d.ts +3 -3
  77. package/dist/guards/index.js +3 -3
  78. package/dist/{hash-B0cLQcq_.d.cts → hash-BcF5WQXl.d.cts} +1 -1
  79. package/dist/{hash-uMNIAAW8.d.ts → hash-DswxkLtW.d.ts} +1 -1
  80. package/dist/history/index.cjs.map +1 -1
  81. package/dist/history/index.d.cts +3 -3
  82. package/dist/history/index.d.ts +3 -3
  83. package/dist/history/index.js +4 -4
  84. package/dist/i18n/index.cjs.map +1 -1
  85. package/dist/i18n/index.d.cts +2 -2
  86. package/dist/i18n/index.d.ts +2 -2
  87. package/dist/i18n/index.js +5 -5
  88. package/dist/{immutable-guard-BZIcYhYX.d.cts → immutable-guard-7KqslW2K.d.cts} +1 -1
  89. package/dist/{immutable-guard-B0h-ipLz.d.ts → immutable-guard-C8IYdzfu.d.ts} +1 -1
  90. package/dist/index.cjs +133 -8
  91. package/dist/index.cjs.map +1 -1
  92. package/dist/index.d.cts +9 -9
  93. package/dist/index.d.ts +9 -9
  94. package/dist/index.js +39 -39
  95. package/dist/indexing/index.cjs.map +1 -1
  96. package/dist/indexing/index.js +2 -2
  97. package/dist/issue-ADVS4OVP.js +12 -0
  98. package/dist/{ledger-64TTQMRS.js → ledger-CWSE3BLF.js} +4 -4
  99. package/dist/materialized-views/index.cjs.map +1 -1
  100. package/dist/materialized-views/index.d.cts +3 -3
  101. package/dist/materialized-views/index.d.ts +3 -3
  102. package/dist/materialized-views/index.js +6 -6
  103. package/dist/noydb-VZ4JVW55.js +35 -0
  104. package/dist/overlay-views/index.cjs.map +1 -1
  105. package/dist/overlay-views/index.d.cts +3 -3
  106. package/dist/overlay-views/index.d.ts +3 -3
  107. package/dist/overlay-views/index.js +4 -4
  108. package/dist/periods/index.cjs.map +1 -1
  109. package/dist/periods/index.d.cts +2 -2
  110. package/dist/periods/index.d.ts +2 -2
  111. package/dist/periods/index.js +4 -4
  112. package/dist/{public-envelope-MHG6YVXW.js → public-envelope-SYHEYQ3X.js} +3 -3
  113. package/dist/query/index.cjs.map +1 -1
  114. package/dist/query/index.js +3 -3
  115. package/dist/{registry-PV4G3OPA.js → registry-DK5YWAAA.js} +3 -3
  116. package/dist/registry-IUZQVVBB.js +8 -0
  117. package/dist/registry-XGLNADIE.js +8 -0
  118. package/dist/{revoke-5BOLVJ3N.js → revoke-ZDFKMR5E.js} +5 -5
  119. package/dist/session/index.cjs.map +1 -1
  120. package/dist/session/index.d.cts +3 -3
  121. package/dist/session/index.d.ts +3 -3
  122. package/dist/session/index.js +3 -3
  123. package/dist/shadow/index.cjs.map +1 -1
  124. package/dist/shadow/index.d.cts +2 -2
  125. package/dist/shadow/index.d.ts +2 -2
  126. package/dist/shadow/index.js +2 -2
  127. package/dist/{signer-GRIYBA22.js → signer-P5D7Y72U.js} +4 -4
  128. package/dist/snapshots/index.cjs.map +1 -1
  129. package/dist/snapshots/index.d.cts +2 -2
  130. package/dist/snapshots/index.d.ts +2 -2
  131. package/dist/snapshots/index.js +3 -3
  132. package/dist/{stale-LZYMMDDS.js → stale-7FRJVHN6.js} +2 -2
  133. package/dist/{state-vault-QFJWU23A.js → state-vault-TMXZRTY5.js} +3 -3
  134. package/dist/store/index.cjs.map +1 -1
  135. package/dist/store/index.d.cts +2 -2
  136. package/dist/store/index.d.ts +2 -2
  137. package/dist/store/index.js +2 -2
  138. package/dist/sync/index.cjs.map +1 -1
  139. package/dist/sync/index.d.cts +1 -1
  140. package/dist/sync/index.d.ts +1 -1
  141. package/dist/sync/index.js +3 -3
  142. package/dist/team/index.cjs.map +1 -1
  143. package/dist/team/index.d.cts +2 -2
  144. package/dist/team/index.d.ts +2 -2
  145. package/dist/team/index.js +7 -7
  146. package/dist/tx/index.cjs.map +1 -1
  147. package/dist/tx/index.d.cts +2 -2
  148. package/dist/tx/index.d.ts +2 -2
  149. package/dist/tx/index.js +3 -3
  150. package/dist/{types-pax34sec.d.ts → types-BFHQUjdy.d.ts} +56 -3
  151. package/dist/{types-CDwSSXiI.d.cts → types-V5R2-pd4.d.cts} +56 -3
  152. package/dist/{ulid-7bCSgIgb.d.cts → ulid-CwNf9e6-.d.cts} +1 -1
  153. package/dist/{ulid-C_t4hL3d.d.ts → ulid-p2nKiiKg.d.ts} +1 -1
  154. package/dist/util/index.cjs.map +1 -1
  155. package/dist/util/index.js +1 -1
  156. package/dist/{vault-group-UO4YUZOG.js → vault-group-W7QC4UYW.js} +125 -11
  157. package/dist/vault-group-W7QC4UYW.js.map +1 -0
  158. package/dist/{with-derivation-D8wFlb6V.d.cts → with-derivation-C9K43BOB.d.cts} +1 -1
  159. package/dist/{with-derivation-BjdOxUBn.d.ts → with-derivation-Ds9yZgCj.d.ts} +1 -1
  160. package/dist/{with-materialized-view-5QMF1rS_.d.cts → with-materialized-view-DgQcAjYv.d.cts} +1 -1
  161. package/dist/{with-materialized-view-DJb-HO65.d.ts → with-materialized-view-DwR4jkV5.d.ts} +1 -1
  162. package/dist/{with-overlayed-view-DDNflPvC.d.cts → with-overlayed-view-7-rUB3vD.d.cts} +1 -1
  163. package/dist/{with-overlayed-view-CkqTefbz.d.ts → with-overlayed-view-ByyhHdVr.d.ts} +1 -1
  164. package/package.json +3 -3
  165. package/dist/executor-AVJ7UEWA.js +0 -8
  166. package/dist/executor-IQO3KGXQ.js +0 -11
  167. package/dist/executor-VT7TKGE4.js +0 -8
  168. package/dist/issue-ZH27C23Y.js +0 -12
  169. package/dist/noydb-O76SKBST.js +0 -35
  170. package/dist/registry-2PKBQDCH.js +0 -8
  171. package/dist/registry-4VXFKCBJ.js +0 -8
  172. package/dist/vault-group-UO4YUZOG.js.map +0 -1
  173. /package/dist/{chunk-YWBHS25M.js.map → chunk-3EWA37FV.js.map} +0 -0
  174. /package/dist/{chunk-AYNF7PVX.js.map → chunk-4PEFEETV.js.map} +0 -0
  175. /package/dist/{chunk-SJ24GHID.js.map → chunk-4TBBMHVC.js.map} +0 -0
  176. /package/dist/{chunk-HQXOEWLZ.js.map → chunk-56DJ7JVK.js.map} +0 -0
  177. /package/dist/{chunk-KKB42D3Q.js.map → chunk-5LQG6ZO2.js.map} +0 -0
  178. /package/dist/{chunk-TDECYU4Y.js.map → chunk-6AJBSQU4.js.map} +0 -0
  179. /package/dist/{chunk-O2JW656W.js.map → chunk-6RR3MNMG.js.map} +0 -0
  180. /package/dist/{chunk-7TEI2K2A.js.map → chunk-7HT2MEZ5.js.map} +0 -0
  181. /package/dist/{chunk-WQKZIQIL.js.map → chunk-7PS7EOCF.js.map} +0 -0
  182. /package/dist/{chunk-C3WRKABE.js.map → chunk-A5ZOOZFB.js.map} +0 -0
  183. /package/dist/{chunk-5NISHSBO.js.map → chunk-AAVWKNZW.js.map} +0 -0
  184. /package/dist/{chunk-P5MW7BG2.js.map → chunk-ACKFRSAH.js.map} +0 -0
  185. /package/dist/{chunk-SOU42FGB.js.map → chunk-BIYRQQV6.js.map} +0 -0
  186. /package/dist/{chunk-ILWQGTNH.js.map → chunk-BQ65SS5A.js.map} +0 -0
  187. /package/dist/{chunk-SYSKC237.js.map → chunk-COFPAMX6.js.map} +0 -0
  188. /package/dist/{chunk-KJF7EPUE.js.map → chunk-DKO2QFSA.js.map} +0 -0
  189. /package/dist/{chunk-QFYVGJLI.js.map → chunk-DQU36Q7I.js.map} +0 -0
  190. /package/dist/{chunk-NIUXQDWD.js.map → chunk-EGD5DXFT.js.map} +0 -0
  191. /package/dist/{chunk-KHQ3N5AB.js.map → chunk-F4OJZIWQ.js.map} +0 -0
  192. /package/dist/{chunk-3OUCWHV6.js.map → chunk-FWPKCXTN.js.map} +0 -0
  193. /package/dist/{chunk-QIVFGU2M.js.map → chunk-HOR4R722.js.map} +0 -0
  194. /package/dist/{chunk-4VCQH32J.js.map → chunk-JD3OZAI4.js.map} +0 -0
  195. /package/dist/{chunk-NJMKHRQI.js.map → chunk-KGCORI4L.js.map} +0 -0
  196. /package/dist/{chunk-J67BP5EP.js.map → chunk-KI6HAJWL.js.map} +0 -0
  197. /package/dist/{chunk-PW26DAXS.js.map → chunk-L2FE64BU.js.map} +0 -0
  198. /package/dist/{chunk-QAWCVWCX.js.map → chunk-LX3CB26H.js.map} +0 -0
  199. /package/dist/{chunk-VAK6NQAK.js.map → chunk-NSCVNK5K.js.map} +0 -0
  200. /package/dist/{chunk-3XZRRBFW.js.map → chunk-OHVFWCJP.js.map} +0 -0
  201. /package/dist/{chunk-TEQGXA7L.js.map → chunk-PE4AQGFH.js.map} +0 -0
  202. /package/dist/{chunk-UNQEWORI.js.map → chunk-TS26M2SB.js.map} +0 -0
  203. /package/dist/{chunk-CWFQTAD4.js.map → chunk-UWNYBOOO.js.map} +0 -0
  204. /package/dist/{chunk-FNVFT4HZ.js.map → chunk-VU7SWWT5.js.map} +0 -0
  205. /package/dist/{chunk-GZJ5JBED.js.map → chunk-WBAYSNUQ.js.map} +0 -0
  206. /package/dist/{chunk-HHZ77DHM.js.map → chunk-WGHU7BLI.js.map} +0 -0
  207. /package/dist/{chunk-GL3Z7LH7.js.map → chunk-X73VS74Y.js.map} +0 -0
  208. /package/dist/{chunk-M6KXHRIA.js.map → chunk-YHPM5D7Y.js.map} +0 -0
  209. /package/dist/{chunk-D5Y3HIC6.js.map → chunk-YNTBADIY.js.map} +0 -0
  210. /package/dist/{chunk-E3DIBDKA.js.map → chunk-YULZKK4F.js.map} +0 -0
  211. /package/dist/{chunk-JWFNOD2T.js.map → chunk-Z4DO7YSI.js.map} +0 -0
  212. /package/dist/{chunk-JPOQMXGT.js.map → chunk-ZNQYHJXX.js.map} +0 -0
  213. /package/dist/{chunk-4YDZ7JPZ.js.map → chunk-ZWTNWAO4.js.map} +0 -0
  214. /package/dist/{crypto-YXH6SAOW.js.map → crypto-QXQOHMHF.js.map} +0 -0
  215. /package/dist/{delegation-K5ERUH6A.js.map → delegation-NIQ43IPU.js.map} +0 -0
  216. /package/dist/{executor-AVJ7UEWA.js.map → executor-6ZDSDZ6V.js.map} +0 -0
  217. /package/dist/{executor-IQO3KGXQ.js.map → executor-723ZP6TH.js.map} +0 -0
  218. /package/dist/{executor-VT7TKGE4.js.map → executor-IDZDAFNH.js.map} +0 -0
  219. /package/dist/{issue-ZH27C23Y.js.map → issue-ADVS4OVP.js.map} +0 -0
  220. /package/dist/{ledger-64TTQMRS.js.map → ledger-CWSE3BLF.js.map} +0 -0
  221. /package/dist/{noydb-O76SKBST.js.map → noydb-VZ4JVW55.js.map} +0 -0
  222. /package/dist/{public-envelope-MHG6YVXW.js.map → public-envelope-SYHEYQ3X.js.map} +0 -0
  223. /package/dist/{registry-2PKBQDCH.js.map → registry-DK5YWAAA.js.map} +0 -0
  224. /package/dist/{registry-4VXFKCBJ.js.map → registry-IUZQVVBB.js.map} +0 -0
  225. /package/dist/{registry-PV4G3OPA.js.map → registry-XGLNADIE.js.map} +0 -0
  226. /package/dist/{revoke-5BOLVJ3N.js.map → revoke-ZDFKMR5E.js.map} +0 -0
  227. /package/dist/{signer-GRIYBA22.js.map → signer-P5D7Y72U.js.map} +0 -0
  228. /package/dist/{stale-LZYMMDDS.js.map → stale-7FRJVHN6.js.map} +0 -0
  229. /package/dist/{state-vault-QFJWU23A.js.map → state-vault-TMXZRTY5.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { B as BlobStrategy } from '../types-CDwSSXiI.cjs';
2
- export { z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, C as BLOB_EVICTION_AUDIT_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX, H as BlobEvictionEntry, J as BlobFieldPolicy, K as BlobFieldsConfig, M as BlobObject, N as BlobPutOptions, Q as BlobResponseOptions, T as BlobSet, U as BlobStrategyOpenArgs, V as CompactRunOptions, W as CompactionContext, X as CompactionResult, Y as DEFAULT_CHUNK_SIZE, Z as EXPORT_AUDIT_COLLECTION, _ as ExportBlobsAbortedError, $ as ExportBlobsAuditEntry, a0 as ExportBlobsHandle, a1 as ExportBlobsOptions, a2 as ExportedBlob, a3 as SlotInfo, a4 as SlotRecord, a5 as VersionRecord, a6 as createExportBlobsHandle, a7 as runCompaction } from '../types-CDwSSXiI.cjs';
1
+ import { B as BlobStrategy } from '../types-V5R2-pd4.cjs';
2
+ export { z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, C as BLOB_EVICTION_AUDIT_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX, H as BlobEvictionEntry, J as BlobFieldPolicy, K as BlobFieldsConfig, M as BlobObject, N as BlobPutOptions, Q as BlobResponseOptions, T as BlobSet, U as BlobStrategyOpenArgs, V as CompactRunOptions, W as CompactionContext, X as CompactionResult, Y as DEFAULT_CHUNK_SIZE, Z as EXPORT_AUDIT_COLLECTION, _ as ExportBlobsAbortedError, $ as ExportBlobsAuditEntry, a0 as ExportBlobsHandle, a1 as ExportBlobsOptions, a2 as ExportedBlob, a3 as SlotInfo, a4 as SlotRecord, a5 as VersionRecord, a6 as createExportBlobsHandle, a7 as runCompaction } from '../types-V5R2-pd4.cjs';
3
3
  export { d as detectMagic, a as detectMimeType, i as isPreCompressed } from '../mime-magic-CBBSOkjm.cjs';
4
4
  import '../lazy-builder-Ci5_YG73.cjs';
5
5
  import '../predicate-Bt5ft-9c.cjs';
@@ -1,5 +1,5 @@
1
- import { B as BlobStrategy } from '../types-pax34sec.js';
2
- export { z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, C as BLOB_EVICTION_AUDIT_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX, H as BlobEvictionEntry, J as BlobFieldPolicy, K as BlobFieldsConfig, M as BlobObject, N as BlobPutOptions, Q as BlobResponseOptions, T as BlobSet, U as BlobStrategyOpenArgs, V as CompactRunOptions, W as CompactionContext, X as CompactionResult, Y as DEFAULT_CHUNK_SIZE, Z as EXPORT_AUDIT_COLLECTION, _ as ExportBlobsAbortedError, $ as ExportBlobsAuditEntry, a0 as ExportBlobsHandle, a1 as ExportBlobsOptions, a2 as ExportedBlob, a3 as SlotInfo, a4 as SlotRecord, a5 as VersionRecord, a6 as createExportBlobsHandle, a7 as runCompaction } from '../types-pax34sec.js';
1
+ import { B as BlobStrategy } from '../types-BFHQUjdy.js';
2
+ export { z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, C as BLOB_EVICTION_AUDIT_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX, H as BlobEvictionEntry, J as BlobFieldPolicy, K as BlobFieldsConfig, M as BlobObject, N as BlobPutOptions, Q as BlobResponseOptions, T as BlobSet, U as BlobStrategyOpenArgs, V as CompactRunOptions, W as CompactionContext, X as CompactionResult, Y as DEFAULT_CHUNK_SIZE, Z as EXPORT_AUDIT_COLLECTION, _ as ExportBlobsAbortedError, $ as ExportBlobsAuditEntry, a0 as ExportBlobsHandle, a1 as ExportBlobsOptions, a2 as ExportedBlob, a3 as SlotInfo, a4 as SlotRecord, a5 as VersionRecord, a6 as createExportBlobsHandle, a7 as runCompaction } from '../types-BFHQUjdy.js';
3
3
  export { d as detectMagic, a as detectMimeType, i as isPreCompressed } from '../mime-magic-CBBSOkjm.js';
4
4
  import '../lazy-builder-D5GU14TS.js';
5
5
  import '../predicate-Bt5ft-9c.js';
@@ -9,17 +9,17 @@ import {
9
9
  detectMagic,
10
10
  detectMimeType,
11
11
  isPreCompressed
12
- } from "../chunk-QAWCVWCX.js";
12
+ } from "../chunk-LX3CB26H.js";
13
13
  import {
14
14
  BLOB_EVICTION_AUDIT_COLLECTION,
15
15
  EXPORT_AUDIT_COLLECTION,
16
16
  ExportBlobsAbortedError,
17
17
  createExportBlobsHandle,
18
18
  runCompaction
19
- } from "../chunk-TDECYU4Y.js";
19
+ } from "../chunk-6AJBSQU4.js";
20
20
  import "../chunk-GC4V7RU7.js";
21
- import "../chunk-E3DIBDKA.js";
22
- import "../chunk-NKGY3C53.js";
21
+ import "../chunk-YULZKK4F.js";
22
+ import "../chunk-535SSHBS.js";
23
23
 
24
24
  // src/blobs/active.ts
25
25
  function withBlobs() {
@@ -31,7 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
33
  // src/errors.ts
34
- var NoydbError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, ReservedVaultNameError, FieldFrozenError, InvariantError, AmendmentForbiddenError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, ValidationError, SchemaValidationError, SchemaUpdateError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, LocaleNotSpecifiedError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, PartitionExtractionError, TransferSealError, AdoptionStateError, AttestationError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, DerivationCycleError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, UnknownShardError, ShardProvisioningError, VaultTemplateNotFoundError;
34
+ var NoydbError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, ReservedVaultNameError, FieldFrozenError, InvariantError, AmendmentForbiddenError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, ValidationError, SchemaValidationError, SchemaUpdateError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, LocaleNotSpecifiedError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, PartitionExtractionError, TransferSealError, AdoptionStateError, AttestationError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, DerivationCycleError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, UnknownShardError, ShardProvisioningError, CrossShardJoinError, VaultTemplateNotFoundError;
35
35
  var init_errors = __esm({
36
36
  "src/errors.ts"() {
37
37
  "use strict";
@@ -746,6 +746,12 @@ Resolutions:
746
746
  this.vaultId = vaultId;
747
747
  }
748
748
  };
749
+ CrossShardJoinError = class extends NoydbError {
750
+ constructor(message) {
751
+ super("CROSS_SHARD_JOIN", message);
752
+ this.name = "CrossShardJoinError";
753
+ }
754
+ };
749
755
  VaultTemplateNotFoundError = class extends NoydbError {
750
756
  templateName;
751
757
  constructor(templateName) {
@@ -17203,6 +17209,54 @@ var init_classify_skip = __esm({
17203
17209
  }
17204
17210
  });
17205
17211
 
17212
+ // src/federation/cross-shard-join.ts
17213
+ function coerceKey(value) {
17214
+ if (value === null || value === void 0) return null;
17215
+ if (typeof value === "string") return value;
17216
+ if (typeof value === "number" || typeof value === "bigint") return String(value);
17217
+ return null;
17218
+ }
17219
+ function warnOnceBroadcastMiss(field, as, key) {
17220
+ const dedup = `${field}\u2192${as}:${key}`;
17221
+ if (warnedBroadcastKeys.has(dedup)) return;
17222
+ warnedBroadcastKeys.add(dedup);
17223
+ console.warn(
17224
+ `[noy-db] broadcastJoin: no "${as}" dimension row for ${field}="${key}". Attaching null. Use mode: 'cascade' to silence.`
17225
+ );
17226
+ }
17227
+ async function applyBroadcastLegs(rows, legs) {
17228
+ if (legs.length === 0) return [...rows];
17229
+ const indexes = [];
17230
+ for (const leg of legs) {
17231
+ const map = /* @__PURE__ */ new Map();
17232
+ for (const rec of await leg.from.list()) {
17233
+ const k = coerceKey(readPath(rec, leg.on));
17234
+ if (k !== null && !map.has(k)) map.set(k, rec);
17235
+ }
17236
+ indexes.push({ leg, map });
17237
+ }
17238
+ return rows.map((row) => {
17239
+ const out = { ...row };
17240
+ for (const { leg, map } of indexes) {
17241
+ const key = coerceKey(readPath(row, leg.field));
17242
+ const match = key === null ? null : map.get(key) ?? null;
17243
+ if (match === null && leg.mode === "warn") {
17244
+ warnOnceBroadcastMiss(leg.field, leg.as, key ?? "<null>");
17245
+ }
17246
+ out[leg.as] = match;
17247
+ }
17248
+ return out;
17249
+ });
17250
+ }
17251
+ var warnedBroadcastKeys;
17252
+ var init_cross_shard_join = __esm({
17253
+ "src/federation/cross-shard-join.ts"() {
17254
+ "use strict";
17255
+ init_predicate();
17256
+ warnedBroadcastKeys = /* @__PURE__ */ new Set();
17257
+ }
17258
+ });
17259
+
17206
17260
  // src/federation/cross-vault-live.ts
17207
17261
  var CrossVaultLive;
17208
17262
  var init_cross_vault_live = __esm({
@@ -17431,6 +17485,7 @@ var init_vault_group = __esm({
17431
17485
  init_errors();
17432
17486
  init_constants2();
17433
17487
  init_classify_skip();
17488
+ init_cross_shard_join();
17434
17489
  init_cross_vault_live();
17435
17490
  init_aggregate_across();
17436
17491
  SHARD_SEPARATOR = "--";
@@ -17594,31 +17649,89 @@ var init_vault_group = __esm({
17594
17649
  }
17595
17650
  };
17596
17651
  ShardedQuery = class _ShardedQuery {
17597
- constructor(group, collectionName, clauses) {
17652
+ constructor(group, collectionName, clauses, coPartitionedLegs = [], broadcastLegs = []) {
17598
17653
  this.group = group;
17599
17654
  this.collectionName = collectionName;
17600
17655
  this.clauses = clauses;
17656
+ this.coPartitionedLegs = coPartitionedLegs;
17657
+ this.broadcastLegs = broadcastLegs;
17601
17658
  }
17602
17659
  group;
17603
17660
  collectionName;
17604
17661
  clauses;
17662
+ coPartitionedLegs;
17663
+ broadcastLegs;
17605
17664
  where(field, op, value) {
17606
- return new _ShardedQuery(this.group, this.collectionName, [
17607
- ...this.clauses,
17608
- { field, op, value }
17609
- ]);
17665
+ return new _ShardedQuery(
17666
+ this.group,
17667
+ this.collectionName,
17668
+ [...this.clauses, { field, op, value }],
17669
+ this.coPartitionedLegs,
17670
+ this.broadcastLegs
17671
+ );
17672
+ }
17673
+ /** Co-partitioned join: each shard joins its own same-vault right collection (resolved via ref()), then union. */
17674
+ crossShardJoin(field, opts) {
17675
+ const leg = { field, as: opts.as, maxRows: opts.maxRows, strategy: opts.strategy };
17676
+ return new _ShardedQuery(
17677
+ this.group,
17678
+ this.collectionName,
17679
+ this.clauses,
17680
+ [...this.coPartitionedLegs, leg],
17681
+ this.broadcastLegs
17682
+ );
17683
+ }
17684
+ /** Broadcast dimension join: enrich every merged row from a single shared collection. */
17685
+ broadcastJoin(field, opts) {
17686
+ const leg = {
17687
+ field,
17688
+ as: opts.as,
17689
+ from: opts.from,
17690
+ on: opts.on ?? "id",
17691
+ mode: opts.mode ?? "warn"
17692
+ };
17693
+ return new _ShardedQuery(
17694
+ this.group,
17695
+ this.collectionName,
17696
+ this.clauses,
17697
+ this.coPartitionedLegs,
17698
+ [...this.broadcastLegs, leg]
17699
+ );
17610
17700
  }
17611
17701
  /** @internal — fan out the where-filtered records across eligible shards. */
17612
17702
  async fanoutRecords(options = {}) {
17613
17703
  const { eligible, skipped } = await this.group.resolveEligible(options);
17704
+ const probeRow = eligible[0];
17705
+ if (this.coPartitionedLegs.length > 0 && probeRow) {
17706
+ const probe = await this.group.openShard(probeRow.partitionKey);
17707
+ this.group.template.configure(probe);
17708
+ for (const leg of this.coPartitionedLegs) {
17709
+ if (!probe.resolveRef(this.collectionName, leg.field)) {
17710
+ throw new CrossShardJoinError(
17711
+ `crossShardJoin("${leg.field}"): no ref() declared for "${leg.field}" on collection "${this.collectionName}" in template "${this.group.sharding.vaultTemplate}". Add refs: { ${leg.field}: ref('<target>') } to the template's collection options.`
17712
+ );
17713
+ }
17714
+ }
17715
+ }
17614
17716
  const across = await this.group.db.queryAcross(
17615
17717
  eligible.map((r) => r.vaultId),
17616
17718
  async (vault) => {
17617
17719
  this.group.template.configure(vault);
17618
17720
  const coll = vault.collection(this.collectionName);
17619
17721
  await coll.list();
17722
+ for (const leg of this.coPartitionedLegs) {
17723
+ const desc = vault.resolveRef(this.collectionName, leg.field);
17724
+ if (desc) await vault.collection(desc.target).list();
17725
+ }
17620
17726
  let q = coll.query();
17621
17727
  for (const c of this.clauses) q = q.where(c.field, c.op, c.value);
17728
+ for (const leg of this.coPartitionedLegs) {
17729
+ q = q.join(leg.field, {
17730
+ as: leg.as,
17731
+ ...leg.maxRows !== void 0 ? { maxRows: leg.maxRows } : {},
17732
+ ...leg.strategy ? { strategy: leg.strategy } : {}
17733
+ });
17734
+ }
17622
17735
  return q.toArray();
17623
17736
  },
17624
17737
  { concurrency: options.concurrency ?? 1, create: false }
@@ -17630,10 +17743,11 @@ var init_vault_group = __esm({
17630
17743
  }
17631
17744
  return { records: results, skippedVaults: skipped };
17632
17745
  }
17633
- /** Fan out across eligible shards and merge results. */
17746
+ /** Fan out across eligible shards, merge, then apply any broadcast dimension legs. */
17634
17747
  async toArray(options = {}) {
17635
17748
  const { records, skippedVaults } = await this.fanoutRecords(options);
17636
- return { results: records, skippedVaults };
17749
+ const results = await applyBroadcastLegs(records, this.broadcastLegs);
17750
+ return { results, skippedVaults };
17637
17751
  }
17638
17752
  /** @internal — build the change-subscription + relevance binding for this query's group+collection. */
17639
17753
  liveBinding() {
@@ -17647,8 +17761,17 @@ var init_vault_group = __esm({
17647
17761
  isRelevant: (e) => e.collection === collectionName && e.vault.startsWith(`${group.name}--`)
17648
17762
  };
17649
17763
  }
17764
+ /** @internal — joined queries don't support reactive/aggregate surfaces in v1. */
17765
+ assertNoJoinLegs(surface) {
17766
+ if (this.coPartitionedLegs.length || this.broadcastLegs.length) {
17767
+ throw new CrossShardJoinError(
17768
+ `${surface}() is not supported on a ShardedQuery with crossShardJoin/broadcastJoin legs in v1. Use toArray() for joined cross-shard queries.`
17769
+ );
17770
+ }
17771
+ }
17650
17772
  /** Returns a reactive cross-shard live query — a facade over CrossVaultLive. */
17651
17773
  live(options = {}) {
17774
+ this.assertNoJoinLegs("live");
17652
17775
  const bind = this.liveBinding();
17653
17776
  const core = new CrossVaultLive({
17654
17777
  ...bind,
@@ -17676,10 +17799,12 @@ var init_vault_group = __esm({
17676
17799
  }
17677
17800
  /** One-shot distributed aggregate — central reduce over all shard records. */
17678
17801
  aggregate(spec) {
17802
+ this.assertNoJoinLegs("aggregate");
17679
17803
  return new CrossVaultAggregation(this, spec, this.liveBinding());
17680
17804
  }
17681
17805
  /** Begin a grouped cross-shard aggregate. */
17682
17806
  groupBy(field) {
17807
+ this.assertNoJoinLegs("groupBy");
17683
17808
  return new ShardedGroupedQuery(this, field);
17684
17809
  }
17685
17810
  };