@nicia-ai/typegraph 0.25.0 → 0.25.1

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 (69) hide show
  1. package/dist/backend/postgres/index.cjs +92 -44
  2. package/dist/backend/postgres/index.cjs.map +1 -1
  3. package/dist/backend/postgres/index.d.cts +4 -4
  4. package/dist/backend/postgres/index.d.ts +4 -4
  5. package/dist/backend/postgres/index.js +47 -3
  6. package/dist/backend/postgres/index.js.map +1 -1
  7. package/dist/backend/sqlite/index.cjs +13 -13
  8. package/dist/backend/sqlite/index.d.cts +4 -4
  9. package/dist/backend/sqlite/index.d.ts +4 -4
  10. package/dist/backend/sqlite/index.js +3 -3
  11. package/dist/backend/sqlite/libsql.cjs +6 -6
  12. package/dist/backend/sqlite/libsql.d.cts +2 -2
  13. package/dist/backend/sqlite/libsql.d.ts +2 -2
  14. package/dist/backend/sqlite/libsql.js +3 -3
  15. package/dist/backend/sqlite/local.cjs +7 -7
  16. package/dist/backend/sqlite/local.d.cts +2 -2
  17. package/dist/backend/sqlite/local.d.ts +2 -2
  18. package/dist/backend/sqlite/local.js +3 -3
  19. package/dist/{chunk-LVCSL6A3.js → chunk-AAA2CR3P.js} +5 -3
  20. package/dist/chunk-AAA2CR3P.js.map +1 -0
  21. package/dist/{chunk-OJ6IQVZG.js → chunk-CLEUFN2K.js} +48 -4
  22. package/dist/chunk-CLEUFN2K.js.map +1 -0
  23. package/dist/{chunk-ZEMNF3QK.cjs → chunk-CLGC7AQ2.cjs} +78 -34
  24. package/dist/chunk-CLGC7AQ2.cjs.map +1 -0
  25. package/dist/{chunk-FPCOUJSL.js → chunk-CPFR3O7L.js} +2 -2
  26. package/dist/{chunk-FPCOUJSL.js.map → chunk-CPFR3O7L.js.map} +1 -1
  27. package/dist/{chunk-O2P3KAUT.cjs → chunk-CQVNGKU7.cjs} +39 -14
  28. package/dist/chunk-CQVNGKU7.cjs.map +1 -0
  29. package/dist/{chunk-7CDXX3QZ.cjs → chunk-OECDVACY.cjs} +2 -2
  30. package/dist/{chunk-7CDXX3QZ.cjs.map → chunk-OECDVACY.cjs.map} +1 -1
  31. package/dist/{chunk-WI5VRP3X.js → chunk-PSKUWVCB.js} +39 -15
  32. package/dist/chunk-PSKUWVCB.js.map +1 -0
  33. package/dist/{chunk-7W3KAMVQ.cjs → chunk-QMQYK3IF.cjs} +5 -3
  34. package/dist/chunk-QMQYK3IF.cjs.map +1 -0
  35. package/dist/{ddl-DpaeAKPp.d.ts → ddl-BqMmpNor.d.ts} +403 -21
  36. package/dist/{ddl-B2jjLjpR.d.cts → ddl-Bwjh8Hff.d.cts} +403 -21
  37. package/dist/index.cjs +65 -65
  38. package/dist/index.d.cts +7 -7
  39. package/dist/index.d.ts +7 -7
  40. package/dist/index.js +3 -3
  41. package/dist/indexes/index.d.cts +4 -4
  42. package/dist/indexes/index.d.ts +4 -4
  43. package/dist/interchange/index.d.cts +3 -3
  44. package/dist/interchange/index.d.ts +3 -3
  45. package/dist/{manager-BpjBW1JK.d.cts → manager-Cy3dhwYO.d.cts} +7 -2
  46. package/dist/{manager-BKaPQbns.d.ts → manager-sZkU2VPC.d.ts} +7 -2
  47. package/dist/profiler/index.d.cts +5 -5
  48. package/dist/profiler/index.d.ts +5 -5
  49. package/dist/schema/index.cjs +24 -24
  50. package/dist/schema/index.d.cts +4 -4
  51. package/dist/schema/index.d.ts +4 -4
  52. package/dist/schema/index.js +2 -2
  53. package/dist/{sqlite-Myo8e3Lr.d.cts → sqlite-BhFswiAR.d.cts} +1 -1
  54. package/dist/{sqlite-CU3j6rc7.d.ts → sqlite-h6dta1IJ.d.ts} +1 -1
  55. package/dist/{store-De98Lod4.d.ts → store-BS_hehiz.d.ts} +2 -2
  56. package/dist/{store-BAGuOHDh.d.cts → store-CkCvqRUf.d.cts} +2 -2
  57. package/dist/{types-CYga3lZp.d.cts → types-BpgACExN.d.cts} +1 -1
  58. package/dist/{types-BLmJq4wI.d.ts → types-Bz-Pi681.d.ts} +1 -1
  59. package/dist/{types-BNWYZ-0-.d.ts → types-DptZHe-l.d.ts} +9 -0
  60. package/dist/{types--0EslBx5.d.cts → types-WF5ItKQu.d.cts} +9 -0
  61. package/dist/{where-CluR73rs.d.ts → where-C40InMIp.d.ts} +1 -1
  62. package/dist/{where-m1uWsdua.d.cts → where-DZYMiXVq.d.cts} +1 -1
  63. package/package.json +1 -1
  64. package/dist/chunk-7W3KAMVQ.cjs.map +0 -1
  65. package/dist/chunk-LVCSL6A3.js.map +0 -1
  66. package/dist/chunk-O2P3KAUT.cjs.map +0 -1
  67. package/dist/chunk-OJ6IQVZG.js.map +0 -1
  68. package/dist/chunk-WI5VRP3X.js.map +0 -1
  69. package/dist/chunk-ZEMNF3QK.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-D07e_NTw.js';
