@noy-db/hub 0.2.0-pre.9 → 0.3.0-pre.2
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/adapter/index.d.ts +5 -0
- package/dist/adapter/index.js +15 -0
- package/dist/aggregate/index.d.ts +6 -2
- package/dist/aggregate/index.js +24 -16
- package/dist/aggregate/index.js.map +1 -1
- package/dist/api-RW3KP7WU.js +14 -0
- package/dist/as/index.d.ts +7 -0
- package/dist/as/index.js +24 -0
- package/dist/at/index.d.ts +5 -0
- package/dist/at/index.js +1 -0
- package/dist/attestation/index.d.ts +15 -47
- package/dist/attestation/index.js +54 -10
- package/dist/attestation/index.js.map +1 -1
- package/dist/backup-KMJQ66MF.js +219 -0
- package/dist/backup-KMJQ66MF.js.map +1 -0
- package/dist/blobs/index.d.ts +6 -8
- package/dist/blobs/index.js +19 -12
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.d.ts +16 -70
- package/dist/bundle/index.js +39 -476
- package/dist/bundle/index.js.map +1 -1
- package/dist/{ulid-CJ8RzRrm.d.ts → bundle-PwBGkhpe.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 +9 -0
- package/dist/cargo/index.js +89 -0
- package/dist/chunk-26LGBE4T.js +42 -0
- package/dist/chunk-26LGBE4T.js.map +1 -0
- package/dist/{chunk-K3DK3NU5.js → chunk-3YFXJ3ZP.js} +20 -5
- package/dist/chunk-3YFXJ3ZP.js.map +1 -0
- package/dist/chunk-4Q6HSHHL.js +90 -0
- package/dist/chunk-4Q6HSHHL.js.map +1 -0
- package/dist/chunk-5LUY7UTV.js +380 -0
- package/dist/chunk-5LUY7UTV.js.map +1 -0
- package/dist/chunk-5N6CZTCY.js +367 -0
- package/dist/chunk-5N6CZTCY.js.map +1 -0
- package/dist/chunk-5O3AOPDT.js +992 -0
- package/dist/chunk-5O3AOPDT.js.map +1 -0
- package/dist/chunk-5R3ERCDH.js +239 -0
- package/dist/chunk-5R3ERCDH.js.map +1 -0
- package/dist/chunk-5TDJ56JE.js +32 -0
- package/dist/chunk-5TDJ56JE.js.map +1 -0
- package/dist/{chunk-T7JEBOGN.js → chunk-62QYRORB.js} +18 -11
- package/dist/chunk-62QYRORB.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-76722EBH.js +451 -0
- package/dist/chunk-76722EBH.js.map +1 -0
- package/dist/{chunk-Z6FNBOTC.js → chunk-AIWULCUO.js} +13 -17
- package/dist/chunk-AIWULCUO.js.map +1 -0
- package/dist/{chunk-O3VZPBZG.js → chunk-AQTBSL7R.js} +47 -11
- package/dist/chunk-AQTBSL7R.js.map +1 -0
- package/dist/chunk-AURFOK3D.js +35 -0
- package/dist/chunk-AURFOK3D.js.map +1 -0
- package/dist/{chunk-53XBRIRT.js → chunk-AXRXJTE2.js} +9 -9
- package/dist/chunk-AXRXJTE2.js.map +1 -0
- package/dist/chunk-AZAOEIKW.js +155 -0
- package/dist/chunk-AZAOEIKW.js.map +1 -0
- package/dist/{chunk-HNRHLRDC.js → chunk-BG3SPSR4.js} +3 -3
- package/dist/chunk-BG3SPSR4.js.map +1 -0
- package/dist/chunk-BGIZAFY7.js +1 -0
- package/dist/chunk-CHFZDSE4.js +1 -0
- package/dist/{chunk-DJHHA6XH.js → chunk-CMGR4ZEW.js} +50 -20
- package/dist/chunk-CMGR4ZEW.js.map +1 -0
- package/dist/chunk-CWPPNPOH.js +23 -0
- package/dist/chunk-CWPPNPOH.js.map +1 -0
- package/dist/{chunk-QODLLGQ7.js → chunk-DFEMTNPJ.js} +371 -38
- package/dist/chunk-DFEMTNPJ.js.map +1 -0
- package/dist/{chunk-ZYWZWG6G.js → chunk-DGDI2D4M.js} +10 -10
- package/dist/chunk-DGDI2D4M.js.map +1 -0
- package/dist/{chunk-SYMWGEET.js → chunk-EIZUR2XW.js} +3 -3
- package/dist/chunk-EIZUR2XW.js.map +1 -0
- package/dist/{chunk-BVRYKATC.js → chunk-FISN7WE4.js} +36 -33
- package/dist/chunk-FISN7WE4.js.map +1 -0
- package/dist/chunk-GHVIKOHT.js +1 -0
- package/dist/chunk-GYGWYIOZ.js +200 -0
- package/dist/chunk-GYGWYIOZ.js.map +1 -0
- package/dist/chunk-HCIPRAGS.js +45 -0
- package/dist/chunk-HCIPRAGS.js.map +1 -0
- package/dist/{chunk-PX35GA7L.js → chunk-I2NOIW44.js} +10 -10
- package/dist/chunk-I2NOIW44.js.map +1 -0
- package/dist/{chunk-OIF6LZUR.js → chunk-I3TIKTJO.js} +3 -3
- package/dist/chunk-I3TIKTJO.js.map +1 -0
- package/dist/chunk-I7FD46FF.js +9 -0
- package/dist/chunk-I7FD46FF.js.map +1 -0
- package/dist/chunk-IAGBDSCS.js +40 -0
- package/dist/chunk-IAGBDSCS.js.map +1 -0
- package/dist/{chunk-JWRVQKRZ.js → chunk-IELYAOGG.js} +6 -18
- package/dist/chunk-IELYAOGG.js.map +1 -0
- package/dist/chunk-IGUYVGGI.js +205 -0
- package/dist/chunk-IGUYVGGI.js.map +1 -0
- package/dist/{chunk-U26HQ6KJ.js → chunk-IO6GRPT6.js} +4 -4
- package/dist/chunk-IO6GRPT6.js.map +1 -0
- package/dist/chunk-IPB7FTQX.js +273 -0
- package/dist/chunk-IPB7FTQX.js.map +1 -0
- package/dist/chunk-ITNUCOXM.js +148 -0
- package/dist/chunk-ITNUCOXM.js.map +1 -0
- package/dist/{chunk-WPLVTJ5D.js → chunk-IUEN57TV.js} +10 -10
- package/dist/chunk-IUEN57TV.js.map +1 -0
- package/dist/{chunk-DL3HWOQ5.js → chunk-JNUWZ6D3.js} +9 -9
- package/dist/chunk-JNUWZ6D3.js.map +1 -0
- package/dist/chunk-K2WCO3NX.js +1 -0
- package/dist/chunk-KVOXU4T5.js +30 -0
- package/dist/chunk-KVOXU4T5.js.map +1 -0
- package/dist/chunk-KXGNJJXB.js +135 -0
- package/dist/chunk-KXGNJJXB.js.map +1 -0
- package/dist/chunk-LB7FD65R.js +163 -0
- package/dist/chunk-LB7FD65R.js.map +1 -0
- package/dist/{chunk-22DWZL57.js → chunk-LFLXAY2W.js} +43 -218
- package/dist/chunk-LFLXAY2W.js.map +1 -0
- package/dist/chunk-LMTH2RM6.js +129 -0
- package/dist/chunk-LMTH2RM6.js.map +1 -0
- package/dist/{aggregate/index.cjs → chunk-LV7M27WM.js} +390 -219
- package/dist/chunk-LV7M27WM.js.map +1 -0
- package/dist/{chunk-PE2FR4J3.js → chunk-LXQT4WMP.js} +16 -18
- package/dist/chunk-LXQT4WMP.js.map +1 -0
- package/dist/chunk-M2YKN37S.js +524 -0
- package/dist/chunk-M2YKN37S.js.map +1 -0
- package/dist/chunk-M6OST55S.js +14 -0
- package/dist/chunk-M6OST55S.js.map +1 -0
- package/dist/{chunk-F3GDRNUT.js → chunk-MD3Y6J3L.js} +35 -69
- package/dist/chunk-MD3Y6J3L.js.map +1 -0
- package/dist/{chunk-XJFLDA7A.js → chunk-MTMJVJ5W.js} +8 -7
- package/dist/chunk-MTMJVJ5W.js.map +1 -0
- package/dist/{chunk-DFMLEQZB.js → chunk-NF5JWERG.js} +5 -10
- package/dist/chunk-NF5JWERG.js.map +1 -0
- package/dist/{chunk-DO7C2TOG.js → chunk-PKHL44ER.js} +3 -3
- package/dist/{chunk-DO7C2TOG.js.map → chunk-PKHL44ER.js.map} +1 -1
- package/dist/{chunk-6CME4UEK.js → chunk-PSHOXR6C.js} +7008 -4827
- package/dist/chunk-PSHOXR6C.js.map +1 -0
- package/dist/chunk-PSMV73A5.js +117 -0
- package/dist/chunk-PSMV73A5.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-DE6GKS6G.js → chunk-Q7SS3IME.js} +50 -9
- package/dist/chunk-Q7SS3IME.js.map +1 -0
- package/dist/chunk-QHJW5EXU.js +54 -0
- package/dist/chunk-QHJW5EXU.js.map +1 -0
- package/dist/chunk-QZISFCVG.js +233 -0
- package/dist/chunk-QZISFCVG.js.map +1 -0
- package/dist/{chunk-NONAAENK.js → chunk-RUEKROOS.js} +11 -4
- package/dist/chunk-RUEKROOS.js.map +1 -0
- package/dist/chunk-RUIMKQTA.js +23 -0
- package/dist/chunk-RUIMKQTA.js.map +1 -0
- package/dist/{chunk-TFBP23BX.js → chunk-SKF73JOP.js} +66 -7
- package/dist/chunk-SKF73JOP.js.map +1 -0
- package/dist/chunk-SM3AVUHC.js +42 -0
- package/dist/chunk-SM3AVUHC.js.map +1 -0
- package/dist/{chunk-ML236QKC.js → chunk-SMXWYP24.js} +5 -5
- package/dist/chunk-SMXWYP24.js.map +1 -0
- package/dist/chunk-SRB2XEWB.js +148 -0
- package/dist/chunk-SRB2XEWB.js.map +1 -0
- package/dist/chunk-SVLR4POP.js +64 -0
- package/dist/chunk-SVLR4POP.js.map +1 -0
- package/dist/chunk-TA66UMI4.js +123 -0
- package/dist/chunk-TA66UMI4.js.map +1 -0
- package/dist/chunk-TEILUWOI.js +664 -0
- package/dist/chunk-TEILUWOI.js.map +1 -0
- package/dist/chunk-TJYQIGAP.js +82 -0
- package/dist/chunk-TJYQIGAP.js.map +1 -0
- package/dist/{chunk-H2X3ISXG.js → chunk-UAG5KWVA.js} +7 -7
- package/dist/chunk-UAG5KWVA.js.map +1 -0
- package/dist/chunk-UDRIWL7A.js +382 -0
- package/dist/chunk-UDRIWL7A.js.map +1 -0
- package/dist/{chunk-2GLDA55J.js → chunk-UIU2THRG.js} +498 -133
- package/dist/chunk-UIU2THRG.js.map +1 -0
- package/dist/{chunk-3YPCK6JX.js → chunk-UPJNJGGA.js} +165 -423
- package/dist/chunk-UPJNJGGA.js.map +1 -0
- package/dist/chunk-UV5MFVO3.js +21 -0
- package/dist/chunk-UV5MFVO3.js.map +1 -0
- package/dist/{chunk-2WUSG3IT.js → chunk-V7RWQRG7.js} +5 -5
- package/dist/chunk-V7RWQRG7.js.map +1 -0
- package/dist/{chunk-VTKGMEPP.js → chunk-VCTFO5CO.js} +13 -3
- package/dist/chunk-VCTFO5CO.js.map +1 -0
- package/dist/{chunk-5T22KDPN.js → chunk-VFQGRQIH.js} +8 -8
- package/dist/chunk-VFQGRQIH.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-DONMZAD2.js → chunk-WWGT2MDV.js} +43 -165
- package/dist/chunk-WWGT2MDV.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-WYSO2NIH.js +30 -0
- package/dist/chunk-WYSO2NIH.js.map +1 -0
- package/dist/chunk-XXYIOFUB.js +164 -0
- package/dist/chunk-XXYIOFUB.js.map +1 -0
- package/dist/{chunk-3BFJOWSU.js → chunk-Y22T3KQE.js} +35 -7
- package/dist/chunk-Y22T3KQE.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-I5FOWO4J.js → chunk-ZCGAHGUS.js} +52 -73
- package/dist/chunk-ZCGAHGUS.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-B6PB7JLN.js → chunk-ZYUC53LT.js} +427 -6
- package/dist/chunk-ZYUC53LT.js.map +1 -0
- package/dist/collection-facade-GQAOGJP2.js +33 -0
- package/dist/consent/index.d.ts +5 -7
- package/dist/consent/index.js +7 -5
- package/dist/consent/index.js.map +1 -1
- package/dist/crdt/index.d.ts +6 -2
- package/dist/crdt/index.js +3 -2
- package/dist/crdt/index.js.map +1 -1
- package/dist/decrypt-partition-IHtxEnTi.d.ts +21 -0
- package/dist/delegation-UL5HKLER.js +19 -0
- package/dist/derivations/index.d.ts +7 -9
- package/dist/derivations/index.js +11 -6
- package/dist/describe/index.d.ts +1 -0
- package/dist/describe/index.js +1 -0
- package/dist/describe-Ccd1hS7a.d.ts +143 -0
- package/dist/{dev-unlock-B4kDxep_.d.ts → dev-unlock-h0K-UZTk.d.ts} +1 -1
- package/dist/discriminant-BN9REW3o.d.ts +60 -0
- package/dist/enclave-UL5LW66V.js +88 -0
- package/dist/executor-2FWQRLMG.js +15 -0
- package/dist/executor-QZ7BXICW.js +9 -0
- package/dist/executor-Z5ZLJVTV.js +9 -0
- package/dist/export-accessible-KRV5W4GH.js +17 -0
- package/dist/extract-partition-GLKBOXFQ.js +30 -0
- package/dist/{fanout-sidecar-OKPMMPLG.js → fanout-sidecar-GF3DJ6KR.js} +34 -14
- package/dist/fanout-sidecar-GF3DJ6KR.js.map +1 -0
- package/dist/forget/index.d.ts +36 -0
- package/dist/forget/index.js +19 -0
- package/dist/forget/index.js.map +1 -0
- package/dist/guards/index.d.ts +13 -9
- package/dist/guards/index.js +12 -5
- package/dist/{hash-DdpVypUp.d.cts → hash-CdSr06sm.d.ts} +5 -1
- package/dist/history/index.d.ts +6 -8
- package/dist/history/index.js +19 -12
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.d.ts +5 -7
- package/dist/i18n/index.js +104 -15
- package/dist/i18n/index.js.map +1 -1
- package/dist/in/index.d.ts +5 -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-CGLLRtFc.d.ts +123 -0
- package/dist/{types-Df28QFKb.d.ts → index-_6At2_9_.d.ts} +16270 -8358
- package/dist/index.d.ts +1088 -450
- package/dist/index.js +1165 -293
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.d.ts +6 -3
- package/dist/indexing/index.js +6 -5
- package/dist/indexing/index.js.map +1 -1
- package/dist/issue-Y6UVIR43.js +13 -0
- package/dist/issue-Y6UVIR43.js.map +1 -0
- package/dist/kernel/index.d.ts +32 -0
- package/dist/kernel/index.js +53 -0
- package/dist/kernel/index.js.map +1 -0
- package/dist/{ledger-TMRZYNVJ.js → ledger-RYI35CDS.js} +12 -9
- package/dist/ledger-RYI35CDS.js.map +1 -0
- package/dist/liberate-CRPZEV7O.js +18 -0
- package/dist/liberate-CRPZEV7O.js.map +1 -0
- package/dist/materialized-views/index.d.ts +6 -19
- package/dist/materialized-views/index.js +16 -12
- package/dist/mime-magic-B4RoFj3B.d.ts +103 -0
- package/dist/noydb-LDEBLNHY.js +50 -0
- package/dist/noydb-LDEBLNHY.js.map +1 -0
- package/dist/on/index.d.ts +5 -0
- package/dist/on/index.js +11 -0
- package/dist/on/index.js.map +1 -0
- package/dist/overlay-views/index.d.ts +27 -11
- package/dist/overlay-views/index.js +7 -6
- package/dist/periods/index.d.ts +5 -7
- package/dist/periods/index.js +13 -9
- package/dist/pod/index.d.ts +63 -0
- package/dist/pod/index.js +61 -0
- package/dist/pod/index.js.map +1 -0
- package/dist/policy-IXK4FVXP.js +41 -0
- package/dist/policy-IXK4FVXP.js.map +1 -0
- package/dist/portability/index.d.ts +20 -0
- package/dist/portability/index.js +43 -0
- package/dist/portability/index.js.map +1 -0
- package/dist/{public-envelope-BW6OXORV.js → public-envelope-JHDQCPSX.js} +6 -5
- package/dist/public-envelope-JHDQCPSX.js.map +1 -0
- package/dist/query/index.d.ts +5 -3
- package/dist/query/index.js +21 -13
- package/dist/read-only-facade-5ADRJVTM.js +8 -0
- package/dist/read-only-facade-5ADRJVTM.js.map +1 -0
- package/dist/registry-45RJNWGU.js +9 -0
- package/dist/registry-45RJNWGU.js.map +1 -0
- package/dist/registry-5GRV5VXI.js +13 -0
- package/dist/registry-5GRV5VXI.js.map +1 -0
- package/dist/registry-VW6P6A3J.js +8 -0
- package/dist/registry-VW6P6A3J.js.map +1 -0
- package/dist/registry-WEUCHBO4.js +11 -0
- package/dist/registry-WEUCHBO4.js.map +1 -0
- package/dist/request-withdrawal-GBPH2FDY.js +25 -0
- package/dist/request-withdrawal-GBPH2FDY.js.map +1 -0
- package/dist/revoke-TUFRGI6S.js +18 -0
- package/dist/revoke-TUFRGI6S.js.map +1 -0
- package/dist/sealed-record/index.d.ts +69 -0
- package/dist/sealed-record/index.js +65 -0
- package/dist/sealed-record/index.js.map +1 -0
- package/dist/session/index.d.ts +6 -8
- package/dist/session/index.js +7 -5
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.d.ts +5 -7
- package/dist/shadow/index.js +4 -3
- package/dist/shadow/index.js.map +1 -1
- package/dist/{signer-72QAUSVW.js → signer-PNKTBVF7.js} +6 -5
- package/dist/signer-PNKTBVF7.js.map +1 -0
- package/dist/snapshots/index.d.ts +6 -8
- package/dist/snapshots/index.js +13 -11
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-6ZDBTQT7.js → stale-3JWHNDIY.js} +3 -2
- package/dist/stale-3JWHNDIY.js.map +1 -0
- package/dist/store-coordination-provider-3I7XWZZK.js +142 -0
- package/dist/store-coordination-provider-3I7XWZZK.js.map +1 -0
- package/dist/subject-index-O75wKshW.d.ts +362 -0
- package/dist/sync/index.d.ts +4 -6
- package/dist/sync/index.js +7 -6
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.d.ts +5 -7
- package/dist/team/index.js +20 -16
- package/dist/tiers/index.d.ts +5 -0
- package/dist/tiers/index.js +33 -0
- package/dist/tiers/index.js.map +1 -0
- package/dist/to/index.d.ts +5 -0
- package/dist/to/index.js +17 -0
- package/dist/to/index.js.map +1 -0
- package/dist/transition-guard-DqodPNKw.d.ts +165 -0
- package/dist/tx/index.d.ts +23 -9
- package/dist/tx/index.js +13 -8
- package/dist/tx/index.js.map +1 -1
- package/dist/ui/index.d.ts +1 -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/vault-diff-BtpiBvic.d.ts +147 -0
- package/dist/with/index.d.ts +38 -0
- package/dist/with/index.js +25 -0
- package/dist/with/index.js.map +1 -0
- package/dist/{with-materialized-view-BLkQxoQN.d.ts → with-materialized-view-DMmWtYfJ.d.ts} +1 -1
- package/dist/{with-overlayed-view-CRsSEwHR.d.ts → with-overlayed-view-D_IB2nkM.d.ts} +2 -3
- package/dist/with-rollup-em2wxoHP.d.ts +47 -0
- package/dist/withdraw-accessible-FFS46EOD.js +22 -0
- package/dist/withdraw-accessible-FFS46EOD.js.map +1 -0
- package/dist/zod-HAJM7LMS.js +14763 -0
- package/dist/zod-HAJM7LMS.js.map +1 -0
- package/package.json +121 -201
- 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.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.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 +0 -275
- 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 +0 -90
- 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.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/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/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-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/{store → adapter}/index.js.map +0 -0
- /package/dist/{chunk-UF3BUNQZ.js.map → api-RW3KP7WU.js.map} +0 -0
- /package/dist/{crypto-HTZ4FJOP.js.map → as/index.js.map} +0 -0
- /package/dist/{delegation-RI54P6I5.js.map → at/index.js.map} +0 -0
- /package/dist/{executor-5PNY7LGW.js.map → by/index.js.map} +0 -0
- /package/dist/{executor-B4QIYGZX.js.map → cargo/index.js.map} +0 -0
- /package/dist/{executor-BWXXDQ7K.js.map → chunk-BGIZAFY7.js.map} +0 -0
- /package/dist/{issue-VGDPP4B5.js.map → chunk-CHFZDSE4.js.map} +0 -0
- /package/dist/{ledger-TMRZYNVJ.js.map → chunk-GHVIKOHT.js.map} +0 -0
- /package/dist/{noydb-G725ZSZG.js.map → chunk-K2WCO3NX.js.map} +0 -0
- /package/dist/{public-envelope-BW6OXORV.js.map → chunk-PZ5AY32C.js.map} +0 -0
- /package/dist/{read-only-facade-ITU6L7BL.js.map → collection-facade-GQAOGJP2.js.map} +0 -0
- /package/dist/{registry-3QP3YKQS.js.map → delegation-UL5HKLER.js.map} +0 -0
- /package/dist/{registry-DKEXOJVO.js.map → describe/index.js.map} +0 -0
- /package/dist/{registry-OJIOSBV6.js.map → enclave-UL5LW66V.js.map} +0 -0
- /package/dist/{registry-USRVT6YF.js.map → executor-2FWQRLMG.js.map} +0 -0
- /package/dist/{revoke-JCC7N56X.js.map → executor-QZ7BXICW.js.map} +0 -0
- /package/dist/{signer-72QAUSVW.js.map → executor-Z5ZLJVTV.js.map} +0 -0
- /package/dist/{stale-6ZDBTQT7.js.map → export-accessible-KRV5W4GH.js.map} +0 -0
- /package/dist/{ulid-COREQ2RQ.js.map → extract-partition-GLKBOXFQ.js.map} +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lightweight MIME type detection from magic bytes (file signatures).
|
|
3
|
-
*
|
|
4
|
-
* Designed for the blob store's auto-detection feature. Operates on the first 16 bytes of
|
|
5
|
-
* plaintext — no filesystem access, no filename guessing.
|
|
6
|
-
*
|
|
7
|
-
* ## Detection strategies
|
|
8
|
-
*
|
|
9
|
-
* 1. **Prefix match** — magic bytes at offset 0 (most formats).
|
|
10
|
-
* 2. **Offset match** — magic bytes at a fixed offset > 0 (ISOBMFF: offset 4).
|
|
11
|
-
* 3. **Compound match** — two separate byte sequences at different offsets
|
|
12
|
-
* (RIFF-based: bytes 0-3 + bytes 8-11).
|
|
13
|
-
*
|
|
14
|
-
* ## Formats excluded (require offset > 16 bytes)
|
|
15
|
-
*
|
|
16
|
-
* - TAR (`ustar` at offset 257)
|
|
17
|
-
* - ISO 9660 (`CD001` at offset 32769)
|
|
18
|
-
*
|
|
19
|
-
* @module
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Detect MIME type from the first bytes of a file.
|
|
23
|
-
*
|
|
24
|
-
* @param header - The first 16 bytes (or more) of the plaintext. Passing
|
|
25
|
-
* fewer than 16 bytes may miss compound and offset-based matches.
|
|
26
|
-
* @returns Detected MIME type, or `'application/octet-stream'` if unknown.
|
|
27
|
-
*/
|
|
28
|
-
declare function detectMimeType(header: Uint8Array): string;
|
|
29
|
-
/**
|
|
30
|
-
* Detect MIME type and whether the format is already compressed.
|
|
31
|
-
*
|
|
32
|
-
* Used by `BlobSet.put()` to decide whether to skip gzip compression.
|
|
33
|
-
*
|
|
34
|
-
* @param header - The first 16 bytes (or more) of the plaintext.
|
|
35
|
-
* @returns `{ mime, preCompressed }` or `null` if no match.
|
|
36
|
-
*/
|
|
37
|
-
declare function detectMagic(header: Uint8Array): {
|
|
38
|
-
mime: string;
|
|
39
|
-
format: string;
|
|
40
|
-
preCompressed: boolean;
|
|
41
|
-
} | null;
|
|
42
|
-
/**
|
|
43
|
-
* Check whether a format is already compressed (should skip gzip).
|
|
44
|
-
*
|
|
45
|
-
* @param mimeType - A MIME type string.
|
|
46
|
-
* @returns `true` if the format is known to be pre-compressed.
|
|
47
|
-
*/
|
|
48
|
-
declare function isPreCompressed(mimeType: string): boolean;
|
|
49
|
-
|
|
50
|
-
export { detectMimeType as a, detectMagic as d, isPreCompressed as i };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lightweight MIME type detection from magic bytes (file signatures).
|
|
3
|
-
*
|
|
4
|
-
* Designed for the blob store's auto-detection feature. Operates on the first 16 bytes of
|
|
5
|
-
* plaintext — no filesystem access, no filename guessing.
|
|
6
|
-
*
|
|
7
|
-
* ## Detection strategies
|
|
8
|
-
*
|
|
9
|
-
* 1. **Prefix match** — magic bytes at offset 0 (most formats).
|
|
10
|
-
* 2. **Offset match** — magic bytes at a fixed offset > 0 (ISOBMFF: offset 4).
|
|
11
|
-
* 3. **Compound match** — two separate byte sequences at different offsets
|
|
12
|
-
* (RIFF-based: bytes 0-3 + bytes 8-11).
|
|
13
|
-
*
|
|
14
|
-
* ## Formats excluded (require offset > 16 bytes)
|
|
15
|
-
*
|
|
16
|
-
* - TAR (`ustar` at offset 257)
|
|
17
|
-
* - ISO 9660 (`CD001` at offset 32769)
|
|
18
|
-
*
|
|
19
|
-
* @module
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Detect MIME type from the first bytes of a file.
|
|
23
|
-
*
|
|
24
|
-
* @param header - The first 16 bytes (or more) of the plaintext. Passing
|
|
25
|
-
* fewer than 16 bytes may miss compound and offset-based matches.
|
|
26
|
-
* @returns Detected MIME type, or `'application/octet-stream'` if unknown.
|
|
27
|
-
*/
|
|
28
|
-
declare function detectMimeType(header: Uint8Array): string;
|
|
29
|
-
/**
|
|
30
|
-
* Detect MIME type and whether the format is already compressed.
|
|
31
|
-
*
|
|
32
|
-
* Used by `BlobSet.put()` to decide whether to skip gzip compression.
|
|
33
|
-
*
|
|
34
|
-
* @param header - The first 16 bytes (or more) of the plaintext.
|
|
35
|
-
* @returns `{ mime, preCompressed }` or `null` if no match.
|
|
36
|
-
*/
|
|
37
|
-
declare function detectMagic(header: Uint8Array): {
|
|
38
|
-
mime: string;
|
|
39
|
-
format: string;
|
|
40
|
-
preCompressed: boolean;
|
|
41
|
-
} | null;
|
|
42
|
-
/**
|
|
43
|
-
* Check whether a format is already compressed (should skip gzip).
|
|
44
|
-
*
|
|
45
|
-
* @param mimeType - A MIME type string.
|
|
46
|
-
* @returns `true` if the format is known to be pre-compressed.
|
|
47
|
-
*/
|
|
48
|
-
declare function isPreCompressed(mimeType: string): boolean;
|
|
49
|
-
|
|
50
|
-
export { detectMimeType as a, detectMagic as d, isPreCompressed as i };
|
package/dist/noydb-G725ZSZG.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Noydb,
|
|
3
|
-
createNoydb
|
|
4
|
-
} from "./chunk-6CME4UEK.js";
|
|
5
|
-
import "./chunk-EMIGCR7X.js";
|
|
6
|
-
import "./chunk-TFBP23BX.js";
|
|
7
|
-
import "./chunk-DJHHA6XH.js";
|
|
8
|
-
import "./chunk-2WUSG3IT.js";
|
|
9
|
-
import "./chunk-I5FOWO4J.js";
|
|
10
|
-
import "./chunk-ML236QKC.js";
|
|
11
|
-
import "./chunk-JWRVQKRZ.js";
|
|
12
|
-
import "./chunk-UF3BUNQZ.js";
|
|
13
|
-
import "./chunk-22DWZL57.js";
|
|
14
|
-
import "./chunk-3YPCK6JX.js";
|
|
15
|
-
import "./chunk-U26HQ6KJ.js";
|
|
16
|
-
import "./chunk-DONMZAD2.js";
|
|
17
|
-
import "./chunk-2QR2PQTT.js";
|
|
18
|
-
import "./chunk-FZU343FL.js";
|
|
19
|
-
import "./chunk-PE2FR4J3.js";
|
|
20
|
-
import "./chunk-Z6FNBOTC.js";
|
|
21
|
-
import "./chunk-2GLDA55J.js";
|
|
22
|
-
import "./chunk-OIF6LZUR.js";
|
|
23
|
-
import "./chunk-W6EQLGMB.js";
|
|
24
|
-
import "./chunk-5XHKQ56N.js";
|
|
25
|
-
import "./chunk-TV3YZ35S.js";
|
|
26
|
-
import "./chunk-3BFJOWSU.js";
|
|
27
|
-
import "./chunk-WIRRPTFH.js";
|
|
28
|
-
import "./chunk-PP6W64Y3.js";
|
|
29
|
-
import "./chunk-B6PB7JLN.js";
|
|
30
|
-
export {
|
|
31
|
-
Noydb,
|
|
32
|
-
createNoydb
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=noydb-G725ZSZG.js.map
|
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/overlay-views/index.ts
|
|
21
|
-
var overlay_views_exports = {};
|
|
22
|
-
__export(overlay_views_exports, {
|
|
23
|
-
OverlayBaseIsVirtualError: () => OverlayBaseIsVirtualError,
|
|
24
|
-
OverlayCollectionUnavailableError: () => OverlayCollectionUnavailableError,
|
|
25
|
-
OverlayIdMismatchError: () => OverlayIdMismatchError,
|
|
26
|
-
OverlayNameCollisionError: () => OverlayNameCollisionError,
|
|
27
|
-
OverlayedCollection: () => OverlayedCollection,
|
|
28
|
-
OverlayedViewRegistry: () => OverlayedViewRegistry,
|
|
29
|
-
withOverlayedView: () => withOverlayedView
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(overlay_views_exports);
|
|
32
|
-
|
|
33
|
-
// src/errors.ts
|
|
34
|
-
var NoydbError = class extends Error {
|
|
35
|
-
/** Machine-readable error code. Stable across library versions. */
|
|
36
|
-
code;
|
|
37
|
-
constructor(code, message) {
|
|
38
|
-
super(message);
|
|
39
|
-
this.name = "NoydbError";
|
|
40
|
-
this.code = code;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var ValidationError = class extends NoydbError {
|
|
44
|
-
constructor(message = "Validation error") {
|
|
45
|
-
super("VALIDATION_ERROR", message);
|
|
46
|
-
this.name = "ValidationError";
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var OverlayBaseIsVirtualError = class extends NoydbError {
|
|
50
|
-
overlayName;
|
|
51
|
-
base;
|
|
52
|
-
constructor(overlayName, base) {
|
|
53
|
-
super(
|
|
54
|
-
"OVERLAY_BASE_IS_VIRTUAL",
|
|
55
|
-
`withOverlayedView "${overlayName}": base "${base}" is another overlay's virtual name. Multi-overlay stacking is a v3 feature; base must reference a concrete collection (a real source or an MV output).`
|
|
56
|
-
);
|
|
57
|
-
this.name = "OverlayBaseIsVirtualError";
|
|
58
|
-
this.overlayName = overlayName;
|
|
59
|
-
this.base = base;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var OverlayCollectionUnavailableError = class extends NoydbError {
|
|
63
|
-
overlayName;
|
|
64
|
-
overlay;
|
|
65
|
-
constructor(overlayName, overlay) {
|
|
66
|
-
super(
|
|
67
|
-
"OVERLAY_COLLECTION_UNAVAILABLE",
|
|
68
|
-
`withOverlayedView "${overlayName}": overlay collection "${overlay}" is unavailable. It must be a real vault-known collection that is NOT itself an MV output collection.`
|
|
69
|
-
);
|
|
70
|
-
this.name = "OverlayCollectionUnavailableError";
|
|
71
|
-
this.overlayName = overlayName;
|
|
72
|
-
this.overlay = overlay;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var OverlayNameCollisionError = class extends NoydbError {
|
|
76
|
-
overlayName;
|
|
77
|
-
constructor(overlayName) {
|
|
78
|
-
super(
|
|
79
|
-
"OVERLAY_NAME_COLLISION",
|
|
80
|
-
`withOverlayedView "${overlayName}": virtual name collides with an MV output or a concrete source collection. Pick a unique name for the virtual collection.`
|
|
81
|
-
);
|
|
82
|
-
this.name = "OverlayNameCollisionError";
|
|
83
|
-
this.overlayName = overlayName;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var OverlayIdMismatchError = class extends NoydbError {
|
|
87
|
-
actual;
|
|
88
|
-
expected;
|
|
89
|
-
constructor(actual, expected) {
|
|
90
|
-
super(
|
|
91
|
-
"OVERLAY_ID_MISMATCH",
|
|
92
|
-
`Overlay put(id, record): id "${actual}" does not match the base MV's rowKey(record) \u2192 "${expected}". Pass the row directly via .put(record) to derive the id, or fix the id to match the base MV's rowKey output.`
|
|
93
|
-
);
|
|
94
|
-
this.name = "OverlayIdMismatchError";
|
|
95
|
-
this.actual = actual;
|
|
96
|
-
this.expected = expected;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/overlay-views/with-overlayed-view.ts
|
|
101
|
-
function withOverlayedView(spec) {
|
|
102
|
-
if (!spec.name || spec.name.length === 0) {
|
|
103
|
-
throw new ValidationError("withOverlayedView: name is required");
|
|
104
|
-
}
|
|
105
|
-
if (!spec.base || spec.base.length === 0) {
|
|
106
|
-
throw new ValidationError("withOverlayedView: base is required");
|
|
107
|
-
}
|
|
108
|
-
if (!spec.overlay || spec.overlay.length === 0) {
|
|
109
|
-
throw new ValidationError("withOverlayedView: overlay is required");
|
|
110
|
-
}
|
|
111
|
-
if (spec.base === spec.overlay) {
|
|
112
|
-
throw new ValidationError("withOverlayedView: base and overlay must be different collections");
|
|
113
|
-
}
|
|
114
|
-
if (spec.base === spec.name || spec.overlay === spec.name) {
|
|
115
|
-
throw new ValidationError(
|
|
116
|
-
"withOverlayedView: virtual name must differ from both base and overlay collection names"
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
if (!spec.shadowField || spec.shadowField.length === 0) {
|
|
120
|
-
throw new ValidationError("withOverlayedView: shadowField is required");
|
|
121
|
-
}
|
|
122
|
-
return {
|
|
123
|
-
__noydb_strategy: "overlayed-view",
|
|
124
|
-
spec
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// src/overlay-views/registry.ts
|
|
129
|
-
var OverlayedViewRegistry = class {
|
|
130
|
-
_byName = /* @__PURE__ */ new Map();
|
|
131
|
-
/**
|
|
132
|
-
* Register an overlay. Validates name uniqueness, base concreteness,
|
|
133
|
-
* and overlay availability AGAINST the MV registry — overlays
|
|
134
|
-
* declared without the MV registry context skip cross-registry
|
|
135
|
-
* checks but still validate self-consistency.
|
|
136
|
-
*/
|
|
137
|
-
register(spec, options) {
|
|
138
|
-
const { isOverlayName, isMVOutput, isKnownCollection } = options;
|
|
139
|
-
if (isMVOutput?.(spec.name) || isOverlayName?.(spec.name)) {
|
|
140
|
-
throw new OverlayNameCollisionError(spec.name);
|
|
141
|
-
}
|
|
142
|
-
if (isOverlayName?.(spec.base)) {
|
|
143
|
-
throw new OverlayBaseIsVirtualError(spec.name, spec.base);
|
|
144
|
-
}
|
|
145
|
-
if (isMVOutput?.(spec.overlay)) {
|
|
146
|
-
throw new OverlayCollectionUnavailableError(spec.name, spec.overlay);
|
|
147
|
-
}
|
|
148
|
-
void isKnownCollection;
|
|
149
|
-
this._byName.set(spec.name, spec);
|
|
150
|
-
}
|
|
151
|
-
byName(name) {
|
|
152
|
-
return this._byName.get(name);
|
|
153
|
-
}
|
|
154
|
-
/** All overlay virtual names. */
|
|
155
|
-
names() {
|
|
156
|
-
return new Set(this._byName.keys());
|
|
157
|
-
}
|
|
158
|
-
isOverlay(name) {
|
|
159
|
-
return this._byName.has(name);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Resolve the `rowKey` function for an overlay's base MV. Returns
|
|
163
|
-
* `undefined` if the base isn't an MV (raw source collection) or
|
|
164
|
-
* if the MV registry isn't supplied. Used by the virtual-collection
|
|
165
|
-
* proxy to derive ids from `put(record)` calls.
|
|
166
|
-
*/
|
|
167
|
-
resolveBaseRowKey(name, mvRegistry) {
|
|
168
|
-
const spec = this._byName.get(name);
|
|
169
|
-
if (!spec || !mvRegistry) return void 0;
|
|
170
|
-
for (const reg of mvRegistry.all()) {
|
|
171
|
-
if (reg.outputCollection === spec.base || reg.spec.name === spec.base) {
|
|
172
|
-
return (row) => reg.spec.rowKey(row);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return void 0;
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
// src/overlay-views/virtual-collection.ts
|
|
180
|
-
var OverlayedCollection = class {
|
|
181
|
-
constructor(spec, baseCollection, overlayCollection, baseRowKey) {
|
|
182
|
-
this.spec = spec;
|
|
183
|
-
this.baseCollection = baseCollection;
|
|
184
|
-
this.overlayCollection = overlayCollection;
|
|
185
|
-
this.baseRowKey = baseRowKey;
|
|
186
|
-
}
|
|
187
|
-
spec;
|
|
188
|
-
baseCollection;
|
|
189
|
-
overlayCollection;
|
|
190
|
-
baseRowKey;
|
|
191
|
-
/**
|
|
192
|
-
* Convenience accessors for advanced callers that need to bypass the
|
|
193
|
-
* virtual layer (bulk imports, direct overlay queries). Mirrors the
|
|
194
|
-
* spec's "direct writes to the underlying overlay collection skip
|
|
195
|
-
* the validation" escape hatch.
|
|
196
|
-
*/
|
|
197
|
-
overlay = {
|
|
198
|
-
rowKey: (row) => {
|
|
199
|
-
if (!this.baseRowKey) {
|
|
200
|
-
throw new Error(
|
|
201
|
-
`Overlay "${this.spec.name}": base "${this.spec.base}" is not an MV \u2014 cannot auto-derive id from the row. Use \`put(id, record)\` instead.`
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
return this.baseRowKey(row);
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
/** Get the merged row by id. */
|
|
208
|
-
async get(id) {
|
|
209
|
-
const overlayRow = await this.overlayCollection.get(id);
|
|
210
|
-
if (overlayRow !== null && this.shadowPredicateApplies(overlayRow)) {
|
|
211
|
-
return overlayRow;
|
|
212
|
-
}
|
|
213
|
-
const baseRow = await this.baseCollection.get(id);
|
|
214
|
-
if (baseRow !== null) return baseRow;
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
/** List union of base + overlay ids, applying the merge per row. */
|
|
218
|
-
async list() {
|
|
219
|
-
const baseRows = await this.baseCollection.list();
|
|
220
|
-
const overlayRows = await this.overlayCollection.list();
|
|
221
|
-
const merged = /* @__PURE__ */ new Map();
|
|
222
|
-
const idOf = (row) => {
|
|
223
|
-
if (this.baseRowKey) return this.baseRowKey(row);
|
|
224
|
-
const idField = row.id;
|
|
225
|
-
return typeof idField === "string" ? idField : "";
|
|
226
|
-
};
|
|
227
|
-
for (const row of baseRows) {
|
|
228
|
-
const id = idOf(row);
|
|
229
|
-
if (id) merged.set(id, row);
|
|
230
|
-
}
|
|
231
|
-
for (const row of overlayRows) {
|
|
232
|
-
const id = idOf(row);
|
|
233
|
-
if (!id) continue;
|
|
234
|
-
if (this.shadowPredicateApplies(row)) {
|
|
235
|
-
merged.set(id, row);
|
|
236
|
-
} else if (!merged.has(id)) {
|
|
237
|
-
continue;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return [...merged.values()];
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Write to the overlay. Two forms:
|
|
244
|
-
* - `put(record)`: id is derived via the base MV's `rowKey(record)`.
|
|
245
|
-
* Throws if the base isn't an MV.
|
|
246
|
-
* - `put(id, record)`: validates `id === rowKey(record)`; throws
|
|
247
|
-
* `OverlayIdMismatchError` on mismatch.
|
|
248
|
-
*/
|
|
249
|
-
async put(idOrRecord, maybeRecord) {
|
|
250
|
-
let id;
|
|
251
|
-
let record;
|
|
252
|
-
if (maybeRecord === void 0) {
|
|
253
|
-
record = idOrRecord;
|
|
254
|
-
if (!this.baseRowKey) {
|
|
255
|
-
throw new Error(
|
|
256
|
-
`Overlay "${this.spec.name}".put(record): base "${this.spec.base}" is not an MV. Use put(id, record) explicitly.`
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
id = this.baseRowKey(record);
|
|
260
|
-
} else {
|
|
261
|
-
id = idOrRecord;
|
|
262
|
-
record = maybeRecord;
|
|
263
|
-
if (this.baseRowKey) {
|
|
264
|
-
const expected = this.baseRowKey(record);
|
|
265
|
-
if (id !== expected) {
|
|
266
|
-
throw new OverlayIdMismatchError(id, expected);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
await this.overlayCollection.put(id, record);
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Remove the overlay row only. Idempotent (no-op on absent).
|
|
274
|
-
* The base row is untouched — if a base row exists for `id`,
|
|
275
|
-
* subsequent reads return it.
|
|
276
|
-
*/
|
|
277
|
-
async delete(id) {
|
|
278
|
-
await this.overlayCollection.delete(id);
|
|
279
|
-
}
|
|
280
|
-
/** True when `overlay[shadowField] === shadowValue`. */
|
|
281
|
-
shadowPredicateApplies(row) {
|
|
282
|
-
return row[this.spec.shadowField] === this.spec.shadowValue;
|
|
283
|
-
}
|
|
284
|
-
// ─── Throw-stubs for the unimplemented Collection<T> surface ───────
|
|
285
|
-
//
|
|
286
|
-
// `Vault.collection(name)` widens the return type to `Collection<T>`
|
|
287
|
-
// for the overlay intercept, but `OverlayedCollection` doesn't
|
|
288
|
-
// implement the full surface. These stubs catch the common
|
|
289
|
-
// reactive / chainable APIs with a clear "not yet implemented"
|
|
290
|
-
// error pointing at the relevant issue — so consumers don't hit a
|
|
291
|
-
// cryptic `undefined is not a function` runtime crash.
|
|
292
|
-
//
|
|
293
|
-
// Throw-stubs so consumers get actionable errors rather than cryptic crashes.
|
|
294
|
-
/** @throws — chainable Query<T> over a virtual collection is deferred. */
|
|
295
|
-
query() {
|
|
296
|
-
throw new Error(
|
|
297
|
-
`OverlayedCollection "${this.spec.name}".query() is not yet implemented for overlay views (#154). Use \`list()\` + filter for now, or read from the underlying \`${this.spec.base}\` / \`${this.spec.overlay}\` collections directly. Reactive APIs land in a future MV sub-issue.`
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
/** @throws — change-stream subscription over a virtual collection is deferred. */
|
|
301
|
-
subscribe() {
|
|
302
|
-
throw new Error(
|
|
303
|
-
`OverlayedCollection "${this.spec.name}".subscribe() is not yet implemented for overlay views (#154). Subscribe to the underlying \`${this.spec.base}\` / \`${this.spec.overlay}\` collections individually for now. Merged change-stream lands in a future MV sub-issue.`
|
|
304
|
-
);
|
|
305
|
-
}
|
|
306
|
-
/** @throws — live query over a virtual collection is deferred. */
|
|
307
|
-
live() {
|
|
308
|
-
throw new Error(
|
|
309
|
-
`OverlayedCollection "${this.spec.name}".live() is not yet implemented for overlay views (#154). Reactive APIs land in a future MV sub-issue.`
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
/** @throws — async iteration over a virtual collection is deferred. */
|
|
313
|
-
scan() {
|
|
314
|
-
throw new Error(
|
|
315
|
-
`OverlayedCollection "${this.spec.name}".scan() is not yet implemented for overlay views (#154). Use \`list()\` for now (no row-count ceiling at niwat scale), or scan the underlying collections directly.`
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
/** @throws — lazy-mode query is not applicable to virtual collections. */
|
|
319
|
-
lazyQuery() {
|
|
320
|
-
throw new Error(
|
|
321
|
-
`OverlayedCollection "${this.spec.name}".lazyQuery() is not supported. Virtual collections always materialize through base + overlay reads \u2014 lazy-mode indexed lookups don't apply.`
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
/** @throws — bulk-atomic put is deferred to a future MV sub-issue. */
|
|
325
|
-
putManyAtomic() {
|
|
326
|
-
throw new Error(
|
|
327
|
-
`OverlayedCollection "${this.spec.name}".putManyAtomic() is not yet implemented for overlay views (#154). Use sequential \`.put(record)\` calls for now, or write to \`${this.spec.overlay}\` directly.`
|
|
328
|
-
);
|
|
329
|
-
}
|
|
330
|
-
/** @throws — bulk delete is deferred to a future MV sub-issue. */
|
|
331
|
-
deleteMany() {
|
|
332
|
-
throw new Error(
|
|
333
|
-
`OverlayedCollection "${this.spec.name}".deleteMany() is not yet implemented for overlay views (#154). Use sequential \`.delete(id)\` calls for now, or operate on \`${this.spec.overlay}\` directly.`
|
|
334
|
-
);
|
|
335
|
-
}
|
|
336
|
-
/** @throws — `.first()` over a virtual collection is deferred. */
|
|
337
|
-
first() {
|
|
338
|
-
throw new Error(
|
|
339
|
-
`OverlayedCollection "${this.spec.name}".first() is not yet implemented for overlay views (#154). Use \`(await list())[0]\` for now.`
|
|
340
|
-
);
|
|
341
|
-
}
|
|
342
|
-
/** @throws — `.count()` over a virtual collection is deferred. */
|
|
343
|
-
count() {
|
|
344
|
-
throw new Error(
|
|
345
|
-
`OverlayedCollection "${this.spec.name}".count() is not yet implemented for overlay views (#154). Use \`(await list()).length\` for now.`
|
|
346
|
-
);
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
350
|
-
0 && (module.exports = {
|
|
351
|
-
OverlayBaseIsVirtualError,
|
|
352
|
-
OverlayCollectionUnavailableError,
|
|
353
|
-
OverlayIdMismatchError,
|
|
354
|
-
OverlayNameCollisionError,
|
|
355
|
-
OverlayedCollection,
|
|
356
|
-
OverlayedViewRegistry,
|
|
357
|
-
withOverlayedView
|
|
358
|
-
});
|
|
359
|
-
//# sourceMappingURL=index.cjs.map
|