@noy-db/hub 0.2.0-pre.18 → 0.2.0-pre.19

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 (283) hide show
  1. package/dist/aggregate/index.cjs +227 -3
  2. package/dist/aggregate/index.cjs.map +1 -1
  3. package/dist/aggregate/index.d.cts +3 -3
  4. package/dist/aggregate/index.d.ts +3 -3
  5. package/dist/aggregate/index.js +5 -4
  6. package/dist/aggregate/index.js.map +1 -1
  7. package/dist/attestation/index.cjs.map +1 -1
  8. package/dist/attestation/index.d.cts +5 -5
  9. package/dist/attestation/index.d.ts +5 -5
  10. package/dist/attestation/index.js +6 -6
  11. package/dist/blobs/index.cjs +4 -10
  12. package/dist/blobs/index.cjs.map +1 -1
  13. package/dist/blobs/index.d.cts +6 -6
  14. package/dist/blobs/index.d.ts +6 -6
  15. package/dist/blobs/index.js +6 -6
  16. package/dist/bundle/index.cjs +520 -46
  17. package/dist/bundle/index.cjs.map +1 -1
  18. package/dist/bundle/index.d.cts +7 -7
  19. package/dist/bundle/index.d.ts +7 -7
  20. package/dist/bundle/index.js +10 -10
  21. package/dist/{chunk-6Q5XRLKG.js → chunk-3FSMVWBN.js} +4 -4
  22. package/dist/{chunk-647TFNYL.js → chunk-3Q2AOPLT.js} +76 -28
  23. package/dist/chunk-3Q2AOPLT.js.map +1 -0
  24. package/dist/{chunk-2U226RDC.js → chunk-4ULLGYPA.js} +3 -3
  25. package/dist/{chunk-6FHCU3QO.js → chunk-5IGWRMEC.js} +5 -5
  26. package/dist/{chunk-Y5XVB75E.js → chunk-6KESZO5D.js} +35 -7
  27. package/dist/chunk-6KESZO5D.js.map +1 -0
  28. package/dist/{chunk-KQ523X3A.js → chunk-6OSOE6BY.js} +2 -2
  29. package/dist/{chunk-HWK75CYX.js → chunk-7C6VFNIY.js} +2 -2
  30. package/dist/{chunk-33DAO2XG.js → chunk-7HD67R6U.js} +2 -2
  31. package/dist/{chunk-RQFG2YSV.js → chunk-B6E5IRPJ.js} +3 -3
  32. package/dist/{chunk-YWYW2YNO.js → chunk-CYNTFU2D.js} +2 -2
  33. package/dist/{chunk-HMFC6M2G.js → chunk-DJF3FXW5.js} +17 -1
  34. package/dist/{chunk-HMFC6M2G.js.map → chunk-DJF3FXW5.js.map} +1 -1
  35. package/dist/{chunk-KTZ2MHQK.js → chunk-DY3EOJEN.js} +2 -2
  36. package/dist/{chunk-PGVEL5IZ.js → chunk-E66DSTJP.js} +3 -3
  37. package/dist/{chunk-6YEC7LLO.js → chunk-FBLAWK6A.js} +2 -2
  38. package/dist/{chunk-LQ3GD5LL.js → chunk-FPHRTW2Z.js} +5 -5
  39. package/dist/{chunk-ZJ67TB4S.js → chunk-G4PYA575.js} +2 -2
  40. package/dist/{chunk-45643PAU.js → chunk-GKQAU52M.js} +4 -4
  41. package/dist/{chunk-5KKNBDCT.js → chunk-GYAWXHFO.js} +2 -2
  42. package/dist/{chunk-KOURQXIU.js → chunk-H42KZXNV.js} +5 -210
  43. package/dist/chunk-H42KZXNV.js.map +1 -0
  44. package/dist/{chunk-6XEGHIBA.js → chunk-IBVTH4JR.js} +4 -4
  45. package/dist/{chunk-AB7JF2KF.js → chunk-IVP5IVON.js} +2 -2
  46. package/dist/{chunk-T4T5I5L6.js → chunk-KEDJDWWQ.js} +3 -3
  47. package/dist/{chunk-C2OYWD5S.js → chunk-KNKNOJFS.js} +3 -3
  48. package/dist/chunk-KNKNOJFS.js.map +1 -0
  49. package/dist/{chunk-F2IJ2HGD.js → chunk-KYGGXXT6.js} +228 -69
  50. package/dist/chunk-KYGGXXT6.js.map +1 -0
  51. package/dist/{chunk-RZWQNMMP.js → chunk-LSIIPKYT.js} +2 -2
  52. package/dist/{chunk-FQRAYDS4.js → chunk-M3FPNTO2.js} +4 -4
  53. package/dist/{chunk-DR5I7Q6N.js → chunk-MI36HL5G.js} +4 -4
  54. package/dist/{chunk-Z3I2WNGF.js → chunk-NN6IISZO.js} +2 -2
  55. package/dist/{chunk-32XVU2LT.js → chunk-OBMYMKGO.js} +29 -6
  56. package/dist/{chunk-32XVU2LT.js.map → chunk-OBMYMKGO.js.map} +1 -1
  57. package/dist/{chunk-QJKZ5WUP.js → chunk-OKOKPYWH.js} +2 -2
  58. package/dist/{chunk-CMISAJAE.js → chunk-OY7RX2VL.js} +9 -15
  59. package/dist/chunk-OY7RX2VL.js.map +1 -0
  60. package/dist/{chunk-Z3BE5BRK.js → chunk-PTGQPWMV.js} +2 -2
  61. package/dist/{chunk-QPJ7Z4L3.js → chunk-PWFTQHYX.js} +2 -2
  62. package/dist/{chunk-K3NYRK7U.js → chunk-Q5MCHUXZ.js} +2 -2
  63. package/dist/{chunk-IQ4GMEYZ.js → chunk-S22UOMHM.js} +6 -6
  64. package/dist/{chunk-WZCG3EZ6.js → chunk-S3XA7G35.js} +2 -2
  65. package/dist/{chunk-LGPSCKWZ.js → chunk-SHIUFIPW.js} +1 -1
  66. package/dist/chunk-SHIUFIPW.js.map +1 -0
  67. package/dist/{chunk-BUBJYIZ7.js → chunk-U7JNBSS3.js} +3 -3
  68. package/dist/{chunk-TFAN3NFD.js → chunk-V3VIRTTE.js} +3 -3
  69. package/dist/{chunk-VVDSDOVV.js → chunk-V5FZWQNN.js} +4 -4
  70. package/dist/chunk-VEIVAYJ7.js +361 -0
  71. package/dist/chunk-VEIVAYJ7.js.map +1 -0
  72. package/dist/{chunk-P57D4KBG.js → chunk-VNUE6FHP.js} +3 -3
  73. package/dist/{chunk-TPOHMOGX.js → chunk-WFK2EVYU.js} +10 -2
  74. package/dist/chunk-WFK2EVYU.js.map +1 -0
  75. package/dist/{chunk-TTS3RWL5.js → chunk-X7FJMKT3.js} +2 -2
  76. package/dist/{chunk-HZOEBM67.js → chunk-XPH3FWME.js} +7 -2
  77. package/dist/{chunk-HZOEBM67.js.map → chunk-XPH3FWME.js.map} +1 -1
  78. package/dist/{chunk-DKMPR76W.js → chunk-Y5J63SMF.js} +5 -5
  79. package/dist/{chunk-HOO5I3VG.js → chunk-YLRRU72W.js} +2 -2
  80. package/dist/{chunk-MGB67HKX.js → chunk-YX333DPS.js} +4 -4
  81. package/dist/{chunk-4UI5T3K7.js → chunk-YZE6C3TQ.js} +3 -3
  82. package/dist/consent/index.cjs.map +1 -1
  83. package/dist/consent/index.d.cts +6 -6
  84. package/dist/consent/index.d.ts +6 -6
  85. package/dist/consent/index.js +3 -3
  86. package/dist/{crypto-FNK3XPCS.js → crypto-B46VNH6X.js} +3 -3
  87. package/dist/{delegation-FMXNUWE6.js → delegation-5HON72PV.js} +5 -5
  88. package/dist/derivations/index.cjs.map +1 -1
  89. package/dist/derivations/index.d.cts +7 -7
  90. package/dist/derivations/index.d.ts +7 -7
  91. package/dist/derivations/index.js +4 -4
  92. package/dist/{dev-unlock-3_2b_vo6.d.cts → dev-unlock-BR1rMOS-.d.cts} +1 -1
  93. package/dist/{dev-unlock-BMvwPr_E.d.ts → dev-unlock-whL49sxV.d.ts} +1 -1
  94. package/dist/{errors-DUTlAt3Y.d.ts → errors-DL-zTrrF.d.cts} +14 -1
  95. package/dist/{errors-DUTlAt3Y.d.cts → errors-DL-zTrrF.d.ts} +14 -1
  96. package/dist/executor-44R5CUS2.js +12 -0
  97. package/dist/executor-AOACUK7Z.js +8 -0
  98. package/dist/executor-OKFLQCDW.js +8 -0
  99. package/dist/{fanout-sidecar-JGHXAJO5.js → fanout-sidecar-DCQWJQ6S.js} +2 -2
  100. package/dist/forget/index.cjs.map +1 -1
  101. package/dist/forget/index.d.cts +1 -1
  102. package/dist/forget/index.d.ts +1 -1
  103. package/dist/forget/index.js +4 -4
  104. package/dist/guards/index.cjs.map +1 -1
  105. package/dist/guards/index.d.cts +7 -7
  106. package/dist/guards/index.d.ts +7 -7
  107. package/dist/guards/index.js +3 -3
  108. package/dist/{hash-BnWnL9bQ.d.cts → hash-BEUBmmI4.d.cts} +1 -1
  109. package/dist/{hash-BThBJFO1.d.ts → hash-Dtb7FwWd.d.ts} +1 -1
  110. package/dist/history/index.cjs.map +1 -1
  111. package/dist/history/index.d.cts +7 -7
  112. package/dist/history/index.d.ts +7 -7
  113. package/dist/history/index.js +5 -5
  114. package/dist/i18n/index.cjs +149 -132
  115. package/dist/i18n/index.cjs.map +1 -1
  116. package/dist/i18n/index.d.cts +6 -6
  117. package/dist/i18n/index.d.ts +6 -6
  118. package/dist/i18n/index.js +14 -14
  119. package/dist/{index-C6lgoUhK.d.cts → index-BM7O48Ur.d.cts} +47 -8
  120. package/dist/{index-C-SSRIxP.d.ts → index-BMmajblo.d.cts} +14 -0
  121. package/dist/{index-C-SSRIxP.d.cts → index-BMmajblo.d.ts} +14 -0
  122. package/dist/{index-DP1JTWHZ.d.ts → index-BelbyUwz.d.ts} +47 -8
  123. package/dist/index.cjs +799 -465
  124. package/dist/index.cjs.map +1 -1
  125. package/dist/index.d.cts +29 -16
  126. package/dist/index.d.ts +29 -16
  127. package/dist/index.js +56 -52
  128. package/dist/index.js.map +1 -1
  129. package/dist/indexing/index.cjs.map +1 -1
  130. package/dist/indexing/index.js +4 -4
  131. package/dist/issue-EPA2PSWP.js +12 -0
  132. package/dist/{ledger-GXC2YA3A.js → ledger-LS6GXCBP.js} +5 -5
  133. package/dist/materialized-views/index.cjs +257 -4
  134. package/dist/materialized-views/index.cjs.map +1 -1
  135. package/dist/materialized-views/index.d.cts +7 -7
  136. package/dist/materialized-views/index.d.ts +7 -7
  137. package/dist/materialized-views/index.js +8 -7
  138. package/dist/noydb-BVKFP74P.js +38 -0
  139. package/dist/overlay-views/index.cjs.map +1 -1
  140. package/dist/overlay-views/index.d.cts +7 -7
  141. package/dist/overlay-views/index.d.ts +7 -7
  142. package/dist/overlay-views/index.js +4 -4
  143. package/dist/periods/index.cjs.map +1 -1
  144. package/dist/periods/index.d.cts +6 -6
  145. package/dist/periods/index.d.ts +6 -6
  146. package/dist/periods/index.js +5 -5
  147. package/dist/{public-envelope-HXOFHY4N.js → public-envelope-AGU6SS4Z.js} +4 -4
  148. package/dist/query/index.cjs +296 -27
  149. package/dist/query/index.cjs.map +1 -1
  150. package/dist/query/index.d.cts +3 -3
  151. package/dist/query/index.d.ts +3 -3
  152. package/dist/query/index.js +7 -6
  153. package/dist/registry-ERNAMRDE.js +8 -0
  154. package/dist/registry-EXTHSXQW.js +8 -0
  155. package/dist/{registry-WVXO6NH5.js → registry-RDPTFXQ7.js} +3 -3
  156. package/dist/{revoke-7LCWE2AH.js → revoke-IFLXEZA5.js} +6 -6
  157. package/dist/sealed-record/index.cjs.map +1 -1
  158. package/dist/sealed-record/index.d.cts +1 -1
  159. package/dist/sealed-record/index.d.ts +1 -1
  160. package/dist/sealed-record/index.js +2 -2
  161. package/dist/session/index.cjs.map +1 -1
  162. package/dist/session/index.d.cts +7 -7
  163. package/dist/session/index.d.ts +7 -7
  164. package/dist/session/index.js +3 -3
  165. package/dist/shadow/index.cjs.map +1 -1
  166. package/dist/shadow/index.d.cts +6 -6
  167. package/dist/shadow/index.d.ts +6 -6
  168. package/dist/shadow/index.js +2 -2
  169. package/dist/{signer-HAVDLGOK.js → signer-UNWOUJAK.js} +5 -5
  170. package/dist/snapshots/index.cjs.map +1 -1
  171. package/dist/snapshots/index.d.cts +6 -6
  172. package/dist/snapshots/index.d.ts +6 -6
  173. package/dist/snapshots/index.js +4 -4
  174. package/dist/{stale-PGTEGJDI.js → stale-NTEV5SLX.js} +2 -2
  175. package/dist/{state-vault-QKQKN3H3.js → state-vault-TUTFRTOA.js} +4 -4
  176. package/dist/store/index.cjs +8 -0
  177. package/dist/store/index.cjs.map +1 -1
  178. package/dist/store/index.d.cts +13 -6
  179. package/dist/store/index.d.ts +13 -6
  180. package/dist/store/index.js +2 -2
  181. package/dist/{strategy-Diwh5lzS.d.ts → strategy-BDxQnnTX.d.ts} +315 -4
  182. package/dist/{strategy-nuyN8K5N.d.cts → strategy-C5ol6NdV.d.cts} +315 -4
  183. package/dist/sync/index.cjs.map +1 -1
  184. package/dist/sync/index.d.cts +5 -5
  185. package/dist/sync/index.d.ts +5 -5
  186. package/dist/sync/index.js +4 -4
  187. package/dist/team/index.cjs.map +1 -1
  188. package/dist/team/index.d.cts +6 -6
  189. package/dist/team/index.d.ts +6 -6
  190. package/dist/team/index.js +8 -8
  191. package/dist/{transition-guard--t3exQHF.d.cts → transition-guard-B1N82hMf.d.cts} +1 -1
  192. package/dist/{transition-guard-BlI9Oy5K.d.ts → transition-guard-C__YeF3_.d.ts} +1 -1
  193. package/dist/tx/index.cjs.map +1 -1
  194. package/dist/tx/index.d.cts +6 -6
  195. package/dist/tx/index.d.ts +6 -6
  196. package/dist/tx/index.js +3 -3
  197. package/dist/{types-Diqc2caK.d.ts → types-CraiZOyO.d.ts} +134 -292
  198. package/dist/{types-BpLPqyaO.d.cts → types-D-gr5t0G.d.cts} +134 -292
  199. package/dist/{ulid-DNiRB4Mx.d.cts → ulid-DQnSAP5W.d.cts} +1 -1
  200. package/dist/{ulid-B1zNV8r9.d.ts → ulid-FFRRHkVf.d.ts} +1 -1
  201. package/dist/util/index.cjs.map +1 -1
  202. package/dist/util/index.js +1 -1
  203. package/dist/{vault-group-DPZVFRI5.js → vault-group-27EV7KB4.js} +29 -8
  204. package/dist/vault-group-27EV7KB4.js.map +1 -0
  205. package/dist/{with-materialized-view-BdH_A_r6.d.cts → with-materialized-view-BboqxyV3.d.cts} +1 -1
  206. package/dist/{with-materialized-view-CzAgp_HJ.d.ts → with-materialized-view-CguCeVcT.d.ts} +1 -1
  207. package/dist/{with-overlayed-view-BJbqQnsR.d.ts → with-overlayed-view-DO08u_tx.d.ts} +1 -1
  208. package/dist/{with-overlayed-view-C40rDPlu.d.cts → with-overlayed-view-mmsg5Of3.d.cts} +1 -1
  209. package/dist/{with-rollup-DrlGkxiE.d.ts → with-rollup-_TyBzz3T.d.ts} +1 -1
  210. package/dist/{with-rollup-Bopu5UDZ.d.cts → with-rollup-aaxOZcIb.d.cts} +1 -1
  211. package/package.json +3 -3
  212. package/dist/chunk-647TFNYL.js.map +0 -1
  213. package/dist/chunk-C2OYWD5S.js.map +0 -1
  214. package/dist/chunk-CMISAJAE.js.map +0 -1
  215. package/dist/chunk-F2IJ2HGD.js.map +0 -1
  216. package/dist/chunk-KOURQXIU.js.map +0 -1
  217. package/dist/chunk-LGPSCKWZ.js.map +0 -1
  218. package/dist/chunk-M3H7VSRV.js +0 -139
  219. package/dist/chunk-M3H7VSRV.js.map +0 -1
  220. package/dist/chunk-TPOHMOGX.js.map +0 -1
  221. package/dist/chunk-Y5XVB75E.js.map +0 -1
  222. package/dist/executor-IZ2NVXCY.js +0 -11
  223. package/dist/executor-THSEYEJG.js +0 -8
  224. package/dist/executor-WLFDUTOM.js +0 -8
  225. package/dist/issue-R2MWQO6K.js +0 -12
  226. package/dist/noydb-RJL6FQ4B.js +0 -37
  227. package/dist/registry-3T2RZC5A.js +0 -8
  228. package/dist/registry-DMS7OKBM.js +0 -8
  229. package/dist/vault-group-DPZVFRI5.js.map +0 -1
  230. /package/dist/{chunk-6Q5XRLKG.js.map → chunk-3FSMVWBN.js.map} +0 -0
  231. /package/dist/{chunk-2U226RDC.js.map → chunk-4ULLGYPA.js.map} +0 -0
  232. /package/dist/{chunk-6FHCU3QO.js.map → chunk-5IGWRMEC.js.map} +0 -0
  233. /package/dist/{chunk-KQ523X3A.js.map → chunk-6OSOE6BY.js.map} +0 -0
  234. /package/dist/{chunk-HWK75CYX.js.map → chunk-7C6VFNIY.js.map} +0 -0
  235. /package/dist/{chunk-33DAO2XG.js.map → chunk-7HD67R6U.js.map} +0 -0
  236. /package/dist/{chunk-RQFG2YSV.js.map → chunk-B6E5IRPJ.js.map} +0 -0
  237. /package/dist/{chunk-YWYW2YNO.js.map → chunk-CYNTFU2D.js.map} +0 -0
  238. /package/dist/{chunk-KTZ2MHQK.js.map → chunk-DY3EOJEN.js.map} +0 -0
  239. /package/dist/{chunk-PGVEL5IZ.js.map → chunk-E66DSTJP.js.map} +0 -0
  240. /package/dist/{chunk-6YEC7LLO.js.map → chunk-FBLAWK6A.js.map} +0 -0
  241. /package/dist/{chunk-LQ3GD5LL.js.map → chunk-FPHRTW2Z.js.map} +0 -0
  242. /package/dist/{chunk-ZJ67TB4S.js.map → chunk-G4PYA575.js.map} +0 -0
  243. /package/dist/{chunk-45643PAU.js.map → chunk-GKQAU52M.js.map} +0 -0
  244. /package/dist/{chunk-5KKNBDCT.js.map → chunk-GYAWXHFO.js.map} +0 -0
  245. /package/dist/{chunk-6XEGHIBA.js.map → chunk-IBVTH4JR.js.map} +0 -0
  246. /package/dist/{chunk-AB7JF2KF.js.map → chunk-IVP5IVON.js.map} +0 -0
  247. /package/dist/{chunk-T4T5I5L6.js.map → chunk-KEDJDWWQ.js.map} +0 -0
  248. /package/dist/{chunk-RZWQNMMP.js.map → chunk-LSIIPKYT.js.map} +0 -0
  249. /package/dist/{chunk-FQRAYDS4.js.map → chunk-M3FPNTO2.js.map} +0 -0
  250. /package/dist/{chunk-DR5I7Q6N.js.map → chunk-MI36HL5G.js.map} +0 -0
  251. /package/dist/{chunk-Z3I2WNGF.js.map → chunk-NN6IISZO.js.map} +0 -0
  252. /package/dist/{chunk-QJKZ5WUP.js.map → chunk-OKOKPYWH.js.map} +0 -0
  253. /package/dist/{chunk-Z3BE5BRK.js.map → chunk-PTGQPWMV.js.map} +0 -0
  254. /package/dist/{chunk-QPJ7Z4L3.js.map → chunk-PWFTQHYX.js.map} +0 -0
  255. /package/dist/{chunk-K3NYRK7U.js.map → chunk-Q5MCHUXZ.js.map} +0 -0
  256. /package/dist/{chunk-IQ4GMEYZ.js.map → chunk-S22UOMHM.js.map} +0 -0
  257. /package/dist/{chunk-WZCG3EZ6.js.map → chunk-S3XA7G35.js.map} +0 -0
  258. /package/dist/{chunk-BUBJYIZ7.js.map → chunk-U7JNBSS3.js.map} +0 -0
  259. /package/dist/{chunk-TFAN3NFD.js.map → chunk-V3VIRTTE.js.map} +0 -0
  260. /package/dist/{chunk-VVDSDOVV.js.map → chunk-V5FZWQNN.js.map} +0 -0
  261. /package/dist/{chunk-P57D4KBG.js.map → chunk-VNUE6FHP.js.map} +0 -0
  262. /package/dist/{chunk-TTS3RWL5.js.map → chunk-X7FJMKT3.js.map} +0 -0
  263. /package/dist/{chunk-DKMPR76W.js.map → chunk-Y5J63SMF.js.map} +0 -0
  264. /package/dist/{chunk-HOO5I3VG.js.map → chunk-YLRRU72W.js.map} +0 -0
  265. /package/dist/{chunk-MGB67HKX.js.map → chunk-YX333DPS.js.map} +0 -0
  266. /package/dist/{chunk-4UI5T3K7.js.map → chunk-YZE6C3TQ.js.map} +0 -0
  267. /package/dist/{crypto-FNK3XPCS.js.map → crypto-B46VNH6X.js.map} +0 -0
  268. /package/dist/{delegation-FMXNUWE6.js.map → delegation-5HON72PV.js.map} +0 -0
  269. /package/dist/{executor-IZ2NVXCY.js.map → executor-44R5CUS2.js.map} +0 -0
  270. /package/dist/{executor-THSEYEJG.js.map → executor-AOACUK7Z.js.map} +0 -0
  271. /package/dist/{executor-WLFDUTOM.js.map → executor-OKFLQCDW.js.map} +0 -0
  272. /package/dist/{fanout-sidecar-JGHXAJO5.js.map → fanout-sidecar-DCQWJQ6S.js.map} +0 -0
  273. /package/dist/{issue-R2MWQO6K.js.map → issue-EPA2PSWP.js.map} +0 -0
  274. /package/dist/{ledger-GXC2YA3A.js.map → ledger-LS6GXCBP.js.map} +0 -0
  275. /package/dist/{noydb-RJL6FQ4B.js.map → noydb-BVKFP74P.js.map} +0 -0
  276. /package/dist/{public-envelope-HXOFHY4N.js.map → public-envelope-AGU6SS4Z.js.map} +0 -0
  277. /package/dist/{registry-3T2RZC5A.js.map → registry-ERNAMRDE.js.map} +0 -0
  278. /package/dist/{registry-DMS7OKBM.js.map → registry-EXTHSXQW.js.map} +0 -0
  279. /package/dist/{registry-WVXO6NH5.js.map → registry-RDPTFXQ7.js.map} +0 -0
  280. /package/dist/{revoke-7LCWE2AH.js.map → revoke-IFLXEZA5.js.map} +0 -0
  281. /package/dist/{signer-HAVDLGOK.js.map → signer-UNWOUJAK.js.map} +0 -0
  282. /package/dist/{stale-PGTEGJDI.js.map → stale-NTEV5SLX.js.map} +0 -0
  283. /package/dist/{state-vault-QKQKN3H3.js.map → state-vault-TUTFRTOA.js.map} +0 -0
