@noy-db/hub 0.7.0-pre.13 → 0.7.0-pre.15
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/CHANGELOG.md +169 -0
- package/README.md +4 -3
- package/dist/{api-UE2XQKDN.js → api-JPZT6BDD.js} +1 -2
- package/dist/as/index.js +3 -4
- package/dist/as/index.js.map +1 -1
- package/dist/at/index.js +0 -1
- package/dist/attestation/index.js +6 -7
- package/dist/attestation/index.js.map +1 -1
- package/dist/{backup-R6A4VZRX.js → backup-AKWIMYWU.js} +1 -2
- package/dist/{backup-R6A4VZRX.js.map → backup-AKWIMYWU.js.map} +1 -1
- package/dist/blobs/index.js +0 -1
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +3 -4
- package/dist/broker/index.js.map +1 -1
- package/dist/by/index.js +0 -1
- package/dist/cargo/index.js +10 -11
- package/dist/{chunk-5FUULQ6F.js → chunk-2HVILGVR.js} +6 -6
- package/dist/{chunk-DJ3LNNZQ.js → chunk-3LK2XZCW.js} +2 -2
- package/dist/{chunk-PQKG5AHH.js → chunk-6X6SEMEE.js} +4 -2
- package/dist/{chunk-PQKG5AHH.js.map → chunk-6X6SEMEE.js.map} +1 -1
- package/dist/{chunk-E2MYJGSG.js → chunk-AMODH7AU.js} +2 -2
- package/dist/{chunk-B2ZSGYSF.js → chunk-B2KCRDJM.js} +3 -3
- package/dist/{chunk-TO3EQ7HF.js → chunk-BLN54W3L.js} +2 -2
- package/dist/{chunk-IHFXR2VQ.js → chunk-BOBFL5TW.js} +2 -2
- package/dist/{chunk-ZR2YMODS.js → chunk-EKZ6VZYF.js} +2 -2
- package/dist/{chunk-RTYJRFQO.js → chunk-EWPRPP3M.js} +1 -1
- package/dist/{chunk-VGICZPVE.js → chunk-FUJSIP4K.js} +2 -2
- package/dist/{chunk-BWXGSSFX.js → chunk-NJXX55QX.js} +79 -16
- package/dist/chunk-NJXX55QX.js.map +1 -0
- package/dist/{chunk-PKJ43CMD.js → chunk-NLOLF6LD.js} +2 -2
- package/dist/{chunk-COTPDJR5.js → chunk-OMB2ZKIT.js} +8 -8
- package/dist/{chunk-BMELYFHU.js → chunk-P3KOF624.js} +3 -3
- package/dist/{chunk-Y4MJQ2UG.js → chunk-QQ2YMQZU.js} +2 -2
- package/dist/{chunk-URHRIAV6.js → chunk-REDOOY2Q.js} +2 -2
- package/dist/chunk-REDOOY2Q.js.map +1 -0
- package/dist/{chunk-YCXICMOY.js → chunk-RJ7NN2UR.js} +2 -2
- package/dist/{chunk-PDD75NUZ.js → chunk-SMH6SRX7.js} +2 -2
- package/dist/{chunk-QHW35ZON.js → chunk-TGPST6FK.js} +2 -2
- package/dist/{chunk-BERJ4AWW.js → chunk-VGXZT72I.js} +2 -2
- package/dist/{chunk-ZVCC36XQ.js → chunk-WL36WA3O.js} +55 -55
- package/dist/{chunk-2Z47NMFK.js → chunk-WZW37ZHL.js} +2 -2
- package/dist/{chunk-SXCYYMVS.js → chunk-YINEDONN.js} +5 -5
- package/dist/{chunk-AJQY44CE.js → chunk-ZXLZ62R5.js} +3 -20
- package/dist/chunk-ZXLZ62R5.js.map +1 -0
- package/dist/classified/index.js +1 -2
- package/dist/{classified-marker-67HBIJMZ.js → classified-marker-OO65UYXN.js} +3 -5
- package/dist/{classified-marker-67HBIJMZ.js.map → classified-marker-OO65UYXN.js.map} +1 -1
- package/dist/{collection-facade-4ACKIDDY.js → collection-facade-VOWW732S.js} +3 -4
- package/dist/{computed-LSEZYRJS.js → computed-VPOKQK4N.js} +1 -2
- package/dist/consent/index.js +0 -1
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +0 -1
- package/dist/crdt/index.js +0 -1
- package/dist/crdt/index.js.map +1 -1
- package/dist/custody/index.js +1 -2
- package/dist/{dead-filter-M3NZUWBZ.js → dead-filter-OMMVBAKZ.js} +2 -3
- package/dist/{dead-filter-M3NZUWBZ.js.map → dead-filter-OMMVBAKZ.js.map} +1 -1
- package/dist/debug/index.js +0 -1
- package/dist/debug/index.js.map +1 -1
- package/dist/{delegation-OLJUWTVA.js → delegation-VRYMQRCF.js} +1 -2
- package/dist/{delegation-OLJUWTVA.js.map → delegation-VRYMQRCF.js.map} +1 -1
- package/dist/derivations/index.js +3 -4
- package/dist/{derive-LY47HG7Q.js → derive-HHBRFS2U.js} +2 -3
- package/dist/directory/index.js +0 -1
- package/dist/{dispatch-MSTR5VBI.js → dispatch-DC3LQJ3S.js} +6 -7
- package/dist/{dispatch-MSTR5VBI.js.map → dispatch-DC3LQJ3S.js.map} +1 -1
- package/dist/{dispatch-PDP5TA73.js → dispatch-GGFBWQU7.js} +5 -7
- package/dist/{dispatch-PDP5TA73.js.map → dispatch-GGFBWQU7.js.map} +1 -1
- package/dist/{enclave-4YBQK77G.js → enclave-VM2YQONI.js} +1 -2
- package/dist/{executor-TOLPBHOC.js → executor-5NIMLSKZ.js} +1 -2
- package/dist/{executor-YDDC5XGY.js → executor-5XJNV5H5.js} +1 -2
- package/dist/{executor-MZJXBWNM.js → executor-AQVXV5GZ.js} +1 -2
- package/dist/{export-accessible-LGV6IAFX.js → export-accessible-2LOBM67T.js} +3 -4
- package/dist/{extract-partition-RYJZIKQZ.js → extract-partition-AZGSEMIF.js} +3 -4
- package/dist/{fanout-sidecar-TSFPXY5C.js → fanout-sidecar-HJIVUPTD.js} +1 -2
- package/dist/{fanout-sidecar-TSFPXY5C.js.map → fanout-sidecar-HJIVUPTD.js.map} +1 -1
- package/dist/{fence-watcher-ZVSMLKQD.js → fence-watcher-U2PW6JU5.js} +1 -3
- package/dist/{fence-watcher-ZVSMLKQD.js.map → fence-watcher-U2PW6JU5.js.map} +1 -1
- package/dist/{find-LC7P63MX.js → find-2ABFCZX4.js} +1 -2
- package/dist/forget/index.js +0 -1
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +0 -1
- package/dist/history/index.js +0 -1
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +0 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.js +26 -27
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +0 -1
- package/dist/indexing/index.js.map +1 -1
- package/dist/introspection/index.js +2 -3
- package/dist/{issue-IOXM3RSJ.js → issue-RH4H733Z.js} +1 -2
- package/dist/{json-schema-I22JCYCG.js → json-schema-V3M5MUCM.js} +1 -3
- package/dist/{json-schema-I22JCYCG.js.map → json-schema-V3M5MUCM.js.map} +1 -1
- package/dist/kernel/collection-config.d.ts +34 -0
- package/dist/lazy/index.js +0 -1
- package/dist/{ledger-HXHIOD36.js → ledger-454SU3VE.js} +1 -2
- package/dist/{liberate-4APIV7FR.js → liberate-AAZSP2BT.js} +5 -6
- package/dist/{link-set-6RAHEKZN.js → link-set-67CAMUAL.js} +1 -2
- package/dist/{managed-secret-P3JQ7ZG4.js → managed-secret-NHRYG7CD.js} +1 -2
- package/dist/materialized-views/index.js +2 -3
- package/dist/{migrate-cek-25KNTS5U.js → migrate-cek-5ENH64AA.js} +1 -2
- package/dist/{migrate-cek-25KNTS5U.js.map → migrate-cek-5ENH64AA.js.map} +1 -1
- package/dist/money/index.js +0 -1
- package/dist/{noydb-2C6QQJ5S.js → noydb-F5CABCU4.js} +11 -12
- package/dist/overlay-views/index.js +0 -1
- package/dist/periods/index.js +1 -2
- package/dist/pod/index.js +12 -13
- package/dist/{pod-handle-6II7KFBR.js → pod-handle-S7AMCJIF.js} +2 -3
- package/dist/{pod-handle-6II7KFBR.js.map → pod-handle-S7AMCJIF.js.map} +1 -1
- package/dist/policy/index.js +0 -1
- package/dist/portability/index.js +6 -7
- package/dist/portability/index.js.map +1 -1
- package/dist/{post-register-BPJ36A6D.js → post-register-HIYY4Y5S.js} +4 -5
- package/dist/{post-register-BPJ36A6D.js.map → post-register-HIYY4Y5S.js.map} +1 -1
- package/dist/{purge-scope-FGNNLWHD.js → purge-scope-4HEFPDOW.js} +1 -3
- package/dist/{purge-scope-FGNNLWHD.js.map → purge-scope-4HEFPDOW.js.map} +1 -1
- package/dist/query/index.js +0 -1
- package/dist/{read-only-facade-CHCKSEPD.js → read-only-facade-BIGO37U3.js} +1 -2
- package/dist/reduce/index.js +0 -1
- package/dist/reduce/index.js.map +1 -1
- package/dist/{register-AEOOGKNO.js → register-7OJWAWT5.js} +3 -4
- package/dist/{registry-SKSOUXNF.js → registry-23WF3TGH.js} +1 -2
- package/dist/{registry-SHMGHEK4.js → registry-4AYVUNXK.js} +1 -2
- package/dist/{registry-I6FP4677.js → registry-5MVJGPXW.js} +1 -2
- package/dist/{registry-D2YXKRYC.js → registry-BOHIKFWG.js} +4 -5
- package/dist/{request-withdrawal-6HJT4ODF.js → request-withdrawal-P5EQATZ7.js} +5 -6
- package/dist/{reveal-DDQBDWPM.js → reveal-IMGQ2EE5.js} +1 -2
- package/dist/{reveal-DDQBDWPM.js.map → reveal-IMGQ2EE5.js.map} +1 -1
- package/dist/{revoke-U7U3FMXU.js → revoke-POHP4GPB.js} +1 -2
- package/dist/satellites/index.js +0 -1
- package/dist/schema-update/index.js +0 -1
- package/dist/sealed-record/index.js +3 -4
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +1 -2
- package/dist/{seed-3RXT4VGN.js → seed-UYR6YG3V.js} +1 -2
- package/dist/{seed-3RXT4VGN.js.map → seed-UYR6YG3V.js.map} +1 -1
- package/dist/sequence/index.js +0 -1
- package/dist/session/index.js +0 -1
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +0 -1
- package/dist/shadow/index.js.map +1 -1
- package/dist/share-link/index.js +0 -1
- package/dist/share-link/index.js.map +1 -1
- package/dist/{signer-7NK7TMWU.js → signer-5K3WDHOC.js} +1 -2
- package/dist/snapshots/index.js +1 -2
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-2CHKZTMK.js → stale-AU74OPUW.js} +2 -3
- package/dist/{storage-WP4M7IFO.js → storage-AVJA5BTW.js} +1 -2
- package/dist/store/index.js +0 -1
- package/dist/{store-coordination-provider-O2VUEMJH.js → store-coordination-provider-RX2CGWXV.js} +1 -2
- package/dist/{store-coordination-provider-O2VUEMJH.js.map → store-coordination-provider-RX2CGWXV.js.map} +1 -1
- package/dist/sync/index.js +0 -1
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +0 -1
- package/dist/tiers/index.js +1 -2
- package/dist/to/index.js +0 -1
- package/dist/to/index.js.map +1 -1
- package/dist/transactions/index.js +2 -3
- package/dist/transactions/index.js.map +1 -1
- package/dist/{ulid-VQW6ERQN.js → ulid-4MKXG325.js} +1 -2
- package/dist/util/index.js +0 -1
- package/dist/util/index.js.map +1 -1
- package/dist/{vault-diff-FE5J35NJ.js → vault-diff-C6WUJFNP.js} +1 -2
- package/dist/vault-head/index.js +0 -1
- package/dist/vault-head/index.js.map +1 -1
- package/dist/{verify-JBXCAGDL.js → verify-KOV2G5D6.js} +1 -2
- package/dist/{verify-JBXCAGDL.js.map → verify-KOV2G5D6.js.map} +1 -1
- package/dist/{walk-P3E6QSNC.js → walk-ERAJ5RHO.js} +3 -4
- package/dist/with-formula/derivations/registry.d.ts +6 -0
- package/dist/with-shape/introspection/describe.d.ts +2 -53
- package/dist/with-shape/introspection/field-meta.d.ts +86 -0
- package/dist/{withdraw-accessible-6Q7NE4EY.js → withdraw-accessible-42D32Z7G.js} +4 -5
- package/package.json +7 -3
- package/dist/chunk-AJQY44CE.js.map +0 -1
- package/dist/chunk-BWXGSSFX.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -10
- package/dist/chunk-URHRIAV6.js.map +0 -1
- package/dist/withdraw-accessible-6Q7NE4EY.js.map +0 -1
- package/dist/zod-HAJM7LMS.js +0 -14763
- package/dist/zod-HAJM7LMS.js.map +0 -1
- /package/dist/{api-UE2XQKDN.js.map → api-JPZT6BDD.js.map} +0 -0
- /package/dist/{chunk-5FUULQ6F.js.map → chunk-2HVILGVR.js.map} +0 -0
- /package/dist/{chunk-DJ3LNNZQ.js.map → chunk-3LK2XZCW.js.map} +0 -0
- /package/dist/{chunk-E2MYJGSG.js.map → chunk-AMODH7AU.js.map} +0 -0
- /package/dist/{chunk-B2ZSGYSF.js.map → chunk-B2KCRDJM.js.map} +0 -0
- /package/dist/{chunk-TO3EQ7HF.js.map → chunk-BLN54W3L.js.map} +0 -0
- /package/dist/{chunk-IHFXR2VQ.js.map → chunk-BOBFL5TW.js.map} +0 -0
- /package/dist/{chunk-ZR2YMODS.js.map → chunk-EKZ6VZYF.js.map} +0 -0
- /package/dist/{chunk-RTYJRFQO.js.map → chunk-EWPRPP3M.js.map} +0 -0
- /package/dist/{chunk-VGICZPVE.js.map → chunk-FUJSIP4K.js.map} +0 -0
- /package/dist/{chunk-PKJ43CMD.js.map → chunk-NLOLF6LD.js.map} +0 -0
- /package/dist/{chunk-COTPDJR5.js.map → chunk-OMB2ZKIT.js.map} +0 -0
- /package/dist/{chunk-BMELYFHU.js.map → chunk-P3KOF624.js.map} +0 -0
- /package/dist/{chunk-Y4MJQ2UG.js.map → chunk-QQ2YMQZU.js.map} +0 -0
- /package/dist/{chunk-YCXICMOY.js.map → chunk-RJ7NN2UR.js.map} +0 -0
- /package/dist/{chunk-PDD75NUZ.js.map → chunk-SMH6SRX7.js.map} +0 -0
- /package/dist/{chunk-QHW35ZON.js.map → chunk-TGPST6FK.js.map} +0 -0
- /package/dist/{chunk-BERJ4AWW.js.map → chunk-VGXZT72I.js.map} +0 -0
- /package/dist/{chunk-ZVCC36XQ.js.map → chunk-WL36WA3O.js.map} +0 -0
- /package/dist/{chunk-2Z47NMFK.js.map → chunk-WZW37ZHL.js.map} +0 -0
- /package/dist/{chunk-SXCYYMVS.js.map → chunk-YINEDONN.js.map} +0 -0
- /package/dist/{chunk-PZ5AY32C.js.map → collection-facade-VOWW732S.js.map} +0 -0
- /package/dist/{collection-facade-4ACKIDDY.js.map → computed-VPOKQK4N.js.map} +0 -0
- /package/dist/{computed-LSEZYRJS.js.map → derive-HHBRFS2U.js.map} +0 -0
- /package/dist/{derive-LY47HG7Q.js.map → enclave-VM2YQONI.js.map} +0 -0
- /package/dist/{enclave-4YBQK77G.js.map → executor-5NIMLSKZ.js.map} +0 -0
- /package/dist/{executor-MZJXBWNM.js.map → executor-5XJNV5H5.js.map} +0 -0
- /package/dist/{executor-TOLPBHOC.js.map → executor-AQVXV5GZ.js.map} +0 -0
- /package/dist/{executor-YDDC5XGY.js.map → export-accessible-2LOBM67T.js.map} +0 -0
- /package/dist/{export-accessible-LGV6IAFX.js.map → extract-partition-AZGSEMIF.js.map} +0 -0
- /package/dist/{extract-partition-RYJZIKQZ.js.map → find-2ABFCZX4.js.map} +0 -0
- /package/dist/{find-LC7P63MX.js.map → issue-RH4H733Z.js.map} +0 -0
- /package/dist/{issue-IOXM3RSJ.js.map → ledger-454SU3VE.js.map} +0 -0
- /package/dist/{ledger-HXHIOD36.js.map → liberate-AAZSP2BT.js.map} +0 -0
- /package/dist/{liberate-4APIV7FR.js.map → link-set-67CAMUAL.js.map} +0 -0
- /package/dist/{link-set-6RAHEKZN.js.map → managed-secret-NHRYG7CD.js.map} +0 -0
- /package/dist/{managed-secret-P3JQ7ZG4.js.map → noydb-F5CABCU4.js.map} +0 -0
- /package/dist/{noydb-2C6QQJ5S.js.map → read-only-facade-BIGO37U3.js.map} +0 -0
- /package/dist/{read-only-facade-CHCKSEPD.js.map → register-7OJWAWT5.js.map} +0 -0
- /package/dist/{register-AEOOGKNO.js.map → registry-23WF3TGH.js.map} +0 -0
- /package/dist/{registry-D2YXKRYC.js.map → registry-4AYVUNXK.js.map} +0 -0
- /package/dist/{registry-I6FP4677.js.map → registry-5MVJGPXW.js.map} +0 -0
- /package/dist/{registry-SHMGHEK4.js.map → registry-BOHIKFWG.js.map} +0 -0
- /package/dist/{registry-SKSOUXNF.js.map → request-withdrawal-P5EQATZ7.js.map} +0 -0
- /package/dist/{request-withdrawal-6HJT4ODF.js.map → revoke-POHP4GPB.js.map} +0 -0
- /package/dist/{revoke-U7U3FMXU.js.map → signer-5K3WDHOC.js.map} +0 -0
- /package/dist/{signer-7NK7TMWU.js.map → stale-AU74OPUW.js.map} +0 -0
- /package/dist/{stale-2CHKZTMK.js.map → storage-AVJA5BTW.js.map} +0 -0
- /package/dist/{storage-WP4M7IFO.js.map → ulid-4MKXG325.js.map} +0 -0
- /package/dist/{ulid-VQW6ERQN.js.map → vault-diff-C6WUJFNP.js.map} +0 -0
- /package/dist/{vault-diff-FE5J35NJ.js.map → walk-ERAJ5RHO.js.map} +0 -0
- /package/dist/{walk-P3E6QSNC.js.map → withdraw-accessible-42D32Z7G.js.map} +0 -0
|
@@ -294,31 +294,31 @@ function buildBlobFieldEntries(filenamesByField) {
|
|
|
294
294
|
function withSearch() {
|
|
295
295
|
return {
|
|
296
296
|
async search(ctx, field, query, opts) {
|
|
297
|
-
const { search } = await import("./collection-facade-
|
|
297
|
+
const { search } = await import("./collection-facade-VOWW732S.js");
|
|
298
298
|
return search(ctx, field, query, opts);
|
|
299
299
|
},
|
|
300
300
|
async retrieve(ctx, query, opts) {
|
|
301
|
-
const { retrieve } = await import("./collection-facade-
|
|
301
|
+
const { retrieve } = await import("./collection-facade-VOWW732S.js");
|
|
302
302
|
return retrieve(ctx, query, opts);
|
|
303
303
|
},
|
|
304
304
|
async similarTo(ctx, vector, opts) {
|
|
305
|
-
const { similarTo } = await import("./collection-facade-
|
|
305
|
+
const { similarTo } = await import("./collection-facade-VOWW732S.js");
|
|
306
306
|
return similarTo(ctx, vector, opts);
|
|
307
307
|
},
|
|
308
308
|
async warmIndex(ctx) {
|
|
309
|
-
const { warmIndex } = await import("./collection-facade-
|
|
309
|
+
const { warmIndex } = await import("./collection-facade-VOWW732S.js");
|
|
310
310
|
return warmIndex(ctx);
|
|
311
311
|
},
|
|
312
312
|
async flushIndex(ctx) {
|
|
313
|
-
const { flushIndex } = await import("./collection-facade-
|
|
313
|
+
const { flushIndex } = await import("./collection-facade-VOWW732S.js");
|
|
314
314
|
return flushIndex(ctx);
|
|
315
315
|
},
|
|
316
316
|
async embedOnWrite(ctx, id, record, version) {
|
|
317
|
-
const { embedOnWrite } = await import("./collection-facade-
|
|
317
|
+
const { embedOnWrite } = await import("./collection-facade-VOWW732S.js");
|
|
318
318
|
return embedOnWrite(ctx, id, record, version);
|
|
319
319
|
},
|
|
320
320
|
async rebuildEmbeddings(ctx) {
|
|
321
|
-
const { rebuildEmbeddings } = await import("./collection-facade-
|
|
321
|
+
const { rebuildEmbeddings } = await import("./collection-facade-VOWW732S.js");
|
|
322
322
|
return rebuildEmbeddings(ctx);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
@@ -364,4 +364,4 @@ export {
|
|
|
364
364
|
buildBlobFieldEntries,
|
|
365
365
|
withSearch
|
|
366
366
|
};
|
|
367
|
-
//# sourceMappingURL=chunk-
|
|
367
|
+
//# sourceMappingURL=chunk-OMB2ZKIT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createNoydb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WL36WA3O.js";
|
|
4
4
|
import {
|
|
5
5
|
deriveSchemaManifest
|
|
6
6
|
} from "./chunk-BBWVXF57.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
signRecord,
|
|
14
14
|
verifyPodHeader,
|
|
15
15
|
verifyRecord
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NLOLF6LD.js";
|
|
17
17
|
import {
|
|
18
18
|
loadKeyring
|
|
19
19
|
} from "./chunk-VNR2SNVJ.js";
|
|
@@ -286,4 +286,4 @@ export {
|
|
|
286
286
|
followRedirects,
|
|
287
287
|
open
|
|
288
288
|
};
|
|
289
|
-
//# sourceMappingURL=chunk-
|
|
289
|
+
//# sourceMappingURL=chunk-P3KOF624.js.map
|
|
@@ -16,7 +16,7 @@ function withCustody() {
|
|
|
16
16
|
return host._revokeCustodianImpl(revoke, vault, options, factors);
|
|
17
17
|
},
|
|
18
18
|
async liberate(vault, opts) {
|
|
19
|
-
const { liberateVault } = await import("./liberate-
|
|
19
|
+
const { liberateVault } = await import("./liberate-AAZSP2BT.js");
|
|
20
20
|
return liberateVault(vault, opts);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
withCustody,
|
|
75
75
|
CustodyApi
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-QQ2YMQZU.js.map
|
|
@@ -37,7 +37,7 @@ async function loadZodToJsonSchemaConverter() {
|
|
|
37
37
|
}
|
|
38
38
|
async function loadZodV4Converter() {
|
|
39
39
|
try {
|
|
40
|
-
const mod = await import("
|
|
40
|
+
const mod = await import("zod");
|
|
41
41
|
if (typeof mod.toJSONSchema !== "function") {
|
|
42
42
|
throw new Error("zod.toJSONSchema not available (zod v4 required)");
|
|
43
43
|
}
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
isZod4Schema,
|
|
80
80
|
derivePersistedSchema
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-REDOOY2Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/with-shape/persisted-schemas/derive.ts"],"sourcesContent":["/**\n * Derive a {@link PersistedSchemaEnvelope} from a Standard Schema v1\n * validator. Supports zod 3 (via the optional `zod-to-json-schema` peer-dep)\n * and zod 4 (via its native `z.toJSONSchema()`); both are loaded lazily so\n * hub never statically imports zod. Other validator families write a stub\n * envelope flagging the kind.\n *\n * @see design-history/2026-05-22-schema-dump-design.md\n *\n * @module\n */\n\nimport { canonicalize } from './canonicalize.js'\nimport { sha256Hex } from '../../kernel/enclave/index.js'\nimport type { PersistedSchemaEnvelope, PersistedSchemaKind } from './types.js'\n\n/**\n * Heuristic Zod detection — uses the Standard Schema v1 `~standard.vendor`\n * property (present in Zod v3.23+ and Zod v4+). Falls back to the\n * `_def.typeName` heuristic for older Zod v3 builds that predate Standard\n * Schema support.\n */\nexport function isZodSchema(value: unknown): boolean {\n if (value === null || typeof value !== 'object') return false\n // Standard Schema v1 vendor tag — most reliable across Zod majors\n const std = (value as { '~standard'?: { vendor?: unknown } })['~standard']\n if (std && typeof std === 'object' && (std as { vendor?: unknown }).vendor === 'zod') return true\n // Zod v3 fallback: _def.typeName starts with 'Zod' (e.g. 'ZodObject')\n const def = (value as { _def?: { typeName?: unknown } })._def\n if (!def || typeof def !== 'object') return false\n return typeof (def as { typeName?: unknown }).typeName === 'string'\n && ((def as { typeName: string }).typeName).startsWith('Zod')\n}\n\nfunction detectKind(validator: unknown): PersistedSchemaKind {\n if (isZodSchema(validator)) return 'Zod'\n return 'Unknown'\n}\n\n/**\n * Returns `true` when the validator was created with the Zod v4 native API\n * (i.e. `import { z } from 'zod'` where zod resolves to v4). Zod v4 native\n * schemas carry a `_zod` property whereas Zod v3 schemas (and the v3-compat\n * shim shipped inside zod@4 at `zod/v3`) use `_def.typeName`.\n *\n * Kept duck-typed so hub never statically imports zod.\n */\nexport function isZod4Schema(value: unknown): boolean {\n if (value === null || typeof value !== 'object') return false\n return '_zod' in value\n}\n\n/**\n * Lazy-require `zod-to-json-schema`. Returns the converter, or throws a\n * clear error if the peer-dep isn't installed.\n */\nasync function loadZodToJsonSchemaConverter(): Promise<(s: unknown) => object> {\n try {\n const mod = (await import('zod-to-json-schema')) as { zodToJsonSchema?: (s: unknown) => object }\n if (!mod.zodToJsonSchema) {\n throw new Error('zod-to-json-schema export missing')\n }\n return mod.zodToJsonSchema\n } catch (err) {\n throw new Error(\n 'persistJsonSchema requires the optional peer-dep `zod-to-json-schema`. '\n + 'Install it: `pnpm add zod-to-json-schema` (or npm/yarn equivalent). '\n + `Original error: ${err instanceof Error ? err.message : String(err)}`,\n )\n }\n}\n\n/**\n * Lazy-require Zod v4's built-in `toJSONSchema`. Used when the validator is a\n * Zod v4 native schema and `zod-to-json-schema` is absent or cannot handle it.\n *\n * Dynamic so hub never loads zod unless a caller actually persists a Zod v4\n * schema. ⚠️ Dynamic is NOT what keeps zod out of the tarball — that is\n * `peerDependencies` (#1227). tsup externalises DECLARED dependencies and\n * BUNDLES everything else, static or dynamic alike, so while zod was a\n * devDependency only, this line silently vendored 548 KB of zod@4.4.3 into\n * `dist/` at a build-frozen version. The comment here previously claimed the\n * dynamic import was what prevented that; it never did.\n *\n * Declaring it an OPTIONAL peer is also the correctness fix, not just a size\n * one: `toJSONSchema` reads a schema's internals, and the schema is built by\n * the CONSUMER's zod. A vendored copy meant hub inspected one zod's objects\n * with another zod's version of that reader. Now there is one zod — theirs.\n */\nasync function loadZodV4Converter(): Promise<(s: unknown) => object> {\n try {\n const mod = (await import('zod')) as { toJSONSchema?: (s: unknown) => object }\n if (typeof mod.toJSONSchema !== 'function') {\n throw new Error('zod.toJSONSchema not available (zod v4 required)')\n }\n return mod.toJSONSchema\n } catch (err) {\n throw new Error(\n 'persistJsonSchema with a Zod v4 schema requires zod@4 with toJSONSchema. '\n + `Original error: ${err instanceof Error ? err.message : String(err)}`,\n )\n }\n}\n\nexport async function derivePersistedSchema(\n validator: unknown,\n): Promise<PersistedSchemaEnvelope> {\n const kind = detectKind(validator)\n const derivedAt = new Date().toISOString()\n\n if (kind === 'Zod') {\n let jsonSchema: object\n\n if (isZod4Schema(validator)) {\n // Zod v4 native schemas: use zod's built-in toJSONSchema (available in\n // zod@4) because zod-to-json-schema@3.x parses _def.typeName which is\n // absent in native v4 schemas.\n const convert = await loadZodV4Converter()\n jsonSchema = convert(validator)\n } else {\n // Zod v3 schemas (or v3-compat shim): use the optional peer-dep\n // zod-to-json-schema for backward compatibility.\n const convert = await loadZodToJsonSchemaConverter()\n jsonSchema = convert(validator)\n }\n\n const canonical = canonicalize(jsonSchema)\n const hash = await sha256Hex(new TextEncoder().encode(canonical))\n return { _noydb_schema: 1, kind, jsonSchema, hash, derivedAt }\n }\n\n return {\n _noydb_schema: 1,\n kind,\n jsonSchema: null,\n hash: null,\n reason: `derivation not yet supported for kind=${kind} (v0 supports Zod only)`,\n derivedAt,\n }\n}\n"],"mappings":";;;;;;;;AAsBO,SAAS,YAAY,OAAyB;AACnD,MAAI,UAAU,QAAQ,OAAO,UAAU,SAAU,QAAO;AAExD,QAAM,MAAO,MAAiD,WAAW;AACzE,MAAI,OAAO,OAAO,QAAQ,YAAa,IAA6B,WAAW,MAAO,QAAO;AAE7F,QAAM,MAAO,MAA4C;AACzD,MAAI,CAAC,OAAO,OAAO,QAAQ,SAAU,QAAO;AAC5C,SAAO,OAAQ,IAA+B,aAAa,YACpD,IAA6B,SAAU,WAAW,KAAK;AAChE;AAEA,SAAS,WAAW,WAAyC;AAC3D,MAAI,YAAY,SAAS,EAAG,QAAO;AACnC,SAAO;AACT;AAUO,SAAS,aAAa,OAAyB;AACpD,MAAI,UAAU,QAAQ,OAAO,UAAU,SAAU,QAAO;AACxD,SAAO,UAAU;AACnB;AAMA,eAAe,+BAAgE;AAC7E,MAAI;AACF,UAAM,MAAO,MAAM,OAAO,oBAAoB;AAC9C,QAAI,CAAC,IAAI,iBAAiB;AACxB,YAAM,IAAI,MAAM,mCAAmC;AAAA,IACrD;AACA,WAAO,IAAI;AAAA,EACb,SAAS,KAAK;AACZ,UAAM,IAAI;AAAA,MACR,kKAEqB,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;AAAA,IACvE;AAAA,EACF;AACF;AAmBA,eAAe,qBAAsD;AACnE,MAAI;AACF,UAAM,MAAO,MAAM,OAAO,KAAK;AAC/B,QAAI,OAAO,IAAI,iBAAiB,YAAY;AAC1C,YAAM,IAAI,MAAM,kDAAkD;AAAA,IACpE;AACA,WAAO,IAAI;AAAA,EACb,SAAS,KAAK;AACZ,UAAM,IAAI;AAAA,MACR,4FACqB,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;AAAA,IACvE;AAAA,EACF;AACF;AAEA,eAAsB,sBACpB,WACkC;AAClC,QAAM,OAAO,WAAW,SAAS;AACjC,QAAM,aAAY,oBAAI,KAAK,GAAE,YAAY;AAEzC,MAAI,SAAS,OAAO;AAClB,QAAI;AAEJ,QAAI,aAAa,SAAS,GAAG;AAI3B,YAAM,UAAU,MAAM,mBAAmB;AACzC,mBAAa,QAAQ,SAAS;AAAA,IAChC,OAAO;AAGL,YAAM,UAAU,MAAM,6BAA6B;AACnD,mBAAa,QAAQ,SAAS;AAAA,IAChC;AAEA,UAAM,YAAY,aAAa,UAAU;AACzC,UAAM,OAAO,MAAM,UAAU,IAAI,YAAY,EAAE,OAAO,SAAS,CAAC;AAChE,WAAO,EAAE,eAAe,GAAG,MAAM,YAAY,MAAM,UAAU;AAAA,EAC/D;AAEA,SAAO;AAAA,IACL,eAAe;AAAA,IACf;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,QAAQ,yCAAyC,IAAI;AAAA,IACrD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
freezeSnapshotOnly
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TGPST6FK.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveManagedSecret
|
|
6
6
|
} from "./chunk-JUBWUJY5.js";
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
isDeedVault,
|
|
138
138
|
liberateVault
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-RJ7NN2UR.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-5D2ALSM5.js";
|
|
4
4
|
|
|
5
5
|
// src/with-formula/derivations/stale.ts
|
|
6
|
-
var loadDerivationExecutor = lazy(() => import("./executor-
|
|
6
|
+
var loadDerivationExecutor = lazy(() => import("./executor-5NIMLSKZ.js"));
|
|
7
7
|
var _staleByRegistry = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
var keyFor = (source, sourceId) => `${source}/${sourceId}`;
|
|
9
9
|
async function markStale(registry, strategy, sourceId) {
|
|
@@ -84,4 +84,4 @@ export {
|
|
|
84
84
|
markStale,
|
|
85
85
|
resolveStaleOnRead
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-SMH6SRX7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildAccessibleBundle,
|
|
3
3
|
resolveAccessibleCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EKZ6VZYF.js";
|
|
5
5
|
import {
|
|
6
6
|
buildRecordEnvelope
|
|
7
7
|
} from "./chunk-4RUFYGWG.js";
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
freezeAndDeleteClosure,
|
|
118
118
|
withdrawAccessibleData
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-TGPST6FK.js.map
|
|
@@ -124,7 +124,7 @@ function validatePeriodName(name, existing, partition) {
|
|
|
124
124
|
}
|
|
125
125
|
async function appendPeriodLedgerEntry(ledger, actor, envelope, name, collection = PERIODS_COLLECTION) {
|
|
126
126
|
if (!ledger) return;
|
|
127
|
-
const { envelopePayloadHash } = await import("./ledger-
|
|
127
|
+
const { envelopePayloadHash } = await import("./ledger-454SU3VE.js");
|
|
128
128
|
await ledger.append({
|
|
129
129
|
op: "put",
|
|
130
130
|
collection,
|
|
@@ -198,4 +198,4 @@ export {
|
|
|
198
198
|
purgeMarkersOn,
|
|
199
199
|
withPeriods
|
|
200
200
|
};
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
201
|
+
//# sourceMappingURL=chunk-VGXZT72I.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveStaleOnRead
|
|
3
|
-
} from "./chunk-PDD75NUZ.js";
|
|
4
1
|
import {
|
|
5
2
|
isManifestReservedCollection
|
|
6
3
|
} from "./chunk-EPFF7LOX.js";
|
|
@@ -15,13 +12,16 @@ import {
|
|
|
15
12
|
hashFields,
|
|
16
13
|
validateSatelliteDeclaration
|
|
17
14
|
} from "./chunk-TUFM4UZP.js";
|
|
15
|
+
import {
|
|
16
|
+
resolveStaleOnRead
|
|
17
|
+
} from "./chunk-SMH6SRX7.js";
|
|
18
18
|
import {
|
|
19
19
|
loadFence
|
|
20
20
|
} from "./chunk-GM4IM7TC.js";
|
|
21
21
|
import {
|
|
22
22
|
buildPersistedIndexCallbacks,
|
|
23
23
|
syncTierSearch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BOBFL5TW.js";
|
|
25
25
|
import {
|
|
26
26
|
isBaseLive,
|
|
27
27
|
liveBaseIdSet
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
NO_TIERS,
|
|
37
37
|
classifySealedShred,
|
|
38
38
|
syncDerivedOutputs
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-EWPRPP3M.js";
|
|
40
40
|
import {
|
|
41
41
|
NO_PORTABILITY
|
|
42
42
|
} from "./chunk-BZ3534YM.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
CustodyApi,
|
|
63
63
|
NO_CUSTODY
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-QQ2YMQZU.js";
|
|
65
65
|
import {
|
|
66
66
|
DEFAULT_POSTURE,
|
|
67
67
|
EXPORT_REDACTION_MARKER,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
resolveComputedEdges,
|
|
79
79
|
resolveDescribeFieldIds,
|
|
80
80
|
resolveVirtualMoneyFields
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-NJXX55QX.js";
|
|
82
82
|
import {
|
|
83
83
|
findMatchingIdsByPairs
|
|
84
84
|
} from "./chunk-TFMM5DBB.js";
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "./chunk-KCUIMITG.js";
|
|
93
93
|
import {
|
|
94
94
|
derivePersistedSchema
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-REDOOY2Q.js";
|
|
96
96
|
import {
|
|
97
97
|
findRollupSpecForIntent,
|
|
98
98
|
forgetDerivedFanout,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
resolvePeriodKey,
|
|
136
136
|
resolveReopenState,
|
|
137
137
|
samePartition
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-VGXZT72I.js";
|
|
139
139
|
import {
|
|
140
140
|
PERIODS_COLLECTION,
|
|
141
141
|
PERIOD_ARCHIVES_COLLECTION,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
import {
|
|
154
154
|
TxContext,
|
|
155
155
|
bestEffortRevert
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-BLN54W3L.js";
|
|
157
157
|
import {
|
|
158
158
|
lazy
|
|
159
159
|
} from "./chunk-5D2ALSM5.js";
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
InvertedIndex,
|
|
162
162
|
MemoryIndexStore,
|
|
163
163
|
NO_SEARCH
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-OMB2ZKIT.js";
|
|
165
165
|
import {
|
|
166
166
|
NO_SEALED_RECORD
|
|
167
167
|
} from "./chunk-6YXCPL4T.js";
|
|
@@ -540,7 +540,7 @@ function validateSecretModeOptions(options) {
|
|
|
540
540
|
}
|
|
541
541
|
async function resolveEffectiveSecret(options, store, vault) {
|
|
542
542
|
if (options.secretMode === "managed") {
|
|
543
|
-
const { resolveManagedSecret } = await import("./managed-secret-
|
|
543
|
+
const { resolveManagedSecret } = await import("./managed-secret-NHRYG7CD.js");
|
|
544
544
|
return resolveManagedSecret(store, vault, options.sealingKey);
|
|
545
545
|
}
|
|
546
546
|
return options.secret;
|
|
@@ -558,7 +558,7 @@ function ownerKeyringOptions(options, secret) {
|
|
|
558
558
|
|
|
559
559
|
// src/port/by/default-provider.ts
|
|
560
560
|
async function createDefaultMesh(store) {
|
|
561
|
-
const { StoreMesh } = await import("./store-coordination-provider-
|
|
561
|
+
const { StoreMesh } = await import("./store-coordination-provider-RX2CGWXV.js");
|
|
562
562
|
return new StoreMesh(store);
|
|
563
563
|
}
|
|
564
564
|
|
|
@@ -1325,7 +1325,7 @@ async function commitSequentially(ctx, entries, priors) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
// src/with-formula/computed/lazy.ts
|
|
1328
|
-
var loadComputed = lazy(() => import("./computed-
|
|
1328
|
+
var loadComputed = lazy(() => import("./computed-VPOKQK4N.js"));
|
|
1329
1329
|
async function loadEvalComputedFields() {
|
|
1330
1330
|
return (await loadComputed()).evalComputedFields;
|
|
1331
1331
|
}
|
|
@@ -1994,7 +1994,7 @@ var Collection = class {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
/** JSON Schema for this collection with describe() metadata as x- extensions. */
|
|
1996
1996
|
async toJSONSchema() {
|
|
1997
|
-
const { buildJsonSchema } = await import("./json-schema-
|
|
1997
|
+
const { buildJsonSchema } = await import("./json-schema-V3M5MUCM.js");
|
|
1998
1998
|
const desc = await this.describe({});
|
|
1999
1999
|
let base = null;
|
|
2000
2000
|
if (this.schema !== void 0) {
|
|
@@ -2110,7 +2110,7 @@ var Collection = class {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
await this.onAccess?.("find", "*");
|
|
2112
2112
|
if (hits.length === 0) return [];
|
|
2113
|
-
const { verifyDigestField } = await import("./verify-
|
|
2113
|
+
const { verifyDigestField } = await import("./verify-KOV2G5D6.js");
|
|
2114
2114
|
const policy = {
|
|
2115
2115
|
normalize: spec.verifyNormalize ?? "password",
|
|
2116
2116
|
notLastN: spec.notLastN ?? 0,
|
|
@@ -2322,7 +2322,7 @@ var Collection = class {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
2324
|
if (this.materializedViewSource !== void 0) {
|
|
2325
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
2325
|
+
const { resolveStaleMVOnRead } = await import("./stale-AU74OPUW.js");
|
|
2326
2326
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
2327
2327
|
}
|
|
2328
2328
|
let record;
|
|
@@ -2854,7 +2854,7 @@ var Collection = class {
|
|
|
2854
2854
|
*/
|
|
2855
2855
|
async dispatchMaterializedViews(id, record, wave) {
|
|
2856
2856
|
if (this.materializedViewSource === void 0) return;
|
|
2857
|
-
const { dispatchMaterializedViews } = await import("./dispatch-
|
|
2857
|
+
const { dispatchMaterializedViews } = await import("./dispatch-GGFBWQU7.js");
|
|
2858
2858
|
return dispatchMaterializedViews(this.#mvDispatchCtx(this.materializedViewSource), id, record, wave);
|
|
2859
2859
|
}
|
|
2860
2860
|
/**
|
|
@@ -3020,13 +3020,13 @@ var Collection = class {
|
|
|
3020
3020
|
* dispatch wave's per-target dedup; `undefined` on the local-write path (byte-identical). */
|
|
3021
3021
|
async dispatchDerivations(id, record, version, wave, prior) {
|
|
3022
3022
|
if (this.derivationSource === void 0) return;
|
|
3023
|
-
const { dispatchDerivations } = await import("./dispatch-
|
|
3023
|
+
const { dispatchDerivations } = await import("./dispatch-DC3LQJ3S.js");
|
|
3024
3024
|
return dispatchDerivations(this.#derivationDispatchCtx(), id, record, version, wave, prior);
|
|
3025
3025
|
}
|
|
3026
3026
|
/** @internal — trigger fan-out for a deleted parent (#1249); see dispatch.ts. */
|
|
3027
3027
|
async dispatchTriggerDerivationsOnDelete(id, deleted) {
|
|
3028
3028
|
if (this.derivationSource === void 0) return;
|
|
3029
|
-
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-
|
|
3029
|
+
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-DC3LQJ3S.js");
|
|
3030
3030
|
return dispatchTriggerDerivationsOnDelete(this.#derivationDispatchCtx(), id, deleted);
|
|
3031
3031
|
}
|
|
3032
3032
|
/**
|
|
@@ -3338,7 +3338,7 @@ var Collection = class {
|
|
|
3338
3338
|
*/
|
|
3339
3339
|
async dispatchArrayDerivationsOnDelete(id, eraseRecordShapeToo = false) {
|
|
3340
3340
|
if (this.derivationSource === void 0) return 0;
|
|
3341
|
-
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-
|
|
3341
|
+
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-DC3LQJ3S.js");
|
|
3342
3342
|
return dispatchArrayDerivationsOnDelete(this.#derivationDeleteCtx(this.derivationSource), id, eraseRecordShapeToo);
|
|
3343
3343
|
}
|
|
3344
3344
|
/**
|
|
@@ -3352,7 +3352,7 @@ var Collection = class {
|
|
|
3352
3352
|
*/
|
|
3353
3353
|
async dispatchMaterializedViewsOnDelete(id) {
|
|
3354
3354
|
if (this.materializedViewSource === void 0) return { deleted: 0, residueUndecodable: [], residueDeclined: [] };
|
|
3355
|
-
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-
|
|
3355
|
+
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-GGFBWQU7.js");
|
|
3356
3356
|
return dispatchMaterializedViewsOnDelete(this.#mvDispatchCtx(this.materializedViewSource), id);
|
|
3357
3357
|
}
|
|
3358
3358
|
/**
|
|
@@ -3372,7 +3372,7 @@ var Collection = class {
|
|
|
3372
3372
|
);
|
|
3373
3373
|
}
|
|
3374
3374
|
if (this.materializedViewSource !== void 0) {
|
|
3375
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
3375
|
+
const { resolveStaleMVOnRead } = await import("./stale-AU74OPUW.js");
|
|
3376
3376
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
3377
3377
|
}
|
|
3378
3378
|
await this.ensureHydrated();
|
|
@@ -4482,14 +4482,14 @@ var Collection = class {
|
|
|
4482
4482
|
/** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
|
|
4483
4483
|
async _ensureClassifiedMarker() {
|
|
4484
4484
|
if (this._markerPersisted || this.vdigFields === null) return;
|
|
4485
|
-
const { persistClassifiedMarkerForFields } = await import("./classified-marker-
|
|
4485
|
+
const { persistClassifiedMarkerForFields } = await import("./classified-marker-OO65UYXN.js");
|
|
4486
4486
|
await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
|
|
4487
4487
|
this._markerPersisted = true;
|
|
4488
4488
|
}
|
|
4489
4489
|
/** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
|
|
4490
4490
|
async _classifiedMarkerDigestOnly() {
|
|
4491
4491
|
if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
|
|
4492
|
-
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-
|
|
4492
|
+
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-OO65UYXN.js");
|
|
4493
4493
|
this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
|
|
4494
4494
|
return this._markerDigestOnlyCache;
|
|
4495
4495
|
}
|
|
@@ -6115,7 +6115,7 @@ var VaultLinks = class {
|
|
|
6115
6115
|
// src/with-shape/links/lazy-handle.ts
|
|
6116
6116
|
function makeLazyLinkSetHandle(d) {
|
|
6117
6117
|
let engine = null;
|
|
6118
|
-
const load = () => engine ??= import("./link-set-
|
|
6118
|
+
const load = () => engine ??= import("./link-set-67CAMUAL.js").then(
|
|
6119
6119
|
({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
|
|
6120
6120
|
);
|
|
6121
6121
|
return {
|
|
@@ -6766,7 +6766,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
|
|
|
6766
6766
|
ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
|
|
6767
6767
|
const registry = reg;
|
|
6768
6768
|
const baseSchema = ctx.getBaseSchema(spec.base);
|
|
6769
|
-
void import("./post-register-
|
|
6769
|
+
void import("./post-register-HIYY4Y5S.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
|
|
6770
6770
|
});
|
|
6771
6771
|
return reg;
|
|
6772
6772
|
}
|
|
@@ -7741,7 +7741,7 @@ var Vault = class {
|
|
|
7741
7741
|
const strategies = options.schemaUpdate ?? [];
|
|
7742
7742
|
const work = (async () => {
|
|
7743
7743
|
const dek = await this.getDEK(collectionName);
|
|
7744
|
-
const { persistSchemaIfNeeded } = await import("./register-
|
|
7744
|
+
const { persistSchemaIfNeeded } = await import("./register-7OJWAWT5.js");
|
|
7745
7745
|
const result = await persistSchemaIfNeeded({
|
|
7746
7746
|
store: this.adapter,
|
|
7747
7747
|
vault: this.name,
|
|
@@ -7891,7 +7891,7 @@ var Vault = class {
|
|
|
7891
7891
|
const work = (async () => {
|
|
7892
7892
|
try {
|
|
7893
7893
|
const dek = await this.getDEK(collectionName);
|
|
7894
|
-
await (await import("./register-
|
|
7894
|
+
await (await import("./register-7OJWAWT5.js")).persistSchemaIfNeeded({
|
|
7895
7895
|
store: this.adapter,
|
|
7896
7896
|
vault: this.name,
|
|
7897
7897
|
collectionName,
|
|
@@ -7937,7 +7937,7 @@ var Vault = class {
|
|
|
7937
7937
|
* writes (unfenced walk — see `with-shape/satellites/migrate-cek.ts`); resumable.
|
|
7938
7938
|
*/
|
|
7939
7939
|
async migrateSatellitePerRecordKeys(satelliteName) {
|
|
7940
|
-
const { migrateSatelliteCek } = await import("./migrate-cek-
|
|
7940
|
+
const { migrateSatelliteCek } = await import("./migrate-cek-5ENH64AA.js");
|
|
7941
7941
|
return migrateSatelliteCek(satelliteName, this.collection(satelliteName, { perRecordKeys: true }));
|
|
7942
7942
|
}
|
|
7943
7943
|
/**
|
|
@@ -8119,7 +8119,7 @@ var Vault = class {
|
|
|
8119
8119
|
async _ensureFenceCoordination() {
|
|
8120
8120
|
if (this.#fenceCoordinationStarted) return;
|
|
8121
8121
|
this.#fenceCoordinationStarted = true;
|
|
8122
|
-
const { FenceWatcher } = await import("./fence-watcher-
|
|
8122
|
+
const { FenceWatcher } = await import("./fence-watcher-U2PW6JU5.js");
|
|
8123
8123
|
if (!this.#fenceCoordinationStarted) return;
|
|
8124
8124
|
this.#fenceWatcher = new FenceWatcher({
|
|
8125
8125
|
coordination: this.noydb.mesh,
|
|
@@ -8568,7 +8568,7 @@ var Vault = class {
|
|
|
8568
8568
|
*/
|
|
8569
8569
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
8570
8570
|
async _loadPodSigner() {
|
|
8571
|
-
const { loadSigner } = await import("./signer-
|
|
8571
|
+
const { loadSigner } = await import("./signer-5K3WDHOC.js");
|
|
8572
8572
|
return loadSigner(this.adapter, this.name, this.getDEK);
|
|
8573
8573
|
}
|
|
8574
8574
|
async writeExportAudit(entry) {
|
|
@@ -8797,7 +8797,7 @@ var Vault = class {
|
|
|
8797
8797
|
const blobsEnabled = this.strategies.blobs !== NO_BLOBS;
|
|
8798
8798
|
const actor = this.keyring.userId;
|
|
8799
8799
|
const fanoutStats = { recordsErased: 0, aggregatesRecomputed: 0, residueFrozen: [], lookupReferencesCascaded: 0, lookupReferencesNullified: 0, lookupReferencesResidue: [], derivedResidueUndecodable: [], derivedResidueDeclined: [] };
|
|
8800
|
-
const { partitionSealedCekKeys, shouldSkipBlobScan, bumpResidueCount, residueNoticesFromMap } = await import("./purge-scope-
|
|
8800
|
+
const { partitionSealedCekKeys, shouldSkipBlobScan, bumpResidueCount, residueNoticesFromMap } = await import("./purge-scope-4HEFPDOW.js");
|
|
8801
8801
|
const scopedPurge = this.strategies.forget.scopedPurge === true;
|
|
8802
8802
|
const sealedCekScopedSkipped = /* @__PURE__ */ new Map();
|
|
8803
8803
|
const blobScopedSkipped = /* @__PURE__ */ new Map();
|
|
@@ -9058,8 +9058,8 @@ var Vault = class {
|
|
|
9058
9058
|
async _initGuards(handles) {
|
|
9059
9059
|
if (handles.length === 0) return;
|
|
9060
9060
|
const [{ GuardRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9061
|
-
import("./registry-
|
|
9062
|
-
import("./read-only-facade-
|
|
9061
|
+
import("./registry-4AYVUNXK.js"),
|
|
9062
|
+
import("./read-only-facade-BIGO37U3.js")
|
|
9063
9063
|
]);
|
|
9064
9064
|
const registry = new GuardRegistry();
|
|
9065
9065
|
for (const h of handles) registry.register(h.spec);
|
|
@@ -9086,8 +9086,8 @@ var Vault = class {
|
|
|
9086
9086
|
async _initDerivations(handles) {
|
|
9087
9087
|
if (handles.length === 0) return;
|
|
9088
9088
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9089
|
-
import("./registry-
|
|
9090
|
-
import("./read-only-facade-
|
|
9089
|
+
import("./registry-BOHIKFWG.js"),
|
|
9090
|
+
import("./read-only-facade-BIGO37U3.js")
|
|
9091
9091
|
]);
|
|
9092
9092
|
const registry = new DerivationRegistry();
|
|
9093
9093
|
for (const h of handles) {
|
|
@@ -9118,7 +9118,7 @@ var Vault = class {
|
|
|
9118
9118
|
*/
|
|
9119
9119
|
async _initMaterializedViews(handles) {
|
|
9120
9120
|
if (handles.length === 0) return;
|
|
9121
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
9121
|
+
const { MaterializedViewRegistry } = await import("./registry-5MVJGPXW.js");
|
|
9122
9122
|
const registry = new MaterializedViewRegistry();
|
|
9123
9123
|
this.materializedViewRegistry = registry;
|
|
9124
9124
|
const db = this;
|
|
@@ -9143,7 +9143,7 @@ var Vault = class {
|
|
|
9143
9143
|
*/
|
|
9144
9144
|
async _initOverlayedViews(handles) {
|
|
9145
9145
|
if (handles.length === 0) return;
|
|
9146
|
-
const { OverlayedViewRegistry } = await import("./registry-
|
|
9146
|
+
const { OverlayedViewRegistry } = await import("./registry-23WF3TGH.js");
|
|
9147
9147
|
const registry = new OverlayedViewRegistry();
|
|
9148
9148
|
const mvRegistry = this.materializedViewRegistry;
|
|
9149
9149
|
const overlayNames = /* @__PURE__ */ new Set();
|
|
@@ -9206,14 +9206,14 @@ var Vault = class {
|
|
|
9206
9206
|
if (!reg) {
|
|
9207
9207
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
9208
9208
|
}
|
|
9209
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
9209
|
+
const { MaterializedViewExecutor } = await import("./executor-5XJNV5H5.js");
|
|
9210
9210
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
9211
9211
|
getCollection: (n) => this.collection(n),
|
|
9212
9212
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
9213
9213
|
getQueryContext: () => this,
|
|
9214
9214
|
dispatchCtx: this._dispatchCtx({ collection: name, id: "refreshView" })
|
|
9215
9215
|
});
|
|
9216
|
-
const { clearMVStaleFully } = await import("./stale-
|
|
9216
|
+
const { clearMVStaleFully } = await import("./stale-AU74OPUW.js");
|
|
9217
9217
|
await clearMVStaleFully(this.adapter, this.name, registry, name);
|
|
9218
9218
|
return result;
|
|
9219
9219
|
}
|
|
@@ -9226,10 +9226,10 @@ var Vault = class {
|
|
|
9226
9226
|
if (registry === null) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9227
9227
|
const strategies = registry.strategiesForSource(sourceCollection);
|
|
9228
9228
|
if (strategies.length === 0) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9229
|
-
const { DerivationExecutor } = await import("./executor-
|
|
9229
|
+
const { DerivationExecutor } = await import("./executor-5NIMLSKZ.js");
|
|
9230
9230
|
const sourceColl = this.collection(sourceCollection);
|
|
9231
9231
|
const records = await sourceColl.list();
|
|
9232
|
-
const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-
|
|
9232
|
+
const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-BIGO37U3.js")).ReadOnlyVaultFacade(this, "derivation") };
|
|
9233
9233
|
let derived = 0;
|
|
9234
9234
|
let failed = 0;
|
|
9235
9235
|
let skippedFrozen = 0;
|
|
@@ -9253,7 +9253,7 @@ var Vault = class {
|
|
|
9253
9253
|
if (!outSpec) continue;
|
|
9254
9254
|
const outputColl = this.collection(outSpec.collection);
|
|
9255
9255
|
if (out.kind === "array") {
|
|
9256
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
9256
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-HJIVUPTD.js");
|
|
9257
9257
|
const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
|
|
9258
9258
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
9259
9259
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -9480,7 +9480,7 @@ var Vault = class {
|
|
|
9480
9480
|
* collection.
|
|
9481
9481
|
*/
|
|
9482
9482
|
async delegate(opts) {
|
|
9483
|
-
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
9483
|
+
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-VRYMQRCF.js");
|
|
9484
9484
|
if (!this.keyring.kek) {
|
|
9485
9485
|
throw new ValidationError(
|
|
9486
9486
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (secret) first."
|
|
@@ -9502,7 +9502,7 @@ var Vault = class {
|
|
|
9502
9502
|
* if the id does not exist.
|
|
9503
9503
|
*/
|
|
9504
9504
|
async revokeDelegation(id) {
|
|
9505
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
9505
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-VRYMQRCF.js");
|
|
9506
9506
|
await revokeDelegation(this.adapter, this.name, id);
|
|
9507
9507
|
void DELEGATIONS_COLLECTION;
|
|
9508
9508
|
}
|
|
@@ -9755,7 +9755,7 @@ var Vault = class {
|
|
|
9755
9755
|
* @see design-history/2026-05-22-schema-dump-design.md
|
|
9756
9756
|
*/
|
|
9757
9757
|
async dumpSchema(opts = {}) {
|
|
9758
|
-
const { dumpVaultSchema } = await import("./walk-
|
|
9758
|
+
const { dumpVaultSchema } = await import("./walk-ERAJ5RHO.js");
|
|
9759
9759
|
return dumpVaultSchema(this, opts);
|
|
9760
9760
|
}
|
|
9761
9761
|
/**
|
|
@@ -9851,7 +9851,7 @@ var Vault = class {
|
|
|
9851
9851
|
* separate vault instances now.
|
|
9852
9852
|
*/
|
|
9853
9853
|
async getPodHandle() {
|
|
9854
|
-
const { buildPodHandle } = await import("./pod-handle-
|
|
9854
|
+
const { buildPodHandle } = await import("./pod-handle-S7AMCJIF.js");
|
|
9855
9855
|
return buildPodHandle(this.adapter, this.name);
|
|
9856
9856
|
}
|
|
9857
9857
|
/**
|
|
@@ -9883,7 +9883,7 @@ var Vault = class {
|
|
|
9883
9883
|
* both modes round-trip cleanly.
|
|
9884
9884
|
*/
|
|
9885
9885
|
async dump() {
|
|
9886
|
-
const { dumpVault } = await import("./backup-
|
|
9886
|
+
const { dumpVault } = await import("./backup-AKWIMYWU.js");
|
|
9887
9887
|
return dumpVault(this.backupContext());
|
|
9888
9888
|
}
|
|
9889
9889
|
/**
|
|
@@ -9935,7 +9935,7 @@ var Vault = class {
|
|
|
9935
9935
|
* — there's no chain to verify against.
|
|
9936
9936
|
*/
|
|
9937
9937
|
async load(backupJson) {
|
|
9938
|
-
const { loadVault } = await import("./backup-
|
|
9938
|
+
const { loadVault } = await import("./backup-AKWIMYWU.js");
|
|
9939
9939
|
return loadVault(this.backupContext(), backupJson);
|
|
9940
9940
|
}
|
|
9941
9941
|
/**
|
|
@@ -9967,7 +9967,7 @@ var Vault = class {
|
|
|
9967
9967
|
* way to detect tampering of an in-place vault.
|
|
9968
9968
|
*/
|
|
9969
9969
|
async verifyBackupIntegrity() {
|
|
9970
|
-
const { verifyBackupIntegrity } = await import("./backup-
|
|
9970
|
+
const { verifyBackupIntegrity } = await import("./backup-AKWIMYWU.js");
|
|
9971
9971
|
return verifyBackupIntegrity(this.backupContext());
|
|
9972
9972
|
}
|
|
9973
9973
|
/**
|
|
@@ -10197,7 +10197,7 @@ var Vault = class {
|
|
|
10197
10197
|
* is the live validator object, not a serialization of it).
|
|
10198
10198
|
*/
|
|
10199
10199
|
async exportJSON(opts = {}) {
|
|
10200
|
-
const { exportVaultJSON } = await import("./backup-
|
|
10200
|
+
const { exportVaultJSON } = await import("./backup-AKWIMYWU.js");
|
|
10201
10201
|
return exportVaultJSON(this.backupContext(), opts);
|
|
10202
10202
|
}
|
|
10203
10203
|
};
|
|
@@ -12125,7 +12125,7 @@ var Noydb = class {
|
|
|
12125
12125
|
if (!facade) return;
|
|
12126
12126
|
const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
|
|
12127
12127
|
await registry.runChecks(e.collection, incoming, ctx);
|
|
12128
|
-
const { GuardExecutor } = await import("./executor-
|
|
12128
|
+
const { GuardExecutor } = await import("./executor-AQVXV5GZ.js");
|
|
12129
12129
|
for (const g of guards) {
|
|
12130
12130
|
await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
|
|
12131
12131
|
}
|
|
@@ -13497,7 +13497,7 @@ async function createNoydb(options) {
|
|
|
13497
13497
|
if (!options.store) options = { ...options, store: memoryStore() };
|
|
13498
13498
|
validateSecretModeOptions(options);
|
|
13499
13499
|
if (!options.mesh) options = { ...options, mesh: await createDefaultMesh(options.store) };
|
|
13500
|
-
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-
|
|
13500
|
+
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-JPZT6BDD.js")).createUserApi };
|
|
13501
13501
|
if (!options.policyFactory) {
|
|
13502
13502
|
const policyModule = await import("./policy/index.js");
|
|
13503
13503
|
options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
|
|
@@ -13530,4 +13530,4 @@ export {
|
|
|
13530
13530
|
Noydb,
|
|
13531
13531
|
createNoydb
|
|
13532
13532
|
};
|
|
13533
|
-
//# sourceMappingURL=chunk-
|
|
13533
|
+
//# sourceMappingURL=chunk-WL36WA3O.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-GM4IM7TC.js";
|
|
18
18
|
import {
|
|
19
19
|
derivePersistedSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-REDOOY2Q.js";
|
|
21
21
|
import {
|
|
22
22
|
loadPersistedSchemaEntry,
|
|
23
23
|
savePersistedSchema
|
|
@@ -257,4 +257,4 @@ export {
|
|
|
257
257
|
persistClassifiedMarker,
|
|
258
258
|
persistSatelliteMarker
|
|
259
259
|
};
|
|
260
|
-
//# sourceMappingURL=chunk-
|
|
260
|
+
//# sourceMappingURL=chunk-WZW37ZHL.js.map
|