@nicia-ai/typegraph 0.32.0 → 0.34.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 (264) hide show
  1. package/README.md +51 -0
  2. package/dist/backend/postgres/index.cjs +36 -19
  3. package/dist/backend/postgres/index.d.cts +6 -6
  4. package/dist/backend/postgres/index.d.ts +6 -6
  5. package/dist/backend/postgres/index.js +14 -9
  6. package/dist/backend/postgres/pglite.cjs +18 -13
  7. package/dist/backend/postgres/pglite.cjs.map +1 -1
  8. package/dist/backend/postgres/pglite.d.cts +3 -3
  9. package/dist/backend/postgres/pglite.d.ts +3 -3
  10. package/dist/backend/postgres/pglite.js +14 -9
  11. package/dist/backend/postgres/pglite.js.map +1 -1
  12. package/dist/backend/sqlite/index.cjs +34 -17
  13. package/dist/backend/sqlite/index.d.cts +7 -7
  14. package/dist/backend/sqlite/index.d.ts +7 -7
  15. package/dist/backend/sqlite/index.js +13 -8
  16. package/dist/backend/sqlite/libsql.cjs +19 -14
  17. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  18. package/dist/backend/sqlite/libsql.d.cts +12 -5
  19. package/dist/backend/sqlite/libsql.d.ts +12 -5
  20. package/dist/backend/sqlite/libsql.js +15 -10
  21. package/dist/backend/sqlite/libsql.js.map +1 -1
  22. package/dist/backend/sqlite/local.cjs +19 -14
  23. package/dist/backend/sqlite/local.cjs.map +1 -1
  24. package/dist/backend/sqlite/local.d.cts +3 -3
  25. package/dist/backend/sqlite/local.d.ts +3 -3
  26. package/dist/backend/sqlite/local.js +14 -9
  27. package/dist/backend/sqlite/local.js.map +1 -1
  28. package/dist/chunk-2EBMPJBO.js +16 -0
  29. package/dist/chunk-2EBMPJBO.js.map +1 -0
  30. package/dist/{chunk-CFNT3ITG.cjs → chunk-2JXB3NYJ.cjs} +15 -35
  31. package/dist/chunk-2JXB3NYJ.cjs.map +1 -0
  32. package/dist/chunk-2MRAX3UE.js +105 -0
  33. package/dist/chunk-2MRAX3UE.js.map +1 -0
  34. package/dist/{chunk-2LAT5BIK.cjs → chunk-3BRVBQQD.cjs} +2328 -3131
  35. package/dist/chunk-3BRVBQQD.cjs.map +1 -0
  36. package/dist/chunk-3E7SNSIA.cjs +55 -0
  37. package/dist/chunk-3E7SNSIA.cjs.map +1 -0
  38. package/dist/{chunk-FDN43KXV.cjs → chunk-3Z6TW3CT.cjs} +20 -19
  39. package/dist/chunk-3Z6TW3CT.cjs.map +1 -0
  40. package/dist/{chunk-IJORSAC3.js → chunk-4DIBPQNJ.js} +6 -4
  41. package/dist/chunk-4DIBPQNJ.js.map +1 -0
  42. package/dist/chunk-4S2FXGBJ.js +9 -0
  43. package/dist/chunk-4S2FXGBJ.js.map +1 -0
  44. package/dist/chunk-5IQIX7LU.cjs +2070 -0
  45. package/dist/chunk-5IQIX7LU.cjs.map +1 -0
  46. package/dist/{chunk-CWFPJ3RC.js → chunk-6GNSY7AV.js} +3 -3
  47. package/dist/{chunk-CWFPJ3RC.js.map → chunk-6GNSY7AV.js.map} +1 -1
  48. package/dist/{chunk-LAZGHOZW.cjs → chunk-6HVOHZHS.cjs} +184 -117
  49. package/dist/chunk-6HVOHZHS.cjs.map +1 -0
  50. package/dist/chunk-6SCVW4AS.js +20 -0
  51. package/dist/chunk-6SCVW4AS.js.map +1 -0
  52. package/dist/chunk-A7SZZFAG.js +2010 -0
  53. package/dist/chunk-A7SZZFAG.js.map +1 -0
  54. package/dist/chunk-ACSVZPK7.cjs +21 -0
  55. package/dist/chunk-ACSVZPK7.cjs.map +1 -0
  56. package/dist/{chunk-MXE2U3EX.js → chunk-BVTWD66D.js} +4 -115
  57. package/dist/chunk-BVTWD66D.js.map +1 -0
  58. package/dist/{chunk-W4ZX2GCP.js → chunk-CHXTTSC6.js} +5 -39
  59. package/dist/chunk-CHXTTSC6.js.map +1 -0
  60. package/dist/{chunk-XQFAJVYW.js → chunk-CYX2JTDG.js} +124 -5
  61. package/dist/chunk-CYX2JTDG.js.map +1 -0
  62. package/dist/{chunk-PRMKPFN5.js → chunk-DEQFL35G.js} +4 -3
  63. package/dist/chunk-DEQFL35G.js.map +1 -0
  64. package/dist/chunk-DI74SMXS.cjs +29 -0
  65. package/dist/chunk-DI74SMXS.cjs.map +1 -0
  66. package/dist/{chunk-WWVV44DY.cjs → chunk-G6SOJEDI.cjs} +11 -11
  67. package/dist/{chunk-WWVV44DY.cjs.map → chunk-G6SOJEDI.cjs.map} +1 -1
  68. package/dist/{chunk-LM2IC4ZJ.cjs → chunk-GQANNXXT.cjs} +15 -14
  69. package/dist/chunk-GQANNXXT.cjs.map +1 -0
  70. package/dist/chunk-GZCNZ7QW.js +24 -0
  71. package/dist/chunk-GZCNZ7QW.js.map +1 -0
  72. package/dist/{chunk-KTIEB7VH.cjs → chunk-HK5SATYM.cjs} +35 -58
  73. package/dist/chunk-HK5SATYM.cjs.map +1 -0
  74. package/dist/chunk-HMFK4BXR.cjs +12 -0
  75. package/dist/{chunk-6ZR4QC3O.cjs.map → chunk-HMFK4BXR.cjs.map} +1 -1
  76. package/dist/chunk-ITE4IXAK.js +25 -0
  77. package/dist/chunk-ITE4IXAK.js.map +1 -0
  78. package/dist/chunk-JJRCLAUN.cjs +155 -0
  79. package/dist/chunk-JJRCLAUN.cjs.map +1 -0
  80. package/dist/{chunk-ZFWNO3GE.cjs → chunk-JQGIPGVL.cjs} +66 -2
  81. package/dist/chunk-JQGIPGVL.cjs.map +1 -0
  82. package/dist/{chunk-2BVHPOIG.js → chunk-K2TGS3EN.js} +105 -38
  83. package/dist/chunk-K2TGS3EN.js.map +1 -0
  84. package/dist/chunk-K34OPSJK.js +29 -0
  85. package/dist/chunk-K34OPSJK.js.map +1 -0
  86. package/dist/{chunk-YW7GHMF4.cjs → chunk-KGC4LY5T.cjs} +18 -17
  87. package/dist/chunk-KGC4LY5T.cjs.map +1 -0
  88. package/dist/{chunk-SB65GJNY.cjs → chunk-KNHYNQQ3.cjs} +111 -72
  89. package/dist/chunk-KNHYNQQ3.cjs.map +1 -0
  90. package/dist/{chunk-C4C4Q7A6.js → chunk-KUTNI6SI.js} +6 -21
  91. package/dist/chunk-KUTNI6SI.js.map +1 -0
  92. package/dist/{chunk-NDM5PXEH.js → chunk-LANHCOXB.js} +44 -11
  93. package/dist/chunk-LANHCOXB.js.map +1 -0
  94. package/dist/chunk-N6WTUSBV.cjs +23 -0
  95. package/dist/chunk-N6WTUSBV.cjs.map +1 -0
  96. package/dist/{chunk-73KASJGO.cjs → chunk-NAUA4PW5.cjs} +4 -28
  97. package/dist/chunk-NAUA4PW5.cjs.map +1 -0
  98. package/dist/chunk-QV245VMN.js +145 -0
  99. package/dist/chunk-QV245VMN.js.map +1 -0
  100. package/dist/{chunk-CEF2QOTO.js → chunk-RBV7YCQD.js} +4 -3
  101. package/dist/chunk-RBV7YCQD.js.map +1 -0
  102. package/dist/chunk-RHZWOJVA.cjs +109 -0
  103. package/dist/chunk-RHZWOJVA.cjs.map +1 -0
  104. package/dist/{chunk-6RMLO5O4.cjs → chunk-RRKQAKD6.cjs} +13 -11
  105. package/dist/chunk-RRKQAKD6.cjs.map +1 -0
  106. package/dist/{chunk-TUA3MEJJ.js → chunk-RY2VIWAM.js} +612 -564
  107. package/dist/chunk-RY2VIWAM.js.map +1 -0
  108. package/dist/{chunk-PIHXFF73.js → chunk-SHLY4MCM.js} +3 -3
  109. package/dist/{chunk-PIHXFF73.js.map → chunk-SHLY4MCM.js.map} +1 -1
  110. package/dist/{chunk-HFBRAOF7.js → chunk-T2DWPQNE.js} +103 -64
  111. package/dist/chunk-T2DWPQNE.js.map +1 -0
  112. package/dist/{chunk-WYTUF3QO.js → chunk-T46GR2VY.js} +3 -3
  113. package/dist/{chunk-WYTUF3QO.js.map → chunk-T46GR2VY.js.map} +1 -1
  114. package/dist/{chunk-EEYV6UOE.cjs → chunk-T6SPUYLX.cjs} +5 -43
  115. package/dist/chunk-T6SPUYLX.cjs.map +1 -0
  116. package/dist/{chunk-3QRBXYT5.cjs → chunk-TGJE22RM.cjs} +6 -6
  117. package/dist/{chunk-3QRBXYT5.cjs.map → chunk-TGJE22RM.cjs.map} +1 -1
  118. package/dist/{chunk-YL4F3CMD.cjs → chunk-TOTPVGOG.cjs} +105 -72
  119. package/dist/chunk-TOTPVGOG.cjs.map +1 -0
  120. package/dist/{chunk-3HQDMOBK.cjs → chunk-UJLOZYKT.cjs} +680 -636
  121. package/dist/chunk-UJLOZYKT.cjs.map +1 -0
  122. package/dist/chunk-UNNPKQUG.cjs +1390 -0
  123. package/dist/chunk-UNNPKQUG.cjs.map +1 -0
  124. package/dist/chunk-UR7W5YQK.js +18 -0
  125. package/dist/chunk-UR7W5YQK.js.map +1 -0
  126. package/dist/chunk-V3QNTB7Z.js +1351 -0
  127. package/dist/chunk-V3QNTB7Z.js.map +1 -0
  128. package/dist/{chunk-XKNAK27R.js → chunk-VCGO4V26.js} +4 -3
  129. package/dist/chunk-VCGO4V26.js.map +1 -0
  130. package/dist/{chunk-YQGLVWB2.cjs → chunk-WL2SG7ZV.cjs} +6 -122
  131. package/dist/chunk-WL2SG7ZV.cjs.map +1 -0
  132. package/dist/{chunk-WNORITK6.js → chunk-WLRIWYHQ.js} +2041 -2834
  133. package/dist/chunk-WLRIWYHQ.js.map +1 -0
  134. package/dist/{chunk-JKRKIEVA.cjs → chunk-WVC2Q2FD.cjs} +128 -6
  135. package/dist/chunk-WVC2Q2FD.cjs.map +1 -0
  136. package/dist/chunk-XLUNB2TZ.js +53 -0
  137. package/dist/chunk-XLUNB2TZ.js.map +1 -0
  138. package/dist/chunk-XXVEULWX.js +39 -0
  139. package/dist/chunk-XXVEULWX.js.map +1 -0
  140. package/dist/chunk-YAZE7QZR.cjs +32 -0
  141. package/dist/chunk-YAZE7QZR.cjs.map +1 -0
  142. package/dist/chunk-YC6PWTHY.cjs +44 -0
  143. package/dist/chunk-YC6PWTHY.cjs.map +1 -0
  144. package/dist/chunk-Z5HBYM7U.cjs +11 -0
  145. package/dist/chunk-Z5HBYM7U.cjs.map +1 -0
  146. package/dist/{chunk-454I6GDF.js → chunk-Z5XBMDXU.js} +63 -3
  147. package/dist/chunk-Z5XBMDXU.js.map +1 -0
  148. package/dist/{chunk-CAMMC3E4.cjs → chunk-ZP5WHI4C.cjs} +109 -81
  149. package/dist/chunk-ZP5WHI4C.cjs.map +1 -0
  150. package/dist/{chunk-YCV72E6L.js → chunk-ZURTTSCM.js} +4 -25
  151. package/dist/chunk-ZURTTSCM.js.map +1 -0
  152. package/dist/{chunk-7WW3WL6E.js → chunk-ZV5N4DBG.js} +49 -21
  153. package/dist/chunk-ZV5N4DBG.js.map +1 -0
  154. package/dist/chunk-ZY4GXIVN.cjs +32 -0
  155. package/dist/chunk-ZY4GXIVN.cjs.map +1 -0
  156. package/dist/{ddl-C8e8zDAE.d.ts → ddl-BrmPg61z.d.ts} +3 -3
  157. package/dist/{ddl-CwyG4HoQ.d.cts → ddl-j1-sH6lE.d.cts} +3 -3
  158. package/dist/{extension-types-D1k0inWU.d.cts → extension-types-YGFJPrzK.d.cts} +1 -1
  159. package/dist/{extension-types-D1k0inWU.d.ts → extension-types-YGFJPrzK.d.ts} +1 -1
  160. package/dist/graph-extension/index.cjs +18 -17
  161. package/dist/graph-extension/index.d.cts +4 -4
  162. package/dist/graph-extension/index.d.ts +4 -4
  163. package/dist/graph-extension/index.js +3 -2
  164. package/dist/graph-merge/index.cjs +295 -146
  165. package/dist/graph-merge/index.cjs.map +1 -1
  166. package/dist/graph-merge/index.d.cts +6 -6
  167. package/dist/graph-merge/index.d.ts +6 -6
  168. package/dist/graph-merge/index.js +173 -24
  169. package/dist/graph-merge/index.js.map +1 -1
  170. package/dist/{index-BEK0VtNB.d.ts → index-DGX6D9j1.d.ts} +2 -2
  171. package/dist/{index-C8sSTErx.d.cts → index-SEvUHDA6.d.cts} +2 -2
  172. package/dist/index.cjs +206 -172
  173. package/dist/index.cjs.map +1 -1
  174. package/dist/index.d.cts +25 -55
  175. package/dist/index.d.ts +25 -55
  176. package/dist/index.js +32 -22
  177. package/dist/index.js.map +1 -1
  178. package/dist/indexes/index.cjs +28 -25
  179. package/dist/indexes/index.d.cts +5 -5
  180. package/dist/indexes/index.d.ts +5 -5
  181. package/dist/indexes/index.js +10 -7
  182. package/dist/interchange/index.cjs +25 -16
  183. package/dist/interchange/index.d.cts +5 -5
  184. package/dist/interchange/index.d.ts +5 -5
  185. package/dist/interchange/index.js +12 -3
  186. package/dist/{manager-8htmuGr-.d.ts → manager-BZUeN_BU.d.ts} +2 -2
  187. package/dist/{manager-aVgxbGt-.d.cts → manager-ms9cKdc6.d.cts} +2 -2
  188. package/dist/{materialize-indexes-CAGhqPHQ.d.ts → materialize-indexes-CAkIYFV-.d.ts} +1 -1
  189. package/dist/{materialize-indexes-DEYkU-wr.d.cts → materialize-indexes-D20xNluI.d.cts} +1 -1
  190. package/dist/{postgres-Dhom7iiX.d.ts → postgres-BhpxGMC5.d.cts} +2651 -596
  191. package/dist/{postgres-jgXmD45C.d.cts → postgres-CWHLwNl1.d.ts} +2651 -596
  192. package/dist/profiler/index.cjs +5 -4
  193. package/dist/profiler/index.cjs.map +1 -1
  194. package/dist/profiler/index.d.cts +7 -7
  195. package/dist/profiler/index.d.ts +7 -7
  196. package/dist/profiler/index.js +3 -2
  197. package/dist/profiler/index.js.map +1 -1
  198. package/dist/provenance/index.cjs +591 -0
  199. package/dist/provenance/index.cjs.map +1 -0
  200. package/dist/provenance/index.d.cts +73 -0
  201. package/dist/provenance/index.d.ts +73 -0
  202. package/dist/provenance/index.js +589 -0
  203. package/dist/provenance/index.js.map +1 -0
  204. package/dist/schema/index.cjs +37 -32
  205. package/dist/schema/index.cjs.map +1 -1
  206. package/dist/schema/index.d.cts +7 -7
  207. package/dist/schema/index.d.ts +7 -7
  208. package/dist/schema/index.js +14 -9
  209. package/dist/schema/index.js.map +1 -1
  210. package/dist/{sqlite-DcQ_BCUW.d.cts → sqlite-CGu5SLsw.d.ts} +2726 -455
  211. package/dist/{sqlite-BfLsCEqO.d.ts → sqlite-XrDxNaa7.d.cts} +2726 -455
  212. package/dist/{store-view-pBOUrQte.d.ts → store-view-BlgnhEYf.d.ts} +467 -131
  213. package/dist/{store-view-lTcb_cnp.d.cts → store-view-D09po4H6.d.cts} +467 -131
  214. package/dist/{types-DGDiXAYc.d.ts → types-B1TbZJYS.d.ts} +2 -2
  215. package/dist/{types-Dk8r09KY.d.ts → types-D1Sqeyxy.d.ts} +161 -26
  216. package/dist/{types-5RQwzWXx.d.cts → types-DiE1AO7p.d.cts} +2 -2
  217. package/dist/{types-Dvmn-eal.d.cts → types-DkNnF-7K.d.cts} +161 -26
  218. package/dist/{where-Cx_glEEB.d.cts → where-DKjuofPr.d.cts} +2 -2
  219. package/dist/{where-CHZFELX0.d.ts → where-DrUIIWHb.d.ts} +2 -2
  220. package/package.json +8 -2
  221. package/dist/chunk-2BVHPOIG.js.map +0 -1
  222. package/dist/chunk-2LAT5BIK.cjs.map +0 -1
  223. package/dist/chunk-2YMGNYXY.js +0 -40
  224. package/dist/chunk-2YMGNYXY.js.map +0 -1
  225. package/dist/chunk-3HQDMOBK.cjs.map +0 -1
  226. package/dist/chunk-454I6GDF.js.map +0 -1
  227. package/dist/chunk-6G35I3VW.cjs +0 -40
  228. package/dist/chunk-6G35I3VW.cjs.map +0 -1
  229. package/dist/chunk-6RMLO5O4.cjs.map +0 -1
  230. package/dist/chunk-6ZR4QC3O.cjs +0 -12
  231. package/dist/chunk-73KASJGO.cjs.map +0 -1
  232. package/dist/chunk-7WW3WL6E.js.map +0 -1
  233. package/dist/chunk-C4C4Q7A6.js.map +0 -1
  234. package/dist/chunk-CAMMC3E4.cjs.map +0 -1
  235. package/dist/chunk-CEF2QOTO.js.map +0 -1
  236. package/dist/chunk-CFNT3ITG.cjs.map +0 -1
  237. package/dist/chunk-EEYV6UOE.cjs.map +0 -1
  238. package/dist/chunk-FDN43KXV.cjs.map +0 -1
  239. package/dist/chunk-HFBRAOF7.js.map +0 -1
  240. package/dist/chunk-IJORSAC3.js.map +0 -1
  241. package/dist/chunk-JKRKIEVA.cjs.map +0 -1
  242. package/dist/chunk-KTIEB7VH.cjs.map +0 -1
  243. package/dist/chunk-LAZGHOZW.cjs.map +0 -1
  244. package/dist/chunk-LM2IC4ZJ.cjs.map +0 -1
  245. package/dist/chunk-M6OC455F.js +0 -65
  246. package/dist/chunk-M6OC455F.js.map +0 -1
  247. package/dist/chunk-MXE2U3EX.js.map +0 -1
  248. package/dist/chunk-NDM5PXEH.js.map +0 -1
  249. package/dist/chunk-PRMKPFN5.js.map +0 -1
  250. package/dist/chunk-RP7YITHX.cjs +0 -70
  251. package/dist/chunk-RP7YITHX.cjs.map +0 -1
  252. package/dist/chunk-SAJSMR2B.js +0 -35
  253. package/dist/chunk-SAJSMR2B.js.map +0 -1
  254. package/dist/chunk-SB65GJNY.cjs.map +0 -1
  255. package/dist/chunk-TUA3MEJJ.js.map +0 -1
  256. package/dist/chunk-W4ZX2GCP.js.map +0 -1
  257. package/dist/chunk-WNORITK6.js.map +0 -1
  258. package/dist/chunk-XKNAK27R.js.map +0 -1
  259. package/dist/chunk-XQFAJVYW.js.map +0 -1
  260. package/dist/chunk-YCV72E6L.js.map +0 -1
  261. package/dist/chunk-YL4F3CMD.cjs.map +0 -1
  262. package/dist/chunk-YQGLVWB2.cjs.map +0 -1
  263. package/dist/chunk-YW7GHMF4.cjs.map +0 -1
  264. package/dist/chunk-ZFWNO3GE.cjs.map +0 -1
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var chunkDI74SMXS_cjs = require('./chunk-DI74SMXS.cjs');
3
4
  var chunkJIEJCTDS_cjs = require('./chunk-JIEJCTDS.cjs');
