@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 { I as I18nStrategy } from '../types-CDwSSXiI.cjs';
2
- export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-CDwSSXiI.cjs';
1
+ import { I as I18nStrategy } from '../types-V5R2-pd4.cjs';
2
+ export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-V5R2-pd4.cjs';
3
3
  export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, T as TranslatorNotConfiguredError } from '../strategy-CrS7PnbE.cjs';
4
4
  import '../lazy-builder-Ci5_YG73.cjs';
5
5
  import '../predicate-Bt5ft-9c.cjs';
@@ -1,5 +1,5 @@
1
- import { I as I18nStrategy } from '../types-pax34sec.js';
2
- export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-pax34sec.js';
1
+ import { I as I18nStrategy } from '../types-BFHQUjdy.js';
2
+ export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-BFHQUjdy.js';
3
3
  export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, T as TranslatorNotConfiguredError } from '../strategy-CrS7PnbE.js';
4
4
  import '../lazy-builder-D5GU14TS.js';
5
5
  import '../predicate-Bt5ft-9c.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  enforceScript,
3
3
  inferScripts
4
- } from "../chunk-5NISHSBO.js";
4
+ } from "../chunk-AAVWKNZW.js";
5
5
  import {
6
6
  DICT_COLLECTION_PREFIX,
7
7
  DictionaryHandle,
@@ -17,11 +17,11 @@ import {
17
17
  resolvePolicy,
18
18
  setAtPathInPlace,
19
19
  validateI18nTextValue
20
- } from "../chunk-7TEI2K2A.js";
21
- import "../chunk-C3WRKABE.js";
20
+ } from "../chunk-7HT2MEZ5.js";
21
+ import "../chunk-A5ZOOZFB.js";
22
22
  import "../chunk-Z6FNBOTC.js";
23
23
  import "../chunk-GC4V7RU7.js";
24
- import "../chunk-E3DIBDKA.js";
24
+ import "../chunk-YULZKK4F.js";
25
25
  import {
26
26
  DictKeyInUseError,
27
27
  DictKeyMissingError,
@@ -30,7 +30,7 @@ import {
30
30
  ReservedCollectionNameError,
31
31
  ScriptViolationError,
32
32
  TranslatorNotConfiguredError
33
- } from "../chunk-NKGY3C53.js";
33
+ } from "../chunk-535SSHBS.js";
34
34
 
35
35
  // src/i18n/active.ts
