@noy-db/hub 0.6.0-pre.2 → 0.6.0-pre.20
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/codemods/0.4.0-pre.json +699 -0
- package/codemods/0.6.0-pre.json +211 -0
- package/dist/api-Z5VHH24A.js +20 -0
- package/dist/attestation/index.js +19 -19
- package/dist/{backup-YYBE5RPC.js → backup-K62BFMYK.js} +36 -18
- package/dist/backup-K62BFMYK.js.map +1 -0
- package/dist/blobs/index.js +13 -13
- package/dist/broker/index.js +12 -12
- package/dist/cargo/index.js +33 -33
- package/dist/{chunk-FDX7OWWI.js → chunk-2E2MKBMI.js} +2 -2
- package/dist/{chunk-VOQW5LAM.js → chunk-2IK6AC6A.js} +102 -71
- package/dist/chunk-2IK6AC6A.js.map +1 -0
- package/dist/{chunk-EDXAQ6JI.js → chunk-32O2N2CH.js} +87 -34
- package/dist/chunk-32O2N2CH.js.map +1 -0
- package/dist/{chunk-W5W6KHN2.js → chunk-3Y4OFWQJ.js} +1 -1
- package/dist/chunk-3Y4OFWQJ.js.map +1 -0
- package/dist/{chunk-7G6VDWXB.js → chunk-437FDIHO.js} +3 -3
- package/dist/chunk-437FDIHO.js.map +1 -0
- package/dist/{chunk-3FSX6LDG.js → chunk-47ZFULEZ.js} +8 -3
- package/dist/{chunk-3FSX6LDG.js.map → chunk-47ZFULEZ.js.map} +1 -1
- package/dist/{chunk-ZJADGNYF.js → chunk-4AOERLTV.js} +1 -1
- package/dist/chunk-4AOERLTV.js.map +1 -0
- package/dist/{chunk-MWKDOHEF.js → chunk-4HVTRHSA.js} +17 -10
- package/dist/chunk-4HVTRHSA.js.map +1 -0
- package/dist/{chunk-V5KYPBUR.js → chunk-5BS6IQZZ.js} +11 -14
- package/dist/chunk-5BS6IQZZ.js.map +1 -0
- package/dist/{chunk-LWSJG3LI.js → chunk-5EJQNA26.js} +7 -3
- package/dist/chunk-5EJQNA26.js.map +1 -0
- package/dist/{chunk-7F4DBNSP.js → chunk-5J5TTSGW.js} +3 -3
- package/dist/{chunk-BTVYJWSN.js → chunk-5JT4Y5UE.js} +10 -10
- package/dist/{chunk-C2OOEM57.js → chunk-6S466CMQ.js} +92 -35
- package/dist/chunk-6S466CMQ.js.map +1 -0
- package/dist/{chunk-PY7CI6L5.js → chunk-6TXUVKPG.js} +516 -263
- package/dist/chunk-6TXUVKPG.js.map +1 -0
- package/dist/{chunk-7NXHMW6Y.js → chunk-7RCZ436O.js} +2 -2
- package/dist/{chunk-DG27IUVI.js → chunk-A3NTKHDB.js} +2 -2
- package/dist/{chunk-CCZJJ4I2.js → chunk-A4K5GLE6.js} +4 -4
- package/dist/{chunk-CEJWMBXO.js → chunk-APV42WPR.js} +2 -2
- package/dist/{chunk-4HDYQL3J.js → chunk-AQF7JSQR.js} +2 -2
- package/dist/{chunk-KUDZVJKQ.js → chunk-BP4I7IBK.js} +2 -2
- package/dist/{chunk-4UVDI4XE.js → chunk-BTNKPDZM.js} +4 -4
- package/dist/{chunk-HVQGCKY4.js → chunk-C7WJNVJG.js} +2 -2
- package/dist/{chunk-WYZ5MYUA.js → chunk-CV7WXCZD.js} +44 -42
- package/dist/chunk-CV7WXCZD.js.map +1 -0
- package/dist/{chunk-KCQX65FU.js → chunk-CVYXIN5B.js} +3 -3
- package/dist/{chunk-VN45YLWM.js → chunk-D5UDZANO.js} +255 -132
- package/dist/chunk-D5UDZANO.js.map +1 -0
- package/dist/{chunk-AR2JDFAE.js → chunk-DJ23QZIN.js} +2 -2
- package/dist/{chunk-PJNTR2NV.js → chunk-DKYEVHZH.js} +7 -10
- package/dist/chunk-DKYEVHZH.js.map +1 -0
- package/dist/{chunk-SZ2K3MHL.js → chunk-DYASJSKI.js} +8 -11
- package/dist/{chunk-SZ2K3MHL.js.map → chunk-DYASJSKI.js.map} +1 -1
- package/dist/{chunk-G5APARUV.js → chunk-E6VDPBE3.js} +13 -15
- package/dist/chunk-E6VDPBE3.js.map +1 -0
- package/dist/{chunk-A67356IR.js → chunk-EG6AQBYW.js} +33 -8
- package/dist/chunk-EG6AQBYW.js.map +1 -0
- package/dist/{chunk-PVU7LW5L.js → chunk-EJIVFOOQ.js} +6 -6
- package/dist/{chunk-VRA4Q7DA.js → chunk-F5AJZC3U.js} +35 -47
- package/dist/chunk-F5AJZC3U.js.map +1 -0
- package/dist/{chunk-VMCCGUQB.js → chunk-GDGTIWB4.js} +2 -2
- package/dist/{chunk-FUHKW252.js → chunk-GILI76SU.js} +2 -2
- package/dist/{chunk-35EBKWQU.js → chunk-GT72D4FO.js} +4 -4
- package/dist/{chunk-PRDRGL73.js → chunk-GYUCRDAU.js} +17 -14
- package/dist/chunk-GYUCRDAU.js.map +1 -0
- package/dist/{chunk-JRCYZEHU.js → chunk-HGJC7I5F.js} +2 -2
- package/dist/{chunk-TOAIYQJR.js → chunk-HJRTFXAA.js} +7 -10
- package/dist/chunk-HJRTFXAA.js.map +1 -0
- package/dist/chunk-HK67PX4J.js +27 -0
- package/dist/chunk-HK67PX4J.js.map +1 -0
- package/dist/{chunk-JXIDGFKS.js → chunk-HTHRCGWP.js} +4 -2
- package/dist/chunk-HTHRCGWP.js.map +1 -0
- package/dist/{chunk-AHLJSVRL.js → chunk-HTMQBBF3.js} +5 -7
- package/dist/chunk-HTMQBBF3.js.map +1 -0
- package/dist/{chunk-ZNACADFG.js → chunk-ICCRAPWD.js} +4 -4
- package/dist/chunk-ICCRAPWD.js.map +1 -0
- package/dist/{chunk-66W5OOCX.js → chunk-IOURTXTM.js} +52 -65
- package/dist/chunk-IOURTXTM.js.map +1 -0
- package/dist/{chunk-MZ5ZFO2D.js → chunk-IPDS2TYW.js} +84 -112
- package/dist/chunk-IPDS2TYW.js.map +1 -0
- package/dist/{chunk-UIBGXRDD.js → chunk-JHO6FGZX.js} +25 -31
- package/dist/chunk-JHO6FGZX.js.map +1 -0
- package/dist/{chunk-YAWK6AWF.js → chunk-JIF3IBRK.js} +2 -2
- package/dist/{chunk-HNHCQ556.js → chunk-KBOPY6W2.js} +2 -2
- package/dist/{chunk-UHXCLPGC.js → chunk-KDX6VEYV.js} +2 -2
- package/dist/chunk-KDX6VEYV.js.map +1 -0
- package/dist/{chunk-W3TVWF6N.js → chunk-KM6YR5XF.js} +2 -2
- package/dist/{chunk-3737A6EA.js → chunk-KUXTWVAR.js} +75 -18
- package/dist/chunk-KUXTWVAR.js.map +1 -0
- package/dist/chunk-L2XQ776M.js +123 -0
- package/dist/chunk-L2XQ776M.js.map +1 -0
- package/dist/{chunk-E6427JU2.js → chunk-L6FSZFG7.js} +18 -2
- package/dist/chunk-L6FSZFG7.js.map +1 -0
- package/dist/{chunk-5PR33AC4.js → chunk-M4IKEOJS.js} +20 -17
- package/dist/chunk-M4IKEOJS.js.map +1 -0
- package/dist/{chunk-6HFM7EIT.js → chunk-MNMYHZVU.js} +2 -2
- package/dist/{chunk-NIVEDYJZ.js → chunk-MNUTPZRQ.js} +31 -49
- package/dist/chunk-MNUTPZRQ.js.map +1 -0
- package/dist/{chunk-VV4NSB7P.js → chunk-MQXYR65M.js} +15 -24
- package/dist/chunk-MQXYR65M.js.map +1 -0
- package/dist/{chunk-QD724WDJ.js → chunk-N2HKBESK.js} +4 -4
- package/dist/{chunk-Z45YRGFO.js → chunk-N7YAQKAO.js} +2 -2
- package/dist/{chunk-DMQCLZ4Z.js → chunk-NH2MST6J.js} +2 -2
- package/dist/{chunk-TAGFGKHP.js → chunk-NRNTXBHT.js} +7 -10
- package/dist/chunk-NRNTXBHT.js.map +1 -0
- package/dist/{chunk-I6SDX7WX.js → chunk-NYSD43OE.js} +16 -22
- package/dist/chunk-NYSD43OE.js.map +1 -0
- package/dist/{chunk-I4F6PKUK.js → chunk-ODVIFBAQ.js} +16 -17
- package/dist/chunk-ODVIFBAQ.js.map +1 -0
- package/dist/{chunk-26JMGSSC.js → chunk-OIIAXFKM.js} +4 -4
- package/dist/chunk-OIIAXFKM.js.map +1 -0
- package/dist/{chunk-HXGUIPQB.js → chunk-OQLYMBJI.js} +3 -3
- package/dist/{chunk-RKKORO4M.js → chunk-OWGEHDT2.js} +10 -10
- package/dist/chunk-OWGEHDT2.js.map +1 -0
- package/dist/{chunk-HNGSV2YC.js → chunk-P7L3OQLL.js} +25 -10
- package/dist/chunk-P7L3OQLL.js.map +1 -0
- package/dist/{chunk-MSWYQLMQ.js → chunk-PG6PFMDC.js} +2 -2
- package/dist/{chunk-E7OBCBXS.js → chunk-PNAIDIP7.js} +13 -16
- package/dist/chunk-PNAIDIP7.js.map +1 -0
- package/dist/{chunk-GLKDWWNO.js → chunk-PZSS7MUM.js} +16 -14
- package/dist/chunk-PZSS7MUM.js.map +1 -0
- package/dist/{chunk-WKPJXWKR.js → chunk-QPIUFRUC.js} +3 -3
- package/dist/{chunk-JIUVJ4M7.js → chunk-REL4OLWW.js} +2 -2
- package/dist/{chunk-ERB6NDDW.js → chunk-RKDH6L53.js} +134 -33
- package/dist/chunk-RKDH6L53.js.map +1 -0
- package/dist/{chunk-VW6ZZGCG.js → chunk-RNSC2ARR.js} +3 -3
- package/dist/{chunk-WLYIROCJ.js → chunk-RORE2GX2.js} +2 -2
- package/dist/{chunk-TDJPS3T2.js → chunk-RQY5UWEL.js} +24 -19
- package/dist/chunk-RQY5UWEL.js.map +1 -0
- package/dist/{chunk-7TSYBD3E.js → chunk-RSFG7XHM.js} +2 -2
- package/dist/{chunk-FAXZQ5UF.js → chunk-S55DBWRC.js} +2 -2
- package/dist/{chunk-WHJKIZS7.js → chunk-SA77BQ7F.js} +27 -149
- package/dist/chunk-SA77BQ7F.js.map +1 -0
- package/dist/{chunk-747LRSOO.js → chunk-SFD2LL7G.js} +2 -2
- package/dist/{chunk-P7OG2ETF.js → chunk-SG3OQCRG.js} +3 -3
- package/dist/{chunk-55LKVALY.js → chunk-T7IR4N2S.js} +1 -3
- package/dist/chunk-T7IR4N2S.js.map +1 -0
- package/dist/{chunk-EP7VPR7Y.js → chunk-TC6MBEGH.js} +11 -8
- package/dist/chunk-TC6MBEGH.js.map +1 -0
- package/dist/{chunk-HFQ6LGIO.js → chunk-TENLCGYD.js} +12 -10
- package/dist/{chunk-HFQ6LGIO.js.map → chunk-TENLCGYD.js.map} +1 -1
- package/dist/{chunk-WQDTCJ6W.js → chunk-VEX2BQVX.js} +3 -3
- package/dist/{chunk-7VHY5E3X.js → chunk-VH2W6BOG.js} +7 -7
- package/dist/chunk-VHVMJWM6.js +201 -0
- package/dist/chunk-VHVMJWM6.js.map +1 -0
- package/dist/{chunk-VCETL77O.js → chunk-VJ4B3ZXY.js} +27 -7
- package/dist/chunk-VJ4B3ZXY.js.map +1 -0
- package/dist/{chunk-OF3L2SD6.js → chunk-W6NFONOV.js} +2 -2
- package/dist/{chunk-NJDQ4YSV.js → chunk-WBNXZU42.js} +4 -4
- package/dist/{chunk-FNSMZQS4.js → chunk-WKD5ESK4.js} +2 -2
- package/dist/{chunk-NKH7GSIH.js → chunk-XGQGWZ6D.js} +4 -4
- package/dist/chunk-YOT7D63X.js +190 -0
- package/dist/chunk-YOT7D63X.js.map +1 -0
- package/dist/{chunk-4MC5JRRX.js → chunk-YVTADFTC.js} +14 -15
- package/dist/chunk-YVTADFTC.js.map +1 -0
- package/dist/{chunk-GASWQ3XG.js → chunk-ZBDWKPBW.js} +15 -16
- package/dist/chunk-ZBDWKPBW.js.map +1 -0
- package/dist/{chunk-52QYGZHH.js → chunk-ZPMXYPBR.js} +2 -2
- package/dist/chunk-ZPMXYPBR.js.map +1 -0
- package/dist/chunk-ZVAFJQZB.js +66 -0
- package/dist/chunk-ZVAFJQZB.js.map +1 -0
- package/dist/{chunk-VJFMXYKP.js → chunk-ZWKF3CD3.js} +2 -2
- package/dist/{chunk-I4ZAO7F7.js → chunk-ZXW3X3DQ.js} +7 -11
- package/dist/chunk-ZXW3X3DQ.js.map +1 -0
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-FTOX7Q5L.js → classified-marker-PMDG3O36.js} +3 -3
- package/dist/collection-facade-ZJK5EB33.js +45 -0
- package/dist/{computed-6G5M3UPH.js → computed-UHCBRILW.js} +3 -3
- package/dist/consent/index.js +10 -10
- package/dist/cover/index.js +10 -3
- package/dist/custody/index.js +11 -11
- package/dist/{dead-filter-ENRIOQIE.js → dead-filter-777VWDER.js} +2 -2
- package/dist/debug/index.js +1 -1
- package/dist/{delegation-SSEPLXXO.js → delegation-4R5DU23X.js} +24 -23
- package/dist/delegation-4R5DU23X.js.map +1 -0
- package/dist/derivations/index.js +12 -12
- package/dist/derive-3WAS2G5T.js +22 -0
- package/dist/directory/index.js +10 -10
- package/dist/{dispatch-BDVGYC6X.js → dispatch-3EN6YCCS.js} +18 -18
- package/dist/{dispatch-RE74SH6L.js → dispatch-ASL257KG.js} +5 -5
- package/dist/{enclave-52VUXNRL.js → enclave-ZJS5R5RH.js} +25 -9
- package/dist/executor-GPM6DNWV.js +9 -0
- package/dist/executor-LJSMZ4IB.js +9 -0
- package/dist/executor-SHUVRZUJ.js +29 -0
- package/dist/export-accessible-GNY6DC6U.js +23 -0
- package/dist/extract-partition-BG3AF4NZ.js +38 -0
- package/dist/{fanout-sidecar-DTBIDOWF.js → fanout-sidecar-TFPWDOME.js} +18 -27
- package/dist/fanout-sidecar-TFPWDOME.js.map +1 -0
- package/dist/find-KX6OKHDP.js +11 -0
- package/dist/forget/index.js +9 -9
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +23 -20
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +14 -14
- package/dist/index.d.ts +32 -15
- package/dist/index.js +183 -191
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/introspection/index.js +11 -11
- package/dist/issue-PAUM7NCX.js +19 -0
- package/dist/kernel/enclave/crypto.d.ts +24 -4
- package/dist/kernel/enclave/index.d.ts +8 -2
- package/dist/kernel/enclave/record-aad.d.ts +131 -0
- package/dist/kernel/enclave/record-envelope.d.ts +76 -0
- package/dist/kernel/enclave/record-keys/envelope-body.d.ts +34 -2
- package/dist/kernel/enclave/record-keys/lifecycle.d.ts +22 -5
- package/dist/kernel/enclave/record-keys/record-codec.d.ts +47 -14
- package/dist/kernel/enclave/record-keys/rekey.d.ts +68 -0
- package/dist/kernel/enclave/record-keys/tombstone.d.ts +3 -2
- package/dist/kernel/errors.d.ts +23 -11
- package/dist/kernel/merge-authority.d.ts +25 -0
- package/dist/kernel/noydb.d.ts +9 -3
- package/dist/kernel/query/builder.d.ts +15 -2
- package/dist/kernel/query/join.d.ts +27 -0
- package/dist/kernel/sync-policy.d.ts +0 -2
- package/dist/kernel/tier-visibility.d.ts +15 -0
- package/dist/kernel/types.d.ts +125 -6
- package/dist/kernel/vault.d.ts +21 -17
- package/dist/kernel/via/index.d.ts +11 -2
- package/dist/{ledger-4WJL66BW.js → ledger-62CEPRPX.js} +11 -11
- package/dist/liberate-I6AOLWXW.js +24 -0
- package/dist/{link-set-N4ZPV6E6.js → link-set-ZRYNUHN3.js} +11 -11
- package/dist/{managed-secret-OTHS64IF.js → managed-secret-T2WB4O47.js} +11 -3
- package/dist/materialized-views/index.js +22 -21
- package/dist/money/index.js +12 -8
- package/dist/noydb-SS6EN7TK.js +84 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +22 -12
- package/dist/pod/index.js +75 -86
- package/dist/pod-handle-UPLXOGIK.js +41 -0
- package/dist/pod-handle-UPLXOGIK.js.map +1 -0
- package/dist/policy/index.js +11 -4
- package/dist/port/to/index.d.ts +4 -4
- package/dist/port/to/locator.d.ts +54 -8
- package/dist/port/with/i18n-strategy.d.ts +4 -1
- package/dist/port/with/lookup-strategy.d.ts +4 -1
- package/dist/port/with/merge-authority.d.ts +52 -0
- package/dist/port/with/service-bus.d.ts +0 -4
- package/dist/port/with/strategies.d.ts +2 -0
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-ZAG2CAIY.js → post-register-J4DEVNXK.js} +6 -6
- package/dist/query/index.js +3 -3
- package/dist/reduce/index.js +4 -4
- package/dist/register-UPD4GKBC.js +32 -0
- package/dist/registry-7KX2HWFS.js +18 -0
- package/dist/registry-PKYYEHEW.js +9 -0
- package/dist/registry-XHCYMD34.js +19 -0
- package/dist/registry-XIRTZHPC.js +9 -0
- package/dist/request-withdrawal-XZSESWZV.js +31 -0
- package/dist/{reveal-CMOJY4VO.js → reveal-525XWQU2.js} +6 -6
- package/dist/revoke-QI7YHQ2B.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +2 -2
- package/dist/sealed-record/index.js +20 -13
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +4 -4
- package/dist/{seed-UK4QRIUN.js → seed-SGIF3EN4.js} +19 -22
- package/dist/seed-SGIF3EN4.js.map +1 -0
- package/dist/sequence/index.js +9 -9
- package/dist/session/index.js +10 -10
- package/dist/shadow/index.js +2 -2
- package/dist/share-link/index.js +1 -1
- package/dist/signer-BZWDPGGN.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-ZWXSOWJI.js → stale-PQYPVCER.js} +10 -10
- package/dist/storage-MJHKNQRO.js +23 -0
- package/dist/{store-coordination-provider-PB6QZ57W.js → store-coordination-provider-TFHZLKHG.js} +18 -12
- package/dist/store-coordination-provider-TFHZLKHG.js.map +1 -0
- package/dist/sync/index.js +11 -11
- package/dist/team/index.js +15 -14
- package/dist/tiers/index.js +11 -10
- package/dist/to/index.js +17 -9
- package/dist/to/index.js.map +1 -1
- package/dist/transactions/index.js +4 -4
- package/dist/{ulid-PTAIMDG4.js → ulid-VQW6ERQN.js} +2 -2
- package/dist/util/index.js +1 -1
- package/dist/vault-head/index.js +115 -0
- package/dist/vault-head/index.js.map +1 -0
- package/dist/{verify-RO5RTZOJ.js → verify-J6DEOXP3.js} +5 -5
- package/dist/via/lookup/handle.d.ts +4 -1
- package/dist/via/money/exact.d.ts +44 -0
- package/dist/via/money/index.d.ts +2 -0
- package/dist/via/money/normalize.d.ts +20 -0
- package/dist/walk-BX4NSB5L.js +21 -0
- package/dist/with-audit/guards/immutable-guard.d.ts +14 -0
- package/dist/with-audit/periods/active.d.ts +28 -1
- package/dist/with-audit/periods/index.d.ts +4 -2
- package/dist/with-audit/periods/periods.d.ts +161 -6
- package/dist/with-audit/periods/strategy.d.ts +14 -5
- package/dist/with-audit/periods/vault-facade.d.ts +89 -10
- package/dist/with-audit/periods/window.d.ts +10 -0
- package/dist/with-audit/sealed-record/index.d.ts +13 -0
- package/dist/with-audit/tiers/index.d.ts +17 -2
- package/dist/with-cargo/adopt-partition.d.ts +1 -1
- package/dist/with-cargo/extract-partition.d.ts +1 -1
- package/dist/with-cargo/index.d.ts +2 -2
- package/dist/with-commit/history/history.d.ts +26 -0
- package/dist/with-commit/history/index.d.ts +2 -1
- package/dist/with-commit/history/ledger/store.d.ts +7 -1
- package/dist/with-commit/history/strategy.d.ts +11 -1
- package/dist/with-commit/numbering/index.d.ts +0 -5
- package/dist/with-commit/vault-head/active.d.ts +2 -0
- package/dist/with-commit/vault-head/head.d.ts +28 -0
- package/dist/with-commit/vault-head/index.d.ts +10 -0
- package/dist/with-commit/vault-head/strategy.d.ts +127 -0
- package/dist/with-commit/vault-head/verify.d.ts +90 -0
- package/dist/with-formula/materialized-views/types.d.ts +52 -0
- package/dist/with-party/directory/cover/storage.d.ts +0 -8
- package/dist/with-party/directory/storage.d.ts +0 -11
- package/dist/with-party/directory/visibility.d.ts +0 -21
- package/dist/with-party/policy/storage.d.ts +0 -10
- package/dist/with-party/team/index.d.ts +1 -1
- package/dist/with-party/team/keyring.d.ts +17 -3
- package/dist/with-party/team/tiers.d.ts +2 -1
- package/dist/with-pod/format.d.ts +10 -12
- package/dist/with-pod/index.d.ts +10 -10
- package/dist/with-pod/open.d.ts +2 -2
- package/dist/with-pod/pod-handle.d.ts +19 -0
- package/dist/with-pod/pod-store.d.ts +0 -8
- package/dist/with-pod/{bundle.d.ts → pod.d.ts} +26 -19
- package/dist/with-pod/ulid.d.ts +1 -1
- package/dist/with-shape/introspection/index.d.ts +1 -0
- package/dist/with-sync/engine.d.ts +54 -5
- package/dist/with-sync/strategy.d.ts +3 -0
- package/dist/withdraw-accessible-K4CPMH4C.js +28 -0
- package/package.json +12 -5
- package/dist/api-WVY3H3YH.js +0 -20
- package/dist/backup-YYBE5RPC.js.map +0 -1
- package/dist/bundle-handle-JEUWU2SJ.js +0 -36
- package/dist/bundle-handle-JEUWU2SJ.js.map +0 -1
- package/dist/chunk-26JMGSSC.js.map +0 -1
- package/dist/chunk-3737A6EA.js.map +0 -1
- package/dist/chunk-4MC5JRRX.js.map +0 -1
- package/dist/chunk-52QYGZHH.js.map +0 -1
- package/dist/chunk-55LKVALY.js.map +0 -1
- package/dist/chunk-5PR33AC4.js.map +0 -1
- package/dist/chunk-66W5OOCX.js.map +0 -1
- package/dist/chunk-7G6VDWXB.js.map +0 -1
- package/dist/chunk-A67356IR.js.map +0 -1
- package/dist/chunk-AFHQATY4.js +0 -47
- package/dist/chunk-AFHQATY4.js.map +0 -1
- package/dist/chunk-AHLJSVRL.js.map +0 -1
- package/dist/chunk-C2OOEM57.js.map +0 -1
- package/dist/chunk-DIMKRG2E.js +0 -131
- package/dist/chunk-DIMKRG2E.js.map +0 -1
- package/dist/chunk-E6427JU2.js.map +0 -1
- package/dist/chunk-E7OBCBXS.js.map +0 -1
- package/dist/chunk-EDXAQ6JI.js.map +0 -1
- package/dist/chunk-EP7VPR7Y.js.map +0 -1
- package/dist/chunk-ERB6NDDW.js.map +0 -1
- package/dist/chunk-G5APARUV.js.map +0 -1
- package/dist/chunk-GASWQ3XG.js.map +0 -1
- package/dist/chunk-GLKDWWNO.js.map +0 -1
- package/dist/chunk-HNGSV2YC.js.map +0 -1
- package/dist/chunk-I4F6PKUK.js.map +0 -1
- package/dist/chunk-I4ZAO7F7.js.map +0 -1
- package/dist/chunk-I6SDX7WX.js.map +0 -1
- package/dist/chunk-JXIDGFKS.js.map +0 -1
- package/dist/chunk-LWSJG3LI.js.map +0 -1
- package/dist/chunk-MWKDOHEF.js.map +0 -1
- package/dist/chunk-MZ5ZFO2D.js.map +0 -1
- package/dist/chunk-NIVEDYJZ.js.map +0 -1
- package/dist/chunk-NWCGDAV6.js +0 -45
- package/dist/chunk-NWCGDAV6.js.map +0 -1
- package/dist/chunk-PJNTR2NV.js.map +0 -1
- package/dist/chunk-PRDRGL73.js.map +0 -1
- package/dist/chunk-PY7CI6L5.js.map +0 -1
- package/dist/chunk-RKKORO4M.js.map +0 -1
- package/dist/chunk-TAGFGKHP.js.map +0 -1
- package/dist/chunk-TDJPS3T2.js.map +0 -1
- package/dist/chunk-TOAIYQJR.js.map +0 -1
- package/dist/chunk-UHXCLPGC.js.map +0 -1
- package/dist/chunk-UIBGXRDD.js.map +0 -1
- package/dist/chunk-V5KYPBUR.js.map +0 -1
- package/dist/chunk-VCETL77O.js.map +0 -1
- package/dist/chunk-VN45YLWM.js.map +0 -1
- package/dist/chunk-VOQW5LAM.js.map +0 -1
- package/dist/chunk-VRA4Q7DA.js.map +0 -1
- package/dist/chunk-VV4NSB7P.js.map +0 -1
- package/dist/chunk-W5W6KHN2.js.map +0 -1
- package/dist/chunk-WHJKIZS7.js.map +0 -1
- package/dist/chunk-WYZ5MYUA.js.map +0 -1
- package/dist/chunk-ZJADGNYF.js.map +0 -1
- package/dist/chunk-ZNACADFG.js.map +0 -1
- package/dist/collection-facade-QN5ULWYC.js +0 -45
- package/dist/delegation-SSEPLXXO.js.map +0 -1
- package/dist/derive-6V3PIZF7.js +0 -22
- package/dist/executor-CYJQLKKI.js +0 -9
- package/dist/executor-FHHLXO4Y.js +0 -28
- package/dist/executor-S4QIKEHW.js +0 -9
- package/dist/export-accessible-PE5AYKZR.js +0 -23
- package/dist/extract-partition-X2L26O6A.js +0 -38
- package/dist/fanout-sidecar-DTBIDOWF.js.map +0 -1
- package/dist/find-RBBYKXI7.js +0 -11
- package/dist/issue-RNU55YOF.js +0 -19
- package/dist/liberate-PX4CAT5V.js +0 -24
- package/dist/noydb-YPSEGK32.js +0 -83
- package/dist/register-TMD6YRCX.js +0 -32
- package/dist/registry-CZVINVQH.js +0 -9
- package/dist/registry-FVLDWQKT.js +0 -18
- package/dist/registry-IKUR2MXD.js +0 -9
- package/dist/registry-JET4HBLY.js +0 -19
- package/dist/request-withdrawal-RH55LNZL.js +0 -31
- package/dist/revoke-R5TBYVA6.js +0 -24
- package/dist/seed-UK4QRIUN.js.map +0 -1
- package/dist/signer-AGALOXOO.js +0 -25
- package/dist/storage-N7LB275C.js +0 -23
- package/dist/store-coordination-provider-PB6QZ57W.js.map +0 -1
- package/dist/walk-OCUHCYJ6.js +0 -21
- package/dist/with-pod/bundle-handle.d.ts +0 -9
- package/dist/withdraw-accessible-QQNWM5BO.js +0 -28
- /package/dist/{api-WVY3H3YH.js.map → api-Z5VHH24A.js.map} +0 -0
- /package/dist/{chunk-FDX7OWWI.js.map → chunk-2E2MKBMI.js.map} +0 -0
- /package/dist/{chunk-7F4DBNSP.js.map → chunk-5J5TTSGW.js.map} +0 -0
- /package/dist/{chunk-BTVYJWSN.js.map → chunk-5JT4Y5UE.js.map} +0 -0
- /package/dist/{chunk-7NXHMW6Y.js.map → chunk-7RCZ436O.js.map} +0 -0
- /package/dist/{chunk-DG27IUVI.js.map → chunk-A3NTKHDB.js.map} +0 -0
- /package/dist/{chunk-CCZJJ4I2.js.map → chunk-A4K5GLE6.js.map} +0 -0
- /package/dist/{chunk-CEJWMBXO.js.map → chunk-APV42WPR.js.map} +0 -0
- /package/dist/{chunk-4HDYQL3J.js.map → chunk-AQF7JSQR.js.map} +0 -0
- /package/dist/{chunk-KUDZVJKQ.js.map → chunk-BP4I7IBK.js.map} +0 -0
- /package/dist/{chunk-4UVDI4XE.js.map → chunk-BTNKPDZM.js.map} +0 -0
- /package/dist/{chunk-HVQGCKY4.js.map → chunk-C7WJNVJG.js.map} +0 -0
- /package/dist/{chunk-KCQX65FU.js.map → chunk-CVYXIN5B.js.map} +0 -0
- /package/dist/{chunk-AR2JDFAE.js.map → chunk-DJ23QZIN.js.map} +0 -0
- /package/dist/{chunk-PVU7LW5L.js.map → chunk-EJIVFOOQ.js.map} +0 -0
- /package/dist/{chunk-VMCCGUQB.js.map → chunk-GDGTIWB4.js.map} +0 -0
- /package/dist/{chunk-FUHKW252.js.map → chunk-GILI76SU.js.map} +0 -0
- /package/dist/{chunk-35EBKWQU.js.map → chunk-GT72D4FO.js.map} +0 -0
- /package/dist/{chunk-JRCYZEHU.js.map → chunk-HGJC7I5F.js.map} +0 -0
- /package/dist/{chunk-YAWK6AWF.js.map → chunk-JIF3IBRK.js.map} +0 -0
- /package/dist/{chunk-HNHCQ556.js.map → chunk-KBOPY6W2.js.map} +0 -0
- /package/dist/{chunk-W3TVWF6N.js.map → chunk-KM6YR5XF.js.map} +0 -0
- /package/dist/{chunk-6HFM7EIT.js.map → chunk-MNMYHZVU.js.map} +0 -0
- /package/dist/{chunk-QD724WDJ.js.map → chunk-N2HKBESK.js.map} +0 -0
- /package/dist/{chunk-Z45YRGFO.js.map → chunk-N7YAQKAO.js.map} +0 -0
- /package/dist/{chunk-DMQCLZ4Z.js.map → chunk-NH2MST6J.js.map} +0 -0
- /package/dist/{chunk-HXGUIPQB.js.map → chunk-OQLYMBJI.js.map} +0 -0
- /package/dist/{chunk-MSWYQLMQ.js.map → chunk-PG6PFMDC.js.map} +0 -0
- /package/dist/{chunk-WKPJXWKR.js.map → chunk-QPIUFRUC.js.map} +0 -0
- /package/dist/{chunk-JIUVJ4M7.js.map → chunk-REL4OLWW.js.map} +0 -0
- /package/dist/{chunk-VW6ZZGCG.js.map → chunk-RNSC2ARR.js.map} +0 -0
- /package/dist/{chunk-WLYIROCJ.js.map → chunk-RORE2GX2.js.map} +0 -0
- /package/dist/{chunk-7TSYBD3E.js.map → chunk-RSFG7XHM.js.map} +0 -0
- /package/dist/{chunk-FAXZQ5UF.js.map → chunk-S55DBWRC.js.map} +0 -0
- /package/dist/{chunk-747LRSOO.js.map → chunk-SFD2LL7G.js.map} +0 -0
- /package/dist/{chunk-P7OG2ETF.js.map → chunk-SG3OQCRG.js.map} +0 -0
- /package/dist/{chunk-WQDTCJ6W.js.map → chunk-VEX2BQVX.js.map} +0 -0
- /package/dist/{chunk-7VHY5E3X.js.map → chunk-VH2W6BOG.js.map} +0 -0
- /package/dist/{chunk-OF3L2SD6.js.map → chunk-W6NFONOV.js.map} +0 -0
- /package/dist/{chunk-NJDQ4YSV.js.map → chunk-WBNXZU42.js.map} +0 -0
- /package/dist/{chunk-FNSMZQS4.js.map → chunk-WKD5ESK4.js.map} +0 -0
- /package/dist/{chunk-NKH7GSIH.js.map → chunk-XGQGWZ6D.js.map} +0 -0
- /package/dist/{chunk-VJFMXYKP.js.map → chunk-ZWKF3CD3.js.map} +0 -0
- /package/dist/{classified-marker-FTOX7Q5L.js.map → classified-marker-PMDG3O36.js.map} +0 -0
- /package/dist/{collection-facade-QN5ULWYC.js.map → collection-facade-ZJK5EB33.js.map} +0 -0
- /package/dist/{computed-6G5M3UPH.js.map → computed-UHCBRILW.js.map} +0 -0
- /package/dist/{dead-filter-ENRIOQIE.js.map → dead-filter-777VWDER.js.map} +0 -0
- /package/dist/{derive-6V3PIZF7.js.map → derive-3WAS2G5T.js.map} +0 -0
- /package/dist/{dispatch-BDVGYC6X.js.map → dispatch-3EN6YCCS.js.map} +0 -0
- /package/dist/{dispatch-RE74SH6L.js.map → dispatch-ASL257KG.js.map} +0 -0
- /package/dist/{enclave-52VUXNRL.js.map → enclave-ZJS5R5RH.js.map} +0 -0
- /package/dist/{executor-CYJQLKKI.js.map → executor-GPM6DNWV.js.map} +0 -0
- /package/dist/{executor-FHHLXO4Y.js.map → executor-LJSMZ4IB.js.map} +0 -0
- /package/dist/{executor-S4QIKEHW.js.map → executor-SHUVRZUJ.js.map} +0 -0
- /package/dist/{export-accessible-PE5AYKZR.js.map → export-accessible-GNY6DC6U.js.map} +0 -0
- /package/dist/{extract-partition-X2L26O6A.js.map → extract-partition-BG3AF4NZ.js.map} +0 -0
- /package/dist/{find-RBBYKXI7.js.map → find-KX6OKHDP.js.map} +0 -0
- /package/dist/{issue-RNU55YOF.js.map → issue-PAUM7NCX.js.map} +0 -0
- /package/dist/{ledger-4WJL66BW.js.map → ledger-62CEPRPX.js.map} +0 -0
- /package/dist/{liberate-PX4CAT5V.js.map → liberate-I6AOLWXW.js.map} +0 -0
- /package/dist/{link-set-N4ZPV6E6.js.map → link-set-ZRYNUHN3.js.map} +0 -0
- /package/dist/{managed-secret-OTHS64IF.js.map → managed-secret-T2WB4O47.js.map} +0 -0
- /package/dist/{noydb-YPSEGK32.js.map → noydb-SS6EN7TK.js.map} +0 -0
- /package/dist/{post-register-ZAG2CAIY.js.map → post-register-J4DEVNXK.js.map} +0 -0
- /package/dist/{register-TMD6YRCX.js.map → register-UPD4GKBC.js.map} +0 -0
- /package/dist/{registry-CZVINVQH.js.map → registry-7KX2HWFS.js.map} +0 -0
- /package/dist/{registry-FVLDWQKT.js.map → registry-PKYYEHEW.js.map} +0 -0
- /package/dist/{registry-IKUR2MXD.js.map → registry-XHCYMD34.js.map} +0 -0
- /package/dist/{registry-JET4HBLY.js.map → registry-XIRTZHPC.js.map} +0 -0
- /package/dist/{request-withdrawal-RH55LNZL.js.map → request-withdrawal-XZSESWZV.js.map} +0 -0
- /package/dist/{reveal-CMOJY4VO.js.map → reveal-525XWQU2.js.map} +0 -0
- /package/dist/{revoke-R5TBYVA6.js.map → revoke-QI7YHQ2B.js.map} +0 -0
- /package/dist/{signer-AGALOXOO.js.map → signer-BZWDPGGN.js.map} +0 -0
- /package/dist/{stale-ZWXSOWJI.js.map → stale-PQYPVCER.js.map} +0 -0
- /package/dist/{storage-N7LB275C.js.map → storage-MJHKNQRO.js.map} +0 -0
- /package/dist/{ulid-PTAIMDG4.js.map → ulid-VQW6ERQN.js.map} +0 -0
- /package/dist/{verify-RO5RTZOJ.js.map → verify-J6DEOXP3.js.map} +0 -0
- /package/dist/{walk-OCUHCYJ6.js.map → walk-BX4NSB5L.js.map} +0 -0
- /package/dist/{withdraw-accessible-QQNWM5BO.js.map → withdraw-accessible-K4CPMH4C.js.map} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Noydb,
|
|
3
|
+
createNoydb
|
|
4
|
+
} from "./chunk-6TXUVKPG.js";
|
|
5
|
+
import "./chunk-KBOPY6W2.js";
|
|
6
|
+
import "./chunk-C7WJNVJG.js";
|
|
7
|
+
import "./chunk-AQF7JSQR.js";
|
|
8
|
+
import "./chunk-EPFF7LOX.js";
|
|
9
|
+
import "./chunk-OWGEHDT2.js";
|
|
10
|
+
import "./chunk-GYGLAVCX.js";
|
|
11
|
+
import "./chunk-HJRTFXAA.js";
|
|
12
|
+
import "./chunk-KHKKD62N.js";
|
|
13
|
+
import "./chunk-N7YAQKAO.js";
|
|
14
|
+
import "./chunk-6LJY7X5A.js";
|
|
15
|
+
import "./chunk-Y2NBBT6K.js";
|
|
16
|
+
import "./chunk-ZWKF3CD3.js";
|
|
17
|
+
import "./chunk-N2HKBESK.js";
|
|
18
|
+
import "./chunk-6S466CMQ.js";
|
|
19
|
+
import "./chunk-GILI76SU.js";
|
|
20
|
+
import "./chunk-A3NTKHDB.js";
|
|
21
|
+
import "./chunk-NRNTXBHT.js";
|
|
22
|
+
import "./chunk-YVTADFTC.js";
|
|
23
|
+
import "./chunk-PZSS7MUM.js";
|
|
24
|
+
import "./chunk-XGQGWZ6D.js";
|
|
25
|
+
import "./chunk-RSFG7XHM.js";
|
|
26
|
+
import "./chunk-ICCRAPWD.js";
|
|
27
|
+
import "./chunk-W6NFONOV.js";
|
|
28
|
+
import "./chunk-T7IR4N2S.js";
|
|
29
|
+
import "./chunk-PEOZ34EM.js";
|
|
30
|
+
import "./chunk-VHVMJWM6.js";
|
|
31
|
+
import "./chunk-GHVIKOHT.js";
|
|
32
|
+
import "./chunk-HTHRCGWP.js";
|
|
33
|
+
import "./chunk-SMY5X46Z.js";
|
|
34
|
+
import "./chunk-DZFQVICS.js";
|
|
35
|
+
import "./chunk-GT72D4FO.js";
|
|
36
|
+
import "./chunk-5D2ALSM5.js";
|
|
37
|
+
import "./chunk-5JT4Y5UE.js";
|
|
38
|
+
import "./chunk-AURFOK3D.js";
|
|
39
|
+
import "./chunk-S55DBWRC.js";
|
|
40
|
+
import "./chunk-KUXTWVAR.js";
|
|
41
|
+
import "./chunk-L6FSZFG7.js";
|
|
42
|
+
import "./chunk-MQXYR65M.js";
|
|
43
|
+
import "./chunk-REL4OLWW.js";
|
|
44
|
+
import "./chunk-GQ3BX5EA.js";
|
|
45
|
+
import "./chunk-NO272T7Q.js";
|
|
46
|
+
import "./chunk-XZHEOSQ2.js";
|
|
47
|
+
import "./chunk-YMUFFJCO.js";
|
|
48
|
+
import "./chunk-CADUYBQD.js";
|
|
49
|
+
import "./chunk-IGJCYUT5.js";
|
|
50
|
+
import "./chunk-PVEWA2DU.js";
|
|
51
|
+
import "./chunk-PG6PFMDC.js";
|
|
52
|
+
import "./chunk-GYUCRDAU.js";
|
|
53
|
+
import "./chunk-437FDIHO.js";
|
|
54
|
+
import "./chunk-KDX6VEYV.js";
|
|
55
|
+
import "./chunk-F5AJZC3U.js";
|
|
56
|
+
import "./chunk-DKYEVHZH.js";
|
|
57
|
+
import "./chunk-RKDH6L53.js";
|
|
58
|
+
import "./chunk-JHO6FGZX.js";
|
|
59
|
+
import "./chunk-HTMQBBF3.js";
|
|
60
|
+
import "./chunk-KM6YR5XF.js";
|
|
61
|
+
import "./chunk-VKQCVU2Z.js";
|
|
62
|
+
import "./chunk-4AOERLTV.js";
|
|
63
|
+
import "./chunk-YOT7D63X.js";
|
|
64
|
+
import "./chunk-MNUTPZRQ.js";
|
|
65
|
+
import "./chunk-I7FD46FF.js";
|
|
66
|
+
import "./chunk-RNSC2ARR.js";
|
|
67
|
+
import "./chunk-47ZFULEZ.js";
|
|
68
|
+
import "./chunk-HK67PX4J.js";
|
|
69
|
+
import "./chunk-TENLCGYD.js";
|
|
70
|
+
import "./chunk-D5UDZANO.js";
|
|
71
|
+
import "./chunk-ZVAFJQZB.js";
|
|
72
|
+
import "./chunk-OQLYMBJI.js";
|
|
73
|
+
import "./chunk-DJ23QZIN.js";
|
|
74
|
+
import "./chunk-SFD2LL7G.js";
|
|
75
|
+
import "./chunk-LP7BEXCT.js";
|
|
76
|
+
import "./chunk-VJ4B3ZXY.js";
|
|
77
|
+
import "./chunk-3Y4OFWQJ.js";
|
|
78
|
+
import "./chunk-P7L3OQLL.js";
|
|
79
|
+
import "./chunk-PZ5AY32C.js";
|
|
80
|
+
export {
|
|
81
|
+
Noydb,
|
|
82
|
+
createNoydb
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=noydb-SS6EN7TK.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withOverlayedView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2E2MKBMI.js";
|
|
4
4
|
import {
|
|
5
5
|
OverlayedViewRegistry
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-WKD5ESK4.js";
|
|
7
7
|
import {
|
|
8
8
|
OverlayedCollection
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-W6NFONOV.js";
|
|
10
10
|
import {
|
|
11
11
|
OverlayBaseIsVirtualError,
|
|
12
12
|
OverlayCollectionUnavailableError,
|
|
13
13
|
OverlayIdMismatchError,
|
|
14
14
|
OverlayNameCollisionError
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-P7L3OQLL.js";
|
|
16
16
|
import "../chunk-PZ5AY32C.js";
|
|
17
17
|
export {
|
|
18
18
|
OverlayBaseIsVirtualError,
|
package/dist/periods/index.js
CHANGED
|
@@ -3,44 +3,54 @@ import {
|
|
|
3
3
|
appendPeriodLedgerEntry,
|
|
4
4
|
assertTsWritable,
|
|
5
5
|
chainAnchor,
|
|
6
|
+
isEffectivelyReopened,
|
|
6
7
|
loadPeriods,
|
|
7
8
|
purgeMarkersOn,
|
|
9
|
+
resolvePeriodKey,
|
|
10
|
+
resolveReopenState,
|
|
11
|
+
samePartition,
|
|
8
12
|
validatePeriodName,
|
|
9
13
|
withPeriods
|
|
10
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-VHVMJWM6.js";
|
|
11
15
|
import "../chunk-GHVIKOHT.js";
|
|
12
16
|
import {
|
|
13
17
|
PERIODS_COLLECTION,
|
|
14
18
|
PERIOD_ARCHIVES_COLLECTION,
|
|
15
19
|
PERIOD_FREEZES_COLLECTION,
|
|
20
|
+
PERIOD_REOPENS_COLLECTION,
|
|
16
21
|
PERIOD_TARGET_PURGES_COLLECTION,
|
|
17
22
|
periodExclusiveUpperBound
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-HTHRCGWP.js";
|
|
24
|
+
import "../chunk-MNUTPZRQ.js";
|
|
20
25
|
import "../chunk-I7FD46FF.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-RNSC2ARR.js";
|
|
27
|
+
import "../chunk-D5UDZANO.js";
|
|
28
|
+
import "../chunk-ZVAFJQZB.js";
|
|
29
|
+
import "../chunk-OQLYMBJI.js";
|
|
30
|
+
import "../chunk-DJ23QZIN.js";
|
|
31
|
+
import "../chunk-SFD2LL7G.js";
|
|
27
32
|
import "../chunk-LP7BEXCT.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-VJ4B3ZXY.js";
|
|
34
|
+
import "../chunk-3Y4OFWQJ.js";
|
|
35
|
+
import "../chunk-P7L3OQLL.js";
|
|
31
36
|
import "../chunk-PZ5AY32C.js";
|
|
32
37
|
export {
|
|
33
38
|
NO_PERIODS,
|
|
34
39
|
PERIODS_COLLECTION,
|
|
35
40
|
PERIOD_ARCHIVES_COLLECTION,
|
|
36
41
|
PERIOD_FREEZES_COLLECTION,
|
|
42
|
+
PERIOD_REOPENS_COLLECTION,
|
|
37
43
|
PERIOD_TARGET_PURGES_COLLECTION,
|
|
38
44
|
appendPeriodLedgerEntry,
|
|
39
45
|
assertTsWritable,
|
|
40
46
|
chainAnchor,
|
|
47
|
+
isEffectivelyReopened,
|
|
41
48
|
loadPeriods,
|
|
42
49
|
periodExclusiveUpperBound,
|
|
43
50
|
purgeMarkersOn,
|
|
51
|
+
resolvePeriodKey,
|
|
52
|
+
resolveReopenState,
|
|
53
|
+
samePartition,
|
|
44
54
|
validatePeriodName,
|
|
45
55
|
withPeriods
|
|
46
56
|
};
|
package/dist/pod/index.js
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createBundleStore,
|
|
3
2
|
createPodStore,
|
|
4
3
|
followRedirects,
|
|
5
4
|
open,
|
|
6
5
|
signRedirect,
|
|
7
6
|
verifyRedirect,
|
|
8
|
-
wrapBundleStore,
|
|
9
7
|
wrapPodStore
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-ZXW3X3DQ.js";
|
|
9
|
+
import "../chunk-6TXUVKPG.js";
|
|
10
|
+
import "../chunk-KBOPY6W2.js";
|
|
11
|
+
import "../chunk-C7WJNVJG.js";
|
|
12
|
+
import "../chunk-AQF7JSQR.js";
|
|
14
13
|
import {
|
|
15
14
|
deriveSchemaManifest,
|
|
16
15
|
loadSchemaManifestEntry
|
|
17
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-E6VDPBE3.js";
|
|
18
17
|
import {
|
|
19
18
|
MANIFEST_COLLECTION,
|
|
20
19
|
isManifestReservedCollection
|
|
21
20
|
} from "../chunk-EPFF7LOX.js";
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-OWGEHDT2.js";
|
|
23
22
|
import "../chunk-GYGLAVCX.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-RKKORO4M.js";
|
|
26
|
-
import "../chunk-6LJY7X5A.js";
|
|
27
|
-
import "../chunk-QD724WDJ.js";
|
|
28
|
-
import "../chunk-C2OOEM57.js";
|
|
29
|
-
import "../chunk-FUHKW252.js";
|
|
30
|
-
import "../chunk-DG27IUVI.js";
|
|
31
|
-
import "../chunk-TAGFGKHP.js";
|
|
23
|
+
import "../chunk-HJRTFXAA.js";
|
|
32
24
|
import "../chunk-KHKKD62N.js";
|
|
33
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-N7YAQKAO.js";
|
|
26
|
+
import "../chunk-6LJY7X5A.js";
|
|
34
27
|
import "../chunk-Y2NBBT6K.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-ZWKF3CD3.js";
|
|
29
|
+
import "../chunk-N2HKBESK.js";
|
|
30
|
+
import "../chunk-6S466CMQ.js";
|
|
31
|
+
import "../chunk-GILI76SU.js";
|
|
32
|
+
import "../chunk-A3NTKHDB.js";
|
|
33
|
+
import "../chunk-NRNTXBHT.js";
|
|
34
|
+
import "../chunk-YVTADFTC.js";
|
|
35
|
+
import "../chunk-PZSS7MUM.js";
|
|
36
|
+
import "../chunk-XGQGWZ6D.js";
|
|
37
|
+
import "../chunk-RSFG7XHM.js";
|
|
38
|
+
import "../chunk-ICCRAPWD.js";
|
|
39
|
+
import "../chunk-W6NFONOV.js";
|
|
40
|
+
import "../chunk-T7IR4N2S.js";
|
|
42
41
|
import "../chunk-PEOZ34EM.js";
|
|
43
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-VHVMJWM6.js";
|
|
44
43
|
import "../chunk-GHVIKOHT.js";
|
|
45
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-HTHRCGWP.js";
|
|
46
45
|
import "../chunk-SMY5X46Z.js";
|
|
47
46
|
import "../chunk-DZFQVICS.js";
|
|
48
47
|
import {
|
|
@@ -51,14 +50,12 @@ import {
|
|
|
51
50
|
COMPRESSION_NONE,
|
|
52
51
|
FLAG_COMPRESSED,
|
|
53
52
|
FLAG_HAS_INTEGRITY_HASH,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
NOYDB_POD_FORMAT_VERSION,
|
|
54
|
+
NOYDB_POD_MAGIC,
|
|
55
|
+
NOYDB_POD_PREFIX_BYTES,
|
|
57
56
|
POD_SIG_ALG,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
readNoydbBundle,
|
|
61
|
-
readNoydbBundleHeader,
|
|
57
|
+
encodePodHeader,
|
|
58
|
+
hasNoydbPodMagic,
|
|
62
59
|
readPod,
|
|
63
60
|
readPodCover,
|
|
64
61
|
readPodHeader,
|
|
@@ -66,22 +63,21 @@ import {
|
|
|
66
63
|
resetBrotliSupportCache,
|
|
67
64
|
signRecord,
|
|
68
65
|
signedBytes,
|
|
69
|
-
|
|
66
|
+
validatePodHeaderFields,
|
|
70
67
|
verifyPodHeader,
|
|
71
68
|
verifyRecord,
|
|
72
|
-
writeNoydbBundle,
|
|
73
69
|
writePod
|
|
74
|
-
} from "../chunk-
|
|
75
|
-
import "../chunk-
|
|
76
|
-
import "../chunk-
|
|
70
|
+
} from "../chunk-2IK6AC6A.js";
|
|
71
|
+
import "../chunk-DYASJSKI.js";
|
|
72
|
+
import "../chunk-GT72D4FO.js";
|
|
77
73
|
import "../chunk-5D2ALSM5.js";
|
|
78
|
-
import "../chunk-
|
|
74
|
+
import "../chunk-5JT4Y5UE.js";
|
|
79
75
|
import "../chunk-AURFOK3D.js";
|
|
80
|
-
import "../chunk-
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
83
|
-
import "../chunk-
|
|
84
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-S55DBWRC.js";
|
|
77
|
+
import "../chunk-KUXTWVAR.js";
|
|
78
|
+
import "../chunk-L6FSZFG7.js";
|
|
79
|
+
import "../chunk-MQXYR65M.js";
|
|
80
|
+
import "../chunk-REL4OLWW.js";
|
|
85
81
|
import "../chunk-GQ3BX5EA.js";
|
|
86
82
|
import "../chunk-NO272T7Q.js";
|
|
87
83
|
import "../chunk-XZHEOSQ2.js";
|
|
@@ -89,58 +85,54 @@ import "../chunk-YMUFFJCO.js";
|
|
|
89
85
|
import "../chunk-CADUYBQD.js";
|
|
90
86
|
import "../chunk-IGJCYUT5.js";
|
|
91
87
|
import "../chunk-PVEWA2DU.js";
|
|
92
|
-
import "../chunk-
|
|
93
|
-
import "../chunk-
|
|
94
|
-
import "../chunk-
|
|
95
|
-
import "../chunk-
|
|
96
|
-
import "../chunk-
|
|
97
|
-
import "../chunk-
|
|
98
|
-
import "../chunk-
|
|
99
|
-
import "../chunk-
|
|
100
|
-
import "../chunk-
|
|
101
|
-
import "../chunk-
|
|
88
|
+
import "../chunk-PG6PFMDC.js";
|
|
89
|
+
import "../chunk-GYUCRDAU.js";
|
|
90
|
+
import "../chunk-437FDIHO.js";
|
|
91
|
+
import "../chunk-KDX6VEYV.js";
|
|
92
|
+
import "../chunk-F5AJZC3U.js";
|
|
93
|
+
import "../chunk-DKYEVHZH.js";
|
|
94
|
+
import "../chunk-RKDH6L53.js";
|
|
95
|
+
import "../chunk-JHO6FGZX.js";
|
|
96
|
+
import "../chunk-HTMQBBF3.js";
|
|
97
|
+
import "../chunk-KM6YR5XF.js";
|
|
102
98
|
import "../chunk-VKQCVU2Z.js";
|
|
103
99
|
import {
|
|
104
100
|
generateULID,
|
|
105
101
|
isULID
|
|
106
|
-
} from "../chunk-
|
|
107
|
-
import "../chunk-
|
|
108
|
-
import "../chunk-
|
|
102
|
+
} from "../chunk-4AOERLTV.js";
|
|
103
|
+
import "../chunk-YOT7D63X.js";
|
|
104
|
+
import "../chunk-MNUTPZRQ.js";
|
|
109
105
|
import "../chunk-I7FD46FF.js";
|
|
110
|
-
import "../chunk-
|
|
111
|
-
import "../chunk-
|
|
112
|
-
import "../chunk-
|
|
113
|
-
import "../chunk-
|
|
114
|
-
import "../chunk-
|
|
115
|
-
import "../chunk-
|
|
116
|
-
import "../chunk-
|
|
117
|
-
import "../chunk-
|
|
118
|
-
import "../chunk-
|
|
106
|
+
import "../chunk-RNSC2ARR.js";
|
|
107
|
+
import "../chunk-47ZFULEZ.js";
|
|
108
|
+
import "../chunk-HK67PX4J.js";
|
|
109
|
+
import "../chunk-TENLCGYD.js";
|
|
110
|
+
import "../chunk-D5UDZANO.js";
|
|
111
|
+
import "../chunk-ZVAFJQZB.js";
|
|
112
|
+
import "../chunk-OQLYMBJI.js";
|
|
113
|
+
import "../chunk-DJ23QZIN.js";
|
|
114
|
+
import "../chunk-SFD2LL7G.js";
|
|
119
115
|
import "../chunk-LP7BEXCT.js";
|
|
120
|
-
import "../chunk-
|
|
121
|
-
import "../chunk-
|
|
116
|
+
import "../chunk-VJ4B3ZXY.js";
|
|
117
|
+
import "../chunk-3Y4OFWQJ.js";
|
|
122
118
|
import {
|
|
123
119
|
BackupCorruptedError,
|
|
124
120
|
BackupLedgerError,
|
|
125
|
-
BundleIntegrityError,
|
|
126
|
-
BundleSealMismatchError,
|
|
127
|
-
BundleVersionConflictError,
|
|
128
121
|
ManifestConflictError,
|
|
129
122
|
MigrationRequiredError,
|
|
130
123
|
PodHeaderVerificationError,
|
|
124
|
+
PodIntegrityError,
|
|
125
|
+
PodSealMismatchError,
|
|
131
126
|
PodVersionConflictError,
|
|
132
127
|
RedirectBadSignatureError,
|
|
133
128
|
RedirectDepthExceededError,
|
|
134
129
|
RedirectLoopError,
|
|
135
130
|
RedirectUnreachableError
|
|
136
|
-
} from "../chunk-
|
|
131
|
+
} from "../chunk-P7L3OQLL.js";
|
|
137
132
|
import "../chunk-PZ5AY32C.js";
|
|
138
133
|
export {
|
|
139
134
|
BackupCorruptedError,
|
|
140
135
|
BackupLedgerError,
|
|
141
|
-
BundleIntegrityError,
|
|
142
|
-
BundleSealMismatchError,
|
|
143
|
-
BundleVersionConflictError,
|
|
144
136
|
COMPRESSION_BROTLI,
|
|
145
137
|
COMPRESSION_GZIP,
|
|
146
138
|
COMPRESSION_NONE,
|
|
@@ -149,29 +141,28 @@ export {
|
|
|
149
141
|
MANIFEST_COLLECTION,
|
|
150
142
|
ManifestConflictError,
|
|
151
143
|
MigrationRequiredError,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
144
|
+
NOYDB_POD_FORMAT_VERSION,
|
|
145
|
+
NOYDB_POD_MAGIC,
|
|
146
|
+
NOYDB_POD_PREFIX_BYTES,
|
|
155
147
|
POD_SIG_ALG,
|
|
156
148
|
PodHeaderVerificationError,
|
|
149
|
+
PodIntegrityError,
|
|
150
|
+
PodSealMismatchError,
|
|
157
151
|
PodVersionConflictError,
|
|
158
152
|
RedirectBadSignatureError,
|
|
159
153
|
RedirectDepthExceededError,
|
|
160
154
|
RedirectLoopError,
|
|
161
155
|
RedirectUnreachableError,
|
|
162
|
-
createBundleStore,
|
|
163
156
|
createPodStore,
|
|
164
157
|
deriveSchemaManifest,
|
|
165
|
-
|
|
158
|
+
encodePodHeader,
|
|
166
159
|
followRedirects,
|
|
167
160
|
generateULID,
|
|
168
|
-
|
|
161
|
+
hasNoydbPodMagic,
|
|
169
162
|
isManifestReservedCollection,
|
|
170
163
|
isULID,
|
|
171
164
|
loadSchemaManifestEntry,
|
|
172
165
|
open,
|
|
173
|
-
readNoydbBundle,
|
|
174
|
-
readNoydbBundleHeader,
|
|
175
166
|
readPod,
|
|
176
167
|
readPodCover,
|
|
177
168
|
readPodHeader,
|
|
@@ -180,13 +171,11 @@ export {
|
|
|
180
171
|
signRecord,
|
|
181
172
|
signRedirect,
|
|
182
173
|
signedBytes,
|
|
183
|
-
|
|
174
|
+
validatePodHeaderFields,
|
|
184
175
|
verifyPodHeader,
|
|
185
176
|
verifyRecord,
|
|
186
177
|
verifyRedirect,
|
|
187
|
-
wrapBundleStore,
|
|
188
178
|
wrapPodStore,
|
|
189
|
-
writeNoydbBundle,
|
|
190
179
|
writePod
|
|
191
180
|
};
|
|
192
181
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import "./chunk-D5UDZANO.js";
|
|
2
|
+
import {
|
|
3
|
+
buildRecordEnvelope
|
|
4
|
+
} from "./chunk-ZVAFJQZB.js";
|
|
5
|
+
import "./chunk-OQLYMBJI.js";
|
|
6
|
+
import "./chunk-DJ23QZIN.js";
|
|
7
|
+
import "./chunk-SFD2LL7G.js";
|
|
8
|
+
import "./chunk-LP7BEXCT.js";
|
|
9
|
+
import "./chunk-VJ4B3ZXY.js";
|
|
10
|
+
import "./chunk-3Y4OFWQJ.js";
|
|
11
|
+
import "./chunk-P7L3OQLL.js";
|
|
12
|
+
import "./chunk-PZ5AY32C.js";
|
|
13
|
+
|
|
14
|
+
// src/with-pod/pod-handle.ts
|
|
15
|
+
async function buildPodHandle(adapter, name) {
|
|
16
|
+
const existing = await adapter.get(name, "_meta", "handle");
|
|
17
|
+
if (existing) {
|
|
18
|
+
try {
|
|
19
|
+
const parsed = JSON.parse(existing._data);
|
|
20
|
+
if (parsed !== null && typeof parsed === "object" && "handle" in parsed) {
|
|
21
|
+
const handle2 = parsed.handle;
|
|
22
|
+
if (typeof handle2 === "string" && /^[0-9A-HJKMNP-TV-Z]{26}$/.test(handle2)) {
|
|
23
|
+
return handle2;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
} catch {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const { generateULID } = await import("./ulid-VQW6ERQN.js");
|
|
30
|
+
const handle = generateULID();
|
|
31
|
+
const envelope = buildRecordEnvelope(
|
|
32
|
+
{ collection: "_meta", id: "handle", version: 1 },
|
|
33
|
+
{ iv: "", data: JSON.stringify({ handle }) }
|
|
34
|
+
);
|
|
35
|
+
await adapter.put(name, "_meta", "handle", envelope);
|
|
36
|
+
return handle;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
buildPodHandle
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=pod-handle-UPLXOGIK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/with-pod/pod-handle.ts"],"sourcesContent":["/**\n * Vault bundle handle — the stable opaque ULID identifying a vault\n * across `.noydb` exports.\n *\n * Behaviour is byte-identical to the inline `Vault.getPodHandle`\n * method this function replaced. `Vault` keeps the public method as\n * a thin delegator.\n *\n * Internal — reached through `vault.getPodHandle()`.\n */\nimport type { NoydbStore, EncryptedEnvelope } from '../kernel/types.js'\nimport { buildRecordEnvelope } from '../kernel/enclave/index.js'\n\n/**\n * Return the stable opaque bundle handle for the given vault adapter,\n * generating and persisting a fresh ULID on first call.\n *\n * See {@link import('../kernel/vault.js').Vault.getPodHandle} for\n * the full rationale and storage-path documentation.\n */\nexport async function buildPodHandle(adapter: NoydbStore, name: string): Promise<string> {\n const existing = await adapter.get(name, '_meta', 'handle')\n if (existing) {\n try {\n const parsed = JSON.parse(existing._data) as unknown\n if (parsed !== null && typeof parsed === 'object' && 'handle' in parsed) {\n const handle = (parsed as { handle: unknown }).handle\n if (typeof handle === 'string' && /^[0-9A-HJKMNP-TV-Z]{26}$/.test(handle)) {\n return handle\n }\n }\n } catch {\n // Fall through to regenerate — corrupted handle envelope\n // is treated as missing, not as an error. The new handle\n // overwrites the bad one.\n }\n }\n const { generateULID } = await import('./ulid.js')\n const handle = generateULID()\n const envelope: EncryptedEnvelope = buildRecordEnvelope(\n { collection: '_meta', id: 'handle', version: 1 },\n { iv: '', data: JSON.stringify({ handle }) },\n )\n await adapter.put(name, '_meta', 'handle', envelope)\n return handle\n}\n"],"mappings":";;;;;;;;;;;;;;AAoBA,eAAsB,eAAe,SAAqB,MAA+B;AACvF,QAAM,WAAW,MAAM,QAAQ,IAAI,MAAM,SAAS,QAAQ;AAC1D,MAAI,UAAU;AACZ,QAAI;AACF,YAAM,SAAS,KAAK,MAAM,SAAS,KAAK;AACxC,UAAI,WAAW,QAAQ,OAAO,WAAW,YAAY,YAAY,QAAQ;AACvE,cAAMA,UAAU,OAA+B;AAC/C,YAAI,OAAOA,YAAW,YAAY,2BAA2B,KAAKA,OAAM,GAAG;AACzE,iBAAOA;AAAA,QACT;AAAA,MACF;AAAA,IACF,QAAQ;AAAA,IAIR;AAAA,EACF;AACA,QAAM,EAAE,aAAa,IAAI,MAAM,OAAO,oBAAW;AACjD,QAAM,SAAS,aAAa;AAC5B,QAAM,WAA8B;AAAA,IAClC,EAAE,YAAY,SAAS,IAAI,UAAU,SAAS,EAAE;AAAA,IAChD,EAAE,IAAI,IAAI,MAAM,KAAK,UAAU,EAAE,OAAO,CAAC,EAAE;AAAA,EAC7C;AACA,QAAM,QAAQ,IAAI,MAAM,SAAS,UAAU,QAAQ;AACnD,SAAO;AACT;","names":["handle"]}
|
package/dist/policy/index.js
CHANGED
|
@@ -6,20 +6,27 @@ import {
|
|
|
6
6
|
createNoydbPolicy,
|
|
7
7
|
describeGate,
|
|
8
8
|
mergePolicy
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-QPIUFRUC.js";
|
|
10
10
|
import {
|
|
11
11
|
META_COLLECTION,
|
|
12
12
|
POLICY_RECORD_ID,
|
|
13
13
|
loadVaultPolicy,
|
|
14
14
|
saveVaultPolicy
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-DKYEVHZH.js";
|
|
16
|
+
import "../chunk-D5UDZANO.js";
|
|
17
|
+
import "../chunk-ZVAFJQZB.js";
|
|
18
|
+
import "../chunk-OQLYMBJI.js";
|
|
19
|
+
import "../chunk-DJ23QZIN.js";
|
|
20
|
+
import "../chunk-SFD2LL7G.js";
|
|
21
|
+
import "../chunk-LP7BEXCT.js";
|
|
22
|
+
import "../chunk-VJ4B3ZXY.js";
|
|
23
|
+
import "../chunk-3Y4OFWQJ.js";
|
|
17
24
|
import {
|
|
18
25
|
ManagedRecoveryNotEnrolledError,
|
|
19
26
|
PolicyDeniedError,
|
|
20
27
|
RecoveryNotEnrolledError,
|
|
21
28
|
RecoveryProfileNotImplementedError
|
|
22
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-P7L3OQLL.js";
|
|
23
30
|
import "../chunk-PZ5AY32C.js";
|
|
24
31
|
export {
|
|
25
32
|
DEFAULT_FRESHNESS_MS,
|
package/dist/port/to/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Named re-exports only (no `export *`) so the published surface is explicit and
|
|
16
16
|
* tsup's per-entry bundling keeps class identity stable across subpaths.
|
|
17
17
|
*/
|
|
18
|
-
export type { NoydbStore,
|
|
19
|
-
export { ConflictError, NetworkError, StoreCapabilityError,
|
|
20
|
-
export type { StoreClass, StoreDescriptor, StoreBinding, StoreFactory, StoreLocator } from './locator.js';
|
|
21
|
-
export { createStoreLocator } from './locator.js';
|
|
18
|
+
export type { NoydbStore, NoydbPodStore, EncryptedEnvelope, VaultSnapshot, TxOp, StoreCapabilities, StoreCredentials, StoreCredentialSource, StoreTime, ListPageResult, } from '../../kernel/types.js';
|
|
19
|
+
export { ConflictError, NetworkError, StoreCapabilityError, PodVersionConflictError, UnknownStoreKindError, DuplicateStoreKindError, } from '../../kernel/errors.js';
|
|
20
|
+
export type { StoreClass, StoreDescriptor, StoreBinding, StoreFactory, StoreLocator, AnyNoydbStore, } from './locator.js';
|
|
21
|
+
export { createStoreLocator, isPodStore } from './locator.js';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* and errors, no Node built-ins, no crypto. It adds zero runtime
|
|
18
18
|
* dependencies to `@noy-db/hub/to`.
|
|
19
19
|
*/
|
|
20
|
-
import type { NoydbStore, StoreCredentialSource } from '../../kernel/types.js';
|
|
20
|
+
import type { NoydbStore, NoydbPodStore, StoreCredentialSource } from '../../kernel/types.js';
|
|
21
21
|
/**
|
|
22
22
|
* The broad topology bucket a store descriptor's kind falls into —
|
|
23
23
|
* used by callers/UI to group or filter descriptors without knowing every
|
|
@@ -51,22 +51,68 @@ export interface StoreDescriptor {
|
|
|
51
51
|
*/
|
|
52
52
|
export type StoreBinding = unknown;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* Either store shape a factory may produce: the 6-method KV `NoydbStore`, or
|
|
55
|
+
* the whole-vault `NoydbPodStore` implemented by `to-drive` / `to-icloud`.
|
|
56
|
+
*
|
|
57
|
+
* The two are DISJOINT, not sub/supertypes — a pod store has none of the six
|
|
58
|
+
* KV methods — which is why moving between them needs a double cast and why
|
|
59
|
+
* `isPodStore()` exists to narrow instead.
|
|
56
60
|
*/
|
|
57
|
-
export type
|
|
61
|
+
export type AnyNoydbStore = NoydbStore | NoydbPodStore;
|
|
62
|
+
/**
|
|
63
|
+
* Narrow an `AnyNoydbStore` to the pod shape. Discriminates on the
|
|
64
|
+
* `kind: 'bundle'` tag `NoydbPodStore` carries for exactly this purpose; a
|
|
65
|
+
* `NoydbStore` has no `kind` field at all.
|
|
66
|
+
*
|
|
67
|
+
* Use this at a `resolve()` boundary instead of casting — a store resolved
|
|
68
|
+
* from a descriptor read out of a pod is only known to be one of the two
|
|
69
|
+
* shapes at runtime.
|
|
70
|
+
*/
|
|
71
|
+
export declare function isPodStore(store: AnyNoydbStore): store is NoydbPodStore;
|
|
72
|
+
/**
|
|
73
|
+
* Reconstructs a live store from a `StoreDescriptor`. Registered against a
|
|
74
|
+
* `StoreLocator` under the descriptor's `kind`.
|
|
75
|
+
*
|
|
76
|
+
* The type parameter says WHICH shape this factory builds. It defaults to
|
|
77
|
+
* `NoydbStore`, so a bare `StoreFactory` means exactly what it always has;
|
|
78
|
+
* a pod-store factory declares `StoreFactory<NoydbPodStore>` and registers
|
|
79
|
+
* without a cast (#988).
|
|
80
|
+
*/
|
|
81
|
+
export type StoreFactory<S extends AnyNoydbStore = NoydbStore> = (descriptor: StoreDescriptor, opts: {
|
|
58
82
|
binding?: StoreBinding;
|
|
59
83
|
credentials?: StoreCredentialSource;
|
|
60
|
-
}) =>
|
|
84
|
+
}) => S | Promise<S>;
|
|
61
85
|
/** A registry of `StoreFactory`s, keyed by `StoreDescriptor.kind`. */
|
|
62
86
|
export interface StoreLocator {
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Register a factory for `kind`. Throws if `kind` is already registered.
|
|
89
|
+
*
|
|
90
|
+
* Accepts a factory building EITHER store shape — `S` is inferred from the
|
|
91
|
+
* factory's own return type, so a `NoydbPodStore` factory needs no cast.
|
|
92
|
+
*/
|
|
93
|
+
register<S extends AnyNoydbStore>(kind: string, factory: StoreFactory<S>): void;
|
|
94
|
+
/**
|
|
95
|
+
* Resolve `descriptor` to a live store via its kind's registered factory.
|
|
96
|
+
*
|
|
97
|
+
* Returns `NoydbStore`. If the `kind` was registered with a pod-store
|
|
98
|
+
* factory, the resolved value is really a `NoydbPodStore`: this signature
|
|
99
|
+
* is the seam's remaining unsoundness, kept because widening it to
|
|
100
|
+
* `AnyNoydbStore` would break every existing caller. Where the descriptor's
|
|
101
|
+
* kind is not statically known, prefer `resolveAny()` and `isPodStore()`.
|
|
102
|
+
*/
|
|
66
103
|
resolve(descriptor: StoreDescriptor, opts?: {
|
|
67
104
|
binding?: StoreBinding;
|
|
68
105
|
credentials?: StoreCredentialSource;
|
|
69
106
|
}): NoydbStore | Promise<NoydbStore>;
|
|
107
|
+
/**
|
|
108
|
+
* As `resolve()`, but typed honestly: the registry is keyed by a runtime
|
|
109
|
+
* `kind` string, so which of the two shapes comes back is not knowable
|
|
110
|
+
* statically. Narrow the result with `isPodStore()`.
|
|
111
|
+
*/
|
|
112
|
+
resolveAny(descriptor: StoreDescriptor, opts?: {
|
|
113
|
+
binding?: StoreBinding;
|
|
114
|
+
credentials?: StoreCredentialSource;
|
|
115
|
+
}): AnyNoydbStore | Promise<AnyNoydbStore>;
|
|
70
116
|
}
|
|
71
117
|
/**
|
|
72
118
|
* Creates a fresh, empty `StoreLocator`.
|
|
@@ -82,7 +82,10 @@ export interface BuildDictionaryHandleOptions<Keys extends string = string> {
|
|
|
82
82
|
* `buildLookupHandle`. See `port/with/lookup-strategy.ts`'s `BuildLookupHandleOptions` doc
|
|
83
83
|
* comment for why this is injected rather than imported by the handle itself.
|
|
84
84
|
*/
|
|
85
|
-
buildDeleteMarker: (
|
|
85
|
+
buildDeleteMarker: (identity: {
|
|
86
|
+
collection: string;
|
|
87
|
+
id: string;
|
|
88
|
+
}, version: number, actor: string) => EncryptedEnvelope;
|
|
86
89
|
/** #650 Task 5 (#648) — the real reference check, passed through to `buildLookupHandle`. */
|
|
87
90
|
checkReferencesOnDelete?: ((key: string) => Promise<unknown>) | undefined;
|
|
88
91
|
}
|
|
@@ -62,7 +62,10 @@ export interface BuildLookupHandleOptions<Keys extends string = string> {
|
|
|
62
62
|
* may not import `kernel/enclave/` itself (Check 11/15), so this capability is injected the
|
|
63
63
|
* same way `reservedEnvelopes` above is.
|
|
64
64
|
*/
|
|
65
|
-
readonly buildDeleteMarker: (
|
|
65
|
+
readonly buildDeleteMarker: (identity: {
|
|
66
|
+
collection: string;
|
|
67
|
+
id: string;
|
|
68
|
+
}, version: number, actor: string) => EncryptedEnvelope;
|
|
66
69
|
/** #650 Task 4 (#647) — choke-point participation hooks. */
|
|
67
70
|
readonly onDirty?: ((collection: string, id: string, action: 'put' | 'delete', version: number) => Promise<void>) | undefined;
|
|
68
71
|
readonly onRecordMutated?: ((collection: string, id: string, action: 'put' | 'delete', version: number) => Promise<void>) | undefined;
|