4
5
  var chunkFLRCVI2G_cjs = require('./chunk-FLRCVI2G.cjs');
5
6
 
@@ -274,28 +275,6 @@ var GRAPH_EXTENSION_TOP_LEVEL_KEYS = [
274
275
  "indexes"
275
276
  ];
276
277
 
277
- // src/utils/object.ts
278
- function isPlainObject(value) {
279
- if (typeof value !== "object" || value === null) return false;
280
- const prototype = Object.getPrototypeOf(value);
281
- return prototype === Object.prototype || prototype === null;
282
- }
283
- function compactUndefined(value) {
284
- const result = {};
285
- for (const [key, fieldValue] of Object.entries(value)) {
286
- if (fieldValue !== void 0) result[key] = fieldValue;
287
- }
288
- return result;
289
- }
290
- function freezeDeep(value) {
291
- if (value === null || typeof value !== "object") return value;
292
- if (Object.isFrozen(value)) return value;
293
- for (const nested of Object.values(value)) {
294
- freezeDeep(nested);
295
- }
296
- return Object.freeze(value);
297
- }
298
-
299
278
  // src/core/json-value.ts
300
279
  function assertJsonValue(value, rootLabel, ownerKind) {
301
280
  walk(value, rootLabel, ownerKind);
@@ -319,7 +298,7 @@ function walk(value, path, ownerKind) {
319
298
  }
320
299
  return;
321
300
  }