36
36
  function withI18n() {
@@ -1,4 +1,4 @@
1
- import { as as GuardStrategy, aw as GuardStrategyHandle } from './types-CDwSSXiI.cjs';
1
+ import { as as GuardStrategy, aw as GuardStrategyHandle } from './types-V5R2-pd4.cjs';
2
2
 
3
3
  /**
4
4
  * Register a guard for a collection. Guards run on every `put()` /
@@ -1,4 +1,4 @@
1
- import { as as GuardStrategy, aw as GuardStrategyHandle } from './types-pax34sec.js';
1
+ import { as as GuardStrategy, aw as GuardStrategyHandle } from './types-BFHQUjdy.js';
2
2
 
3
3
  /**
4
4
  * Register a guard for a collection. Guards run on every `put()` /
package/dist/index.cjs CHANGED
@@ -46,7 +46,7 @@ var init_types = __esm({
46
46
  });
47
47
 
48
48
  // src/errors.ts
49
- var NoydbError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, ReadOnlyAtInstantError, ReadOnlyFrameError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, ReservedVaultNameError, PeriodClosedError, RecordLockedError, FieldFrozenError, InvariantError, AmendmentForbiddenError, DirectoryDisabledError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, NetworkError, NotFoundError, ValidationError, SchemaValidationError, SchemaUpdateError, NonAdditiveSchemaChangeError, SchemaLockedError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, DictKeyMissingError, DictKeyInUseError, MissingTranslationError, LocaleNotSpecifiedError, ScriptViolationError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, AttestationError, SessionExpiredError, SessionNotFoundError, SessionPolicyError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, FilenameSanitizationError, PathEscapeError, DerivationCycleError, DerivationDepthError, DerivationOutputUnknownError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, MaterializedViewConfigError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, SnapshotNotFoundError, UnknownShardError, ShardProvisioningError, VaultTemplateNotFoundError;
49
+ var NoydbError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, ReadOnlyAtInstantError, ReadOnlyFrameError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, ReservedVaultNameError, PeriodClosedError, RecordLockedError, FieldFrozenError, InvariantError, AmendmentForbiddenError, DirectoryDisabledError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, NetworkError, NotFoundError, ValidationError, SchemaValidationError, SchemaUpdateError, NonAdditiveSchemaChangeError, SchemaLockedError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, DictKeyMissingError, DictKeyInUseError, MissingTranslationError, LocaleNotSpecifiedError, ScriptViolationError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, AttestationError, SessionExpiredError, SessionNotFoundError, SessionPolicyError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, FilenameSanitizationError, PathEscapeError, DerivationCycleError, DerivationDepthError, DerivationOutputUnknownError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, MaterializedViewConfigError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, SnapshotNotFoundError, UnknownShardError, ShardProvisioningError, CrossShardJoinError, VaultTemplateNotFoundError;
50
50
  var init_errors = __esm({
51
51
  "src/errors.ts"() {
52
52
  "use strict";
@@ -988,6 +988,12 @@ Resolutions:
988
988
  this.vaultId = vaultId;
989
989
  }
990
990
  };
991
+ CrossShardJoinError = class extends NoydbError {
992
+ constructor(message) {
993
+ super("CROSS_SHARD_JOIN", message);
994
+ this.name = "CrossShardJoinError";
995
+ }
996
+ };
991
997
  VaultTemplateNotFoundError = class extends NoydbError {
992
998
  templateName;
993
999
  constructor(templateName) {
@@ -4619,6 +4625,54 @@ var init_classify_skip = __esm({
4619
4625
  }
4620
4626
  });
4621
4627
 
4628
+ // src/federation/cross-shard-join.ts
4629
+ function coerceKey(value) {
4630
+ if (value === null || value === void 0) return null;
4631
+ if (typeof value === "string") return value;
4632
+ if (typeof value === "number" || typeof value === "bigint") return String(value);
4633
+ return null;
4634
+ }
4635
+ function warnOnceBroadcastMiss(field, as, key) {
4636
+ const dedup = `${field}\u2192${as}:${key}`;
4637
+ if (warnedBroadcastKeys.has(dedup)) return;
4638
+ warnedBroadcastKeys.add(dedup);
4639
+ console.warn(
4640
+ `[noy-db] broadcastJoin: no "${as}" dimension row for ${field}="${key}". Attaching null. Use mode: 'cascade' to silence.`
4641
+ );
4642
+ }
4643
+ async function applyBroadcastLegs(rows, legs) {
4644
+ if (legs.length === 0) return [...rows];
4645
+ const indexes = [];
4646
+ for (const leg of legs) {
4647
+ const map = /* @__PURE__ */ new Map();
4648
+ for (const rec of await leg.from.list()) {
4649
+ const k = coerceKey(readPath(rec, leg.on));
4650
+ if (k !== null && !map.has(k)) map.set(k, rec);
4651
+ }
4652
+ indexes.push({ leg, map });
4653
+ }
4654
+ return rows.map((row) => {
4655
+ const out = { ...row };
4656
+ for (const { leg, map } of indexes) {
4657
+ const key = coerceKey(readPath(row, leg.field));
4658
+ const match = key === null ? null : map.get(key) ?? null;
4659
+ if (match === null && leg.mode === "warn") {
4660
+ warnOnceBroadcastMiss(leg.field, leg.as, key ?? "<null>");
4661
+ }
4662
+ out[leg.as] = match;
4663
+ }
4664
+ return out;
4665
+ });
4666
+ }
4667
+ var warnedBroadcastKeys;
4668
+ var init_cross_shard_join = __esm({
4669
+ "src/federation/cross-shard-join.ts"() {
4670
+ "use strict";
4671
+ init_predicate();
4672
+ warnedBroadcastKeys = /* @__PURE__ */ new Set();
4673
+ }
4674
+ });
4675
+
4622
4676
  // src/federation/cross-vault-live.ts
