@noy-db/hub 0.2.0-pre.17 → 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 (301) 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 +1587 -392
  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-NBBMMJ2H.js → chunk-3FSMVWBN.js} +4 -4
  22. package/dist/{chunk-HGVSHKZW.js → chunk-3Q2AOPLT.js} +100 -29
  23. package/dist/chunk-3Q2AOPLT.js.map +1 -0
  24. package/dist/{chunk-SHX5QBCI.js → chunk-4ULLGYPA.js} +3 -3
  25. package/dist/{chunk-CD2AVTEM.js → chunk-5IGWRMEC.js} +5 -5
  26. package/dist/{chunk-QO6RGLLD.js → chunk-6KESZO5D.js} +35 -7
  27. package/dist/chunk-6KESZO5D.js.map +1 -0
  28. package/dist/{chunk-GP3SDSH2.js → chunk-6OSOE6BY.js} +15 -2
  29. package/dist/chunk-6OSOE6BY.js.map +1 -0
  30. package/dist/{chunk-F4G63NTZ.js → chunk-7C6VFNIY.js} +2 -2
  31. package/dist/{chunk-XJV6OB4D.js → chunk-7HD67R6U.js} +2 -2
  32. package/dist/{chunk-UMLVJTYV.js → chunk-ADB7GPM3.js} +7 -4
  33. package/dist/chunk-ADB7GPM3.js.map +1 -0
  34. package/dist/{chunk-NYSYPFXJ.js → chunk-B6E5IRPJ.js} +3 -3
  35. package/dist/chunk-CYNTFU2D.js +129 -0
  36. package/dist/chunk-CYNTFU2D.js.map +1 -0
  37. package/dist/{chunk-ZEGSDPB7.js → chunk-DJF3FXW5.js} +35 -1
  38. package/dist/chunk-DJF3FXW5.js.map +1 -0
  39. package/dist/{chunk-3G3W65EQ.js → chunk-DY3EOJEN.js} +2 -2
  40. package/dist/{chunk-YYVZYTWW.js → chunk-E66DSTJP.js} +3 -3
  41. package/dist/{chunk-5LIROIDM.js → chunk-FBLAWK6A.js} +2 -2
  42. package/dist/{chunk-E77UKJYL.js → chunk-FPHRTW2Z.js} +5 -5
  43. package/dist/{state-vault-W2OEABNO.js → chunk-G4PYA575.js} +24 -7
  44. package/dist/chunk-G4PYA575.js.map +1 -0
  45. package/dist/{chunk-U5QCMH3W.js → chunk-GKQAU52M.js} +4 -4
  46. package/dist/{chunk-2FU2FTXD.js → chunk-GYAWXHFO.js} +2 -2
  47. package/dist/{chunk-ROPJVUG3.js → chunk-H42KZXNV.js} +5 -210
  48. package/dist/chunk-H42KZXNV.js.map +1 -0
  49. package/dist/{chunk-XPIHJ34I.js → chunk-IBVTH4JR.js} +4 -4
  50. package/dist/{chunk-C3HYQPV4.js → chunk-IVP5IVON.js} +2 -2
  51. package/dist/{chunk-BL5GYANC.js → chunk-KEDJDWWQ.js} +3 -3
  52. package/dist/{chunk-I5IUYN7B.js → chunk-KNKNOJFS.js} +3 -3
  53. package/dist/chunk-KNKNOJFS.js.map +1 -0
  54. package/dist/{chunk-D77ZQSQQ.js → chunk-KYGGXXT6.js} +829 -170
  55. package/dist/chunk-KYGGXXT6.js.map +1 -0
  56. package/dist/{chunk-J7RWBXFY.js → chunk-LSIIPKYT.js} +2 -2
  57. package/dist/{chunk-BSZOCSDZ.js → chunk-M3FPNTO2.js} +4 -4
  58. package/dist/{chunk-XMVHEWF6.js → chunk-MI36HL5G.js} +4 -4
  59. package/dist/{chunk-ROVO6NPJ.js → chunk-NN6IISZO.js} +58 -3
  60. package/dist/chunk-NN6IISZO.js.map +1 -0
  61. package/dist/{chunk-7H2GEJ3O.js → chunk-OBMYMKGO.js} +29 -6
  62. package/dist/{chunk-7H2GEJ3O.js.map → chunk-OBMYMKGO.js.map} +1 -1
  63. package/dist/{chunk-UNTGHX5A.js → chunk-OKOKPYWH.js} +2 -2
  64. package/dist/{chunk-WV7WV6JO.js → chunk-OY7RX2VL.js} +9 -15
  65. package/dist/chunk-OY7RX2VL.js.map +1 -0
  66. package/dist/{chunk-H2MRGONI.js → chunk-PTGQPWMV.js} +2 -2
  67. package/dist/{chunk-BJSLBUJ7.js → chunk-PWFTQHYX.js} +2 -2
  68. package/dist/{chunk-5AXTH4QZ.js → chunk-Q5MCHUXZ.js} +2 -2
  69. package/dist/{chunk-QHM6XEAH.js → chunk-S22UOMHM.js} +6 -6
  70. package/dist/{chunk-WIAOUFFB.js → chunk-S3XA7G35.js} +2 -2
  71. package/dist/{chunk-SISBMAPO.js → chunk-SHIUFIPW.js} +1 -1
  72. package/dist/chunk-SHIUFIPW.js.map +1 -0
  73. package/dist/{chunk-KCEHMDZF.js → chunk-U7JNBSS3.js} +3 -3
  74. package/dist/{chunk-ZNGPEV5J.js → chunk-V3VIRTTE.js} +3 -3
  75. package/dist/{chunk-TIDXB5DF.js → chunk-V5FZWQNN.js} +4 -4
  76. package/dist/chunk-VEIVAYJ7.js +361 -0
  77. package/dist/chunk-VEIVAYJ7.js.map +1 -0
  78. package/dist/{chunk-AEIKD3PP.js → chunk-VNUE6FHP.js} +3 -3
  79. package/dist/{chunk-DYYYUW5D.js → chunk-WFK2EVYU.js} +10 -2
  80. package/dist/chunk-WFK2EVYU.js.map +1 -0
  81. package/dist/{chunk-XMHUK5PN.js → chunk-X7FJMKT3.js} +2 -2
  82. package/dist/{chunk-FEJDVE3Z.js → chunk-XPH3FWME.js} +7 -2
  83. package/dist/{chunk-FEJDVE3Z.js.map → chunk-XPH3FWME.js.map} +1 -1
  84. package/dist/{chunk-SNMJ7SB3.js → chunk-Y5J63SMF.js} +5 -5
  85. package/dist/{chunk-M476FOQ7.js → chunk-YLRRU72W.js} +2 -2
  86. package/dist/{chunk-DWEBTE2W.js → chunk-YX333DPS.js} +4 -4
  87. package/dist/{chunk-BH3X5L6A.js → chunk-YZE6C3TQ.js} +3 -3
  88. package/dist/consent/index.cjs.map +1 -1
  89. package/dist/consent/index.d.cts +6 -6
  90. package/dist/consent/index.d.ts +6 -6
  91. package/dist/consent/index.js +3 -3
  92. package/dist/{crypto-7BN2HDWG.js → crypto-B46VNH6X.js} +3 -3
  93. package/dist/{delegation-MGH5SODX.js → delegation-5HON72PV.js} +5 -5
  94. package/dist/derivations/index.cjs +82 -2
  95. package/dist/derivations/index.cjs.map +1 -1
  96. package/dist/derivations/index.d.cts +7 -7
  97. package/dist/derivations/index.d.ts +7 -7
  98. package/dist/derivations/index.js +8 -6
  99. package/dist/{dev-unlock-iXbYFAWl.d.cts → dev-unlock-BR1rMOS-.d.cts} +1 -1
  100. package/dist/{dev-unlock-CI1ijTML.d.ts → dev-unlock-whL49sxV.d.ts} +1 -1
  101. package/dist/{errors-Dz64FA65.d.cts → errors-DL-zTrrF.d.cts} +29 -1
  102. package/dist/{errors-Dz64FA65.d.ts → errors-DL-zTrrF.d.ts} +29 -1
  103. package/dist/executor-44R5CUS2.js +12 -0
  104. package/dist/executor-AOACUK7Z.js +8 -0
  105. package/dist/executor-OKFLQCDW.js +8 -0
  106. package/dist/{fanout-sidecar-FIJJ46YG.js → fanout-sidecar-DCQWJQ6S.js} +2 -2
  107. package/dist/forget/index.cjs.map +1 -1
  108. package/dist/forget/index.d.cts +1 -1
  109. package/dist/forget/index.d.ts +1 -1
  110. package/dist/forget/index.js +4 -4
  111. package/dist/guards/index.cjs +80 -3
  112. package/dist/guards/index.cjs.map +1 -1
  113. package/dist/guards/index.d.cts +7 -7
  114. package/dist/guards/index.d.ts +7 -7
  115. package/dist/guards/index.js +8 -4
  116. package/dist/{hash-tEcM5fnv.d.cts → hash-BEUBmmI4.d.cts} +1 -1
  117. package/dist/{hash-blk7Bkes.d.ts → hash-Dtb7FwWd.d.ts} +1 -1
  118. package/dist/history/index.cjs.map +1 -1
  119. package/dist/history/index.d.cts +7 -7
  120. package/dist/history/index.d.ts +7 -7
  121. package/dist/history/index.js +5 -5
  122. package/dist/i18n/index.cjs +149 -132
  123. package/dist/i18n/index.cjs.map +1 -1
  124. package/dist/i18n/index.d.cts +6 -6
  125. package/dist/i18n/index.d.ts +6 -6
  126. package/dist/i18n/index.js +14 -14
  127. package/dist/{index-u-kWzSrL.d.cts → index-BM7O48Ur.d.cts} +85 -9
  128. package/dist/{index-C-SSRIxP.d.cts → index-BMmajblo.d.cts} +14 -0
  129. package/dist/{index-C-SSRIxP.d.ts → index-BMmajblo.d.ts} +14 -0
  130. package/dist/{index-DpU6KWof.d.ts → index-BelbyUwz.d.ts} +85 -9
  131. package/dist/index.cjs +2206 -992
  132. package/dist/index.cjs.map +1 -1
  133. package/dist/index.d.cts +29 -16
  134. package/dist/index.d.ts +29 -16
  135. package/dist/index.js +76 -54
  136. package/dist/index.js.map +1 -1
  137. package/dist/indexing/index.cjs.map +1 -1
  138. package/dist/indexing/index.js +4 -4
  139. package/dist/issue-EPA2PSWP.js +12 -0
  140. package/dist/{ledger-LFVLHE5H.js → ledger-LS6GXCBP.js} +5 -5
  141. package/dist/materialized-views/index.cjs +257 -4
  142. package/dist/materialized-views/index.cjs.map +1 -1
  143. package/dist/materialized-views/index.d.cts +7 -7
  144. package/dist/materialized-views/index.d.ts +7 -7
  145. package/dist/materialized-views/index.js +8 -7
  146. package/dist/noydb-BVKFP74P.js +38 -0
  147. package/dist/overlay-views/index.cjs.map +1 -1
  148. package/dist/overlay-views/index.d.cts +7 -7
  149. package/dist/overlay-views/index.d.ts +7 -7
  150. package/dist/overlay-views/index.js +4 -4
  151. package/dist/periods/index.cjs.map +1 -1
  152. package/dist/periods/index.d.cts +6 -6
  153. package/dist/periods/index.d.ts +6 -6
  154. package/dist/periods/index.js +5 -5
  155. package/dist/{public-envelope-RXZNP3V6.js → public-envelope-AGU6SS4Z.js} +4 -4
  156. package/dist/query/index.cjs +320 -28
  157. package/dist/query/index.cjs.map +1 -1
  158. package/dist/query/index.d.cts +3 -3
  159. package/dist/query/index.d.ts +3 -3
  160. package/dist/query/index.js +7 -6
  161. package/dist/read-only-facade-EX6WZZBP.js +7 -0
  162. package/dist/registry-ERNAMRDE.js +8 -0
  163. package/dist/registry-EXTHSXQW.js +8 -0
  164. package/dist/{registry-SECUWSGY.js → registry-RDPTFXQ7.js} +3 -3
  165. package/dist/{revoke-B54H2S2W.js → revoke-IFLXEZA5.js} +6 -6
  166. package/dist/sealed-record/index.cjs.map +1 -1
  167. package/dist/sealed-record/index.d.cts +1 -1
  168. package/dist/sealed-record/index.d.ts +1 -1
  169. package/dist/sealed-record/index.js +2 -2
  170. package/dist/session/index.cjs.map +1 -1
  171. package/dist/session/index.d.cts +7 -7
  172. package/dist/session/index.d.ts +7 -7
  173. package/dist/session/index.js +3 -3
  174. package/dist/shadow/index.cjs.map +1 -1
  175. package/dist/shadow/index.d.cts +6 -6
  176. package/dist/shadow/index.d.ts +6 -6
  177. package/dist/shadow/index.js +2 -2
  178. package/dist/{signer-YSXZT574.js → signer-UNWOUJAK.js} +5 -5
  179. package/dist/snapshots/index.cjs.map +1 -1
  180. package/dist/snapshots/index.d.cts +6 -6
  181. package/dist/snapshots/index.d.ts +6 -6
  182. package/dist/snapshots/index.js +4 -4
  183. package/dist/{stale-TOA36SRK.js → stale-NTEV5SLX.js} +2 -2
  184. package/dist/state-vault-TUTFRTOA.js +14 -0
  185. package/dist/state-vault-TUTFRTOA.js.map +1 -0
  186. package/dist/store/index.cjs +8 -0
  187. package/dist/store/index.cjs.map +1 -1
  188. package/dist/store/index.d.cts +13 -6
  189. package/dist/store/index.d.ts +13 -6
  190. package/dist/store/index.js +2 -2
  191. package/dist/{strategy-4M9jo172.d.ts → strategy-BDxQnnTX.d.ts} +315 -4
  192. package/dist/{strategy-CLC1j79g.d.cts → strategy-C5ol6NdV.d.cts} +315 -4
  193. package/dist/sync/index.cjs.map +1 -1
  194. package/dist/sync/index.d.cts +5 -5
  195. package/dist/sync/index.d.ts +5 -5
  196. package/dist/sync/index.js +4 -4
  197. package/dist/team/index.cjs.map +1 -1
  198. package/dist/team/index.d.cts +6 -6
  199. package/dist/team/index.d.ts +6 -6
  200. package/dist/team/index.js +8 -8
  201. package/dist/transition-guard-B1N82hMf.d.cts +165 -0
  202. package/dist/transition-guard-C__YeF3_.d.ts +165 -0
  203. package/dist/tx/index.cjs.map +1 -1
  204. package/dist/tx/index.d.cts +6 -6
  205. package/dist/tx/index.d.ts +6 -6
  206. package/dist/tx/index.js +3 -3
  207. package/dist/{types-CljIHm_J.d.ts → types-CraiZOyO.d.ts} +609 -305
  208. package/dist/{types-CrSpRDuG.d.cts → types-D-gr5t0G.d.cts} +609 -305
  209. package/dist/{ulid-CrI7PPbA.d.cts → ulid-DQnSAP5W.d.cts} +1 -1
  210. package/dist/{ulid-CWfL2Vfv.d.ts → ulid-FFRRHkVf.d.ts} +1 -1
  211. package/dist/util/index.cjs.map +1 -1
  212. package/dist/util/index.js +1 -1
  213. package/dist/{vault-group-DHAHFX2A.js → vault-group-27EV7KB4.js} +205 -8
  214. package/dist/vault-group-27EV7KB4.js.map +1 -0
  215. package/dist/{with-materialized-view-NzF71cG_.d.cts → with-materialized-view-BboqxyV3.d.cts} +1 -1
  216. package/dist/{with-materialized-view-B892zYZV.d.ts → with-materialized-view-CguCeVcT.d.ts} +1 -1
  217. package/dist/{with-overlayed-view-CR6m7CHe.d.ts → with-overlayed-view-DO08u_tx.d.ts} +1 -1
  218. package/dist/{with-overlayed-view-UI8qSGL4.d.cts → with-overlayed-view-mmsg5Of3.d.cts} +1 -1
  219. package/dist/with-rollup-_TyBzz3T.d.ts +47 -0
  220. package/dist/with-rollup-aaxOZcIb.d.cts +47 -0
  221. package/package.json +3 -3
  222. package/dist/chunk-D77ZQSQQ.js.map +0 -1
  223. package/dist/chunk-DYYYUW5D.js.map +0 -1
  224. package/dist/chunk-GP3SDSH2.js.map +0 -1
  225. package/dist/chunk-HGVSHKZW.js.map +0 -1
  226. package/dist/chunk-I5IUYN7B.js.map +0 -1
  227. package/dist/chunk-JDWE6JMX.js +0 -139
  228. package/dist/chunk-JDWE6JMX.js.map +0 -1
  229. package/dist/chunk-PDULVIBY.js +0 -63
  230. package/dist/chunk-PDULVIBY.js.map +0 -1
  231. package/dist/chunk-QO6RGLLD.js.map +0 -1
  232. package/dist/chunk-ROPJVUG3.js.map +0 -1
  233. package/dist/chunk-ROVO6NPJ.js.map +0 -1
  234. package/dist/chunk-SISBMAPO.js.map +0 -1
  235. package/dist/chunk-UMLVJTYV.js.map +0 -1
  236. package/dist/chunk-WV7WV6JO.js.map +0 -1
  237. package/dist/chunk-ZEGSDPB7.js.map +0 -1
  238. package/dist/executor-3W63Y44O.js +0 -11
  239. package/dist/executor-CFFWPWBJ.js +0 -8
  240. package/dist/executor-VDQQOR4F.js +0 -8
  241. package/dist/immutable-guard-B5M95nbq.d.ts +0 -82
  242. package/dist/immutable-guard-qN3zF8o1.d.cts +0 -82
  243. package/dist/issue-TTMGHQ2J.js +0 -12
  244. package/dist/noydb-36S6GQNC.js +0 -37
  245. package/dist/read-only-facade-ITU6L7BL.js +0 -7
  246. package/dist/registry-3YFLZ7WD.js +0 -8
  247. package/dist/registry-TGZISEWC.js +0 -8
  248. package/dist/state-vault-W2OEABNO.js.map +0 -1
  249. package/dist/vault-group-DHAHFX2A.js.map +0 -1
  250. package/dist/with-derivation-BZ2y4bzF.d.ts +0 -13
  251. package/dist/with-derivation-Bozs8DmD.d.cts +0 -13
  252. /package/dist/{chunk-NBBMMJ2H.js.map → chunk-3FSMVWBN.js.map} +0 -0
  253. /package/dist/{chunk-SHX5QBCI.js.map → chunk-4ULLGYPA.js.map} +0 -0
  254. /package/dist/{chunk-CD2AVTEM.js.map → chunk-5IGWRMEC.js.map} +0 -0
  255. /package/dist/{chunk-F4G63NTZ.js.map → chunk-7C6VFNIY.js.map} +0 -0
  256. /package/dist/{chunk-XJV6OB4D.js.map → chunk-7HD67R6U.js.map} +0 -0
  257. /package/dist/{chunk-NYSYPFXJ.js.map → chunk-B6E5IRPJ.js.map} +0 -0
  258. /package/dist/{chunk-3G3W65EQ.js.map → chunk-DY3EOJEN.js.map} +0 -0
  259. /package/dist/{chunk-YYVZYTWW.js.map → chunk-E66DSTJP.js.map} +0 -0
  260. /package/dist/{chunk-5LIROIDM.js.map → chunk-FBLAWK6A.js.map} +0 -0
  261. /package/dist/{chunk-E77UKJYL.js.map → chunk-FPHRTW2Z.js.map} +0 -0
  262. /package/dist/{chunk-U5QCMH3W.js.map → chunk-GKQAU52M.js.map} +0 -0
  263. /package/dist/{chunk-2FU2FTXD.js.map → chunk-GYAWXHFO.js.map} +0 -0
  264. /package/dist/{chunk-XPIHJ34I.js.map → chunk-IBVTH4JR.js.map} +0 -0
  265. /package/dist/{chunk-C3HYQPV4.js.map → chunk-IVP5IVON.js.map} +0 -0
  266. /package/dist/{chunk-BL5GYANC.js.map → chunk-KEDJDWWQ.js.map} +0 -0
  267. /package/dist/{chunk-J7RWBXFY.js.map → chunk-LSIIPKYT.js.map} +0 -0
  268. /package/dist/{chunk-BSZOCSDZ.js.map → chunk-M3FPNTO2.js.map} +0 -0
  269. /package/dist/{chunk-XMVHEWF6.js.map → chunk-MI36HL5G.js.map} +0 -0
  270. /package/dist/{chunk-UNTGHX5A.js.map → chunk-OKOKPYWH.js.map} +0 -0
  271. /package/dist/{chunk-H2MRGONI.js.map → chunk-PTGQPWMV.js.map} +0 -0
  272. /package/dist/{chunk-BJSLBUJ7.js.map → chunk-PWFTQHYX.js.map} +0 -0
  273. /package/dist/{chunk-5AXTH4QZ.js.map → chunk-Q5MCHUXZ.js.map} +0 -0
  274. /package/dist/{chunk-QHM6XEAH.js.map → chunk-S22UOMHM.js.map} +0 -0
  275. /package/dist/{chunk-WIAOUFFB.js.map → chunk-S3XA7G35.js.map} +0 -0
  276. /package/dist/{chunk-KCEHMDZF.js.map → chunk-U7JNBSS3.js.map} +0 -0
  277. /package/dist/{chunk-ZNGPEV5J.js.map → chunk-V3VIRTTE.js.map} +0 -0
  278. /package/dist/{chunk-TIDXB5DF.js.map → chunk-V5FZWQNN.js.map} +0 -0
  279. /package/dist/{chunk-AEIKD3PP.js.map → chunk-VNUE6FHP.js.map} +0 -0
  280. /package/dist/{chunk-XMHUK5PN.js.map → chunk-X7FJMKT3.js.map} +0 -0
  281. /package/dist/{chunk-SNMJ7SB3.js.map → chunk-Y5J63SMF.js.map} +0 -0
  282. /package/dist/{chunk-M476FOQ7.js.map → chunk-YLRRU72W.js.map} +0 -0
  283. /package/dist/{chunk-DWEBTE2W.js.map → chunk-YX333DPS.js.map} +0 -0
  284. /package/dist/{chunk-BH3X5L6A.js.map → chunk-YZE6C3TQ.js.map} +0 -0
  285. /package/dist/{crypto-7BN2HDWG.js.map → crypto-B46VNH6X.js.map} +0 -0
  286. /package/dist/{delegation-MGH5SODX.js.map → delegation-5HON72PV.js.map} +0 -0
  287. /package/dist/{executor-3W63Y44O.js.map → executor-44R5CUS2.js.map} +0 -0
  288. /package/dist/{executor-CFFWPWBJ.js.map → executor-AOACUK7Z.js.map} +0 -0
  289. /package/dist/{executor-VDQQOR4F.js.map → executor-OKFLQCDW.js.map} +0 -0
  290. /package/dist/{fanout-sidecar-FIJJ46YG.js.map → fanout-sidecar-DCQWJQ6S.js.map} +0 -0
  291. /package/dist/{issue-TTMGHQ2J.js.map → issue-EPA2PSWP.js.map} +0 -0
  292. /package/dist/{ledger-LFVLHE5H.js.map → ledger-LS6GXCBP.js.map} +0 -0
  293. /package/dist/{noydb-36S6GQNC.js.map → noydb-BVKFP74P.js.map} +0 -0
  294. /package/dist/{public-envelope-RXZNP3V6.js.map → public-envelope-AGU6SS4Z.js.map} +0 -0
  295. /package/dist/{read-only-facade-ITU6L7BL.js.map → read-only-facade-EX6WZZBP.js.map} +0 -0
  296. /package/dist/{registry-3YFLZ7WD.js.map → registry-ERNAMRDE.js.map} +0 -0
  297. /package/dist/{registry-SECUWSGY.js.map → registry-EXTHSXQW.js.map} +0 -0
  298. /package/dist/{registry-TGZISEWC.js.map → registry-RDPTFXQ7.js.map} +0 -0
  299. /package/dist/{revoke-B54H2S2W.js.map → revoke-IFLXEZA5.js.map} +0 -0
  300. /package/dist/{signer-YSXZT574.js.map → signer-UNWOUJAK.js.map} +0 -0
  301. /package/dist/{stale-TOA36SRK.js.map → stale-NTEV5SLX.js.map} +0 -0
