@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.
Files changed (372) hide show
  1. package/README.md +12 -10
  2. package/dist/backend/drizzle/indexes.cjs +32 -0
  3. package/dist/backend/drizzle/indexes.cjs.map +1 -0
  4. package/dist/backend/drizzle/indexes.d.cts +43 -0
  5. package/dist/backend/drizzle/indexes.d.ts +43 -0
  6. package/dist/backend/drizzle/indexes.js +11 -0
  7. package/dist/backend/drizzle/indexes.js.map +1 -0
  8. package/dist/backend/index.cjs +161 -0
  9. package/dist/backend/index.cjs.map +1 -0
  10. package/dist/backend/index.d.cts +3 -0
  11. package/dist/backend/index.d.ts +3 -0
  12. package/dist/backend/index.js +8 -0
  13. package/dist/backend/index.js.map +1 -0
  14. package/dist/backend/postgres/index.cjs +32 -28
  15. package/dist/backend/postgres/index.d.cts +13 -12
  16. package/dist/backend/postgres/index.d.ts +13 -12
  17. package/dist/backend/postgres/index.js +19 -15
  18. package/dist/backend/postgres/pglite-store.cjs +67 -0
  19. package/dist/backend/postgres/pglite-store.cjs.map +1 -0
  20. package/dist/backend/postgres/pglite-store.d.cts +38 -0
  21. package/dist/backend/postgres/pglite-store.d.ts +38 -0
  22. package/dist/backend/postgres/pglite-store.js +65 -0
  23. package/dist/backend/postgres/pglite-store.js.map +1 -0
  24. package/dist/backend/postgres/pglite.cjs +25 -50
  25. package/dist/backend/postgres/pglite.cjs.map +1 -1
  26. package/dist/backend/postgres/pglite.d.cts +10 -9
  27. package/dist/backend/postgres/pglite.d.ts +10 -9
  28. package/dist/backend/postgres/pglite.js +20 -52
  29. package/dist/backend/postgres/pglite.js.map +1 -1
  30. package/dist/backend/sqlite/index.cjs +29 -25
  31. package/dist/backend/sqlite/index.d.cts +11 -11
  32. package/dist/backend/sqlite/index.d.ts +11 -11
  33. package/dist/backend/sqlite/index.js +17 -13
  34. package/dist/backend/sqlite/libsql.cjs +23 -19
  35. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  36. package/dist/backend/sqlite/libsql.d.cts +9 -10
  37. package/dist/backend/sqlite/libsql.d.ts +9 -10
  38. package/dist/backend/sqlite/libsql.js +19 -15
  39. package/dist/backend/sqlite/libsql.js.map +1 -1
  40. package/dist/backend/sqlite/local-store.cjs +72 -0
  41. package/dist/backend/sqlite/local-store.cjs.map +1 -0
  42. package/dist/backend/sqlite/local-store.d.cts +42 -0
  43. package/dist/backend/sqlite/local-store.d.ts +42 -0
  44. package/dist/backend/sqlite/local-store.js +67 -0
  45. package/dist/backend/sqlite/local-store.js.map +1 -0
  46. package/dist/backend/sqlite/local.cjs +28 -183
  47. package/dist/backend/sqlite/local.cjs.map +1 -1
  48. package/dist/backend/sqlite/local.d.cts +8 -81
  49. package/dist/backend/sqlite/local.d.ts +8 -81
  50. package/dist/backend/sqlite/local.js +20 -180
  51. package/dist/backend/sqlite/local.js.map +1 -1
  52. package/dist/chunk-2EBMPJBO.js +16 -0
  53. package/dist/chunk-2EBMPJBO.js.map +1 -0
  54. package/dist/{chunk-NBP2WTJW.cjs → chunk-2SL7OGPR.cjs} +2900 -1597
  55. package/dist/chunk-2SL7OGPR.cjs.map +1 -0
  56. package/dist/chunk-35S6P5ZU.js +27 -0
  57. package/dist/chunk-35S6P5ZU.js.map +1 -0
  58. package/dist/chunk-3LKL3S6X.js +50 -0
  59. package/dist/chunk-3LKL3S6X.js.map +1 -0
  60. package/dist/chunk-6G5CQ6JX.js +47 -0
  61. package/dist/chunk-6G5CQ6JX.js.map +1 -0
  62. package/dist/chunk-6XDBRDZE.js +312 -0
  63. package/dist/chunk-6XDBRDZE.js.map +1 -0
  64. package/dist/chunk-764JHTLT.cjs +15 -0
  65. package/dist/chunk-764JHTLT.cjs.map +1 -0
  66. package/dist/chunk-76HE7DJP.js +68 -0
  67. package/dist/chunk-76HE7DJP.js.map +1 -0
  68. package/dist/{chunk-VGDDG3XJ.cjs → chunk-7M3NACL3.cjs} +12 -12
  69. package/dist/{chunk-VGDDG3XJ.cjs.map → chunk-7M3NACL3.cjs.map} +1 -1
  70. package/dist/{chunk-NXQFATMF.cjs → chunk-7VLCN3JB.cjs} +153 -123
  71. package/dist/chunk-7VLCN3JB.cjs.map +1 -0
  72. package/dist/{chunk-552KNYQJ.js → chunk-A2FGSWMQ.js} +1907 -607
  73. package/dist/chunk-A2FGSWMQ.js.map +1 -0
  74. package/dist/chunk-AOL64O4Z.js +165 -0
  75. package/dist/chunk-AOL64O4Z.js.map +1 -0
  76. package/dist/{chunk-27SSDCEP.cjs → chunk-B63IFHXR.cjs} +53 -74
  77. package/dist/chunk-B63IFHXR.cjs.map +1 -0
  78. package/dist/{chunk-3XXGYU62.cjs → chunk-BKAKAVRW.cjs} +56 -53
  79. package/dist/chunk-BKAKAVRW.cjs.map +1 -0
  80. package/dist/{chunk-YTSN73ND.js → chunk-BQITNFQJ.js} +3 -3
  81. package/dist/{chunk-YTSN73ND.js.map → chunk-BQITNFQJ.js.map} +1 -1
  82. package/dist/{chunk-NUIG3BCV.cjs → chunk-CQC6VBAF.cjs} +93 -155
  83. package/dist/chunk-CQC6VBAF.cjs.map +1 -0
  84. package/dist/{chunk-6EEO3OVU.cjs → chunk-CWX77JB4.cjs} +22 -59
  85. package/dist/chunk-CWX77JB4.cjs.map +1 -0
  86. package/dist/{chunk-UGZUAYAR.js → chunk-D7PG5D5K.js} +4 -3
  87. package/dist/chunk-D7PG5D5K.js.map +1 -0
  88. package/dist/chunk-DDCIXXOO.js +9 -0
  89. package/dist/chunk-DDCIXXOO.js.map +1 -0
  90. package/dist/chunk-DDCYVIVV.cjs +44 -0
  91. package/dist/chunk-DDCYVIVV.cjs.map +1 -0
  92. package/dist/{chunk-XPCZADMT.cjs → chunk-DOVMTPKE.cjs} +89 -27
  93. package/dist/chunk-DOVMTPKE.cjs.map +1 -0
  94. package/dist/{chunk-5PNMDJ7J.js → chunk-DPNA466P.js} +14 -9
  95. package/dist/chunk-DPNA466P.js.map +1 -0
  96. package/dist/{chunk-BYPOGQWK.js → chunk-DRACN6XG.js} +6 -4
  97. package/dist/chunk-DRACN6XG.js.map +1 -0
  98. package/dist/chunk-E6TXEISH.cjs +175 -0
  99. package/dist/chunk-E6TXEISH.cjs.map +1 -0
  100. package/dist/{chunk-TKT2XHED.js → chunk-E6YZRKMM.js} +13 -12
  101. package/dist/chunk-E6YZRKMM.js.map +1 -0
  102. package/dist/{chunk-3C2RYI6L.cjs → chunk-EOJFGECD.cjs} +11 -11
  103. package/dist/chunk-EOJFGECD.cjs.map +1 -0
  104. package/dist/{chunk-XWV4JT34.js → chunk-ERZ4QPQX.js} +27 -22
  105. package/dist/chunk-ERZ4QPQX.js.map +1 -0
  106. package/dist/{chunk-DFVLCOP6.js → chunk-EZH7FNUS.js} +3 -3
  107. package/dist/{chunk-DFVLCOP6.js.map → chunk-EZH7FNUS.js.map} +1 -1
  108. package/dist/{chunk-WWFHO375.cjs → chunk-FJMPR3OH.cjs} +4 -3
  109. package/dist/chunk-FJMPR3OH.cjs.map +1 -0
  110. package/dist/chunk-FMNUSGZ4.cjs +12 -0
  111. package/dist/chunk-FMNUSGZ4.cjs.map +1 -0
  112. package/dist/{chunk-K3Q3LJY3.js → chunk-G32AO634.js} +201 -100
  113. package/dist/chunk-G32AO634.js.map +1 -0
  114. package/dist/{chunk-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
  115. package/dist/chunk-G3CSQLLT.js.map +1 -0
  116. package/dist/chunk-GNPGGLAE.cjs +212 -0
  117. package/dist/chunk-GNPGGLAE.cjs.map +1 -0
  118. package/dist/{chunk-QARBLBXT.cjs → chunk-GUUWKPTK.cjs} +7 -7
  119. package/dist/{chunk-QARBLBXT.cjs.map → chunk-GUUWKPTK.cjs.map} +1 -1
  120. package/dist/chunk-GYA4JRP5.js +31 -0
  121. package/dist/chunk-GYA4JRP5.js.map +1 -0
  122. package/dist/chunk-I6FX7AAG.js +39 -0
  123. package/dist/chunk-I6FX7AAG.js.map +1 -0
  124. package/dist/chunk-IMQKXL4E.cjs +12 -0
  125. package/dist/{chunk-QSXTWU4U.cjs.map → chunk-IMQKXL4E.cjs.map} +1 -1
  126. package/dist/chunk-J6IJARLG.js +94 -0
  127. package/dist/chunk-J6IJARLG.js.map +1 -0
  128. package/dist/{chunk-W63OVYY4.js → chunk-K34OPSJK.js} +3 -3
  129. package/dist/{chunk-W63OVYY4.js.map → chunk-K34OPSJK.js.map} +1 -1
  130. package/dist/{chunk-TGOMW4MB.cjs → chunk-KCLZHYPU.cjs} +110 -109
  131. package/dist/chunk-KCLZHYPU.cjs.map +1 -0
  132. package/dist/{chunk-XGPUQ56G.js → chunk-KFLXWVUJ.js} +4 -38
  133. package/dist/chunk-KFLXWVUJ.js.map +1 -0
  134. package/dist/{chunk-3DS7Z4T4.cjs → chunk-LZ3TVJY4.cjs} +44 -43
  135. package/dist/chunk-LZ3TVJY4.cjs.map +1 -0
  136. package/dist/{chunk-UXLSNRYL.js → chunk-MTNEGGM2.js} +4 -4
  137. package/dist/chunk-MTNEGGM2.js.map +1 -0
  138. package/dist/{chunk-IP3CGGPA.cjs → chunk-N2V3HJFV.cjs} +92 -185
  139. package/dist/chunk-N2V3HJFV.cjs.map +1 -0
  140. package/dist/chunk-NAUA4PW5.cjs +28 -0
  141. package/dist/chunk-NAUA4PW5.cjs.map +1 -0
  142. package/dist/chunk-NMQ6C6TS.cjs +61 -0
  143. package/dist/chunk-NMQ6C6TS.cjs.map +1 -0
  144. package/dist/{chunk-2N6EOBTH.cjs → chunk-NPWACFQJ.cjs} +58 -53
  145. package/dist/chunk-NPWACFQJ.cjs.map +1 -0
  146. package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
  147. package/dist/chunk-NT6ILURI.cjs.map +1 -0
  148. package/dist/chunk-NU23DUSJ.cjs +192 -0
  149. package/dist/chunk-NU23DUSJ.cjs.map +1 -0
  150. package/dist/{chunk-WOJMKB3N.cjs → chunk-NWYCOFEZ.cjs} +1677 -308
  151. package/dist/chunk-NWYCOFEZ.cjs.map +1 -0
  152. package/dist/{chunk-3GH67G4Z.cjs → chunk-O5H62ZWJ.cjs} +4 -42
  153. package/dist/chunk-O5H62ZWJ.cjs.map +1 -0
  154. package/dist/{chunk-3SLPDKHQ.js → chunk-PH4IJ3V5.js} +5 -77
  155. package/dist/chunk-PH4IJ3V5.js.map +1 -0
  156. package/dist/chunk-PWXGB77L.cjs +56 -0
  157. package/dist/chunk-PWXGB77L.cjs.map +1 -0
  158. package/dist/chunk-PZHC5GCD.js +193 -0
  159. package/dist/chunk-PZHC5GCD.js.map +1 -0
  160. package/dist/chunk-QMQLUA66.js +12 -0
  161. package/dist/chunk-QMQLUA66.js.map +1 -0
  162. package/dist/{chunk-5WWVZMVX.js → chunk-QZ7A6HBM.js} +2 -2
  163. package/dist/{chunk-5WWVZMVX.js.map → chunk-QZ7A6HBM.js.map} +1 -1
  164. package/dist/{chunk-VKGKDOKR.js → chunk-RQPRCEIO.js} +1539 -206
  165. package/dist/chunk-RQPRCEIO.js.map +1 -0
  166. package/dist/chunk-RW24SAHI.cjs +74 -0
  167. package/dist/chunk-RW24SAHI.cjs.map +1 -0
  168. package/dist/{chunk-BVRDGYXQ.cjs → chunk-SAFZ6JTI.cjs} +14 -9
  169. package/dist/chunk-SAFZ6JTI.cjs.map +1 -0
  170. package/dist/{chunk-L7HQ2OSI.js → chunk-SCTZRFW5.js} +87 -166
  171. package/dist/chunk-SCTZRFW5.js.map +1 -0
  172. package/dist/{chunk-5KPNWT6X.js → chunk-SDHV2MWU.js} +24 -45
  173. package/dist/chunk-SDHV2MWU.js.map +1 -0
  174. package/dist/chunk-SVJ5GEXW.cjs +45 -0
  175. package/dist/chunk-SVJ5GEXW.cjs.map +1 -0
  176. package/dist/chunk-SVUKGWSN.cjs +102 -0
  177. package/dist/chunk-SVUKGWSN.cjs.map +1 -0
  178. package/dist/chunk-TAUGGLNQ.js +59 -0
  179. package/dist/chunk-TAUGGLNQ.js.map +1 -0
  180. package/dist/{chunk-J4IUSYFF.js → chunk-TE5ZA4VX.js} +69 -27
  181. package/dist/chunk-TE5ZA4VX.js.map +1 -0
  182. package/dist/{chunk-A42GCBGX.cjs → chunk-TRF4EBJT.cjs} +6 -4
  183. package/dist/chunk-TRF4EBJT.cjs.map +1 -0
  184. package/dist/{chunk-KQJ54OG5.js → chunk-U4JDJKPD.js} +19 -56
  185. package/dist/chunk-U4JDJKPD.js.map +1 -0
  186. package/dist/chunk-UH2USOMG.cjs +627 -0
  187. package/dist/chunk-UH2USOMG.cjs.map +1 -0
  188. package/dist/{chunk-RCVLFTCT.js → chunk-UPXDVI3T.js} +13 -12
  189. package/dist/chunk-UPXDVI3T.js.map +1 -0
  190. package/dist/{chunk-5VQM6VWP.cjs → chunk-UWG5GX6E.cjs} +2 -2
  191. package/dist/{chunk-5VQM6VWP.cjs.map → chunk-UWG5GX6E.cjs.map} +1 -1
  192. package/dist/{chunk-3RWZPJKV.js → chunk-VBH7ZXSZ.js} +21 -78
  193. package/dist/chunk-VBH7ZXSZ.js.map +1 -0
  194. package/dist/{chunk-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
  195. package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
  196. package/dist/chunk-X4PVHAZ6.cjs +83 -0
  197. package/dist/chunk-X4PVHAZ6.cjs.map +1 -0
  198. package/dist/{chunk-UYQMBBWJ.js → chunk-X6CNEA32.js} +23 -20
  199. package/dist/chunk-X6CNEA32.js.map +1 -0
  200. package/dist/chunk-X6RDQ5NB.cjs +335 -0
  201. package/dist/chunk-X6RDQ5NB.cjs.map +1 -0
  202. package/dist/chunk-XD6X7O5R.js +184 -0
  203. package/dist/chunk-XD6X7O5R.js.map +1 -0
  204. package/dist/{chunk-DIQ3AV5W.cjs → chunk-XFY73JWD.cjs} +324 -224
  205. package/dist/chunk-XFY73JWD.cjs.map +1 -0
  206. package/dist/{chunk-DEFQM7JU.cjs → chunk-XRU7V7FF.cjs} +7 -7
  207. package/dist/{chunk-DEFQM7JU.cjs.map → chunk-XRU7V7FF.cjs.map} +1 -1
  208. package/dist/{chunk-TPF25IG6.js → chunk-XZA3Y4YH.js} +3 -3
  209. package/dist/{chunk-TPF25IG6.js.map → chunk-XZA3Y4YH.js.map} +1 -1
  210. package/dist/chunk-Y7M44XEK.js +462 -0
  211. package/dist/chunk-Y7M44XEK.js.map +1 -0
  212. package/dist/{chunk-RRSNR3TP.js → chunk-YIRLBUNN.js} +3 -3
  213. package/dist/{chunk-RRSNR3TP.js.map → chunk-YIRLBUNN.js.map} +1 -1
  214. package/dist/{chunk-IXGYRP2P.js → chunk-YJDSPA5E.js} +79 -49
  215. package/dist/chunk-YJDSPA5E.js.map +1 -0
  216. package/dist/{chunk-JBNOGRKW.cjs → chunk-YLINFV7Z.cjs} +157 -115
  217. package/dist/chunk-YLINFV7Z.cjs.map +1 -0
  218. package/dist/{chunk-QERAIDRJ.js → chunk-Z2PPIVOO.js} +82 -22
  219. package/dist/chunk-Z2PPIVOO.js.map +1 -0
  220. package/dist/chunk-Z5QHVL5U.cjs +12 -0
  221. package/dist/chunk-Z5QHVL5U.cjs.map +1 -0
  222. package/dist/chunk-ZDH3DX3C.cjs +30 -0
  223. package/dist/chunk-ZDH3DX3C.cjs.map +1 -0
  224. package/dist/chunk-ZE6NVENI.js +77 -0
  225. package/dist/chunk-ZE6NVENI.js.map +1 -0
  226. package/dist/chunk-ZHX4KEM7.cjs +49 -0
  227. package/dist/chunk-ZHX4KEM7.cjs.map +1 -0
  228. package/dist/chunk-ZKZAIX42.cjs +479 -0
  229. package/dist/chunk-ZKZAIX42.cjs.map +1 -0
  230. package/dist/{chunk-TEDRJXOG.cjs → chunk-ZY4GXIVN.cjs} +5 -5
  231. package/dist/{chunk-TEDRJXOG.cjs.map → chunk-ZY4GXIVN.cjs.map} +1 -1
  232. package/dist/core/index.cjs +117 -0
  233. package/dist/core/index.cjs.map +1 -0
  234. package/dist/core/index.d.cts +225 -0
  235. package/dist/core/index.d.ts +225 -0
  236. package/dist/core/index.js +12 -0
  237. package/dist/core/index.js.map +1 -0
  238. package/dist/{ddl-CS0KUVwB.d.ts → ddl-Dx3Z0_WC.d.ts} +3 -3
  239. package/dist/{ddl-BD-ZfKeX.d.cts → ddl-J6sDyABg.d.cts} +3 -3
  240. package/dist/define-graph-CzEvA_8F.d.cts +174 -0
  241. package/dist/define-graph-DRo9xpYN.d.ts +174 -0
  242. package/dist/{extension-types-BM2ACfYO.d.cts → extension-types-BLEVH4SG.d.cts} +1 -1
  243. package/dist/{extension-types-BM2ACfYO.d.ts → extension-types-BLEVH4SG.d.ts} +1 -1
  244. package/dist/graph-extension/index.cjs +21 -19
  245. package/dist/graph-extension/index.d.cts +4 -4
  246. package/dist/graph-extension/index.d.ts +4 -4
  247. package/dist/graph-extension/index.js +6 -4
  248. package/dist/graph-merge/index.cjs +265 -214
  249. package/dist/graph-merge/index.cjs.map +1 -1
  250. package/dist/graph-merge/index.d.cts +8 -89
  251. package/dist/graph-merge/index.d.ts +8 -89
  252. package/dist/graph-merge/index.js +141 -90
  253. package/dist/graph-merge/index.js.map +1 -1
  254. package/dist/{index-BeacbPoe.d.ts → index-BD_3TCgh.d.ts} +6 -4
  255. package/dist/{index-BPM59vsg.d.cts → index-BihFPsPu.d.cts} +6 -4
  256. package/dist/{fulltext-strategy-C27vXaeB.d.cts → index-Bq7vSPHy.d.ts} +3195 -2646
  257. package/dist/{fulltext-strategy-DebsMrqg.d.ts → index-CrFL_ENI.d.cts} +3195 -2646
  258. package/dist/index.cjs +326 -315
  259. package/dist/index.cjs.map +1 -1
  260. package/dist/index.d.cts +59 -240
  261. package/dist/index.d.ts +59 -240
  262. package/dist/index.js +46 -79
  263. package/dist/index.js.map +1 -1
  264. package/dist/indexes/index.cjs +26 -38
  265. package/dist/indexes/index.d.cts +6 -41
  266. package/dist/indexes/index.d.ts +6 -41
  267. package/dist/indexes/index.js +14 -10
  268. package/dist/interchange/index.cjs +48 -39
  269. package/dist/interchange/index.cjs.map +1 -1
  270. package/dist/interchange/index.d.cts +7 -8
  271. package/dist/interchange/index.d.ts +7 -8
  272. package/dist/interchange/index.js +23 -14
  273. package/dist/interchange/index.js.map +1 -1
  274. package/dist/local-options-CZ1BnIoF.d.cts +29 -0
  275. package/dist/local-options-CZ1BnIoF.d.ts +29 -0
  276. package/dist/{manager-D00_NXvT.d.ts → manager-CASfhmzV.d.ts} +4 -173
  277. package/dist/{manager-nU1vTJLy.d.cts → manager-nCEJiYBb.d.cts} +4 -173
  278. package/dist/{materialize-indexes-zK2J_flP.d.ts → materialize-indexes-D4iei4Kp.d.ts} +1 -1
  279. package/dist/{materialize-indexes-CuR3gAZb.d.cts → materialize-indexes-ExQ6OrAh.d.cts} +1 -1
  280. package/dist/{postgres-IaBA4RgE.d.ts → postgres-Cl1ZAN1G.d.ts} +1 -1
  281. package/dist/{postgres-YrYmPlaU.d.cts → postgres-DMgIKQU-.d.cts} +1 -1
  282. package/dist/postgres-execution-fKW0qRiN.d.cts +14 -0
  283. package/dist/postgres-execution-fKW0qRiN.d.ts +14 -0
  284. package/dist/profiler/index.cjs +9 -8
  285. package/dist/profiler/index.cjs.map +1 -1
  286. package/dist/profiler/index.d.cts +9 -17
  287. package/dist/profiler/index.d.ts +9 -17
  288. package/dist/profiler/index.js +8 -7
  289. package/dist/profiler/index.js.map +1 -1
  290. package/dist/provenance/index.cjs +61 -55
  291. package/dist/provenance/index.cjs.map +1 -1
  292. package/dist/provenance/index.d.cts +7 -8
  293. package/dist/provenance/index.d.ts +7 -8
  294. package/dist/provenance/index.js +34 -28
  295. package/dist/provenance/index.js.map +1 -1
  296. package/dist/schema/index.cjs +46 -37
  297. package/dist/schema/index.cjs.map +1 -1
  298. package/dist/schema/index.d.cts +8 -10
  299. package/dist/schema/index.d.ts +8 -10
  300. package/dist/schema/index.js +22 -13
  301. package/dist/schema/index.js.map +1 -1
  302. package/dist/{sqlite-BUOHPx7p.d.ts → sqlite-BDkW39aa.d.cts} +1 -1
  303. package/dist/{sqlite-Pp8O19WE.d.cts → sqlite-CYfhvESj.d.ts} +1 -1
  304. package/dist/sqlite-execution-DwbE2a9y.d.cts +32 -0
  305. package/dist/sqlite-execution-DwbE2a9y.d.ts +32 -0
  306. package/dist/{store-view-X96Rd00T.d.cts → store-view-BoHqdHjB.d.cts} +394 -1393
  307. package/dist/{store-view-ANL6mTph.d.ts → store-view-Ctq-3OHy.d.ts} +394 -1393
  308. package/dist/temporal-BC_NQV5Y.d.cts +281 -0
  309. package/dist/temporal-DqtOEo_B.d.ts +281 -0
  310. package/dist/{types-r-Zyq2Hz.d.cts → types-COq3-vMC.d.cts} +2 -2
  311. package/dist/{types-wsvuBgPK.d.ts → types-CUevi_D1.d.ts} +2 -2
  312. package/dist/{where-CJOpJj3a.d.ts → where-BdE_cYtx.d.ts} +5 -5
  313. package/dist/{where-K3uBP33l.d.cts → where-C92TXCzT.d.cts} +5 -5
  314. package/package.json +37 -6
  315. package/dist/chunk-27SSDCEP.cjs.map +0 -1
  316. package/dist/chunk-2N6EOBTH.cjs.map +0 -1
  317. package/dist/chunk-3C2RYI6L.cjs.map +0 -1
  318. package/dist/chunk-3DS7Z4T4.cjs.map +0 -1
  319. package/dist/chunk-3GH67G4Z.cjs.map +0 -1
  320. package/dist/chunk-3RWZPJKV.js.map +0 -1
  321. package/dist/chunk-3SLPDKHQ.js.map +0 -1
  322. package/dist/chunk-3XXGYU62.cjs.map +0 -1
  323. package/dist/chunk-44TA22QT.js +0 -1478
  324. package/dist/chunk-44TA22QT.js.map +0 -1
  325. package/dist/chunk-552KNYQJ.js.map +0 -1
  326. package/dist/chunk-5KEQ74YU.cjs.map +0 -1
  327. package/dist/chunk-5KPNWT6X.js.map +0 -1
  328. package/dist/chunk-5PNMDJ7J.js.map +0 -1
  329. package/dist/chunk-6EEO3OVU.cjs.map +0 -1
  330. package/dist/chunk-7YSP4V4R.cjs +0 -69
  331. package/dist/chunk-7YSP4V4R.cjs.map +0 -1
  332. package/dist/chunk-A42GCBGX.cjs.map +0 -1
  333. package/dist/chunk-BVRDGYXQ.cjs.map +0 -1
  334. package/dist/chunk-BYPOGQWK.js.map +0 -1
  335. package/dist/chunk-CUHM5CWJ.cjs +0 -12
  336. package/dist/chunk-CUHM5CWJ.cjs.map +0 -1
  337. package/dist/chunk-DIQ3AV5W.cjs.map +0 -1
  338. package/dist/chunk-EXU3RASM.js.map +0 -1
  339. package/dist/chunk-IP3CGGPA.cjs.map +0 -1
  340. package/dist/chunk-IPSVVTWT.cjs +0 -1540
  341. package/dist/chunk-IPSVVTWT.cjs.map +0 -1
  342. package/dist/chunk-IXGYRP2P.js.map +0 -1
  343. package/dist/chunk-J4IUSYFF.js.map +0 -1
  344. package/dist/chunk-JBNOGRKW.cjs.map +0 -1
  345. package/dist/chunk-K3Q3LJY3.js.map +0 -1
  346. package/dist/chunk-KQJ54OG5.js.map +0 -1
  347. package/dist/chunk-L7HQ2OSI.js.map +0 -1
  348. package/dist/chunk-M6VES7V6.js +0 -239
  349. package/dist/chunk-M6VES7V6.js.map +0 -1
  350. package/dist/chunk-NBP2WTJW.cjs.map +0 -1
  351. package/dist/chunk-NUIG3BCV.cjs.map +0 -1
  352. package/dist/chunk-NXQFATMF.cjs.map +0 -1
  353. package/dist/chunk-OHMP6N2J.js +0 -47
  354. package/dist/chunk-OHMP6N2J.js.map +0 -1
  355. package/dist/chunk-QERAIDRJ.js.map +0 -1
  356. package/dist/chunk-QSXTWU4U.cjs +0 -12
  357. package/dist/chunk-RCVLFTCT.js.map +0 -1
  358. package/dist/chunk-TGOMW4MB.cjs.map +0 -1
  359. package/dist/chunk-TKT2XHED.js.map +0 -1
  360. package/dist/chunk-UGZUAYAR.js.map +0 -1
  361. package/dist/chunk-UXLSNRYL.js.map +0 -1
  362. package/dist/chunk-UYQMBBWJ.js.map +0 -1
  363. package/dist/chunk-VKGKDOKR.js.map +0 -1
  364. package/dist/chunk-VL2V6PEN.cjs +0 -261
  365. package/dist/chunk-VL2V6PEN.cjs.map +0 -1
  366. package/dist/chunk-WOJMKB3N.cjs.map +0 -1
  367. package/dist/chunk-WWFHO375.cjs.map +0 -1
  368. package/dist/chunk-XGPUQ56G.js.map +0 -1
  369. package/dist/chunk-XGU7DZDA.cjs +0 -1095
  370. package/dist/chunk-XGU7DZDA.cjs.map +0 -1
  371. package/dist/chunk-XPCZADMT.cjs.map +0 -1
  372. package/dist/chunk-XWV4JT34.js.map +0 -1
@@ -1,6 +1,8 @@
1
- import { RESERVED_NODE_KEYS, RESERVED_EDGE_KEYS } from './chunk-TPF25IG6.js';
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 { TypeGraphError, ConfigurationError } from './chunk-5PNMDJ7J.js';
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.version, issues);
486
- const nodes = validateNodesSection(documentRecord.nodes, issues, strict);
487
- const edges = validateEdgesSection(documentRecord.edges, issues, strict);
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.ontology,
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.indexes,
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.description,
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.annotations,
509
+ raw["annotations"],
589
510
  `${path}/annotations`,
590
511
  `Node "${kindName}"`,
591
512
  issues
592
513
  );