4623
4677
  var CrossVaultLive;
4624
4678
  var init_cross_vault_live = __esm({
@@ -4847,6 +4901,7 @@ var init_vault_group = __esm({
4847
4901
  init_errors();
4848
4902
  init_constants();
4849
4903
  init_classify_skip();
4904
+ init_cross_shard_join();
4850
4905
  init_cross_vault_live();
4851
4906
  init_aggregate_across();
4852
4907
  SHARD_SEPARATOR = "--";
@@ -5010,31 +5065,89 @@ var init_vault_group = __esm({
5010
5065
  }
5011
5066
  };
5012
5067
  ShardedQuery = class _ShardedQuery {
5013
- constructor(group, collectionName, clauses) {
5068
+ constructor(group, collectionName, clauses, coPartitionedLegs = [], broadcastLegs = []) {
5014
5069
  this.group = group;
5015
5070
  this.collectionName = collectionName;
5016
5071
  this.clauses = clauses;
5072
+ this.coPartitionedLegs = coPartitionedLegs;
5073
+ this.broadcastLegs = broadcastLegs;
5017
5074
  }
5018
5075
  group;
5019
5076
  collectionName;
5020
5077
  clauses;
5078
+ coPartitionedLegs;
5079
+ broadcastLegs;
5021
5080
  where(field, op, value) {
5022
- return new _ShardedQuery(this.group, this.collectionName, [
5023
- ...this.clauses,
5024
- { field, op, value }
5025
- ]);
5081
+ return new _ShardedQuery(
5082
+ this.group,
5083
+ this.collectionName,
5084
+ [...this.clauses, { field, op, value }],
5085
+ this.coPartitionedLegs,
5086
+ this.broadcastLegs
5087
+ );
5088
+ }
5089
+ /** Co-partitioned join: each shard joins its own same-vault right collection (resolved via ref()), then union. */
5090
+ crossShardJoin(field, opts) {
5091
+ const leg = { field, as: opts.as, maxRows: opts.maxRows, strategy: opts.strategy };
5092
+ return new _ShardedQuery(
5093
+ this.group,
5094
+ this.collectionName,
5095
+ this.clauses,
5096
+ [...this.coPartitionedLegs, leg],
5097
+ this.broadcastLegs
5098
+ );
5099
+ }
5100
+ /** Broadcast dimension join: enrich every merged row from a single shared collection. */
5101
+ broadcastJoin(field, opts) {
5102
+ const leg = {
5103
+ field,
5104
+ as: opts.as,
5105
+ from: opts.from,
5106
+ on: opts.on ?? "id",
5107
+ mode: opts.mode ?? "warn"
5108
+ };
5109
+ return new _ShardedQuery(
5110
+ this.group,
5111
+ this.collectionName,
5112
+ this.clauses,
5113
+ this.coPartitionedLegs,
5114
+ [...this.broadcastLegs, leg]
5115
+ );
5026
5116
  }
5027
5117
  /** @internal — fan out the where-filtered records across eligible shards. */
5028
5118
  async fanoutRecords(options = {}) {
5029
5119
  const { eligible, skipped } = await this.group.resolveEligible(options);
5120
+ const probeRow = eligible[0];
5121
+ if (this.coPartitionedLegs.length > 0 && probeRow) {
5122
+ const probe = await this.group.openShard(probeRow.partitionKey);
5123
+ this.group.template.configure(probe);
5124
+ for (const leg of this.coPartitionedLegs) {
5125
+ if (!probe.resolveRef(this.collectionName, leg.field)) {
5126
+ throw new CrossShardJoinError(
5127
+ `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.`
5128
+ );
5129
+ }
5130
+ }
5131
+ }
5030
5132
  const across = await this.group.db.queryAcross(
5031
5133
  eligible.map((r) => r.vaultId),
5032
5134
  async (vault) => {
5033
5135
  this.group.template.configure(vault);
5034
5136
  const coll = vault.collection(this.collectionName);
5035
5137
  await coll.list();
5138
+ for (const leg of this.coPartitionedLegs) {
5139
+ const desc = vault.resolveRef(this.collectionName, leg.field);
5140
+ if (desc) await vault.collection(desc.target).list();
5141
+ }
5036
5142
  let q = coll.query();
5037
5143
  for (const c of this.clauses) q = q.where(c.field, c.op, c.value);
5144
+ for (const leg of this.coPartitionedLegs) {
5145
+ q = q.join(leg.field, {
5146
+ as: leg.as,
5147
+ ...leg.maxRows !== void 0 ? { maxRows: leg.maxRows } : {},
5148
+ ...leg.strategy ? { strategy: leg.strategy } : {}
5149
+ });
5150
+ }
5038
5151
  return q.toArray();
5039
5152
  },
5040
5153
  { concurrency: options.concurrency ?? 1, create: false }
@@ -5046,10 +5159,11 @@ var init_vault_group = __esm({
5046
5159
  }
5047
5160
  return { records: results, skippedVaults: skipped };
5048
5161
  }
5049
- /** Fan out across eligible shards and merge results. */
5162
+ /** Fan out across eligible shards, merge, then apply any broadcast dimension legs. */
5050
5163
  async toArray(options = {}) {
5051
5164
  const { records, skippedVaults } = await this.fanoutRecords(options);
5052
- return { results: records, skippedVaults };
5165
+ const results = await applyBroadcastLegs(records, this.broadcastLegs);
5166
+ return { results, skippedVaults };
5053
5167
  }
5054
5168
  /** @internal — build the change-subscription + relevance binding for this query's group+collection. */
5055
5169
  liveBinding() {
@@ -5063,8 +5177,17 @@ var init_vault_group = __esm({
5063
5177
  isRelevant: (e) => e.collection === collectionName && e.vault.startsWith(`${group.name}--`)
5064
5178
  };
5065
5179
  }
5180
+ /** @internal — joined queries don't support reactive/aggregate surfaces in v1. */
5181
+ assertNoJoinLegs(surface) {
5182
+ if (this.coPartitionedLegs.length || this.broadcastLegs.length) {
5183
+ throw new CrossShardJoinError(
5184
+ `${surface}() is not supported on a ShardedQuery with crossShardJoin/broadcastJoin legs in v1. Use toArray() for joined cross-shard queries.`
5185
+ );
5186
+ }
5187
+ }
5066
5188
  /** Returns a reactive cross-shard live query — a facade over CrossVaultLive. */
5067
5189
  live(options = {}) {
5190
+ this.assertNoJoinLegs("live");
5068
5191
  const bind = this.liveBinding();
5069
5192
  const core = new CrossVaultLive({
5070
5193
  ...bind,
@@ -5092,10 +5215,12 @@ var init_vault_group = __esm({
5092
5215
  }
5093
5216
  /** One-shot distributed aggregate — central reduce over all shard records. */
5094
5217
  aggregate(spec) {
5218
+ this.assertNoJoinLegs("aggregate");
5095
5219
  return new CrossVaultAggregation(this, spec, this.liveBinding());
5096
5220
  }
5097
5221
  /** Begin a grouped cross-shard aggregate. */
5098
5222
  groupBy(field) {
5223
+ this.assertNoJoinLegs("groupBy");
5099
5224
  return new ShardedGroupedQuery(this, field);
5100
5225
  }
5101
5226
  };