322
- if (!isPlainObject(value)) {
301
+ if (!chunkDI74SMXS_cjs.isPlainObject(value)) {
323
302
  throwInvalid(path, describeNonPlain(value), ownerKind);
324
303
  }
325
304
  for (const [key, nested] of Object.entries(value)) {
@@ -573,7 +552,7 @@ var EDGE_INDEX_KEYS = /* @__PURE__ */ new Set([
573
552
  function validateGraphExtension(input, options = {}) {
574
553
  const issues = [];
575
554
  const strict = options.strict === true;
576
- if (!isPlainObject(input)) {
555
+ if (!chunkDI74SMXS_cjs.isPlainObject(input)) {
577
556
  issues.push({
578
557
  path: "",
579
558
  message: "Document must be a plain object.",
@@ -634,7 +613,7 @@ function validateVersion(raw, issues) {
634
613
  }
635
614
  function validateNodesSection(rawNodes, issues, strict) {
636
615
  if (rawNodes === void 0) return void 0;
637
- if (!isPlainObject(rawNodes)) {
616
+ if (!chunkDI74SMXS_cjs.isPlainObject(rawNodes)) {
638
617
  issues.push({
639
618
  path: "/nodes",
640
619
  message: "`nodes` must be a plain object keyed by node-kind name.",
@@ -670,7 +649,7 @@ function validateNodesSection(rawNodes, issues, strict) {
670
649
  return result;
671
650
  }
672
651
  function validateNodeDocument(kindName, raw, path, issues, strict) {
673
- if (!isPlainObject(raw)) {
652
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
674
653
  issues.push({
675
654
  path,
676
655
  message: `Node "${kindName}" must be a plain object.`,
@@ -719,7 +698,7 @@ function validateNodeDocument(kindName, raw, path, issues, strict) {
719
698
  issues,
720
699
  strict
721
700
  );
722
- return compactUndefined({
701
+ return chunkDI74SMXS_cjs.compactUndefined({
723
702
  description,
724
703
  annotations,
725
704
  properties,
@@ -728,7 +707,7 @@ function validateNodeDocument(kindName, raw, path, issues, strict) {
728
707
  }
729
708
  function validateEdgesSection(rawEdges, issues, strict) {
730
709
  if (rawEdges === void 0) return void 0;
731
- if (!isPlainObject(rawEdges)) {
710
+ if (!chunkDI74SMXS_cjs.isPlainObject(rawEdges)) {
732
711
  issues.push({
733
712
  path: "/edges",
734
713
  message: "`edges` must be a plain object keyed by edge-kind name.",
@@ -764,7 +743,7 @@ function validateEdgesSection(rawEdges, issues, strict) {
764
743
  return result;
765
744
  }
766
745
  function validateEdgeDocument(kindName, raw, path, issues, strict) {
767
- if (!isPlainObject(raw)) {
746
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
768
747
  issues.push({
769
748
  path,
770
749
  message: `Edge "${kindName}" must be a plain object.`,
@@ -808,7 +787,7 @@ function validateEdgeDocument(kindName, raw, path, issues, strict) {
808
787
  strict
809
788
  );
810
789
  if (properties === void 0) return void 0;
811
- return compactUndefined({
790
+ return chunkDI74SMXS_cjs.compactUndefined({
812
791
  description,
813
792
  annotations,
814
793
  from,
@@ -860,7 +839,7 @@ function validateOntologySection(raw, issues, strict) {
860
839
  const result = [];
861
840
  for (const [index, entry] of raw.entries()) {
862
841
  const path = `/ontology/${index}`;
863
- if (!isPlainObject(entry)) {
842
+ if (!chunkDI74SMXS_cjs.isPlainObject(entry)) {
864
843
  issues.push({
865
844
  path,
866
845
  message: "Ontology entry must be a plain object.",
@@ -1055,7 +1034,7 @@ function validateIndexesSection(rawIndexes, issues, strict) {
1055
1034
  return result;
1056
1035
  }
1057
1036
  function validateIndexEntry(raw, path, issues, strict) {
1058
- if (!isPlainObject(raw)) {
1037
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
1059
1038
  issues.push({
1060
1039
  path,
1061
1040
  message: "Index entry must be a plain object.",
@@ -1139,7 +1118,7 @@ function validateIndexEntry(raw, path, issues, strict) {
1139
1118
  strict
1140
1119
  );
1141
1120
  if (entity === "node") {
1142
- return compactUndefined({
1121
+ return chunkDI74SMXS_cjs.compactUndefined({
1143
1122
  entity: "node",
1144
1123
  kind: raw.kind,
1145
1124
  name,
@@ -1160,7 +1139,7 @@ function validateIndexEntry(raw, path, issues, strict) {
1160
1139
  );
1161
1140
  if (!directionResult.ok) return void 0;
1162
1141
  const direction = directionResult.value;
1163
- return compactUndefined({
1142
+ return chunkDI74SMXS_cjs.compactUndefined({
1164
1143
  entity: "edge",
1165
1144
  kind: raw.kind,
1166
1145
  name,
@@ -1224,7 +1203,7 @@ function validateStringList(raw, path, issues, options) {
1224
1203
  }
1225
1204
  function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
1226
1205
  if (raw === void 0) return void 0;
1227
- if (!isPlainObject(raw)) {
1206
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
1228
1207
  issues.push({
1229
1208
  path,
1230
1209
  message: "Index `where` must be a plain object.",
@@ -1264,7 +1243,7 @@ function validateGraphExtensionIndexWhere(raw, path, issues, strict) {
1264
1243
  });
1265
1244
  }
1266
1245
  function validatePropertiesMap(raw, path, ownerType, ownerName, issues, strict) {
1267
- if (!isPlainObject(raw)) {
1246
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
1268
1247
  issues.push({
1269
1248
  path,
1270
1249
  message: `\`properties\` must be a plain object.`,
@@ -1305,7 +1284,7 @@ function validatePropertiesMap(raw, path, ownerType, ownerName, issues, strict)
1305
1284
  return result;
1306
1285
  }
1307
1286
  function validateProperty(raw, path, depth, issues, strict) {
1308
- if (!isPlainObject(raw)) {
1287
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
1309
1288
  issues.push({
1310
1289
  path,
1311
1290
  message: "Property descriptor must be a plain object with a `type` field.",
@@ -1535,7 +1514,7 @@ function validateArrayProperty(raw, path, depth, issues, strict) {
1535
1514
  });
1536
1515
  return void 0;
1537
1516
  }
1538
- if (!isPlainObject(itemsRaw)) {
1517
+ if (!chunkDI74SMXS_cjs.isPlainObject(itemsRaw)) {
1539
1518
  issues.push({
1540
1519
  path: `${path}/items`,
1541
1520
  message: "`array.items` must be a plain property descriptor.",
@@ -1581,7 +1560,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
1581
1560
  return void 0;
1582
1561
  }
1583
1562
  const propertiesRaw = raw.properties;
1584
- if (!isPlainObject(propertiesRaw)) {
1563
+ if (!chunkDI74SMXS_cjs.isPlainObject(propertiesRaw)) {
1585
1564
  issues.push({
1586
1565
  path: `${path}/properties`,
1587
1566
  message: "`object.properties` must be a plain object.",
@@ -1601,7 +1580,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
1601
1580
  const fields = {};
1602
1581
  for (const [name, value] of propertiesEntries) {
1603
1582
  const fieldPath = `${path}/properties/${chunkFLRCVI2G_cjs.encodeJsonPointerSegment(name)}`;
1604
- if (!isPlainObject(value)) {
1583
+ if (!chunkDI74SMXS_cjs.isPlainObject(value)) {
1605
1584
  issues.push({
1606
1585
  path: fieldPath,
1607
1586
  message: "Object field descriptor must be a plain object.",
@@ -1631,7 +1610,7 @@ function validateObjectProperty(raw, path, depth, issues, strict) {
1631
1610
  );
1632
1611
  }
1633
1612
  function finalizeProperty(type, specific, modifiers) {
1634
- return compactUndefined({
1613
+ return chunkDI74SMXS_cjs.compactUndefined({
1635
1614
  type,
1636
1615
  ...specific,
1637
1616
  optional: modifiers.optional,
@@ -1657,7 +1636,7 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
1657
1636
  message: `\`searchable\` is only valid on string properties (got "${propertyType}").`,
1658
1637
  code: "INVALID_MODIFIER_TARGET"
1659
1638
  });
1660
- } else if (isPlainObject(raw.searchable)) {
1639
+ } else if (chunkDI74SMXS_cjs.isPlainObject(raw.searchable)) {
1661
1640
  const searchableRaw = raw.searchable;
1662
1641
  const language = searchableRaw.language;
1663
1642
  if (language === void 0) {
@@ -1685,14 +1664,14 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
1685
1664
  if (raw.embedding !== void 0) {
1686
1665
  if (propertyType === "array") {
1687
1666
  const itemsRaw = raw.items;
1688
- const itemType = isPlainObject(itemsRaw) ? itemsRaw.type : void 0;
1667
+ const itemType = chunkDI74SMXS_cjs.isPlainObject(itemsRaw) ? itemsRaw.type : void 0;
1689
1668
  if (itemType !== "number") {
1690
1669
  issues.push({
1691
1670
  path: `${path}/embedding`,
1692
1671
  message: '`embedding` requires `array.items.type === "number"`.',
1693
1672
  code: "INVALID_MODIFIER_TARGET"
1694
1673
  });
1695
- } else if (isPlainObject(raw.embedding)) {
1674
+ } else if (chunkDI74SMXS_cjs.isPlainObject(raw.embedding)) {
1696
1675
  const dim = raw.embedding.dimensions;
1697
1676
  if (typeof dim !== "number" || !Number.isInteger(dim) || dim <= 0) {
1698
1677
  issues.push({
@@ -1701,7 +1680,7 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
1701
1680
  code: "INVALID_EMBEDDING_DIMENSIONS"
1702
1681
  });
1703
1682
  } else {
1704
- const itemsObject = isPlainObject(itemsRaw) ? itemsRaw : {};
1683
+ const itemsObject = chunkDI74SMXS_cjs.isPlainObject(itemsRaw) ? itemsRaw : {};
1705
1684
  const extraneous = Object.keys(itemsObject).filter(
1706
1685
  (key) => key !== "type"
1707
1686
  );
@@ -1743,7 +1722,7 @@ function validatePropertyModifiers(raw, path, propertyType, issues) {
1743
1722
  }
1744
1723
  }
1745
1724
  if (issues.length > issuesAtEntry) return void 0;
1746
- return compactUndefined({
1725
+ return chunkDI74SMXS_cjs.compactUndefined({
1747
1726
  optional,
1748
1727
  searchable,
1749
1728
  embedding,
@@ -1764,7 +1743,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
1764
1743
  const names = /* @__PURE__ */ new Set();
1765
1744
  for (const [index, entry] of raw.entries()) {
1766
1745
  const constraintPath = `${path}/${index}`;
1767
- if (!isPlainObject(entry)) {
1746
+ if (!chunkDI74SMXS_cjs.isPlainObject(entry)) {
1768
1747
  issues.push({
1769
1748
  path: constraintPath,
1770
1749
  message: "Unique constraint must be a plain object.",
@@ -1874,7 +1853,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
1874
1853
  );
1875
1854
  if (constraint.where !== void 0 && where === void 0) continue;
1876
1855
  result.push(
1877
- compactUndefined({
1856
+ chunkDI74SMXS_cjs.compactUndefined({
1878
1857
  name,
1879
1858
  fields,
1880
1859
  scope,
@@ -1886,7 +1865,7 @@ function validateUniqueConstraints(raw, path, properties, issues, strict) {
1886
1865
  return result;
1887
1866
  }
1888
1867
  function validateUniqueWhere(raw, path, properties, issues, strict) {
1889
- if (!isPlainObject(raw)) {
1868
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
1890
1869
  issues.push({
1891
1870
  path,
1892
1871
  message: "Unique constraint `where` must be `{ field, op }`.",
@@ -1934,7 +1913,7 @@ function validateUniqueWhere(raw, path, properties, issues, strict) {
1934
1913
  }
1935
1914
  function validateAnnotations(raw, path, ownerLabel, issues) {
1936
1915
  if (raw === void 0) return void 0;
1937
- if (!isPlainObject(raw)) {
1916
+ if (!chunkDI74SMXS_cjs.isPlainObject(raw)) {
1938
1917
  issues.push({
1939
1918
  path,
1940
1919
  message: `Annotations must be a plain JSON object.`,
@@ -2020,14 +1999,14 @@ function describeUnknownValue(value) {
2020
1999
  }
2021
2000
  function freezeDocument(input) {
2022
2001
  return Object.freeze(
2023
- compactUndefined({
2002
+ chunkDI74SMXS_cjs.compactUndefined({
2024
2003
  version: input.version,
2025
- nodes: input.nodes === void 0 ? void 0 : freezeDeep(input.nodes),
2026
- edges: input.edges === void 0 ? void 0 : freezeDeep(input.edges),
2004
+ nodes: input.nodes === void 0 ? void 0 : chunkDI74SMXS_cjs.freezeDeep(input.nodes),
2005
+ edges: input.edges === void 0 ? void 0 : chunkDI74SMXS_cjs.freezeDeep(input.edges),
2027
2006
  ontology: input.ontology === void 0 ? void 0 : Object.freeze(
2028
2007
  input.ontology.map((entry) => Object.freeze({ ...entry }))
2029
2008
  ),
2030
- indexes: input.indexes === void 0 ? void 0 : Object.freeze(input.indexes.map((entry) => freezeDeep({ ...entry })))
2009
+ indexes: input.indexes === void 0 ? void 0 : Object.freeze(input.indexes.map((entry) => chunkDI74SMXS_cjs.freezeDeep({ ...entry })))
2031
2010
  })
2032
2011
  );
2033
2012
  }
@@ -2062,11 +2041,9 @@ exports.RESERVED_NODE_KEYS = RESERVED_NODE_KEYS;
2062
2041
  exports.RemoveCompileTimeKindError = RemoveCompileTimeKindError;
2063
2042
  exports.assertJsonValue = assertJsonValue;
2064
2043
  exports.assertSchemaKeysAreFree = assertSchemaKeysAreFree;
2065
- exports.compactUndefined = compactUndefined;
2066
2044
  exports.computeTransitiveClosure = computeTransitiveClosure;
2067
2045
  exports.err = err;
2068
2046
  exports.filterReservedKeys = filterReservedKeys;
2069
- exports.freezeDeep = freezeDeep;
2070
2047
  exports.invertClosure = invertClosure;
2071
2048
  exports.isErr = isErr;
2072
2049
  exports.isOk = isOk;
@@ -2075,5 +2052,5 @@ exports.ok = ok;
2075
2052
  exports.unwrap = unwrap;
2076
2053
  exports.validateGraphExtension = validateGraphExtension;
2077
2054
  exports.validateProjectionField = validateProjectionField;
2078
- //# sourceMappingURL=chunk-KTIEB7VH.cjs.map
2079
- //# sourceMappingURL=chunk-KTIEB7VH.cjs.map
2055
+ //# sourceMappingURL=chunk-HK5SATYM.cjs.map
2056
+ //# sourceMappingURL=chunk-HK5SATYM.cjs.map