@nicia-ai/typegraph 0.6.0 → 0.8.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 (53) hide show
  1. package/dist/{ast-Cq9qrnNP.d.cts → ast-Bh2NDeaK.d.cts} +1 -1
  2. package/dist/{ast-CG87Zr6p.d.ts → ast-COMyNeMn.d.ts} +1 -1
  3. package/dist/backend/postgres/index.d.cts +7 -7
  4. package/dist/backend/postgres/index.d.ts +7 -7
  5. package/dist/backend/sqlite/index.d.cts +7 -7
  6. package/dist/backend/sqlite/index.d.ts +7 -7
  7. package/dist/backend/sqlite/local.d.cts +5 -5
  8. package/dist/backend/sqlite/local.d.ts +5 -5
  9. package/dist/{chunk-LDM2AFKZ.cjs → chunk-7VITUTRA.cjs} +6 -6
  10. package/dist/{chunk-LDM2AFKZ.cjs.map → chunk-7VITUTRA.cjs.map} +1 -1
  11. package/dist/{chunk-TGDFBLGS.js → chunk-IRFD3MEU.js} +12 -12
  12. package/dist/chunk-IRFD3MEU.js.map +1 -0
  13. package/dist/{chunk-K2ROKOK3.cjs → chunk-NI2GV74U.cjs} +12 -12
  14. package/dist/chunk-NI2GV74U.cjs.map +1 -0
  15. package/dist/{chunk-M5SOQ7UV.js → chunk-PYV4ADC6.js} +3 -3
  16. package/dist/{chunk-M5SOQ7UV.js.map → chunk-PYV4ADC6.js.map} +1 -1
  17. package/dist/{ddl-Bcyb4DW1.d.cts → ddl-BJg93HDN.d.cts} +2 -2
  18. package/dist/{ddl-D7DQx8w8.d.ts → ddl-CsfWcl_B.d.ts} +2 -2
  19. package/dist/index.cjs +61 -61
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +10 -10
  22. package/dist/index.d.ts +10 -10
  23. package/dist/index.js +4 -4
  24. package/dist/index.js.map +1 -1
  25. package/dist/indexes/index.d.cts +5 -5
  26. package/dist/indexes/index.d.ts +5 -5
  27. package/dist/interchange/index.cjs +6 -6
  28. package/dist/interchange/index.d.cts +5 -5
  29. package/dist/interchange/index.d.ts +5 -5
  30. package/dist/interchange/index.js +1 -1
  31. package/dist/{manager-DGQ9UF18.d.ts → manager-BCLhWysp.d.ts} +11 -9
  32. package/dist/{manager-BImRiYwz.d.cts → manager-DGSnJa1v.d.cts} +11 -9
  33. package/dist/profiler/index.d.cts +7 -7
  34. package/dist/profiler/index.d.ts +7 -7
  35. package/dist/schema/index.cjs +21 -21
  36. package/dist/schema/index.d.cts +5 -5
  37. package/dist/schema/index.d.ts +5 -5
  38. package/dist/schema/index.js +3 -3
  39. package/dist/{sqlite-FWGZLwDd.d.cts → sqlite-DVca_IIy.d.cts} +1 -1
  40. package/dist/{sqlite-CSJ-fgIm.d.ts → sqlite-H01wIXvB.d.ts} +1 -1
  41. package/dist/{store-DNv1yd3n.d.cts → store-DgzIgrmn.d.cts} +62 -61
  42. package/dist/{store-CscQUG-S.d.ts → store-wqOO3GSy.d.ts} +62 -61
  43. package/dist/{types-D5ggX07j.d.ts → types-1YJKodRv.d.ts} +1 -1
  44. package/dist/{types-BbMn2Ycv.d.cts → types-C8Ra3ROE.d.cts} +2 -2
  45. package/dist/{types-C2rhqkg7.d.ts → types-CC8eB0PB.d.ts} +2 -2
  46. package/dist/{types-DJZoHy5R.d.ts → types-COPePE8_.d.ts} +1 -1
  47. package/dist/{types-DEMAqkA1.d.cts → types-CVtGFpB9.d.cts} +1 -1
  48. package/dist/{types-DolHw9pJ.d.cts → types-DMzKq0d5.d.cts} +11 -1
  49. package/dist/{types-DolHw9pJ.d.ts → types-DMzKq0d5.d.ts} +11 -1
  50. package/dist/{types-SVDEKnU6.d.cts → types-GLkwvQvS.d.cts} +1 -1
  51. package/package.json +6 -1
  52. package/dist/chunk-K2ROKOK3.cjs.map +0 -1
  53. package/dist/chunk-TGDFBLGS.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { T as TemporalMode } from './types-DolHw9pJ.cjs';
1
+ import { T as TemporalMode } from './types-DMzKq0d5.cjs';
2
2
 
3
3
  declare const MAX_JSON_POINTER_DEPTH: 5;