@@ -1,13 +1,13 @@
1
- import { T as TransferSealPayload } from '../ulid-DNiRB4Mx.cjs';
2
- export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-DNiRB4Mx.cjs';
3
- import { bp as Vault, b2 as NoydbStore, bl as SealingKeyProvider, bq as RecoveryEnrollmentInput, br as ShamirRecoveryProvider } from '../types-BpLPqyaO.cjs';
4
- export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-DUTlAt3Y.cjs';
1
+ import { T as TransferSealPayload } from '../ulid-DQnSAP5W.cjs';
2
+ export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-DQnSAP5W.cjs';
3
+ import { ba as Vault, aP as NoydbStore, b6 as SealingKeyProvider, bb as RecoveryEnrollmentInput, bc as ShamirRecoveryProvider } from '../types-D-gr5t0G.cjs';
4
+ export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-DL-zTrrF.cjs';
5
5
  import '../lazy-builder-eYZzLEL1.cjs';
6
6
  import '../predicate-BmhBSPCH.cjs';
7
- import '../strategy-nuyN8K5N.cjs';
7
+ import '../strategy-C5ol6NdV.cjs';
8
8
  import '../strategy-BSxFXGzb.cjs';
9
- import '../index-C-SSRIxP.cjs';
10
- import '../index-C6lgoUhK.cjs';
9
+ import '../index-BMmajblo.cjs';
10
+ import '../index-BM7O48Ur.cjs';
11
11
  import '@noy-db/attestation';