593
- const propertiesRaw = raw.properties;
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.unique;
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.description,
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.annotations,
603
+ raw["annotations"],
683
604
  `${path}/annotations`,
684
605
  `Edge "${kindName}"`,
685
606
  issues
686
607
  );
687
- const from = validateEndpointList(raw.from, `${path}/from`, issues);
688
- const to = validateEndpointList(raw.to, `${path}/to`, issues);
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.properties;
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.metaEdge;
771
- const from = entry.from;
772
- const to = entry.to;
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.entity;
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.kind !== "string" || !isValidKindName(raw.kind)) {
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.fields, `${path}/fields`, issues, {
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.coveringFields,
910
+ raw["coveringFields"],
990
911
  `${path}/coveringFields`,
991
912
  issues,
992
913
  { allowEmpty: true, label: "coveringFields" }
993
914
  );
994
- if (raw.unique !== void 0 && typeof raw.unique !== "boolean") {
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.name !== void 0) {
1004
- if (typeof raw.name !== "string" || raw.name.length === 0) {
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.name;
933
+ name = raw["name"];
1013
934
  }
1014
935
  const scopeResult = validateOptionalLiteral(
1015
- raw.scope,
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.where,
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.kind,
954
+ kind: raw["kind"],
1034
955
  name,
1035
956
  fields,
1036
957
  coveringFields,
1037
- unique: raw.unique,
958
+ unique: raw["unique"],
1038
959
  scope,
1039
960
  where
1040
961
  });
1041
962
  }
