@nicia-ai/typegraph 0.37.1 → 0.39.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-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-RCVLFTCT.js → chunk-3SK4SVTW.js} +13 -12
- package/dist/chunk-3SK4SVTW.js.map +1 -0
- package/dist/chunk-3YFDFOYB.cjs +192 -0
- package/dist/chunk-3YFDFOYB.cjs.map +1 -0
- package/dist/{chunk-WOJMKB3N.cjs → chunk-5ELKD2FQ.cjs} +1677 -308
- package/dist/chunk-5ELKD2FQ.cjs.map +1 -0
- package/dist/{chunk-5AVRFNP4.cjs → chunk-6SRLCSAV.cjs} +3012 -1513
- package/dist/chunk-6SRLCSAV.cjs.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-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-GA4TT3DH.js → chunk-CBK2IVI2.js} +1999 -503
- package/dist/chunk-CBK2IVI2.js.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-UV3WP5WZ.js → chunk-DOKUXLFH.js} +61 -29
- package/dist/chunk-DOKUXLFH.js.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-TGOMW4MB.cjs → chunk-E2Q7SP2K.cjs} +110 -109
- package/dist/chunk-E2Q7SP2K.cjs.map +1 -0
- package/dist/chunk-E6TXEISH.cjs +175 -0
- package/dist/chunk-E6TXEISH.cjs.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-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
- package/dist/chunk-G3CSQLLT.js.map +1 -0
- package/dist/{chunk-EJYMTO3K.cjs → chunk-GKQU44SQ.cjs} +150 -118
- package/dist/chunk-GKQU44SQ.cjs.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-3GH67G4Z.cjs → chunk-HP6LWBLB.cjs} +16 -42
- package/dist/chunk-HP6LWBLB.cjs.map +1 -0
- package/dist/{chunk-NXQFATMF.cjs → chunk-HTQOBY75.cjs} +153 -123
- package/dist/chunk-HTQOBY75.cjs.map +1 -0
- package/dist/chunk-I6FX7AAG.js +39 -0
- package/dist/chunk-I6FX7AAG.js.map +1 -0
- package/dist/{chunk-VKGKDOKR.js → chunk-IFDXG2YJ.js} +1539 -206
- package/dist/chunk-IFDXG2YJ.js.map +1 -0
- package/dist/{chunk-IXGYRP2P.js → chunk-IFRPHG7O.js} +79 -49
- package/dist/chunk-IFRPHG7O.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-3DS7Z4T4.cjs → chunk-JD2YC62H.cjs} +44 -43
- package/dist/chunk-JD2YC62H.cjs.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-KAFXPB2L.js +184 -0
- package/dist/chunk-KAFXPB2L.js.map +1 -0
- package/dist/chunk-KIZSHRUI.cjs +49 -0
- package/dist/chunk-KIZSHRUI.cjs.map +1 -0
- package/dist/{chunk-K3Q3LJY3.js → chunk-KXFUQNF2.js} +201 -100
- package/dist/chunk-KXFUQNF2.js.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-TKT2XHED.js → chunk-NQBYTLPW.js} +13 -12
- package/dist/chunk-NQBYTLPW.js.map +1 -0
- package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
- package/dist/chunk-NT6ILURI.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-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-3RWZPJKV.js → chunk-SU7VQOJ3.js} +21 -78
- package/dist/chunk-SU7VQOJ3.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-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-XGPUQ56G.js → chunk-UUIBACKJ.js} +15 -38
- package/dist/chunk-UUIBACKJ.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-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
- package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
- package/dist/{chunk-NUIG3BCV.cjs → chunk-VXAFOF6Z.cjs} +93 -155
- package/dist/chunk-VXAFOF6Z.cjs.map +1 -0
- 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-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-DIQ3AV5W.cjs → chunk-Y6UA55YS.cjs} +324 -224
- package/dist/chunk-Y6UA55YS.cjs.map +1 -0
- 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-YPUNPG2T.js +47 -0
- package/dist/chunk-YPUNPG2T.js.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-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 +267 -218
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +17 -93
- package/dist/graph-merge/index.d.ts +17 -93
- package/dist/graph-merge/index.js +143 -94
- 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-BJd6Vwpt.d.cts} +427 -1404
- package/dist/{store-view-ANL6mTph.d.ts → store-view-CLIhwMMX.d.ts} +427 -1404
- 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-5AVRFNP4.cjs.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-EJYMTO3K.cjs.map +0 -1
- package/dist/chunk-EXU3RASM.js.map +0 -1
- package/dist/chunk-GA4TT3DH.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-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-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-UV3WP5WZ.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,8 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSVJ5GEXW_cjs = require('./chunk-SVJ5GEXW.cjs');
|
|
4
|
+
var chunkNMQ6C6TS_cjs = require('./chunk-NMQ6C6TS.cjs');
|
|
4
5
|
var chunkDI74SMXS_cjs = require('./chunk-DI74SMXS.cjs');
|
|
5
|
-
var
|
|
6
|
+
var chunkXRU7V7FF_cjs = require('./chunk-XRU7V7FF.cjs');
|
|
7
|
+
var chunkSAFZ6JTI_cjs = require('./chunk-SAFZ6JTI.cjs');
|
|
6
8
|
var chunkTDXIBCGY_cjs = require('./chunk-TDXIBCGY.cjs');
|
|
7
9
|
|
|
8
10
|
// src/ontology/closures.ts
|
|
@@ -85,7 +87,7 @@ var GRAPH_EXTENSION_ISSUE_CODES = [
|
|
|
85
87
|
"EMPTY_INDEX_FIELDS",
|
|
86
88
|
"UNKNOWN_PROPERTY_KEY"
|
|
87
89
|
];
|
|
88
|
-
var GraphExtensionError = class extends
|
|
90
|
+
var GraphExtensionError = class extends chunkSAFZ6JTI_cjs.TypeGraphError {
|
|
89
91
|
constructor(spec) {
|
|
90
92
|
super(spec.message, spec.code, {
|
|
91
93
|
details: spec.details,
|
|
@@ -276,89 +278,8 @@ var GRAPH_EXTENSION_TOP_LEVEL_KEYS = [
|
|
|
276
278
|
"indexes"
|
|
277
279
|
];
|
|
278
280
|
|
|
279
|
-
// src/core/json-value.ts
|
|
280
|
-
function assertJsonValue(value, rootLabel, ownerKind) {
|
|
281
|
-
walk(value, rootLabel, ownerKind);
|
|
282
|
-
}
|
|
283
|
-
function walk(value, path, ownerKind) {
|
|
284
|
-
if (value === null) return;
|
|
285
|
-
const valueType = typeof value;
|
|
286
|
-
if (valueType === "number") {
|
|
287
|
-
if (!Number.isFinite(value)) {
|
|
288
|
-
throwInvalid(path, describeNonFinite(value), ownerKind);
|
|
289
|
-
}
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
if (valueType === "string" || valueType === "boolean") return;
|
|
293
|
-
if (valueType === "bigint" || valueType === "function" || valueType === "symbol" || valueType === "undefined") {
|
|
294
|
-
throwInvalid(path, valueType, ownerKind);
|
|
295
|
-
}
|
|
296
|
-
if (Array.isArray(value)) {
|
|
297
|
-
for (const [index, element] of value.entries()) {
|
|
298
|
-
walk(element, `${path}[${index}]`, ownerKind);
|
|
299
|
-
}
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
if (!chunkDI74SMXS_cjs.isPlainObject(value)) {
|
|
303
|
-
throwInvalid(path, describeNonPlain(value), ownerKind);
|
|
304
|
-
}
|
|
305
|
-
for (const [key, nested] of Object.entries(value)) {
|
|
306
|
-
walk(nested, `${path}.${key}`, ownerKind);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
function describeNonFinite(value) {
|
|
310
|
-
if (Number.isNaN(value)) return "NaN";
|
|
311
|
-
if (value === Number.POSITIVE_INFINITY) return "Infinity";
|
|
312
|
-
if (value === Number.NEGATIVE_INFINITY) return "-Infinity";
|
|
313
|
-
return "non-finite number";
|
|
314
|
-
}
|
|
315
|
-
function describeNonPlain(value) {
|
|
316
|
-
const constructorName = value?.constructor?.name;
|
|
317
|
-
if (typeof constructorName === "string" && constructorName.length > 0) {
|
|
318
|
-
return `${constructorName} instance`;
|
|
319
|
-
}
|
|
320
|
-
return "non-plain object";
|
|
321
|
-
}
|
|
322
|
-
function throwInvalid(path, kind, ownerKind) {
|
|
323
|
-
throw new chunkBVRDGYXQ_cjs.ConfigurationError(
|
|
324
|
-
`${ownerKind} ${path} contains a non-JSON value (${kind}). Annotations must be JSON-serializable.`,
|
|
325
|
-
{ path, valueKind: kind },
|
|
326
|
-
{
|
|
327
|
-
suggestion: "Use only strings, numbers, booleans, null, arrays, and plain objects in annotations."
|
|
328
|
-
}
|
|
329
|
-
);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
// src/ontology/constants.ts
|
|
333
|
-
var META_EDGE_SUB_CLASS_OF = "subClassOf";
|
|
334
|
-
var META_EDGE_BROADER = "broader";
|
|
335
|
-
var META_EDGE_NARROWER = "narrower";
|
|
336
|
-
var META_EDGE_RELATED_TO = "relatedTo";
|
|
337
|
-
var META_EDGE_EQUIVALENT_TO = "equivalentTo";
|
|
338
|
-
var META_EDGE_SAME_AS = "sameAs";
|
|
339
|
-
var META_EDGE_DIFFERENT_FROM = "differentFrom";
|
|
340
|
-
var META_EDGE_DISJOINT_WITH = "disjointWith";
|
|
341
|
-
var META_EDGE_PART_OF = "partOf";
|
|
342
|
-
var META_EDGE_HAS_PART = "hasPart";
|
|
343
|
-
var META_EDGE_INVERSE_OF = "inverseOf";
|
|
344
|
-
var META_EDGE_IMPLIES = "implies";
|
|
345
|
-
var ALL_META_EDGE_NAMES = [
|
|
346
|
-
META_EDGE_SUB_CLASS_OF,
|
|
347
|
-
META_EDGE_BROADER,
|
|
348
|
-
META_EDGE_NARROWER,
|
|
349
|
-
META_EDGE_RELATED_TO,
|
|
350
|
-
META_EDGE_EQUIVALENT_TO,
|
|
351
|
-
META_EDGE_SAME_AS,
|
|
352
|
-
META_EDGE_DIFFERENT_FROM,
|
|
353
|
-
META_EDGE_DISJOINT_WITH,
|
|
354
|
-
META_EDGE_PART_OF,
|
|
355
|
-
META_EDGE_HAS_PART,
|
|
356
|
-
META_EDGE_INVERSE_OF,
|
|
357
|
-
META_EDGE_IMPLIES
|
|
358
|
-
];
|
|
359
|
-
|
|
360
281
|
// src/graph-extension/validation.ts
|
|
361
|
-
var META_EDGE_NAME_SET = new Set(ALL_META_EDGE_NAMES);
|
|
282
|
+
var META_EDGE_NAME_SET = new Set(chunkSVJ5GEXW_cjs.ALL_META_EDGE_NAMES);
|
|
362
283
|
var SUPPORTED_PROPERTY_TYPES = /* @__PURE__ */ new Set([
|
|
363
284
|
"string",
|
|
364
285
|
"number",
|
|
@@ -484,11 +405,11 @@ function validateGraphExtension(input, options = {}) {
|
|
|
484
405
|
}
|
|
485
406
|
}
|
|
486
407
|
}
|
|
487
|
-
const version = validateVersion(documentRecord
|
|
488
|
-
const nodes = validateNodesSection(documentRecord
|
|
489
|
-
const edges = validateEdgesSection(documentRecord
|
|
408
|
+
const version = validateVersion(documentRecord["version"], issues);
|
|
409
|
+
const nodes = validateNodesSection(documentRecord["nodes"], issues, strict);
|
|
410
|
+
const edges = validateEdgesSection(documentRecord["edges"], issues, strict);
|
|
490
411
|
const ontology = validateOntologySection(
|
|
491
|
-
documentRecord
|
|
412
|
+
documentRecord["ontology"],
|
|
492
413
|
issues,
|
|
493
414
|
strict
|
|
494
415
|
);
|
|
@@ -496,7 +417,7 @@ function validateGraphExtension(input, options = {}) {
|
|
|
496
417
|
validateOntology(ontology, nodes, issues);
|
|
497
418
|
}
|
|
498
419
|
const indexes = validateIndexesSection(
|
|
499
|
-
documentRecord
|
|
420
|
+
documentRecord["indexes"],
|
|
500
421
|
issues,
|
|
501
422
|
strict
|
|
502
423
|
);
|
|
@@ -580,19 +501,19 @@ function validateNodeDocument(kindName, raw, path, issues, strict) {
|
|
|
580
501
|
);
|
|
581
502
|
}
|
|
582
503
|
const description = validateOptionalString(
|
|
583
|
-
raw
|
|
504
|
+
raw["description"],
|
|
584
505
|
`${path}/description`,
|
|
585
506
|
"`description`",
|
|
586
507
|
"INVALID_DOCUMENT_SHAPE",
|
|
587
508
|
issues
|
|
588
509
|
);
|
|
589
510
|
const annotations = validateAnnotations(
|
|
590
|
-
raw
|
|
511
|
+
raw["annotations"],
|
|
591
512
|
`${path}/annotations`,
|
|
592
513
|
`Node "${kindName}"`,
|
|
593
514
|
issues
|
|
594
515
|
);
|
|
595
|
-
const propertiesRaw = raw
|
|
516
|
+
const propertiesRaw = raw["properties"];
|
|
596
517
|
const properties = validatePropertiesMap(
|
|
597
518
|
propertiesRaw,
|
|
598
519
|
`${path}/properties`,
|
|
@@ -602,7 +523,7 @@ function validateNodeDocument(kindName, raw, path, issues, strict) {
|
|
|
602
523
|
strict
|
|
603
524
|
);
|
|
604
525
|
if (properties === void 0) return void 0;
|
|
605
|
-
const uniqueRaw = raw
|
|
526
|
+
const uniqueRaw = raw["unique"];
|
|
606
527
|
const unique = validateUniqueConstraints(
|
|
607
528
|
uniqueRaw,
|
|
608
529
|
`${path}/unique`,
|
|
@@ -674,22 +595,22 @@ function validateEdgeDocument(kindName, raw, path, issues, strict) {
|
|
|
674
595
|
);
|
|
675
596
|
}
|
|
676
597
|
const description = validateOptionalString(
|
|
677
|
-
raw
|
|
598
|
+
raw["description"],
|
|
678
599
|
`${path}/description`,
|
|
679
600
|
"`description`",
|
|
680
601
|
"INVALID_DOCUMENT_SHAPE",
|
|
681
602
|
issues
|
|
682
603
|
);
|
|
683
604
|
const annotations = validateAnnotations(
|
|
684
|
-
raw
|
|
605
|
+
raw["annotations"],
|
|
685
606
|
`${path}/annotations`,
|
|
686
607
|
`Edge "${kindName}"`,
|
|
687
608
|
issues
|
|
688
609
|
);
|
|
689
|
-
const from = validateEndpointList(raw
|
|
690
|
-
const to = validateEndpointList(raw
|
|
610
|
+
const from = validateEndpointList(raw["from"], `${path}/from`, issues);
|
|
611
|
+
const to = validateEndpointList(raw["to"], `${path}/to`, issues);
|
|
691
612
|
if (from === void 0 || to === void 0) return void 0;
|
|
692
|
-
const propertiesRaw = raw
|
|
613
|
+
const propertiesRaw = raw["properties"];
|
|
693
614
|
const properties = propertiesRaw === void 0 ? {} : validatePropertiesMap(
|
|
694
615
|
propertiesRaw,
|
|
695
616
|
`${path}/properties`,
|
|
@@ -769,13 +690,13 @@ function validateOntologySection(raw, issues, strict) {
|
|
|
769
690
|
issues
|
|
770
691
|
);
|
|
771
692
|
}
|
|
772
|
-
const metaEdge = entry
|
|
773
|
-
const from = entry
|
|
774
|
-
const to = entry
|
|
693
|
+
const metaEdge = entry["metaEdge"];
|
|
694
|
+
const from = entry["from"];
|
|
695
|
+
const to = entry["to"];
|
|
775
696
|
if (typeof metaEdge !== "string" || !META_EDGE_NAME_SET.has(metaEdge)) {
|
|
776
697
|
issues.push({
|
|
777
698
|
path: `${path}/metaEdge`,
|
|
778
|
-
message: `Unknown meta-edge ${describeUnknownValue(metaEdge)}. Allowed: ${[...ALL_META_EDGE_NAMES].join(", ")}.`,
|
|
699
|
+
message: `Unknown meta-edge ${describeUnknownValue(metaEdge)}. Allowed: ${[...chunkSVJ5GEXW_cjs.ALL_META_EDGE_NAMES].join(", ")}.`,
|
|
779
700
|
code: "UNKNOWN_META_EDGE"
|
|
780
701
|
});
|
|
781
702
|
continue;
|
|
@@ -954,7 +875,7 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
954
875
|
});
|
|
955
876
|
return void 0;
|
|
956
877
|
}
|
|
957
|
-
const entity = raw
|
|
878
|
+
const entity = raw["entity"];
|
|
958
879
|
if (entity !== "node" && entity !== "edge") {
|
|
959
880
|
issues.push({
|
|
960
881
|
path: `${path}/entity`,
|
|
@@ -973,7 +894,7 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
973
894
|
issues
|
|
974
895
|
);
|
|
975
896
|
}
|
|
976
|
-
if (typeof raw
|
|
897
|
+
if (typeof raw["kind"] !== "string" || !isValidKindName(raw["kind"])) {
|
|
977
898
|
issues.push({
|
|
978
899
|
path: `${path}/kind`,
|
|
979
900
|
message: "Index `kind` must be a non-empty kind name matching /^[A-Za-z_][A-Za-z0-9_]*$/.",
|
|
@@ -981,19 +902,19 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
981
902
|
});
|
|
982
903
|
return void 0;
|
|
983
904
|
}
|
|
984
|
-
const fields = validateStringList(raw
|
|
905
|
+
const fields = validateStringList(raw["fields"], `${path}/fields`, issues, {
|
|
985
906
|
allowEmpty: false,
|
|
986
907
|
label: "fields",
|
|
987
908
|
emptyCode: "EMPTY_INDEX_FIELDS"
|
|
988
909
|
});
|
|
989
910
|
if (fields === void 0) return void 0;
|
|
990
911
|
const coveringFields = validateStringList(
|
|
991
|
-
raw
|
|
912
|
+
raw["coveringFields"],
|
|
992
913
|
`${path}/coveringFields`,
|
|
993
914
|
issues,
|
|
994
915
|
{ allowEmpty: true, label: "coveringFields" }
|
|
995
916
|
);
|
|
996
|
-
if (raw
|
|
917
|
+
if (raw["unique"] !== void 0 && typeof raw["unique"] !== "boolean") {
|
|
997
918
|
issues.push({
|
|
998
919
|
path: `${path}/unique`,
|
|
999
920
|
message: "Index `unique` must be a boolean.",
|
|
@@ -1002,8 +923,8 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1002
923
|
return void 0;
|
|
1003
924
|
}
|
|
1004
925
|
let name;
|
|
1005
|
-
if (raw
|
|
1006
|
-
if (typeof raw
|
|
926
|
+
if (raw["name"] !== void 0) {
|
|
927
|
+
if (typeof raw["name"] !== "string" || raw["name"].length === 0) {
|
|
1007
928
|
issues.push({
|
|
1008
929
|
path: `${path}/name`,
|
|
1009
930
|
message: "Index `name` must be a non-empty string.",
|
|
@@ -1011,10 +932,10 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1011
932
|
});
|
|
1012
933
|
return void 0;
|
|
1013
934
|
}
|
|
1014
|
-
name = raw
|
|
935
|
+
name = raw["name"];
|
|
1015
936
|
}
|
|
1016
937
|
const scopeResult = validateOptionalLiteral(
|
|
1017
|
-
raw
|
|
938
|
+
raw["scope"],
|
|
1018
939
|
INDEX_SCOPE_VALUES,
|
|
1019
940
|
`${path}/scope`,
|
|
1020
941
|
"Index `scope`",
|
|
@@ -1024,7 +945,7 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1024
945
|
if (!scopeResult.ok) return void 0;
|
|
1025
946
|
const scope = scopeResult.value;
|
|
1026
947
|
const where = validateGraphExtensionIndexWhere(
|
|
1027
|
-
raw
|
|
948
|
+
raw["where"],
|
|
1028
949
|
`${path}/where`,
|
|
1029
950
|
issues,
|
|
1030
951
|
strict
|
|
@@ -1032,17 +953,17 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1032
953
|
if (entity === "node") {
|
|
1033
954
|
return chunkDI74SMXS_cjs.compactUndefined({
|
|
1034
955
|
entity: "node",
|
|
1035
|
-
kind: raw
|
|
956
|
+
kind: raw["kind"],
|
|
1036
957
|
name,
|
|
1037
958
|
fields,
|
|
1038
959
|
coveringFields,
|
|
1039
|
-
unique: raw
|
|
960
|
+
unique: raw["unique"],
|
|
1040
961
|
scope,
|
|
1041
962
|
where
|
|
1042
963
|
});
|
|
1043
964
|
}
|
|
1044
965
|
const directionResult = validateOptionalLiteral(
|
|
1045
|
-
raw
|
|
966
|
+
raw["direction"],
|
|
1046
967
|
EDGE_INDEX_DIRECTION_VALUES,
|
|
1047
968
|
`${path}/direction`,
|
|
1048
969
|
"Edge index `direction`",
|
|
@@ -1053,12 +974,12 @@ function validateIndexEntry(raw, path, issues, strict) {
|
|
|
1053
974
|
const direction = directionResult.value;
|
|
1054
975
|
return chunkDI74SMXS_cjs.compactUndefined({
|
|
1055
976
|
entity: "edge",
|
|
1056
|
-
kind: raw
|
|
977
|
+
kind: raw["kind"],
|
|
1057
978
|
name,
|
|
1058
979
|
direction,
|
|
1059
980
|
fields,
|
|
1060
981
|
coveringFields,
|
|
1061
|
-
unique: raw
|
|
982
|
+
unique: raw["unique"],
|
|
1062
983
|
scope,
|
|
1063
984
|
where
|
|
1064
985
|
});
|
|
@@ -1133,7 +1054,7 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
|
|
|
1133
1054
|
issues
|
|
1134
1055
|
);
|
|
1135
1056
|
}
|
|
1136
|
-
if (typeof raw
|
|
1057
|
+
if (typeof raw["field"] !== "string" || raw["field"].length === 0) {
|
|
1137
1058
|
issues.push({
|
|
1138
1059
|
path: `${path}/field`,
|
|
1139
1060
|
message: "`where.field` must be a non-empty string.",
|
|
@@ -1141,7 +1062,7 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
|
|
|
1141
1062
|
});
|
|
1142
1063
|
return void 0;
|
|
1143
1064
|
}
|
|
1144
|
-
if (typeof raw
|
|
1065
|
+
if (typeof raw["op"] !== "string" || !RUNTIME_INDEX_WHERE_OPS.has(raw["op"])) {
|
|
1145
1066
|
issues.push({
|
|
1146
1067
|
path: `${path}/op`,
|
|
1147
1068
|
message: '`where.op` must be "isNull" or "isNotNull" in v1.',
|
|
@@ -1150,8 +1071,8 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
|
|
|
1150
1071
|
return void 0;
|
|
1151
1072
|
}
|
|
1152
1073
|
return Object.freeze({
|
|
1153
|
-
field: raw
|
|
1154
|
-
op: raw
|
|
1074
|
+
field: raw["field"],
|
|
1075
|
+
op: raw["op"]
|
|
1155
1076
|
});
|
|
1156
1077
|
}
|
|
1157
1078
|
function validatePropertiesMap(raw, path, ownerType, ownerName, issues, strict) {
|
|
@@ -1163,7 +1084,7 @@ function validatePropertiesMap(raw, path, ownerType, ownerName, issues, strict)
|
|
|
1163
1084
|
});
|
|
1164
1085
|
return void 0;
|
|
1165
1086
|
}
|
|
1166
|
-
const reserved = ownerType === "node" ?
|
|
1087
|
+
const reserved = ownerType === "node" ? chunkXRU7V7FF_cjs.RESERVED_NODE_KEYS : chunkXRU7V7FF_cjs.RESERVED_EDGE_KEYS;
|
|
1167
1088
|
const result = {};
|
|
1168
1089
|
for (const [propertyName, propertyValue] of Object.entries(raw)) {
|
|
1169
1090
|
const propertyPath = `${path}/${chunkTDXIBCGY_cjs.encodeJsonPointerSegment(propertyName)}`;
|
|
@@ -1205,7 +1126,7 @@ function validateProperty(raw, path, depth, issues, strict) {
|
|
|
1205
1126
|
return void 0;
|
|
1206
1127
|
}
|
|
1207
1128
|
const property = raw;
|
|
1208
|
-
const type = property
|
|
1129
|
+
const type = property["type"];
|
|
1209
1130
|
if (typeof type !== "string" || !SUPPORTED_PROPERTY_TYPES.has(type)) {
|
|
1210
1131
|
issues.push({
|
|
1211
1132
|
path: `${path}/type`,
|
|
@@ -1239,14 +1160,14 @@ function validateProperty(raw, path, depth, issues, strict) {
|
|
|
1239
1160
|
}
|
|
1240
1161
|
function validateStringProperty(raw, path, issues, strict) {
|
|
1241
1162
|
const minLength = validateNonNegativeInteger(
|
|
1242
|
-
raw
|
|
1163
|
+
raw["minLength"],
|
|
1243
1164
|
`${path}/minLength`,
|
|
1244
1165
|
"string.minLength",
|
|
1245
1166
|
"INVALID_LENGTH_BOUNDS",
|
|
1246
1167
|
issues
|
|
1247
1168
|
);
|
|
1248
1169
|
const maxLength = validateNonNegativeInteger(
|
|
1249
|
-
raw
|
|
1170
|
+
raw["maxLength"],
|
|
1250
1171
|
`${path}/maxLength`,
|
|
1251
1172
|
"string.maxLength",
|
|
1252
1173
|
"INVALID_LENGTH_BOUNDS",
|
|
@@ -1260,11 +1181,11 @@ function validateStringProperty(raw, path, issues, strict) {
|
|
|
1260
1181
|
});
|
|
1261
1182
|
}
|
|
1262
1183
|
let pattern;
|
|
1263
|
-
if (raw
|
|
1264
|
-
if (typeof raw
|
|
1184
|
+
if (raw["pattern"] !== void 0) {
|
|
1185
|
+
if (typeof raw["pattern"] === "string") {
|
|
1265
1186
|
try {
|
|
1266
|
-
new RegExp(raw
|
|
1267
|
-
pattern = raw
|
|
1187
|
+
new RegExp(raw["pattern"]);
|
|
1188
|
+
pattern = raw["pattern"];
|
|
1268
1189
|
} catch (error) {
|
|
1269
1190
|
issues.push({
|
|
1270
1191
|
path: `${path}/pattern`,
|
|
@@ -1281,19 +1202,19 @@ function validateStringProperty(raw, path, issues, strict) {
|
|
|
1281
1202
|
}
|
|
1282
1203
|
}
|
|
1283
1204
|
let format;
|
|
1284
|
-
if (raw
|
|
1285
|
-
if (typeof raw
|
|
1205
|
+
if (raw["format"] !== void 0) {
|
|
1206
|
+
if (typeof raw["format"] !== "string") {
|
|
1286
1207
|
issues.push({
|
|
1287
1208
|
path: `${path}/format`,
|
|
1288
|
-
message: `String format must be a string; received ${describeUnknownValue(raw
|
|
1209
|
+
message: `String format must be a string; received ${describeUnknownValue(raw["format"])}.`,
|
|
1289
1210
|
code: "INVALID_PROPERTY_REFINEMENT"
|
|
1290
1211
|
});
|
|
1291
|
-
} else if (SUPPORTED_STRING_FORMATS.has(raw
|
|
1292
|
-
format = raw
|
|
1212
|
+
} else if (SUPPORTED_STRING_FORMATS.has(raw["format"])) {
|
|
1213
|
+
format = raw["format"];
|
|
1293
1214
|
} else if (strict) {
|
|
1294
1215
|
issues.push({
|
|
1295
1216
|
path: `${path}/format`,
|
|
1296
|
-
message: `Unsupported string format "${raw
|
|
1217
|
+
message: `Unsupported string format "${raw["format"]}". Supported: ${[...SUPPORTED_STRING_FORMATS].join(", ")}.`,
|
|
1297
1218
|
code: "UNSUPPORTED_STRING_FORMAT"
|
|
1298
1219
|
});
|
|
1299
1220
|
}
|
|
@@ -1324,14 +1245,14 @@ function validateStringProperty(raw, path, issues, strict) {
|
|
|
1324
1245
|
}
|
|
1325
1246
|
function validateNumberProperty(raw, path, issues) {
|
|
1326
1247
|
const min = validateOptionalFiniteNumber(
|
|
1327
|
-
raw
|
|
1248
|
+
raw["min"],
|
|
1328
1249
|
`${path}/min`,
|
|
1329
1250
|
"`min`",
|
|
1330
1251
|
"INVALID_NUMBER_BOUNDS",
|
|
1331
1252
|
issues
|
|
1332
1253
|
);
|
|
1333
1254
|
const max = validateOptionalFiniteNumber(
|
|
1334
|
-
raw
|
|
1255
|
+
raw["max"],
|
|
1335
1256
|
`${path}/max`,
|
|
1336
1257
|
"`max`",
|
|
1337
1258
|
"INVALID_NUMBER_BOUNDS",
|
|
@@ -1345,7 +1266,7 @@ function validateNumberProperty(raw, path, issues) {
|
|
|
1345
1266
|
});
|
|
1346
1267
|
}
|
|
1347
1268
|
const int = validateOptionalBoolean(
|
|
1348
|
-
raw
|
|
1269
|
+
raw["int"],
|
|
1349
1270
|
`${path}/int`,
|
|
1350
1271
|
"`int`",
|
|
1351
1272
|
"INVALID_PROPERTY_REFINEMENT",
|
|
@@ -1381,7 +1302,7 @@ function validateBooleanProperty(raw, path, issues) {
|
|
|
1381
1302
|
return finalizeProperty("boolean", {}, modifiers);
|
|
1382
1303
|
}
|
|
1383
1304
|
function validateEnumProperty(raw, path, issues) {
|
|
1384
|
-
const valuesRaw = raw
|
|
1305
|
+
const valuesRaw = raw["values"];
|
|
1385
1306
|
if (!Array.isArray(valuesRaw) || valuesRaw.length === 0) {
|
|
1386
1307
|
issues.push({
|
|
1387
1308
|
path: `${path}/values`,
|
|
@@ -1417,7 +1338,7 @@ function validateEnumProperty(raw, path, issues) {
|
|
|
1417
1338
|
return finalizeProperty("enum", { values }, modifiers);
|
|
1418
1339
|
}
|
|
1419
1340
|
function validateArrayProperty(raw, path, depth, issues, strict) {
|
|
1420
|
-
const itemsRaw = raw
|
|
1341
|
+
const itemsRaw = raw["items"];
|
|
1421
1342
|
if (itemsRaw === void 0) {
|
|
1422
1343
|
issues.push({
|
|
1423
1344
|
path: `${path}/items`,
|
|
@@ -1434,7 +1355,7 @@ function validateArrayProperty(raw, path, depth, issues, strict) {
|
|
|
1434
1355
|
});
|
|
1435
1356
|
return void 0;
|
|
1436
1357
|
}
|
|
1437
|
-
const itemType = itemsRaw
|
|
1358
|
+
const itemType = itemsRaw["type"];
|
|
1438
1359
|
if (itemType === "array") {
|
|
1439
1360
|
issues.push({
|
|
1440
1361
|
path: `${path}/items`,
|
|
@@ -1471,7 +1392,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
|
|
|
1471
1392
|
});
|
|
1472
1393
|
return void 0;
|
|
1473
1394
|
}
|
|
1474
|
-
const propertiesRaw = raw
|
|
1395
|
+
const propertiesRaw = raw["properties"];
|
|
1475
1396
|
if (!chunkDI74SMXS_cjs.isPlainObject(propertiesRaw)) {
|
|
1476
1397
|
issues.push({
|
|
1477
1398
|
path: `${path}/properties`,
|
|
@@ -1500,7 +1421,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
|
|
|
1500
1421
|
});
|
|
1501
1422
|
continue;
|
|
1502
1423
|
}
|
|
1503
|
-
const fieldType = value
|
|
1424
|
+
const fieldType = value["type"];
|
|
1504
1425
|
if (fieldType === "object") {
|
|
1505
1426
|
issues.push({
|
|
1506
1427
|
path: fieldPath,
|
|
@@ -1534,23 +1455,23 @@ function finalizeProperty(type, specific, modifiers) {
|
|
|
1534
1455
|
function validatePropertyModifiers(raw, path, propertyType, issues) {
|
|
1535
1456
|
const issuesAtEntry = issues.length;
|
|
1536
1457
|
const optional = validateOptionalBoolean(
|
|
1537
|
-
raw
|
|
1458
|
+
raw["optional"],
|
|
1538
1459
|
`${path}/optional`,
|
|
1539
1460
|
"`optional`",
|
|
1540
1461
|
"INVALID_PROPERTY_REFINEMENT",
|
|
1541
1462
|
issues
|
|
1542
1463
|
);
|
|
1543
1464
|
let searchable;
|
|
1544
|
-
if (raw
|
|
1465
|
+
if (raw["searchable"] !== void 0) {
|
|
1545
1466
|
if (propertyType !== "string") {
|
|
1546
1467
|
issues.push({
|
|
1547
1468
|
path: `${path}/searchable`,
|
|
1548
1469
|
message: `\`searchable\` is only valid on string properties (got "${propertyType}").`,
|
|
1549
1470
|
code: "INVALID_MODIFIER_TARGET"
|
|
1550
1471
|
});
|
|
1551
|
-
} else if (chunkDI74SMXS_cjs.isPlainObject(raw
|
|
1552
|
-
const searchableRaw = raw
|
|
1553
|
-
const language = searchableRaw
|
|
1472
|
+
} else if (chunkDI74SMXS_cjs.isPlainObject(raw["searchable"])) {
|
|
1473
|
+
const searchableRaw = raw["searchable"];
|
|
1474
|
+
const language = searchableRaw["language"];
|
|
1554
1475
|
if (language === void 0) {
|
|
1555
1476
|
searchable = {};
|
|
1556
1477
|
} else {
|
|
@@ -1573,18 +1494,18 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
|
|
|
1573
1494
|
}
|
|
1574
1495
|
}
|
|
1575
1496
|
let embedding;
|
|
1576
|
-
if (raw
|
|
1497
|
+
if (raw["embedding"] !== void 0) {
|
|
1577
1498
|
if (propertyType === "array") {
|
|
1578
|
-
const itemsRaw = raw
|
|
1579
|
-
const itemType = chunkDI74SMXS_cjs.isPlainObject(itemsRaw) ? itemsRaw
|
|
1499
|
+
const itemsRaw = raw["items"];
|
|
1500
|
+
const itemType = chunkDI74SMXS_cjs.isPlainObject(itemsRaw) ? itemsRaw["type"] : void 0;
|
|
1580
1501
|
if (itemType !== "number") {
|
|
1581
1502
|
issues.push({
|
|
1582
1503
|
path: `${path}/embedding`,
|
|
1583
1504
|
message: '`embedding` requires `array.items.type === "number"`.',
|
|
1584
1505
|
code: "INVALID_MODIFIER_TARGET"
|
|
1585
1506
|
});
|
|
1586
|
-
} else if (chunkDI74SMXS_cjs.isPlainObject(raw
|
|
1587
|
-
const dim = raw
|
|
1507
|
+
} else if (chunkDI74SMXS_cjs.isPlainObject(raw["embedding"])) {
|
|
1508
|
+
const dim = raw["embedding"]["dimensions"];
|
|
1588
1509
|
if (typeof dim !== "number" || !Number.isInteger(dim) || dim <= 0) {
|
|
1589
1510
|
issues.push({
|
|
1590
1511
|
path: `${path}/embedding/dimensions`,
|
|
@@ -1622,9 +1543,9 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
|
|
|
1622
1543
|
}
|
|
1623
1544
|
}
|
|
1624
1545
|
let description;
|
|
1625
|
-
if (raw
|
|
1626
|
-
if (typeof raw
|
|
1627
|
-
description = raw
|
|
1546
|
+
if (raw["description"] !== void 0) {
|
|
1547
|
+
if (typeof raw["description"] === "string") {
|
|
1548
|
+
description = raw["description"];
|
|
1628
1549
|
} else {
|
|
1629
1550
|
issues.push({
|
|
1630
1551
|
path: `${path}/description`,
|
|
@@ -1674,7 +1595,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1674
1595
|
);
|
|
1675
1596
|
}
|
|
1676
1597
|
const constraint = entry;
|
|
1677
|
-
const name = constraint
|
|
1598
|
+
const name = constraint["name"];
|
|
1678
1599
|
if (typeof name !== "string" || name.length === 0) {
|
|
1679
1600
|
issues.push({
|
|
1680
1601
|
path: `${constraintPath}/name`,
|
|
@@ -1692,7 +1613,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1692
1613
|
continue;
|
|
1693
1614
|
}
|
|
1694
1615
|
names.add(name);
|
|
1695
|
-
const fieldsRaw = constraint
|
|
1616
|
+
const fieldsRaw = constraint["fields"];
|
|
1696
1617
|
if (!Array.isArray(fieldsRaw) || fieldsRaw.length === 0) {
|
|
1697
1618
|
issues.push({
|
|
1698
1619
|
path: `${constraintPath}/fields`,
|
|
@@ -1737,7 +1658,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1737
1658
|
}
|
|
1738
1659
|
if (!fieldsValid) continue;
|
|
1739
1660
|
const scopeResult = validateOptionalLiteral(
|
|
1740
|
-
constraint
|
|
1661
|
+
constraint["scope"],
|
|
1741
1662
|
["kind", "kindWithSubClasses"],
|
|
1742
1663
|
`${constraintPath}/scope`,
|
|
1743
1664
|
"Unique constraint `scope`",
|
|
@@ -1747,7 +1668,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1747
1668
|
if (!scopeResult.ok) continue;
|
|
1748
1669
|
const scope = scopeResult.value;
|
|
1749
1670
|
const collationResult = validateOptionalLiteral(
|
|
1750
|
-
constraint
|
|
1671
|
+
constraint["collation"],
|
|
1751
1672
|
["binary", "caseInsensitive"],
|
|
1752
1673
|
`${constraintPath}/collation`,
|
|
1753
1674
|
"Unique constraint `collation`",
|
|
@@ -1756,14 +1677,14 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
|
|
|
1756
1677
|
);
|
|
1757
1678
|
if (!collationResult.ok) continue;
|
|
1758
1679
|
const collation = collationResult.value;
|
|
1759
|
-
const where = constraint
|
|
1760
|
-
constraint
|
|
1680
|
+
const where = constraint["where"] === void 0 ? void 0 : validateUniqueWhere(
|
|
1681
|
+
constraint["where"],
|
|
1761
1682
|
`${constraintPath}/where`,
|
|
1762
1683
|
properties,
|
|
1763
1684
|
issues,
|
|
1764
1685
|
strict
|
|
1765
1686
|
);
|
|
1766
|
-
if (constraint
|
|
1687
|
+
if (constraint["where"] !== void 0 && where === void 0) continue;
|
|
1767
1688
|
result.push(
|
|
1768
1689
|
chunkDI74SMXS_cjs.compactUndefined({
|
|
1769
1690
|
name,
|
|
@@ -1795,8 +1716,8 @@ function validateUniqueWhere(raw, path, properties, issues, strict) {
|
|
|
1795
1716
|
issues
|
|
1796
1717
|
);
|
|
1797
1718
|
}
|
|
1798
|
-
const field = raw
|
|
1799
|
-
const op = raw
|
|
1719
|
+
const field = raw["field"];
|
|
1720
|
+
const op = raw["op"];
|
|
1800
1721
|
if (typeof field !== "string" || field.length === 0) {
|
|
1801
1722
|
issues.push({
|
|
1802
1723
|
path: `${path}/field`,
|
|
@@ -1834,10 +1755,10 @@ function validateAnnotations(raw, path, ownerLabel, issues) {
|
|
|
1834
1755
|
return void 0;
|
|
1835
1756
|
}
|
|
1836
1757
|
try {
|
|
1837
|
-
assertJsonValue(raw, "annotations", ownerLabel);
|
|
1758
|
+
chunkNMQ6C6TS_cjs.assertJsonValue(raw, "annotations", ownerLabel);
|
|
1838
1759
|
} catch (error) {
|
|
1839
|
-
if (error instanceof
|
|
1840
|
-
const detailPath = error.details
|
|
1760
|
+
if (error instanceof chunkSAFZ6JTI_cjs.ConfigurationError) {
|
|
1761
|
+
const detailPath = error.details["path"];
|
|
1841
1762
|
const annotationPath = typeof detailPath === "string" ? `${path}/${detailPath.replace(/^annotations\.?/, "").replaceAll(".", "/")}` : path;
|
|
1842
1763
|
issues.push({
|
|
1843
1764
|
path: annotationPath,
|
|
@@ -1923,7 +1844,6 @@ function freezeDocument(input) {
|
|
|
1923
1844
|
);
|
|
1924
1845
|
}
|
|
1925
1846
|
|
|
1926
|
-
exports.ALL_META_EDGE_NAMES = ALL_META_EDGE_NAMES;
|
|
1927
1847
|
exports.CURRENT_GRAPH_EXTENSION_VERSION = CURRENT_GRAPH_EXTENSION_VERSION;
|
|
1928
1848
|
exports.GRAPH_EXTENSION_ISSUE_CODES = GRAPH_EXTENSION_ISSUE_CODES;
|
|
1929
1849
|
exports.GRAPH_EXTENSION_TOP_LEVEL_KEYS = GRAPH_EXTENSION_TOP_LEVEL_KEYS;
|
|
@@ -1936,20 +1856,7 @@ exports.IncompatibleChangeError = IncompatibleChangeError;
|
|
|
1936
1856
|
exports.KindCollisionError = KindCollisionError;
|
|
1937
1857
|
exports.KindHasReferentsError = KindHasReferentsError;
|
|
1938
1858
|
exports.LEGACY_GRAPH_EXTENSION_VERSION = LEGACY_GRAPH_EXTENSION_VERSION;
|
|
1939
|
-
exports.META_EDGE_BROADER = META_EDGE_BROADER;
|
|
1940
|
-
exports.META_EDGE_DIFFERENT_FROM = META_EDGE_DIFFERENT_FROM;
|
|
1941
|
-
exports.META_EDGE_DISJOINT_WITH = META_EDGE_DISJOINT_WITH;
|
|
1942
|
-
exports.META_EDGE_EQUIVALENT_TO = META_EDGE_EQUIVALENT_TO;
|
|
1943
|
-
exports.META_EDGE_HAS_PART = META_EDGE_HAS_PART;
|
|
1944
|
-
exports.META_EDGE_IMPLIES = META_EDGE_IMPLIES;
|
|
1945
|
-
exports.META_EDGE_INVERSE_OF = META_EDGE_INVERSE_OF;
|
|
1946
|
-
exports.META_EDGE_NARROWER = META_EDGE_NARROWER;
|
|
1947
|
-
exports.META_EDGE_PART_OF = META_EDGE_PART_OF;
|
|
1948
|
-
exports.META_EDGE_RELATED_TO = META_EDGE_RELATED_TO;
|
|
1949
|
-
exports.META_EDGE_SAME_AS = META_EDGE_SAME_AS;
|
|
1950
|
-
exports.META_EDGE_SUB_CLASS_OF = META_EDGE_SUB_CLASS_OF;
|
|
1951
1859
|
exports.RemoveCompileTimeKindError = RemoveCompileTimeKindError;
|
|
1952
|
-
exports.assertJsonValue = assertJsonValue;
|
|
1953
1860
|
exports.computeTransitiveClosure = computeTransitiveClosure;
|
|
1954
1861
|
exports.err = err;
|
|
1955
1862
|
exports.invertClosure = invertClosure;
|
|
@@ -1959,5 +1866,5 @@ exports.isReachable = isReachable;
|
|
|
1959
1866
|
exports.ok = ok;
|
|
1960
1867
|
exports.unwrap = unwrap;
|
|
1961
1868
|
exports.validateGraphExtension = validateGraphExtension;
|
|
1962
|
-
//# sourceMappingURL=chunk-
|
|
1963
|
-
//# sourceMappingURL=chunk-
|
|
1869
|
+
//# sourceMappingURL=chunk-N2V3HJFV.cjs.map
|
|
1870
|
+
//# sourceMappingURL=chunk-N2V3HJFV.cjs.map
|