12
12
 
13
13
  /**
@@ -1,13 +1,13 @@
1
- import { T as TransferSealPayload } from '../ulid-B1zNV8r9.js';
2
- export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-B1zNV8r9.js';
3
- import { bp as Vault, b2 as NoydbStore, bl as SealingKeyProvider, bq as RecoveryEnrollmentInput, br as ShamirRecoveryProvider } from '../types-Diqc2caK.js';
4
- export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-DUTlAt3Y.js';
1
+ import { T as TransferSealPayload } from '../ulid-FFRRHkVf.js';
2
+ export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-FFRRHkVf.js';
3
+ import { ba as Vault, aP as NoydbStore, b6 as SealingKeyProvider, bb as RecoveryEnrollmentInput, bc as ShamirRecoveryProvider } from '../types-CraiZOyO.js';
4
+ export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-DL-zTrrF.js';
5
5
  import '../lazy-builder-ChSqcF5t.js';
6
6
  import '../predicate-BmhBSPCH.js';
7
- import '../strategy-Diwh5lzS.js';
7
+ import '../strategy-BDxQnnTX.js';
8
8
  import '../strategy-BSxFXGzb.js';
9
- import '../index-C-SSRIxP.js';
10
- import '../index-DP1JTWHZ.js';
9
+ import '../index-BMmajblo.js';
10
+ import '../index-BelbyUwz.js';
11
11
  import '@noy-db/attestation';
12
12
 
13
13
  /**
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SCHEMAS_COLLECTION,
3
3
  resolveManagedSecret
4
- } from "../chunk-P57D4KBG.js";
4
+ } from "../chunk-VNUE6FHP.js";
5
5
  import {
6
6
  COMPRESSION_BROTLI,
7
7
  COMPRESSION_GZIP,
@@ -20,12 +20,12 @@ import {
20
20
  resetBrotliSupportCache,
21
21
  validateBundleHeader,
22
22
  writeNoydbBundle
23
- } from "../chunk-T4T5I5L6.js";
24
- import "../chunk-PGVEL5IZ.js";
25
- import "../chunk-45643PAU.js";
23
+ } from "../chunk-KEDJDWWQ.js";
24
+ import "../chunk-E66DSTJP.js";
25
+ import "../chunk-GKQAU52M.js";
26
26
  import {
27
27
  createOwnerKeyring
28
- } from "../chunk-FQRAYDS4.js";
28
+ } from "../chunk-M3FPNTO2.js";
29
29
  import {
30
30
  generateULID,
31
31
  isULID
@@ -33,7 +33,7 @@ import {
33
33
  import {
34
34
  LEDGER_COLLECTION,
35
35
  LedgerStore
36
- } from "../chunk-MGB67HKX.js";
36
+ } from "../chunk-YX333DPS.js";
37
37
  import {
38
38
  canonicalJson,
39
39
  envelopePayloadHash,
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  NOYDB_BACKUP_VERSION,
44
44
  NOYDB_FORMAT_VERSION
45
- } from "../chunk-LGPSCKWZ.js";
45
+ } from "../chunk-SHIUFIPW.js";
46
46
  import {
47
47
  base64ToBuffer,
48
48
  bufferToBase64,
@@ -52,7 +52,7 @@ import {
52
52
  unwrapCek,
53
53
  wrapCek,
54
54
  wrapKey
55
- } from "../chunk-QJKZ5WUP.js";
55
+ } from "../chunk-OKOKPYWH.js";
56
56
  import {
57
57
  AdoptionStateError,
58
58
  BackupCorruptedError,
@@ -63,7 +63,7 @@ import {
63
63
  PartitionExtractionError,
64
64
  TransferSealError,
65
65
  ValidationError
66
- } from "../chunk-HMFC6M2G.js";
66
+ } from "../chunk-DJF3FXW5.js";
67
67
 
68
68
  // src/bundle/walk-closure.ts
69
69
  async function walkClosure(vault, opts) {
@@ -543,7 +543,7 @@ async function createOwnerOnAdoptedPartition(store, vaultName, opts) {
543
543
  }
544
544
  }
545
545
  if (isManaged(opts)) {
546
- const { createNoydb } = await import("../noydb-RJL6FQ4B.js");
546
+ const { createNoydb } = await import("../noydb-BVKFP74P.js");
547
547
  const db = await createNoydb({
548
548
  store,
549
549
  user: userId,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dekKey
3
- } from "./chunk-6YEC7LLO.js";
3
+ } from "./chunk-FBLAWK6A.js";
4
4
  import {
5
5
  generateULID
6
6
  } from "./chunk-FZU343FL.js";
@@ -9,10 +9,10 @@ import {
9
9
  encrypt,
10
10
  unwrapKey,
11
11
  wrapKey
12
- } from "./chunk-QJKZ5WUP.js";
12
+ } from "./chunk-OKOKPYWH.js";
13
13
  import {
14
14
  DelegationTargetMissingError
15
- } from "./chunk-HMFC6M2G.js";
15
+ } from "./chunk-DJF3FXW5.js";
16
16
 
17
17
  // src/team/delegation.ts
18
18
  var DELEGATIONS_COLLECTION = "_delegations";
@@ -94,4 +94,4 @@ export {
94
94
  loadActiveDelegations,
95
95
  revokeDelegation
96
96
  };
97
- //# sourceMappingURL=chunk-6Q5XRLKG.js.map
97
+ //# sourceMappingURL=chunk-3FSMVWBN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  wrapMoneyReducers
3
- } from "./chunk-32XVU2LT.js";
3
+ } from "./chunk-OBMYMKGO.js";
4
4
  import {
5
5
  MoneyPrecisionError,
6
6
  evaluateClause,
@@ -9,14 +9,17 @@ import {
9
9
  moneyFieldClause,
10
10
  parseToScaledInt,
11
11
  readPath
12
- } from "./chunk-RZWQNMMP.js";
12
+ } from "./chunk-LSIIPKYT.js";
13
+ import {
14
+ applyI18nLocale
15
+ } from "./chunk-VEIVAYJ7.js";
13
16
  import {
14
17
  CrossJoinSourceUnknownError,
15
18
  CrossJoinTooLargeError,
16
19
  DanglingReferenceError,
17
20
  JoinTooLargeError,
18
21
  ValidationError
19
- } from "./chunk-HMFC6M2G.js";
22
+ } from "./chunk-DJF3FXW5.js";
20
23
 
21
24
  // src/query/join.ts
22
25
  var DEFAULT_JOIN_MAX_ROWS = 5e4;
@@ -46,15 +49,15 @@ function warnCeilingApproaching(target, side, rows, maxRows) {
46
49
  `[noy-db] .join() ${side} side is at ${pct}% of the ${maxRows}-row ceiling for target "${target}" (${rows} rows). Streaming joins over scan() are not yet supported for collections that need to exceed this.`
47
50
  );
48
51
  }
49
- function applyJoins(rows, joins, context) {
52
+ function applyJoins(rows, joins, context, locale) {
50
53
  if (joins.length === 0) return [...rows];
51
54
  let result = [...rows];
52
55
  for (const leg of joins) {
53
- result = applyOneJoin(result, leg, context);
56
+ result = applyOneJoin(result, leg, context, locale);
54
57
  }
55
58
  return result;
56
59
  }
57
- function applyOneJoin(leftRows, leg, context) {
60
+ function applyOneJoin(leftRows, leg, context, locale) {
58
61
  if (leg.isDictJoin) {
59
62
  const dictSource = context.resolveDictSource?.(leg.field);
60
63
  if (!dictSource) {
@@ -109,24 +112,27 @@ function applyOneJoin(leftRows, leg, context) {
109
112
  if (rightSnapshot.length > maxRows * JOIN_WARN_FRACTION) {
110
113
  warnCeilingApproaching(leg.target, "right", rightSnapshot.length, maxRows);
111
114
  }
115
+ const effLocale = locale ?? context.defaultLocale;
116
+ const i18nResolve = effLocale !== void 0 && source.i18nFields !== void 0 ? (right) => right !== null && typeof right === "object" ? applyI18nLocale(right, source.i18nFields, effLocale, void 0, "join") : right : void 0;
112
117
  const strategy = leg.strategy ?? (source.lookupById ? "nested" : "hash");
113
118
  if (strategy === "nested" && source.lookupById) {
114
119
  const lookup = (id) => source.lookupById?.(id);
115
- return nestedLoopJoin(leftRows, leg, lookup);
120
+ return nestedLoopJoin(leftRows, leg, lookup, i18nResolve);
116
121
  }
117
- return hashJoin(leftRows, leg, rightSnapshot);
122
+ return hashJoin(leftRows, leg, rightSnapshot, i18nResolve);
118
123
  }
119
- function nestedLoopJoin(leftRows, leg, lookupById) {
124
+ function nestedLoopJoin(leftRows, leg, lookupById, i18nResolve) {
120
125
  const out = [];
121
126
  for (const left of leftRows) {
122
127
  const rawId = readPath(left, leg.field);
123
128
  const key = coerceRefKey(rawId);
124
- const right = key === null ? void 0 : lookupById(key);
129
+ let right = key === null ? void 0 : lookupById(key);
130
+ if (i18nResolve && right !== void 0) right = i18nResolve(right);
125
131
  out.push(attachJoin(left, leg, right, rawId));
126
132
  }
127
133
  return out;
128
134
  }
129
- function hashJoin(leftRows, leg, rightSnapshot) {
135
+ function hashJoin(leftRows, leg, rightSnapshot, i18nResolve) {
130
136
  const rightMap = /* @__PURE__ */ new Map();