4
4
  type JsonPointer = string & {
@@ -1,4 +1,4 @@
1
- import { T as TemporalMode } from './types-DolHw9pJ.js';
1
+ import { T as TemporalMode } from './types-DMzKq0d5.js';
2
2
 
3
3
  declare const MAX_JSON_POINTER_DEPTH: 5;
4
4
  type JsonPointer = string & {
@@ -1,13 +1,13 @@
1
- import { G as GraphBackend } from '../../types-SVDEKnU6.cjs';
1
+ import { G as GraphBackend } from '../../types-GLkwvQvS.cjs';
2
2
  import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
3
- import { P as PostgresTables } from '../../ddl-Bcyb4DW1.cjs';
4
- export { C as CreatePostgresTablesOptions, b as PostgresTableNames, c as createPostgresTables, e as edges, d as embeddings, f as generatePostgresDDL, h as generatePostgresMigrationSQL, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../ddl-Bcyb4DW1.cjs';
3
+ import { P as PostgresTables } from '../../ddl-BJg93HDN.cjs';
4
+ export { C as CreatePostgresTablesOptions, b as PostgresTableNames, c as createPostgresTables, e as edges, d as embeddings, f as generatePostgresDDL, h as generatePostgresMigrationSQL, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../ddl-BJg93HDN.cjs';
5
5
  import 'drizzle-orm';
6
- import '../../types-DolHw9pJ.cjs';
6
+ import '../../types-DMzKq0d5.cjs';
7
7
  import 'zod';
8
- import '../../types-BbMn2Ycv.cjs';
9
- import '../../ast-Cq9qrnNP.cjs';
10
- import '../../sqlite-FWGZLwDd.cjs';
8
+ import '../../types-C8Ra3ROE.cjs';
9
+ import '../../ast-Bh2NDeaK.cjs';
10
+ import '../../sqlite-DVca_IIy.cjs';
11
11
  import 'drizzle-orm/sqlite-core';
12
12
 
13
13
  type AnyPgDatabase = PgDatabase<PgQueryResultHKT, Record<string, unknown>>;
@@ -1,13 +1,13 @@
1
- import { G as GraphBackend } from '../../types-D5ggX07j.js';
1
+ import { G as GraphBackend } from '../../types-1YJKodRv.js';
2
2
  import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
3
- import { P as PostgresTables } from '../../ddl-D7DQx8w8.js';
4
- export { C as CreatePostgresTablesOptions, b as PostgresTableNames, c as createPostgresTables, e as edges, d as embeddings, f as generatePostgresDDL, h as generatePostgresMigrationSQL, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../ddl-D7DQx8w8.js';
3
+ import { P as PostgresTables } from '../../ddl-CsfWcl_B.js';
4
+ export { C as CreatePostgresTablesOptions, b as PostgresTableNames, c as createPostgresTables, e as edges, d as embeddings, f as generatePostgresDDL, h as generatePostgresMigrationSQL, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../ddl-CsfWcl_B.js';
5
5
  import 'drizzle-orm';
6
- import '../../types-DolHw9pJ.js';
6
+ import '../../types-DMzKq0d5.js';
7
7
  import 'zod';
8
- import '../../types-C2rhqkg7.js';
9
- import '../../ast-CG87Zr6p.js';
10
- import '../../sqlite-CSJ-fgIm.js';
8
+ import '../../types-CC8eB0PB.js';
9
+ import '../../ast-COMyNeMn.js';
10
+ import '../../sqlite-H01wIXvB.js';
11
11
  import 'drizzle-orm/sqlite-core';
12
12
 
13
13
  type AnyPgDatabase = PgDatabase<PgQueryResultHKT, Record<string, unknown>>;
@@ -1,13 +1,13 @@
1
- import { G as GraphBackend } from '../../types-SVDEKnU6.cjs';
1
+ import { G as GraphBackend } from '../../types-GLkwvQvS.cjs';
2
2
  import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
- import { S as SqliteTables } from '../../sqlite-FWGZLwDd.cjs';
4
- export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, b as embeddings, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-FWGZLwDd.cjs';
5
- export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-Bcyb4DW1.cjs';
3
+ import { S as SqliteTables } from '../../sqlite-DVca_IIy.cjs';
4
+ export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, b as embeddings, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-DVca_IIy.cjs';
5
+ export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-BJg93HDN.cjs';
6
6
  import 'drizzle-orm';
7
- import '../../types-DolHw9pJ.cjs';
7
+ import '../../types-DMzKq0d5.cjs';
8
8
  import 'zod';
9
- import '../../types-BbMn2Ycv.cjs';
10
- import '../../ast-Cq9qrnNP.cjs';
9
+ import '../../types-C8Ra3ROE.cjs';
10
+ import '../../ast-Bh2NDeaK.cjs';
11
11
  import 'drizzle-orm/pg-core';
12
12
 
13
13
  type SqliteExecutionProfileHints = Readonly<{
@@ -1,13 +1,13 @@
1
- import { G as GraphBackend } from '../../types-D5ggX07j.js';
1
+ import { G as GraphBackend } from '../../types-1YJKodRv.js';
2
2
  import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
- import { S as SqliteTables } from '../../sqlite-CSJ-fgIm.js';
4
- export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, b as embeddings, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-CSJ-fgIm.js';
5
- export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-D7DQx8w8.js';
3
+ import { S as SqliteTables } from '../../sqlite-H01wIXvB.js';
4
+ export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, b as embeddings, n as nodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-H01wIXvB.js';
5
+ export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-CsfWcl_B.js';
6
6
  import 'drizzle-orm';
7
- import '../../types-DolHw9pJ.js';
7
+ import '../../types-DMzKq0d5.js';
8
8
  import 'zod';
9
- import '../../types-C2rhqkg7.js';
10
- import '../../ast-CG87Zr6p.js';
9
+ import '../../types-CC8eB0PB.js';
10
+ import '../../ast-COMyNeMn.js';
11
11
  import 'drizzle-orm/pg-core';
12
12
 
13
13
  type SqliteExecutionProfileHints = Readonly<{
@@ -1,12 +1,12 @@
1
1
  import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
2
- import { G as GraphBackend } from '../../types-SVDEKnU6.cjs';
3
- import { S as SqliteTables } from '../../sqlite-FWGZLwDd.cjs';
2
+ import { G as GraphBackend } from '../../types-GLkwvQvS.cjs';
3
+ import { S as SqliteTables } from '../../sqlite-DVca_IIy.cjs';
4
4
  import 'drizzle-orm';
5
- import '../../types-DolHw9pJ.cjs';
5
+ import '../../types-DMzKq0d5.cjs';
6
6
  import 'zod';
7
7
  import 'drizzle-orm/sqlite-core';
8
- import '../../types-BbMn2Ycv.cjs';
9
- import '../../ast-Cq9qrnNP.cjs';
8
+ import '../../types-C8Ra3ROE.cjs';
9
+ import '../../ast-Bh2NDeaK.cjs';
10
10
 
11
11
  /**
12
12
  * Options for creating a local SQLite backend.
@@ -1,12 +1,12 @@
1
1
  import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
2
- import { G as GraphBackend } from '../../types-D5ggX07j.js';
3
- import { S as SqliteTables } from '../../sqlite-CSJ-fgIm.js';
2
+ import { G as GraphBackend } from '../../types-1YJKodRv.js';
3
+ import { S as SqliteTables } from '../../sqlite-H01wIXvB.js';
4
4
  import 'drizzle-orm';
5
- import '../../types-DolHw9pJ.js';
5
+ import '../../types-DMzKq0d5.js';
6
6
  import 'zod';
7
7
  import 'drizzle-orm/sqlite-core';
8
- import '../../types-C2rhqkg7.js';
9
- import '../../ast-CG87Zr6p.js';
8
+ import '../../types-CC8eB0PB.js';
9
+ import '../../ast-COMyNeMn.js';
10
10
 
11
11
  /**
12
12
  * Options for creating a local SQLite backend.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkK2ROKOK3_cjs = require('./chunk-K2ROKOK3.cjs');
3
+ var chunkNI2GV74U_cjs = require('./chunk-NI2GV74U.cjs');
4
4
  var chunk44SXEVF4_cjs = require('./chunk-44SXEVF4.cjs');
5
5
  var zod = require('zod');
6
6
 
@@ -889,7 +889,7 @@ function serializeSchema(graph, version) {
889
889
  return {
890
890
  graphId: graph.id,
891
891
  version,
892
- generatedAt: chunkK2ROKOK3_cjs.nowIso(),
892
+ generatedAt: chunkNI2GV74U_cjs.nowIso(),
893
893
  nodes,
894
894
  edges,
895
895
  ontology,
@@ -901,7 +901,7 @@ function serializeSchema(graph, version) {
901
901
  }
902
902
  function serializeNodes(graph) {
903
903
  const result = {};
904
- for (const kindName of chunkK2ROKOK3_cjs.getNodeKinds(graph)) {
904
+ for (const kindName of chunkNI2GV74U_cjs.getNodeKinds(graph)) {
905
905
  const registration = graph.nodes[kindName];
906
906
  if (registration === void 0) continue;
907
907
  result[kindName] = serializeNodeDef(registration);
@@ -964,7 +964,7 @@ function deserializeWherePredicate(serialized) {
964
964
  }
965
965
  function serializeEdges(graph) {
966
966
  const result = {};
967
- for (const kindName of chunkK2ROKOK3_cjs.getEdgeKinds(graph)) {
967
+ for (const kindName of chunkNI2GV74U_cjs.getEdgeKinds(graph)) {
968
968
  const registration = graph.edges[kindName];
969
969
  if (registration === void 0) continue;
970
970
  result[kindName] = serializeEdgeDef(registration);
@@ -1260,5 +1260,5 @@ exports.validateEdgeProps = validateEdgeProps;
1260
1260
  exports.validateNodeProps = validateNodeProps;
1261
1261
  exports.validateProps = validateProps;
1262
1262
  exports.wrapZodError = wrapZodError;
1263
- //# sourceMappingURL=chunk-LDM2AFKZ.cjs.map
1264
- //# sourceMappingURL=chunk-LDM2AFKZ.cjs.map
1263
+ //# sourceMappingURL=chunk-7VITUTRA.cjs.map
1264
+ //# sourceMappingURL=chunk-7VITUTRA.cjs.map