2
- import { O as OntologyRelation, I as IndexDeclaration, S as SerializedNodeDef, d as SerializedEdgeDef, h as SerializedSchema, y as SchemaVersionRow, G as GraphBackend } from './types-BNWYZ-0-.js';
2
+ import { O as OntologyRelation, I as IndexDeclaration, S as SerializedNodeDef, d as SerializedEdgeDef, h as SerializedSchema, y as SchemaVersionRow, G as GraphBackend } from './types-DptZHe-l.js';
3
3
 
4
4
  /** Brand key for GraphDef */
5
5
  declare const GRAPH_DEF_BRAND: "__graphDef";
@@ -486,7 +486,12 @@ declare function getMigrationActions(diff: SchemaDiff): readonly string[];
486
486
  declare function parseSerializedSchema(json: string): SerializedSchema;
487
487
  /**
488
488
  * Reads the active schema row, bootstrapping the base tables on the
489
- * first call against an empty database.
489
+ * first call against an empty database. Also runs
490
+ * `ensureFulltextTable` on the success path: drizzle-kit-managed
491
+ * setups create every base table EXCEPT the strategy-owned fulltext
492
+ * table, and the missing-table-error fallback below doesn't trigger
493
+ * once `schema_versions` exists. The focused ensure closes that gap
494
+ * before any `searchable()` write runs.
490
495
  */
491
496
  declare function loadActiveSchemaWithBootstrap(backend: GraphBackend, graphId: string): Promise<SchemaVersionRow | undefined>;
492
497
  /**
@@ -1,8 +1,8 @@
1
- import { G as GraphDef } from '../manager-BpjBW1JK.cjs';
2
- import { Q as QueryAst } from '../types--0EslBx5.cjs';
3
- import { S as Store } from '../store-BAGuOHDh.cjs';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-CYga3lZp.cjs';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CYga3lZp.cjs';
1
+ import { G as GraphDef } from '../manager-Cy3dhwYO.cjs';
2
+ import { Q as QueryAst } from '../types-WF5ItKQu.cjs';
3
+ import { S as Store } from '../store-CkCvqRUf.cjs';
4
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-BpgACExN.cjs';
5
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-BpgACExN.cjs';
6
6
  import '../extension-types-D07e_NTw.cjs';
7
7
  import 'zod';
8
8
  import 'drizzle-orm';
@@ -1,8 +1,8 @@
1
- import { G as GraphDef } from '../manager-BKaPQbns.js';
2
- import { Q as QueryAst } from '../types-BNWYZ-0-.js';
3
- import { S as Store } from '../store-De98Lod4.js';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-BLmJq4wI.js';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-BLmJq4wI.js';
1
+ import { G as GraphDef } from '../manager-sZkU2VPC.js';
2
+ import { Q as QueryAst } from '../types-DptZHe-l.js';
3
+ import { S as Store } from '../store-BS_hehiz.js';
4
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-Bz-Pi681.js';
5
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-Bz-Pi681.js';
6
6
  import '../extension-types-D07e_NTw.js';
7
7
  import 'zod';
8
8
  import 'drizzle-orm';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7W3KAMVQ_cjs = require('../chunk-7W3KAMVQ.cjs');
3
+ var chunkQMQYK3IF_cjs = require('../chunk-QMQYK3IF.cjs');
4
4
  require('../chunk-E5JZSEGJ.cjs');
5
5
  require('../chunk-RCAJZG67.cjs');
6
6
  require('../chunk-CTHNVU6K.cjs');
@@ -47,7 +47,7 @@ function buildRegistryFromClosures(schema) {
47
47
  const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
48
48
  const nodeKinds = /* @__PURE__ */ new Map();
