@noy-db/hub 0.2.0-pre.9 → 0.3.0-pre.10
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.
- package/README.md +129 -3
- package/dist/aggregate/index.d.ts +5 -2
- package/dist/aggregate/index.js +25 -16
- package/dist/aggregate/index.js.map +1 -1
- package/dist/api-TX2EX2FX.js +20 -0
- package/dist/as/index.d.ts +6 -0
- package/dist/as/index.js +30 -0
- package/dist/at/index.d.ts +4 -0
- package/dist/at/index.js +1 -0
- package/dist/attestation/index.d.ts +14 -47
- package/dist/attestation/index.js +60 -10
- package/dist/attestation/index.js.map +1 -1
- package/dist/backup-R7NTDFKY.js +225 -0
- package/dist/backup-R7NTDFKY.js.map +1 -0
- package/dist/blobs/index.d.ts +5 -8
- package/dist/blobs/index.js +25 -12
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.d.ts +15 -70
- package/dist/bundle/index.js +45 -476
- package/dist/bundle/index.js.map +1 -1
- package/dist/{ulid-CJ8RzRrm.d.ts → bundle-D6GxiUfq.d.ts} +31 -86
- package/dist/by/index.d.ts +1 -0
- package/dist/by/index.js +11 -0
- package/dist/cargo/index.d.ts +7 -0
- package/dist/cargo/index.js +95 -0
- package/dist/chunk-2OV5NVE7.js +95 -0
- package/dist/chunk-2OV5NVE7.js.map +1 -0
- package/dist/chunk-2OZXVKVP.js +367 -0
- package/dist/chunk-2OZXVKVP.js.map +1 -0
- package/dist/{chunk-HNRHLRDC.js → chunk-2REPHKET.js} +6 -5
- package/dist/chunk-2REPHKET.js.map +1 -0
- package/dist/{chunk-PE2FR4J3.js → chunk-3JXPAHOZ.js} +17 -17
- package/dist/chunk-3JXPAHOZ.js.map +1 -0
- package/dist/{chunk-H2X3ISXG.js → chunk-3MATJ6O4.js} +7 -7
- package/dist/chunk-3MATJ6O4.js.map +1 -0
- package/dist/{chunk-PP6W64Y3.js → chunk-3OPY6MK2.js} +132 -3
- package/dist/chunk-3OPY6MK2.js.map +1 -0
- package/dist/{chunk-T7JEBOGN.js → chunk-3QSIU3UT.js} +49 -71
- package/dist/chunk-3QSIU3UT.js.map +1 -0
- package/dist/{chunk-ZYWZWG6G.js → chunk-4OMCIY6F.js} +32 -12
- package/dist/chunk-4OMCIY6F.js.map +1 -0
- package/dist/chunk-4Q6HSHHL.js +90 -0
- package/dist/chunk-4Q6HSHHL.js.map +1 -0
- package/dist/chunk-5I35DOHK.js +94 -0
- package/dist/chunk-5I35DOHK.js.map +1 -0
- package/dist/chunk-5VG4IJR7.js +235 -0
- package/dist/chunk-5VG4IJR7.js.map +1 -0
- package/dist/chunk-5YESYH2C.js +155 -0
- package/dist/chunk-5YESYH2C.js.map +1 -0
- package/dist/chunk-6G5ORS5D.js +202 -0
- package/dist/chunk-6G5ORS5D.js.map +1 -0
- package/dist/{chunk-VTKGMEPP.js → chunk-6P5XCKSD.js} +13 -3
- package/dist/chunk-6P5XCKSD.js.map +1 -0
- package/dist/{chunk-J66GRPNH.js → chunk-6S7T6WC4.js} +2 -2
- package/dist/chunk-6S7T6WC4.js.map +1 -0
- package/dist/{chunk-U26HQ6KJ.js → chunk-7BWJHO2A.js} +4 -4
- package/dist/chunk-7BWJHO2A.js.map +1 -0
- package/dist/chunk-7P2SDJG3.js +279 -0
- package/dist/chunk-7P2SDJG3.js.map +1 -0
- package/dist/chunk-ANB77BVV.js +150 -0
- package/dist/chunk-ANB77BVV.js.map +1 -0
- package/dist/chunk-AURFOK3D.js +35 -0
- package/dist/chunk-AURFOK3D.js.map +1 -0
- package/dist/chunk-BKARNZJN.js +382 -0
- package/dist/chunk-BKARNZJN.js.map +1 -0
- package/dist/{chunk-3BFJOWSU.js → chunk-BQISD5ZV.js} +35 -7
- package/dist/chunk-BQISD5ZV.js.map +1 -0
- package/dist/{chunk-2GLDA55J.js → chunk-BUAQ7YI3.js} +260 -135
- package/dist/chunk-BUAQ7YI3.js.map +1 -0
- package/dist/{chunk-2WUSG3IT.js → chunk-CB7CWSKW.js} +5 -5
- package/dist/chunk-CB7CWSKW.js.map +1 -0
- package/dist/chunk-CHFZDSE4.js +1 -0
- package/dist/{aggregate/index.cjs → chunk-DFVUTGT2.js} +206 -222
- package/dist/chunk-DFVUTGT2.js.map +1 -0
- package/dist/chunk-DJ7KIPLV.js +23 -0
- package/dist/chunk-DJ7KIPLV.js.map +1 -0
- package/dist/chunk-DSKDQP3G.js +14066 -0
- package/dist/chunk-DSKDQP3G.js.map +1 -0
- package/dist/{chunk-5T22KDPN.js → chunk-DV4HUP5G.js} +10 -8
- package/dist/chunk-DV4HUP5G.js.map +1 -0
- package/dist/chunk-EOXAAJTY.js +621 -0
- package/dist/chunk-EOXAAJTY.js.map +1 -0
- package/dist/chunk-ET67AY6B.js +74 -0
- package/dist/chunk-ET67AY6B.js.map +1 -0
- package/dist/chunk-F4CEK5YM.js +123 -0
- package/dist/chunk-F4CEK5YM.js.map +1 -0
- package/dist/chunk-FORYWFN6.js +130 -0
- package/dist/chunk-FORYWFN6.js.map +1 -0
- package/dist/{chunk-JWRVQKRZ.js → chunk-FRP6D2DM.js} +21 -20
- package/dist/chunk-FRP6D2DM.js.map +1 -0
- package/dist/chunk-FUOE7UUV.js +341 -0
- package/dist/chunk-FUOE7UUV.js.map +1 -0
- package/dist/chunk-G4JYND6L.js +42 -0
- package/dist/chunk-G4JYND6L.js.map +1 -0
- package/dist/{chunk-53XBRIRT.js → chunk-G6XV4H65.js} +9 -9
- package/dist/chunk-G6XV4H65.js.map +1 -0
- package/dist/chunk-GHVIKOHT.js +1 -0
- package/dist/{chunk-PX35GA7L.js → chunk-GNMXXTMN.js} +11 -9
- package/dist/chunk-GNMXXTMN.js.map +1 -0
- package/dist/chunk-GYGLAVCX.js +19 -0
- package/dist/chunk-GYGLAVCX.js.map +1 -0
- package/dist/chunk-HPWKV3YB.js +21 -0
- package/dist/chunk-HPWKV3YB.js.map +1 -0
- package/dist/chunk-HY3AUMFI.js +41 -0
- package/dist/chunk-HY3AUMFI.js.map +1 -0
- package/dist/chunk-HYR4WZZ3.js +69 -0
- package/dist/chunk-HYR4WZZ3.js.map +1 -0
- package/dist/chunk-I7FD46FF.js +9 -0
- package/dist/chunk-I7FD46FF.js.map +1 -0
- package/dist/{chunk-TFBP23BX.js → chunk-ICXIFFYZ.js} +66 -7
- package/dist/chunk-ICXIFFYZ.js.map +1 -0
- package/dist/{chunk-TV3YZ35S.js → chunk-IGJCYUT5.js} +17 -8
- package/dist/chunk-IGJCYUT5.js.map +1 -0
- package/dist/{chunk-F3GDRNUT.js → chunk-IVLTXX4W.js} +36 -68
- package/dist/chunk-IVLTXX4W.js.map +1 -0
- package/dist/{chunk-DONMZAD2.js → chunk-J4LPNIGK.js} +62 -169
- package/dist/chunk-J4LPNIGK.js.map +1 -0
- package/dist/chunk-JJZ2LW6T.js +36 -0
- package/dist/chunk-JJZ2LW6T.js.map +1 -0
- package/dist/chunk-JK733I5V.js +23 -0
- package/dist/chunk-JK733I5V.js.map +1 -0
- package/dist/{chunk-3YPCK6JX.js → chunk-KJ2BCBTL.js} +181 -422
- package/dist/chunk-KJ2BCBTL.js.map +1 -0
- package/dist/chunk-KNZB6JMR.js +129 -0
- package/dist/chunk-KNZB6JMR.js.map +1 -0
- package/dist/{chunk-OIF6LZUR.js → chunk-KPZS5QAQ.js} +30 -11
- package/dist/chunk-KPZS5QAQ.js.map +1 -0
- package/dist/chunk-LB7FD65R.js +163 -0
- package/dist/chunk-LB7FD65R.js.map +1 -0
- package/dist/{chunk-DO7C2TOG.js → chunk-LEJIKBBB.js} +3 -3
- package/dist/{chunk-DO7C2TOG.js.map → chunk-LEJIKBBB.js.map} +1 -1
- package/dist/{chunk-O3VZPBZG.js → chunk-LL2NIVUR.js} +56 -13
- package/dist/chunk-LL2NIVUR.js.map +1 -0
- package/dist/chunk-LP7BEXCT.js +32 -0
- package/dist/chunk-LP7BEXCT.js.map +1 -0
- package/dist/chunk-MCHVVJIA.js +968 -0
- package/dist/chunk-MCHVVJIA.js.map +1 -0
- package/dist/chunk-NO272T7Q.js +194 -0
- package/dist/chunk-NO272T7Q.js.map +1 -0
- package/dist/{chunk-22DWZL57.js → chunk-NUEQU36L.js} +70 -267
- package/dist/chunk-NUEQU36L.js.map +1 -0
- package/dist/chunk-O45M6LDB.js +38 -0
- package/dist/chunk-O45M6LDB.js.map +1 -0
- package/dist/chunk-OBKWYKYC.js +117 -0
- package/dist/chunk-OBKWYKYC.js.map +1 -0
- package/dist/{chunk-DJHHA6XH.js → chunk-OHHKHSJP.js} +50 -20
- package/dist/chunk-OHHKHSJP.js.map +1 -0
- package/dist/chunk-OT76OZL6.js +45 -0
- package/dist/chunk-OT76OZL6.js.map +1 -0
- package/dist/chunk-OVYRLHPE.js +150 -0
- package/dist/chunk-OVYRLHPE.js.map +1 -0
- package/dist/{chunk-ML236QKC.js → chunk-OXCSVM3B.js} +5 -5
- package/dist/chunk-OXCSVM3B.js.map +1 -0
- package/dist/chunk-P33LUIML.js +205 -0
- package/dist/chunk-P33LUIML.js.map +1 -0
- package/dist/{chunk-DL3HWOQ5.js → chunk-PLS64NCS.js} +10 -8
- package/dist/chunk-PLS64NCS.js.map +1 -0
- package/dist/{chunk-SYMWGEET.js → chunk-PS2NEWEX.js} +3 -3
- package/dist/chunk-PS2NEWEX.js.map +1 -0
- package/dist/chunk-PY4KJPYU.js +9 -0
- package/dist/chunk-PY4KJPYU.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-QA2KUPCP.js +45 -0
- package/dist/chunk-QA2KUPCP.js.map +1 -0
- package/dist/chunk-QOC3VYL2.js +30 -0
- package/dist/chunk-QOC3VYL2.js.map +1 -0
- package/dist/{chunk-BVRYKATC.js → chunk-QSFOZUYL.js} +62 -34
- package/dist/chunk-QSFOZUYL.js.map +1 -0
- package/dist/chunk-RHK32N73.js +30 -0
- package/dist/chunk-RHK32N73.js.map +1 -0
- package/dist/{chunk-K3DK3NU5.js → chunk-RW3Y22MW.js} +20 -5
- package/dist/chunk-RW3Y22MW.js.map +1 -0
- package/dist/{chunk-B6PB7JLN.js → chunk-S7VFUQM2.js} +541 -6
- package/dist/chunk-S7VFUQM2.js.map +1 -0
- package/dist/chunk-SVLR4POP.js +64 -0
- package/dist/chunk-SVLR4POP.js.map +1 -0
- package/dist/chunk-T7WSLRAU.js +49 -0
- package/dist/chunk-T7WSLRAU.js.map +1 -0
- package/dist/{chunk-WPLVTJ5D.js → chunk-TAKWLZZX.js} +285 -63
- package/dist/chunk-TAKWLZZX.js.map +1 -0
- package/dist/chunk-THNJ3IKU.js +17 -0
- package/dist/chunk-THNJ3IKU.js.map +1 -0
- package/dist/{chunk-XJFLDA7A.js → chunk-TMBXVJKT.js} +9 -6
- package/dist/chunk-TMBXVJKT.js.map +1 -0
- package/dist/chunk-TWKKOM55.js +54 -0
- package/dist/chunk-TWKKOM55.js.map +1 -0
- package/dist/chunk-U3WZCU7E.js +14 -0
- package/dist/chunk-U3WZCU7E.js.map +1 -0
- package/dist/{chunk-Z6FNBOTC.js → chunk-UF362QVH.js} +15 -17
- package/dist/chunk-UF362QVH.js.map +1 -0
- package/dist/chunk-UN4FVIBH.js +135 -0
- package/dist/chunk-UN4FVIBH.js.map +1 -0
- package/dist/chunk-VEAVKDDB.js +29 -0
- package/dist/chunk-VEAVKDDB.js.map +1 -0
- package/dist/chunk-VEPTFUJY.js +29 -0
- package/dist/chunk-VEPTFUJY.js.map +1 -0
- package/dist/chunk-VJV7GKQK.js +662 -0
- package/dist/chunk-VJV7GKQK.js.map +1 -0
- package/dist/{chunk-2QR2PQTT.js → chunk-VQNJ7UZL.js} +5 -3
- package/dist/chunk-VQNJ7UZL.js.map +1 -0
- package/dist/chunk-VQRAIPYF.js +50 -0
- package/dist/chunk-VQRAIPYF.js.map +1 -0
- package/dist/{chunk-DFMLEQZB.js → chunk-VRIYFLBA.js} +5 -10
- package/dist/chunk-VRIYFLBA.js.map +1 -0
- package/dist/chunk-VWM3DAVB.js +265 -0
- package/dist/chunk-VWM3DAVB.js.map +1 -0
- package/dist/{chunk-NONAAENK.js → chunk-VWRRVE6D.js} +11 -4
- package/dist/chunk-VWRRVE6D.js.map +1 -0
- package/dist/chunk-VYYM3MEN.js +98 -0
- package/dist/chunk-VYYM3MEN.js.map +1 -0
- package/dist/chunk-WBJIQSLL.js +167 -0
- package/dist/chunk-WBJIQSLL.js.map +1 -0
- package/dist/chunk-WIGQB62E.js +164 -0
- package/dist/chunk-WIGQB62E.js.map +1 -0
- package/dist/{chunk-EMIGCR7X.js → chunk-WXSYDNBT.js} +2 -2
- package/dist/chunk-WXSYDNBT.js.map +1 -0
- package/dist/chunk-WZSCE6RM.js +466 -0
- package/dist/chunk-WZSCE6RM.js.map +1 -0
- package/dist/chunk-XGDAPN6M.js +255 -0
- package/dist/chunk-XGDAPN6M.js.map +1 -0
- package/dist/{chunk-QODLLGQ7.js → chunk-XH7XP3OL.js} +372 -37
- package/dist/chunk-XH7XP3OL.js.map +1 -0
- package/dist/chunk-XREOISSI.js +40 -0
- package/dist/chunk-XREOISSI.js.map +1 -0
- package/dist/chunk-XUBPSPKD.js +164 -0
- package/dist/chunk-XUBPSPKD.js.map +1 -0
- package/dist/chunk-Y3A5CB5G.js +247 -0
- package/dist/chunk-Y3A5CB5G.js.map +1 -0
- package/dist/{chunk-I5FOWO4J.js → chunk-YCXCR7VG.js} +52 -73
- package/dist/chunk-YCXCR7VG.js.map +1 -0
- package/dist/{chunk-A3JMGXPG.js → chunk-YMUGBZN2.js} +2 -2
- package/dist/chunk-YMUGBZN2.js.map +1 -0
- package/dist/chunk-YMVQD5Q5.js +453 -0
- package/dist/chunk-YMVQD5Q5.js.map +1 -0
- package/dist/chunk-YN5IAHN6.js +32 -0
- package/dist/chunk-YN5IAHN6.js.map +1 -0
- package/dist/{chunk-FZU343FL.js → chunk-ZJADGNYF.js} +2 -2
- package/dist/chunk-ZJADGNYF.js.map +1 -0
- package/dist/chunk-ZYJ55N7N.js +86 -0
- package/dist/chunk-ZYJ55N7N.js.map +1 -0
- package/dist/classified/index.d.ts +16 -0
- package/dist/classified/index.js +40 -0
- package/dist/classified-marker-H6YSHYNK.js +24 -0
- package/dist/classified-marker-H6YSHYNK.js.map +1 -0
- package/dist/collection-facade-LVD22JLM.js +39 -0
- package/dist/computed-EXDMQODG.js +11 -0
- package/dist/consent/index.d.ts +4 -7
- package/dist/consent/index.js +13 -5
- package/dist/consent/index.js.map +1 -1
- package/dist/crdt/index.d.ts +5 -2
- package/dist/crdt/index.js +3 -2
- package/dist/crdt/index.js.map +1 -1
- package/dist/dead-filter-HQIE2YG7.js +28 -0
- package/dist/dead-filter-HQIE2YG7.js.map +1 -0
- package/dist/decrypt-partition-IHtxEnTi.d.ts +21 -0
- package/dist/delegation-BJP73GAP.js +25 -0
- package/dist/derivations/index.d.ts +6 -9
- package/dist/derivations/index.js +18 -6
- package/dist/derive-BME7HDWO.js +21 -0
- package/dist/{dev-unlock-B4kDxep_.d.ts → dev-unlock-Bmm2pgJ0.d.ts} +1 -1
- package/dist/discriminant-BN9REW3o.d.ts +60 -0
- package/dist/enclave-NHORSWSF.js +125 -0
- package/dist/executor-FE6X4LFX.js +9 -0
- package/dist/executor-KSHKRJXP.js +25 -0
- package/dist/executor-ZHTJJICG.js +9 -0
- package/dist/export-accessible-DACHM5VT.js +23 -0
- package/dist/extract-partition-RNENZZ4T.js +36 -0
- package/dist/fanout-sidecar-OFWN3NM7.js +74 -0
- package/dist/fanout-sidecar-OFWN3NM7.js.map +1 -0
- package/dist/fence-watcher-DHQ775JB.js +69 -0
- package/dist/fence-watcher-DHQ775JB.js.map +1 -0
- package/dist/find-BNGBJNKP.js +11 -0
- package/dist/forget/index.d.ts +36 -0
- package/dist/forget/index.js +25 -0
- package/dist/forget/index.js.map +1 -0
- package/dist/guards/index.d.ts +12 -9
- package/dist/guards/index.js +12 -5
- package/dist/{hash-DdpVypUp.d.cts → hash-DAJjMsCE.d.ts} +10 -1
- package/dist/history/index.d.ts +5 -8
- package/dist/history/index.js +25 -12
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.d.ts +25 -8
- package/dist/i18n/index.js +137 -29
- package/dist/i18n/index.js.map +1 -1
- package/dist/in/index.d.ts +4 -0
- package/dist/in/index.js +1 -0
- package/dist/in/index.js.map +1 -0
- package/dist/index-B9QdHytu.d.ts +123 -0
- package/dist/index-DjWbxsjb.d.ts +23579 -0
- package/dist/index-qwuNvO2B.d.ts +144 -0
- package/dist/index.d.ts +1179 -449
- package/dist/index.js +2524 -312
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.d.ts +5 -3
- package/dist/indexing/index.js +6 -5
- package/dist/indexing/index.js.map +1 -1
- package/dist/issue-NDI4CVZU.js +19 -0
- package/dist/issue-NDI4CVZU.js.map +1 -0
- package/dist/json-schema-I22JCYCG.js +44 -0
- package/dist/json-schema-I22JCYCG.js.map +1 -0
- package/dist/lazy/index.d.ts +20 -0
- package/dist/lazy/index.js +12 -0
- package/dist/lazy/index.js.map +1 -0
- package/dist/ledger-6NDS2EO4.js +42 -0
- package/dist/ledger-6NDS2EO4.js.map +1 -0
- package/dist/liberate-HN3RIGIP.js +24 -0
- package/dist/liberate-HN3RIGIP.js.map +1 -0
- package/dist/link-set-SJB2MVJV.js +31 -0
- package/dist/link-set-SJB2MVJV.js.map +1 -0
- package/dist/materialized-views/index.d.ts +23 -20
- package/dist/materialized-views/index.js +26 -12
- package/dist/mime-magic-bBj5OgUC.d.ts +103 -0
- package/dist/noydb-BWF6EPIR.js +66 -0
- package/dist/noydb-BWF6EPIR.js.map +1 -0
- package/dist/on/index.d.ts +4 -0
- package/dist/on/index.js +17 -0
- package/dist/on/index.js.map +1 -0
- package/dist/overlay-views/index.d.ts +26 -11
- package/dist/overlay-views/index.js +7 -6
- package/dist/periods/index.d.ts +4 -7
- package/dist/periods/index.js +27 -9
- package/dist/pod/index.d.ts +62 -0
- package/dist/pod/index.js +67 -0
- package/dist/pod/index.js.map +1 -0
- package/dist/policy-WGNAG5H6.js +41 -0
- package/dist/policy-WGNAG5H6.js.map +1 -0
- package/dist/portability/index.d.ts +19 -0
- package/dist/portability/index.js +43 -0
- package/dist/portability/index.js.map +1 -0
- package/dist/post-register-CWKBQRC7.js +55 -0
- package/dist/post-register-CWKBQRC7.js.map +1 -0
- package/dist/{public-envelope-BW6OXORV.js → public-envelope-EJLVIFX7.js} +6 -5
- package/dist/public-envelope-EJLVIFX7.js.map +1 -0
- package/dist/query/index.d.ts +4 -3
- package/dist/query/index.js +24 -13
- package/dist/read-only-facade-CHCKSEPD.js +8 -0
- package/dist/read-only-facade-CHCKSEPD.js.map +1 -0
- package/dist/register-SBIX7TVV.js +23 -0
- package/dist/register-SBIX7TVV.js.map +1 -0
- package/dist/registry-3EQG6OOE.js +18 -0
- package/dist/registry-3EQG6OOE.js.map +1 -0
- package/dist/registry-CA327ACV.js +9 -0
- package/dist/registry-CA327ACV.js.map +1 -0
- package/dist/registry-E7OXOTSV.js +19 -0
- package/dist/registry-E7OXOTSV.js.map +1 -0
- package/dist/registry-VW6P6A3J.js +8 -0
- package/dist/registry-VW6P6A3J.js.map +1 -0
- package/dist/request-withdrawal-KAH2AAXC.js +31 -0
- package/dist/request-withdrawal-KAH2AAXC.js.map +1 -0
- package/dist/reveal-R3JLHMUF.js +38 -0
- package/dist/reveal-R3JLHMUF.js.map +1 -0
- package/dist/revoke-IXLOJ3IH.js +24 -0
- package/dist/revoke-IXLOJ3IH.js.map +1 -0
- package/dist/satellites/index.d.ts +4 -0
- package/dist/satellites/index.js +8 -0
- package/dist/satellites/index.js.map +1 -0
- package/dist/sealed-record/index.d.ts +68 -0
- package/dist/sealed-record/index.js +71 -0
- package/dist/sealed-record/index.js.map +1 -0
- package/dist/session/index.d.ts +5 -8
- package/dist/session/index.js +13 -5
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.d.ts +4 -7
- package/dist/shadow/index.js +4 -3
- package/dist/shadow/index.js.map +1 -1
- package/dist/signer-Y46N2GJ3.js +25 -0
- package/dist/signer-Y46N2GJ3.js.map +1 -0
- package/dist/snapshots/index.d.ts +5 -8
- package/dist/snapshots/index.js +19 -11
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-6ZDBTQT7.js → stale-Z7IW6RIL.js} +3 -2
- package/dist/stale-Z7IW6RIL.js.map +1 -0
- package/dist/storage-ADNP2UWI.js +23 -0
- package/dist/storage-ADNP2UWI.js.map +1 -0
- package/dist/store-coordination-provider-DTDMI6VL.js +142 -0
- package/dist/store-coordination-provider-DTDMI6VL.js.map +1 -0
- package/dist/subject-index-CyOgGMJL.d.ts +380 -0
- package/dist/sync/index.d.ts +3 -6
- package/dist/sync/index.js +13 -6
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.d.ts +46 -10
- package/dist/team/index.js +35 -18
- package/dist/tiers/index.d.ts +4 -0
- package/dist/tiers/index.js +39 -0
- package/dist/tiers/index.js.map +1 -0
- package/dist/to/index.d.ts +4 -0
- package/dist/to/index.js +16 -0
- package/dist/to/index.js.map +1 -0
- package/dist/transition-guard-DI-krBsZ.d.ts +165 -0
- package/dist/tx/index.d.ts +22 -9
- package/dist/tx/index.js +13 -8
- package/dist/tx/index.js.map +1 -1
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.js +1 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ulid-DRH25k3y.d.ts +66 -0
- package/dist/ulid-PTAIMDG4.js +10 -0
- package/dist/ulid-PTAIMDG4.js.map +1 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/index.js +7 -2
- package/dist/util/index.js.map +1 -1
- package/dist/validators-BUcli5Nh.d.ts +101 -0
- package/dist/vault-diff-Z2DUayMe.d.ts +147 -0
- package/dist/verify-JPF2YR5E.js +139 -0
- package/dist/verify-JPF2YR5E.js.map +1 -0
- package/dist/walk-XYA2O3LW.js +241 -0
- package/dist/walk-XYA2O3LW.js.map +1 -0
- package/dist/with/index.d.ts +37 -0
- package/dist/with/index.js +31 -0
- package/dist/with/index.js.map +1 -0
- package/dist/{with-materialized-view-BLkQxoQN.d.ts → with-materialized-view-BUmzlXue.d.ts} +1 -1
- package/dist/{with-overlayed-view-CRsSEwHR.d.ts → with-overlayed-view-m4FaXXTO.d.ts} +2 -3
- package/dist/with-rollup-DEKGI9vb.d.ts +47 -0
- package/dist/withdraw-accessible-WLV4MTEN.js +28 -0
- package/dist/withdraw-accessible-WLV4MTEN.js.map +1 -0
- package/dist/zod-HAJM7LMS.js +14763 -0
- package/dist/zod-HAJM7LMS.js.map +1 -0
- package/package.json +122 -202
- package/dist/aggregate/index.cjs.map +0 -1
- package/dist/aggregate/index.d.cts +0 -38
- package/dist/attestation/index.cjs +0 -305
- package/dist/attestation/index.cjs.map +0 -1
- package/dist/attestation/index.d.cts +0 -52
- package/dist/blobs/index.cjs +0 -1480
- package/dist/blobs/index.cjs.map +0 -1
- package/dist/blobs/index.d.cts +0 -46
- package/dist/bundle/index.cjs +0 -19264
- package/dist/bundle/index.cjs.map +0 -1
- package/dist/bundle/index.d.cts +0 -176
- package/dist/chunk-22DWZL57.js.map +0 -1
- package/dist/chunk-2GLDA55J.js.map +0 -1
- package/dist/chunk-2QR2PQTT.js.map +0 -1
- package/dist/chunk-2WUSG3IT.js.map +0 -1
- package/dist/chunk-3BFJOWSU.js.map +0 -1
- package/dist/chunk-3YPCK6JX.js.map +0 -1
- package/dist/chunk-53XBRIRT.js.map +0 -1
- package/dist/chunk-5T22KDPN.js.map +0 -1
- package/dist/chunk-5XHKQ56N.js +0 -340
- package/dist/chunk-5XHKQ56N.js.map +0 -1
- package/dist/chunk-6CME4UEK.js +0 -10329
- package/dist/chunk-6CME4UEK.js.map +0 -1
- package/dist/chunk-6STK5TQP.js +0 -139
- package/dist/chunk-6STK5TQP.js.map +0 -1
- package/dist/chunk-A3JMGXPG.js.map +0 -1
- package/dist/chunk-B6PB7JLN.js.map +0 -1
- package/dist/chunk-BVRYKATC.js.map +0 -1
- package/dist/chunk-DE6GKS6G.js +0 -79
- package/dist/chunk-DE6GKS6G.js.map +0 -1
- package/dist/chunk-DFMLEQZB.js.map +0 -1
- package/dist/chunk-DJHHA6XH.js.map +0 -1
- package/dist/chunk-DL3HWOQ5.js.map +0 -1
- package/dist/chunk-DONMZAD2.js.map +0 -1
- package/dist/chunk-EMIGCR7X.js.map +0 -1
- package/dist/chunk-F3GDRNUT.js.map +0 -1
- package/dist/chunk-FZU343FL.js.map +0 -1
- package/dist/chunk-H2X3ISXG.js.map +0 -1
- package/dist/chunk-HNRHLRDC.js.map +0 -1
- package/dist/chunk-I5FOWO4J.js.map +0 -1
- package/dist/chunk-J66GRPNH.js.map +0 -1
- package/dist/chunk-JWRVQKRZ.js.map +0 -1
- package/dist/chunk-K3DK3NU5.js.map +0 -1
- package/dist/chunk-ML236QKC.js.map +0 -1
- package/dist/chunk-NONAAENK.js.map +0 -1
- package/dist/chunk-O3VZPBZG.js.map +0 -1
- package/dist/chunk-OIF6LZUR.js.map +0 -1
- package/dist/chunk-OQ6PIGHA.js +0 -19
- package/dist/chunk-OQ6PIGHA.js.map +0 -1
- package/dist/chunk-PE2FR4J3.js.map +0 -1
- package/dist/chunk-PP6W64Y3.js.map +0 -1
- package/dist/chunk-PX35GA7L.js.map +0 -1
- package/dist/chunk-QEILDE6R.js +0 -793
- package/dist/chunk-QEILDE6R.js.map +0 -1
- package/dist/chunk-QODLLGQ7.js.map +0 -1
- package/dist/chunk-RAZ4OVLL.js +0 -51
- package/dist/chunk-RAZ4OVLL.js.map +0 -1
- package/dist/chunk-SYMWGEET.js.map +0 -1
- package/dist/chunk-T7JEBOGN.js.map +0 -1
- package/dist/chunk-TFBP23BX.js.map +0 -1
- package/dist/chunk-TV3YZ35S.js.map +0 -1
- package/dist/chunk-U26HQ6KJ.js.map +0 -1
- package/dist/chunk-UF3BUNQZ.js +0 -1
- package/dist/chunk-UMLVJTYV.js +0 -20
- package/dist/chunk-UMLVJTYV.js.map +0 -1
- package/dist/chunk-VTKGMEPP.js.map +0 -1
- package/dist/chunk-W6EQLGMB.js +0 -100
- package/dist/chunk-W6EQLGMB.js.map +0 -1
- package/dist/chunk-WIRRPTFH.js +0 -17
- package/dist/chunk-WIRRPTFH.js.map +0 -1
- package/dist/chunk-WPLVTJ5D.js.map +0 -1
- package/dist/chunk-XJFLDA7A.js.map +0 -1
- package/dist/chunk-Z6FNBOTC.js.map +0 -1
- package/dist/chunk-ZYWZWG6G.js.map +0 -1
- package/dist/consent/index.cjs +0 -204
- package/dist/consent/index.cjs.map +0 -1
- package/dist/consent/index.d.cts +0 -25
- package/dist/crdt/index.cjs +0 -152
- package/dist/crdt/index.cjs.map +0 -1
- package/dist/crdt/index.d.cts +0 -30
- package/dist/crypto-HTZ4FJOP.js +0 -44
- package/dist/delegation-RI54P6I5.js +0 -17
- package/dist/derivations/index.cjs +0 -351
- package/dist/derivations/index.cjs.map +0 -1
- package/dist/derivations/index.d.cts +0 -72
- package/dist/dev-unlock-BIoEFbwm.d.cts +0 -263
- package/dist/executor-5PNY7LGW.js +0 -8
- package/dist/executor-B4QIYGZX.js +0 -8
- package/dist/executor-BWXXDQ7K.js +0 -11
- package/dist/fanout-sidecar-OKPMMPLG.js +0 -51
- package/dist/fanout-sidecar-OKPMMPLG.js.map +0 -1
- package/dist/guards/index.cjs +0 -322
- package/dist/guards/index.cjs.map +0 -1
- package/dist/guards/index.d.cts +0 -31
- package/dist/hash-HJqD14vS.d.ts +0 -63
- package/dist/history/index.cjs +0 -1222
- package/dist/history/index.cjs.map +0 -1
- package/dist/history/index.d.cts +0 -63
- package/dist/i18n/index.cjs +0 -1100
- package/dist/i18n/index.cjs.map +0 -1
- package/dist/i18n/index.d.cts +0 -39
- package/dist/index-4fBVt8j9.d.cts +0 -2387
- package/dist/index-D8I_pyJD.d.ts +0 -2387
- package/dist/index.cjs +0 -24487
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -776
- package/dist/indexing/index.cjs +0 -742
- package/dist/indexing/index.cjs.map +0 -1
- package/dist/indexing/index.d.cts +0 -36
- package/dist/issue-VGDPP4B5.js +0 -12
- package/dist/lazy-builder-7tIpFyWN.d.ts +0 -304
- package/dist/lazy-builder-wY4pMCEe.d.cts +0 -304
- package/dist/ledger-TMRZYNVJ.js +0 -33
- package/dist/materialized-views/index.cjs +0 -854
- package/dist/materialized-views/index.cjs.map +0 -1
- package/dist/materialized-views/index.d.cts +0 -186
- package/dist/mime-magic-CBBSOkjm.d.cts +0 -50
- package/dist/mime-magic-CBBSOkjm.d.ts +0 -50
- package/dist/noydb-G725ZSZG.js +0 -34
- package/dist/overlay-views/index.cjs +0 -359
- package/dist/overlay-views/index.cjs.map +0 -1
- package/dist/overlay-views/index.d.cts +0 -82
- package/dist/periods/index.cjs +0 -1041
- package/dist/periods/index.cjs.map +0 -1
- package/dist/periods/index.d.cts +0 -22
- package/dist/predicate-BSAGEyu5.d.cts +0 -209
- package/dist/predicate-BSAGEyu5.d.ts +0 -209
- package/dist/query/index.cjs +0 -2375
- package/dist/query/index.cjs.map +0 -1
- package/dist/query/index.d.cts +0 -3
- package/dist/read-only-facade-ITU6L7BL.js +0 -7
- package/dist/registry-3QP3YKQS.js +0 -8
- package/dist/registry-DKEXOJVO.js +0 -7
- package/dist/registry-OJIOSBV6.js +0 -10
- package/dist/registry-USRVT6YF.js +0 -8
- package/dist/revoke-JCC7N56X.js +0 -17
- package/dist/session/index.cjs +0 -495
- package/dist/session/index.cjs.map +0 -1
- package/dist/session/index.d.cts +0 -46
- package/dist/shadow/index.cjs +0 -133
- package/dist/shadow/index.cjs.map +0 -1
- package/dist/shadow/index.d.cts +0 -17
- package/dist/signer-72QAUSVW.js +0 -18
- package/dist/snapshots/index.cjs +0 -937
- package/dist/snapshots/index.cjs.map +0 -1
- package/dist/snapshots/index.d.cts +0 -28
- package/dist/store/index.cjs +0 -1083
- package/dist/store/index.cjs.map +0 -1
- package/dist/store/index.d.cts +0 -492
- package/dist/store/index.d.ts +0 -492
- package/dist/store/index.js +0 -37
- package/dist/strategy-BSxFXGzb.d.cts +0 -110
- package/dist/strategy-BSxFXGzb.d.ts +0 -110
- package/dist/strategy-DSTrsZ8t.d.cts +0 -601
- package/dist/strategy-DSTrsZ8t.d.ts +0 -601
- package/dist/sync/index.cjs +0 -1062
- package/dist/sync/index.cjs.map +0 -1
- package/dist/sync/index.d.cts +0 -43
- package/dist/team/index.cjs +0 -2798
- package/dist/team/index.cjs.map +0 -1
- package/dist/team/index.d.cts +0 -118
- package/dist/tx/index.cjs +0 -544
- package/dist/tx/index.cjs.map +0 -1
- package/dist/tx/index.d.cts +0 -21
- package/dist/types-Df28QFKb.d.ts +0 -12818
- package/dist/types-DyXYr8rE.d.cts +0 -12818
- package/dist/ulid-COREQ2RQ.js +0 -9
- package/dist/ulid-Drr7ykr6.d.cts +0 -603
- package/dist/util/index.cjs +0 -230
- package/dist/util/index.cjs.map +0 -1
- package/dist/util/index.d.cts +0 -77
- package/dist/with-derivation-DFnFByiQ.d.ts +0 -13
- package/dist/with-derivation-DU3Sjazm.d.cts +0 -13
- package/dist/with-guard-ByyxmEe7.d.cts +0 -18
- package/dist/with-guard-qube6BMI.d.ts +0 -18
- package/dist/with-materialized-view-BmEToIR1.d.cts +0 -27
- package/dist/with-overlayed-view-BMsQQbWm.d.cts +0 -13
- /package/dist/{chunk-UF3BUNQZ.js.map → api-TX2EX2FX.js.map} +0 -0
- /package/dist/{store → as}/index.js.map +0 -0
- /package/dist/{crypto-HTZ4FJOP.js.map → at/index.js.map} +0 -0
- /package/dist/{delegation-RI54P6I5.js.map → by/index.js.map} +0 -0
- /package/dist/{executor-5PNY7LGW.js.map → cargo/index.js.map} +0 -0
- /package/dist/{executor-B4QIYGZX.js.map → chunk-CHFZDSE4.js.map} +0 -0
- /package/dist/{executor-BWXXDQ7K.js.map → chunk-GHVIKOHT.js.map} +0 -0
- /package/dist/{issue-VGDPP4B5.js.map → chunk-PZ5AY32C.js.map} +0 -0
- /package/dist/{ledger-TMRZYNVJ.js.map → classified/index.js.map} +0 -0
- /package/dist/{noydb-G725ZSZG.js.map → collection-facade-LVD22JLM.js.map} +0 -0
- /package/dist/{public-envelope-BW6OXORV.js.map → computed-EXDMQODG.js.map} +0 -0
- /package/dist/{read-only-facade-ITU6L7BL.js.map → delegation-BJP73GAP.js.map} +0 -0
- /package/dist/{registry-3QP3YKQS.js.map → derive-BME7HDWO.js.map} +0 -0
- /package/dist/{registry-DKEXOJVO.js.map → enclave-NHORSWSF.js.map} +0 -0
- /package/dist/{registry-OJIOSBV6.js.map → executor-FE6X4LFX.js.map} +0 -0
- /package/dist/{registry-USRVT6YF.js.map → executor-KSHKRJXP.js.map} +0 -0
- /package/dist/{revoke-JCC7N56X.js.map → executor-ZHTJJICG.js.map} +0 -0
- /package/dist/{signer-72QAUSVW.js.map → export-accessible-DACHM5VT.js.map} +0 -0
- /package/dist/{stale-6ZDBTQT7.js.map → extract-partition-RNENZZ4T.js.map} +0 -0
- /package/dist/{ulid-COREQ2RQ.js.map → find-BNGBJNKP.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/with-formula/materialized-views/with-materialized-view.ts"],"sourcesContent":["import { MaterializedViewConfigError, ValidationError } from '../../kernel/errors.js'\nimport type { MaterializedViewStrategy, MaterializedViewStrategyHandle } from './types.js'\n\n/**\n * Register a materialized view: a declared query whose result is\n * persisted as a queryable collection and kept fresh as sources\n * change. Writes go through the standard `Collection.put` pipeline;\n * refresh-driven deletes route through `Collection._internalDelete` so\n * user `onDelete` guards on the output collection aren't tripped by\n * housekeeping.\n *\n * Two registration modes:\n * - **single-source** — declare `query: (db) => Query<TRow>`; the\n * dependency analyzer derives source collections from the plan.\n * - **UNION** — declare `unionSources: [{ collection, map }, ...]`\n * plus optional `groupBy` + `aggregate`; the executor reads each\n * arm, maps to the unified row shape, concatenates, then groups\n * and aggregates.\n *\n * The two modes are mutually exclusive — exactly one of `query` /\n * `unionSources` must be set at registration time.\n *\n * See docs/superpowers/specs/2026-05-20-dim14-mv-v2-design.md (single-source v2)\n * and docs/superpowers/specs/2026-05-21-dim14-mv-multikey-and-union.md (UNION).\n */\nexport function withMaterializedView<TRow extends Record<string, unknown>>(\n spec: MaterializedViewStrategy<TRow>,\n): MaterializedViewStrategyHandle {\n if (!spec.name || spec.name.length === 0) {\n throw new ValidationError('withMaterializedView: name is required')\n }\n // Mutual exclusion: query and unionSources cannot coexist.\n if (spec.query && spec.unionSources) {\n throw new MaterializedViewConfigError(\n 'query and unionSources are mutually exclusive — pick one',\n )\n }\n // Strategy must declare one of the two.\n if (!spec.query && !spec.unionSources) {\n throw new MaterializedViewConfigError(\n 'strategy must declare either query or unionSources',\n )\n }\n if (spec.query !== undefined && typeof spec.query !== 'function') {\n throw new ValidationError('withMaterializedView: query must be a function returning a Query<T>')\n }\n // UNION-form invariants.\n if (spec.unionSources) {\n // A single arm is a deliberate shape: map→group→aggregate over\n // ONE collection with a COMPUTED bucket key (e.g. month sliced from a\n // date field) — something the query form's stored-field groupBy cannot\n // express. The executor and dependency analyzer are arm-count-agnostic.\n if (spec.unionSources.length < 1) {\n throw new MaterializedViewConfigError(\n 'unionSources requires at least 1 source collection',\n )\n }\n const seen = new Set<string>()\n for (const s of spec.unionSources) {\n if (typeof s?.collection !== 'string' || s.collection.length === 0) {\n throw new MaterializedViewConfigError(\n 'each unionSources entry must declare a non-empty `collection` string',\n )\n }\n if (typeof s.map !== 'function') {\n throw new MaterializedViewConfigError(\n `unionSources entry for \"${s.collection}\" is missing a \\`map\\` function`,\n )\n }\n if (seen.has(s.collection)) {\n throw new MaterializedViewConfigError(\n `unionSources must reference distinct collections (duplicate: \"${s.collection}\")`,\n )\n }\n seen.add(s.collection)\n }\n if (Array.isArray(spec.groupBy) && spec.groupBy.length === 0) {\n throw new MaterializedViewConfigError(\n `withMaterializedView \"${spec.name}\": groupBy must not be an empty array — omit it or provide at least one field name`,\n )\n }\n if (spec.aggregate && !spec.groupBy) {\n throw new MaterializedViewConfigError(\n `withMaterializedView \"${spec.name}\": UNION strategy with aggregate requires groupBy — `\n + `use groupBy to declare the bucketing keys, or remove aggregate for a pure dedup MV`,\n )\n }\n // `moneyFields` only has meaning when there's an aggregate to\n // money-rewrite — it keys reducer outputs, so declaring it without\n // `aggregate` is a no-op config mistake.\n if (spec.moneyFields && !spec.aggregate) {\n throw new MaterializedViewConfigError(\n `withMaterializedView \"${spec.name}\": moneyFields requires aggregate — `\n + `moneyFields rewrites sum/min/max reducers over money output fields, `\n + `so it is meaningless without an aggregate spec`,\n )\n }\n // Per-arm joins resolve right-side collections that the union\n // dependency set (built from arm `collection`s alone) does NOT\n // include. The consumer must list those right-side collections in\n // `sources` so writes to them trigger MV refresh.\n if (spec.unionSources.some(s => s.join && s.join.length > 0) && (!spec.sources || spec.sources.length === 0)) {\n throw new MaterializedViewConfigError(\n `withMaterializedView \"${spec.name}\": a unionSources arm declares join(s) but `\n + `no \\`sources\\` are listed — declare sources: [...] with the right-side `\n + `(join-target) collection names so writes to them trigger MV refresh`,\n )\n }\n if (spec.predicates) {\n throw new MaterializedViewConfigError(\n `withMaterializedView \"${spec.name}\": predicates are not supported on UNION strategies — `\n + `UNION mode does not use a Query<T> chain, so .wherePredicate() cannot fire. `\n + `Use the query() form, or open an issue if per-arm predicates are needed`,\n )\n }\n }\n // i18nLocale + i18nFields drive compute-time i18n resolution of group-key\n // i18nText fields before bucketing — UNION mode (resolved on the unified rows)\n // AND query mode (resolved in GroupedAggregation.run before groupAndReduce).\n // i18nLocale without i18nFields cannot resolve anything, so reject it early.\n if (spec.i18nLocale !== undefined && spec.i18nFields === undefined) {\n throw new MaterializedViewConfigError(\n `withMaterializedView \"${spec.name}\": i18nLocale requires i18nFields — `\n + `declare the i18nText descriptors of the group-key fields so they can be `\n + `resolved at the mv layer before bucketing.`,\n )\n }\n if (typeof spec.rowKey !== 'function') {\n throw new ValidationError('withMaterializedView: rowKey is required (no default; see spec § Type surface)')\n }\n if (spec.refresh !== 'eager' && spec.refresh !== 'lazy' && spec.refresh !== 'manual') {\n throw new ValidationError(\n `withMaterializedView: refresh must be 'eager' | 'lazy' | 'manual', got \"${String(spec.refresh)}\"`,\n )\n }\n return {\n __noydb_strategy: 'materialized-view',\n spec,\n }\n}\n"],"mappings":";;;;;;AAyBO,SAAS,qBACd,MACgC;AAChC,MAAI,CAAC,KAAK,QAAQ,KAAK,KAAK,WAAW,GAAG;AACxC,UAAM,IAAI,gBAAgB,wCAAwC;AAAA,EACpE;AAEA,MAAI,KAAK,SAAS,KAAK,cAAc;AACnC,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,MAAI,CAAC,KAAK,SAAS,CAAC,KAAK,cAAc;AACrC,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,MAAI,KAAK,UAAU,UAAa,OAAO,KAAK,UAAU,YAAY;AAChE,UAAM,IAAI,gBAAgB,qEAAqE;AAAA,EACjG;AAEA,MAAI,KAAK,cAAc;AAKrB,QAAI,KAAK,aAAa,SAAS,GAAG;AAChC,YAAM,IAAI;AAAA,QACR;AAAA,MACF;AAAA,IACF;AACA,UAAM,OAAO,oBAAI,IAAY;AAC7B,eAAW,KAAK,KAAK,cAAc;AACjC,UAAI,OAAO,GAAG,eAAe,YAAY,EAAE,WAAW,WAAW,GAAG;AAClE,cAAM,IAAI;AAAA,UACR;AAAA,QACF;AAAA,MACF;AACA,UAAI,OAAO,EAAE,QAAQ,YAAY;AAC/B,cAAM,IAAI;AAAA,UACR,2BAA2B,EAAE,UAAU;AAAA,QACzC;AAAA,MACF;AACA,UAAI,KAAK,IAAI,EAAE,UAAU,GAAG;AAC1B,cAAM,IAAI;AAAA,UACR,iEAAiE,EAAE,UAAU;AAAA,QAC/E;AAAA,MACF;AACA,WAAK,IAAI,EAAE,UAAU;AAAA,IACvB;AACA,QAAI,MAAM,QAAQ,KAAK,OAAO,KAAK,KAAK,QAAQ,WAAW,GAAG;AAC5D,YAAM,IAAI;AAAA,QACR,yBAAyB,KAAK,IAAI;AAAA,MACpC;AAAA,IACF;AACA,QAAI,KAAK,aAAa,CAAC,KAAK,SAAS;AACnC,YAAM,IAAI;AAAA,QACR,yBAAyB,KAAK,IAAI;AAAA,MAEpC;AAAA,IACF;AAIA,QAAI,KAAK,eAAe,CAAC,KAAK,WAAW;AACvC,YAAM,IAAI;AAAA,QACR,yBAAyB,KAAK,IAAI;AAAA,MAGpC;AAAA,IACF;AAKA,QAAI,KAAK,aAAa,KAAK,OAAK,EAAE,QAAQ,EAAE,KAAK,SAAS,CAAC,MAAM,CAAC,KAAK,WAAW,KAAK,QAAQ,WAAW,IAAI;AAC5G,YAAM,IAAI;AAAA,QACR,yBAAyB,KAAK,IAAI;AAAA,MAGpC;AAAA,IACF;AACA,QAAI,KAAK,YAAY;AACnB,YAAM,IAAI;AAAA,QACR,yBAAyB,KAAK,IAAI;AAAA,MAGpC;AAAA,IACF;AAAA,EACF;AAKA,MAAI,KAAK,eAAe,UAAa,KAAK,eAAe,QAAW;AAClE,UAAM,IAAI;AAAA,MACR,yBAAyB,KAAK,IAAI;AAAA,IAGpC;AAAA,EACF;AACA,MAAI,OAAO,KAAK,WAAW,YAAY;AACrC,UAAM,IAAI,gBAAgB,mFAAgF;AAAA,EAC5G;AACA,MAAI,KAAK,YAAY,WAAW,KAAK,YAAY,UAAU,KAAK,YAAY,UAAU;AACpF,UAAM,IAAI;AAAA,MACR,2EAA2E,OAAO,KAAK,OAAO,CAAC;AAAA,IACjG;AAAA,EACF;AACA,SAAO;AAAA,IACL,kBAAkB;AAAA,IAClB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/kernel/constants.ts
|
|
2
|
+
var STATE_VAULT_NAME = "__noydb_state__";
|
|
3
|
+
var USER_ENVELOPE_MAX_BYTES = 64 * 1024;
|
|
4
|
+
var USER_ENVELOPE_COLLECTION = "_users";
|
|
5
|
+
|
|
6
|
+
// src/kernel/errors.ts
|
|
2
7
|
var NoydbError = class extends Error {
|
|
3
8
|
/** Machine-readable error code. Stable across library versions. */
|
|
4
9
|
code;
|
|
@@ -8,6 +13,21 @@ var NoydbError = class extends Error {
|
|
|
8
13
|
this.code = code;
|
|
9
14
|
}
|
|
10
15
|
};
|
|
16
|
+
var DebugPlaintextError = class extends NoydbError {
|
|
17
|
+
constructor(message = "debugPlaintext requires encrypt: false") {
|
|
18
|
+
super("DEBUG_PLAINTEXT_REQUIRES_UNENCRYPTED", message);
|
|
19
|
+
this.name = "DebugPlaintextError";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var DebugReservedFieldError = class extends NoydbError {
|
|
23
|
+
constructor(collection, field) {
|
|
24
|
+
super(
|
|
25
|
+
"DEBUG_RESERVED_FIELD",
|
|
26
|
+
`Record in "${collection}" has reserved field "${field}": the _ prefix is reserved under debugPlaintext mode`
|
|
27
|
+
);
|
|
28
|
+
this.name = "DebugReservedFieldError";
|
|
29
|
+
}
|
|
30
|
+
};
|
|
11
31
|
var DecryptionError = class extends NoydbError {
|
|
12
32
|
constructor(message = "Decryption failed") {
|
|
13
33
|
super("DECRYPTION_FAILED", message);
|
|
@@ -137,6 +157,18 @@ var PrivilegeEscalationError = class extends NoydbError {
|
|
|
137
157
|
this.offendingCollection = offendingCollection;
|
|
138
158
|
}
|
|
139
159
|
};
|
|
160
|
+
var ReservedVaultNameError = class extends NoydbError {
|
|
161
|
+
/** The rejected vault name. */
|
|
162
|
+
vaultName;
|
|
163
|
+
constructor(vaultName) {
|
|
164
|
+
super(
|
|
165
|
+
"RESERVED_VAULT_NAME",
|
|
166
|
+
`"${vaultName}" is a reserved internal vault name and cannot be used as a group name or partition key`
|
|
167
|
+
);
|
|
168
|
+
this.name = "ReservedVaultNameError";
|
|
169
|
+
this.vaultName = vaultName;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
140
172
|
var PeriodClosedError = class extends NoydbError {
|
|
141
173
|
periodName;
|
|
142
174
|
endDate;
|
|
@@ -182,6 +214,23 @@ var FieldFrozenError = class extends NoydbError {
|
|
|
182
214
|
this.fields = fields;
|
|
183
215
|
}
|
|
184
216
|
};
|
|
217
|
+
var IllegalTransitionError = class extends NoydbError {
|
|
218
|
+
collection;
|
|
219
|
+
id;
|
|
220
|
+
from;
|
|
221
|
+
to;
|
|
222
|
+
constructor(collection, id, from, to) {
|
|
223
|
+
super(
|
|
224
|
+
"ILLEGAL_TRANSITION",
|
|
225
|
+
`Cannot transition ${collection}/${id} from "${from}" to "${to}" \u2014 not a declared arc. Use withTransactions({ amendment: true, reason }) with admin/owner role to override.`
|
|
226
|
+
);
|
|
227
|
+
this.name = "IllegalTransitionError";
|
|
228
|
+
this.collection = collection;
|
|
229
|
+
this.id = id;
|
|
230
|
+
this.from = from;
|
|
231
|
+
this.to = to;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
185
234
|
var InvariantError = class extends NoydbError {
|
|
186
235
|
constructor(message) {
|
|
187
236
|
super("INVARIANT_VIOLATED", message);
|
|
@@ -289,15 +338,55 @@ var LedgerContentionError = class extends NoydbError {
|
|
|
289
338
|
this.attempts = attempts;
|
|
290
339
|
}
|
|
291
340
|
};
|
|
292
|
-
var
|
|
341
|
+
var SequenceContentionError = class extends NoydbError {
|
|
342
|
+
sequence;
|
|
343
|
+
attempts;
|
|
344
|
+
constructor(sequence, attempts) {
|
|
345
|
+
super(
|
|
346
|
+
"SEQUENCE_CONTENTION",
|
|
347
|
+
`vault.sequence("${sequence}").next(): failed to allocate after ${attempts} optimistic-CAS retries`
|
|
348
|
+
);
|
|
349
|
+
this.name = "SequenceContentionError";
|
|
350
|
+
this.sequence = sequence;
|
|
351
|
+
this.attempts = attempts;
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
var SequenceOfflineError = class extends NoydbError {
|
|
355
|
+
constructor() {
|
|
356
|
+
super(
|
|
357
|
+
"SEQUENCE_OFFLINE",
|
|
358
|
+
"vault.sequence().next() requires an online CAS-capable store (capabilities.casAtomic). Gap-free numbering cannot be serialized offline."
|
|
359
|
+
);
|
|
360
|
+
this.name = "SequenceOfflineError";
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
var SequenceNotEnabledError = class extends NoydbError {
|
|
364
|
+
constructor(message = "vault.sequence() requires the sequence capability. Pass `sequenceStrategy: withSequence()` to createNoydb().") {
|
|
365
|
+
super("SEQUENCE_NOT_ENABLED", message);
|
|
366
|
+
this.name = "SequenceNotEnabledError";
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
var NumberingUncertaintyError = class extends NoydbError {
|
|
370
|
+
series;
|
|
371
|
+
constructor(series) {
|
|
372
|
+
super(
|
|
373
|
+
"NUMBERING_UNCERTAINTY",
|
|
374
|
+
`Deferred numbering for series "${series}" cannot run: the store does not expose getStoreTime() (capabilities.serverWriteTime). Use a CAS sequence or a store with serverWriteTime.`
|
|
375
|
+
);
|
|
376
|
+
this.name = "NumberingUncertaintyError";
|
|
377
|
+
this.series = series;
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
var PodVersionConflictError = class extends NoydbError {
|
|
293
381
|
/** The bundle handle of the newer remote version that rejected the push. */
|
|
294
382
|
remoteVersion;
|
|
295
383
|
constructor(remoteVersion, message = "Bundle version conflict \u2014 remote has been updated") {
|
|
296
384
|
super("BUNDLE_VERSION_CONFLICT", message);
|
|
297
|
-
this.name = "
|
|
385
|
+
this.name = "PodVersionConflictError";
|
|
298
386
|
this.remoteVersion = remoteVersion;
|
|
299
387
|
}
|
|
300
388
|
};
|
|
389
|
+
var BundleVersionConflictError = PodVersionConflictError;
|
|
301
390
|
var NetworkError = class extends NoydbError {
|
|
302
391
|
constructor(message = "Network error") {
|
|
303
392
|
super("NETWORK_ERROR", message);
|
|
@@ -395,6 +484,31 @@ var IndexRequiredError = class extends NoydbError {
|
|
|
395
484
|
this.missingFields = [...args.missingFields];
|
|
396
485
|
}
|
|
397
486
|
};
|
|
487
|
+
var UniqueConstraintError = class extends NoydbError {
|
|
488
|
+
collection;
|
|
489
|
+
recordId;
|
|
490
|
+
fields;
|
|
491
|
+
conflictingId;
|
|
492
|
+
constructor(collection, recordId, fields, conflictingId) {
|
|
493
|
+
super(
|
|
494
|
+
"UNIQUE_CONSTRAINT",
|
|
495
|
+
`Unique constraint on ${collection}.[${fields.join(", ")}] violated: record "${recordId}" duplicates a value already held by "${conflictingId}".`
|
|
496
|
+
);
|
|
497
|
+
this.name = "UniqueConstraintError";
|
|
498
|
+
this.collection = collection;
|
|
499
|
+
this.recordId = recordId;
|
|
500
|
+
this.fields = fields;
|
|
501
|
+
this.conflictingId = conflictingId;
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
var UnsupportedIndexOptionError = class extends NoydbError {
|
|
505
|
+
option;
|
|
506
|
+
constructor(option, message) {
|
|
507
|
+
super("UNSUPPORTED_INDEX_OPTION", message);
|
|
508
|
+
this.name = "UnsupportedIndexOptionError";
|
|
509
|
+
this.option = option;
|
|
510
|
+
}
|
|
511
|
+
};
|
|
398
512
|
var IndexWriteFailureError = class extends NoydbError {
|
|
399
513
|
recordId;
|
|
400
514
|
field;
|
|
@@ -412,6 +526,17 @@ var IndexWriteFailureError = class extends NoydbError {
|
|
|
412
526
|
this.cause = args.cause;
|
|
413
527
|
}
|
|
414
528
|
};
|
|
529
|
+
var FieldNotQueryableError = class extends NoydbError {
|
|
530
|
+
field;
|
|
531
|
+
constructor(field) {
|
|
532
|
+
super(
|
|
533
|
+
"FIELD_NOT_QUERYABLE",
|
|
534
|
+
`Field "${field}" is not queryable \u2014 its Via feature declares queryable: 'none'.`
|
|
535
|
+
);
|
|
536
|
+
this.name = "FieldNotQueryableError";
|
|
537
|
+
this.field = field;
|
|
538
|
+
}
|
|
539
|
+
};
|
|
415
540
|
var BundleIntegrityError = class extends NoydbError {
|
|
416
541
|
constructor(message) {
|
|
417
542
|
super("BUNDLE_INTEGRITY", `.noydb bundle integrity check failed: ${message}`);
|
|
@@ -486,6 +611,24 @@ var DictKeyInUseError = class extends NoydbError {
|
|
|
486
611
|
this.count = count;
|
|
487
612
|
}
|
|
488
613
|
};
|
|
614
|
+
var RestrictRefUnresolvableError = class extends NoydbError {
|
|
615
|
+
/** The dimension (backing collection/dictionary) whose row's compare-key was unresolvable. */
|
|
616
|
+
dimension;
|
|
617
|
+
/** The backing row's key (its PUT-id) that was being deleted/forgotten. */
|
|
618
|
+
key;
|
|
619
|
+
/** The unresolvable restrict edge, formatted `"collection.field"`. */
|
|
620
|
+
referencing;
|
|
621
|
+
constructor(dimension, key, referencing) {
|
|
622
|
+
super(
|
|
623
|
+
"RESTRICT_REF_UNRESOLVABLE",
|
|
624
|
+
`Cannot delete "${dimension}" key "${key}": the restrict-mode reference from "${referencing}" could not be resolved (its compare-key is unreadable on the backing row). Refusing to delete \u2014 cannot prove no references exist.`
|
|
625
|
+
);
|
|
626
|
+
this.name = "RestrictRefUnresolvableError";
|
|
627
|
+
this.dimension = dimension;
|
|
628
|
+
this.key = key;
|
|
629
|
+
this.referencing = referencing;
|
|
630
|
+
}
|
|
631
|
+
};
|
|
489
632
|
var MissingTranslationError = class extends NoydbError {
|
|
490
633
|
/** The field name whose translation(s) are missing. */
|
|
491
634
|
field;
|
|
@@ -534,6 +677,54 @@ var ScriptViolationError = class extends NoydbError {
|
|
|
534
677
|
this.sample = sample;
|
|
535
678
|
}
|
|
536
679
|
};
|
|
680
|
+
var StaticDictReadonlyError = class extends NoydbError {
|
|
681
|
+
/** The static dictionary name that was the target of the mutation. */
|
|
682
|
+
dictionaryName;
|
|
683
|
+
constructor(dictionaryName) {
|
|
684
|
+
super(
|
|
685
|
+
"STATIC_DICT_READONLY",
|
|
686
|
+
`Dictionary "${dictionaryName}" is a staticDict \u2014 its labels are code constants with no mutation surface. put/putAll/rename/delete are not supported; change the label in the staticDict() table and redeploy.`
|
|
687
|
+
);
|
|
688
|
+
this.name = "StaticDictReadonlyError";
|
|
689
|
+
this.dictionaryName = dictionaryName;
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
var UnknownDictCodeError = class extends NoydbError {
|
|
693
|
+
/** The static dictionary name. */
|
|
694
|
+
dictionaryName;
|
|
695
|
+
/** The field that carried the unknown code. */
|
|
696
|
+
field;
|
|
697
|
+
/** The offending code value. */
|
|
698
|
+
code;
|
|
699
|
+
constructor(dictionaryName, field, code) {
|
|
700
|
+
super(
|
|
701
|
+
"UNKNOWN_DICT_CODE",
|
|
702
|
+
`Field "${field}": code "${code}" is not a known key of staticDict "${dictionaryName}". Use a declared code, or pass { validateCodes: false } on the descriptor to allow open codes.`
|
|
703
|
+
);
|
|
704
|
+
this.name = "UnknownDictCodeError";
|
|
705
|
+
this.dictionaryName = dictionaryName;
|
|
706
|
+
this.field = field;
|
|
707
|
+
this.code = code;
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
var UnknownLookupKeyError = class extends NoydbError {
|
|
711
|
+
/** The dimension (dictionary/target collection) name. */
|
|
712
|
+
dimension;
|
|
713
|
+
/** The field that carried the unknown key. */
|
|
714
|
+
field;
|
|
715
|
+
/** The offending key value. */
|
|
716
|
+
key;
|
|
717
|
+
constructor(dimension, field, key) {
|
|
718
|
+
super(
|
|
719
|
+
"UNKNOWN_LOOKUP_KEY",
|
|
720
|
+
`Field "${field}": key "${key}" is not a known member of the "${dimension}" lookup vocabulary (closed). Use a declared/existing key, or declare { vocabulary: 'open' } to allow unknown keys.`
|
|
721
|
+
);
|
|
722
|
+
this.name = "UnknownLookupKeyError";
|
|
723
|
+
this.dimension = dimension;
|
|
724
|
+
this.field = field;
|
|
725
|
+
this.key = key;
|
|
726
|
+
}
|
|
727
|
+
};
|
|
537
728
|
var TranslatorNotConfiguredError = class extends NoydbError {
|
|
538
729
|
/** The field that requested auto-translation. */
|
|
539
730
|
field;
|
|
@@ -593,6 +784,60 @@ var AttestationError = class extends NoydbError {
|
|
|
593
784
|
this.name = "AttestationError";
|
|
594
785
|
}
|
|
595
786
|
};
|
|
787
|
+
var AttestationNotEnabledError = class extends NoydbError {
|
|
788
|
+
constructor(message = 'Attestation requires the attestation capability. Pass `attestationStrategy: withAttestation()` from "@noy-db/hub/attestation" to createNoydb().') {
|
|
789
|
+
super("ATTESTATION_NOT_ENABLED", message);
|
|
790
|
+
this.name = "AttestationNotEnabledError";
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
var ClassifiedNotEnabledError = class extends NoydbError {
|
|
794
|
+
constructor(message = 'reveal() requires the classified capability. Pass `classifiedStrategy: withClassified()` from "@noy-db/hub/classified" to createNoydb().') {
|
|
795
|
+
super("CLASSIFIED_NOT_ENABLED", message);
|
|
796
|
+
this.name = "ClassifiedNotEnabledError";
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
var TiersNotEnabledError = class extends NoydbError {
|
|
800
|
+
constructor(message = 'Hierarchical tiers require the tiers capability. Pass `tiersStrategy: withTiers()` from "@noy-db/hub/tiers" to createNoydb().') {
|
|
801
|
+
super("TIERS_NOT_ENABLED", message);
|
|
802
|
+
this.name = "TiersNotEnabledError";
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
var SealedRecordNotEnabledError = class extends NoydbError {
|
|
806
|
+
constructor(message = 'Record-scoped CEK sealing requires the sealed-record capability. Pass `sealedRecordStrategy: withSealedRecord()` from "@noy-db/hub/sealed-record" to createNoydb().') {
|
|
807
|
+
super("SEALED_RECORD_NOT_ENABLED", message);
|
|
808
|
+
this.name = "SealedRecordNotEnabledError";
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
var PortabilityNotEnabledError = class extends NoydbError {
|
|
812
|
+
constructor(message = 'Data portability (export/withdrawal) requires the portability capability. Pass `portabilityStrategy: withPortability()` from "@noy-db/hub/portability" to createNoydb().') {
|
|
813
|
+
super("PORTABILITY_NOT_ENABLED", message);
|
|
814
|
+
this.name = "PortabilityNotEnabledError";
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
var CustodyNotEnabledError = class extends NoydbError {
|
|
818
|
+
constructor(message = "Sovereign custody (grant/revoke custodian, liberate) requires the custody capability. Pass `custodyStrategy: withCustody()` to createNoydb().") {
|
|
819
|
+
super("CUSTODY_NOT_ENABLED", message);
|
|
820
|
+
this.name = "CustodyNotEnabledError";
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
var TeamNotEnabledError = class extends NoydbError {
|
|
824
|
+
constructor(message = 'Multi-user grant/revoke/rotate requires the team capability. Pass `teamStrategy: withTeam()` (from "@noy-db/hub/team") to createNoydb().') {
|
|
825
|
+
super("TEAM_NOT_ENABLED", message);
|
|
826
|
+
this.name = "TeamNotEnabledError";
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
var SearchNotEnabledError = class extends NoydbError {
|
|
830
|
+
constructor(message = "Search / retrieval (search, retrieve, similarTo, warmIndex, flushIndex, and embedding compute) requires the search capability. Pass `searchStrategy: withSearch()` to createNoydb().") {
|
|
831
|
+
super("SEARCH_NOT_ENABLED", message);
|
|
832
|
+
this.name = "SearchNotEnabledError";
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
var CargoNotEnabledError = class extends NoydbError {
|
|
836
|
+
constructor(message = 'Partition extraction (extractPartition) requires the cargo capability. Pass `cargoStrategy: withCargo()` from "@noy-db/hub/cargo" to createNoydb().') {
|
|
837
|
+
super("CARGO_NOT_ENABLED", message);
|
|
838
|
+
this.name = "CargoNotEnabledError";
|
|
839
|
+
}
|
|
840
|
+
};
|
|
596
841
|
var SessionExpiredError = class extends NoydbError {
|
|
597
842
|
sessionId;
|
|
598
843
|
constructor(sessionId) {
|
|
@@ -863,9 +1108,254 @@ var SnapshotNotFoundError = class extends NoydbError {
|
|
|
863
1108
|
this.version = version;
|
|
864
1109
|
}
|
|
865
1110
|
};
|
|
1111
|
+
var UnknownShardError = class extends NoydbError {
|
|
1112
|
+
partitionKey;
|
|
1113
|
+
constructor(partitionKey, groupName) {
|
|
1114
|
+
super(
|
|
1115
|
+
"SHARD_UNKNOWN",
|
|
1116
|
+
`No shard for partition key "${partitionKey}" in vault group "${groupName}" and autoCreate is disabled. Call group.createShard(${JSON.stringify(partitionKey)}) first, or enable sharding.autoCreate.`
|
|
1117
|
+
);
|
|
1118
|
+
this.name = "UnknownShardError";
|
|
1119
|
+
this.partitionKey = partitionKey;
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
var ShardProvisioningError = class extends NoydbError {
|
|
1123
|
+
vaultId;
|
|
1124
|
+
constructor(vaultId, partitionKey) {
|
|
1125
|
+
super(
|
|
1126
|
+
"SHARD_PROVISIONING",
|
|
1127
|
+
`Registry has a row for partition "${partitionKey}" (vault "${vaultId}") but that vault is not provisioned in the store. Refusing to recreate it \u2014 the registry and store have diverged. Investigate before retrying.`
|
|
1128
|
+
);
|
|
1129
|
+
this.name = "ShardProvisioningError";
|
|
1130
|
+
this.vaultId = vaultId;
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
var DataResidencyError = class extends NoydbError {
|
|
1134
|
+
vaultId;
|
|
1135
|
+
requiredRegion;
|
|
1136
|
+
backendRegion;
|
|
1137
|
+
constructor(vaultId, requiredRegion, backendRegion) {
|
|
1138
|
+
super(
|
|
1139
|
+
"DATA_RESIDENCY",
|
|
1140
|
+
`Shard "${vaultId}" requires region "${requiredRegion}" but its placement backend declares region ${backendRegion === void 0 ? "(none)" : `"${backendRegion}"`}. Refusing to provision \u2014 route this shard to a region-correct backend via routeStore({ vaultRoutes }) (e.g. a region-encoded partition key) before retrying.`
|
|
1141
|
+
);
|
|
1142
|
+
this.name = "DataResidencyError";
|
|
1143
|
+
this.vaultId = vaultId;
|
|
1144
|
+
this.requiredRegion = requiredRegion;
|
|
1145
|
+
this.backendRegion = backendRegion;
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
var CrossShardJoinError = class extends NoydbError {
|
|
1149
|
+
constructor(message) {
|
|
1150
|
+
super("CROSS_SHARD_JOIN", message);
|
|
1151
|
+
this.name = "CrossShardJoinError";
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
var VaultTemplateNotFoundError = class extends NoydbError {
|
|
1155
|
+
templateName;
|
|
1156
|
+
constructor(templateName) {
|
|
1157
|
+
super(
|
|
1158
|
+
"VAULT_TEMPLATE_NOT_FOUND",
|
|
1159
|
+
`No vault template registered under "${templateName}". Register the template before opening the vault group.`
|
|
1160
|
+
);
|
|
1161
|
+
this.name = "VaultTemplateNotFoundError";
|
|
1162
|
+
this.templateName = templateName;
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
var ForgetStrategyNotConfiguredError = class extends NoydbError {
|
|
1166
|
+
constructor(message = 'vault.forget() requires a forget strategy. Pass `forgetStrategy: withForgetCascade({ subjects: { <collection>: <subjectField> } })` from "@noy-db/hub/forget" to createNoydb().') {
|
|
1167
|
+
super("FORGET_NOT_CONFIGURED", message);
|
|
1168
|
+
this.name = "ForgetStrategyNotConfiguredError";
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
var SealedRecordExpiredError = class extends NoydbError {
|
|
1172
|
+
expiresAt;
|
|
1173
|
+
constructor(expiresAt) {
|
|
1174
|
+
super(
|
|
1175
|
+
"SEALED_RECORD_EXPIRED",
|
|
1176
|
+
`Sealed record CEK expired at ${expiresAt}. The grantor must re-seal the record with a later expiresAt.`
|
|
1177
|
+
);
|
|
1178
|
+
this.name = "SealedRecordExpiredError";
|
|
1179
|
+
this.expiresAt = expiresAt;
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
var SealedRecordMismatchError = class extends NoydbError {
|
|
1183
|
+
expected;
|
|
1184
|
+
actual;
|
|
1185
|
+
constructor(expected, actual) {
|
|
1186
|
+
super(
|
|
1187
|
+
"SEALED_RECORD_MISMATCH",
|
|
1188
|
+
`Sealed CEK binding is for ${actual.collection}/${actual.id} but was presented against ${expected.collection}/${expected.id}. A CEK sealed for one record cannot decrypt another.`
|
|
1189
|
+
);
|
|
1190
|
+
this.name = "SealedRecordMismatchError";
|
|
1191
|
+
this.expected = expected;
|
|
1192
|
+
this.actual = actual;
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
var RecordCekNotFoundError = class extends NoydbError {
|
|
1196
|
+
collection;
|
|
1197
|
+
id;
|
|
1198
|
+
constructor(collection, id) {
|
|
1199
|
+
super(
|
|
1200
|
+
"RECORD_CEK_NOT_FOUND",
|
|
1201
|
+
`No per-record CEK for ${collection}/${id}. The record is missing, or its collection was not opened with { perRecordKeys: true } \u2014 only per-record-key records carry a sealable CEK.`
|
|
1202
|
+
);
|
|
1203
|
+
this.name = "RecordCekNotFoundError";
|
|
1204
|
+
this.collection = collection;
|
|
1205
|
+
this.id = id;
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
var EmbeddingDimMismatchError = class extends NoydbError {
|
|
1209
|
+
field;
|
|
1210
|
+
expected;
|
|
1211
|
+
actual;
|
|
1212
|
+
constructor(field, expected, actual) {
|
|
1213
|
+
super(
|
|
1214
|
+
"EMBEDDING_DIM_MISMATCH",
|
|
1215
|
+
`Embedding for "${field}" has dim ${actual}, expected ${expected}.`
|
|
1216
|
+
);
|
|
1217
|
+
this.name = "EmbeddingDimMismatchError";
|
|
1218
|
+
this.field = field;
|
|
1219
|
+
this.expected = expected;
|
|
1220
|
+
this.actual = actual;
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
var EmbeddingModelMismatchError = class extends NoydbError {
|
|
1224
|
+
expected;
|
|
1225
|
+
found;
|
|
1226
|
+
constructor(expected, found) {
|
|
1227
|
+
super(
|
|
1228
|
+
"EMBEDDING_MODEL_MISMATCH",
|
|
1229
|
+
`Embedding model mismatch: collection uses "${expected}" but a stored vector is "${found}". Run vault.embeddings.reindex() after changing the encoder.`
|
|
1230
|
+
);
|
|
1231
|
+
this.name = "EmbeddingModelMismatchError";
|
|
1232
|
+
this.expected = expected;
|
|
1233
|
+
this.found = found;
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
1236
|
+
var UserEnvelopeOversizedError = class extends NoydbError {
|
|
1237
|
+
bytes;
|
|
1238
|
+
limit;
|
|
1239
|
+
constructor(bytes, limit = USER_ENVELOPE_MAX_BYTES) {
|
|
1240
|
+
super(
|
|
1241
|
+
"USER_ENVELOPE_OVERSIZED",
|
|
1242
|
+
`User envelope payload is ${bytes} bytes; soft cap is ${limit} bytes. Move large data into the vault's regular collections.`
|
|
1243
|
+
);
|
|
1244
|
+
this.name = "UserEnvelopeOversizedError";
|
|
1245
|
+
this.bytes = bytes;
|
|
1246
|
+
this.limit = limit;
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
var PolicyDeniedError = class extends NoydbError {
|
|
1250
|
+
gate;
|
|
1251
|
+
reason;
|
|
1252
|
+
required;
|
|
1253
|
+
constructor(gate, reason, required, message) {
|
|
1254
|
+
super(
|
|
1255
|
+
"POLICY_DENIED",
|
|
1256
|
+
message ?? `Gate "${gate}" denied: ${reason}.`
|
|
1257
|
+
);
|
|
1258
|
+
this.name = "PolicyDeniedError";
|
|
1259
|
+
this.gate = gate;
|
|
1260
|
+
this.reason = reason;
|
|
1261
|
+
this.required = required;
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
var RecoveryNotEnrolledError = class extends NoydbError {
|
|
1265
|
+
constructor(message = 'Recovery profile not enrolled. Pass `recovery: [{ profile: "paper", codes: 10 }]` to `createNoydb()`, or set `policy.gates["recover-passphrase"].enabled = false` to opt out of recovery (passphrase loss = data loss). See https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/session-tiers.md.') {
|
|
1266
|
+
super("RECOVERY_NOT_ENROLLED", message);
|
|
1267
|
+
this.name = "RecoveryNotEnrolledError";
|
|
1268
|
+
}
|
|
1269
|
+
};
|
|
1270
|
+
var ManagedRecoveryNotEnrolledError = class extends NoydbError {
|
|
1271
|
+
vault;
|
|
1272
|
+
constructor(vault) {
|
|
1273
|
+
super(
|
|
1274
|
+
"MANAGED_RECOVERY_NOT_ENROLLED",
|
|
1275
|
+
`Managed-mode vault "${vault}" requires at least one strong recovery profile (Shamir today; multi-channel / admin-mediated when they ship). Paper alone is NOT strong under managed mode \u2014 losing the paper sheet would mean losing every record permanently. Bootstrap with \`db.openVaultAndEnrollRecovery("${vault}", { recovery: [{ profile: "shamir", k: 2, n: 3 }] })\`, or call \`db.enrollRecovery(vault, { profile: "shamir", k, n })\` separately, then re-attempt \`openVault\`.`
|
|
1276
|
+
);
|
|
1277
|
+
this.name = "ManagedRecoveryNotEnrolledError";
|
|
1278
|
+
this.vault = vault;
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
var RecoveryProfileNotImplementedError = class extends NoydbError {
|
|
1282
|
+
profile;
|
|
1283
|
+
tracking;
|
|
1284
|
+
constructor(profile, tracking) {
|
|
1285
|
+
super(
|
|
1286
|
+
"RECOVERY_PROFILE_NOT_IMPLEMENTED",
|
|
1287
|
+
`Recovery profile "${profile}" is not yet implemented in this hub release. Tracking: ${tracking}. Use the "paper" profile via @noy-db/on-recovery in the meantime.`
|
|
1288
|
+
);
|
|
1289
|
+
this.name = "RecoveryProfileNotImplementedError";
|
|
1290
|
+
this.profile = profile;
|
|
1291
|
+
this.tracking = tracking;
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
var EnclaveNotSupportedError = class extends NoydbError {
|
|
1295
|
+
/** The optional group that is not supported by this enclave. */
|
|
1296
|
+
group;
|
|
1297
|
+
constructor(group, detail) {
|
|
1298
|
+
super(
|
|
1299
|
+
"ENCLAVE_NOT_SUPPORTED",
|
|
1300
|
+
`enclave: ${group} is not supported by this enclave${detail ? ` \u2014 ${detail}` : ""}`
|
|
1301
|
+
);
|
|
1302
|
+
this.name = "EnclaveNotSupportedError";
|
|
1303
|
+
this.group = group;
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
var ClassifiedConfigError = class extends Error {
|
|
1307
|
+
constructor(collection, message) {
|
|
1308
|
+
super(`classifiedFields for collection "${collection}": ${message}`);
|
|
1309
|
+
this.collection = collection;
|
|
1310
|
+
this.name = "ClassifiedConfigError";
|
|
1311
|
+
}
|
|
1312
|
+
collection;
|
|
1313
|
+
};
|
|
1314
|
+
var ClassifiedRevealError = class extends Error {
|
|
1315
|
+
constructor(collection, field, detail) {
|
|
1316
|
+
super(`Cannot reveal field "${field}" in collection "${collection}": ${detail}`);
|
|
1317
|
+
this.collection = collection;
|
|
1318
|
+
this.field = field;
|
|
1319
|
+
this.name = "ClassifiedRevealError";
|
|
1320
|
+
}
|
|
1321
|
+
collection;
|
|
1322
|
+
field;
|
|
1323
|
+
};
|
|
1324
|
+
var ClassifiedVerifyError = class extends Error {
|
|
1325
|
+
constructor(collection, field, detail) {
|
|
1326
|
+
super(`Cannot verify field "${field}" in collection "${collection}": ${detail}`);
|
|
1327
|
+
this.collection = collection;
|
|
1328
|
+
this.field = field;
|
|
1329
|
+
this.name = "ClassifiedVerifyError";
|
|
1330
|
+
}
|
|
1331
|
+
collection;
|
|
1332
|
+
field;
|
|
1333
|
+
};
|
|
1334
|
+
var ClassifiedRotationError = class extends Error {
|
|
1335
|
+
constructor(collection, field, detail) {
|
|
1336
|
+
super(`Rotation refused for field "${field}" in collection "${collection}": ${detail}`);
|
|
1337
|
+
this.collection = collection;
|
|
1338
|
+
this.field = field;
|
|
1339
|
+
this.name = "ClassifiedRotationError";
|
|
1340
|
+
}
|
|
1341
|
+
collection;
|
|
1342
|
+
field;
|
|
1343
|
+
};
|
|
1344
|
+
var SatelliteConfigError = class extends NoydbError {
|
|
1345
|
+
constructor(message, options) {
|
|
1346
|
+
super("SATELLITE_CONFIG_ERROR", message);
|
|
1347
|
+
this.name = "SatelliteConfigError";
|
|
1348
|
+
if (options?.cause !== void 0) this.cause = options.cause;
|
|
1349
|
+
}
|
|
1350
|
+
};
|
|
866
1351
|
|
|
867
1352
|
export {
|
|
1353
|
+
STATE_VAULT_NAME,
|
|
1354
|
+
USER_ENVELOPE_MAX_BYTES,
|
|
1355
|
+
USER_ENVELOPE_COLLECTION,
|
|
868
1356
|
NoydbError,
|
|
1357
|
+
DebugPlaintextError,
|
|
1358
|
+
DebugReservedFieldError,
|
|
869
1359
|
DecryptionError,
|
|
870
1360
|
TamperedError,
|
|
871
1361
|
InvalidKeyError,
|
|
@@ -880,9 +1370,11 @@ export {
|
|
|
880
1370
|
ImportCapabilityError,
|
|
881
1371
|
StoreCapabilityError,
|
|
882
1372
|
PrivilegeEscalationError,
|
|
1373
|
+
ReservedVaultNameError,
|
|
883
1374
|
PeriodClosedError,
|
|
884
1375
|
RecordLockedError,
|
|
885
1376
|
FieldFrozenError,
|
|
1377
|
+
IllegalTransitionError,
|
|
886
1378
|
InvariantError,
|
|
887
1379
|
AmendmentForbiddenError,
|
|
888
1380
|
DirectoryDisabledError,
|
|
@@ -893,6 +1385,11 @@ export {
|
|
|
893
1385
|
DelegationTargetMissingError,
|
|
894
1386
|
ConflictError,
|
|
895
1387
|
LedgerContentionError,
|
|
1388
|
+
SequenceContentionError,
|
|
1389
|
+
SequenceOfflineError,
|
|
1390
|
+
SequenceNotEnabledError,
|
|
1391
|
+
NumberingUncertaintyError,
|
|
1392
|
+
PodVersionConflictError,
|
|
896
1393
|
BundleVersionConflictError,
|
|
897
1394
|
NetworkError,
|
|
898
1395
|
NotFoundError,
|
|
@@ -906,15 +1403,22 @@ export {
|
|
|
906
1403
|
QuiesceTimeoutError,
|
|
907
1404
|
GroupCardinalityError,
|
|
908
1405
|
IndexRequiredError,
|
|
1406
|
+
UniqueConstraintError,
|
|
1407
|
+
UnsupportedIndexOptionError,
|
|
909
1408
|
IndexWriteFailureError,
|
|
1409
|
+
FieldNotQueryableError,
|
|
910
1410
|
BundleIntegrityError,
|
|
911
1411
|
BundleSealMismatchError,
|
|
912
1412
|
ReservedCollectionNameError,
|
|
913
1413
|
DictKeyMissingError,
|
|
914
1414
|
DictKeyInUseError,
|
|
1415
|
+
RestrictRefUnresolvableError,
|
|
915
1416
|
MissingTranslationError,
|
|
916
1417
|
LocaleNotSpecifiedError,
|
|
917
1418
|
ScriptViolationError,
|
|
1419
|
+
StaticDictReadonlyError,
|
|
1420
|
+
UnknownDictCodeError,
|
|
1421
|
+
UnknownLookupKeyError,
|
|
918
1422
|
TranslatorNotConfiguredError,
|
|
919
1423
|
BackupLedgerError,
|
|
920
1424
|
BackupCorruptedError,
|
|
@@ -922,6 +1426,15 @@ export {
|
|
|
922
1426
|
TransferSealError,
|
|
923
1427
|
AdoptionStateError,
|
|
924
1428
|
AttestationError,
|
|
1429
|
+
AttestationNotEnabledError,
|
|
1430
|
+
ClassifiedNotEnabledError,
|
|
1431
|
+
TiersNotEnabledError,
|
|
1432
|
+
SealedRecordNotEnabledError,
|
|
1433
|
+
PortabilityNotEnabledError,
|
|
1434
|
+
CustodyNotEnabledError,
|
|
1435
|
+
TeamNotEnabledError,
|
|
1436
|
+
SearchNotEnabledError,
|
|
1437
|
+
CargoNotEnabledError,
|
|
925
1438
|
SessionExpiredError,
|
|
926
1439
|
SessionNotFoundError,
|
|
927
1440
|
SessionPolicyError,
|
|
@@ -944,6 +1457,28 @@ export {
|
|
|
944
1457
|
OverlayCollectionUnavailableError,
|
|
945
1458
|
OverlayNameCollisionError,
|
|
946
1459
|
OverlayIdMismatchError,
|
|
947
|
-
SnapshotNotFoundError
|
|
948
|
-
|
|
949
|
-
|
|
1460
|
+
SnapshotNotFoundError,
|
|
1461
|
+
UnknownShardError,
|
|
1462
|
+
ShardProvisioningError,
|
|
1463
|
+
DataResidencyError,
|
|
1464
|
+
CrossShardJoinError,
|
|
1465
|
+
VaultTemplateNotFoundError,
|
|
1466
|
+
ForgetStrategyNotConfiguredError,
|
|
1467
|
+
SealedRecordExpiredError,
|
|
1468
|
+
SealedRecordMismatchError,
|
|
1469
|
+
RecordCekNotFoundError,
|
|
1470
|
+
EmbeddingDimMismatchError,
|
|
1471
|
+
EmbeddingModelMismatchError,
|
|
1472
|
+
UserEnvelopeOversizedError,
|
|
1473
|
+
PolicyDeniedError,
|
|
1474
|
+
RecoveryNotEnrolledError,
|
|
1475
|
+
ManagedRecoveryNotEnrolledError,
|
|
1476
|
+
RecoveryProfileNotImplementedError,
|
|
1477
|
+
EnclaveNotSupportedError,
|
|
1478
|
+
ClassifiedConfigError,
|
|
1479
|
+
ClassifiedRevealError,
|
|
1480
|
+
ClassifiedVerifyError,
|
|
1481
|
+
ClassifiedRotationError,
|
|
1482
|
+
SatelliteConfigError
|
|
1483
|
+
};
|
|
1484
|
+
//# sourceMappingURL=chunk-S7VFUQM2.js.map
|