@nicia-ai/typegraph 0.42.0 → 0.43.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 (63) hide show
  1. package/dist/backend/postgres/index.cjs +2 -2
  2. package/dist/backend/postgres/index.js +1 -1
  3. package/dist/backend/postgres/pglite-store.cjs +7 -7
  4. package/dist/backend/postgres/pglite-store.d.cts +1 -1
  5. package/dist/backend/postgres/pglite-store.d.ts +1 -1
  6. package/dist/backend/postgres/pglite-store.js +5 -5
  7. package/dist/backend/postgres/pglite.cjs +3 -3
  8. package/dist/backend/postgres/pglite.js +2 -2
  9. package/dist/backend/sqlite/local-store.cjs +4 -4
  10. package/dist/backend/sqlite/local-store.d.cts +1 -1
  11. package/dist/backend/sqlite/local-store.d.ts +1 -1
  12. package/dist/backend/sqlite/local-store.js +3 -3
  13. package/dist/{chunk-RTUCOEIO.cjs → chunk-5Q3P6OIC.cjs} +4 -4
  14. package/dist/{chunk-RTUCOEIO.cjs.map → chunk-5Q3P6OIC.cjs.map} +1 -1
  15. package/dist/{chunk-7TOT7RKY.cjs → chunk-5ZPRE4CV.cjs} +97 -57
  16. package/dist/chunk-5ZPRE4CV.cjs.map +1 -0
  17. package/dist/{chunk-5P6IPIT6.cjs → chunk-64LERBFM.cjs} +17 -17
  18. package/dist/{chunk-5P6IPIT6.cjs.map → chunk-64LERBFM.cjs.map} +1 -1
  19. package/dist/{chunk-K2HHCWZO.cjs → chunk-BLBG2VZ5.cjs} +51 -51
  20. package/dist/{chunk-K2HHCWZO.cjs.map → chunk-BLBG2VZ5.cjs.map} +1 -1
  21. package/dist/{chunk-EVFL2ZY5.js → chunk-CTWZPYJW.js} +2 -2
  22. package/dist/chunk-CTWZPYJW.js.map +1 -0
  23. package/dist/{chunk-DP7KC6CL.js → chunk-JNXZQBN3.js} +72 -25
  24. package/dist/chunk-JNXZQBN3.js.map +1 -0
  25. package/dist/{chunk-2SO5I5AI.cjs → chunk-KDRF3NR2.cjs} +2 -2
  26. package/dist/chunk-KDRF3NR2.cjs.map +1 -0
  27. package/dist/{chunk-WYQILW5V.js → chunk-L2BYRYHC.js} +4 -4
  28. package/dist/{chunk-WYQILW5V.js.map → chunk-L2BYRYHC.js.map} +1 -1
  29. package/dist/{chunk-6NB73BXV.js → chunk-L5AUCL5P.js} +3 -3
  30. package/dist/{chunk-6NB73BXV.js.map → chunk-L5AUCL5P.js.map} +1 -1
  31. package/dist/{chunk-277UZV7X.cjs → chunk-NDQLPKBX.cjs} +315 -268
  32. package/dist/chunk-NDQLPKBX.cjs.map +1 -0
  33. package/dist/{chunk-LTVBD56M.js → chunk-NXIZL7ZZ.js} +3 -3
  34. package/dist/{chunk-LTVBD56M.js.map → chunk-NXIZL7ZZ.js.map} +1 -1
  35. package/dist/{chunk-BGXKXGDI.js → chunk-YPVQYM3L.js} +99 -59
  36. package/dist/chunk-YPVQYM3L.js.map +1 -0
  37. package/dist/graph-merge/index.cjs +25 -25
  38. package/dist/graph-merge/index.d.cts +1 -1
  39. package/dist/graph-merge/index.d.ts +1 -1
  40. package/dist/graph-merge/index.js +4 -4
  41. package/dist/index.cjs +49 -49
  42. package/dist/index.d.cts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +3 -3
  45. package/dist/interchange/index.cjs +22 -22
  46. package/dist/interchange/index.d.cts +1 -1
  47. package/dist/interchange/index.d.ts +1 -1
  48. package/dist/interchange/index.js +3 -3
  49. package/dist/profiler/index.d.cts +1 -1
  50. package/dist/profiler/index.d.ts +1 -1
  51. package/dist/provenance/index.cjs +10 -10
  52. package/dist/provenance/index.d.cts +1 -1
  53. package/dist/provenance/index.d.ts +1 -1
  54. package/dist/provenance/index.js +1 -1
  55. package/dist/{store-view-CNcOG8bQ.d.cts → store-view-D1F6KqsE.d.cts} +18 -1
  56. package/dist/{store-view-6C2vTWqf.d.ts → store-view-DdwBNjZQ.d.ts} +18 -1
  57. package/package.json +1 -1
  58. package/dist/chunk-277UZV7X.cjs.map +0 -1
  59. package/dist/chunk-2SO5I5AI.cjs.map +0 -1
  60. package/dist/chunk-7TOT7RKY.cjs.map +0 -1
  61. package/dist/chunk-BGXKXGDI.js.map +0 -1
  62. package/dist/chunk-DP7KC6CL.js.map +0 -1
  63. package/dist/chunk-EVFL2ZY5.js.map +0 -1