@@ -7,12 +7,12 @@ import {
7
7
  decodeIdxId,
8
8
  encodeIdxId,
9
9
  isIdxId
10
- } from "../chunk-NYSYPFXJ.js";
10
+ } from "../chunk-B6E5IRPJ.js";
11
11
  import {
12
12
  CollectionIndexes
13
- } from "../chunk-5AXTH4QZ.js";
14
- import "../chunk-J7RWBXFY.js";
15
- import "../chunk-ZEGSDPB7.js";
13
+ } from "../chunk-Q5MCHUXZ.js";
14
+ import "../chunk-LSIIPKYT.js";
15
+ import "../chunk-DJF3FXW5.js";
16
16
 
17
17
  // src/indexing/active.ts
18
18
  function withIndexing() {
@@ -0,0 +1,12 @@
1
+ import {
2
+ issueAttestationCore
3
+ } from "./chunk-Y5J63SMF.js";
4
+ import "./chunk-V5FZWQNN.js";
5
+ import "./chunk-FZU343FL.js";
6
+ import "./chunk-SHIUFIPW.js";
7
+ import "./chunk-OKOKPYWH.js";
8
+ import "./chunk-DJF3FXW5.js";
9
+ export {
10
+ issueAttestationCore
11
+ };
12
+ //# sourceMappingURL=issue-EPA2PSWP.js.map
@@ -5,7 +5,7 @@ import {
5
5
  LedgerStore,
6
6
  applyPatch,
7
7
  computePatch
8
- } from "./chunk-DWEBTE2W.js";
8
+ } from "./chunk-YX333DPS.js";
9
9
  import {
10
10
  canonicalJson,
11
11
  envelopePayloadHash,
@@ -14,9 +14,9 @@ import {
14
14
  parseIndex,
15
15
  sha256Hex
16
16
  } from "./chunk-PDVP3C2I.js";
17
- import "./chunk-SISBMAPO.js";
18
- import "./chunk-UNTGHX5A.js";
19
- import "./chunk-ZEGSDPB7.js";
17
+ import "./chunk-SHIUFIPW.js";
18
+ import "./chunk-OKOKPYWH.js";
19
+ import "./chunk-DJF3FXW5.js";
20
20
  export {
21
21
  LEDGER_COLLECTION,
22
22
  LEDGER_DELTAS_COLLECTION,
@@ -30,4 +30,4 @@ export {
30
30
  parseIndex,
31
31
  sha256Hex
32
32
  };
33
- //# sourceMappingURL=ledger-LFVLHE5H.js.map
33
+ //# sourceMappingURL=ledger-LS6GXCBP.js.map
@@ -21,7 +21,7 @@ var __copyProps = (to, from, except, desc) => {
21
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
22
 
23
23
  // src/errors.ts
24
- var NoydbError, ValidationError, GroupCardinalityError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, MaterializedViewConfigError;
24
+ var NoydbError, ValidationError, GroupCardinalityError, LocaleNotSpecifiedError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, MaterializedViewConfigError;
25
25
  var init_errors = __esm({
26
26
  "src/errors.ts"() {
27
27
  "use strict";
@@ -58,6 +58,18 @@ var init_errors = __esm({
58
58
  this.maxGroups = maxGroups;
59
59
  }
60
60
  };
61
+ LocaleNotSpecifiedError = class extends NoydbError {
62
+ /** The field name that required a locale. */
63
+ field;
64
+ constructor(field, message) {
65
+ super(
66
+ "LOCALE_NOT_SPECIFIED",
67
+ message ?? `Cannot read i18nText field "${field}" without a locale. Pass { locale } to get()/list()/query() or set a default via openVault(name, { locale }).`
68
+ );
69
+ this.name = "LocaleNotSpecifiedError";
70
+ this.field = field;
71
+ }
72
+ };
61
73
  MaterializedViewCycleError = class extends NoydbError {
62
74
  path;
63
75
  constructor(path) {
@@ -846,6 +858,217 @@ var init_money_reducer = __esm({
846
858
  }
847
859
  });
848
860
 
861
+ // src/i18n/policy.ts
862
+ function resolvePolicy(onMissing, layer) {
863
+ const explicit = onMissing && typeof onMissing === "object" ? onMissing[layer] : void 0;
864
+ const scalar = typeof onMissing === "string" ? onMissing : void 0;
865
+ const layerDefault = layer === "guard" ? "substitute" : void 0;
866
+ return explicit ?? layerDefault ?? scalar ?? "throw";
867
+ }
868
+ var init_policy = __esm({
869
+ "src/i18n/policy.ts"() {
870
+ "use strict";
871
+ }
872
+ });
873
+
874
+ // src/i18n/script.ts
875
+ function inferScripts(locale) {
876
+ const parts = locale.split("-");
877
+ const subtag = parts.find((t) => /^[A-Z][a-z]{3}$/.test(t));
878
+ if (subtag && SUBTAG_SCRIPTS[subtag]) return SUBTAG_SCRIPTS[subtag];
879
+ const base = (parts[0] ?? "").toLowerCase();
880
+ if (LATIN_BASE.has(base)) return ["Latin"];
881
+ const primary = SCRIPT_TABLE[base];
882
+ if (primary) return [...primary, "Latin"];
883
+ return ["Latin"];
884
+ }
885
+ var LATIN_BASE, SCRIPT_TABLE, SUBTAG_SCRIPTS, BASELINE;
886
+ var init_script = __esm({
887
+ "src/i18n/script.ts"() {
888
+ "use strict";
889
+ LATIN_BASE = /* @__PURE__ */ new Set([
890
+ "en",
891
+ "fr",
892
+ "de",
893
+ "es",
894
+ "it",
895
+ "pt",
896
+ "nl",
897
+ "sv",
898
+ "no",
899
+ "da",
900
+ "fi",
901
+ "is",
902
+ "pl",
903
+ "cs",
904
+ "sk",
905
+ "hu",
906
+ "ro",
907
+ "hr",
908
+ "sl",
909
+ "et",
910
+ "lv",
911
+ "lt",
912
+ "tr",
913
+ "vi",
914
+ "id",
915
+ "ms",
916
+ "tl",
917
+ "sw",
918
+ "af",
919
+ "ca",
920
+ "gl",
921
+ "eu",
922
+ "cy",
923
+ "ga"
924
+ ]);
925
+ SCRIPT_TABLE = {
926
+ th: ["Thai"],
927
+ ko: ["Hangul", "Han"],
928
+ ja: ["Han", "Hiragana", "Katakana"],
929
+ zh: ["Han"],
930
+ ar: ["Arabic"],
931
+ fa: ["Arabic"],
932
+ ur: ["Arabic"],
933
+ ru: ["Cyrillic"],
934
+ uk: ["Cyrillic"],
935
+ bg: ["Cyrillic"],
936
+ sr: ["Cyrillic"],
937
+ he: ["Hebrew"],
938
+ el: ["Greek"],
939
+ hi: ["Devanagari"],
940
+ ta: ["Tamil"],
941
+ km: ["Khmer"],
942
+ lo: ["Lao"],
943
+ my: ["Myanmar"]
944
+ };
945
+ SUBTAG_SCRIPTS = {
946
+ Latn: ["Latin"],
947
+ Cyrl: ["Cyrillic", "Latin"],
948
+ Hans: ["Han", "Latin"],
949
+ Hant: ["Han", "Latin"],
950
+ Thai: ["Thai", "Latin"],
951
+ Arab: ["Arabic", "Latin"]
952
+ };
953
+ BASELINE = String.raw`\p{White_Space}\p{Script=Common}\p{Script=Inherited}\p{Mark}`;
954
+ }
955
+ });
956
+
957
+ // src/i18n/core.ts
958
+ function toChain(fallback) {
959
+ return Array.isArray(fallback) ? fallback : fallback ? [fallback] : [];
960
+ }
961
+ function pickFromChain(value, chain) {
962
+ for (const fb of chain) {
963
+ if (fb === "any") {
964
+ const any = Object.values(value).find((v) => v !== "");
965
+ if (any !== void 0) return any;
966
+ } else if (value[fb] !== void 0 && value[fb] !== "") {
967
+ return value[fb];
968
+ }
969
+ }
970
+ return void 0;
971
+ }
972
+ function resolveI18nText(value, locale, fallback, field, opts) {
973
+ if (locale === "raw") {
974
+ return value;
975
+ }
976
+ if (!locale) {
977
+ throw new LocaleNotSpecifiedError(field ?? "<unknown>");
978
+ }
979
+ if (value[locale] !== void 0 && value[locale] !== "") {
980
+ return value[locale];
981
+ }
982
+ const policy = opts?.policy ?? "throw";
983
+ const callerChain = toChain(fallback);
984
+ const callerHit = pickFromChain(value, callerChain);
985
+ if (callerHit !== void 0) return callerHit;
986
+ if (policy === "substitute") {
987
+ const subHit = pickFromChain(value, toChain(opts?.substitute));
988
+ if (subHit !== void 0) return subHit;
989
+ if (opts?.smartSubstitute) {
990
+ const smartHit = pickNearestScript(value, locale);
991
+ if (smartHit !== void 0) return smartHit;
992
+ }
993
+ }
994
+ if (policy === "throw") {
995
+ throw new LocaleNotSpecifiedError(
996
+ field ?? "<unknown>",
997
+ `No translation available for locale "${locale}"` + (callerChain.length > 0 ? ` or fallback chain [${callerChain.join(", ")}]` : "") + "."
998
+ );
999
+ }
1000
+ return null;
1001
+ }
1002
+ function pickNearestScript(value, target) {
1003
+ const targetScript = inferScripts(target)[0] ?? "Latin";
1004
+ let best;
1005
+ for (const [loc, v] of Object.entries(value)) {
1006
+ if (typeof v !== "string" || v === "") continue;
1007
+ const s = inferScripts(loc)[0] ?? "Latin";
1008
+ const score = s === targetScript ? 0 : s === "Latin" ? 1 : 2;
1009
+ if (best === void 0 || score < best.score) best = { score, v };
1010
+ if (score === 0) break;
1011
+ }
1012
+ return best?.v;
1013
+ }
1014
+ function applyAtPath(obj, path, locale, fallback, opts) {
1015
+ const arrayIdx = path.indexOf("[].");
1016
+ if (arrayIdx !== -1) {
1017
+ const arrayKey = path.slice(0, arrayIdx);
1018
+ const restPath = path.slice(arrayIdx + 3);
1019
+ const arr = obj[arrayKey];
1020
+ if (!Array.isArray(arr)) return obj;
1021
+ return {
1022
+ ...obj,
1023
+ [arrayKey]: arr.map((item) => {
1024
+ if (!item || typeof item !== "object" || Array.isArray(item)) return item;
1025
+ return applyAtPath(item, restPath, locale, fallback, opts);
1026
+ })
1027
+ };
1028
+ }
1029
+ const dotIdx = path.indexOf(".");
1030
+ if (dotIdx !== -1) {
1031
+ const head = path.slice(0, dotIdx);
1032
+ const rest = path.slice(dotIdx + 1);
1033
+ const nested = obj[head];
1034
+ if (!nested || typeof nested !== "object" || Array.isArray(nested)) return obj;
1035
+ return {
1036
+ ...obj,
1037
+ [head]: applyAtPath(nested, rest, locale, fallback, opts)
1038
+ };
1039
+ }
1040
+ const raw = obj[path];
1041
+ if (raw === void 0 || raw === null) return obj;
1042
+ if (typeof raw !== "object" || Array.isArray(raw)) return obj;
1043
+ return {
1044
+ ...obj,
1045
+ [path]: resolveI18nText(raw, locale, fallback, path, opts)
1046
+ };
1047
+ }
1048
+ function applyI18nLocale(record, i18nFields, locale, fallback, layer = "read") {
1049
+ const fieldNames = Object.keys(i18nFields);
1050
+ if (fieldNames.length === 0) return record;
1051
+ let result = record;
1052
+ for (const [field, descriptor] of Object.entries(i18nFields)) {
1053
+ const { onMissing, substitute, smartSubstitute } = descriptor.options;
1054
+ const opts = {
1055
+ policy: resolvePolicy(onMissing, layer),
1056
+ ...substitute !== void 0 ? { substitute } : {},
1057
+ ...smartSubstitute ? { smartSubstitute } : {}
1058
+ };
1059
+ result = applyAtPath(result, field, locale, fallback, opts);
1060
+ }
1061
+ return result;
1062
+ }
1063
+ var init_core = __esm({
1064
+ "src/i18n/core.ts"() {
1065
+ "use strict";
1066
+ init_errors();
1067
+ init_policy();
1068
+ init_script();
1069
+ }
1070
+ });
1071
+
849
1072
  // src/aggregate/groupby.ts
850
1073
  function warnCardinalityApproaching(fields, observed) {
851
1074
  const key = JSON.stringify([...fields].sort());
@@ -931,12 +1154,13 @@ var executor_exports = {};
931
1154
  __export(executor_exports, {
932
1155
  MaterializedViewExecutor: () => MaterializedViewExecutor
933
1156
  });
934
- async function materializeQueryResult(q, mvName) {
1157
+ async function materializeQueryResult(q, mvName, i18nLocale, i18nFields) {
935
1158
  if (typeof q?.toArray === "function") {
936
1159
  return await q.toArray();
937
1160
  }
938
1161
  if (typeof q?.run === "function") {
939
- const result = await Promise.resolve(q.run());
1162
+ const runOpts = i18nLocale !== void 0 ? { locale: i18nLocale, i18nFields } : void 0;
1163
+ const result = await Promise.resolve(q.run(runOpts));
940
1164
  if (Array.isArray(result)) {
941
1165
  return result;
942
1166
  }
@@ -965,6 +1189,29 @@ async function materializeUnionResult(spec, db) {
965
1189
  }
966
1190
  if (!spec.groupBy) return unified;
967
1191
  const groupFields = typeof spec.groupBy === "string" ? [spec.groupBy] : spec.groupBy;
1192
+ if (spec.i18nLocale !== void 0 && spec.i18nFields !== void 0) {
1193
+ const groupI18n = {};
1194
+ for (const f of groupFields) {
1195
+ const d = spec.i18nFields[f];
1196
+ if (d !== void 0) groupI18n[f] = d;
1197
+ }
1198
+ if (Object.keys(groupI18n).length > 0) {
1199
+ for (let i = 0; i < unified.length; i++) {
1200
+ unified[i] = applyI18nLocale(unified[i], groupI18n, spec.i18nLocale, void 0, "mv");
1201
+ }
1202
+ }
1203
+ }
1204
+ for (const f of groupFields) {
1205
+ for (const row of unified) {
1206
+ const v = row[f];
1207
+ if (v !== null && typeof v === "object") {
1208
+ throw new LocaleNotSpecifiedError(
1209
+ f,
1210
+ `Materialized view "${spec.name}" groups by "${f}", whose value is a raw i18n locale map \u2014 an unstable object group key. Declare { i18nLocale, i18nFields } on the MV to resolve it at the 'mv' layer, or group by a dictKey/staticDict code (the stable key) and resolve the label at read time.`
1211
+ );
1212
+ }
1213
+ }
1214
+ }
968
1215
  if (!spec.aggregate) {
969
1216
  const seen = /* @__PURE__ */ new Map();
970
1217
  for (const row of unified) {
@@ -996,6 +1243,7 @@ var init_executor = __esm({
996
1243
  init_registry();
997
1244
  init_groupby();
998
1245
  init_canonical_key();
1246
+ init_core();
999
1247
  DEFAULT_MAX_ROWS = 1e5;
1000
1248
  MaterializedViewExecutor = {
1001
1249
  async refresh(reg, accessor) {
@@ -1011,7 +1259,7 @@ var init_executor = __esm({
1011
1259
  rows = await materializeUnionResult(spec, ctxForQuery);
1012
1260
  } else {
1013
1261
  const q = spec.query(ctxForQuery);
1014
- rows = await materializeQueryResult(q, spec.name);
1262
+ rows = await materializeQueryResult(q, spec.name, spec.i18nLocale, spec.i18nFields);
1015
1263
  }
1016
1264
  if (rows.length > maxRows) {
1017
1265
  throw new MaterializedViewTooLargeError(spec.name, rows.length, maxRows);
@@ -1169,6 +1417,11 @@ function withMaterializedView(spec) {
1169
1417
  );
1170
1418
  }
1171
1419
  }
1420
+ if (spec.i18nLocale !== void 0 && spec.i18nFields === void 0) {
1421
+ throw new MaterializedViewConfigError(
1422
+ `withMaterializedView "${spec.name}": i18nLocale requires i18nFields \u2014 declare the i18nText descriptors of the group-key fields so they can be resolved at the mv layer before bucketing.`
1423
+ );
1424
+ }
1172
1425
  if (typeof spec.rowKey !== "function") {
1173
1426
  throw new ValidationError("withMaterializedView: rowKey is required (no default; see spec \xA7 Type surface)");
1174
1427
  }