131
137
  for (const record of rightSnapshot) {
132
138
  const rawId = readPath(record, "id");
@@ -139,7 +145,8 @@ function hashJoin(leftRows, leg, rightSnapshot) {
139
145
  for (const left of leftRows) {
140
146
  const rawId = readPath(left, leg.field);
141
147
  const key = coerceRefKey(rawId);
142
- const right = key === null ? void 0 : rightMap.get(key);
148
+ let right = key === null ? void 0 : rightMap.get(key);
149
+ if (i18nResolve && right !== void 0) right = i18nResolve(right);
143
150
  out.push(attachJoin(left, leg, right, rawId));
144
151
  }
145
152
  return out;
@@ -703,11 +710,16 @@ var Query = class _Query {
703
710
  this.predicates
704
711
  );
705
712
  }
706
- /** Sort by a field. Subsequent calls are tie-breakers. */
707
- orderBy(field, direction = "asc") {
713
+ /**
714
+ * Sort by a field. Subsequent calls are tie-breakers. Pass
715
+ * `{ by: 'label' }` to sort a `dictKey`/`staticDict` field by its resolved
716
+ * label at the query locale instead of the stored code (#285).
717
+ */
718
+ orderBy(field, direction = "asc", opts) {
719
+ const entry = opts?.by === "label" ? { field, direction, by: "label" } : { field, direction };
708
720
  return new _Query(
709
721
  this.source,
710
- { ...this.plan, orderBy: [...this.plan.orderBy, { field, direction }] },
722
+ { ...this.plan, orderBy: [...this.plan.orderBy, entry] },
711
723
  this.joinContext,
712
724
  this.aggregateStrategy,
713
725
  this.predicates
@@ -910,16 +922,21 @@ var Query = class _Query {
910
922
  * carries any join legs, they are applied after `where` / `orderBy`
911
923
  * / `limit` / `offset` narrow the left set. See the `.join()` doc
912
924
  * for the ordering rationale.
925
+ *
926
+ * `opts.locale` (#285 §3) resolves JOINED right-side i18n fields at the
927
+ * `join` layer to that locale; without it, the owning collection's default
928
+ * locale applies, and a locale-less query leaves joined i18n fields raw.
929
+ * (Left/base i18n fields are resolved by `get`/`list`, not here.)
913
930
  */
914
- toArray() {
915
- const base = this.decodeMoney(executePlanWithSource(this.source, this.plan, this.joinContext));
931
+ toArray(opts) {
932
+ const base = this.decodeMoney(executePlanWithSource(this.source, this.plan, this.joinContext, opts?.locale));
916
933
  if (this.plan.joins.length === 0) return base;
917
934
  if (!this.joinContext) {
918
935
  throw new Error(
919
936
  `Query.toArray(): plan carries ${this.plan.joins.length} join leg(s) but no JoinContext is attached. This usually means the Query was constructed via the raw Query constructor with a plan that had joins pre-populated. Use collection.query().join(...) instead.`
920
937
  );
921
938
  }
922
- return applyJoins(base, this.plan.joins, this.joinContext);
939
+ return applyJoins(base, this.plan.joins, this.joinContext, opts?.locale);
923
940
  }
924
941
  /**
925
942
  * Decode this source's money fields on read (stored scaled-int → canonical
@@ -938,9 +955,9 @@ var Query = class _Query {
938
955
  if (!moneyFields || Object.keys(moneyFields).length === 0) return records;
939
956
  return records.map((r) => decodeMoneyFields(r, moneyFields, "raw"));
940
957
  }
941
- /** Return the first matching record, or null. Joins are applied. */
942
- first() {
943
- const arr = this.limit(1).toArray();
958
+ /** Return the first matching record, or null. Joins are applied. `opts.locale` resolves joined i18n fields (#285 §3). */
959
+ first(opts) {
960
+ const arr = this.limit(1).toArray(opts);
944
961
  return arr[0] ?? null;
945
962
  }
946
963
  /**
@@ -1183,7 +1200,7 @@ var Query = class _Query {
1183
1200
  return serializePlan(this.plan);
1184
1201
  }
1185
1202
  };
1186
- function executePlanWithSource(source, plan, joinContext) {
1203
+ function executePlanWithSource(source, plan, joinContext, locale) {
1187
1204
  const hasCrossJoins = plan.clauses.some((c) => c.type === "crossJoin");
1188
1205
  let result;
1189
1206
  if (hasCrossJoins) {
@@ -1198,7 +1215,8 @@ function executePlanWithSource(source, plan, joinContext) {
1198
1215
  result = remainingClauses.length === 0 ? [...candidates] : filterRecords(candidates, remainingClauses, fnViewDecoder(source));
1199
1216
  }
1200
1217
  if (plan.orderBy.length > 0) {
1201
- result = sortRecords(result, plan.orderBy, source.moneyFields);
1218
+ const labelMaps = buildOrderLabelMaps(plan.orderBy, joinContext, locale);
1219
+ result = sortRecords(result, plan.orderBy, source.moneyFields, labelMaps);
1202
1220
  }
1203
1221
  if (plan.offset > 0) {
1204
1222
  result = result.slice(plan.offset);
@@ -1355,11 +1373,19 @@ function applyCrossJoin(leftRel, clause, rightSource) {
1355
1373
  }
1356
1374
  return expanded;
1357
1375
  }
1358
- function sortRecords(records, orderBy, moneyFields) {
1376
+ function sortRecords(records, orderBy, moneyFields, labelMaps) {
1359
1377
  return [...records].sort((a, b) => {
1360
- for (const { field, direction } of orderBy) {
1361
- const av = readField(a, field);
1362
- const bv = readField(b, field);
1378
+ for (const { field, direction, by } of orderBy) {
1379
+ let av = readField(a, field);
1380
+ let bv = readField(b, field);
1381
+ const labelMap = by === "label" ? labelMaps?.get(field) : void 0;
1382
+ if (labelMap) {
1383
+ av = (typeof av === "string" ? labelMap.get(av) : void 0) ?? av;
1384
+ bv = (typeof bv === "string" ? labelMap.get(bv) : void 0) ?? bv;
1385
+ const cmp2 = compareValues(av, bv);
1386
+ if (cmp2 !== 0) return direction === "asc" ? cmp2 : -cmp2;
1387
+ continue;
1388
+ }
1363
1389
  const desc = moneyFields?.[field];
1364
1390
  const cmp = desc ? compareMoney(av, bv, desc) : compareValues(av, bv);
1365
1391
  if (cmp !== 0) return direction === "asc" ? cmp : -cmp;
@@ -1367,6 +1393,28 @@ function sortRecords(records, orderBy, moneyFields) {
1367
1393
  return 0;
1368
1394
  });
1369
1395
  }
1396
+ function buildOrderLabelMaps(orderBy, joinContext, locale) {
1397
+ if (!joinContext?.resolveDictSource) return void 0;
1398
+ const resolveDict = joinContext.resolveDictSource.bind(joinContext);
1399
+ let maps;
1400
+ for (const { field, by } of orderBy) {
1401
+ if (by !== "label") continue;
1402
+ const dictSource = resolveDict(field);
1403
+ if (!dictSource) continue;
1404
+ const loc = locale ?? dictSource.displayLocale;
1405
+ if (loc === void 0) continue;
1406
+ const codeToLabel = /* @__PURE__ */ new Map();
1407
+ for (const entry of dictSource.snapshot()) {
1408
+ const k = entry["key"];
1409
+ const labels = entry["labels"];
1410
+ const label = labels?.[loc];
1411
+ if (typeof k === "string" && typeof label === "string") codeToLabel.set(k, label);
1412
+ }
1413
+ ;
1414
+ (maps ??= /* @__PURE__ */ new Map()).set(field, codeToLabel);
1415
+ }
1416
+ return maps;
1417
+ }
1370
1418
  function compareMoney(a, b, desc) {
1371
1419
  const av = moneyScaledValue(a, desc);
1372
1420
  const bv = moneyScaledValue(b, desc);
@@ -1929,4 +1977,4 @@ export {
1929
1977
  executePlan,
1930
1978
  ScanBuilder
1931
1979
  };
1932
- //# sourceMappingURL=chunk-647TFNYL.js.map
1980
+ //# sourceMappingURL=chunk-3Q2AOPLT.js.map