49
49
  const edgeKinds = /* @__PURE__ */ new Map();
50
- return new chunk7W3KAMVQ_cjs.KindRegistry(nodeKinds, edgeKinds, {
50
+ return new chunkQMQYK3IF_cjs.KindRegistry(nodeKinds, edgeKinds, {
51
51
  subClassAncestors,
52
52
  subClassDescendants,
53
53
  broaderClosure,
@@ -75,91 +75,91 @@ function simpleRecordToMap(record) {
75
75
 
76
76
  Object.defineProperty(exports, "applyDeprecatedKinds", {
77
77
  enumerable: true,
78
- get: function () { return chunk7W3KAMVQ_cjs.applyDeprecatedKinds; }
78
+ get: function () { return chunkQMQYK3IF_cjs.applyDeprecatedKinds; }
79
79
  });
80
80
  Object.defineProperty(exports, "computeSchemaDiff", {
81
81
  enumerable: true,
82
- get: function () { return chunk7W3KAMVQ_cjs.computeSchemaDiff; }
82
+ get: function () { return chunkQMQYK3IF_cjs.computeSchemaDiff; }
83
83
  });
84
84
  Object.defineProperty(exports, "computeSchemaHash", {
85
85
  enumerable: true,
86
- get: function () { return chunk7W3KAMVQ_cjs.computeSchemaHash; }
86
+ get: function () { return chunkQMQYK3IF_cjs.computeSchemaHash; }
87
87
  });
88
88
  Object.defineProperty(exports, "createValidationError", {
89
89
  enumerable: true,
90
- get: function () { return chunk7W3KAMVQ_cjs.createValidationError; }
90
+ get: function () { return chunkQMQYK3IF_cjs.createValidationError; }
91
91
  });
92
92
  Object.defineProperty(exports, "deserializeWherePredicate", {
93
93
  enumerable: true,
94
- get: function () { return chunk7W3KAMVQ_cjs.deserializeWherePredicate; }
94
+ get: function () { return chunkQMQYK3IF_cjs.deserializeWherePredicate; }
95
95
  });
96
96
  Object.defineProperty(exports, "ensureSchema", {
97
97
  enumerable: true,
98
- get: function () { return chunk7W3KAMVQ_cjs.ensureSchema; }
98
+ get: function () { return chunkQMQYK3IF_cjs.ensureSchema; }
99
99
  });
100
100
  Object.defineProperty(exports, "getActiveSchema", {
101
101
  enumerable: true,
102
- get: function () { return chunk7W3KAMVQ_cjs.getActiveSchema; }
102
+ get: function () { return chunkQMQYK3IF_cjs.getActiveSchema; }
103
103
  });
104
104
  Object.defineProperty(exports, "getMigrationActions", {
105
105
  enumerable: true,
106
- get: function () { return chunk7W3KAMVQ_cjs.getMigrationActions; }
106
+ get: function () { return chunkQMQYK3IF_cjs.getMigrationActions; }
107
107
  });
108
108
  Object.defineProperty(exports, "getSchemaChanges", {
109
109
  enumerable: true,
110
- get: function () { return chunk7W3KAMVQ_cjs.getSchemaChanges; }
110
+ get: function () { return chunkQMQYK3IF_cjs.getSchemaChanges; }
111
111
  });
112
112
  Object.defineProperty(exports, "initializeSchema", {
113
113
  enumerable: true,
114
- get: function () { return chunk7W3KAMVQ_cjs.initializeSchema; }
114
+ get: function () { return chunkQMQYK3IF_cjs.initializeSchema; }
115
115
  });
116
116
  Object.defineProperty(exports, "isBackwardsCompatible", {
117
117
  enumerable: true,
118
- get: function () { return chunk7W3KAMVQ_cjs.isBackwardsCompatible; }
118
+ get: function () { return chunkQMQYK3IF_cjs.isBackwardsCompatible; }
119
119
  });
120
120
  Object.defineProperty(exports, "isSchemaInitialized", {
121
121
  enumerable: true,
122
- get: function () { return chunk7W3KAMVQ_cjs.isSchemaInitialized; }
122
+ get: function () { return chunkQMQYK3IF_cjs.isSchemaInitialized; }
123
123
  });
124
124
  Object.defineProperty(exports, "loadActiveSchemaWithBootstrap", {
125
125
  enumerable: true,
126
- get: function () { return chunk7W3KAMVQ_cjs.loadActiveSchemaWithBootstrap; }
126
+ get: function () { return chunkQMQYK3IF_cjs.loadActiveSchemaWithBootstrap; }
127
127
  });
128
128
  Object.defineProperty(exports, "loadAndMergeGraphExtensionDocument", {
129
129
  enumerable: true,
130
- get: function () { return chunk7W3KAMVQ_cjs.loadAndMergeGraphExtensionDocument; }
130
+ get: function () { return chunkQMQYK3IF_cjs.loadAndMergeGraphExtensionDocument; }
131
131
  });
132
132
  Object.defineProperty(exports, "migrateSchema", {
133
133
  enumerable: true,
134
- get: function () { return chunk7W3KAMVQ_cjs.migrateSchema; }
134
+ get: function () { return chunkQMQYK3IF_cjs.migrateSchema; }
135
135
  });
136
136
  Object.defineProperty(exports, "parseSerializedSchema", {
137
137
  enumerable: true,
138
- get: function () { return chunk7W3KAMVQ_cjs.parseSerializedSchema; }
138
+ get: function () { return chunkQMQYK3IF_cjs.parseSerializedSchema; }
139
139
  });
140
140
  Object.defineProperty(exports, "rollbackSchema", {
141
141
  enumerable: true,
142
- get: function () { return chunk7W3KAMVQ_cjs.rollbackSchema; }
142
+ get: function () { return chunkQMQYK3IF_cjs.rollbackSchema; }
143
143
  });
144
144
  Object.defineProperty(exports, "serializeSchema", {
145
145
  enumerable: true,
146
- get: function () { return chunk7W3KAMVQ_cjs.serializeSchema; }
146
+ get: function () { return chunkQMQYK3IF_cjs.serializeSchema; }
147
147
  });
148
148
  Object.defineProperty(exports, "validateEdgeProps", {
149
149
  enumerable: true,
150
- get: function () { return chunk7W3KAMVQ_cjs.validateEdgeProps; }
150
+ get: function () { return chunkQMQYK3IF_cjs.validateEdgeProps; }
151
151
  });
152
152
  Object.defineProperty(exports, "validateNodeProps", {
153
153
  enumerable: true,
154
- get: function () { return chunk7W3KAMVQ_cjs.validateNodeProps; }
154
+ get: function () { return chunkQMQYK3IF_cjs.validateNodeProps; }
155
155
  });
156
156
  Object.defineProperty(exports, "validateProps", {
157
157
  enumerable: true,
158
- get: function () { return chunk7W3KAMVQ_cjs.validateProps; }
158
+ get: function () { return chunkQMQYK3IF_cjs.validateProps; }
159
159
  });
160
160
  Object.defineProperty(exports, "wrapZodError", {
161
161
  enumerable: true,
162
- get: function () { return chunk7W3KAMVQ_cjs.wrapZodError; }
162
+ get: function () { return chunkQMQYK3IF_cjs.wrapZodError; }
163
163
  });
164
164
  exports.deserializeSchema = deserializeSchema;
165
165
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-BpjBW1JK.cjs';
2
- export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as computeSchemaDiff, g as ensureSchema, h as getActiveSchema, i as getMigrationActions, j as getSchemaChanges, k as initializeSchema, l as isBackwardsCompatible, m as isSchemaInitialized, n as loadActiveSchemaWithBootstrap, o as loadAndMergeGraphExtensionDocument, p as migrateSchema, q as parseSerializedSchema, r as rollbackSchema } from '../manager-BpjBW1JK.cjs';
3
- import { S as SerializedNodeDef, d as SerializedEdgeDef, e as SerializedMetaEdge, f as SerializedOntologyRelation, g as SerializedClosures, h as SerializedSchema, i as SchemaHash } from '../types--0EslBx5.cjs';
4
- export { j as JsonSchema, k as SerializedOntology, l as SerializedUniqueConstraint } from '../types--0EslBx5.cjs';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-Cy3dhwYO.cjs';
2
+ export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as computeSchemaDiff, g as ensureSchema, h as getActiveSchema, i as getMigrationActions, j as getSchemaChanges, k as initializeSchema, l as isBackwardsCompatible, m as isSchemaInitialized, n as loadActiveSchemaWithBootstrap, o as loadAndMergeGraphExtensionDocument, p as migrateSchema, q as parseSerializedSchema, r as rollbackSchema } from '../manager-Cy3dhwYO.cjs';
3
+ import { S as SerializedNodeDef, d as SerializedEdgeDef, e as SerializedMetaEdge, f as SerializedOntologyRelation, g as SerializedClosures, h as SerializedSchema, i as SchemaHash } from '../types-WF5ItKQu.cjs';
4
+ export { j as JsonSchema, k as SerializedOntology, l as SerializedUniqueConstraint } from '../types-WF5ItKQu.cjs';
5
5
  import { a as NullCheckOp, K as KindEntity } from '../extension-types-D07e_NTw.cjs';
6
6
  import { ZodType, ZodError } from 'zod';
7
7
  import { V as ValidationIssue, a as ValidationError } from '../index-CT6nvtxL.cjs';
@@ -1,7 +1,7 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-BKaPQbns.js';
2
- export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as computeSchemaDiff, g as ensureSchema, h as getActiveSchema, i as getMigrationActions, j as getSchemaChanges, k as initializeSchema, l as isBackwardsCompatible, m as isSchemaInitialized, n as loadActiveSchemaWithBootstrap, o as loadAndMergeGraphExtensionDocument, p as migrateSchema, q as parseSerializedSchema, r as rollbackSchema } from '../manager-BKaPQbns.js';
3
- import { S as SerializedNodeDef, d as SerializedEdgeDef, e as SerializedMetaEdge, f as SerializedOntologyRelation, g as SerializedClosures, h as SerializedSchema, i as SchemaHash } from '../types-BNWYZ-0-.js';
4
- export { j as JsonSchema, k as SerializedOntology, l as SerializedUniqueConstraint } from '../types-BNWYZ-0-.js';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-sZkU2VPC.js';
2
+ export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as computeSchemaDiff, g as ensureSchema, h as getActiveSchema, i as getMigrationActions, j as getSchemaChanges, k as initializeSchema, l as isBackwardsCompatible, m as isSchemaInitialized, n as loadActiveSchemaWithBootstrap, o as loadAndMergeGraphExtensionDocument, p as migrateSchema, q as parseSerializedSchema, r as rollbackSchema } from '../manager-sZkU2VPC.js';
3
+ import { S as SerializedNodeDef, d as SerializedEdgeDef, e as SerializedMetaEdge, f as SerializedOntologyRelation, g as SerializedClosures, h as SerializedSchema, i as SchemaHash } from '../types-DptZHe-l.js';
4
+ export { j as JsonSchema, k as SerializedOntology, l as SerializedUniqueConstraint } from '../types-DptZHe-l.js';
5
5
  import { a as NullCheckOp, K as KindEntity } from '../extension-types-D07e_NTw.js';
6
6
  import { ZodType, ZodError } from 'zod';
7
7
  import { V as ValidationIssue, a as ValidationError } from '../index-DQheiVQV.js';
@@ -1,5 +1,5 @@
1
- import { KindRegistry } from '../chunk-LVCSL6A3.js';
2
- export { applyDeprecatedKinds, computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-LVCSL6A3.js';
1
+ import { KindRegistry } from '../chunk-AAA2CR3P.js';
2
+ export { applyDeprecatedKinds, computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-AAA2CR3P.js';
3
3
  import '../chunk-EG6TJ3I5.js';
4
4
  import '../chunk-4BOWVUGQ.js';
5
5
  import '../chunk-EJCDOA37.js';
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
- import { I as IndexDeclaration } from './types--0EslBx5.cjs';
2
+ import { I as IndexDeclaration } from './types-WF5ItKQu.cjs';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
- import { I as IndexDeclaration } from './types-BNWYZ-0-.js';
2
+ import { I as IndexDeclaration } from './types-DptZHe-l.js';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { m as SqlDialect, ac as SqlSchema, F as FulltextStrategy, aq as ValueType, ar as PredicateExpression, as as VectorMetricType, X as FulltextQueryMode, Q as QueryAst, J as JsonPointer, C as FieldRef, a7 as ParameterRef, G as GraphBackend, ae as TransactionBackend, a0 as JsonPointerInput, af as TraversalExpansion, at as Traversal, au as NodePredicate, av as ProjectedField, a6 as OrderSpec, aw as GroupBySpec, _ as HybridFusionOptions, ax as RecursiveCyclePolicy, ay as TraversalDirection$1, az as EdgeRow, aA as NodeRow, A as AggregateExpr, aB as SelectiveField, aC as ComposableQuery, aD as SetOperationType, aE as SetOperation, ab as SortDirection, j as JsonSchema, aF as VectorMetric } from './types-BNWYZ-0-.js';
3
- import { K as KindRegistry, G as GraphDef, t as EdgeKinds, w as NodeKinds, s as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-BKaPQbns.js';
2
+ import { m as SqlDialect, ac as SqlSchema, F as FulltextStrategy, aq as ValueType, ar as PredicateExpression, as as VectorMetricType, X as FulltextQueryMode, Q as QueryAst, J as JsonPointer, C as FieldRef, a7 as ParameterRef, G as GraphBackend, ae as TransactionBackend, a0 as JsonPointerInput, af as TraversalExpansion, at as Traversal, au as NodePredicate, av as ProjectedField, a6 as OrderSpec, aw as GroupBySpec, _ as HybridFusionOptions, ax as RecursiveCyclePolicy, ay as TraversalDirection$1, az as EdgeRow, aA as NodeRow, A as AggregateExpr, aB as SelectiveField, aC as ComposableQuery, aD as SetOperationType, aE as SetOperation, ab as SortDirection, j as JsonSchema, aF as VectorMetric } from './types-DptZHe-l.js';
3
+ import { K as KindRegistry, G as GraphDef, t as EdgeKinds, w as NodeKinds, s as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-sZkU2VPC.js';
4
4
  import { A as AnyEdgeType, N as NodeType, T as TemporalMode, d as EdgeType, E as EdgeRegistration, i as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, g as EndpointExistence, e as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-D07e_NTw.js';
5
5
  import { SQL } from 'drizzle-orm';
6
6
  import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-BYpU2RKh.js';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { m as SqlDialect, ac as SqlSchema, F as FulltextStrategy, aq as ValueType, ar as PredicateExpression, as as VectorMetricType, X as FulltextQueryMode, Q as QueryAst, J as JsonPointer, C as FieldRef, a7 as ParameterRef, G as GraphBackend, ae as TransactionBackend, a0 as JsonPointerInput, af as TraversalExpansion, at as Traversal, au as NodePredicate, av as ProjectedField, a6 as OrderSpec, aw as GroupBySpec, _ as HybridFusionOptions, ax as RecursiveCyclePolicy, ay as TraversalDirection$1, az as EdgeRow, aA as NodeRow, A as AggregateExpr, aB as SelectiveField, aC as ComposableQuery, aD as SetOperationType, aE as SetOperation, ab as SortDirection, j as JsonSchema, aF as VectorMetric } from './types--0EslBx5.cjs';
3
- import { K as KindRegistry, G as GraphDef, t as EdgeKinds, w as NodeKinds, s as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-BpjBW1JK.cjs';
2
+ import { m as SqlDialect, ac as SqlSchema, F as FulltextStrategy, aq as ValueType, ar as PredicateExpression, as as VectorMetricType, X as FulltextQueryMode, Q as QueryAst, J as JsonPointer, C as FieldRef, a7 as ParameterRef, G as GraphBackend, ae as TransactionBackend, a0 as JsonPointerInput, af as TraversalExpansion, at as Traversal, au as NodePredicate, av as ProjectedField, a6 as OrderSpec, aw as GroupBySpec, _ as HybridFusionOptions, ax as RecursiveCyclePolicy, ay as TraversalDirection$1, az as EdgeRow, aA as NodeRow, A as AggregateExpr, aB as SelectiveField, aC as ComposableQuery, aD as SetOperationType, aE as SetOperation, ab as SortDirection, j as JsonSchema, aF as VectorMetric } from './types-WF5ItKQu.cjs';
3
+ import { K as KindRegistry, G as GraphDef, t as EdgeKinds, w as NodeKinds, s as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-Cy3dhwYO.cjs';
4
4
  import { A as AnyEdgeType, N as NodeType, T as TemporalMode, d as EdgeType, E as EdgeRegistration, i as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, g as EndpointExistence, e as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-D07e_NTw.cjs';
5
5
  import { SQL } from 'drizzle-orm';
6
6
  import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-BB9N5uQl.cjs';
@@ -1,5 +1,5 @@
1
1
  import { K as KindEntity } from './extension-types-D07e_NTw.cjs';
2
- import { J as JsonPointer } from './types--0EslBx5.cjs';
2
+ import { J as JsonPointer } from './types-WF5ItKQu.cjs';
3
3
 
4
4
  /**
5
5
  * QueryProfiler types.
@@ -1,5 +1,5 @@
1
1
  import { K as KindEntity } from './extension-types-D07e_NTw.js';
2
- import { J as JsonPointer } from './types-BNWYZ-0-.js';
2
+ import { J as JsonPointer } from './types-DptZHe-l.js';
3
3
 
4
4
  /**
5
5
  * QueryProfiler types.
@@ -1149,6 +1149,15 @@ type GraphBackend = Readonly<{
1149
1149
  * deadlock under concurrent replica startup.
1150
1150
  */
1151
1151
  ensureReconciliationMarkersTable?: () => Promise<void>;
1152
+ /**
1153
+ * Bootstraps the fulltext storage table the active `FulltextStrategy`
1154
+ * owns — the strategy owns this DDL because shapes diverge across
1155
+ * stacks (`tsvector` + GIN, FTS5 virtual table, pg_trgm, …) and
1156
+ * the SQLite case can't be Drizzle-modeled at all. Same focused-
1157
+ * bootstrap rationale as the other `ensure*Table` methods:
1158
+ * idempotent and concurrency-safe under replica startup.
1159
+ */
1160
+ ensureFulltextTable?: () => Promise<void>;
1152
1161
  /**
1153
1162
  * Read the high-water mark schema version for which
1154
1163
  * `materializeRemovals` reconciliation has already verified history
@@ -1149,6 +1149,15 @@ type GraphBackend = Readonly<{
1149
1149
  * deadlock under concurrent replica startup.
1150
1150
  */
1151
1151
  ensureReconciliationMarkersTable?: () => Promise<void>;
1152
+ /**
1153
+ * Bootstraps the fulltext storage table the active `FulltextStrategy`
1154
+ * owns — the strategy owns this DDL because shapes diverge across
1155
+ * stacks (`tsvector` + GIN, FTS5 virtual table, pg_trgm, …) and
1156
+ * the SQLite case can't be Drizzle-modeled at all. Same focused-
1157
+ * bootstrap rationale as the other `ensure*Table` methods:
1158
+ * idempotent and concurrency-safe under replica startup.
1159
+ */
1160
+ ensureFulltextTable?: () => Promise<void>;
1152
1161
  /**
1153
1162
  * Read the high-water mark schema version for which
1154
1163
  * `materializeRemovals` reconciliation has already verified history
@@ -1,5 +1,5 @@
1
1
  import { A as AnyEdgeType, N as NodeType } from './extension-types-D07e_NTw.js';
2
- import { E as EdgeIndexConfig, a as EdgeIndexDeclaration, N as NodeIndexConfig, b as NodeIndexDeclaration, c as IndexWhereExpression } from './types-BNWYZ-0-.js';
2
+ import { E as EdgeIndexConfig, a as EdgeIndexDeclaration, N as NodeIndexConfig, b as NodeIndexDeclaration, c as IndexWhereExpression } from './types-DptZHe-l.js';
3
3
 
4
4
  declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
5
5
  declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;
@@ -1,5 +1,5 @@
1
1
  import { A as AnyEdgeType, N as NodeType } from './extension-types-D07e_NTw.cjs';
2
- import { E as EdgeIndexConfig, a as EdgeIndexDeclaration, N as NodeIndexConfig, b as NodeIndexDeclaration, c as IndexWhereExpression } from './types--0EslBx5.cjs';
2
+ import { E as EdgeIndexConfig, a as EdgeIndexDeclaration, N as NodeIndexConfig, b as NodeIndexDeclaration, c as IndexWhereExpression } from './types-WF5ItKQu.cjs';
3
3
 
4
4
  declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
5
5
  declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",