@noy-db/hub 0.4.0-pre.8 → 0.4.0
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/dist/{api-3NKVNZPM.js → api-SI2IVBQO.js} +6 -6
- package/dist/attestation/index.js +12 -12
- package/dist/{backup-PTSVXDDW.js → backup-X7F3TCFV.js} +6 -6
- package/dist/blobs/index.js +5 -5
- package/dist/broker/index.js +6 -6
- package/dist/cargo/index.js +20 -20
- package/dist/{chunk-WZ3NCMK6.js → chunk-2BET5QTS.js} +3 -3
- package/dist/{chunk-Y6B6HVKC.js → chunk-2J6UEN2V.js} +41 -17
- package/dist/chunk-2J6UEN2V.js.map +1 -0
- package/dist/{chunk-BYFXLDVV.js → chunk-3ECU57YH.js} +7 -7
- package/dist/{chunk-ZWBKDKXC.js → chunk-467SWYT5.js} +2 -2
- package/dist/{chunk-MTJLOC3Y.js → chunk-55LKVALY.js} +106 -10
- package/dist/chunk-55LKVALY.js.map +1 -0
- package/dist/{chunk-XIDQKFZF.js → chunk-5UQ7Y6SQ.js} +2 -2
- package/dist/{chunk-GZACYEOB.js → chunk-77AEMXFA.js} +1 -1
- package/dist/chunk-77AEMXFA.js.map +1 -0
- package/dist/{chunk-IMRB2C4O.js → chunk-7H3WWH6J.js} +3 -3
- package/dist/{chunk-OLIWCCFM.js → chunk-CLE3TMIS.js} +2 -2
- package/dist/{chunk-ZFUFAHZ3.js → chunk-DAFBJS4Y.js} +2 -2
- package/dist/{chunk-ISRKW4YN.js → chunk-DQZXPGGZ.js} +2 -2
- package/dist/{chunk-FMNU7IUG.js → chunk-DTFA5DO4.js} +2 -2
- package/dist/{chunk-VH6SOCXH.js → chunk-EFJAAFBW.js} +2 -2
- package/dist/{chunk-TIVK6PRK.js → chunk-ERGECZEI.js} +5 -5
- package/dist/{chunk-BQ6DHN4I.js → chunk-GTYFIVIZ.js} +101 -22
- package/dist/chunk-GTYFIVIZ.js.map +1 -0
- package/dist/{chunk-KW42W6SV.js → chunk-HLKXPJ4V.js} +4 -4
- package/dist/{chunk-MANUDU7I.js → chunk-HZZP2ZIG.js} +4 -4
- package/dist/{chunk-DZAF24PG.js → chunk-IFOH7RBI.js} +3 -3
- package/dist/{chunk-FRMW23UK.js → chunk-IVYQAVWO.js} +2 -2
- package/dist/{chunk-SGQ4N5FS.js → chunk-JEI6JJNI.js} +3 -3
- package/dist/{chunk-BN4HRYAZ.js → chunk-JQ2AX4T5.js} +2 -2
- package/dist/{chunk-OBPVWOSQ.js → chunk-KD4HGBJV.js} +3 -3
- package/dist/{chunk-QADFHRQM.js → chunk-KYRDJI5O.js} +8 -8
- package/dist/{chunk-JTR75MKH.js → chunk-LLYIMSQQ.js} +9 -9
- package/dist/{chunk-GP3UWP22.js → chunk-LRRX57UA.js} +2 -2
- package/dist/{chunk-OLSARBZU.js → chunk-LXRTP3AQ.js} +2 -2
- package/dist/{chunk-EBKCYQ2D.js → chunk-NBXFCQX4.js} +3 -3
- package/dist/{chunk-BXHMZ2XW.js → chunk-NLYALJMY.js} +24 -14
- package/dist/chunk-NLYALJMY.js.map +1 -0
- package/dist/{chunk-EZNTORXE.js → chunk-NM5UYF6Q.js} +1 -1
- package/dist/chunk-NM5UYF6Q.js.map +1 -0
- package/dist/{chunk-NEX7JCMO.js → chunk-OWHP3H5C.js} +3 -3
- package/dist/{chunk-WO4T4OD5.js → chunk-P4JO3H6R.js} +2 -2
- package/dist/{chunk-CCDP6EPB.js → chunk-PWPYO73B.js} +2 -2
- package/dist/{chunk-56IIVAEO.js → chunk-Q2SEJMP2.js} +2 -2
- package/dist/{chunk-JIDLU57U.js → chunk-Q36YXK77.js} +2 -2
- package/dist/{chunk-KPXM4WO6.js → chunk-Q5YJCVJY.js} +3 -3
- package/dist/{chunk-JYV4JJV2.js → chunk-QGIBI6GL.js} +4 -4
- package/dist/{chunk-DGBIHDVK.js → chunk-RBTVFPHF.js} +3 -3
- package/dist/{chunk-6R6Q3MRN.js → chunk-RQ4ZI4ZI.js} +4 -4
- package/dist/{chunk-FO6RNKKW.js → chunk-S7GIXBXV.js} +2 -2
- package/dist/chunk-SBHN6QUT.js +25 -0
- package/dist/chunk-SBHN6QUT.js.map +1 -0
- package/dist/{chunk-3XKESW5E.js → chunk-SF2ZIRD6.js} +2 -2
- package/dist/{chunk-TE6LH6J2.js → chunk-SFBYQMZM.js} +3 -3
- package/dist/{chunk-RZPOZPZU.js → chunk-SU6SGWXM.js} +3 -3
- package/dist/{chunk-6L3DKWRY.js → chunk-T2MOJF76.js} +2 -2
- package/dist/{chunk-SKM35Y4Q.js → chunk-TS5XLBZR.js} +3 -3
- package/dist/{chunk-HFUAFR6B.js → chunk-TWPK7KUJ.js} +3 -3
- package/dist/{chunk-6M2I3DKF.js → chunk-WK7ULBTP.js} +2 -2
- package/dist/{chunk-IF6WNGAK.js → chunk-WUHEP3HH.js} +2 -2
- package/dist/{chunk-NQSO4UAH.js → chunk-WYUAEZSC.js} +3 -3
- package/dist/{chunk-Y6VZQGGH.js → chunk-YGK2HMLR.js} +4 -4
- package/dist/{chunk-TWS3S62A.js → chunk-ZBYFMI6D.js} +223 -119
- package/dist/chunk-ZBYFMI6D.js.map +1 -0
- package/dist/{chunk-N5PLUFH2.js → chunk-ZFG5EBI3.js} +4 -4
- package/dist/{chunk-KFRPNHWR.js → chunk-ZHDSUZQU.js} +3 -3
- package/dist/{chunk-C25JXSOR.js → chunk-ZNWSG7XC.js} +5 -5
- package/dist/classified/index.js +3 -3
- package/dist/{classified-marker-EOOSMWFC.js → classified-marker-LE54HWSX.js} +3 -3
- package/dist/{collection-facade-TTRF5NFJ.js → collection-facade-DO2AABZT.js} +8 -8
- package/dist/consent/index.js +4 -4
- package/dist/cover/index.js +2 -2
- package/dist/custody/index.js +6 -6
- package/dist/{dead-filter-6DYY7S64.js → dead-filter-V3LVWYEJ.js} +2 -2
- package/dist/debug/index.js +29 -0
- package/dist/debug/index.js.map +1 -0
- package/dist/{delegation-ONOZVPIP.js → delegation-JDUMAF6L.js} +4 -4
- package/dist/derivations/index.js +3 -3
- package/dist/{derive-IGGVSUPH.js → derive-ZPGVLE2Q.js} +4 -4
- package/dist/directory/index.js +5 -5
- package/dist/{dispatch-RPTLK7LJ.js → dispatch-6TV3DGO6.js} +5 -5
- package/dist/{dispatch-7T45NN7C.js → dispatch-W7NWQ637.js} +9 -9
- package/dist/{enclave-CLJVSDFG.js → enclave-YFCLPIDR.js} +4 -4
- package/dist/{executor-XZYM4KHT.js → executor-FPHKWDWT.js} +8 -8
- package/dist/{export-accessible-24XCCD3A.js → export-accessible-EKM3HGB2.js} +7 -7
- package/dist/{extract-partition-H2TPEEOF.js → extract-partition-LS4ET5A6.js} +10 -10
- package/dist/{fanout-sidecar-TV7CXAJ6.js → fanout-sidecar-273RDMYS.js} +4 -4
- package/dist/forget/index.js +4 -4
- package/dist/history/index.js +6 -6
- package/dist/i18n/index.js +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.js +148 -96
- package/dist/index.js.map +1 -1
- package/dist/introspection/index.js +5 -5
- package/dist/{issue-55HJE7JF.js → issue-LIA7FXBJ.js} +6 -6
- package/dist/kernel/best-effort-revert.d.ts +9 -1
- package/dist/kernel/collection.d.ts +89 -2
- package/dist/kernel/debug.d.ts +11 -0
- package/dist/kernel/noydb.d.ts +3 -3
- package/dist/kernel/prepared-write.d.ts +70 -0
- package/dist/kernel/sync-policy.d.ts +75 -3
- package/dist/kernel/types.d.ts +27 -8
- package/dist/{ledger-XY6NP3J2.js → ledger-XE7JF2I2.js} +6 -6
- package/dist/liberate-WZ3RHVKW.js +24 -0
- package/dist/{link-set-POQB7BU5.js → link-set-CGYC3OH5.js} +5 -5
- package/dist/materialized-views/index.js +13 -13
- package/dist/{noydb-FHZ4ZDBP.js → noydb-ZLPVCDES.js} +30 -31
- package/dist/periods/index.js +8 -8
- package/dist/pod/index.js +6 -6
- package/dist/policy/index.js +3 -3
- package/dist/port/with/strategies.d.ts +1 -1
- package/dist/portability/index.js +6 -6
- package/dist/{post-register-URQANI3B.js → post-register-LY35EDTJ.js} +4 -4
- package/dist/{register-5W6CG4RM.js → register-6RIBIT3I.js} +6 -6
- package/dist/{registry-UJFP3NWF.js → registry-MUSL4AW6.js} +4 -4
- package/dist/{registry-MCSGBZXI.js → registry-RON4WHAP.js} +4 -4
- package/dist/{request-withdrawal-IWYDM4SO.js → request-withdrawal-FT3ORAWN.js} +9 -9
- package/dist/{reveal-BXZGWIOP.js → reveal-T34ADTPY.js} +3 -3
- package/dist/{revoke-TINYPHYY.js → revoke-HC7WG3HE.js} +6 -6
- package/dist/sealed-record/index.js +6 -6
- package/dist/search/index.js +1 -1
- package/dist/{seed-F7YYQTRC.js → seed-JOV54PB3.js} +6 -6
- package/dist/seed-JOV54PB3.js.map +1 -0
- package/dist/sequence/index.js +4 -4
- package/dist/session/index.js +3 -3
- package/dist/{signer-WMZKCNKC.js → signer-CTWOH6KT.js} +5 -5
- package/dist/snapshots/index.js +5 -5
- package/dist/{stale-JOE7GBAE.js → stale-T3V7XEOB.js} +5 -5
- package/dist/{storage-B3WBKXKT.js → storage-LLNLPWWB.js} +5 -5
- package/dist/{store-coordination-provider-5LX2UFU2.js → store-coordination-provider-AHGFEMFA.js} +3 -3
- package/dist/sync/index.js +9 -10
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +8 -30
- package/dist/tiers/index.js +4 -4
- package/dist/transactions/index.js +1 -1
- package/dist/{walk-6OHAWGBS.js → walk-G3NFEP5L.js} +6 -6
- package/dist/with-commit/tx/atomic-eligibility.d.ts +47 -0
- package/dist/with-commit/tx/transaction.d.ts +22 -9
- package/dist/with-party/broker/seed.d.ts +1 -1
- package/dist/with-party/team/index.d.ts +0 -5
- package/dist/{with-party/team/sync-active.d.ts → with-sync/active.d.ts} +1 -1
- package/dist/{with-party/team/sync-credentials.d.ts → with-sync/credentials.d.ts} +3 -3
- package/dist/{with-party/team/sync.d.ts → with-sync/engine.d.ts} +5 -5
- package/dist/{with-party/sync → with-sync}/index.d.ts +3 -3
- package/dist/{with-party/team/sync-period-scope.d.ts → with-sync/period-scope.d.ts} +2 -2
- package/dist/{with-party/team → with-sync}/presence.d.ts +2 -2
- package/dist/{with-party/team/sync-strategy.d.ts → with-sync/strategy.d.ts} +6 -6
- package/dist/{with-party/team/sync-transaction.d.ts → with-sync/transaction.d.ts} +3 -3
- package/dist/{withdraw-accessible-DEUCOO4F.js → withdraw-accessible-ANSVG6XG.js} +8 -8
- package/package.json +8 -4
- package/dist/chunk-BQ6DHN4I.js.map +0 -1
- package/dist/chunk-BXHMZ2XW.js.map +0 -1
- package/dist/chunk-EP5L47XV.js +0 -22
- package/dist/chunk-EP5L47XV.js.map +0 -1
- package/dist/chunk-EZNTORXE.js.map +0 -1
- package/dist/chunk-GZACYEOB.js.map +0 -1
- package/dist/chunk-MTJLOC3Y.js.map +0 -1
- package/dist/chunk-SHYIA73K.js +0 -99
- package/dist/chunk-SHYIA73K.js.map +0 -1
- package/dist/chunk-TWS3S62A.js.map +0 -1
- package/dist/chunk-Y6B6HVKC.js.map +0 -1
- package/dist/liberate-LXOJ2EMB.js +0 -24
- package/dist/seed-F7YYQTRC.js.map +0 -1
- /package/dist/{api-3NKVNZPM.js.map → api-SI2IVBQO.js.map} +0 -0
- /package/dist/{backup-PTSVXDDW.js.map → backup-X7F3TCFV.js.map} +0 -0
- /package/dist/{chunk-WZ3NCMK6.js.map → chunk-2BET5QTS.js.map} +0 -0
- /package/dist/{chunk-BYFXLDVV.js.map → chunk-3ECU57YH.js.map} +0 -0
- /package/dist/{chunk-ZWBKDKXC.js.map → chunk-467SWYT5.js.map} +0 -0
- /package/dist/{chunk-XIDQKFZF.js.map → chunk-5UQ7Y6SQ.js.map} +0 -0
- /package/dist/{chunk-IMRB2C4O.js.map → chunk-7H3WWH6J.js.map} +0 -0
- /package/dist/{chunk-OLIWCCFM.js.map → chunk-CLE3TMIS.js.map} +0 -0
- /package/dist/{chunk-ZFUFAHZ3.js.map → chunk-DAFBJS4Y.js.map} +0 -0
- /package/dist/{chunk-ISRKW4YN.js.map → chunk-DQZXPGGZ.js.map} +0 -0
- /package/dist/{chunk-FMNU7IUG.js.map → chunk-DTFA5DO4.js.map} +0 -0
- /package/dist/{chunk-VH6SOCXH.js.map → chunk-EFJAAFBW.js.map} +0 -0
- /package/dist/{chunk-TIVK6PRK.js.map → chunk-ERGECZEI.js.map} +0 -0
- /package/dist/{chunk-KW42W6SV.js.map → chunk-HLKXPJ4V.js.map} +0 -0
- /package/dist/{chunk-MANUDU7I.js.map → chunk-HZZP2ZIG.js.map} +0 -0
- /package/dist/{chunk-DZAF24PG.js.map → chunk-IFOH7RBI.js.map} +0 -0
- /package/dist/{chunk-FRMW23UK.js.map → chunk-IVYQAVWO.js.map} +0 -0
- /package/dist/{chunk-SGQ4N5FS.js.map → chunk-JEI6JJNI.js.map} +0 -0
- /package/dist/{chunk-BN4HRYAZ.js.map → chunk-JQ2AX4T5.js.map} +0 -0
- /package/dist/{chunk-OBPVWOSQ.js.map → chunk-KD4HGBJV.js.map} +0 -0
- /package/dist/{chunk-QADFHRQM.js.map → chunk-KYRDJI5O.js.map} +0 -0
- /package/dist/{chunk-JTR75MKH.js.map → chunk-LLYIMSQQ.js.map} +0 -0
- /package/dist/{chunk-GP3UWP22.js.map → chunk-LRRX57UA.js.map} +0 -0
- /package/dist/{chunk-OLSARBZU.js.map → chunk-LXRTP3AQ.js.map} +0 -0
- /package/dist/{chunk-EBKCYQ2D.js.map → chunk-NBXFCQX4.js.map} +0 -0
- /package/dist/{chunk-NEX7JCMO.js.map → chunk-OWHP3H5C.js.map} +0 -0
- /package/dist/{chunk-WO4T4OD5.js.map → chunk-P4JO3H6R.js.map} +0 -0
- /package/dist/{chunk-CCDP6EPB.js.map → chunk-PWPYO73B.js.map} +0 -0
- /package/dist/{chunk-56IIVAEO.js.map → chunk-Q2SEJMP2.js.map} +0 -0
- /package/dist/{chunk-JIDLU57U.js.map → chunk-Q36YXK77.js.map} +0 -0
- /package/dist/{chunk-KPXM4WO6.js.map → chunk-Q5YJCVJY.js.map} +0 -0
- /package/dist/{chunk-JYV4JJV2.js.map → chunk-QGIBI6GL.js.map} +0 -0
- /package/dist/{chunk-DGBIHDVK.js.map → chunk-RBTVFPHF.js.map} +0 -0
- /package/dist/{chunk-6R6Q3MRN.js.map → chunk-RQ4ZI4ZI.js.map} +0 -0
- /package/dist/{chunk-FO6RNKKW.js.map → chunk-S7GIXBXV.js.map} +0 -0
- /package/dist/{chunk-3XKESW5E.js.map → chunk-SF2ZIRD6.js.map} +0 -0
- /package/dist/{chunk-TE6LH6J2.js.map → chunk-SFBYQMZM.js.map} +0 -0
- /package/dist/{chunk-RZPOZPZU.js.map → chunk-SU6SGWXM.js.map} +0 -0
- /package/dist/{chunk-6L3DKWRY.js.map → chunk-T2MOJF76.js.map} +0 -0
- /package/dist/{chunk-SKM35Y4Q.js.map → chunk-TS5XLBZR.js.map} +0 -0
- /package/dist/{chunk-HFUAFR6B.js.map → chunk-TWPK7KUJ.js.map} +0 -0
- /package/dist/{chunk-6M2I3DKF.js.map → chunk-WK7ULBTP.js.map} +0 -0
- /package/dist/{chunk-IF6WNGAK.js.map → chunk-WUHEP3HH.js.map} +0 -0
- /package/dist/{chunk-NQSO4UAH.js.map → chunk-WYUAEZSC.js.map} +0 -0
- /package/dist/{chunk-Y6VZQGGH.js.map → chunk-YGK2HMLR.js.map} +0 -0
- /package/dist/{chunk-N5PLUFH2.js.map → chunk-ZFG5EBI3.js.map} +0 -0
- /package/dist/{chunk-KFRPNHWR.js.map → chunk-ZHDSUZQU.js.map} +0 -0
- /package/dist/{chunk-C25JXSOR.js.map → chunk-ZNWSG7XC.js.map} +0 -0
- /package/dist/{classified-marker-EOOSMWFC.js.map → classified-marker-LE54HWSX.js.map} +0 -0
- /package/dist/{collection-facade-TTRF5NFJ.js.map → collection-facade-DO2AABZT.js.map} +0 -0
- /package/dist/{dead-filter-6DYY7S64.js.map → dead-filter-V3LVWYEJ.js.map} +0 -0
- /package/dist/{delegation-ONOZVPIP.js.map → delegation-JDUMAF6L.js.map} +0 -0
- /package/dist/{derive-IGGVSUPH.js.map → derive-ZPGVLE2Q.js.map} +0 -0
- /package/dist/{dispatch-RPTLK7LJ.js.map → dispatch-6TV3DGO6.js.map} +0 -0
- /package/dist/{dispatch-7T45NN7C.js.map → dispatch-W7NWQ637.js.map} +0 -0
- /package/dist/{enclave-CLJVSDFG.js.map → enclave-YFCLPIDR.js.map} +0 -0
- /package/dist/{executor-XZYM4KHT.js.map → executor-FPHKWDWT.js.map} +0 -0
- /package/dist/{export-accessible-24XCCD3A.js.map → export-accessible-EKM3HGB2.js.map} +0 -0
- /package/dist/{extract-partition-H2TPEEOF.js.map → extract-partition-LS4ET5A6.js.map} +0 -0
- /package/dist/{fanout-sidecar-TV7CXAJ6.js.map → fanout-sidecar-273RDMYS.js.map} +0 -0
- /package/dist/{issue-55HJE7JF.js.map → issue-LIA7FXBJ.js.map} +0 -0
- /package/dist/{ledger-XY6NP3J2.js.map → ledger-XE7JF2I2.js.map} +0 -0
- /package/dist/{liberate-LXOJ2EMB.js.map → liberate-WZ3RHVKW.js.map} +0 -0
- /package/dist/{link-set-POQB7BU5.js.map → link-set-CGYC3OH5.js.map} +0 -0
- /package/dist/{noydb-FHZ4ZDBP.js.map → noydb-ZLPVCDES.js.map} +0 -0
- /package/dist/{post-register-URQANI3B.js.map → post-register-LY35EDTJ.js.map} +0 -0
- /package/dist/{register-5W6CG4RM.js.map → register-6RIBIT3I.js.map} +0 -0
- /package/dist/{registry-MCSGBZXI.js.map → registry-MUSL4AW6.js.map} +0 -0
- /package/dist/{registry-UJFP3NWF.js.map → registry-RON4WHAP.js.map} +0 -0
- /package/dist/{request-withdrawal-IWYDM4SO.js.map → request-withdrawal-FT3ORAWN.js.map} +0 -0
- /package/dist/{reveal-BXZGWIOP.js.map → reveal-T34ADTPY.js.map} +0 -0
- /package/dist/{revoke-TINYPHYY.js.map → revoke-HC7WG3HE.js.map} +0 -0
- /package/dist/{signer-WMZKCNKC.js.map → signer-CTWOH6KT.js.map} +0 -0
- /package/dist/{stale-JOE7GBAE.js.map → stale-T3V7XEOB.js.map} +0 -0
- /package/dist/{storage-B3WBKXKT.js.map → storage-LLNLPWWB.js.map} +0 -0
- /package/dist/{store-coordination-provider-5LX2UFU2.js.map → store-coordination-provider-AHGFEMFA.js.map} +0 -0
- /package/dist/{walk-6OHAWGBS.js.map → walk-G3NFEP5L.js.map} +0 -0
- /package/dist/{with-party → with-sync}/tab-coordination.d.ts +0 -0
- /package/dist/{with-party → with-sync}/tab-write-relay.d.ts +0 -0
- /package/dist/{withdraw-accessible-DEUCOO4F.js.map → withdraw-accessible-ANSVG6XG.js.map} +0 -0
package/dist/forget/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NO_FORGET,
|
|
3
3
|
SUBJECT_INDEX_COLLECTION
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ZHDSUZQU.js";
|
|
5
|
+
import "../chunk-SU6SGWXM.js";
|
|
6
|
+
import "../chunk-EFJAAFBW.js";
|
|
7
7
|
import "../chunk-35NMVJ7I.js";
|
|
8
8
|
import "../chunk-NFZGZ4AK.js";
|
|
9
9
|
import "../chunk-QJNCB5SK.js";
|
|
10
10
|
import "../chunk-LP7BEXCT.js";
|
|
11
11
|
import "../chunk-AKKRXT23.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-77AEMXFA.js";
|
|
13
13
|
import "../chunk-QZWTRENR.js";
|
|
14
14
|
import "../chunk-PZ5AY32C.js";
|
|
15
15
|
|
package/dist/history/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
rewrapHistory,
|
|
9
9
|
saveHistory,
|
|
10
10
|
tombstoneHistory
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-HZZP2ZIG.js";
|
|
12
12
|
import {
|
|
13
13
|
NO_HISTORY
|
|
14
14
|
} from "../chunk-AFHQATY4.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
LedgerStore,
|
|
21
21
|
applyPatch,
|
|
22
22
|
computePatch
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-YGK2HMLR.js";
|
|
24
24
|
import {
|
|
25
25
|
LEDGER_COLLECTION,
|
|
26
26
|
LEDGER_DELTAS_COLLECTION
|
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
paddedIndex,
|
|
34
34
|
parseIndex,
|
|
35
35
|
sha256Hex
|
|
36
|
-
} from "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
} from "../chunk-DQZXPGGZ.js";
|
|
37
|
+
import "../chunk-SU6SGWXM.js";
|
|
38
|
+
import "../chunk-EFJAAFBW.js";
|
|
39
39
|
import "../chunk-35NMVJ7I.js";
|
|
40
40
|
import "../chunk-NFZGZ4AK.js";
|
|
41
41
|
import "../chunk-QJNCB5SK.js";
|
|
42
42
|
import "../chunk-LP7BEXCT.js";
|
|
43
43
|
import "../chunk-AKKRXT23.js";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-77AEMXFA.js";
|
|
45
45
|
import "../chunk-QZWTRENR.js";
|
|
46
46
|
import "../chunk-PZ5AY32C.js";
|
|
47
47
|
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withLookup
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LXRTP3AQ.js";
|
|
4
4
|
import {
|
|
5
5
|
dictKey,
|
|
6
6
|
staticDict
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
DICT_COLLECTION_PREFIX,
|
|
10
10
|
LookupHandle,
|
|
11
11
|
dictCollectionName
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-OWHP3H5C.js";
|
|
13
13
|
import {
|
|
14
14
|
NO_I18N,
|
|
15
15
|
applyI18nLocale,
|
|
@@ -28,15 +28,15 @@ import {
|
|
|
28
28
|
validateI18nTextValue
|
|
29
29
|
} from "../chunk-UADPR6F4.js";
|
|
30
30
|
import "../chunk-6UBZ6I5Z.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-DQZXPGGZ.js";
|
|
32
|
+
import "../chunk-SU6SGWXM.js";
|
|
33
|
+
import "../chunk-EFJAAFBW.js";
|
|
34
34
|
import "../chunk-35NMVJ7I.js";
|
|
35
35
|
import "../chunk-NFZGZ4AK.js";
|
|
36
36
|
import "../chunk-QJNCB5SK.js";
|
|
37
37
|
import "../chunk-LP7BEXCT.js";
|
|
38
38
|
import "../chunk-AKKRXT23.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-77AEMXFA.js";
|
|
40
40
|
import {
|
|
41
41
|
DictKeyInUseError,
|
|
42
42
|
DictKeyMissingError,
|
package/dist/index.d.ts
CHANGED
|
@@ -99,12 +99,12 @@ export type { CollectionMeta, VaultMeta } from './with-shape/introspection/meta.
|
|
|
99
99
|
export type { CollectionDescription, DescribedField, DescribeOptions } from './with-shape/introspection/describe.js';
|
|
100
100
|
export { applyListProjection, type ListProjectionOptions } from './with-shape/introspection/projection.js';
|
|
101
101
|
export type { DryRunResult, AffectedDocument, GuardViolation } from './with-commit/tx/dry-run.js';
|
|
102
|
-
export type { TabRole, TabPresence, TabCoordinationOptions, TabLockManager, TabChannel } from './with-
|
|
102
|
+
export type { TabRole, TabPresence, TabCoordinationOptions, TabLockManager, TabChannel } from './with-sync/tab-coordination.js';
|
|
103
103
|
export type { WriteConflict } from './kernel/types.js';
|
|
104
104
|
export type { SchemaDelta, FieldChange, UpdateContext, UpdateDecision, SchemaUpdateStrategy, } from './with-shape/schema-update/index.js';
|
|
105
105
|
export { blindUpdate, additiveOnly, lockSchema, coordinatedCutover } from './with-shape/schema-update/index.js';
|
|
106
106
|
export type { FenceState, FenceDoc } from './with-shape/schema-update/fence.js';
|
|
107
|
-
export type { SyncPolicy, PushPolicy, PullPolicy, PushMode, PullMode, SyncSchedulerStatus } from './kernel/sync-policy.js';
|
|
107
|
+
export type { SyncPolicy, PushPolicy, PullPolicy, PushMode, PullMode, SyncSchedulerStatus, ReadinessState } from './kernel/sync-policy.js';
|
|
108
108
|
export { SyncScheduler, INDEXED_STORE_POLICY, POD_STORE_POLICY, BUNDLE_STORE_POLICY } from './kernel/sync-policy.js';
|
|
109
109
|
export type { SyncTarget, SyncTargetRole } from './kernel/types.js';
|
|
110
110
|
export { memoryStore } from './kernel/memory-store.js';
|
|
@@ -215,11 +215,11 @@ export { Collection } from './kernel/collection.js';
|
|
|
215
215
|
export type { CacheOptions, CacheStats, CollectionChangeEvent } from './kernel/collection.js';
|
|
216
216
|
export type { CrdtMode, CrdtState, LwwMapState, RgaState, YjsState } from './with-commit/crdt/crdt.js';
|
|
217
217
|
export { resolveCrdtSnapshot, mergeCrdtStates } from './with-commit/crdt/crdt.js';
|
|
218
|
-
export { PresenceHandle } from './with-
|
|
218
|
+
export { PresenceHandle } from './with-sync/presence.js';
|
|
219
219
|
export type { PresencePeer } from './kernel/types.js';
|
|
220
220
|
export { derivePresenceKey } from './kernel/enclave/index.js';
|
|
221
|
-
export { SyncEngine } from './with-
|
|
222
|
-
export { SyncTransaction } from './with-
|
|
221
|
+
export { SyncEngine } from './with-sync/engine.js';
|
|
222
|
+
export { SyncTransaction } from './with-sync/transaction.js';
|
|
223
223
|
export { TxContext, TxVault, TxCollection, runTransaction } from './with-commit/tx/transaction.js';
|
|
224
224
|
export type { TxOp } from './kernel/types.js';
|
|
225
225
|
export type { TransactionInvariant } from './with-commit/tx/invariants.js';
|
|
@@ -271,8 +271,8 @@ export { lookup, dict, enumOf, enum } from './via/lookup/index.js';
|
|
|
271
271
|
export { UnknownLookupKeyError, RestrictRefUnresolvableError } from './kernel/errors.js';
|
|
272
272
|
export type { LookupDescriptor, Vocabulary, OnDelete } from './via/lookup/index.js';
|
|
273
273
|
export type { LocaleReadOptions } from './kernel/types.js';
|
|
274
|
-
export { putCredential, getCredential, deleteCredential, listCredentials, credentialStatus, SYNC_CREDENTIALS_COLLECTION, } from './with-
|
|
275
|
-
export type { SyncCredential } from './with-
|
|
274
|
+
export { putCredential, getCredential, deleteCredential, listCredentials, credentialStatus, SYNC_CREDENTIALS_COLLECTION, } from './with-sync/credentials.js';
|
|
275
|
+
export type { SyncCredential } from './with-sync/credentials.js';
|
|
276
276
|
export { PolicyEnforcer, createEnforcer, validateSessionPolicy } from './with-party/session/session-policy.js';
|
|
277
277
|
export { createSession, resolveSession, revokeSession, revokeAllSessions, isSessionAlive, activeSessionCount, } from './with-party/session/session.js';
|
|
278
278
|
export type { SessionToken, CreateSessionResult, CreateSessionOptions, } from './with-party/session/session.js';
|
package/dist/index.js
CHANGED
|
@@ -16,32 +16,46 @@ import {
|
|
|
16
16
|
refArray,
|
|
17
17
|
via,
|
|
18
18
|
withArchive
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZBYFMI6D.js";
|
|
20
|
+
import "./chunk-SHEEBRZ4.js";
|
|
20
21
|
import "./chunk-NJ4DYYO5.js";
|
|
21
22
|
import {
|
|
22
23
|
persistSchemaIfNeeded
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-S7GIXBXV.js";
|
|
24
25
|
import {
|
|
25
26
|
LinkEndpointError
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TWPK7KUJ.js";
|
|
27
28
|
import {
|
|
28
29
|
LinkIntegrityError,
|
|
29
30
|
isLinkCollectionName
|
|
30
31
|
} from "./chunk-4JQK3L4V.js";
|
|
31
|
-
import "./chunk-SHEEBRZ4.js";
|
|
32
32
|
import {
|
|
33
33
|
ComputedFieldError,
|
|
34
34
|
evalComputedFields
|
|
35
35
|
} from "./chunk-5DRROK5W.js";
|
|
36
|
+
import "./chunk-GYGLAVCX.js";
|
|
36
37
|
import {
|
|
37
38
|
WithdrawalRequestError,
|
|
38
39
|
approveWithdrawal,
|
|
39
40
|
listWithdrawalRequests,
|
|
40
41
|
rejectWithdrawal,
|
|
41
42
|
requestWithdrawal
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-QGIBI6GL.js";
|
|
44
|
+
import "./chunk-WK7ULBTP.js";
|
|
45
|
+
import "./chunk-PWPYO73B.js";
|
|
46
|
+
import {
|
|
47
|
+
MoneyCurrencyError,
|
|
48
|
+
MoneyPrecisionError,
|
|
49
|
+
MoneyUnsupportedError,
|
|
50
|
+
allocate,
|
|
51
|
+
asMoney,
|
|
52
|
+
isMoneyDescriptor,
|
|
53
|
+
isMoneyString,
|
|
54
|
+
money,
|
|
55
|
+
moneyNumber,
|
|
56
|
+
mulRate,
|
|
57
|
+
scaleForCurrency
|
|
58
|
+
} from "./chunk-SGDPRCC4.js";
|
|
45
59
|
import {
|
|
46
60
|
COVER_FIELDS,
|
|
47
61
|
DEFAULT_COVER_SCHEMA,
|
|
@@ -62,42 +76,52 @@ import {
|
|
|
62
76
|
checkGate,
|
|
63
77
|
describeGate,
|
|
64
78
|
mergePolicy
|
|
65
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-DTFA5DO4.js";
|
|
66
80
|
import "./chunk-GJW4HX2O.js";
|
|
67
81
|
import {
|
|
68
82
|
UserApi
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import
|
|
71
|
-
|
|
83
|
+
} from "./chunk-SF2ZIRD6.js";
|
|
84
|
+
import {
|
|
85
|
+
classified,
|
|
86
|
+
luhnCheck
|
|
87
|
+
} from "./chunk-T2MOJF76.js";
|
|
88
|
+
import {
|
|
89
|
+
ClassifiedNeverStoredError,
|
|
90
|
+
ClassifiedValidationError,
|
|
91
|
+
isClassifiedFieldSpec,
|
|
92
|
+
isClassifiedGroup,
|
|
93
|
+
resolveClassifiedFields
|
|
94
|
+
} from "./chunk-DAFBJS4Y.js";
|
|
95
|
+
import "./chunk-RQ4ZI4ZI.js";
|
|
72
96
|
import "./chunk-BLBAQRBM.js";
|
|
73
97
|
import {
|
|
74
98
|
decryptExtractedPartition,
|
|
75
99
|
diffVault,
|
|
76
100
|
withCargo
|
|
77
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-LLYIMSQQ.js";
|
|
78
102
|
import {
|
|
79
103
|
NO_CARGO
|
|
80
104
|
} from "./chunk-TG634KCO.js";
|
|
81
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-3ECU57YH.js";
|
|
82
106
|
import {
|
|
83
107
|
createDeedOwner,
|
|
84
108
|
isDeedVault,
|
|
85
109
|
liberateVault,
|
|
86
110
|
loadDeedMarker
|
|
87
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-ERGECZEI.js";
|
|
88
112
|
import {
|
|
89
113
|
MemoryRecipientSealer,
|
|
90
114
|
MemorySealingKeyProvider,
|
|
91
115
|
aesGcmOpen,
|
|
92
116
|
parseRsaOaepTlv,
|
|
93
117
|
sealRsaOaepTlv
|
|
94
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-CLE3TMIS.js";
|
|
95
119
|
import {
|
|
96
120
|
withdrawAccessibleData
|
|
97
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-SFBYQMZM.js";
|
|
98
122
|
import {
|
|
99
123
|
exportAccessibleData
|
|
100
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-P4JO3H6R.js";
|
|
101
125
|
import {
|
|
102
126
|
routeStore,
|
|
103
127
|
withCache,
|
|
@@ -121,20 +145,12 @@ import {
|
|
|
121
145
|
SCHEMAS_COLLECTION,
|
|
122
146
|
loadPersistedSchema,
|
|
123
147
|
savePersistedSchema
|
|
124
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-KD4HGBJV.js";
|
|
125
149
|
import {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
asMoney,
|
|
131
|
-
isMoneyDescriptor,
|
|
132
|
-
isMoneyString,
|
|
133
|
-
money,
|
|
134
|
-
moneyNumber,
|
|
135
|
-
mulRate,
|
|
136
|
-
scaleForCurrency
|
|
137
|
-
} from "./chunk-SGDPRCC4.js";
|
|
150
|
+
CustodyApi,
|
|
151
|
+
NO_CUSTODY,
|
|
152
|
+
withCustody
|
|
153
|
+
} from "./chunk-TS5XLBZR.js";
|
|
138
154
|
import {
|
|
139
155
|
withDerivation,
|
|
140
156
|
withRollup
|
|
@@ -145,36 +161,42 @@ import "./chunk-MHMLXJ3I.js";
|
|
|
145
161
|
import {
|
|
146
162
|
withMaterializedView
|
|
147
163
|
} from "./chunk-MXUT7FTE.js";
|
|
148
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-7H3WWH6J.js";
|
|
165
|
+
import "./chunk-IVYQAVWO.js";
|
|
149
166
|
import {
|
|
150
167
|
buildLookupSnapshot
|
|
151
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-LRRX57UA.js";
|
|
152
169
|
import "./chunk-3HUYRN24.js";
|
|
153
|
-
import "./chunk-IMRB2C4O.js";
|
|
154
170
|
import {
|
|
155
171
|
withOverlayedView
|
|
156
172
|
} from "./chunk-MSMJJB4J.js";
|
|
157
173
|
import "./chunk-ZTLOXFPB.js";
|
|
158
174
|
import "./chunk-IG6KUWBX.js";
|
|
159
|
-
import
|
|
175
|
+
import {
|
|
176
|
+
PresenceHandle,
|
|
177
|
+
SyncEngine,
|
|
178
|
+
SyncTransaction
|
|
179
|
+
} from "./chunk-NLYALJMY.js";
|
|
180
|
+
import {
|
|
181
|
+
BUNDLE_STORE_POLICY,
|
|
182
|
+
INDEXED_STORE_POLICY,
|
|
183
|
+
POD_STORE_POLICY,
|
|
184
|
+
SyncScheduler
|
|
185
|
+
} from "./chunk-55LKVALY.js";
|
|
160
186
|
import {
|
|
161
187
|
isDiscriminant
|
|
162
188
|
} from "./chunk-PY4KJPYU.js";
|
|
163
189
|
import "./chunk-5GQEU4DN.js";
|
|
164
190
|
import {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
import
|
|
169
|
-
|
|
170
|
-
ClassifiedValidationError,
|
|
171
|
-
isClassifiedFieldSpec,
|
|
172
|
-
isClassifiedGroup,
|
|
173
|
-
resolveClassifiedFields
|
|
174
|
-
} from "./chunk-ZFUFAHZ3.js";
|
|
175
|
-
import "./chunk-BN4HRYAZ.js";
|
|
176
|
-
import "./chunk-N5PLUFH2.js";
|
|
191
|
+
CONSENT_AUDIT_COLLECTION
|
|
192
|
+
} from "./chunk-5UQ7Y6SQ.js";
|
|
193
|
+
import "./chunk-PEOZ34EM.js";
|
|
194
|
+
import "./chunk-JQ2AX4T5.js";
|
|
195
|
+
import "./chunk-ZFG5EBI3.js";
|
|
177
196
|
import "./chunk-GHVIKOHT.js";
|
|
197
|
+
import {
|
|
198
|
+
PERIODS_COLLECTION
|
|
199
|
+
} from "./chunk-NM5UYF6Q.js";
|
|
178
200
|
import {
|
|
179
201
|
immutableGuard,
|
|
180
202
|
transitionGuard,
|
|
@@ -194,13 +216,13 @@ import {
|
|
|
194
216
|
TxContext,
|
|
195
217
|
TxVault,
|
|
196
218
|
runTransaction
|
|
197
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-GTYFIVIZ.js";
|
|
198
220
|
import "./chunk-5D2ALSM5.js";
|
|
199
221
|
import {
|
|
200
222
|
NO_SEARCH,
|
|
201
223
|
tokenize,
|
|
202
224
|
withSearch
|
|
203
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-KYRDJI5O.js";
|
|
204
226
|
import {
|
|
205
227
|
fuseRetrieval
|
|
206
228
|
} from "./chunk-AURFOK3D.js";
|
|
@@ -210,12 +232,7 @@ import {
|
|
|
210
232
|
compileSequenceFormat,
|
|
211
233
|
resolveSequenceKey,
|
|
212
234
|
withSequence
|
|
213
|
-
} from "./chunk-
|
|
214
|
-
import {
|
|
215
|
-
CustodyApi,
|
|
216
|
-
NO_CUSTODY,
|
|
217
|
-
withCustody
|
|
218
|
-
} from "./chunk-SKM35Y4Q.js";
|
|
235
|
+
} from "./chunk-NBXFCQX4.js";
|
|
219
236
|
import {
|
|
220
237
|
DEFAULT_CROSS_JOIN_MAX_ROWS,
|
|
221
238
|
Query,
|
|
@@ -231,7 +248,7 @@ import {
|
|
|
231
248
|
importExternalObjects,
|
|
232
249
|
memoryObjectProjection
|
|
233
250
|
} from "./chunk-4Q6HSHHL.js";
|
|
234
|
-
import "./chunk-
|
|
251
|
+
import "./chunk-WUHEP3HH.js";
|
|
235
252
|
import {
|
|
236
253
|
BLOB_CHUNKS_COLLECTION,
|
|
237
254
|
BLOB_COLLECTION,
|
|
@@ -248,7 +265,7 @@ import {
|
|
|
248
265
|
getIntent,
|
|
249
266
|
isPreCompressed,
|
|
250
267
|
sweepBlobIntents
|
|
251
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-WYUAEZSC.js";
|
|
252
269
|
import "./chunk-L3YYLT4E.js";
|
|
253
270
|
import {
|
|
254
271
|
CollectionIndexes
|
|
@@ -280,7 +297,7 @@ import {
|
|
|
280
297
|
createPodStore,
|
|
281
298
|
wrapBundleStore,
|
|
282
299
|
wrapPodStore
|
|
283
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-2J6UEN2V.js";
|
|
284
301
|
import {
|
|
285
302
|
NOYDB_BUNDLE_FORMAT_VERSION,
|
|
286
303
|
NOYDB_BUNDLE_MAGIC,
|
|
@@ -293,7 +310,7 @@ import {
|
|
|
293
310
|
readPodHeader,
|
|
294
311
|
writeNoydbBundle,
|
|
295
312
|
writePod
|
|
296
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-JEI6JJNI.js";
|
|
297
314
|
import {
|
|
298
315
|
COVER_RECORD_ID,
|
|
299
316
|
isCover,
|
|
@@ -301,12 +318,8 @@ import {
|
|
|
301
318
|
readCover,
|
|
302
319
|
saveCover,
|
|
303
320
|
validateCoverInput
|
|
304
|
-
} from "./chunk-
|
|
305
|
-
import
|
|
306
|
-
CONSENT_AUDIT_COLLECTION
|
|
307
|
-
} from "./chunk-XIDQKFZF.js";
|
|
308
|
-
import "./chunk-PEOZ34EM.js";
|
|
309
|
-
import "./chunk-OLSARBZU.js";
|
|
321
|
+
} from "./chunk-Q36YXK77.js";
|
|
322
|
+
import "./chunk-LXRTP3AQ.js";
|
|
310
323
|
import {
|
|
311
324
|
dictKey,
|
|
312
325
|
staticDict
|
|
@@ -315,7 +328,7 @@ import {
|
|
|
315
328
|
DICT_COLLECTION_PREFIX,
|
|
316
329
|
LookupHandle,
|
|
317
330
|
dictCollectionName
|
|
318
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-OWHP3H5C.js";
|
|
319
332
|
import {
|
|
320
333
|
applyI18nLocale,
|
|
321
334
|
enforceScript,
|
|
@@ -335,13 +348,8 @@ import {
|
|
|
335
348
|
installViaBinder
|
|
336
349
|
} from "./chunk-6UBZ6I5Z.js";
|
|
337
350
|
import {
|
|
338
|
-
credentialStatus,
|
|
339
|
-
deleteCredential,
|
|
340
|
-
getCredential,
|
|
341
|
-
listCredentials,
|
|
342
|
-
putCredential,
|
|
343
351
|
withTeam
|
|
344
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-SBHN6QUT.js";
|
|
345
353
|
import {
|
|
346
354
|
MAGIC_LINK_GRANTS_COLLECTION,
|
|
347
355
|
NO_TEAM,
|
|
@@ -369,32 +377,19 @@ import {
|
|
|
369
377
|
unwrapDeksFromPaperEntry,
|
|
370
378
|
unwrapMagicLinkGrant,
|
|
371
379
|
writeMagicLinkGrant
|
|
372
|
-
} from "./chunk-
|
|
380
|
+
} from "./chunk-ZNWSG7XC.js";
|
|
373
381
|
import {
|
|
374
382
|
META_COLLECTION,
|
|
375
383
|
POLICY_RECORD_ID,
|
|
376
384
|
loadVaultPolicy,
|
|
377
385
|
saveVaultPolicy
|
|
378
|
-
} from "./chunk-
|
|
379
|
-
import {
|
|
380
|
-
PresenceHandle,
|
|
381
|
-
SyncEngine,
|
|
382
|
-
SyncTransaction
|
|
383
|
-
} from "./chunk-BXHMZ2XW.js";
|
|
384
|
-
import {
|
|
385
|
-
BUNDLE_STORE_POLICY,
|
|
386
|
-
INDEXED_STORE_POLICY,
|
|
387
|
-
POD_STORE_POLICY,
|
|
388
|
-
SyncScheduler
|
|
389
|
-
} from "./chunk-MTJLOC3Y.js";
|
|
390
|
-
import {
|
|
391
|
-
PERIODS_COLLECTION
|
|
392
|
-
} from "./chunk-EZNTORXE.js";
|
|
386
|
+
} from "./chunk-Q2SEJMP2.js";
|
|
393
387
|
import {
|
|
394
388
|
SYNC_CREDENTIALS_COLLECTION,
|
|
395
389
|
WeakSecretError,
|
|
396
390
|
assertStrongSecret,
|
|
397
391
|
buildRecipientKeyringFile,
|
|
392
|
+
ensureCollectionDEK,
|
|
398
393
|
estimateEntropy,
|
|
399
394
|
evaluateExportCapability,
|
|
400
395
|
evaluateImportCapability,
|
|
@@ -403,7 +398,7 @@ import {
|
|
|
403
398
|
listUsers,
|
|
404
399
|
listUsersWithEnvelopes,
|
|
405
400
|
validateSecret
|
|
406
|
-
} from "./chunk-
|
|
401
|
+
} from "./chunk-Q5YJCVJY.js";
|
|
407
402
|
import {
|
|
408
403
|
DIRECTORY_RECORD_ID,
|
|
409
404
|
VISIBILITY_RECORD_PREFIX,
|
|
@@ -417,7 +412,7 @@ import {
|
|
|
417
412
|
readUserVisibility,
|
|
418
413
|
saveUserEnvelope,
|
|
419
414
|
visibilityRecordId
|
|
420
|
-
} from "./chunk-
|
|
415
|
+
} from "./chunk-2BET5QTS.js";
|
|
421
416
|
import "./chunk-PTHKZWEH.js";
|
|
422
417
|
import "./chunk-IXNCZTWA.js";
|
|
423
418
|
import {
|
|
@@ -443,7 +438,7 @@ import {
|
|
|
443
438
|
import {
|
|
444
439
|
CollectionInstant,
|
|
445
440
|
VaultInstant
|
|
446
|
-
} from "./chunk-
|
|
441
|
+
} from "./chunk-HZZP2ZIG.js";
|
|
447
442
|
import "./chunk-AFHQATY4.js";
|
|
448
443
|
import {
|
|
449
444
|
diff,
|
|
@@ -453,7 +448,7 @@ import {
|
|
|
453
448
|
LedgerStore,
|
|
454
449
|
applyPatch,
|
|
455
450
|
computePatch
|
|
456
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-YGK2HMLR.js";
|
|
457
452
|
import {
|
|
458
453
|
LEDGER_COLLECTION,
|
|
459
454
|
LEDGER_DELTAS_COLLECTION
|
|
@@ -466,14 +461,15 @@ import {
|
|
|
466
461
|
paddedIndex,
|
|
467
462
|
parseIndex,
|
|
468
463
|
sha256Hex
|
|
469
|
-
} from "./chunk-
|
|
470
|
-
import "./chunk-
|
|
464
|
+
} from "./chunk-DQZXPGGZ.js";
|
|
465
|
+
import "./chunk-ZHDSUZQU.js";
|
|
471
466
|
import "./chunk-QD46HPZG.js";
|
|
472
467
|
import {
|
|
468
|
+
openEnvelopeJson,
|
|
473
469
|
validateSchemaInput,
|
|
474
470
|
validateSchemaOutput
|
|
475
|
-
} from "./chunk-
|
|
476
|
-
import "./chunk-
|
|
471
|
+
} from "./chunk-SU6SGWXM.js";
|
|
472
|
+
import "./chunk-EFJAAFBW.js";
|
|
477
473
|
import "./chunk-35NMVJ7I.js";
|
|
478
474
|
import "./chunk-NFZGZ4AK.js";
|
|
479
475
|
import "./chunk-QJNCB5SK.js";
|
|
@@ -484,6 +480,7 @@ import {
|
|
|
484
480
|
decryptBytes,
|
|
485
481
|
decryptDeterministic,
|
|
486
482
|
derivePresenceKey,
|
|
483
|
+
encrypt,
|
|
487
484
|
encryptBytes,
|
|
488
485
|
encryptDeterministic
|
|
489
486
|
} from "./chunk-AKKRXT23.js";
|
|
@@ -494,7 +491,7 @@ import {
|
|
|
494
491
|
NOYDB_SYNC_VERSION,
|
|
495
492
|
SealedHandle,
|
|
496
493
|
createStore
|
|
497
|
-
} from "./chunk-
|
|
494
|
+
} from "./chunk-77AEMXFA.js";
|
|
498
495
|
import {
|
|
499
496
|
AlreadyElevatedError,
|
|
500
497
|
AmendmentForbiddenError,
|
|
@@ -949,6 +946,61 @@ function dict(dimension, opts) {
|
|
|
949
946
|
...opts?.substitute !== void 0 ? { substitute: opts.substitute } : {}
|
|
950
947
|
};
|
|
951
948
|
}
|
|
949
|
+
|
|
950
|
+
// src/with-sync/credentials.ts
|
|
951
|
+
function requireAdminAccess(keyring) {
|
|
952
|
+
if (keyring.role !== "owner" && keyring.role !== "admin") {
|
|
953
|
+
throw new PermissionDeniedError(
|
|
954
|
+
`Sync credentials require owner or admin role. Current role: "${keyring.role}"`
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
async function putCredential(adapter, vault, keyring, credential) {
|
|
959
|
+
requireAdminAccess(keyring);
|
|
960
|
+
const getDek = await ensureCollectionDEK(adapter, vault, keyring);
|
|
961
|
+
const dek = await getDek(SYNC_CREDENTIALS_COLLECTION);
|
|
962
|
+
const { iv, data } = await encrypt(JSON.stringify(credential), dek);
|
|
963
|
+
const existing = await adapter.get(vault, SYNC_CREDENTIALS_COLLECTION, credential.adapterId);
|
|
964
|
+
const version = existing ? existing._v + 1 : 1;
|
|
965
|
+
const envelope = {
|
|
966
|
+
_noydb: NOYDB_FORMAT_VERSION,
|
|
967
|
+
_v: version,
|
|
968
|
+
_ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
969
|
+
_iv: iv,
|
|
970
|
+
_data: data,
|
|
971
|
+
_by: keyring.userId
|
|
972
|
+
};
|
|
973
|
+
await adapter.put(
|
|
974
|
+
vault,
|
|
975
|
+
SYNC_CREDENTIALS_COLLECTION,
|
|
976
|
+
credential.adapterId,
|
|
977
|
+
envelope,
|
|
978
|
+
existing ? existing._v : void 0
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
async function getCredential(adapter, vault, keyring, adapterId) {
|
|
982
|
+
requireAdminAccess(keyring);
|
|
983
|
+
const getDek = await ensureCollectionDEK(adapter, vault, keyring);
|
|
984
|
+
const dek = await getDek(SYNC_CREDENTIALS_COLLECTION);
|
|
985
|
+
const envelope = await adapter.get(vault, SYNC_CREDENTIALS_COLLECTION, adapterId);
|
|
986
|
+
if (!envelope) return null;
|
|
987
|
+
const plaintext = await openEnvelopeJson(envelope, dek);
|
|
988
|
+
return JSON.parse(plaintext);
|
|
989
|
+
}
|
|
990
|
+
async function deleteCredential(adapter, vault, keyring, adapterId) {
|
|
991
|
+
requireAdminAccess(keyring);
|
|
992
|
+
await adapter.delete(vault, SYNC_CREDENTIALS_COLLECTION, adapterId);
|
|
993
|
+
}
|
|
994
|
+
async function listCredentials(adapter, vault, keyring) {
|
|
995
|
+
requireAdminAccess(keyring);
|
|
996
|
+
return adapter.list(vault, SYNC_CREDENTIALS_COLLECTION);
|
|
997
|
+
}
|
|
998
|
+
async function credentialStatus(adapter, vault, keyring, adapterId) {
|
|
999
|
+
const credential = await getCredential(adapter, vault, keyring, adapterId);
|
|
1000
|
+
if (!credential) return { exists: false };
|
|
1001
|
+
const expired = credential.expiresAt ? Date.now() > new Date(credential.expiresAt).getTime() : false;
|
|
1002
|
+
return { exists: true, expired };
|
|
1003
|
+
}
|
|
952
1004
|
export {
|
|
953
1005
|
AlreadyElevatedError,
|
|
954
1006
|
AmendmentForbiddenError,
|