@@ -1264,6 +1264,16 @@ type EdgeGetOrCreateByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
1264
1264
  matchOn?: readonly (keyof z.input<E["schema"]>)[];
1265
1265
  /** Existing record behavior. Default: "return" */
1266
1266
  ifExists?: IfExistsMode;
1267
+ /**
1268
+ * Valid-time start for a newly created edge. Ignored when an edge is found,
1269
+ * updated, or resurrected.
1270
+ */
1271
+ validFrom?: string;
1272
+ /**
1273
+ * Valid-time end for a created, updated, or resurrected edge. Ignored when
1274
+ * the operation returns an existing edge without writing.
1275
+ */
1276
+ validTo?: string;
1267
1277
  }>;
1268
1278
  /**
1269
1279
  * A collection of nodes of a specific type.
@@ -1685,6 +1695,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
1685
1695
  * property fields, only edges whose properties match on those fields are considered.
1686
1696
  * Soft-deleted matches are resurrected when cardinality allows.
1687
1697
  *
1698
+ * `validFrom` only applies on the create branch, defaulting to the
1699
+ * operation's creation timestamp when omitted. `validTo` applies on create,
1700
+ * update, and resurrection, but not when an existing edge is returned
1701
+ * without a write.
1702
+ *
1688
1703
  * @param from - Source node
1689
1704
  * @param to - Target node
1690
1705
  * @param props - Full properties for create, or merge source for update
@@ -1701,7 +1716,9 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
1701
1716
  from: NodeRef<From>;
1702
1717
  to: NodeRef<To>;
1703
1718
  props: z.input<E["schema"]>;
1704
- }>[], options?: EdgeGetOrCreateByEndpointsOptions<E>) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
1719
+ validFrom?: string;
1720
+ validTo?: string;
1721
+ }>[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
1705
1722
  }>;
1706
1723
  /**
1707
1724
  * Extract uniqueness constraint names from a NodeRegistration.
@@ -1264,6 +1264,16 @@ type EdgeGetOrCreateByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
1264
1264
  matchOn?: readonly (keyof z.input<E["schema"]>)[];
1265
1265
  /** Existing record behavior. Default: "return" */
1266
1266
  ifExists?: IfExistsMode;
1267
+ /**
1268
+ * Valid-time start for a newly created edge. Ignored when an edge is found,
1269
+ * updated, or resurrected.
1270
+ */
1271
+ validFrom?: string;
1272
+ /**
1273
+ * Valid-time end for a created, updated, or resurrected edge. Ignored when
1274
+ * the operation returns an existing edge without writing.
1275
+ */
1276
+ validTo?: string;
1267
1277
  }>;
1268
1278
  /**
1269
1279
  * A collection of nodes of a specific type.
@@ -1685,6 +1695,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
1685
1695
  * property fields, only edges whose properties match on those fields are considered.
1686
1696
  * Soft-deleted matches are resurrected when cardinality allows.
1687
1697
  *
1698
+ * `validFrom` only applies on the create branch, defaulting to the
1699
+ * operation's creation timestamp when omitted. `validTo` applies on create,
1700
+ * update, and resurrection, but not when an existing edge is returned
1701
+ * without a write.
1702
+ *
1688
1703
  * @param from - Source node
1689
1704
  * @param to - Target node
1690
1705
  * @param props - Full properties for create, or merge source for update
@@ -1701,7 +1716,9 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
1701
1716
  from: NodeRef<From>;
1702
1717
  to: NodeRef<To>;
1703
1718
  props: z.input<E["schema"]>;
1704
- }>[], options?: EdgeGetOrCreateByEndpointsOptions<E>) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
1719
+ validFrom?: string;
1720
+ validTo?: string;
1721
+ }>[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
1705
1722
  }>;
1706
1723
  /**
1707
1724
  * Extract uniqueness constraint names from a NodeRegistration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",