1042
963
  const directionResult = validateOptionalLiteral(
1043
- raw.direction,
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.kind,
975
+ kind: raw["kind"],
1055
976
  name,
1056
977
  direction,
1057
978
  fields,
1058
979
  coveringFields,
1059
- unique: raw.unique,
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.field !== "string" || raw.field.length === 0) {
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.op !== "string" || !RUNTIME_INDEX_WHERE_OPS.has(raw.op)) {
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.field,
1152
- op: raw.op
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.type;
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.minLength,
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.maxLength,
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.pattern !== void 0) {
1262
- if (typeof raw.pattern === "string") {
1182
+ if (raw["pattern"] !== void 0) {
1183
+ if (typeof raw["pattern"] === "string") {
1263
1184
  try {
1264
- new RegExp(raw.pattern);
1265
- pattern = raw.pattern;
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.format !== void 0) {
1283
- if (typeof raw.format !== "string") {
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.format)}.`,
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.format)) {
1290
- format = raw.format;
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.format}". Supported: ${[...SUPPORTED_STRING_FORMATS].join(", ")}.`,
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.min,
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.max,
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.int,
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.values;
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.items;
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.type;
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.properties;
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.type;
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.optional,
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.searchable !== void 0) {
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.searchable)) {
1550
- const searchableRaw = raw.searchable;
1551
- const language = searchableRaw.language;
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.embedding !== void 0) {
1495
+ if (raw["embedding"] !== void 0) {
1575
1496
  if (propertyType === "array") {
1576
- const itemsRaw = raw.items;
1577
- const itemType = isPlainObject(itemsRaw) ? itemsRaw.type : void 0;
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.embedding)) {
1585
- const dim = raw.embedding.dimensions;
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.description !== void 0) {
1624
- if (typeof raw.description === "string") {
1625
- description = raw.description;
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.name;
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.fields;
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.scope,
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.collation,
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.where === void 0 ? void 0 : validateUniqueWhere(
1758
- constraint.where,
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.where !== void 0 && where === void 0) continue;
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.field;
1797
- const op = raw.op;
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.path;
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 { ALL_META_EDGE_NAMES, 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, META_EDGE_BROADER, META_EDGE_DIFFERENT_FROM, META_EDGE_DISJOINT_WITH, META_EDGE_EQUIVALENT_TO, META_EDGE_HAS_PART, META_EDGE_IMPLIES, META_EDGE_INVERSE_OF, META_EDGE_NARROWER, META_EDGE_PART_OF, META_EDGE_RELATED_TO, META_EDGE_SAME_AS, META_EDGE_SUB_CLASS_OF, RemoveCompileTimeKindError, assertJsonValue, computeTransitiveClosure, err, invertClosure, isErr, isOk, isReachable, ok, unwrap, validateGraphExtension };
1925
- //# sourceMappingURL=chunk-L7HQ2OSI.js.map
1926
- //# sourceMappingURL=chunk-L7HQ2OSI.js.map
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