@noy-db/hub 0.2.0-pre.1 → 0.2.0-pre.10
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/aggregate/index.cjs +9 -0
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +2 -2
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +4 -4
- package/dist/attestation/index.cjs +305 -0
- package/dist/attestation/index.cjs.map +1 -0
- package/dist/attestation/index.d.cts +52 -0
- package/dist/attestation/index.d.ts +52 -0
- package/dist/attestation/index.js +36 -0
- package/dist/attestation/index.js.map +1 -0
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +7 -6
- package/dist/blobs/index.d.ts +7 -6
- package/dist/blobs/index.js +10 -8
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.cjs +18899 -129
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +175 -6
- package/dist/bundle/index.d.ts +175 -6
- package/dist/bundle/index.js +533 -5
- package/dist/bundle/index.js.map +1 -1
- package/dist/{chunk-6HPZY4ON.js → chunk-26NK23DZ.js} +9 -4
- package/dist/chunk-26NK23DZ.js.map +1 -0
- package/dist/{chunk-XGSOTWYX.js → chunk-2LPPNWF6.js} +3 -3
- package/dist/{chunk-5SCJ5UEF.js → chunk-2N62W5YP.js} +3 -3
- package/dist/{chunk-537VFZTR.js → chunk-3LPV6BXR.js} +4 -4
- package/dist/{chunk-UA4RI7OT.js → chunk-4CLICFEY.js} +5 -5
- package/dist/chunk-4CLICFEY.js.map +1 -0
- package/dist/chunk-4USCAEDT.js +10529 -0
- package/dist/chunk-4USCAEDT.js.map +1 -0
- package/dist/chunk-5IXJGFF2.js +83 -0
- package/dist/chunk-5IXJGFF2.js.map +1 -0
- package/dist/{chunk-HB3Z2GCR.js → chunk-5OEJ6GOT.js} +2 -2
- package/dist/chunk-5OEJ6GOT.js.map +1 -0
- package/dist/chunk-5OX6XVNS.js +79 -0
- package/dist/chunk-5OX6XVNS.js.map +1 -0
- package/dist/{chunk-VMIO4IXG.js → chunk-6EOXTJS2.js} +6 -229
- package/dist/chunk-6EOXTJS2.js.map +1 -0
- package/dist/{chunk-UZXLQCHP.js → chunk-6T2UDBKG.js} +2 -2
- package/dist/chunk-6T2UDBKG.js.map +1 -0
- package/dist/{chunk-23TTQXVO.js → chunk-6YLPHBKR.js} +214 -9
- package/dist/chunk-6YLPHBKR.js.map +1 -0
- package/dist/{chunk-Z72JH4KG.js → chunk-7CEGU63S.js} +5 -35
- package/dist/chunk-7CEGU63S.js.map +1 -0
- package/dist/{chunk-PEULZC6M.js → chunk-A3JMGXPG.js} +8 -1
- package/dist/chunk-A3JMGXPG.js.map +1 -0
- package/dist/{chunk-7H6DOO3E.js → chunk-BB27JMWB.js} +211 -36
- package/dist/chunk-BB27JMWB.js.map +1 -0
- package/dist/{chunk-I6MX32UC.js → chunk-BDV7INMP.js} +4 -4
- package/dist/{chunk-MKSA2V7A.js → chunk-C3WE6UJY.js} +2 -2
- package/dist/{chunk-FCXOFQAJ.js → chunk-CH22FZHT.js} +19 -2
- package/dist/chunk-CH22FZHT.js.map +1 -0
- package/dist/{chunk-DYBQG5PQ.js → chunk-CXFOITNS.js} +2 -2
- package/dist/{chunk-5ZGZ6HIZ.js → chunk-CXJG63MA.js} +11 -2
- package/dist/chunk-CXJG63MA.js.map +1 -0
- package/dist/{chunk-EGQYGYIU.js → chunk-DAP2XL7Q.js} +3 -3
- package/dist/chunk-DAP2XL7Q.js.map +1 -0
- package/dist/{chunk-4TFSM22V.js → chunk-DJRWA3Q5.js} +4 -4
- package/dist/chunk-DRXIZOFV.js +233 -0
- package/dist/chunk-DRXIZOFV.js.map +1 -0
- package/dist/{chunk-DPMFBCV6.js → chunk-FO3UEG4S.js} +20 -3
- package/dist/chunk-FO3UEG4S.js.map +1 -0
- package/dist/{chunk-SIZWEV2Y.js → chunk-GAUEWM7D.js} +7 -5
- package/dist/chunk-GAUEWM7D.js.map +1 -0
- package/dist/{chunk-NIOHFJPJ.js → chunk-GNHAC43Q.js} +218 -119
- package/dist/chunk-GNHAC43Q.js.map +1 -0
- package/dist/chunk-HHOO7HGH.js +57 -0
- package/dist/chunk-HHOO7HGH.js.map +1 -0
- package/dist/{chunk-PA6R5ZCI.js → chunk-HQSQC2XL.js} +5 -5
- package/dist/chunk-HQSQC2XL.js.map +1 -0
- package/dist/chunk-IMYKDWB4.js +139 -0
- package/dist/chunk-IMYKDWB4.js.map +1 -0
- package/dist/{chunk-5DWL3JBF.js → chunk-LSTBFLL2.js} +2 -2
- package/dist/{chunk-ADQ5MQ54.js → chunk-O6EJ6WTI.js} +163 -2
- package/dist/chunk-O6EJ6WTI.js.map +1 -0
- package/dist/{chunk-OMLIZL2P.js → chunk-PC6ZEDRL.js} +12 -2
- package/dist/{chunk-OMLIZL2P.js.map → chunk-PC6ZEDRL.js.map} +1 -1
- package/dist/chunk-PM3QYWUU.js +251 -0
- package/dist/chunk-PM3QYWUU.js.map +1 -0
- package/dist/{chunk-34YSDCDP.js → chunk-PVUUIWHY.js} +2 -2
- package/dist/{chunk-CBAHB2BF.js → chunk-PXTQPZO4.js} +7 -70
- package/dist/chunk-PXTQPZO4.js.map +1 -0
- package/dist/{chunk-DYECX3IX.js → chunk-QSOYKKMD.js} +4 -4
- package/dist/chunk-QSOYKKMD.js.map +1 -0
- package/dist/{chunk-WCA2NROQ.js → chunk-R233SLY3.js} +2 -2
- package/dist/chunk-RC6SU5NO.js +36 -0
- package/dist/chunk-RC6SU5NO.js.map +1 -0
- package/dist/{chunk-P7EQ2S5O.js → chunk-RRNA5GKT.js} +2 -2
- package/dist/{chunk-ZNOEIM6Y.js → chunk-RYIL3PI2.js} +2 -2
- package/dist/chunk-STNPB3UM.js +9 -0
- package/dist/chunk-STNPB3UM.js.map +1 -0
- package/dist/{chunk-MRIBLZL3.js → chunk-TV3YZ35S.js} +5 -1
- package/dist/chunk-TV3YZ35S.js.map +1 -0
- package/dist/chunk-TY32C732.js +59 -0
- package/dist/chunk-TY32C732.js.map +1 -0
- package/dist/{chunk-YMYK7US4.js → chunk-WIBHRONM.js} +2 -2
- package/dist/chunk-WIBHRONM.js.map +1 -0
- package/dist/{chunk-YS3POABP.js → chunk-WIRRPTFH.js} +1 -1
- package/dist/chunk-WIRRPTFH.js.map +1 -0
- package/dist/{chunk-KESP7GOK.js → chunk-Y26YV5R3.js} +3 -3
- package/dist/{chunk-MIQHZESA.js → chunk-YM7LFCG7.js} +5 -5
- package/dist/{chunk-MIQHZESA.js.map → chunk-YM7LFCG7.js.map} +1 -1
- package/dist/{chunk-2AXFIYHT.js → chunk-Z6FNBOTC.js} +1 -1
- package/dist/chunk-Z6FNBOTC.js.map +1 -0
- package/dist/{chunk-RD5LYKD6.js → chunk-ZROPXHJY.js} +2 -2
- package/dist/chunk-ZROPXHJY.js.map +1 -0
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +7 -6
- package/dist/consent/index.d.ts +7 -6
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-A7FRXYHC.js → crypto-2CRLG4F4.js} +3 -3
- package/dist/{delegation-YBA4X4JN.js → delegation-ZTRT2PRV.js} +5 -5
- package/dist/derivations/index.cjs +18 -1
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +10 -9
- package/dist/derivations/index.d.ts +10 -9
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-DRwVSy2S.d.cts → dev-unlock-AglVnkPY.d.cts} +1 -1
- package/dist/{dev-unlock-D9s-loPr.d.ts → dev-unlock-BOEYl1xl.d.ts} +1 -1
- package/dist/discriminant-BN9REW3o.d.cts +60 -0
- package/dist/discriminant-BN9REW3o.d.ts +60 -0
- package/dist/executor-S76VN45G.js +8 -0
- package/dist/executor-UCXLIGLW.js +11 -0
- package/dist/executor-ZCNZJMGR.js +8 -0
- package/dist/{fanout-sidecar-VJ52RIEY.js → fanout-sidecar-OKPMMPLG.js} +2 -2
- package/dist/fanout-sidecar-OKPMMPLG.js.map +1 -0
- package/dist/guards/index.cjs +7 -0
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +8 -7
- package/dist/guards/index.d.ts +8 -7
- package/dist/guards/index.js +4 -4
- package/dist/{hash-DXXXusyk.d.ts → hash-B9m3_fhj.d.ts} +1 -1
- package/dist/{hash-DtRih9MQ.d.cts → hash-RVqz2zi8.d.cts} +1 -1
- package/dist/history/index.cjs +2 -2
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +8 -7
- package/dist/history/index.d.ts +8 -7
- package/dist/history/index.js +6 -6
- package/dist/i18n/index.cjs +287 -27
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +7 -6
- package/dist/i18n/index.d.ts +7 -6
- package/dist/i18n/index.js +21 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-CmVgTkqk.d.cts → index-B8bjExET.d.cts} +214 -18
- package/dist/{index-CNwA-B6-.d.ts → index-DfUbNad8.d.ts} +214 -18
- package/dist/index.cjs +3329 -446
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -22
- package/dist/index.d.ts +43 -22
- package/dist/index.js +179 -8799
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs +5 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.d.cts +3 -3
- package/dist/indexing/index.d.ts +3 -3
- package/dist/indexing/index.js +4 -4
- package/dist/issue-3W6IVLKH.js +12 -0
- package/dist/{lazy-builder-Rpd-V3jP.d.ts → lazy-builder-Ci5_YG73.d.cts} +2 -2
- package/dist/{lazy-builder-C-rPfWG0.d.cts → lazy-builder-D5GU14TS.d.ts} +2 -2
- package/dist/{ledger-3TXNP47J.js → ledger-O7FXOG3D.js} +6 -6
- package/dist/materialized-views/index.cjs +21 -2
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +23 -20
- package/dist/materialized-views/index.d.ts +23 -20
- package/dist/materialized-views/index.js +12 -12
- package/dist/noydb-YAZNH5TI.js +34 -0
- package/dist/overlay-views/index.cjs +11 -1
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +10 -9
- package/dist/overlay-views/index.d.ts +10 -9
- package/dist/overlay-views/index.js +6 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +7 -6
- package/dist/periods/index.d.ts +7 -6
- package/dist/periods/index.js +6 -6
- package/dist/{predicate-Dnu81tsS.d.cts → predicate-Bt5ft-9c.d.cts} +28 -3
- package/dist/{predicate-Dnu81tsS.d.ts → predicate-Bt5ft-9c.d.ts} +28 -3
- package/dist/{public-envelope-PY6NKFLI.js → public-envelope-HMYHZIRH.js} +4 -4
- package/dist/query/index.cjs +255 -6
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +12 -6
- package/dist/registry-DKEXOJVO.js +7 -0
- package/dist/{registry-3L3N3PTG.js → registry-ST2VNFZC.js} +3 -3
- package/dist/registry-UFIK7CSR.js +8 -0
- package/dist/registry-ZGYYSM5I.js +8 -0
- package/dist/registry-ZGYYSM5I.js.map +1 -0
- package/dist/revoke-S6JMSLUN.js +17 -0
- package/dist/revoke-S6JMSLUN.js.map +1 -0
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +8 -7
- package/dist/session/index.d.ts +8 -7
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +7 -6
- package/dist/shadow/index.d.ts +7 -6
- package/dist/shadow/index.js +2 -2
- package/dist/signer-7NPTB3SQ.js +18 -0
- package/dist/signer-7NPTB3SQ.js.map +1 -0
- package/dist/snapshots/index.cjs +937 -0
- package/dist/snapshots/index.cjs.map +1 -0
- package/dist/snapshots/index.d.cts +28 -0
- package/dist/snapshots/index.d.ts +28 -0
- package/dist/snapshots/index.js +152 -0
- package/dist/snapshots/index.js.map +1 -0
- package/dist/{stale-HSC5YO2O.js → stale-VKXSXJF4.js} +2 -2
- package/dist/stale-VKXSXJF4.js.map +1 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +7 -6
- package/dist/store/index.d.ts +7 -6
- package/dist/store/index.js +2 -2
- package/dist/{strategy-DSTrsZ8t.d.cts → strategy-CT2LCKAX.d.cts} +12 -0
- package/dist/{strategy-DSTrsZ8t.d.ts → strategy-CT2LCKAX.d.ts} +12 -0
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +6 -5
- package/dist/sync/index.d.ts +6 -5
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs +1 -1
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +7 -6
- package/dist/team/index.d.ts +7 -6
- package/dist/team/index.js +13 -11
- package/dist/tx/index.cjs +82 -2
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +8 -7
- package/dist/tx/index.d.ts +8 -7
- package/dist/tx/index.js +56 -3
- package/dist/tx/index.js.map +1 -1
- package/dist/{types-DW9RGSSs.d.ts → types-CaNQm4i8.d.ts} +1270 -259
- package/dist/{types-C4lwMKKF.d.cts → types-n2_IfwlQ.d.cts} +1270 -259
- package/dist/{index-4agOpzqd.d.ts → ulid-B9SMWj5i.d.ts} +64 -46
- package/dist/{index-hdFvZkBP.d.cts → ulid-CLMjmyhG.d.cts} +64 -46
- package/dist/util/index.cjs +7 -0
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.d.cts +2 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/index.js +5 -1
- package/dist/util/index.js.map +1 -1
- package/dist/{with-derivation-g-pGoMzL.d.ts → with-derivation-CVIOPTUf.d.ts} +1 -1
- package/dist/{with-derivation-C8LDlV7t.d.cts → with-derivation-aKrtS7Jj.d.cts} +1 -1
- package/dist/{with-guard-jI1x9Z3k.d.cts → with-guard-DZQbPzoP.d.cts} +1 -1
- package/dist/{with-guard-DWOCK4Ca.d.ts → with-guard-DseETUrF.d.ts} +1 -1
- package/dist/{with-materialized-view-DaKR-N6J.d.ts → with-materialized-view-C1eA1_T_.d.cts} +2 -2
- package/dist/{with-materialized-view-DcTx4H3j.d.cts → with-materialized-view-DaYaE8-Q.d.ts} +2 -2
- package/dist/{with-overlayed-view-N7jYuNOS.d.ts → with-overlayed-view-DQsh2p8H.d.ts} +2 -2
- package/dist/{with-overlayed-view-D-6oWAgM.d.cts → with-overlayed-view-DleJfKcV.d.cts} +2 -2
- package/package.json +27 -4
- package/dist/chunk-23TTQXVO.js.map +0 -1
- package/dist/chunk-2AXFIYHT.js.map +0 -1
- package/dist/chunk-5ZGZ6HIZ.js.map +0 -1
- package/dist/chunk-6HPZY4ON.js.map +0 -1
- package/dist/chunk-7H6DOO3E.js.map +0 -1
- package/dist/chunk-ADQ5MQ54.js.map +0 -1
- package/dist/chunk-CBAHB2BF.js.map +0 -1
- package/dist/chunk-DPMFBCV6.js.map +0 -1
- package/dist/chunk-DYECX3IX.js.map +0 -1
- package/dist/chunk-EGQYGYIU.js.map +0 -1
- package/dist/chunk-FCXOFQAJ.js.map +0 -1
- package/dist/chunk-HB3Z2GCR.js.map +0 -1
- package/dist/chunk-MRIBLZL3.js.map +0 -1
- package/dist/chunk-NIOHFJPJ.js.map +0 -1
- package/dist/chunk-PA6R5ZCI.js.map +0 -1
- package/dist/chunk-PEULZC6M.js.map +0 -1
- package/dist/chunk-RD5LYKD6.js.map +0 -1
- package/dist/chunk-SIZWEV2Y.js.map +0 -1
- package/dist/chunk-UA4RI7OT.js.map +0 -1
- package/dist/chunk-UZXLQCHP.js.map +0 -1
- package/dist/chunk-VMIO4IXG.js.map +0 -1
- package/dist/chunk-YMYK7US4.js.map +0 -1
- package/dist/chunk-YS3POABP.js.map +0 -1
- package/dist/chunk-Z72JH4KG.js.map +0 -1
- package/dist/executor-7E3VFGW7.js +0 -11
- package/dist/executor-CEWX2FQI.js +0 -8
- package/dist/executor-X4SQ3ZLC.js +0 -8
- package/dist/fanout-sidecar-VJ52RIEY.js.map +0 -1
- package/dist/registry-O47PUPSY.js +0 -8
- package/dist/registry-RFGGMVNJ.js +0 -7
- package/dist/registry-WLLMODKN.js +0 -8
- /package/dist/{chunk-XGSOTWYX.js.map → chunk-2LPPNWF6.js.map} +0 -0
- /package/dist/{chunk-5SCJ5UEF.js.map → chunk-2N62W5YP.js.map} +0 -0
- /package/dist/{chunk-537VFZTR.js.map → chunk-3LPV6BXR.js.map} +0 -0
- /package/dist/{chunk-I6MX32UC.js.map → chunk-BDV7INMP.js.map} +0 -0
- /package/dist/{chunk-MKSA2V7A.js.map → chunk-C3WE6UJY.js.map} +0 -0
- /package/dist/{chunk-DYBQG5PQ.js.map → chunk-CXFOITNS.js.map} +0 -0
- /package/dist/{chunk-4TFSM22V.js.map → chunk-DJRWA3Q5.js.map} +0 -0
- /package/dist/{chunk-5DWL3JBF.js.map → chunk-LSTBFLL2.js.map} +0 -0
- /package/dist/{chunk-34YSDCDP.js.map → chunk-PVUUIWHY.js.map} +0 -0
- /package/dist/{chunk-WCA2NROQ.js.map → chunk-R233SLY3.js.map} +0 -0
- /package/dist/{chunk-P7EQ2S5O.js.map → chunk-RRNA5GKT.js.map} +0 -0
- /package/dist/{chunk-ZNOEIM6Y.js.map → chunk-RYIL3PI2.js.map} +0 -0
- /package/dist/{chunk-KESP7GOK.js.map → chunk-Y26YV5R3.js.map} +0 -0
- /package/dist/{crypto-A7FRXYHC.js.map → crypto-2CRLG4F4.js.map} +0 -0
- /package/dist/{delegation-YBA4X4JN.js.map → delegation-ZTRT2PRV.js.map} +0 -0
- /package/dist/{executor-7E3VFGW7.js.map → executor-S76VN45G.js.map} +0 -0
- /package/dist/{executor-CEWX2FQI.js.map → executor-UCXLIGLW.js.map} +0 -0
- /package/dist/{executor-X4SQ3ZLC.js.map → executor-ZCNZJMGR.js.map} +0 -0
- /package/dist/{ledger-3TXNP47J.js.map → issue-3W6IVLKH.js.map} +0 -0
- /package/dist/{public-envelope-PY6NKFLI.js.map → ledger-O7FXOG3D.js.map} +0 -0
- /package/dist/{registry-3L3N3PTG.js.map → noydb-YAZNH5TI.js.map} +0 -0
- /package/dist/{registry-O47PUPSY.js.map → public-envelope-HMYHZIRH.js.map} +0 -0
- /package/dist/{registry-RFGGMVNJ.js.map → registry-DKEXOJVO.js.map} +0 -0
- /package/dist/{registry-WLLMODKN.js.map → registry-ST2VNFZC.js.map} +0 -0
- /package/dist/{stale-HSC5YO2O.js.map → registry-UFIK7CSR.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-
|
|
2
|
-
import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as AggregateResult, g as GroupedQuery, h as GroupedQueryN } from './strategy-
|
|
1
|
+
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-Bt5ft-9c.js';
|
|
2
|
+
import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as AggregateResult, g as GroupedQuery, h as GroupedQueryN } from './strategy-CT2LCKAX.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* All NOYDB error classes — a single import surface for `catch` blocks and
|
|
@@ -29,11 +29,15 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
|
|
|
29
29
|
* │ ├─ ValidationError — application-level guard failed
|
|
30
30
|
* │ └─ SchemaValidationError — Standard Schema v1 rejection
|
|
31
31
|
* ├─ Query errors
|
|
32
|
-
* │ ├─ JoinTooLargeError
|
|
33
|
-
* │ ├─
|
|
34
|
-
* │ ├─
|
|
35
|
-
* │ ├─
|
|
36
|
-
* │
|
|
32
|
+
* │ ├─ JoinTooLargeError — join row ceiling exceeded
|
|
33
|
+
* │ ├─ CrossJoinTooLargeError — cross-join row ceiling exceeded
|
|
34
|
+
* │ ├─ CrossJoinSourceUnknownError — target collection not in vault
|
|
35
|
+
* │ ├─ DanglingReferenceError — strict ref() points at nothing
|
|
36
|
+
* │ ├─ GroupCardinalityError — groupBy bucket cap exceeded
|
|
37
|
+
* │ ├─ IndexRequiredError — lazy-mode query touches unindexed field
|
|
38
|
+
* │ ├─ IndexWriteFailureError — index side-car put/delete failed post-main
|
|
39
|
+
* │ ├─ UniqueConstraintError — duplicate value on unique index
|
|
40
|
+
* │ └─ UnsupportedIndexOptionError — unique+lazy or unique+crdt at registration
|
|
37
41
|
* ├─ i18n / Dictionary errors
|
|
38
42
|
* │ ├─ ReservedCollectionNameError
|
|
39
43
|
* │ ├─ DictKeyMissingError
|
|
@@ -46,10 +50,12 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
|
|
|
46
50
|
* │ └─ BackupCorruptedError — envelope hash mismatch in dump
|
|
47
51
|
* ├─ Bundle errors
|
|
48
52
|
* │ └─ BundleIntegrityError — .noydb body sha256 mismatch
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
+
* ├─ Session errors
|
|
54
|
+
* │ ├─ SessionExpiredError
|
|
55
|
+
* │ ├─ SessionNotFoundError
|
|
56
|
+
* │ └─ SessionPolicyError
|
|
57
|
+
* └─ Snapshot errors
|
|
58
|
+
* └─ SnapshotNotFoundError — snapshot key absent from snapshot store
|
|
53
59
|
* ```
|
|
54
60
|
*
|
|
55
61
|
* ## Catching all NOYDB errors
|
|
@@ -558,6 +564,30 @@ declare class SchemaValidationError extends NoydbError {
|
|
|
558
564
|
readonly direction: 'input' | 'output';
|
|
559
565
|
constructor(message: string, issues: readonly unknown[], direction: 'input' | 'output');
|
|
560
566
|
}
|
|
567
|
+
/** Base for schema-evolution strategy rejections. */
|
|
568
|
+
declare class SchemaUpdateError extends NoydbError {
|
|
569
|
+
constructor(code: string, message: string);
|
|
570
|
+
}
|
|
571
|
+
/** A non-additive schema change was rejected by the `additiveOnly()` strategy. */
|
|
572
|
+
declare class NonAdditiveSchemaChangeError extends SchemaUpdateError {
|
|
573
|
+
constructor(message: string);
|
|
574
|
+
}
|
|
575
|
+
/** A schema change was rejected by the `lockSchema()` strategy. */
|
|
576
|
+
declare class SchemaLockedError extends SchemaUpdateError {
|
|
577
|
+
constructor(message: string);
|
|
578
|
+
}
|
|
579
|
+
/** Write attempted while a schema cutover fence is up (draining/migrating, or this collection has a pending cutover). */
|
|
580
|
+
declare class SchemaFenceError extends SchemaUpdateError {
|
|
581
|
+
constructor(message: string);
|
|
582
|
+
}
|
|
583
|
+
/** Write attempted by a client whose generation snapshot is behind the live fence — reload required. */
|
|
584
|
+
declare class MigrationRequiredError extends SchemaUpdateError {
|
|
585
|
+
constructor(message: string);
|
|
586
|
+
}
|
|
587
|
+
/** A coordinated cutover timed out waiting for active clients to quiesce. */
|
|
588
|
+
declare class QuiesceTimeoutError extends SchemaUpdateError {
|
|
589
|
+
constructor(message: string);
|
|
590
|
+
}
|
|
561
591
|
/**
|
|
562
592
|
* Thrown when `.groupBy().aggregate()` produces more than the hard
|
|
563
593
|
* cardinality cap (default 100_000 groups)..
|
|
@@ -612,6 +642,51 @@ declare class IndexRequiredError extends NoydbError {
|
|
|
612
642
|
missingFields: readonly string[];
|
|
613
643
|
});
|
|
614
644
|
}
|
|
645
|
+
/**
|
|
646
|
+
* Thrown by `Collection.put()` when writing a record would violate a
|
|
647
|
+
* unique-index constraint — the same field value (or composite field
|
|
648
|
+
* tuple) is already held by a *different* record id in the collection.
|
|
649
|
+
*
|
|
650
|
+
* Properties:
|
|
651
|
+
* - `collection` — name of the collection the write was targeting
|
|
652
|
+
* - `recordId` — the id of the record being written (the would-be violator)
|
|
653
|
+
* - `fields` — the constrained field(s), e.g. `['taxId']` or `['workerId','employerEntityId']`
|
|
654
|
+
* - `conflictingId` — the id of the record already holding the value
|
|
655
|
+
*
|
|
656
|
+
* Null-distinct semantics: if any constrained field is `null`/`undefined`,
|
|
657
|
+
* the row is exempt (the constraint does not fire). This matches standard
|
|
658
|
+
* SQL NULL-distinct behavior.
|
|
659
|
+
*/
|
|
660
|
+
declare class UniqueConstraintError extends NoydbError {
|
|
661
|
+
readonly collection: string;
|
|
662
|
+
readonly recordId: string;
|
|
663
|
+
readonly fields: readonly string[];
|
|
664
|
+
readonly conflictingId: string;
|
|
665
|
+
constructor(collection: string, recordId: string, fields: readonly string[], conflictingId: string);
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Thrown at collection registration when an index option is declared that
|
|
669
|
+
* is incompatible with the collection's operating mode.
|
|
670
|
+
*
|
|
671
|
+
* Currently covers two cases:
|
|
672
|
+
* - `unique: true` on a lazy-mode (`prefetch: false`) collection — lazy mode
|
|
673
|
+
* does not pre-load all records, so an in-memory uniqueness map cannot be
|
|
674
|
+
* maintained reliably.
|
|
675
|
+
* - `unique: true` on a CRDT collection (`crdt: 'lww-map' | 'rga' | 'yjs'`) —
|
|
676
|
+
* CRDT put() short-circuits the unique-constraint check, so enforcement would
|
|
677
|
+
* silently not fire.
|
|
678
|
+
*
|
|
679
|
+
* Both cases are caught eagerly at `vault.collection()` time so the developer
|
|
680
|
+
* sees the incompatibility immediately rather than shipping silently-ignored
|
|
681
|
+
* constraints.
|
|
682
|
+
*
|
|
683
|
+
* The `option` field names the incompatible option (`'unique'`) so catch blocks
|
|
684
|
+
* can pattern-match without inspecting the error message.
|
|
685
|
+
*/
|
|
686
|
+
declare class UnsupportedIndexOptionError extends NoydbError {
|
|
687
|
+
readonly option: string;
|
|
688
|
+
constructor(option: string, message: string);
|
|
689
|
+
}
|
|
615
690
|
/**
|
|
616
691
|
* Thrown (or surfaced via the `index:write-partial` event) when one or more
|
|
617
692
|
* per-indexed-field side-car writes fail after the main record write has
|
|
@@ -663,7 +738,7 @@ declare class BundleIntegrityError extends NoydbError {
|
|
|
663
738
|
constructor(message: string);
|
|
664
739
|
}
|
|
665
740
|
/**
|
|
666
|
-
* Thrown by `readNoydbBundle`
|
|
741
|
+
* Thrown by `readNoydbBundle` when the bundle carries
|
|
667
742
|
* sealed per-user passphrases but no supplied `SealingKeyProvider`
|
|
668
743
|
* has a `.id` (= `pid`) matching the sealed entry's `pid`.
|
|
669
744
|
*
|
|
@@ -768,6 +843,26 @@ declare class LocaleNotSpecifiedError extends NoydbError {
|
|
|
768
843
|
readonly field: string;
|
|
769
844
|
constructor(field: string, message?: string);
|
|
770
845
|
}
|
|
846
|
+
/**
|
|
847
|
+
* Thrown at write time when an `i18nText` slot's value contains
|
|
848
|
+
* characters outside the script set allowed for that locale, and the
|
|
849
|
+
* field's `onScriptViolation` policy is `'reject'` (the default).
|
|
850
|
+
*
|
|
851
|
+
* Distinct from {@link MissingTranslationError} (write-shape) and
|
|
852
|
+
* {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
|
|
853
|
+
* wrong-script value from a missing one.
|
|
854
|
+
*/
|
|
855
|
+
declare class ScriptViolationError extends NoydbError {
|
|
856
|
+
/** The field whose value violated its script constraint. */
|
|
857
|
+
readonly field: string;
|
|
858
|
+
/** The locale slot (e.g. `'en'`) that was checked. */
|
|
859
|
+
readonly locale: string;
|
|
860
|
+
/** The Unicode scripts allowed for this slot. */
|
|
861
|
+
readonly expected: readonly string[];
|
|
862
|
+
/** A short sample of the offending characters, for diagnostics. */
|
|
863
|
+
readonly sample: string;
|
|
864
|
+
constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
|
|
865
|
+
}
|
|
771
866
|
/**
|
|
772
867
|
* Thrown when a collection has an `i18nText` field with
|
|
773
868
|
* `autoTranslate: true` but no `plaintextTranslator` was configured
|
|
@@ -812,6 +907,34 @@ declare class BackupCorruptedError extends NoydbError {
|
|
|
812
907
|
readonly id: string;
|
|
813
908
|
constructor(collection: string, id: string, message: string);
|
|
814
909
|
}
|
|
910
|
+
/**
|
|
911
|
+
* Thrown by partition-extraction primitives when the
|
|
912
|
+
* transitive-closure walk fails — e.g. the FK graph is deeper than
|
|
913
|
+
* `maxDepth`, signalling a runaway or unexpectedly cyclic graph.
|
|
914
|
+
*/
|
|
915
|
+
declare class PartitionExtractionError extends NoydbError {
|
|
916
|
+
constructor(message: string);
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Thrown by `adoptPartition` when the transfer seal can't be
|
|
920
|
+
* opened — a wrong/short transfer key (AES-GCM auth-tag failure) or a
|
|
921
|
+
* malformed sealed payload.
|
|
922
|
+
*/
|
|
923
|
+
declare class TransferSealError extends NoydbError {
|
|
924
|
+
constructor(message: string);
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Thrown when an adoption-lifecycle precondition fails — re-adopting a
|
|
928
|
+
* partition already consumed in this store, or owner-creation on a
|
|
929
|
+
* vault that isn't in the adopted-unowned state.
|
|
930
|
+
*/
|
|
931
|
+
declare class AdoptionStateError extends NoydbError {
|
|
932
|
+
constructor(message: string);
|
|
933
|
+
}
|
|
934
|
+
/** Document-attestation failures: undeclared field-schema, non-owner issue, missing field, signer failure. */
|
|
935
|
+
declare class AttestationError extends NoydbError {
|
|
936
|
+
constructor(message: string);
|
|
937
|
+
}
|
|
815
938
|
/**
|
|
816
939
|
* Thrown by `resolveSession()` when the session token's `expiresAt`
|
|
817
940
|
* timestamp is in the past. The session key is also removed from the
|
|
@@ -887,6 +1010,34 @@ declare class JoinTooLargeError extends NoydbError {
|
|
|
887
1010
|
message: string;
|
|
888
1011
|
});
|
|
889
1012
|
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Thrown by `.crossJoin()` when the cumulative cartesian product (or lateral
|
|
1015
|
+
* filtered count) exceeds the configured ceiling. Check before allocating.
|
|
1016
|
+
* Mirrors the pattern of `JoinTooLargeError` and the `.join()` row ceiling.
|
|
1017
|
+
*
|
|
1018
|
+
* @see CrossJoinClause.maxRows — per-clause override
|
|
1019
|
+
* @see DEFAULT_CROSS_JOIN_MAX_ROWS — package default (50_000)
|
|
1020
|
+
*/
|
|
1021
|
+
declare class CrossJoinTooLargeError extends NoydbError {
|
|
1022
|
+
readonly target: string;
|
|
1023
|
+
readonly expected: number;
|
|
1024
|
+
readonly limit: number;
|
|
1025
|
+
constructor(opts: {
|
|
1026
|
+
target: string;
|
|
1027
|
+
expected: number;
|
|
1028
|
+
limit: number;
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Thrown at cross-join execution time when the target collection is not
|
|
1033
|
+
* reachable from the current vault. The left collection is included in the
|
|
1034
|
+
* message for context.
|
|
1035
|
+
*/
|
|
1036
|
+
declare class CrossJoinSourceUnknownError extends NoydbError {
|
|
1037
|
+
readonly target: string;
|
|
1038
|
+
readonly leftCollection: string;
|
|
1039
|
+
constructor(target: string, leftCollection: string);
|
|
1040
|
+
}
|
|
890
1041
|
/**
|
|
891
1042
|
* Thrown by `.join()` in strict `ref()` mode when a left-side record
|
|
892
1043
|
* points at a right-side id that does not exist in the target
|
|
@@ -970,7 +1121,7 @@ declare class DerivationOutputShapeError extends NoydbError {
|
|
|
970
1121
|
constructor(outputKey: string, detail: string);
|
|
971
1122
|
}
|
|
972
1123
|
/**
|
|
973
|
-
* Thrown by array-shape derivations
|
|
1124
|
+
* Thrown by array-shape derivations when the `derive` function
|
|
974
1125
|
* returns more rows than the output's `maxFanout` cap. The cap exists
|
|
975
1126
|
* to keep dispatch cost bounded — without it a single source-row
|
|
976
1127
|
* update could fan out to thousands of derived rows, dominating the
|
|
@@ -1030,7 +1181,7 @@ declare class MaterializedViewTooLargeError extends NoydbError {
|
|
|
1030
1181
|
* normalized.
|
|
1031
1182
|
*
|
|
1032
1183
|
* Today the trigger cases are all about the `query` / `unionSources`
|
|
1033
|
-
* dichotomy
|
|
1184
|
+
* dichotomy:
|
|
1034
1185
|
* - both `query` and `unionSources` were set (mutually exclusive),
|
|
1035
1186
|
* - neither `query` nor `unionSources` was set,
|
|
1036
1187
|
* - `unionSources` has fewer than 2 arms,
|
|
@@ -1085,6 +1236,19 @@ declare class OverlayIdMismatchError extends NoydbError {
|
|
|
1085
1236
|
readonly expected: string;
|
|
1086
1237
|
constructor(actual: string, expected: string);
|
|
1087
1238
|
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Thrown when a requested snapshot version does not exist in the
|
|
1241
|
+
* snapshot store — either it was never created, was pruned by the
|
|
1242
|
+
* retention policy, or was deleted manually.
|
|
1243
|
+
*
|
|
1244
|
+
* The `version` field carries the key that was looked up so callers
|
|
1245
|
+
* can surface an actionable "snapshot X not found" message without
|
|
1246
|
+
* parsing the error string.
|
|
1247
|
+
*/
|
|
1248
|
+
declare class SnapshotNotFoundError extends NoydbError {
|
|
1249
|
+
readonly version: string;
|
|
1250
|
+
constructor(version: string);
|
|
1251
|
+
}
|
|
1088
1252
|
|
|
1089
1253
|
/**
|
|
1090
1254
|
* Foreign-key references — the soft-FK mechanism.
|
|
@@ -1580,6 +1744,8 @@ interface QueryPlan {
|
|
|
1580
1744
|
*/
|
|
1581
1745
|
readonly joins: readonly JoinLeg[];
|
|
1582
1746
|
}
|
|
1747
|
+
/** Default row ceiling for cross-join expansion. Matches JoinTooLargeError's ceiling. */
|
|
1748
|
+
declare const DEFAULT_CROSS_JOIN_MAX_ROWS = 50000;
|
|
1583
1749
|
/**
|
|
1584
1750
|
* Source of records that a query executes against.
|
|
1585
1751
|
*
|
|
@@ -1617,7 +1783,7 @@ interface QuerySource<T> {
|
|
|
1617
1783
|
* error. See `query/join.ts` for the full design.
|
|
1618
1784
|
*/
|
|
1619
1785
|
/**
|
|
1620
|
-
* Declared deterministic predicate
|
|
1786
|
+
* Declared deterministic predicate. Carries the consumer's
|
|
1621
1787
|
* stable `hash` (for function-body identity), the function itself,
|
|
1622
1788
|
* and is keyed by name when registered on a `Query<T>` via
|
|
1623
1789
|
* `_withPredicates()`.
|
|
@@ -1648,12 +1814,12 @@ declare class Query<T> {
|
|
|
1648
1814
|
/**
|
|
1649
1815
|
* @internal — clone this Query with a declared-predicate map
|
|
1650
1816
|
* attached. Used by the materialized-view registry to enable
|
|
1651
|
-
* `.wherePredicate(name, ctx?)` for the MV's query callback
|
|
1817
|
+
* `.wherePredicate(name, ctx?)` for the MV's query callback.
|
|
1652
1818
|
* Consumers don't call this directly.
|
|
1653
1819
|
*/
|
|
1654
1820
|
_withPredicates(predicates: ReadonlyMap<string, DeclaredPredicate>): Query<T>;
|
|
1655
1821
|
/**
|
|
1656
|
-
* Filter by a registered deterministic predicate
|
|
1822
|
+
* Filter by a registered deterministic predicate. Requires
|
|
1657
1823
|
* the Query to have been augmented with a predicates map (typically
|
|
1658
1824
|
* via the materialized-view registry — bare Queries constructed
|
|
1659
1825
|
* outside an MV throw on `.wherePredicate()`).
|
|
@@ -1748,6 +1914,36 @@ declare class Query<T> {
|
|
|
1748
1914
|
strategy?: JoinStrategy;
|
|
1749
1915
|
maxRows?: number;
|
|
1750
1916
|
}): Query<T & Record<As, R | null>>;
|
|
1917
|
+
/**
|
|
1918
|
+
* Cartesian-product cross-join against `target` collection. Each result row
|
|
1919
|
+
* carries the original `T` fields plus `result[as]` populated from every
|
|
1920
|
+
* right-side row (or the filtered subset when `on:` is supplied).
|
|
1921
|
+
*
|
|
1922
|
+
* **Order matters:** `.where().crossJoin()` filters BEFORE expanding (cheaper);
|
|
1923
|
+
* `.crossJoin().where('alias.field', ...)` filters AFTER (required when the
|
|
1924
|
+
* where clause references the aliased fields).
|
|
1925
|
+
*
|
|
1926
|
+
* **Cost ceiling:** `CrossJoinTooLargeError` fires before allocation when
|
|
1927
|
+
* `leftRows × rightRows` (or the cumulative lateral count) exceeds the limit.
|
|
1928
|
+
* Default: 50,000 rows. Override per-clause with `{ maxRows: N }`.
|
|
1929
|
+
*
|
|
1930
|
+
* **`on:` shapes:**
|
|
1931
|
+
* - `on: (left) => TTarget[]` — subset form (most efficient)
|
|
1932
|
+
* - `on: (left) => (right) => boolean` — predicate form
|
|
1933
|
+
* - `on: { predicate: 'name' }` — MV-safe, hash-tracked form
|
|
1934
|
+
* (requires the Query to have been augmented via `_withPredicates`)
|
|
1935
|
+
*
|
|
1936
|
+
* Requires a JoinContext (constructed via `collection.query()`).
|
|
1937
|
+
*/
|
|
1938
|
+
crossJoin<TTarget = unknown, As extends string = string>(target: string, opts: {
|
|
1939
|
+
as: As;
|
|
1940
|
+
on?: ((left: T) => unknown[] | ((right: TTarget) => boolean)) | {
|
|
1941
|
+
readonly predicate: string;
|
|
1942
|
+
};
|
|
1943
|
+
maxRows?: number;
|
|
1944
|
+
}): Query<T & {
|
|
1945
|
+
[K in As]: TTarget;
|
|
1946
|
+
}>;
|
|
1751
1947
|
/**
|
|
1752
1948
|
* Execute the plan and return the matching records. When the plan
|
|
1753
1949
|
* carries any join legs, they are applied after `where` / `orderBy`
|
|
@@ -2235,4 +2431,4 @@ declare class ScanBuilder<T> implements AsyncIterable<T> {
|
|
|
2235
2431
|
private recordMatches;
|
|
2236
2432
|
}
|
|
2237
2433
|
|
|
2238
|
-
export {
|
|
2434
|
+
export { ImportCapabilityError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, CrossJoinSourceUnknownError as E, FieldFrozenError as F, CrossJoinTooLargeError as G, DEFAULT_CROSS_JOIN_MAX_ROWS as H, InvariantError as I, DEFAULT_JOIN_MAX_ROWS as J, DanglingReferenceError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, Query as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, DecryptionError as U, DelegationTargetMissingError as V, DirectoryDisabledError as W, ElevationExpiredError as X, ExportCapabilityError as Y, FilenameSanitizationError as Z, GroupCardinalityError as _, DictKeyMissingError as a, IndexRequiredError as a0, IndexWriteFailureError as a1, InvalidKeyError as a2, type JoinContext as a3, type JoinLeg as a4, type JoinStrategy as a5, JoinTooLargeError as a6, type JoinableSource as a7, KeyringCorruptError as a8, KeyringExpiredError as a9, type ScanPageProvider as aA, SchemaFenceError as aB, SchemaLockedError as aC, SchemaUpdateError as aD, SchemaValidationError as aE, StoreCapabilityError as aF, TamperedError as aG, TierDemoteDeniedError as aH, TierNotGrantedError as aI, UniqueConstraintError as aJ, UnsupportedIndexOptionError as aK, ValidationError as aL, applyJoins as aM, buildLiveQuery as aN, executePlan as aO, ref as aP, resetJoinWarnings as aQ, LedgerContentionError as aa, type LiveQuery as ab, type LiveUpstream as ac, MigrationRequiredError as ad, NetworkError as ae, NoAccessError as af, NonAdditiveSchemaChangeError as ag, NotFoundError as ah, type OrderBy as ai, PathEscapeError as aj, PeriodClosedError as ak, PermissionDeniedError as al, PrivilegeEscalationError as am, type QueryPlan as an, type QuerySource as ao, QuiesceTimeoutError as ap, ReadOnlyAtInstantError as aq, ReadOnlyError as ar, ReadOnlyFrameError as as, type RefDescriptor as at, RefIntegrityError as au, type RefMode as av, RefRegistry as aw, RefScopeError as ax, type RefViolation as ay, ScanBuilder as az, SessionExpiredError as b, SessionNotFoundError as c, SessionPolicyError as d, RecordLockedError as e, SnapshotNotFoundError as f, DerivationCapExceededError as g, DerivationCycleError as h, DerivationDepthError as i, DerivationOutputShapeError as j, DerivationOutputUnknownError as k, OverlayCollectionUnavailableError as l, OverlayIdMismatchError as m, OverlayNameCollisionError as n, AttestationError as o, AdoptionStateError as p, BackupLedgerError as q, BundleIntegrityError as r, BundleSealMismatchError as s, BundleVersionConflictError as t, TransferSealError as u, MaterializedViewConfigError as v, MaterializedViewCycleError as w, MaterializedViewSourceUnknownError as x, MaterializedViewTooLargeError as y, AlreadyElevatedError as z };
|