@noy-db/hub 0.2.0-pre.9 → 0.3.0-pre.1
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-XV3IOEGB.js +217 -0
- package/dist/backup-XV3IOEGB.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-CH-H06dp.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-2P2HZEXU.js +233 -0
- package/dist/chunk-2P2HZEXU.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-6CME4UEK.js → chunk-5R5JW2JT.js} +7000 -4827
- package/dist/chunk-5R5JW2JT.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-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-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-aBkJR2sd.d.ts +131 -0
- package/dist/{dev-unlock-B4kDxep_.d.ts → dev-unlock-C9Ro3v_O.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-Cp5uwiox.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-BF9_96A5.d.ts +123 -0
- package/dist/{types-Df28QFKb.d.ts → index-BzUo1B6n.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-CGhw37_E.d.ts +103 -0
- package/dist/noydb-367AM4HT.js +50 -0
- package/dist/noydb-367AM4HT.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-C7ol6oPw.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-B5fYNBL7.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-6p0Fk8bL.d.ts} +1 -1
- package/dist/{with-overlayed-view-CRsSEwHR.d.ts → with-overlayed-view-BJ6mXGMd.d.ts} +2 -3
- package/dist/with-rollup-BvQo3ROo.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,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;
|
|
@@ -534,6 +648,36 @@ var ScriptViolationError = class extends NoydbError {
|
|
|
534
648
|
this.sample = sample;
|
|
535
649
|
}
|
|
536
650
|
};
|
|
651
|
+
var StaticDictReadonlyError = class extends NoydbError {
|
|
652
|
+
/** The static dictionary name that was the target of the mutation. */
|
|
653
|
+
dictionaryName;
|
|
654
|
+
constructor(dictionaryName) {
|
|
655
|
+
super(
|
|
656
|
+
"STATIC_DICT_READONLY",
|
|
657
|
+
`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.`
|
|
658
|
+
);
|
|
659
|
+
this.name = "StaticDictReadonlyError";
|
|
660
|
+
this.dictionaryName = dictionaryName;
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
var UnknownDictCodeError = class extends NoydbError {
|
|
664
|
+
/** The static dictionary name. */
|
|
665
|
+
dictionaryName;
|
|
666
|
+
/** The field that carried the unknown code. */
|
|
667
|
+
field;
|
|
668
|
+
/** The offending code value. */
|
|
669
|
+
code;
|
|
670
|
+
constructor(dictionaryName, field, code) {
|
|
671
|
+
super(
|
|
672
|
+
"UNKNOWN_DICT_CODE",
|
|
673
|
+
`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.`
|
|
674
|
+
);
|
|
675
|
+
this.name = "UnknownDictCodeError";
|
|
676
|
+
this.dictionaryName = dictionaryName;
|
|
677
|
+
this.field = field;
|
|
678
|
+
this.code = code;
|
|
679
|
+
}
|
|
680
|
+
};
|
|
537
681
|
var TranslatorNotConfiguredError = class extends NoydbError {
|
|
538
682
|
/** The field that requested auto-translation. */
|
|
539
683
|
field;
|
|
@@ -593,6 +737,48 @@ var AttestationError = class extends NoydbError {
|
|
|
593
737
|
this.name = "AttestationError";
|
|
594
738
|
}
|
|
595
739
|
};
|
|
740
|
+
var AttestationNotEnabledError = class extends NoydbError {
|
|
741
|
+
constructor(message = 'Attestation requires the attestation capability. Pass `attestationStrategy: withAttestation()` from "@noy-db/hub/attestation" to createNoydb().') {
|
|
742
|
+
super("ATTESTATION_NOT_ENABLED", message);
|
|
743
|
+
this.name = "AttestationNotEnabledError";
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
var TiersNotEnabledError = class extends NoydbError {
|
|
747
|
+
constructor(message = 'Hierarchical tiers require the tiers capability. Pass `tiersStrategy: withTiers()` from "@noy-db/hub/tiers" to createNoydb().') {
|
|
748
|
+
super("TIERS_NOT_ENABLED", message);
|
|
749
|
+
this.name = "TiersNotEnabledError";
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
var SealedRecordNotEnabledError = class extends NoydbError {
|
|
753
|
+
constructor(message = 'Record-scoped CEK sealing requires the sealed-record capability. Pass `sealedRecordStrategy: withSealedRecord()` from "@noy-db/hub/sealed-record" to createNoydb().') {
|
|
754
|
+
super("SEALED_RECORD_NOT_ENABLED", message);
|
|
755
|
+
this.name = "SealedRecordNotEnabledError";
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
var PortabilityNotEnabledError = class extends NoydbError {
|
|
759
|
+
constructor(message = 'Data portability (export/withdrawal) requires the portability capability. Pass `portabilityStrategy: withPortability()` from "@noy-db/hub/portability" to createNoydb().') {
|
|
760
|
+
super("PORTABILITY_NOT_ENABLED", message);
|
|
761
|
+
this.name = "PortabilityNotEnabledError";
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
var CustodyNotEnabledError = class extends NoydbError {
|
|
765
|
+
constructor(message = "Sovereign custody (grant/revoke custodian, liberate) requires the custody capability. Pass `custodyStrategy: withCustody()` to createNoydb().") {
|
|
766
|
+
super("CUSTODY_NOT_ENABLED", message);
|
|
767
|
+
this.name = "CustodyNotEnabledError";
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
var SearchNotEnabledError = class extends NoydbError {
|
|
771
|
+
constructor(message = "Search / retrieval (search, retrieve, similarTo, warmIndex, flushIndex, and embedding compute) requires the search capability. Pass `searchStrategy: withSearch()` to createNoydb().") {
|
|
772
|
+
super("SEARCH_NOT_ENABLED", message);
|
|
773
|
+
this.name = "SearchNotEnabledError";
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
var CargoNotEnabledError = class extends NoydbError {
|
|
777
|
+
constructor(message = 'Partition extraction (extractPartition) requires the cargo capability. Pass `cargoStrategy: withCargo()` from "@noy-db/hub/cargo" to createNoydb().') {
|
|
778
|
+
super("CARGO_NOT_ENABLED", message);
|
|
779
|
+
this.name = "CargoNotEnabledError";
|
|
780
|
+
}
|
|
781
|
+
};
|
|
596
782
|
var SessionExpiredError = class extends NoydbError {
|
|
597
783
|
sessionId;
|
|
598
784
|
constructor(sessionId) {
|
|
@@ -863,9 +1049,209 @@ var SnapshotNotFoundError = class extends NoydbError {
|
|
|
863
1049
|
this.version = version;
|
|
864
1050
|
}
|
|
865
1051
|
};
|
|
1052
|
+
var UnknownShardError = class extends NoydbError {
|
|
1053
|
+
partitionKey;
|
|
1054
|
+
constructor(partitionKey, groupName) {
|
|
1055
|
+
super(
|
|
1056
|
+
"SHARD_UNKNOWN",
|
|
1057
|
+
`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.`
|
|
1058
|
+
);
|
|
1059
|
+
this.name = "UnknownShardError";
|
|
1060
|
+
this.partitionKey = partitionKey;
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
var ShardProvisioningError = class extends NoydbError {
|
|
1064
|
+
vaultId;
|
|
1065
|
+
constructor(vaultId, partitionKey) {
|
|
1066
|
+
super(
|
|
1067
|
+
"SHARD_PROVISIONING",
|
|
1068
|
+
`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.`
|
|
1069
|
+
);
|
|
1070
|
+
this.name = "ShardProvisioningError";
|
|
1071
|
+
this.vaultId = vaultId;
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
var DataResidencyError = class extends NoydbError {
|
|
1075
|
+
vaultId;
|
|
1076
|
+
requiredRegion;
|
|
1077
|
+
backendRegion;
|
|
1078
|
+
constructor(vaultId, requiredRegion, backendRegion) {
|
|
1079
|
+
super(
|
|
1080
|
+
"DATA_RESIDENCY",
|
|
1081
|
+
`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.`
|
|
1082
|
+
);
|
|
1083
|
+
this.name = "DataResidencyError";
|
|
1084
|
+
this.vaultId = vaultId;
|
|
1085
|
+
this.requiredRegion = requiredRegion;
|
|
1086
|
+
this.backendRegion = backendRegion;
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
var CrossShardJoinError = class extends NoydbError {
|
|
1090
|
+
constructor(message) {
|
|
1091
|
+
super("CROSS_SHARD_JOIN", message);
|
|
1092
|
+
this.name = "CrossShardJoinError";
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
var VaultTemplateNotFoundError = class extends NoydbError {
|
|
1096
|
+
templateName;
|
|
1097
|
+
constructor(templateName) {
|
|
1098
|
+
super(
|
|
1099
|
+
"VAULT_TEMPLATE_NOT_FOUND",
|
|
1100
|
+
`No vault template registered under "${templateName}". Register the template before opening the vault group.`
|
|
1101
|
+
);
|
|
1102
|
+
this.name = "VaultTemplateNotFoundError";
|
|
1103
|
+
this.templateName = templateName;
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
var ForgetStrategyNotConfiguredError = class extends NoydbError {
|
|
1107
|
+
constructor(message = 'vault.forget() requires a forget strategy. Pass `forgetStrategy: withForgetCascade({ subjects: { <collection>: <subjectField> } })` from "@noy-db/hub/forget" to createNoydb().') {
|
|
1108
|
+
super("FORGET_NOT_CONFIGURED", message);
|
|
1109
|
+
this.name = "ForgetStrategyNotConfiguredError";
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
var SealedRecordExpiredError = class extends NoydbError {
|
|
1113
|
+
expiresAt;
|
|
1114
|
+
constructor(expiresAt) {
|
|
1115
|
+
super(
|
|
1116
|
+
"SEALED_RECORD_EXPIRED",
|
|
1117
|
+
`Sealed record CEK expired at ${expiresAt}. The grantor must re-seal the record with a later expiresAt.`
|
|
1118
|
+
);
|
|
1119
|
+
this.name = "SealedRecordExpiredError";
|
|
1120
|
+
this.expiresAt = expiresAt;
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
var SealedRecordMismatchError = class extends NoydbError {
|
|
1124
|
+
expected;
|
|
1125
|
+
actual;
|
|
1126
|
+
constructor(expected, actual) {
|
|
1127
|
+
super(
|
|
1128
|
+
"SEALED_RECORD_MISMATCH",
|
|
1129
|
+
`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.`
|
|
1130
|
+
);
|
|
1131
|
+
this.name = "SealedRecordMismatchError";
|
|
1132
|
+
this.expected = expected;
|
|
1133
|
+
this.actual = actual;
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
var RecordCekNotFoundError = class extends NoydbError {
|
|
1137
|
+
collection;
|
|
1138
|
+
id;
|
|
1139
|
+
constructor(collection, id) {
|
|
1140
|
+
super(
|
|
1141
|
+
"RECORD_CEK_NOT_FOUND",
|
|
1142
|
+
`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.`
|
|
1143
|
+
);
|
|
1144
|
+
this.name = "RecordCekNotFoundError";
|
|
1145
|
+
this.collection = collection;
|
|
1146
|
+
this.id = id;
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
var EmbeddingDimMismatchError = class extends NoydbError {
|
|
1150
|
+
field;
|
|
1151
|
+
expected;
|
|
1152
|
+
actual;
|
|
1153
|
+
constructor(field, expected, actual) {
|
|
1154
|
+
super(
|
|
1155
|
+
"EMBEDDING_DIM_MISMATCH",
|
|
1156
|
+
`Embedding for "${field}" has dim ${actual}, expected ${expected}.`
|
|
1157
|
+
);
|
|
1158
|
+
this.name = "EmbeddingDimMismatchError";
|
|
1159
|
+
this.field = field;
|
|
1160
|
+
this.expected = expected;
|
|
1161
|
+
this.actual = actual;
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
var EmbeddingModelMismatchError = class extends NoydbError {
|
|
1165
|
+
expected;
|
|
1166
|
+
found;
|
|
1167
|
+
constructor(expected, found) {
|
|
1168
|
+
super(
|
|
1169
|
+
"EMBEDDING_MODEL_MISMATCH",
|
|
1170
|
+
`Embedding model mismatch: collection uses "${expected}" but a stored vector is "${found}". Run vault.embeddings.reindex() after changing the encoder.`
|
|
1171
|
+
);
|
|
1172
|
+
this.name = "EmbeddingModelMismatchError";
|
|
1173
|
+
this.expected = expected;
|
|
1174
|
+
this.found = found;
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1177
|
+
var UserEnvelopeOversizedError = class extends NoydbError {
|
|
1178
|
+
bytes;
|
|
1179
|
+
limit;
|
|
1180
|
+
constructor(bytes, limit = USER_ENVELOPE_MAX_BYTES) {
|
|
1181
|
+
super(
|
|
1182
|
+
"USER_ENVELOPE_OVERSIZED",
|
|
1183
|
+
`User envelope payload is ${bytes} bytes; soft cap is ${limit} bytes. Move large data into the vault's regular collections.`
|
|
1184
|
+
);
|
|
1185
|
+
this.name = "UserEnvelopeOversizedError";
|
|
1186
|
+
this.bytes = bytes;
|
|
1187
|
+
this.limit = limit;
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
var PolicyDeniedError = class extends NoydbError {
|
|
1191
|
+
gate;
|
|
1192
|
+
reason;
|
|
1193
|
+
required;
|
|
1194
|
+
constructor(gate, reason, required, message) {
|
|
1195
|
+
super(
|
|
1196
|
+
"POLICY_DENIED",
|
|
1197
|
+
message ?? `Gate "${gate}" denied: ${reason}.`
|
|
1198
|
+
);
|
|
1199
|
+
this.name = "PolicyDeniedError";
|
|
1200
|
+
this.gate = gate;
|
|
1201
|
+
this.reason = reason;
|
|
1202
|
+
this.required = required;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
var RecoveryNotEnrolledError = class extends NoydbError {
|
|
1206
|
+
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.') {
|
|
1207
|
+
super("RECOVERY_NOT_ENROLLED", message);
|
|
1208
|
+
this.name = "RecoveryNotEnrolledError";
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
var ManagedRecoveryNotEnrolledError = class extends NoydbError {
|
|
1212
|
+
vault;
|
|
1213
|
+
constructor(vault) {
|
|
1214
|
+
super(
|
|
1215
|
+
"MANAGED_RECOVERY_NOT_ENROLLED",
|
|
1216
|
+
`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\`.`
|
|
1217
|
+
);
|
|
1218
|
+
this.name = "ManagedRecoveryNotEnrolledError";
|
|
1219
|
+
this.vault = vault;
|
|
1220
|
+
}
|
|
1221
|
+
};
|
|
1222
|
+
var RecoveryProfileNotImplementedError = class extends NoydbError {
|
|
1223
|
+
profile;
|
|
1224
|
+
tracking;
|
|
1225
|
+
constructor(profile, tracking) {
|
|
1226
|
+
super(
|
|
1227
|
+
"RECOVERY_PROFILE_NOT_IMPLEMENTED",
|
|
1228
|
+
`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.`
|
|
1229
|
+
);
|
|
1230
|
+
this.name = "RecoveryProfileNotImplementedError";
|
|
1231
|
+
this.profile = profile;
|
|
1232
|
+
this.tracking = tracking;
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
var EnclaveNotSupportedError = class extends NoydbError {
|
|
1236
|
+
/** The optional group that is not supported by this enclave. */
|
|
1237
|
+
group;
|
|
1238
|
+
constructor(group, detail) {
|
|
1239
|
+
super(
|
|
1240
|
+
"ENCLAVE_NOT_SUPPORTED",
|
|
1241
|
+
`enclave: ${group} is not supported by this enclave${detail ? ` \u2014 ${detail}` : ""}`
|
|
1242
|
+
);
|
|
1243
|
+
this.name = "EnclaveNotSupportedError";
|
|
1244
|
+
this.group = group;
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
866
1247
|
|
|
867
1248
|
export {
|
|
1249
|
+
STATE_VAULT_NAME,
|
|
1250
|
+
USER_ENVELOPE_MAX_BYTES,
|
|
1251
|
+
USER_ENVELOPE_COLLECTION,
|
|
868
1252
|
NoydbError,
|
|
1253
|
+
DebugPlaintextError,
|
|
1254
|
+
DebugReservedFieldError,
|
|
869
1255
|
DecryptionError,
|
|
870
1256
|
TamperedError,
|
|
871
1257
|
InvalidKeyError,
|
|
@@ -880,9 +1266,11 @@ export {
|
|
|
880
1266
|
ImportCapabilityError,
|
|
881
1267
|
StoreCapabilityError,
|
|
882
1268
|
PrivilegeEscalationError,
|
|
1269
|
+
ReservedVaultNameError,
|
|
883
1270
|
PeriodClosedError,
|
|
884
1271
|
RecordLockedError,
|
|
885
1272
|
FieldFrozenError,
|
|
1273
|
+
IllegalTransitionError,
|
|
886
1274
|
InvariantError,
|
|
887
1275
|
AmendmentForbiddenError,
|
|
888
1276
|
DirectoryDisabledError,
|
|
@@ -893,6 +1281,11 @@ export {
|
|
|
893
1281
|
DelegationTargetMissingError,
|
|
894
1282
|
ConflictError,
|
|
895
1283
|
LedgerContentionError,
|
|
1284
|
+
SequenceContentionError,
|
|
1285
|
+
SequenceOfflineError,
|
|
1286
|
+
SequenceNotEnabledError,
|
|
1287
|
+
NumberingUncertaintyError,
|
|
1288
|
+
PodVersionConflictError,
|
|
896
1289
|
BundleVersionConflictError,
|
|
897
1290
|
NetworkError,
|
|
898
1291
|
NotFoundError,
|
|
@@ -906,6 +1299,8 @@ export {
|
|
|
906
1299
|
QuiesceTimeoutError,
|
|
907
1300
|
GroupCardinalityError,
|
|
908
1301
|
IndexRequiredError,
|
|
1302
|
+
UniqueConstraintError,
|
|
1303
|
+
UnsupportedIndexOptionError,
|
|
909
1304
|
IndexWriteFailureError,
|
|
910
1305
|
BundleIntegrityError,
|
|
911
1306
|
BundleSealMismatchError,
|
|
@@ -915,6 +1310,8 @@ export {
|
|
|
915
1310
|
MissingTranslationError,
|
|
916
1311
|
LocaleNotSpecifiedError,
|
|
917
1312
|
ScriptViolationError,
|
|
1313
|
+
StaticDictReadonlyError,
|
|
1314
|
+
UnknownDictCodeError,
|
|
918
1315
|
TranslatorNotConfiguredError,
|
|
919
1316
|
BackupLedgerError,
|
|
920
1317
|
BackupCorruptedError,
|
|
@@ -922,6 +1319,13 @@ export {
|
|
|
922
1319
|
TransferSealError,
|
|
923
1320
|
AdoptionStateError,
|
|
924
1321
|
AttestationError,
|
|
1322
|
+
AttestationNotEnabledError,
|
|
1323
|
+
TiersNotEnabledError,
|
|
1324
|
+
SealedRecordNotEnabledError,
|
|
1325
|
+
PortabilityNotEnabledError,
|
|
1326
|
+
CustodyNotEnabledError,
|
|
1327
|
+
SearchNotEnabledError,
|
|
1328
|
+
CargoNotEnabledError,
|
|
925
1329
|
SessionExpiredError,
|
|
926
1330
|
SessionNotFoundError,
|
|
927
1331
|
SessionPolicyError,
|
|
@@ -944,6 +1348,23 @@ export {
|
|
|
944
1348
|
OverlayCollectionUnavailableError,
|
|
945
1349
|
OverlayNameCollisionError,
|
|
946
1350
|
OverlayIdMismatchError,
|
|
947
|
-
SnapshotNotFoundError
|
|
948
|
-
|
|
949
|
-
|
|
1351
|
+
SnapshotNotFoundError,
|
|
1352
|
+
UnknownShardError,
|
|
1353
|
+
ShardProvisioningError,
|
|
1354
|
+
DataResidencyError,
|
|
1355
|
+
CrossShardJoinError,
|
|
1356
|
+
VaultTemplateNotFoundError,
|
|
1357
|
+
ForgetStrategyNotConfiguredError,
|
|
1358
|
+
SealedRecordExpiredError,
|
|
1359
|
+
SealedRecordMismatchError,
|
|
1360
|
+
RecordCekNotFoundError,
|
|
1361
|
+
EmbeddingDimMismatchError,
|
|
1362
|
+
EmbeddingModelMismatchError,
|
|
1363
|
+
UserEnvelopeOversizedError,
|
|
1364
|
+
PolicyDeniedError,
|
|
1365
|
+
RecoveryNotEnrolledError,
|
|
1366
|
+
ManagedRecoveryNotEnrolledError,
|
|
1367
|
+
RecoveryProfileNotImplementedError,
|
|
1368
|
+
EnclaveNotSupportedError
|
|
1369
|
+
};
|
|
1370
|
+
//# sourceMappingURL=chunk-ZYUC53LT.js.map
|