@nicia-ai/typegraph 0.37.0 → 0.38.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/README.md +12 -10
- package/dist/backend/drizzle/indexes.cjs +32 -0
- package/dist/backend/drizzle/indexes.cjs.map +1 -0
- package/dist/backend/drizzle/indexes.d.cts +43 -0
- package/dist/backend/drizzle/indexes.d.ts +43 -0
- package/dist/backend/drizzle/indexes.js +11 -0
- package/dist/backend/drizzle/indexes.js.map +1 -0
- package/dist/backend/index.cjs +161 -0
- package/dist/backend/index.cjs.map +1 -0
- package/dist/backend/index.d.cts +3 -0
- package/dist/backend/index.d.ts +3 -0
- package/dist/backend/index.js +8 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/backend/postgres/index.cjs +32 -28
- package/dist/backend/postgres/index.d.cts +13 -12
- package/dist/backend/postgres/index.d.ts +13 -12
- package/dist/backend/postgres/index.js +19 -15
- package/dist/backend/postgres/pglite-store.cjs +67 -0
- package/dist/backend/postgres/pglite-store.cjs.map +1 -0
- package/dist/backend/postgres/pglite-store.d.cts +38 -0
- package/dist/backend/postgres/pglite-store.d.ts +38 -0
- package/dist/backend/postgres/pglite-store.js +65 -0
- package/dist/backend/postgres/pglite-store.js.map +1 -0
- package/dist/backend/postgres/pglite.cjs +25 -50
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +10 -9
- package/dist/backend/postgres/pglite.d.ts +10 -9
- package/dist/backend/postgres/pglite.js +20 -52
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +29 -25
- package/dist/backend/sqlite/index.d.cts +11 -11
- package/dist/backend/sqlite/index.d.ts +11 -11
- package/dist/backend/sqlite/index.js +17 -13
- package/dist/backend/sqlite/libsql.cjs +23 -19
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +9 -10
- package/dist/backend/sqlite/libsql.d.ts +9 -10
- package/dist/backend/sqlite/libsql.js +19 -15
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +72 -0
- package/dist/backend/sqlite/local-store.cjs.map +1 -0
- package/dist/backend/sqlite/local-store.d.cts +42 -0
- package/dist/backend/sqlite/local-store.d.ts +42 -0
- package/dist/backend/sqlite/local-store.js +67 -0
- package/dist/backend/sqlite/local-store.js.map +1 -0
- package/dist/backend/sqlite/local.cjs +28 -183
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +8 -81
- package/dist/backend/sqlite/local.d.ts +8 -81
- package/dist/backend/sqlite/local.js +20 -180
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/chunk-2EBMPJBO.js +16 -0
- package/dist/chunk-2EBMPJBO.js.map +1 -0
- package/dist/{chunk-NBP2WTJW.cjs → chunk-2SL7OGPR.cjs} +2900 -1597
- package/dist/chunk-2SL7OGPR.cjs.map +1 -0
- package/dist/chunk-35S6P5ZU.js +27 -0
- package/dist/chunk-35S6P5ZU.js.map +1 -0
- package/dist/chunk-3LKL3S6X.js +50 -0
- package/dist/chunk-3LKL3S6X.js.map +1 -0
- package/dist/chunk-6G5CQ6JX.js +47 -0
- package/dist/chunk-6G5CQ6JX.js.map +1 -0
- package/dist/chunk-6XDBRDZE.js +312 -0
- package/dist/chunk-6XDBRDZE.js.map +1 -0
- package/dist/chunk-764JHTLT.cjs +15 -0
- package/dist/chunk-764JHTLT.cjs.map +1 -0
- package/dist/chunk-76HE7DJP.js +68 -0
- package/dist/chunk-76HE7DJP.js.map +1 -0
- package/dist/{chunk-VGDDG3XJ.cjs → chunk-7M3NACL3.cjs} +12 -12
- package/dist/{chunk-VGDDG3XJ.cjs.map → chunk-7M3NACL3.cjs.map} +1 -1
- package/dist/{chunk-NXQFATMF.cjs → chunk-7VLCN3JB.cjs} +153 -123
- package/dist/chunk-7VLCN3JB.cjs.map +1 -0
- package/dist/{chunk-552KNYQJ.js → chunk-A2FGSWMQ.js} +1907 -607
- package/dist/chunk-A2FGSWMQ.js.map +1 -0
- package/dist/chunk-AOL64O4Z.js +165 -0
- package/dist/chunk-AOL64O4Z.js.map +1 -0
- package/dist/{chunk-27SSDCEP.cjs → chunk-B63IFHXR.cjs} +53 -74
- package/dist/chunk-B63IFHXR.cjs.map +1 -0
- package/dist/{chunk-3XXGYU62.cjs → chunk-BKAKAVRW.cjs} +56 -53
- package/dist/chunk-BKAKAVRW.cjs.map +1 -0
- package/dist/{chunk-YTSN73ND.js → chunk-BQITNFQJ.js} +3 -3
- package/dist/{chunk-YTSN73ND.js.map → chunk-BQITNFQJ.js.map} +1 -1
- package/dist/{chunk-NUIG3BCV.cjs → chunk-CQC6VBAF.cjs} +93 -155
- package/dist/chunk-CQC6VBAF.cjs.map +1 -0
- package/dist/{chunk-6EEO3OVU.cjs → chunk-CWX77JB4.cjs} +22 -59
- package/dist/chunk-CWX77JB4.cjs.map +1 -0
- package/dist/{chunk-UGZUAYAR.js → chunk-D7PG5D5K.js} +4 -3
- package/dist/chunk-D7PG5D5K.js.map +1 -0
- package/dist/chunk-DDCIXXOO.js +9 -0
- package/dist/chunk-DDCIXXOO.js.map +1 -0
- package/dist/chunk-DDCYVIVV.cjs +44 -0
- package/dist/chunk-DDCYVIVV.cjs.map +1 -0
- package/dist/{chunk-XPCZADMT.cjs → chunk-DOVMTPKE.cjs} +89 -27
- package/dist/chunk-DOVMTPKE.cjs.map +1 -0
- package/dist/{chunk-5PNMDJ7J.js → chunk-DPNA466P.js} +14 -9
- package/dist/chunk-DPNA466P.js.map +1 -0
- package/dist/{chunk-BYPOGQWK.js → chunk-DRACN6XG.js} +6 -4
- package/dist/chunk-DRACN6XG.js.map +1 -0
- package/dist/chunk-E6TXEISH.cjs +175 -0
- package/dist/chunk-E6TXEISH.cjs.map +1 -0
- package/dist/{chunk-TKT2XHED.js → chunk-E6YZRKMM.js} +13 -12
- package/dist/chunk-E6YZRKMM.js.map +1 -0
- package/dist/{chunk-3C2RYI6L.cjs → chunk-EOJFGECD.cjs} +11 -11
- package/dist/chunk-EOJFGECD.cjs.map +1 -0
- package/dist/{chunk-XWV4JT34.js → chunk-ERZ4QPQX.js} +27 -22
- package/dist/chunk-ERZ4QPQX.js.map +1 -0
- package/dist/{chunk-DFVLCOP6.js → chunk-EZH7FNUS.js} +3 -3
- package/dist/{chunk-DFVLCOP6.js.map → chunk-EZH7FNUS.js.map} +1 -1
- package/dist/{chunk-WWFHO375.cjs → chunk-FJMPR3OH.cjs} +4 -3
- package/dist/chunk-FJMPR3OH.cjs.map +1 -0
- package/dist/chunk-FMNUSGZ4.cjs +12 -0
- package/dist/chunk-FMNUSGZ4.cjs.map +1 -0
- package/dist/{chunk-K3Q3LJY3.js → chunk-G32AO634.js} +201 -100
- package/dist/chunk-G32AO634.js.map +1 -0
- package/dist/{chunk-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
- package/dist/chunk-G3CSQLLT.js.map +1 -0
- package/dist/chunk-GNPGGLAE.cjs +212 -0
- package/dist/chunk-GNPGGLAE.cjs.map +1 -0
- package/dist/{chunk-QARBLBXT.cjs → chunk-GUUWKPTK.cjs} +7 -7
- package/dist/{chunk-QARBLBXT.cjs.map → chunk-GUUWKPTK.cjs.map} +1 -1
- package/dist/chunk-GYA4JRP5.js +31 -0
- package/dist/chunk-GYA4JRP5.js.map +1 -0
- package/dist/chunk-I6FX7AAG.js +39 -0
- package/dist/chunk-I6FX7AAG.js.map +1 -0
- package/dist/chunk-IMQKXL4E.cjs +12 -0
- package/dist/{chunk-QSXTWU4U.cjs.map → chunk-IMQKXL4E.cjs.map} +1 -1
- package/dist/chunk-J6IJARLG.js +94 -0
- package/dist/chunk-J6IJARLG.js.map +1 -0
- package/dist/{chunk-W63OVYY4.js → chunk-K34OPSJK.js} +3 -3
- package/dist/{chunk-W63OVYY4.js.map → chunk-K34OPSJK.js.map} +1 -1
- package/dist/{chunk-TGOMW4MB.cjs → chunk-KCLZHYPU.cjs} +110 -109
- package/dist/chunk-KCLZHYPU.cjs.map +1 -0
- package/dist/{chunk-XGPUQ56G.js → chunk-KFLXWVUJ.js} +4 -38
- package/dist/chunk-KFLXWVUJ.js.map +1 -0
- package/dist/{chunk-3DS7Z4T4.cjs → chunk-LZ3TVJY4.cjs} +44 -43
- package/dist/chunk-LZ3TVJY4.cjs.map +1 -0
- package/dist/{chunk-UXLSNRYL.js → chunk-MTNEGGM2.js} +4 -4
- package/dist/chunk-MTNEGGM2.js.map +1 -0
- package/dist/{chunk-IP3CGGPA.cjs → chunk-N2V3HJFV.cjs} +92 -185
- package/dist/chunk-N2V3HJFV.cjs.map +1 -0
- package/dist/chunk-NAUA4PW5.cjs +28 -0
- package/dist/chunk-NAUA4PW5.cjs.map +1 -0
- package/dist/chunk-NMQ6C6TS.cjs +61 -0
- package/dist/chunk-NMQ6C6TS.cjs.map +1 -0
- package/dist/{chunk-2N6EOBTH.cjs → chunk-NPWACFQJ.cjs} +58 -53
- package/dist/chunk-NPWACFQJ.cjs.map +1 -0
- package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
- package/dist/chunk-NT6ILURI.cjs.map +1 -0
- package/dist/chunk-NU23DUSJ.cjs +192 -0
- package/dist/chunk-NU23DUSJ.cjs.map +1 -0
- package/dist/{chunk-WOJMKB3N.cjs → chunk-NWYCOFEZ.cjs} +1677 -308
- package/dist/chunk-NWYCOFEZ.cjs.map +1 -0
- package/dist/{chunk-3GH67G4Z.cjs → chunk-O5H62ZWJ.cjs} +4 -42
- package/dist/chunk-O5H62ZWJ.cjs.map +1 -0
- package/dist/{chunk-3SLPDKHQ.js → chunk-PH4IJ3V5.js} +5 -77
- package/dist/chunk-PH4IJ3V5.js.map +1 -0
- package/dist/chunk-PWXGB77L.cjs +56 -0
- package/dist/chunk-PWXGB77L.cjs.map +1 -0
- package/dist/chunk-PZHC5GCD.js +193 -0
- package/dist/chunk-PZHC5GCD.js.map +1 -0
- package/dist/chunk-QMQLUA66.js +12 -0
- package/dist/chunk-QMQLUA66.js.map +1 -0
- package/dist/{chunk-5WWVZMVX.js → chunk-QZ7A6HBM.js} +2 -2
- package/dist/{chunk-5WWVZMVX.js.map → chunk-QZ7A6HBM.js.map} +1 -1
- package/dist/{chunk-VKGKDOKR.js → chunk-RQPRCEIO.js} +1539 -206
- package/dist/chunk-RQPRCEIO.js.map +1 -0
- package/dist/chunk-RW24SAHI.cjs +74 -0
- package/dist/chunk-RW24SAHI.cjs.map +1 -0
- package/dist/{chunk-BVRDGYXQ.cjs → chunk-SAFZ6JTI.cjs} +14 -9
- package/dist/chunk-SAFZ6JTI.cjs.map +1 -0
- package/dist/{chunk-L7HQ2OSI.js → chunk-SCTZRFW5.js} +87 -166
- package/dist/chunk-SCTZRFW5.js.map +1 -0
- package/dist/{chunk-5KPNWT6X.js → chunk-SDHV2MWU.js} +24 -45
- package/dist/chunk-SDHV2MWU.js.map +1 -0
- package/dist/chunk-SVJ5GEXW.cjs +45 -0
- package/dist/chunk-SVJ5GEXW.cjs.map +1 -0
- package/dist/chunk-SVUKGWSN.cjs +102 -0
- package/dist/chunk-SVUKGWSN.cjs.map +1 -0
- package/dist/chunk-TAUGGLNQ.js +59 -0
- package/dist/chunk-TAUGGLNQ.js.map +1 -0
- package/dist/{chunk-J4IUSYFF.js → chunk-TE5ZA4VX.js} +69 -27
- package/dist/chunk-TE5ZA4VX.js.map +1 -0
- package/dist/{chunk-A42GCBGX.cjs → chunk-TRF4EBJT.cjs} +6 -4
- package/dist/chunk-TRF4EBJT.cjs.map +1 -0
- package/dist/{chunk-KQJ54OG5.js → chunk-U4JDJKPD.js} +19 -56
- package/dist/chunk-U4JDJKPD.js.map +1 -0
- package/dist/chunk-UH2USOMG.cjs +627 -0
- package/dist/chunk-UH2USOMG.cjs.map +1 -0
- package/dist/{chunk-RCVLFTCT.js → chunk-UPXDVI3T.js} +13 -12
- package/dist/chunk-UPXDVI3T.js.map +1 -0
- package/dist/{chunk-5VQM6VWP.cjs → chunk-UWG5GX6E.cjs} +2 -2
- package/dist/{chunk-5VQM6VWP.cjs.map → chunk-UWG5GX6E.cjs.map} +1 -1
- package/dist/{chunk-3RWZPJKV.js → chunk-VBH7ZXSZ.js} +21 -78
- package/dist/chunk-VBH7ZXSZ.js.map +1 -0
- package/dist/{chunk-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
- package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
- package/dist/chunk-X4PVHAZ6.cjs +83 -0
- package/dist/chunk-X4PVHAZ6.cjs.map +1 -0
- package/dist/{chunk-UYQMBBWJ.js → chunk-X6CNEA32.js} +23 -20
- package/dist/chunk-X6CNEA32.js.map +1 -0
- package/dist/chunk-X6RDQ5NB.cjs +335 -0
- package/dist/chunk-X6RDQ5NB.cjs.map +1 -0
- package/dist/chunk-XD6X7O5R.js +184 -0
- package/dist/chunk-XD6X7O5R.js.map +1 -0
- package/dist/{chunk-DIQ3AV5W.cjs → chunk-XFY73JWD.cjs} +324 -224
- package/dist/chunk-XFY73JWD.cjs.map +1 -0
- package/dist/{chunk-DEFQM7JU.cjs → chunk-XRU7V7FF.cjs} +7 -7
- package/dist/{chunk-DEFQM7JU.cjs.map → chunk-XRU7V7FF.cjs.map} +1 -1
- package/dist/{chunk-TPF25IG6.js → chunk-XZA3Y4YH.js} +3 -3
- package/dist/{chunk-TPF25IG6.js.map → chunk-XZA3Y4YH.js.map} +1 -1
- package/dist/chunk-Y7M44XEK.js +462 -0
- package/dist/chunk-Y7M44XEK.js.map +1 -0
- package/dist/{chunk-RRSNR3TP.js → chunk-YIRLBUNN.js} +3 -3
- package/dist/{chunk-RRSNR3TP.js.map → chunk-YIRLBUNN.js.map} +1 -1
- package/dist/{chunk-IXGYRP2P.js → chunk-YJDSPA5E.js} +79 -49
- package/dist/chunk-YJDSPA5E.js.map +1 -0
- package/dist/{chunk-JBNOGRKW.cjs → chunk-YLINFV7Z.cjs} +157 -115
- package/dist/chunk-YLINFV7Z.cjs.map +1 -0
- package/dist/{chunk-QERAIDRJ.js → chunk-Z2PPIVOO.js} +82 -22
- package/dist/chunk-Z2PPIVOO.js.map +1 -0
- package/dist/chunk-Z5QHVL5U.cjs +12 -0
- package/dist/chunk-Z5QHVL5U.cjs.map +1 -0
- package/dist/chunk-ZDH3DX3C.cjs +30 -0
- package/dist/chunk-ZDH3DX3C.cjs.map +1 -0
- package/dist/chunk-ZE6NVENI.js +77 -0
- package/dist/chunk-ZE6NVENI.js.map +1 -0
- package/dist/chunk-ZHX4KEM7.cjs +49 -0
- package/dist/chunk-ZHX4KEM7.cjs.map +1 -0
- package/dist/chunk-ZKZAIX42.cjs +479 -0
- package/dist/chunk-ZKZAIX42.cjs.map +1 -0
- package/dist/{chunk-TEDRJXOG.cjs → chunk-ZY4GXIVN.cjs} +5 -5
- package/dist/{chunk-TEDRJXOG.cjs.map → chunk-ZY4GXIVN.cjs.map} +1 -1
- package/dist/core/index.cjs +117 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +225 -0
- package/dist/core/index.d.ts +225 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/{ddl-CS0KUVwB.d.ts → ddl-Dx3Z0_WC.d.ts} +3 -3
- package/dist/{ddl-BD-ZfKeX.d.cts → ddl-J6sDyABg.d.cts} +3 -3
- package/dist/define-graph-CzEvA_8F.d.cts +174 -0
- package/dist/define-graph-DRo9xpYN.d.ts +174 -0
- package/dist/{extension-types-BM2ACfYO.d.cts → extension-types-BLEVH4SG.d.cts} +1 -1
- package/dist/{extension-types-BM2ACfYO.d.ts → extension-types-BLEVH4SG.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +21 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +6 -4
- package/dist/graph-merge/index.cjs +265 -214
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +8 -89
- package/dist/graph-merge/index.d.ts +8 -89
- package/dist/graph-merge/index.js +141 -90
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-BeacbPoe.d.ts → index-BD_3TCgh.d.ts} +6 -4
- package/dist/{index-BPM59vsg.d.cts → index-BihFPsPu.d.cts} +6 -4
- package/dist/{fulltext-strategy-C27vXaeB.d.cts → index-Bq7vSPHy.d.ts} +3195 -2646
- package/dist/{fulltext-strategy-DebsMrqg.d.ts → index-CrFL_ENI.d.cts} +3195 -2646
- package/dist/index.cjs +326 -315
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -240
- package/dist/index.d.ts +59 -240
- package/dist/index.js +46 -79
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +26 -38
- package/dist/indexes/index.d.cts +6 -41
- package/dist/indexes/index.d.ts +6 -41
- package/dist/indexes/index.js +14 -10
- package/dist/interchange/index.cjs +48 -39
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +7 -8
- package/dist/interchange/index.d.ts +7 -8
- package/dist/interchange/index.js +23 -14
- package/dist/interchange/index.js.map +1 -1
- package/dist/local-options-CZ1BnIoF.d.cts +29 -0
- package/dist/local-options-CZ1BnIoF.d.ts +29 -0
- package/dist/{manager-D00_NXvT.d.ts → manager-CASfhmzV.d.ts} +4 -173
- package/dist/{manager-nU1vTJLy.d.cts → manager-nCEJiYBb.d.cts} +4 -173
- package/dist/{materialize-indexes-zK2J_flP.d.ts → materialize-indexes-D4iei4Kp.d.ts} +1 -1
- package/dist/{materialize-indexes-CuR3gAZb.d.cts → materialize-indexes-ExQ6OrAh.d.cts} +1 -1
- package/dist/{postgres-IaBA4RgE.d.ts → postgres-Cl1ZAN1G.d.ts} +1 -1
- package/dist/{postgres-YrYmPlaU.d.cts → postgres-DMgIKQU-.d.cts} +1 -1
- package/dist/postgres-execution-fKW0qRiN.d.cts +14 -0
- package/dist/postgres-execution-fKW0qRiN.d.ts +14 -0
- package/dist/profiler/index.cjs +9 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +9 -17
- package/dist/profiler/index.d.ts +9 -17
- package/dist/profiler/index.js +8 -7
- package/dist/profiler/index.js.map +1 -1
- package/dist/provenance/index.cjs +61 -55
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +34 -28
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +46 -37
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +8 -10
- package/dist/schema/index.d.ts +8 -10
- package/dist/schema/index.js +22 -13
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-BUOHPx7p.d.ts → sqlite-BDkW39aa.d.cts} +1 -1
- package/dist/{sqlite-Pp8O19WE.d.cts → sqlite-CYfhvESj.d.ts} +1 -1
- package/dist/sqlite-execution-DwbE2a9y.d.cts +32 -0
- package/dist/sqlite-execution-DwbE2a9y.d.ts +32 -0
- package/dist/{store-view-X96Rd00T.d.cts → store-view-BoHqdHjB.d.cts} +394 -1393
- package/dist/{store-view-ANL6mTph.d.ts → store-view-Ctq-3OHy.d.ts} +394 -1393
- package/dist/temporal-BC_NQV5Y.d.cts +281 -0
- package/dist/temporal-DqtOEo_B.d.ts +281 -0
- package/dist/{types-r-Zyq2Hz.d.cts → types-COq3-vMC.d.cts} +2 -2
- package/dist/{types-wsvuBgPK.d.ts → types-CUevi_D1.d.ts} +2 -2
- package/dist/{where-CJOpJj3a.d.ts → where-BdE_cYtx.d.ts} +5 -5
- package/dist/{where-K3uBP33l.d.cts → where-C92TXCzT.d.cts} +5 -5
- package/package.json +37 -6
- package/dist/chunk-27SSDCEP.cjs.map +0 -1
- package/dist/chunk-2N6EOBTH.cjs.map +0 -1
- package/dist/chunk-3C2RYI6L.cjs.map +0 -1
- package/dist/chunk-3DS7Z4T4.cjs.map +0 -1
- package/dist/chunk-3GH67G4Z.cjs.map +0 -1
- package/dist/chunk-3RWZPJKV.js.map +0 -1
- package/dist/chunk-3SLPDKHQ.js.map +0 -1
- package/dist/chunk-3XXGYU62.cjs.map +0 -1
- package/dist/chunk-44TA22QT.js +0 -1478
- package/dist/chunk-44TA22QT.js.map +0 -1
- package/dist/chunk-552KNYQJ.js.map +0 -1
- package/dist/chunk-5KEQ74YU.cjs.map +0 -1
- package/dist/chunk-5KPNWT6X.js.map +0 -1
- package/dist/chunk-5PNMDJ7J.js.map +0 -1
- package/dist/chunk-6EEO3OVU.cjs.map +0 -1
- package/dist/chunk-7YSP4V4R.cjs +0 -69
- package/dist/chunk-7YSP4V4R.cjs.map +0 -1
- package/dist/chunk-A42GCBGX.cjs.map +0 -1
- package/dist/chunk-BVRDGYXQ.cjs.map +0 -1
- package/dist/chunk-BYPOGQWK.js.map +0 -1
- package/dist/chunk-CUHM5CWJ.cjs +0 -12
- package/dist/chunk-CUHM5CWJ.cjs.map +0 -1
- package/dist/chunk-DIQ3AV5W.cjs.map +0 -1
- package/dist/chunk-EXU3RASM.js.map +0 -1
- package/dist/chunk-IP3CGGPA.cjs.map +0 -1
- package/dist/chunk-IPSVVTWT.cjs +0 -1540
- package/dist/chunk-IPSVVTWT.cjs.map +0 -1
- package/dist/chunk-IXGYRP2P.js.map +0 -1
- package/dist/chunk-J4IUSYFF.js.map +0 -1
- package/dist/chunk-JBNOGRKW.cjs.map +0 -1
- package/dist/chunk-K3Q3LJY3.js.map +0 -1
- package/dist/chunk-KQJ54OG5.js.map +0 -1
- package/dist/chunk-L7HQ2OSI.js.map +0 -1
- package/dist/chunk-M6VES7V6.js +0 -239
- package/dist/chunk-M6VES7V6.js.map +0 -1
- package/dist/chunk-NBP2WTJW.cjs.map +0 -1
- package/dist/chunk-NUIG3BCV.cjs.map +0 -1
- package/dist/chunk-NXQFATMF.cjs.map +0 -1
- package/dist/chunk-OHMP6N2J.js +0 -47
- package/dist/chunk-OHMP6N2J.js.map +0 -1
- package/dist/chunk-QERAIDRJ.js.map +0 -1
- package/dist/chunk-QSXTWU4U.cjs +0 -12
- package/dist/chunk-RCVLFTCT.js.map +0 -1
- package/dist/chunk-TGOMW4MB.cjs.map +0 -1
- package/dist/chunk-TKT2XHED.js.map +0 -1
- package/dist/chunk-UGZUAYAR.js.map +0 -1
- package/dist/chunk-UXLSNRYL.js.map +0 -1
- package/dist/chunk-UYQMBBWJ.js.map +0 -1
- package/dist/chunk-VKGKDOKR.js.map +0 -1
- package/dist/chunk-VL2V6PEN.cjs +0 -261
- package/dist/chunk-VL2V6PEN.cjs.map +0 -1
- package/dist/chunk-WOJMKB3N.cjs.map +0 -1
- package/dist/chunk-WWFHO375.cjs.map +0 -1
- package/dist/chunk-XGPUQ56G.js.map +0 -1
- package/dist/chunk-XGU7DZDA.cjs +0 -1095
- package/dist/chunk-XGU7DZDA.cjs.map +0 -1
- package/dist/chunk-XPCZADMT.cjs.map +0 -1
- package/dist/chunk-XWV4JT34.js.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ALL_META_EDGE_NAMES } from './chunk-GYA4JRP5.js';
|
|
2
|
+
import { assertJsonValue } from './chunk-TAUGGLNQ.js';
|
|
2
3
|
import { isPlainObject, compactUndefined, freezeDeep } from './chunk-ITE4IXAK.js';
|
|
3
|
-
import {
|
|
4
|
+
import { RESERVED_NODE_KEYS, RESERVED_EDGE_KEYS } from './chunk-XZA3Y4YH.js';
|
|
5
|
+
import { TypeGraphError, ConfigurationError } from './chunk-DPNA466P.js';
|
|
4
6
|
import { encodeJsonPointerSegment } from './chunk-G6Q5UM7U.js';
|
|
5
7
|
|
|
6
8
|
// src/ontology/closures.ts
|
|
@@ -274,87 +276,6 @@ var GRAPH_EXTENSION_TOP_LEVEL_KEYS = [
|
|
|
274
276
|
"indexes"
|
|
275
277
|
];
|
|
276
278
|
|
|
277
|
-
// src/core/json-value.ts
|
|
278
|
-
function assertJsonValue(value, rootLabel, ownerKind) {
|
|
279
|
-
walk(value, rootLabel, ownerKind);
|
|
280
|
-
}
|
|
281
|
-
function walk(value, path, ownerKind) {
|
|
282
|
-
if (value === null) return;
|
|
283
|
-
const valueType = typeof value;
|
|
284
|
-
if (valueType === "number") {
|
|
285
|
-
if (!Number.isFinite(value)) {
|
|
286
|
-
throwInvalid(path, describeNonFinite(value), ownerKind);
|
|
287
|
-
}
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
if (valueType === "string" || valueType === "boolean") return;
|
|
291
|
-
if (valueType === "bigint" || valueType === "function" || valueType === "symbol" || valueType === "undefined") {
|
|
292
|
-
throwInvalid(path, valueType, ownerKind);
|
|
293
|
-
}
|
|
294
|
-
if (Array.isArray(value)) {
|
|
295
|
-
for (const [index, element] of value.entries()) {
|
|
296
|
-
walk(element, `${path}[${index}]`, ownerKind);
|
|
297
|
-
}
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
if (!isPlainObject(value)) {
|
|
301
|
-
throwInvalid(path, describeNonPlain(value), ownerKind);
|
|
302
|
-
}
|
|
303
|
-
for (const [key, nested] of Object.entries(value)) {
|
|
304
|
-
walk(nested, `${path}.${key}`, ownerKind);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
function describeNonFinite(value) {
|
|
308
|
-
if (Number.isNaN(value)) return "NaN";
|
|
309
|
-
if (value === Number.POSITIVE_INFINITY) return "Infinity";
|
|
310
|
-
if (value === Number.NEGATIVE_INFINITY) return "-Infinity";
|
|
311
|
-
return "non-finite number";
|
|
312
|
-
}
|
|
313
|
-
function describeNonPlain(value) {
|
|
314
|
-
const constructorName = value?.constructor?.name;
|
|
315
|
-
if (typeof constructorName === "string" && constructorName.length > 0) {
|
|
316
|
-
return `${constructorName} instance`;
|
|
317
|
-
}
|
|
318
|
-
return "non-plain object";
|
|
319
|
-
}
|
|
320
|
-
function throwInvalid(path, kind, ownerKind) {
|
|
321
|
-
throw new ConfigurationError(
|
|
322
|
-
`${ownerKind} ${path} contains a non-JSON value (${kind}). Annotations must be JSON-serializable.`,
|
|
323
|
-
{ path, valueKind: kind },
|
|
324
|
-
{
|
|
325
|
-
suggestion: "Use only strings, numbers, booleans, null, arrays, and plain objects in annotations."
|
|
326
|
-
}
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// src/ontology/constants.ts
|
|
331
|
-
var META_EDGE_SUB_CLASS_OF = "subClassOf";
|
|
332
|
-
var META_EDGE_BROADER = "broader";
|
|
333
|
-
var META_EDGE_NARROWER = "narrower";
|
|
334
|
-
var META_EDGE_RELATED_TO = "relatedTo";
|
|
335
|
-
var META_EDGE_EQUIVALENT_TO = "equivalentTo";
|
|
336
|
-
var META_EDGE_SAME_AS = "sameAs";
|
|
337
|
-
var META_EDGE_DIFFERENT_FROM = "differentFrom";
|
|
338
|
-
var META_EDGE_DISJOINT_WITH = "disjointWith";
|
|
339
|
-
var META_EDGE_PART_OF = "partOf";
|
|
340
|
-
var META_EDGE_HAS_PART = "hasPart";
|
|
341
|
-
var META_EDGE_INVERSE_OF = "inverseOf";
|
|
342
|
-
var META_EDGE_IMPLIES = "implies";
|
|
343
|
-
var ALL_META_EDGE_NAMES = [
|
|
344
|
-
META_EDGE_SUB_CLASS_OF,
|
|
345
|
-
META_EDGE_BROADER,
|
|
346
|
-
META_EDGE_NARROWER,
|
|
347
|
-
META_EDGE_RELATED_TO,
|
|
348
|
-
META_EDGE_EQUIVALENT_TO,
|
|
349
|
-
META_EDGE_SAME_AS,
|
|
350
|
-
META_EDGE_DIFFERENT_FROM,
|
|
351
|
-
META_EDGE_DISJOINT_WITH,
|
|
352
|
-
META_EDGE_PART_OF,
|
|
353
|
-
META_EDGE_HAS_PART,
|
|
354
|
-
META_EDGE_INVERSE_OF,
|
|
355
|
-
META_EDGE_IMPLIES
|
|
356
|
-
];
|
|
357
|
-
|
|
358
279
|
// src/graph-extension/validation.ts
|
|
359
280
|
var META_EDGE_NAME_SET = new Set(ALL_META_EDGE_NAMES);
|
|
360
281
|
var SUPPORTED_PROPERTY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -482,11 +403,11 @@ function validateGraphExtension(input, options = {}) {
|
|
|
482
403
|
}
|
|
483
404
|
}
|
|
484
405
|
}
|
|
485
|
-
const version = validateVersion(documentRecord
|
|
486
|
-
const nodes = validateNodesSection(documentRecord
|
|
487
|
-
const edges = validateEdgesSection(documentRecord
|
|
406
|
+
const version = validateVersion(documentRecord["version"], issues);
|
|
407
|
+
const nodes = validateNodesSection(documentRecord["nodes"], issues, strict);
|
|
408
|
+
const edges = validateEdgesSection(documentRecord["edges"], issues, strict);
|
|
488
409
|
const ontology = validateOntologySection(
|
|
489
|
-
documentRecord
|
|
410
|
+
documentRecord["ontology"],
|
|
490
411
|
issues,
|
|
491
412
|
strict
|
|
492
413
|
);
|
|
@@ -494,7 +415,7 @@ function validateGraphExtension(input, options = {}) {
|
|
|
494
415
|
validateOntology(ontology, nodes, issues);
|
|
495
416
|
}
|
|
496
417
|
const indexes = validateIndexesSection(
|
|
497
|
-
documentRecord
|
|
418
|
+
documentRecord["indexes"],
|
|
498
419
|
issues,
|
|
499
420
|
strict
|
|
500
421
|
);
|
|
@@ -578,19 +499,19 @@ function validateNodeDocument(kindName, raw, path, issues, strict) {
|
|
|
578
499
|
);
|
|
579
500
|
}
|
|
580
501
|
const description = validateOptionalString(
|
|
581
|
-
raw
|
|
502
|
+
raw["description"],
|
|
582
503
|
`${path}/description`,
|
|
583
504
|
"`description`",
|
|
584
505
|
"INVALID_DOCUMENT_SHAPE",
|
|
585
506
|
issues
|
|
586
507
|
);
|
|
587
508
|
const annotations = validateAnnotations(
|
|
588
|
-
raw
|
|
509
|
+
raw["annotations"],
|
|
589
510
|
`${path}/annotations`,
|
|
590
511
|
`Node "${kindName}"`,
|
|
591
512
|
issues
|
|
592
513
|
);
|
|
593
|
-
const propertiesRaw = raw
|
|
514
|
+
const propertiesRaw = raw["properties"];
|
|
594
515
|
const properties = validatePropertiesMap(
|
|
595
516
|
propertiesRaw,
|
|
596
517
|
`${path}/properties`,
|
|
@@ -600,7 +521,7 @@ function validateNodeDocument(kindName, raw, path, issues, strict) {
|
|
|
600
521
|
strict
|
|
601
522
|
);
|
|
602
523
|
if (properties === void 0) return void 0;
|
|
603
|
-
const uniqueRaw = raw
|
|
524
|
+
const uniqueRaw = raw["unique"];
|
|
604
525
|
const unique = validateUniqueConstraints(
|
|
605
526
|
uniqueRaw,
|
|
606
527
|
`${path}/unique`,
|
|
@@ -672,22 +593,22 @@ function validateEdgeDocument(kindName, raw, path, issues, strict) {
|
|
|
672
593
|
);
|
|
673
594
|
}
|
|
674
595
|
const description = validateOptionalString(
|
|
675
|
-
raw
|
|
596
|
+
raw["description"],
|
|
676
597
|
`${path}/description`,
|
|
677
598
|
"`description`",
|
|
678
599
|
"INVALID_DOCUMENT_SHAPE",
|
|
679
600
|
issues
|
|
680
601
|
);
|
|
681
602
|
const annotations = validateAnnotations(
|
|
682
|
-
raw
|
|
603
|
+
raw["annotations"],
|
|
683
604
|
`${path}/annotations`,
|
|
684
605
|
`Edge "${kindName}"`,
|
|
685
606
|
issues
|
|
686
607
|
);
|
|
687
|
-
const from = validateEndpointList(raw
|
|
688
|
-
const to = validateEndpointList(raw
|
|
608
|
+
const from = validateEndpointList(raw["from"], `${path}/from`, issues);
|
|
609
|
+
const to = validateEndpointList(raw["to"], `${path}/to`, issues);
|
|
689
610
|
if (from === void 0 || to === void 0) return void 0;
|
|
690
|
-
const propertiesRaw = raw
|
|
611
|
+
const propertiesRaw = raw["properties"];
|
|
691
612
|
const properties = propertiesRaw === void 0 ? {} : validatePropertiesMap(
|
|
692
613
|
propertiesRaw,
|
|
693
614
|
`${path}/properties`,
|
|
@@ -767,9 +688,9 @@ function validateOntologySection(raw, issues, strict) {
|
|
|
767
688
|
issues
|
|
768
689
|
);
|
|
769
690
|
}
|
|
770
|
-
const metaEdge = entry
|
|
771
|
-
const from = entry
|
|
772
|
-
const to = entry
|
|
691
|
+
const metaEdge = entry["metaEdge"];
|
|
692
|
+
const from = entry["from"];
|
|
693
|
+
const to = entry["to"];
|
|
773
694
|
if (typeof metaEdge !== "string" || !META_EDGE_NAME_SET.has(metaEdge)) {
|
|
774
695
|
issues.push({
|
|
775
696
|
path: `${path}/metaEdge`,
|
|
@@ -952,7 +873,7 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
952
873
|
});
|
|
953
874
|
return void 0;
|
|
954
875
|
}
|
|
955
|
-
const entity = raw
|
|
876
|
+
const entity = raw["entity"];
|
|
956
877
|
if (entity !== "node" && entity !== "edge") {
|
|
957
878
|
issues.push({
|
|
958
879
|
path: `${path}/entity`,
|
|
@@ -971,7 +892,7 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
971
892
|
issues
|
|
972
893
|
);
|
|
973
894
|
}
|
|
974
|
-
if (typeof raw
|
|
895
|
+
if (typeof raw["kind"] !== "string" || !isValidKindName(raw["kind"])) {
|
|
975
896
|
issues.push({
|
|
976
897
|
path: `${path}/kind`,
|
|
977
898
|
message: "Index `kind` must be a non-empty kind name matching /^[A-Za-z_][A-Za-z0-9_]*$/.",
|
|
@@ -979,19 +900,19 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
979
900
|
});
|
|
980
901
|
return void 0;
|
|
981
902
|
}
|
|
982
|
-
const fields = validateStringList(raw
|
|
903
|
+
const fields = validateStringList(raw["fields"], `${path}/fields`, issues, {
|
|
983
904
|
allowEmpty: false,
|
|
984
905
|
label: "fields",
|
|
985
906
|
emptyCode: "EMPTY_INDEX_FIELDS"
|
|
986
907
|
});
|
|
987
908
|
if (fields === void 0) return void 0;
|
|
988
909
|
const coveringFields = validateStringList(
|
|
989
|
-
raw
|
|
910
|
+
raw["coveringFields"],
|
|
990
911
|
`${path}/coveringFields`,
|
|
991
912
|
issues,
|
|
992
913
|
{ allowEmpty: true, label: "coveringFields" }
|
|
993
914
|
);
|
|
994
|
-
if (raw
|
|
915
|
+
if (raw["unique"] !== void 0 && typeof raw["unique"] !== "boolean") {
|
|
995
916
|
issues.push({
|
|
996
917
|
path: `${path}/unique`,
|
|
997
918
|
message: "Index `unique` must be a boolean.",
|
|
@@ -1000,8 +921,8 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1000
921
|
return void 0;
|
|
1001
922
|
}
|
|
1002
923
|
let name;
|
|
1003
|
-
if (raw
|
|
1004
|
-
if (typeof raw
|
|
924
|
+
if (raw["name"] !== void 0) {
|
|
925
|
+
if (typeof raw["name"] !== "string" || raw["name"].length === 0) {
|
|
1005
926
|
issues.push({
|
|
1006
927
|
path: `${path}/name`,
|
|
1007
928
|
message: "Index `name` must be a non-empty string.",
|
|
@@ -1009,10 +930,10 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1009
930
|
});
|
|
1010
931
|
return void 0;
|
|
1011
932
|
}
|
|
1012
|
-
name = raw
|
|
933
|
+
name = raw["name"];
|
|
1013
934
|
}
|
|
1014
935
|
const scopeResult = validateOptionalLiteral(
|
|
1015
|
-
raw
|
|
936
|
+
raw["scope"],
|
|
1016
937
|
INDEX_SCOPE_VALUES,
|
|
1017
938
|
`${path}/scope`,
|
|
1018
939
|
"Index `scope`",
|
|
@@ -1022,7 +943,7 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1022
943
|
if (!scopeResult.ok) return void 0;
|
|
1023
944
|
const scope = scopeResult.value;
|
|
1024
945
|
const where = validateGraphExtensionIndexWhere(
|
|
1025
|
-
raw
|
|
946
|
+
raw["where"],
|
|
1026
947
|
`${path}/where`,
|
|
1027
948
|
issues,
|
|
1028
949
|
strict
|
|
@@ -1030,17 +951,17 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1030
951
|
if (entity === "node") {
|
|
1031
952
|
return compactUndefined({
|
|
1032
953
|
entity: "node",
|
|
1033
|
-
kind: raw
|
|
954
|
+
kind: raw["kind"],
|
|
1034
955
|
name,
|
|
1035
956
|
fields,
|
|
1036
957
|
coveringFields,
|
|
1037
|
-
unique: raw
|
|
958
|
+
unique: raw["unique"],
|
|
1038
959
|
scope,
|
|
1039
960
|
where
|
|
1040
961
|
});
|
|
1041
962
|
}
|
|
1042
963
|
const directionResult = validateOptionalLiteral(
|
|
1043
|
-
raw
|
|
964
|
+
raw["direction"],
|
|
1044
965
|
EDGE_INDEX_DIRECTION_VALUES,
|
|
1045
966
|
`${path}/direction`,
|
|
1046
967
|
"Edge index `direction`",
|
|
@@ -1051,12 +972,12 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1051
972
|
const direction = directionResult.value;
|
|
1052
973
|
return compactUndefined({
|
|
1053
974
|
entity: "edge",
|
|
1054
|
-
kind: raw
|
|
975
|
+
kind: raw["kind"],
|
|
1055
976
|
name,
|
|
1056
977
|
direction,
|
|
1057
978
|
fields,
|
|
1058
979
|
coveringFields,
|
|
1059
|
-
unique: raw
|
|
980
|
+
unique: raw["unique"],
|
|
1060
981
|
scope,
|
|
1061
982
|
where
|
|
1062
983
|
});
|
|
@@ -1131,7 +1052,7 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
|
|
|
1131
1052
|
issues
|
|
1132
1053
|
);
|
|
1133
1054
|
}
|
|
1134
|
-
if (typeof raw
|
|
1055
|
+
if (typeof raw["field"] !== "string" || raw["field"].length === 0) {
|
|
1135
1056
|
issues.push({
|
|
1136
1057
|
path: `${path}/field`,
|
|
1137
1058
|
message: "`where.field` must be a non-empty string.",
|
|
@@ -1139,7 +1060,7 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
|
|
|
1139
1060
|
});
|
|
1140
1061
|
return void 0;
|
|
1141
1062
|
}
|
|
1142
|
-
if (typeof raw
|
|
1063
|
+
if (typeof raw["op"] !== "string" || !RUNTIME_INDEX_WHERE_OPS.has(raw["op"])) {
|
|
1143
1064
|
issues.push({
|
|
1144
1065
|
path: `${path}/op`,
|
|
1145
1066
|
message: '`where.op` must be "isNull" or "isNotNull" in v1.',
|
|
@@ -1148,8 +1069,8 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
|
|
|
1148
1069
|
return void 0;
|
|
1149
1070
|
}
|
|
1150
1071
|
return Object.freeze({
|
|
1151
|
-
field: raw
|
|
1152
|
-
op: raw
|
|
1072
|
+
field: raw["field"],
|
|
1073
|
+
op: raw["op"]
|
|
1153
1074
|
});
|
|
1154
1075
|
}
|
|
1155
1076
|
function validatePropertiesMap(raw, path, ownerType, ownerName, issues, strict) {
|
|
@@ -1203,7 +1124,7 @@ function validateProperty(raw, path, depth, issues, strict) {
|
|
|
1203
1124
|
return void 0;
|
|
1204
1125
|
}
|
|
1205
1126
|
const property = raw;
|
|
1206
|
-
const type = property
|
|
1127
|
+
const type = property["type"];
|
|
1207
1128
|
if (typeof type !== "string" || !SUPPORTED_PROPERTY_TYPES.has(type)) {
|
|
1208
1129
|
issues.push({
|
|
1209
1130
|
path: `${path}/type`,
|
|
@@ -1237,14 +1158,14 @@ function validateProperty(raw, path, depth, issues, strict) {
|
|
|
1237
1158
|
}
|
|
1238
1159
|
function validateStringProperty(raw, path, issues, strict) {
|
|
1239
1160
|
const minLength = validateNonNegativeInteger(
|
|
1240
|
-
raw
|
|
1161
|
+
raw["minLength"],
|
|
1241
1162
|
`${path}/minLength`,
|
|
1242
1163
|
"string.minLength",
|
|
1243
1164
|
"INVALID_LENGTH_BOUNDS",
|
|
1244
1165
|
issues
|
|
1245
1166
|
);
|
|
1246
1167
|
const maxLength = validateNonNegativeInteger(
|
|
1247
|
-
raw
|
|
1168
|
+
raw["maxLength"],
|
|
1248
1169
|
`${path}/maxLength`,
|
|
1249
1170
|
"string.maxLength",
|
|
1250
1171
|
"INVALID_LENGTH_BOUNDS",
|
|
@@ -1258,11 +1179,11 @@ function validateStringProperty(raw, path, issues, strict) {
|
|
|
1258
1179
|
});
|
|
1259
1180
|
}
|
|
1260
1181
|
let pattern;
|
|
1261
|
-
if (raw
|
|
1262
|
-
if (typeof raw
|
|
1182
|
+
if (raw["pattern"] !== void 0) {
|
|
1183
|
+
if (typeof raw["pattern"] === "string") {
|
|
1263
1184
|
try {
|
|
1264
|
-
new RegExp(raw
|
|
1265
|
-
pattern = raw
|
|
1185
|
+
new RegExp(raw["pattern"]);
|
|
1186
|
+
pattern = raw["pattern"];
|
|
1266
1187
|
} catch (error) {
|
|
1267
1188
|
issues.push({
|
|
1268
1189
|
path: `${path}/pattern`,
|
|
@@ -1279,19 +1200,19 @@ function validateStringProperty(raw, path, issues, strict) {
|
|
|
1279
1200
|
}
|
|
1280
1201
|
}
|
|
1281
1202
|
let format;
|
|
1282
|
-
if (raw
|
|
1283
|
-
if (typeof raw
|
|
1203
|
+
if (raw["format"] !== void 0) {
|
|
1204
|
+
if (typeof raw["format"] !== "string") {
|
|
1284
1205
|
issues.push({
|
|
1285
1206
|
path: `${path}/format`,
|
|
1286
|
-
message: `String format must be a string; received ${describeUnknownValue(raw
|
|
1207
|
+
message: `String format must be a string; received ${describeUnknownValue(raw["format"])}.`,
|
|
1287
1208
|
code: "INVALID_PROPERTY_REFINEMENT"
|
|
1288
1209
|
});
|
|
1289
|
-
} else if (SUPPORTED_STRING_FORMATS.has(raw
|
|
1290
|
-
format = raw
|
|
1210
|
+
} else if (SUPPORTED_STRING_FORMATS.has(raw["format"])) {
|
|
1211
|
+
format = raw["format"];
|
|
1291
1212
|
} else if (strict) {
|
|
1292
1213
|
issues.push({
|
|
1293
1214
|
path: `${path}/format`,
|
|
1294
|
-
message: `Unsupported string format "${raw
|
|
1215
|
+
message: `Unsupported string format "${raw["format"]}". Supported: ${[...SUPPORTED_STRING_FORMATS].join(", ")}.`,
|
|
1295
1216
|
code: "UNSUPPORTED_STRING_FORMAT"
|
|
1296
1217
|
});
|
|
1297
1218
|
}
|
|
@@ -1322,14 +1243,14 @@ function validateStringProperty(raw, path, issues, strict) {
|
|
|
1322
1243
|
}
|
|
1323
1244
|
function validateNumberProperty(raw, path, issues) {
|
|
1324
1245
|
const min = validateOptionalFiniteNumber(
|
|
1325
|
-
raw
|
|
1246
|
+
raw["min"],
|
|
1326
1247
|
`${path}/min`,
|
|
1327
1248
|
"`min`",
|
|
1328
1249
|
"INVALID_NUMBER_BOUNDS",
|
|
1329
1250
|
issues
|
|
1330
1251
|
);
|
|
1331
1252
|
const max = validateOptionalFiniteNumber(
|
|
1332
|
-
raw
|
|
1253
|
+
raw["max"],
|
|
1333
1254
|
`${path}/max`,
|
|
1334
1255
|
"`max`",
|
|
1335
1256
|
"INVALID_NUMBER_BOUNDS",
|
|
@@ -1343,7 +1264,7 @@ function validateNumberProperty(raw, path, issues) {
|
|
|
1343
1264
|
});
|
|
1344
1265
|
}
|
|
1345
1266
|
const int = validateOptionalBoolean(
|
|
1346
|
-
raw
|
|
1267
|
+
raw["int"],
|
|
1347
1268
|
`${path}/int`,
|
|
1348
1269
|
"`int`",
|
|
1349
1270
|
"INVALID_PROPERTY_REFINEMENT",
|
|
@@ -1379,7 +1300,7 @@ function validateBooleanProperty(raw, path, issues) {
|
|
|
1379
1300
|
return finalizeProperty("boolean", {}, modifiers);
|
|
1380
1301
|
}
|
|
1381
1302
|
function validateEnumProperty(raw, path, issues) {
|
|
1382
|
-
const valuesRaw = raw
|
|
1303
|
+
const valuesRaw = raw["values"];
|
|
1383
1304
|
if (!Array.isArray(valuesRaw) || valuesRaw.length === 0) {
|
|
1384
1305
|
issues.push({
|
|
1385
1306
|
path: `${path}/values`,
|
|
@@ -1415,7 +1336,7 @@ function validateEnumProperty(raw, path, issues) {
|
|
|
1415
1336
|
return finalizeProperty("enum", { values }, modifiers);
|
|
1416
1337
|
}
|
|
1417
1338
|
function validateArrayProperty(raw, path, depth, issues, strict) {
|
|
1418
|
-
const itemsRaw = raw
|
|
1339
|
+
const itemsRaw = raw["items"];
|
|
1419
1340
|
if (itemsRaw === void 0) {
|
|
1420
1341
|
issues.push({
|
|
1421
1342
|
path: `${path}/items`,
|
|
@@ -1432,7 +1353,7 @@ function validateArrayProperty(raw, path, depth, issues, strict) {
|
|
|
1432
1353
|
});
|
|
1433
1354
|
return void 0;
|
|
1434
1355
|
}
|
|
1435
|
-
const itemType = itemsRaw
|
|
1356
|
+
const itemType = itemsRaw["type"];
|
|
1436
1357
|
if (itemType === "array") {
|
|
1437
1358
|
issues.push({
|
|
1438
1359
|
path: `${path}/items`,
|
|
@@ -1469,7 +1390,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
|
|
|
1469
1390
|
});
|
|
1470
1391
|
return void 0;
|
|
1471
1392
|
}
|
|
1472
|
-
const propertiesRaw = raw
|
|
1393
|
+
const propertiesRaw = raw["properties"];
|
|
1473
1394
|
if (!isPlainObject(propertiesRaw)) {
|
|
1474
1395
|
issues.push({
|
|
1475
1396
|
path: `${path}/properties`,
|
|
@@ -1498,7 +1419,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
|
|
|
1498
1419
|
});
|
|
1499
1420
|
continue;
|
|
1500
1421
|
}
|
|
1501
|
-
const fieldType = value
|
|
1422
|
+
const fieldType = value["type"];
|
|
1502
1423
|
if (fieldType === "object") {
|
|
1503
1424
|
issues.push({
|
|
1504
1425
|
path: fieldPath,
|
|
@@ -1532,23 +1453,23 @@ function finalizeProperty(type, specific, modifiers) {
|
|
|
1532
1453
|
function validatePropertyModifiers(raw, path, propertyType, issues) {
|
|
1533
1454
|
const issuesAtEntry = issues.length;
|
|
1534
1455
|
const optional = validateOptionalBoolean(
|
|
1535
|
-
raw
|
|
1456
|
+
raw["optional"],
|
|
1536
1457
|
`${path}/optional`,
|
|
1537
1458
|
"`optional`",
|
|
1538
1459
|
"INVALID_PROPERTY_REFINEMENT",
|
|
1539
1460
|
issues
|
|
1540
1461
|
);
|
|
1541
1462
|
let searchable;
|
|
1542
|
-
if (raw
|
|
1463
|
+
if (raw["searchable"] !== void 0) {
|
|
1543
1464
|
if (propertyType !== "string") {
|
|
1544
1465
|
issues.push({
|
|
1545
1466
|
path: `${path}/searchable`,
|
|
1546
1467
|
message: `\`searchable\` is only valid on string properties (got "${propertyType}").`,
|
|
1547
1468
|
code: "INVALID_MODIFIER_TARGET"
|
|
1548
1469
|
});
|
|
1549
|
-
} else if (isPlainObject(raw
|
|
1550
|
-
const searchableRaw = raw
|
|
1551
|
-
const language = searchableRaw
|
|
1470
|
+
} else if (isPlainObject(raw["searchable"])) {
|
|
1471
|
+
const searchableRaw = raw["searchable"];
|
|
1472
|
+
const language = searchableRaw["language"];
|
|
1552
1473
|
if (language === void 0) {
|
|
1553
1474
|
searchable = {};
|
|
1554
1475
|
} else {
|
|
@@ -1571,18 +1492,18 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
|
|
|
1571
1492
|
}
|
|
1572
1493
|
}
|
|
1573
1494
|
let embedding;
|
|
1574
|
-
if (raw
|
|
1495
|
+
if (raw["embedding"] !== void 0) {
|
|
1575
1496
|
if (propertyType === "array") {
|
|
1576
|
-
const itemsRaw = raw
|
|
1577
|
-
const itemType = isPlainObject(itemsRaw) ? itemsRaw
|
|
1497
|
+
const itemsRaw = raw["items"];
|
|
1498
|
+
const itemType = isPlainObject(itemsRaw) ? itemsRaw["type"] : void 0;
|
|
1578
1499
|
if (itemType !== "number") {
|
|
1579
1500
|
issues.push({
|
|
1580
1501
|
path: `${path}/embedding`,
|
|
1581
1502
|
message: '`embedding` requires `array.items.type === "number"`.',
|
|
1582
1503
|
code: "INVALID_MODIFIER_TARGET"
|
|
1583
1504
|
});
|
|
1584
|
-
} else if (isPlainObject(raw
|
|
1585
|
-
const dim = raw
|
|
1505
|
+
} else if (isPlainObject(raw["embedding"])) {
|
|
1506
|
+
const dim = raw["embedding"]["dimensions"];
|
|
1586
1507
|
if (typeof dim !== "number" || !Number.isInteger(dim) || dim <= 0) {
|
|
1587
1508
|
issues.push({
|
|
1588
1509
|
path: `${path}/embedding/dimensions`,
|
|
@@ -1620,9 +1541,9 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
|
|
|
1620
1541
|
}
|
|
1621
1542
|
}
|
|
1622
1543
|
let description;
|
|
1623
|
-
if (raw
|
|
1624
|
-
if (typeof raw
|
|
1625
|
-
description = raw
|
|
1544
|
+
if (raw["description"] !== void 0) {
|
|
1545
|
+
if (typeof raw["description"] === "string") {
|
|
1546
|
+
description = raw["description"];
|
|
1626
1547
|
} else {
|
|
1627
1548
|
issues.push({
|
|
1628
1549
|
path: `${path}/description`,
|
|
@@ -1672,7 +1593,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1672
1593
|
);
|
|
1673
1594
|
}
|
|
1674
1595
|
const constraint = entry;
|
|
1675
|
-
const name = constraint
|
|
1596
|
+
const name = constraint["name"];
|
|
1676
1597
|
if (typeof name !== "string" || name.length === 0) {
|
|
1677
1598
|
issues.push({
|
|
1678
1599
|
path: `${constraintPath}/name`,
|
|
@@ -1690,7 +1611,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1690
1611
|
continue;
|
|
1691
1612
|
}
|
|
1692
1613
|
names.add(name);
|
|
1693
|
-
const fieldsRaw = constraint
|
|
1614
|
+
const fieldsRaw = constraint["fields"];
|
|
1694
1615
|
if (!Array.isArray(fieldsRaw) || fieldsRaw.length === 0) {
|
|
1695
1616
|
issues.push({
|
|
1696
1617
|
path: `${constraintPath}/fields`,
|
|
@@ -1735,7 +1656,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1735
1656
|
}
|
|
1736
1657
|
if (!fieldsValid) continue;
|
|
1737
1658
|
const scopeResult = validateOptionalLiteral(
|
|
1738
|
-
constraint
|
|
1659
|
+
constraint["scope"],
|
|
1739
1660
|
["kind", "kindWithSubClasses"],
|
|
1740
1661
|
`${constraintPath}/scope`,
|
|
1741
1662
|
"Unique constraint `scope`",
|
|
@@ -1745,7 +1666,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1745
1666
|
if (!scopeResult.ok) continue;
|
|
1746
1667
|
const scope = scopeResult.value;
|
|
1747
1668
|
const collationResult = validateOptionalLiteral(
|
|
1748
|
-
constraint
|
|
1669
|
+
constraint["collation"],
|
|
1749
1670
|
["binary", "caseInsensitive"],
|
|
1750
1671
|
`${constraintPath}/collation`,
|
|
1751
1672
|
"Unique constraint `collation`",
|
|
@@ -1754,14 +1675,14 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1754
1675
|
);
|
|
1755
1676
|
if (!collationResult.ok) continue;
|
|
1756
1677
|
const collation = collationResult.value;
|
|
1757
|
-
const where = constraint
|
|
1758
|
-
constraint
|
|
1678
|
+
const where = constraint["where"] === void 0 ? void 0 : validateUniqueWhere(
|
|
1679
|
+
constraint["where"],
|
|
1759
1680
|
`${constraintPath}/where`,
|
|
1760
1681
|
properties,
|
|
1761
1682
|
issues,
|
|
1762
1683
|
strict
|
|
1763
1684
|
);
|
|
1764
|
-
if (constraint
|
|
1685
|
+
if (constraint["where"] !== void 0 && where === void 0) continue;
|
|
1765
1686
|
result.push(
|
|
1766
1687
|
compactUndefined({
|
|
1767
1688
|
name,
|
|
@@ -1793,8 +1714,8 @@ function validateUniqueWhere(raw, path, properties, issues, strict) {
|
|
|
1793
1714
|
issues
|
|
1794
1715
|
);
|
|
1795
1716
|
}
|
|
1796
|
-
const field = raw
|
|
1797
|
-
const op = raw
|
|
1717
|
+
const field = raw["field"];
|
|
1718
|
+
const op = raw["op"];
|
|
1798
1719
|
if (typeof field !== "string" || field.length === 0) {
|
|
1799
1720
|
issues.push({
|
|
1800
1721
|
path: `${path}/field`,
|
|
@@ -1835,7 +1756,7 @@ function validateAnnotations(raw, path, ownerLabel, issues) {
|
|
|
1835
1756
|
assertJsonValue(raw, "annotations", ownerLabel);
|
|
1836
1757
|
} catch (error) {
|
|
1837
1758
|
if (error instanceof ConfigurationError) {
|
|
1838
|
-
const detailPath = error.details
|
|
1759
|
+
const detailPath = error.details["path"];
|
|
1839
1760
|
const annotationPath = typeof detailPath === "string" ? `${path}/${detailPath.replace(/^annotations\.?/, "").replaceAll(".", "/")}` : path;
|
|
1840
1761
|
issues.push({
|
|
1841
1762
|
path: annotationPath,
|
|
@@ -1921,6 +1842,6 @@ function freezeDocument(input) {
|
|
|
1921
1842
|
);
|
|
1922
1843
|
}
|
|
1923
1844
|
|
|
1924
|
-
export {
|
|
1925
|
-
//# sourceMappingURL=chunk-
|
|
1926
|
-
//# sourceMappingURL=chunk-
|
|
1845
|
+
export { CURRENT_GRAPH_EXTENSION_VERSION, GRAPH_EXTENSION_ISSUE_CODES, GRAPH_EXTENSION_TOP_LEVEL_KEYS, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, INCOMPATIBLE_CHANGE_TYPES, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, computeTransitiveClosure, err, invertClosure, isErr, isOk, isReachable, ok, unwrap, validateGraphExtension };
|
|
1846
|
+
//# sourceMappingURL=chunk-SCTZRFW5.js.map
|
|
1847
|
+
//# sourceMappingURL=chunk-SCTZRFW5.js.map
|