@nicia-ai/typegraph 0.35.0 → 0.36.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 (116) hide show
  1. package/dist/backend/postgres/index.cjs +19 -19
  2. package/dist/backend/postgres/index.js +6 -6
  3. package/dist/backend/postgres/pglite.cjs +11 -11
  4. package/dist/backend/postgres/pglite.js +6 -6
  5. package/dist/backend/sqlite/index.cjs +9 -9
  6. package/dist/backend/sqlite/index.js +6 -6
  7. package/dist/backend/sqlite/libsql.cjs +8 -8
  8. package/dist/backend/sqlite/libsql.js +6 -6
  9. package/dist/backend/sqlite/local.cjs +16 -16
  10. package/dist/backend/sqlite/local.js +6 -6
  11. package/dist/{chunk-VPYHY3LJ.cjs → chunk-2THZ3TQI.cjs} +11 -11
  12. package/dist/{chunk-VPYHY3LJ.cjs.map → chunk-2THZ3TQI.cjs.map} +1 -1
  13. package/dist/{chunk-EM3CWPND.cjs → chunk-456Z2U7Y.cjs} +51 -51
  14. package/dist/{chunk-EM3CWPND.cjs.map → chunk-456Z2U7Y.cjs.map} +1 -1
  15. package/dist/{chunk-GSQ6NPH6.cjs → chunk-4BCU6VFZ.cjs} +7 -7
  16. package/dist/{chunk-GSQ6NPH6.cjs.map → chunk-4BCU6VFZ.cjs.map} +1 -1
  17. package/dist/chunk-4BMPGT35.cjs +12 -0
  18. package/dist/{chunk-GUR2FNB5.cjs.map → chunk-4BMPGT35.cjs.map} +1 -1
  19. package/dist/{chunk-WJT7OU7E.cjs → chunk-4CAXEB2F.cjs} +124 -92
  20. package/dist/chunk-4CAXEB2F.cjs.map +1 -0
  21. package/dist/{chunk-WDBCBWC4.js → chunk-4GX2JJXS.js} +6 -6
  22. package/dist/{chunk-WDBCBWC4.js.map → chunk-4GX2JJXS.js.map} +1 -1
  23. package/dist/{chunk-UES55P7G.js → chunk-5DIPR3L3.js} +284 -154
  24. package/dist/chunk-5DIPR3L3.js.map +1 -0
  25. package/dist/{chunk-CZQ3FO2Q.js → chunk-5VTR2F2K.js} +49 -16
  26. package/dist/chunk-5VTR2F2K.js.map +1 -0
  27. package/dist/{chunk-CTTSDJLY.cjs → chunk-5W4L6DLF.cjs} +11 -11
  28. package/dist/{chunk-CTTSDJLY.cjs.map → chunk-5W4L6DLF.cjs.map} +1 -1
  29. package/dist/{chunk-J7WFGBJR.cjs → chunk-7BQLPXK6.cjs} +865 -735
  30. package/dist/chunk-7BQLPXK6.cjs.map +1 -0
  31. package/dist/{chunk-3TWF3SH4.js → chunk-BJVEU3ZL.js} +7 -7
  32. package/dist/{chunk-3TWF3SH4.js.map → chunk-BJVEU3ZL.js.map} +1 -1
  33. package/dist/{chunk-LGEALRC6.cjs → chunk-DIK74MXX.cjs} +18 -2
  34. package/dist/chunk-DIK74MXX.cjs.map +1 -0
  35. package/dist/{chunk-QNKSQTKQ.js → chunk-DN5VP4JC.js} +48 -17
  36. package/dist/chunk-DN5VP4JC.js.map +1 -0
  37. package/dist/{chunk-4JEZZJ6S.cjs → chunk-HW3LW7DH.cjs} +39 -39
  38. package/dist/{chunk-4JEZZJ6S.cjs.map → chunk-HW3LW7DH.cjs.map} +1 -1
  39. package/dist/{chunk-JBTOYDMN.js → chunk-IU46OHVW.js} +4 -4
  40. package/dist/{chunk-JBTOYDMN.js.map → chunk-IU46OHVW.js.map} +1 -1
  41. package/dist/{chunk-FL472AMI.cjs → chunk-J3LEGNQB.cjs} +8 -8
  42. package/dist/{chunk-FL472AMI.cjs.map → chunk-J3LEGNQB.cjs.map} +1 -1
  43. package/dist/{chunk-O7UN7OXA.cjs → chunk-JFMEONLG.cjs} +80 -80
  44. package/dist/{chunk-O7UN7OXA.cjs.map → chunk-JFMEONLG.cjs.map} +1 -1
  45. package/dist/{chunk-I7ZUZKFD.js → chunk-JFUPDJXD.js} +3 -3
  46. package/dist/{chunk-I7ZUZKFD.js.map → chunk-JFUPDJXD.js.map} +1 -1
  47. package/dist/{chunk-K3PPLHY7.js → chunk-M75SUBFG.js} +7 -7
  48. package/dist/{chunk-K3PPLHY7.js.map → chunk-M75SUBFG.js.map} +1 -1
  49. package/dist/{chunk-CK5BVQOW.cjs → chunk-PWGX5DF5.cjs} +79 -79
  50. package/dist/{chunk-CK5BVQOW.cjs.map → chunk-PWGX5DF5.cjs.map} +1 -1
  51. package/dist/{chunk-KMI7LYAF.js → chunk-PZKNKG5M.js} +8 -8
  52. package/dist/{chunk-KMI7LYAF.js.map → chunk-PZKNKG5M.js.map} +1 -1
  53. package/dist/{chunk-55MZDDZV.js → chunk-RAXU3RMB.js} +4 -4
  54. package/dist/{chunk-55MZDDZV.js.map → chunk-RAXU3RMB.js.map} +1 -1
  55. package/dist/{chunk-BLZDPRXT.cjs → chunk-RSSQKPSZ.cjs} +5 -5
  56. package/dist/{chunk-BLZDPRXT.cjs.map → chunk-RSSQKPSZ.cjs.map} +1 -1
  57. package/dist/{chunk-RGPG7EOJ.js → chunk-S5F7ZLP2.js} +3 -3
  58. package/dist/{chunk-RGPG7EOJ.js.map → chunk-S5F7ZLP2.js.map} +1 -1
  59. package/dist/{chunk-QWEUYILR.js → chunk-SKCOUWAX.js} +3 -3
  60. package/dist/{chunk-QWEUYILR.js.map → chunk-SKCOUWAX.js.map} +1 -1
  61. package/dist/{chunk-QOTI55H7.js → chunk-SXGE7ITL.js} +4 -4
  62. package/dist/{chunk-QOTI55H7.js.map → chunk-SXGE7ITL.js.map} +1 -1
  63. package/dist/{chunk-RGP33ZJ5.js → chunk-VQEXF5D4.js} +7 -7
  64. package/dist/{chunk-RGP33ZJ5.js.map → chunk-VQEXF5D4.js.map} +1 -1
  65. package/dist/{chunk-MP2JQKSG.js → chunk-WI7ISNQF.js} +17 -3
  66. package/dist/chunk-WI7ISNQF.js.map +1 -0
  67. package/dist/{chunk-4TOD4LBZ.cjs → chunk-X4JBT642.cjs} +29 -29
  68. package/dist/{chunk-4TOD4LBZ.cjs.map → chunk-X4JBT642.cjs.map} +1 -1
  69. package/dist/{chunk-EMF62TZG.cjs → chunk-ZAMFOJ5P.cjs} +86 -86
  70. package/dist/{chunk-EMF62TZG.cjs.map → chunk-ZAMFOJ5P.cjs.map} +1 -1
  71. package/dist/{chunk-VSPCZAXF.js → chunk-ZIGXMKQQ.js} +3 -3
  72. package/dist/{chunk-VSPCZAXF.js.map → chunk-ZIGXMKQQ.js.map} +1 -1
  73. package/dist/{chunk-XOX22WHL.cjs → chunk-ZUNQ5BEP.cjs} +104 -71
  74. package/dist/chunk-ZUNQ5BEP.cjs.map +1 -0
  75. package/dist/graph-extension/index.cjs +19 -19
  76. package/dist/graph-extension/index.d.cts +1 -1
  77. package/dist/graph-extension/index.d.ts +1 -1
  78. package/dist/graph-extension/index.js +4 -4
  79. package/dist/graph-merge/index.cjs +82 -82
  80. package/dist/graph-merge/index.cjs.map +1 -1
  81. package/dist/graph-merge/index.d.cts +2 -2
  82. package/dist/graph-merge/index.d.ts +2 -2
  83. package/dist/graph-merge/index.js +13 -13
  84. package/dist/graph-merge/index.js.map +1 -1
  85. package/dist/{index-6CSUAq-x.d.ts → index-BFvdmBPV.d.ts} +68 -1
  86. package/dist/{index-Bks_3HHK.d.cts → index-BLtQWKRj.d.cts} +68 -1
  87. package/dist/index.cjs +144 -136
  88. package/dist/index.d.cts +3 -3
  89. package/dist/index.d.ts +3 -3
  90. package/dist/index.js +14 -14
  91. package/dist/interchange/index.cjs +27 -26
  92. package/dist/interchange/index.d.cts +1 -1
  93. package/dist/interchange/index.d.ts +1 -1
  94. package/dist/interchange/index.js +9 -8
  95. package/dist/profiler/index.d.cts +1 -1
  96. package/dist/profiler/index.d.ts +1 -1
  97. package/dist/provenance/index.cjs +31 -31
  98. package/dist/provenance/index.d.cts +1 -1
  99. package/dist/provenance/index.d.ts +1 -1
  100. package/dist/provenance/index.js +4 -4
  101. package/dist/schema/index.cjs +31 -31
  102. package/dist/schema/index.d.cts +1 -1
  103. package/dist/schema/index.d.ts +1 -1
  104. package/dist/schema/index.js +7 -7
  105. package/dist/{store-view-BSpqvAxK.d.cts → store-view-9KDOpZzF.d.cts} +250 -36
  106. package/dist/{store-view-CKbHFRnn.d.ts → store-view-DplHC3Nt.d.ts} +250 -36
  107. package/package.json +1 -1
  108. package/dist/chunk-CZQ3FO2Q.js.map +0 -1
  109. package/dist/chunk-GUR2FNB5.cjs +0 -12
  110. package/dist/chunk-J7WFGBJR.cjs.map +0 -1
  111. package/dist/chunk-LGEALRC6.cjs.map +0 -1
  112. package/dist/chunk-MP2JQKSG.js.map +0 -1
  113. package/dist/chunk-QNKSQTKQ.js.map +0 -1
  114. package/dist/chunk-UES55P7G.js.map +0 -1
  115. package/dist/chunk-WJT7OU7E.cjs.map +0 -1
  116. package/dist/chunk-XOX22WHL.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -3,11 +3,11 @@ import { f as KindAnnotations, N as NodeType, g as EdgeType } from './extension-
3
3
  export { A as AnyEdgeType, C as CURRENT_GRAPH_EXTENSION_VERSION, m as Cardinality, n as Collation, D as DeleteBehavior, e as EdgeId, o as EdgeProps, E as EdgeRegistration, p as EdgeTypeWithEndpoints, q as EndpointExistence, c as GraphDefaults, G as GraphExtension, h as GraphExtensionVersion, J as JsonValue, L as LEGACY_GRAPH_EXTENSION_VERSION, d as NodeId, r as NodeProps, b as NodeRegistration, T as TemporalMode, U as UniqueConstraint, s as UniquenessScope, t as asEdgeId, u as asNodeId, v as isEdgeType, w as isEdgeTypeWithEndpoints, x as isNodeType } from './extension-types-ixRpJVUp.cjs';
4
4
  import { K as InferenceType, M as MetaEdge, V as VectorStrategy, G as GraphBackend, O as OntologyRelation, L as AggregateExpr, P as FieldRef, T as ComparisonOp, U as AggregateComparisonPredicate, W as TraversalDirection } from './fulltext-strategy-CDkSSYhq.cjs';
5
5
  export { X as AdoptedTransaction, B as BackendCapabilities, Y as BackendIdentity, Z as BackendLifecycle, _ as BackendMaintenance, $ as BackendTransactions, a0 as CommitSchemaVersionExpected, a1 as CommitSchemaVersionParams, a2 as CompiledRowsSql, a3 as CompiledSelectSql, a4 as CompiledStatementSql, a5 as ContributionMaterializationBackend, a6 as DEFAULT_SQL_SCHEMA, a7 as DeleteFulltextBatchParams, a8 as EdgeEntityReadBackend, a9 as EdgeEntityWriteBackend, E as EdgeIndexConfig, c as EdgeIndexDeclaration, g as EdgeIndexDirection, h as EdgeIndexWhereBuilder, aa as ExternalRecordedReadSource, ab as FilteredApproximateSearch, ac as FilteredApproximateSearchMode, ad as FulltextBatchRow, ae as FulltextCapabilities, af as FulltextOperationBackend, ag as FulltextQueryMode, ah as FulltextSearchParams, ai as FulltextSearchResult, F as FulltextStrategy, aj as GraphEntityReadBackend, ak as GraphEntityWriteBackend, al as GraphLifecycleBackend, am as HybridFusionOptions, I as IndexDeclaration, an as IndexMaterializationBackend, i as IndexOrigin, j as IndexScope, e as IndexWhereExpression, k as IndexWhereFieldBuilder, l as IndexWhereInput, ao as IntentSql, J as JsonPointer, ap as JsonPointerFor, aq as JsonPointerInput, ar as JsonPointerSegment, as as JsonPointerSegments, at as JsonPointerSegmentsFor, au as MAX_JSON_POINTER_DEPTH, av as MetaEdgeProperties, aw as NodeEntityReadBackend, ax as NodeEntityWriteBackend, N as NodeIndexConfig, d as NodeIndexDeclaration, m as NodeIndexWhereBuilder, ay as OrderSpec, az as ParameterRef, aA as QueryExecutionBackend, aB as RawQueryExecutionBackend, aC as RawStatementExecutionBackend, aD as RecordedRelationOptions, aE as RemovalMaterializationBackend, aF as ResolveJsonPointer, aG as ResolveJsonPointerSegments, aH as ResolvedSqlTableNames, aI as RowProps, aJ as SchemaCommitBackend, aK as SchemaReadBackend, H as SchemaVersionRow, aL as SetActiveVersionParams, aM as SortDirection, f as SqlDialect, aN as SqlIntent, aO as SqlSchema, aP as SqlTableNames, aQ as StrategyTableContribution, aR as TableContribution, aS as TransactionBackend, aT as TraversalExpansion, aU as UniqueConstraintBackend, aV as UpsertFulltextBatchParams, aW as VectorCapabilities, aX as VectorOperationBackend, aY as VectorSlot, aZ as asCompiledRowsSql, a_ as asCompiledSelectSql, a$ as asCompiledStatementSql, b0 as buildVectorCapabilities, b1 as createSqlSchema, b2 as fts5Strategy, b3 as isMetaEdge, b4 as joinJsonPointers, b5 as jsonPointer, b6 as normalizeJsonPointer, b7 as parseJsonPointer, b8 as recordedRelation, b9 as rowPropsToJsonText, ba as rowPropsToObject, bb as tsvectorStrategy } from './fulltext-strategy-CDkSSYhq.cjs';
6
- import { E as EmbeddingMetric, a as EmbeddingIndexType, A as AliasMap, b as EdgeAliasMap, R as RecursiveAliasMap, Q as QueryCoordinateState, c as QueryBuilder, d as EmptyRecursiveAliasMap, T as TraversalBuilder } from './store-view-BSpqvAxK.cjs';
7
- export { e as AggregateResult, f as AlgorithmCyclePolicy, g as AnyEdge, h as AnyNode, B as BaseTraversalOptions, i as BatchResults, j as BatchableQuery, C as ConstraintNames, k as CreateEdgeInput, l as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, m as DegreeOptions, n as DynamicEdgeAccessor, o as DynamicEdgeCollection, p as DynamicEdgeType, q as DynamicFieldBuilder, r as DynamicNodeAccessor, s as DynamicNodeCollection, t as DynamicNodeType, u as DynamicSelectableEdge, v as DynamicSelectableNode, w as Edge, x as EdgeAccessor, y as EdgeBatchReads, z as EdgeCollection, F as EdgeFindByEndpointsOptions, G as EdgeGetOrCreateByEndpointsOptions, I as EdgeGetOrCreateByEndpointsResult, J as EdgeIntrospection, K as EdgeTemporalReads, L as EdgeWrites, M as EmbeddingSchema, O as EmbeddingValue, P as EmptyAliasMap, V as EmptyEdgeAliasMap, W as ExecutableAggregateQuery, X as ExecutableQuery, Y as FieldAccessor, Z as FulltextSearchHit, _ as FulltextSearchOptions, $ as GetOrCreateAction, a0 as GraphAlgorithms, a1 as GraphEdgeCollections, a2 as GraphNodeCollections, a3 as HistorySafeBackend, a4 as HistorySafeTransactionBackend, H as HistoryStore, a5 as HistoryStoreOptions, a6 as HistoryTransactionContext, a7 as HookContext, a8 as HybridFulltextOptions, a9 as HybridSearchHit, aa as HybridSearchOptions, ab as HybridVectorOptions, ac as IfExistsMode, ad as InitialQueryBuilder, ae as KindIntrospection, af as LiveStoreOptions, ag as MaterializeRemovalsEntry, ah as MaterializeRemovalsOptions, ai as MaterializeRemovalsResult, aj as NeighborsOptions, ak as NoRecordedCoordinate, N as Node, al as NodeAccessor, am as NodeAlias, an as NodeBulkFindByIndexOptions, ao as NodeCollection, ap as NodeCurrentReads, aq as NodeGetOrCreateByConstraintOptions, ar as NodeGetOrCreateByConstraintResult, as as NodeIdentifier, at as NodeRef, au as NodeTemporalReads, av as NodeWrites, aw as OntologyIntrospection, ax as OperationHookContext, ay as PaginateOptions, az as PaginatedResult, aA as PathNode, aB as Predicate, aC as PreparedQuery, aD as PropsAccessor, aE as QueryHookContext, aF as QueryOptions, aG as ReachableNode, aH as ReachableOptions, aI as RebuildFulltextOptions, aJ as RebuildFulltextResult, aK as ReclaimedVectorFieldEntry, aL as RecordedInstant, aM as RecordedReadStore, aN as RecordedStoreView, aO as RecordedStoreViewEdgeCollection, aP as RecordedStoreViewEdgeCollections, aQ as RecordedStoreViewNodeCollection, aR as RecordedStoreViewNodeCollections, aS as RecursiveTraversalOptions, aT as ReembedFunction, aU as ReembedVectorFieldOptions, aV as ReembedVectorFieldResult, aW as SchemaIntrospection, aX as SearchScopeOptions, aY as SearchableMetadata, aZ as SearchableOptions, a_ as SearchableSchema, a$ as SelectContext, b0 as SelectableEdge, b1 as SelectableNode, b2 as ShortestPathOptions, b3 as ShortestPathResult, S as Store, b4 as StoreHooks, b5 as StoreOptions, b6 as StoreProjection, b7 as StoreRef, b8 as StoreSearch, b9 as StoreView, ba as StoreViewCanReachOptions, bb as StoreViewCoordinate, bc as StoreViewDegreeOptions, bd as StoreViewEdgeCollection, be as StoreViewEdgeCollections, bf as StoreViewNeighborsOptions, bg as StoreViewNodeCollection, bh as StoreViewNodeCollections, bi as StoreViewReachableOptions, bj as StoreViewShortestPathOptions, bk as StoreViewSubgraphOptions, bl as StreamOptions, bm as SubgraphEdgeResult, bn as SubgraphNodeResult, bo as SubgraphOptions, bp as SubgraphResult, bq as SubsetEdge, br as SubsetNode, bs as TemporalAlgorithmOptions, bt as TransactionContext, bu as TransactionOutcome, bv as TransactionReceipt, bw as TraversalDirection, bx as TypedEdgeCollection, by as TypedRecordedStoreViewEdgeCollection, bz as TypedStoreViewEdgeCollection, bA as UnionableQuery, U as UniqueIntrospection, bB as UpdateEdgeInput, bC as UpdateNodeInput, bD as VectorSearchHit, bE as VectorSearchOptions, bF as asRecordedInstant, bG as createQueryBuilder, bH as createStore, bI as createStoreWithSchema, bJ as createVerifiedStore, bK as defineSubgraphProject, bL as embedding, bM as exists, bN as fieldRef, bO as getEmbeddingDimensions, bP as getSearchableMetadata, bQ as inSubquery, bR as isEmbeddingSchema, bS as isParameterRef, bT as isSearchableSchema, bU as notExists, bV as notInSubquery, bW as param, bX as searchable } from './store-view-BSpqvAxK.cjs';
6
+ import { E as EmbeddingMetric, a as EmbeddingIndexType, A as AliasMap, b as EdgeAliasMap, R as RecursiveAliasMap, Q as QueryCoordinateState, c as QueryBuilder, d as EmptyRecursiveAliasMap, T as TraversalBuilder } from './store-view-9KDOpZzF.cjs';
7
+ export { e as AggregateResult, f as AlgorithmCyclePolicy, g as AnyEdge, h as AnyNode, B as BaseTraversalOptions, i as BatchResults, j as BatchableQuery, C as ConstraintNames, k as CreateEdgeInput, l as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, m as DegreeOptions, n as DynamicEdgeAccessor, o as DynamicEdgeCollection, p as DynamicEdgeType, q as DynamicFieldBuilder, r as DynamicNodeAccessor, s as DynamicNodeCollection, t as DynamicNodeType, u as DynamicSelectableEdge, v as DynamicSelectableNode, w as Edge, x as EdgeAccessor, y as EdgeBatchReads, z as EdgeCollection, F as EdgeFindByEndpointsOptions, G as EdgeGetOrCreateByEndpointsOptions, I as EdgeGetOrCreateByEndpointsResult, J as EdgeIntrospection, K as EdgeTemporalReads, L as EdgeWrites, M as EmbeddingSchema, O as EmbeddingValue, P as EmptyAliasMap, V as EmptyEdgeAliasMap, W as ExecutableAggregateQuery, X as ExecutableQuery, Y as FieldAccessor, Z as FulltextSearchHit, _ as FulltextSearchOptions, $ as GetOrCreateAction, a0 as GraphAlgorithms, a1 as GraphEdgeCollections, a2 as GraphNodeCollections, a3 as HistorySafeBackend, a4 as HistorySafeTransactionBackend, H as HistoryStore, a5 as HistoryStoreOptions, a6 as HistoryTransactionContext, a7 as HistoryWithTransactionUnavailable, a8 as HookContext, a9 as HybridFulltextOptions, aa as HybridSearchHit, ab as HybridSearchOptions, ac as HybridVectorOptions, ad as IfExistsMode, ae as InitialQueryBuilder, af as KindIntrospection, ag as LiveStoreOptions, ah as MaterializeRemovalsEntry, ai as MaterializeRemovalsOptions, aj as MaterializeRemovalsResult, ak as MeasurableHistoryTransactionContext, al as MeasurableTransactionContext, am as NeighborsOptions, an as NoRecordedCoordinate, N as Node, ao as NodeAccessor, ap as NodeAlias, aq as NodeBulkFindByIndexOptions, ar as NodeCollection, as as NodeCurrentReads, at as NodeGetOrCreateByConstraintOptions, au as NodeGetOrCreateByConstraintResult, av as NodeIdentifier, aw as NodeRef, ax as NodeTemporalReads, ay as NodeWrites, az as OntologyIntrospection, aA as OperationHookContext, aB as PaginateOptions, aC as PaginatedResult, aD as PathNode, aE as Predicate, aF as PreparedQuery, aG as PropsAccessor, aH as QueryHookContext, aI as QueryOptions, aJ as ReachableNode, aK as ReachableOptions, aL as RebuildFulltextOptions, aM as RebuildFulltextResult, aN as ReclaimedVectorFieldEntry, aO as RecordedInstant, aP as RecordedReadStore, aQ as RecordedStoreView, aR as RecordedStoreViewEdgeCollection, aS as RecordedStoreViewEdgeCollections, aT as RecordedStoreViewNodeCollection, aU as RecordedStoreViewNodeCollections, aV as RecursiveTraversalOptions, aW as ReembedFunction, aX as ReembedVectorFieldOptions, aY as ReembedVectorFieldResult, aZ as SchemaIntrospection, a_ as ScopedMeasure, a$ as SearchScopeOptions, b0 as SearchableMetadata, b1 as SearchableOptions, b2 as SearchableSchema, b3 as SelectContext, b4 as SelectableEdge, b5 as SelectableNode, b6 as ShortestPathOptions, b7 as ShortestPathResult, b8 as SqlAvailability, S as Store, b9 as StoreHooks, ba as StoreOptions, bb as StoreProjection, bc as StoreRef, bd as StoreSearch, be as StoreView, bf as StoreViewCanReachOptions, bg as StoreViewCoordinate, bh as StoreViewDegreeOptions, bi as StoreViewEdgeCollection, bj as StoreViewEdgeCollections, bk as StoreViewNeighborsOptions, bl as StoreViewNodeCollection, bm as StoreViewNodeCollections, bn as StoreViewReachableOptions, bo as StoreViewShortestPathOptions, bp as StoreViewSubgraphOptions, bq as StreamOptions, br as SubgraphEdgeResult, bs as SubgraphNodeResult, bt as SubgraphOptions, bu as SubgraphResult, bv as SubsetEdge, bw as SubsetNode, bx as TemporalAlgorithmOptions, by as TransactionContext, bz as TransactionOutcome, bA as TransactionReceipt, bB as TraversalDirection, bC as TypedEdgeCollection, bD as TypedRecordedStoreViewEdgeCollection, bE as TypedStoreViewEdgeCollection, bF as UnionableQuery, U as UniqueIntrospection, bG as UpdateEdgeInput, bH as UpdateNodeInput, bI as VectorSearchHit, bJ as VectorSearchOptions, bK as asRecordedInstant, bL as createQueryBuilder, bM as createStore, bN as createStoreWithSchema, bO as createVerifiedStore, bP as defineSubgraphProject, bQ as embedding, bR as exists, bS as fieldRef, bT as getEmbeddingDimensions, bU as getSearchableMetadata, bV as inSubquery, bW as isEmbeddingSchema, bX as isParameterRef, bY as isSearchableSchema, bZ as notExists, b_ as notInSubquery, b$ as param, c0 as searchable } from './store-view-9KDOpZzF.cjs';
8
8
  import { G as GraphDef } from './manager-DwQi8eV0.cjs';
9
9
  export { A as AllEdgeTypes, v as AllNodeTypes, w as EdgeKinds, x as GetEdgeType, u as GetNodeType, t as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, y as defineGraph, z as getEdgeKinds, B as getNodeKinds, F as isGraphDef } from './manager-DwQi8eV0.cjs';
10
- export { B as BackendDisposedError, C as CardinalityError, b as CardinalityErrorDetails, c as CompilerInvariantError, d as ConfigurationError, D as DatabaseOperationError, e as DatabaseOperationErrorDetails, f as DisjointError, g as DisjointErrorDetails, E as EagerMaterializationError, h as EagerMaterializationErrorDetails, i as EdgeNotFoundError, j as EdgeNotFoundErrorDetails, k as EmbeddingDimensionChangedError, l as EmbeddingDimensionChangedErrorDetails, m as EndpointError, n as EndpointErrorDetails, o as EndpointNotFoundError, p as EndpointNotFoundErrorDetails, q as ErrorCategory, K as KindNotFoundError, r as KindNotFoundErrorDetails, M as MigrationError, s as MigrationErrorDetails, N as NodeConstraintNotFoundError, t as NodeConstraintNotFoundErrorDetails, u as NodeIndexNotFoundError, v as NodeIndexNotFoundErrorDetails, w as NodeNotFoundError, x as NodeNotFoundErrorDetails, R as RestrictedDeleteError, y as RestrictedDeleteErrorDetails, S as SchemaContentConflictError, z as SchemaContentConflictErrorDetails, A as SchemaMismatchError, F as SchemaMismatchErrorDetails, G as StaleVersionError, H as StaleVersionErrorDetails, I as StoreNotInitializedError, J as StoreNotInitializedErrorDetails, L as StoreNotInitializedReason, O as TransactionClosedError, T as TypeGraphError, P as TypeGraphErrorOptions, U as UniquenessError, Q as UniquenessErrorDetails, W as UnsupportedPredicateError, a as ValidationError, X as ValidationErrorDetails, V as ValidationIssue, Y as VersionConflictError, Z as VersionConflictErrorDetails, _ as getErrorSuggestion, $ as isConstraintError, a0 as isSystemError, a1 as isTypeGraphError, a2 as isUserRecoverable } from './index-Bks_3HHK.cjs';
10
+ export { B as BackendDisposedError, C as CardinalityError, b as CardinalityErrorDetails, c as CompilerInvariantError, d as ConfigurationError, D as DatabaseOperationError, e as DatabaseOperationErrorDetails, f as DisjointError, g as DisjointErrorDetails, E as EagerMaterializationError, h as EagerMaterializationErrorDetails, i as EdgeNotFoundError, j as EdgeNotFoundErrorDetails, k as EmbeddingDimensionChangedError, l as EmbeddingDimensionChangedErrorDetails, m as EndpointError, n as EndpointErrorDetails, o as EndpointNotFoundError, p as EndpointNotFoundErrorDetails, q as ErrorCategory, K as KindNotFoundError, r as KindNotFoundErrorDetails, M as MigrationError, s as MigrationErrorDetails, N as NodeConstraintNotFoundError, t as NodeConstraintNotFoundErrorDetails, u as NodeIndexNotFoundError, v as NodeIndexNotFoundErrorDetails, w as NodeNotFoundError, x as NodeNotFoundErrorDetails, R as RECORDED_CAPTURE_GUARD_CODES, y as RecordedCaptureGuardCode, z as RecordedCaptureGuardError, A as RestrictedDeleteError, F as RestrictedDeleteErrorDetails, S as SchemaContentConflictError, G as SchemaContentConflictErrorDetails, H as SchemaMismatchError, I as SchemaMismatchErrorDetails, J as StaleVersionError, L as StaleVersionErrorDetails, O as StoreNotInitializedError, P as StoreNotInitializedErrorDetails, Q as StoreNotInitializedReason, U as TransactionClosedError, T as TypeGraphError, W as TypeGraphErrorOptions, X as UniquenessError, Y as UniquenessErrorDetails, Z as UnsupportedPredicateError, a as ValidationError, _ as ValidationErrorDetails, V as ValidationIssue, $ as VersionConflictError, a0 as VersionConflictErrorDetails, a1 as getErrorSuggestion, a2 as isConstraintError, a3 as isRecordedCaptureGuardError, a4 as isSystemError, a5 as isTypeGraphError, a6 as isUserRecoverable } from './index-BLtQWKRj.cjs';
11
11
  export { a as MaterializeIndexesEntry, b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-B4e9360H.cjs';
12
12
  export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from './where-DdMIXOtH.cjs';
13
13
  export { GraphExtensionError, GraphExtensionIssue, GraphExtensionIssueCode, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChange, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, KindReferent, RemoveCompileTimeKindError, defineGraphExtension, validateGraphExtension } from './graph-extension/index.cjs';
package/dist/index.d.ts CHANGED
@@ -3,11 +3,11 @@ import { f as KindAnnotations, N as NodeType, g as EdgeType } from './extension-
3
3
  export { A as AnyEdgeType, C as CURRENT_GRAPH_EXTENSION_VERSION, m as Cardinality, n as Collation, D as DeleteBehavior, e as EdgeId, o as EdgeProps, E as EdgeRegistration, p as EdgeTypeWithEndpoints, q as EndpointExistence, c as GraphDefaults, G as GraphExtension, h as GraphExtensionVersion, J as JsonValue, L as LEGACY_GRAPH_EXTENSION_VERSION, d as NodeId, r as NodeProps, b as NodeRegistration, T as TemporalMode, U as UniqueConstraint, s as UniquenessScope, t as asEdgeId, u as asNodeId, v as isEdgeType, w as isEdgeTypeWithEndpoints, x as isNodeType } from './extension-types-ixRpJVUp.js';
4
4
  import { K as InferenceType, M as MetaEdge, V as VectorStrategy, G as GraphBackend, O as OntologyRelation, L as AggregateExpr, P as FieldRef, T as ComparisonOp, U as AggregateComparisonPredicate, W as TraversalDirection } from './fulltext-strategy-B57yvC5Q.js';
5
5
  export { X as AdoptedTransaction, B as BackendCapabilities, Y as BackendIdentity, Z as BackendLifecycle, _ as BackendMaintenance, $ as BackendTransactions, a0 as CommitSchemaVersionExpected, a1 as CommitSchemaVersionParams, a2 as CompiledRowsSql, a3 as CompiledSelectSql, a4 as CompiledStatementSql, a5 as ContributionMaterializationBackend, a6 as DEFAULT_SQL_SCHEMA, a7 as DeleteFulltextBatchParams, a8 as EdgeEntityReadBackend, a9 as EdgeEntityWriteBackend, E as EdgeIndexConfig, c as EdgeIndexDeclaration, g as EdgeIndexDirection, h as EdgeIndexWhereBuilder, aa as ExternalRecordedReadSource, ab as FilteredApproximateSearch, ac as FilteredApproximateSearchMode, ad as FulltextBatchRow, ae as FulltextCapabilities, af as FulltextOperationBackend, ag as FulltextQueryMode, ah as FulltextSearchParams, ai as FulltextSearchResult, F as FulltextStrategy, aj as GraphEntityReadBackend, ak as GraphEntityWriteBackend, al as GraphLifecycleBackend, am as HybridFusionOptions, I as IndexDeclaration, an as IndexMaterializationBackend, i as IndexOrigin, j as IndexScope, e as IndexWhereExpression, k as IndexWhereFieldBuilder, l as IndexWhereInput, ao as IntentSql, J as JsonPointer, ap as JsonPointerFor, aq as JsonPointerInput, ar as JsonPointerSegment, as as JsonPointerSegments, at as JsonPointerSegmentsFor, au as MAX_JSON_POINTER_DEPTH, av as MetaEdgeProperties, aw as NodeEntityReadBackend, ax as NodeEntityWriteBackend, N as NodeIndexConfig, d as NodeIndexDeclaration, m as NodeIndexWhereBuilder, ay as OrderSpec, az as ParameterRef, aA as QueryExecutionBackend, aB as RawQueryExecutionBackend, aC as RawStatementExecutionBackend, aD as RecordedRelationOptions, aE as RemovalMaterializationBackend, aF as ResolveJsonPointer, aG as ResolveJsonPointerSegments, aH as ResolvedSqlTableNames, aI as RowProps, aJ as SchemaCommitBackend, aK as SchemaReadBackend, H as SchemaVersionRow, aL as SetActiveVersionParams, aM as SortDirection, f as SqlDialect, aN as SqlIntent, aO as SqlSchema, aP as SqlTableNames, aQ as StrategyTableContribution, aR as TableContribution, aS as TransactionBackend, aT as TraversalExpansion, aU as UniqueConstraintBackend, aV as UpsertFulltextBatchParams, aW as VectorCapabilities, aX as VectorOperationBackend, aY as VectorSlot, aZ as asCompiledRowsSql, a_ as asCompiledSelectSql, a$ as asCompiledStatementSql, b0 as buildVectorCapabilities, b1 as createSqlSchema, b2 as fts5Strategy, b3 as isMetaEdge, b4 as joinJsonPointers, b5 as jsonPointer, b6 as normalizeJsonPointer, b7 as parseJsonPointer, b8 as recordedRelation, b9 as rowPropsToJsonText, ba as rowPropsToObject, bb as tsvectorStrategy } from './fulltext-strategy-B57yvC5Q.js';
6
- import { E as EmbeddingMetric, a as EmbeddingIndexType, A as AliasMap, b as EdgeAliasMap, R as RecursiveAliasMap, Q as QueryCoordinateState, c as QueryBuilder, d as EmptyRecursiveAliasMap, T as TraversalBuilder } from './store-view-CKbHFRnn.js';
7
- export { e as AggregateResult, f as AlgorithmCyclePolicy, g as AnyEdge, h as AnyNode, B as BaseTraversalOptions, i as BatchResults, j as BatchableQuery, C as ConstraintNames, k as CreateEdgeInput, l as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, m as DegreeOptions, n as DynamicEdgeAccessor, o as DynamicEdgeCollection, p as DynamicEdgeType, q as DynamicFieldBuilder, r as DynamicNodeAccessor, s as DynamicNodeCollection, t as DynamicNodeType, u as DynamicSelectableEdge, v as DynamicSelectableNode, w as Edge, x as EdgeAccessor, y as EdgeBatchReads, z as EdgeCollection, F as EdgeFindByEndpointsOptions, G as EdgeGetOrCreateByEndpointsOptions, I as EdgeGetOrCreateByEndpointsResult, J as EdgeIntrospection, K as EdgeTemporalReads, L as EdgeWrites, M as EmbeddingSchema, O as EmbeddingValue, P as EmptyAliasMap, V as EmptyEdgeAliasMap, W as ExecutableAggregateQuery, X as ExecutableQuery, Y as FieldAccessor, Z as FulltextSearchHit, _ as FulltextSearchOptions, $ as GetOrCreateAction, a0 as GraphAlgorithms, a1 as GraphEdgeCollections, a2 as GraphNodeCollections, a3 as HistorySafeBackend, a4 as HistorySafeTransactionBackend, H as HistoryStore, a5 as HistoryStoreOptions, a6 as HistoryTransactionContext, a7 as HookContext, a8 as HybridFulltextOptions, a9 as HybridSearchHit, aa as HybridSearchOptions, ab as HybridVectorOptions, ac as IfExistsMode, ad as InitialQueryBuilder, ae as KindIntrospection, af as LiveStoreOptions, ag as MaterializeRemovalsEntry, ah as MaterializeRemovalsOptions, ai as MaterializeRemovalsResult, aj as NeighborsOptions, ak as NoRecordedCoordinate, N as Node, al as NodeAccessor, am as NodeAlias, an as NodeBulkFindByIndexOptions, ao as NodeCollection, ap as NodeCurrentReads, aq as NodeGetOrCreateByConstraintOptions, ar as NodeGetOrCreateByConstraintResult, as as NodeIdentifier, at as NodeRef, au as NodeTemporalReads, av as NodeWrites, aw as OntologyIntrospection, ax as OperationHookContext, ay as PaginateOptions, az as PaginatedResult, aA as PathNode, aB as Predicate, aC as PreparedQuery, aD as PropsAccessor, aE as QueryHookContext, aF as QueryOptions, aG as ReachableNode, aH as ReachableOptions, aI as RebuildFulltextOptions, aJ as RebuildFulltextResult, aK as ReclaimedVectorFieldEntry, aL as RecordedInstant, aM as RecordedReadStore, aN as RecordedStoreView, aO as RecordedStoreViewEdgeCollection, aP as RecordedStoreViewEdgeCollections, aQ as RecordedStoreViewNodeCollection, aR as RecordedStoreViewNodeCollections, aS as RecursiveTraversalOptions, aT as ReembedFunction, aU as ReembedVectorFieldOptions, aV as ReembedVectorFieldResult, aW as SchemaIntrospection, aX as SearchScopeOptions, aY as SearchableMetadata, aZ as SearchableOptions, a_ as SearchableSchema, a$ as SelectContext, b0 as SelectableEdge, b1 as SelectableNode, b2 as ShortestPathOptions, b3 as ShortestPathResult, S as Store, b4 as StoreHooks, b5 as StoreOptions, b6 as StoreProjection, b7 as StoreRef, b8 as StoreSearch, b9 as StoreView, ba as StoreViewCanReachOptions, bb as StoreViewCoordinate, bc as StoreViewDegreeOptions, bd as StoreViewEdgeCollection, be as StoreViewEdgeCollections, bf as StoreViewNeighborsOptions, bg as StoreViewNodeCollection, bh as StoreViewNodeCollections, bi as StoreViewReachableOptions, bj as StoreViewShortestPathOptions, bk as StoreViewSubgraphOptions, bl as StreamOptions, bm as SubgraphEdgeResult, bn as SubgraphNodeResult, bo as SubgraphOptions, bp as SubgraphResult, bq as SubsetEdge, br as SubsetNode, bs as TemporalAlgorithmOptions, bt as TransactionContext, bu as TransactionOutcome, bv as TransactionReceipt, bw as TraversalDirection, bx as TypedEdgeCollection, by as TypedRecordedStoreViewEdgeCollection, bz as TypedStoreViewEdgeCollection, bA as UnionableQuery, U as UniqueIntrospection, bB as UpdateEdgeInput, bC as UpdateNodeInput, bD as VectorSearchHit, bE as VectorSearchOptions, bF as asRecordedInstant, bG as createQueryBuilder, bH as createStore, bI as createStoreWithSchema, bJ as createVerifiedStore, bK as defineSubgraphProject, bL as embedding, bM as exists, bN as fieldRef, bO as getEmbeddingDimensions, bP as getSearchableMetadata, bQ as inSubquery, bR as isEmbeddingSchema, bS as isParameterRef, bT as isSearchableSchema, bU as notExists, bV as notInSubquery, bW as param, bX as searchable } from './store-view-CKbHFRnn.js';
6
+ import { E as EmbeddingMetric, a as EmbeddingIndexType, A as AliasMap, b as EdgeAliasMap, R as RecursiveAliasMap, Q as QueryCoordinateState, c as QueryBuilder, d as EmptyRecursiveAliasMap, T as TraversalBuilder } from './store-view-DplHC3Nt.js';
7
+ export { e as AggregateResult, f as AlgorithmCyclePolicy, g as AnyEdge, h as AnyNode, B as BaseTraversalOptions, i as BatchResults, j as BatchableQuery, C as ConstraintNames, k as CreateEdgeInput, l as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, m as DegreeOptions, n as DynamicEdgeAccessor, o as DynamicEdgeCollection, p as DynamicEdgeType, q as DynamicFieldBuilder, r as DynamicNodeAccessor, s as DynamicNodeCollection, t as DynamicNodeType, u as DynamicSelectableEdge, v as DynamicSelectableNode, w as Edge, x as EdgeAccessor, y as EdgeBatchReads, z as EdgeCollection, F as EdgeFindByEndpointsOptions, G as EdgeGetOrCreateByEndpointsOptions, I as EdgeGetOrCreateByEndpointsResult, J as EdgeIntrospection, K as EdgeTemporalReads, L as EdgeWrites, M as EmbeddingSchema, O as EmbeddingValue, P as EmptyAliasMap, V as EmptyEdgeAliasMap, W as ExecutableAggregateQuery, X as ExecutableQuery, Y as FieldAccessor, Z as FulltextSearchHit, _ as FulltextSearchOptions, $ as GetOrCreateAction, a0 as GraphAlgorithms, a1 as GraphEdgeCollections, a2 as GraphNodeCollections, a3 as HistorySafeBackend, a4 as HistorySafeTransactionBackend, H as HistoryStore, a5 as HistoryStoreOptions, a6 as HistoryTransactionContext, a7 as HistoryWithTransactionUnavailable, a8 as HookContext, a9 as HybridFulltextOptions, aa as HybridSearchHit, ab as HybridSearchOptions, ac as HybridVectorOptions, ad as IfExistsMode, ae as InitialQueryBuilder, af as KindIntrospection, ag as LiveStoreOptions, ah as MaterializeRemovalsEntry, ai as MaterializeRemovalsOptions, aj as MaterializeRemovalsResult, ak as MeasurableHistoryTransactionContext, al as MeasurableTransactionContext, am as NeighborsOptions, an as NoRecordedCoordinate, N as Node, ao as NodeAccessor, ap as NodeAlias, aq as NodeBulkFindByIndexOptions, ar as NodeCollection, as as NodeCurrentReads, at as NodeGetOrCreateByConstraintOptions, au as NodeGetOrCreateByConstraintResult, av as NodeIdentifier, aw as NodeRef, ax as NodeTemporalReads, ay as NodeWrites, az as OntologyIntrospection, aA as OperationHookContext, aB as PaginateOptions, aC as PaginatedResult, aD as PathNode, aE as Predicate, aF as PreparedQuery, aG as PropsAccessor, aH as QueryHookContext, aI as QueryOptions, aJ as ReachableNode, aK as ReachableOptions, aL as RebuildFulltextOptions, aM as RebuildFulltextResult, aN as ReclaimedVectorFieldEntry, aO as RecordedInstant, aP as RecordedReadStore, aQ as RecordedStoreView, aR as RecordedStoreViewEdgeCollection, aS as RecordedStoreViewEdgeCollections, aT as RecordedStoreViewNodeCollection, aU as RecordedStoreViewNodeCollections, aV as RecursiveTraversalOptions, aW as ReembedFunction, aX as ReembedVectorFieldOptions, aY as ReembedVectorFieldResult, aZ as SchemaIntrospection, a_ as ScopedMeasure, a$ as SearchScopeOptions, b0 as SearchableMetadata, b1 as SearchableOptions, b2 as SearchableSchema, b3 as SelectContext, b4 as SelectableEdge, b5 as SelectableNode, b6 as ShortestPathOptions, b7 as ShortestPathResult, b8 as SqlAvailability, S as Store, b9 as StoreHooks, ba as StoreOptions, bb as StoreProjection, bc as StoreRef, bd as StoreSearch, be as StoreView, bf as StoreViewCanReachOptions, bg as StoreViewCoordinate, bh as StoreViewDegreeOptions, bi as StoreViewEdgeCollection, bj as StoreViewEdgeCollections, bk as StoreViewNeighborsOptions, bl as StoreViewNodeCollection, bm as StoreViewNodeCollections, bn as StoreViewReachableOptions, bo as StoreViewShortestPathOptions, bp as StoreViewSubgraphOptions, bq as StreamOptions, br as SubgraphEdgeResult, bs as SubgraphNodeResult, bt as SubgraphOptions, bu as SubgraphResult, bv as SubsetEdge, bw as SubsetNode, bx as TemporalAlgorithmOptions, by as TransactionContext, bz as TransactionOutcome, bA as TransactionReceipt, bB as TraversalDirection, bC as TypedEdgeCollection, bD as TypedRecordedStoreViewEdgeCollection, bE as TypedStoreViewEdgeCollection, bF as UnionableQuery, U as UniqueIntrospection, bG as UpdateEdgeInput, bH as UpdateNodeInput, bI as VectorSearchHit, bJ as VectorSearchOptions, bK as asRecordedInstant, bL as createQueryBuilder, bM as createStore, bN as createStoreWithSchema, bO as createVerifiedStore, bP as defineSubgraphProject, bQ as embedding, bR as exists, bS as fieldRef, bT as getEmbeddingDimensions, bU as getSearchableMetadata, bV as inSubquery, bW as isEmbeddingSchema, bX as isParameterRef, bY as isSearchableSchema, bZ as notExists, b_ as notInSubquery, b$ as param, c0 as searchable } from './store-view-DplHC3Nt.js';
8
8
  import { G as GraphDef } from './manager-ejUCB52T.js';
9
9
  export { A as AllEdgeTypes, v as AllNodeTypes, w as EdgeKinds, x as GetEdgeType, u as GetNodeType, t as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, y as defineGraph, z as getEdgeKinds, B as getNodeKinds, F as isGraphDef } from './manager-ejUCB52T.js';
10
- export { B as BackendDisposedError, C as CardinalityError, b as CardinalityErrorDetails, c as CompilerInvariantError, d as ConfigurationError, D as DatabaseOperationError, e as DatabaseOperationErrorDetails, f as DisjointError, g as DisjointErrorDetails, E as EagerMaterializationError, h as EagerMaterializationErrorDetails, i as EdgeNotFoundError, j as EdgeNotFoundErrorDetails, k as EmbeddingDimensionChangedError, l as EmbeddingDimensionChangedErrorDetails, m as EndpointError, n as EndpointErrorDetails, o as EndpointNotFoundError, p as EndpointNotFoundErrorDetails, q as ErrorCategory, K as KindNotFoundError, r as KindNotFoundErrorDetails, M as MigrationError, s as MigrationErrorDetails, N as NodeConstraintNotFoundError, t as NodeConstraintNotFoundErrorDetails, u as NodeIndexNotFoundError, v as NodeIndexNotFoundErrorDetails, w as NodeNotFoundError, x as NodeNotFoundErrorDetails, R as RestrictedDeleteError, y as RestrictedDeleteErrorDetails, S as SchemaContentConflictError, z as SchemaContentConflictErrorDetails, A as SchemaMismatchError, F as SchemaMismatchErrorDetails, G as StaleVersionError, H as StaleVersionErrorDetails, I as StoreNotInitializedError, J as StoreNotInitializedErrorDetails, L as StoreNotInitializedReason, O as TransactionClosedError, T as TypeGraphError, P as TypeGraphErrorOptions, U as UniquenessError, Q as UniquenessErrorDetails, W as UnsupportedPredicateError, a as ValidationError, X as ValidationErrorDetails, V as ValidationIssue, Y as VersionConflictError, Z as VersionConflictErrorDetails, _ as getErrorSuggestion, $ as isConstraintError, a0 as isSystemError, a1 as isTypeGraphError, a2 as isUserRecoverable } from './index-6CSUAq-x.js';
10
+ export { B as BackendDisposedError, C as CardinalityError, b as CardinalityErrorDetails, c as CompilerInvariantError, d as ConfigurationError, D as DatabaseOperationError, e as DatabaseOperationErrorDetails, f as DisjointError, g as DisjointErrorDetails, E as EagerMaterializationError, h as EagerMaterializationErrorDetails, i as EdgeNotFoundError, j as EdgeNotFoundErrorDetails, k as EmbeddingDimensionChangedError, l as EmbeddingDimensionChangedErrorDetails, m as EndpointError, n as EndpointErrorDetails, o as EndpointNotFoundError, p as EndpointNotFoundErrorDetails, q as ErrorCategory, K as KindNotFoundError, r as KindNotFoundErrorDetails, M as MigrationError, s as MigrationErrorDetails, N as NodeConstraintNotFoundError, t as NodeConstraintNotFoundErrorDetails, u as NodeIndexNotFoundError, v as NodeIndexNotFoundErrorDetails, w as NodeNotFoundError, x as NodeNotFoundErrorDetails, R as RECORDED_CAPTURE_GUARD_CODES, y as RecordedCaptureGuardCode, z as RecordedCaptureGuardError, A as RestrictedDeleteError, F as RestrictedDeleteErrorDetails, S as SchemaContentConflictError, G as SchemaContentConflictErrorDetails, H as SchemaMismatchError, I as SchemaMismatchErrorDetails, J as StaleVersionError, L as StaleVersionErrorDetails, O as StoreNotInitializedError, P as StoreNotInitializedErrorDetails, Q as StoreNotInitializedReason, U as TransactionClosedError, T as TypeGraphError, W as TypeGraphErrorOptions, X as UniquenessError, Y as UniquenessErrorDetails, Z as UnsupportedPredicateError, a as ValidationError, _ as ValidationErrorDetails, V as ValidationIssue, $ as VersionConflictError, a0 as VersionConflictErrorDetails, a1 as getErrorSuggestion, a2 as isConstraintError, a3 as isRecordedCaptureGuardError, a4 as isSystemError, a5 as isTypeGraphError, a6 as isUserRecoverable } from './index-BFvdmBPV.js';
11
11
  export { a as MaterializeIndexesEntry, b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-te9TPMMJ.js';
12
12
  export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from './where-7RKFOsXt.js';
13
13
  export { GraphExtensionError, GraphExtensionIssue, GraphExtensionIssueCode, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChange, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, KindReferent, RemoveCompileTimeKindError, defineGraphExtension, validateGraphExtension } from './graph-extension/index.js';
package/dist/index.js CHANGED
@@ -5,34 +5,34 @@ import './chunk-DFVLCOP6.js';
5
5
  import { LEGACY_EMBEDDINGS_TABLE_NAME } from './chunk-VHMPG6UL.js';
6
6
  export { andWhere, notWhere, orWhere } from './chunk-A3W7QG7K.js';
7
7
  import './chunk-6FR2MMS6.js';
8
- export { defineGraphExtension } from './chunk-VSPCZAXF.js';
9
- export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-UES55P7G.js';
10
- import './chunk-55MZDDZV.js';
11
- import './chunk-QNKSQTKQ.js';
12
- import { META_EDGE_BRAND } from './chunk-K3PPLHY7.js';
13
- export { broader, core, defineEdge, defineNode, differentFrom, disjointWith, equivalentTo, hasPart, implies, inverseOf, isMetaEdge, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-K3PPLHY7.js';
8
+ export { defineGraphExtension } from './chunk-ZIGXMKQQ.js';
9
+ export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-5DIPR3L3.js';
10
+ import './chunk-RAXU3RMB.js';
11
+ import './chunk-DN5VP4JC.js';
12
+ import { META_EDGE_BRAND } from './chunk-M75SUBFG.js';
13
+ export { broader, core, defineEdge, defineNode, differentFrom, disjointWith, equivalentTo, hasPart, implies, inverseOf, isMetaEdge, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-M75SUBFG.js';
14
+ export { asEdgeId, asNodeId, defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from './chunk-SKCOUWAX.js';
14
15
  import './chunk-UR7W5YQK.js';
15
- export { asEdgeId, asNodeId, defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from './chunk-QWEUYILR.js';
16
16
  import './chunk-UZV3AZKF.js';
17
17
  export { defineEdgeIndex, defineNodeIndex } from './chunk-OR5ZA5WP.js';
18
18
  import './chunk-W63OVYY4.js';
19
19
  export { buildVectorCapabilities, fts5Strategy, tsvectorStrategy } from './chunk-FPIZFYHE.js';
20
20
  import './chunk-5SEGFTZX.js';
21
- export { CURRENT_GRAPH_EXTENSION_VERSION, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, computeTransitiveClosure, invertClosure, isReachable, validateGraphExtension } from './chunk-QOTI55H7.js';
22
- import './chunk-RGPG7EOJ.js';
21
+ export { CURRENT_GRAPH_EXTENSION_VERSION, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, computeTransitiveClosure, invertClosure, isReachable, validateGraphExtension } from './chunk-SXGE7ITL.js';
22
+ import './chunk-S5F7ZLP2.js';
23
23
  import './chunk-BYPOGQWK.js';
24
- export { DEFAULT_SQL_SCHEMA, asRecordedInstant, createSqlSchema, generateId, recordedRelation } from './chunk-CZQ3FO2Q.js';
24
+ export { DEFAULT_SQL_SCHEMA, asRecordedInstant, createSqlSchema, generateId, recordedRelation } from './chunk-5VTR2F2K.js';
25
25
  import { asCompiledRowsSql } from './chunk-UT3S4SEN.js';
26
26
  export { asCompiledRowsSql, asCompiledSelectSql, asCompiledStatementSql } from './chunk-UT3S4SEN.js';
27
- export { exists, fieldRef, inSubquery, isParameterRef, notExists, notInSubquery, param, rowPropsToJsonText, rowPropsToObject } from './chunk-JBTOYDMN.js';
28
- import { isMissingTableError } from './chunk-I7ZUZKFD.js';
27
+ export { exists, fieldRef, inSubquery, isParameterRef, notExists, notInSubquery, param, rowPropsToJsonText, rowPropsToObject } from './chunk-IU46OHVW.js';
28
+ import { isMissingTableError } from './chunk-JFUPDJXD.js';
29
29
  import { quotedTableName } from './chunk-OHMP6N2J.js';
30
30
  import { DEFAULT_EMBEDDING_INDEX_TYPE, DEFAULT_EMBEDDING_METRIC } from './chunk-KBGQIPRQ.js';
31
31
  export { DEFAULT_SEARCHABLE_LANGUAGE, embedding, getEmbeddingDimensions, getSearchableMetadata, isEmbeddingSchema, isSearchableSchema, searchable } from './chunk-KBGQIPRQ.js';
32
32
  import './chunk-SNXVDZAJ.js';
33
33
  import './chunk-ITE4IXAK.js';
34
- import { EmbeddingDimensionChangedError } from './chunk-MP2JQKSG.js';
35
- export { BackendDisposedError, CardinalityError, CompilerInvariantError, ConfigurationError, DatabaseOperationError, DisjointError, EagerMaterializationError, EdgeNotFoundError, EmbeddingDimensionChangedError, EndpointError, EndpointNotFoundError, KindNotFoundError, MigrationError, NodeConstraintNotFoundError, NodeIndexNotFoundError, NodeNotFoundError, RestrictedDeleteError, SchemaContentConflictError, SchemaMismatchError, StaleVersionError, StoreNotInitializedError, TransactionClosedError, TypeGraphError, UniquenessError, UnsupportedPredicateError, ValidationError, VersionConflictError, getErrorSuggestion, isConstraintError, isSystemError, isTypeGraphError, isUserRecoverable } from './chunk-MP2JQKSG.js';
34
+ import { EmbeddingDimensionChangedError } from './chunk-WI7ISNQF.js';
35
+ export { BackendDisposedError, CardinalityError, CompilerInvariantError, ConfigurationError, DatabaseOperationError, DisjointError, EagerMaterializationError, EdgeNotFoundError, EmbeddingDimensionChangedError, EndpointError, EndpointNotFoundError, KindNotFoundError, MigrationError, NodeConstraintNotFoundError, NodeIndexNotFoundError, NodeNotFoundError, RECORDED_CAPTURE_GUARD_CODES, RestrictedDeleteError, SchemaContentConflictError, SchemaMismatchError, StaleVersionError, StoreNotInitializedError, TransactionClosedError, TypeGraphError, UniquenessError, UnsupportedPredicateError, ValidationError, VersionConflictError, getErrorSuggestion, isConstraintError, isRecordedCaptureGuardError, isSystemError, isTypeGraphError, isUserRecoverable } from './chunk-WI7ISNQF.js';
36
36
  export { MAX_JSON_POINTER_DEPTH, joinJsonPointers, jsonPointer, normalizeJsonPointer, parseJsonPointer } from './chunk-G6Q5UM7U.js';
37
37
  import { z } from 'zod';
38
38
  import { sql } from 'drizzle-orm';
@@ -1,93 +1,94 @@
1
1
  'use strict';
2
2
 
3
- var chunk4JEZZJ6S_cjs = require('../chunk-4JEZZJ6S.cjs');
4
- require('../chunk-WJT7OU7E.cjs');
5
- require('../chunk-VPYHY3LJ.cjs');
3
+ var chunkHW3LW7DH_cjs = require('../chunk-HW3LW7DH.cjs');
4
+ require('../chunk-4CAXEB2F.cjs');
5
+ require('../chunk-2THZ3TQI.cjs');
6
+ require('../chunk-ACSVZPK7.cjs');
6
7
  require('../chunk-D7ZEOS56.cjs');
7
- require('../chunk-GSQ6NPH6.cjs');
8
- require('../chunk-XOX22WHL.cjs');
8
+ require('../chunk-4BCU6VFZ.cjs');
9
+ require('../chunk-ZUNQ5BEP.cjs');
9
10
  require('../chunk-EOLERH7Y.cjs');
10
- require('../chunk-4TOD4LBZ.cjs');
11
- require('../chunk-BLZDPRXT.cjs');
11
+ require('../chunk-X4JBT642.cjs');
12
+ require('../chunk-RSSQKPSZ.cjs');
12
13
  require('../chunk-7YSP4V4R.cjs');
13
14
  require('../chunk-H7YNSMA7.cjs');
14
15
  require('../chunk-SJDMVITW.cjs');
15
- require('../chunk-LGEALRC6.cjs');
16
+ require('../chunk-DIK74MXX.cjs');
16
17
  require('../chunk-TDXIBCGY.cjs');
17
18
 
18
19
 
19
20
 
20
21
  Object.defineProperty(exports, "ConflictStrategySchema", {
21
22
  enumerable: true,
22
- get: function () { return chunk4JEZZJ6S_cjs.ConflictStrategySchema; }
23
+ get: function () { return chunkHW3LW7DH_cjs.ConflictStrategySchema; }
23
24
  });
24
25
  Object.defineProperty(exports, "ExportOptionsSchema", {
25
26
  enumerable: true,
26
- get: function () { return chunk4JEZZJ6S_cjs.ExportOptionsSchema; }
27
+ get: function () { return chunkHW3LW7DH_cjs.ExportOptionsSchema; }
27
28
  });
28
29
  Object.defineProperty(exports, "ExportStreamOptionsSchema", {
29
30
  enumerable: true,
30
- get: function () { return chunk4JEZZJ6S_cjs.ExportStreamOptionsSchema; }
31
+ get: function () { return chunkHW3LW7DH_cjs.ExportStreamOptionsSchema; }
31
32
  });
32
33
  Object.defineProperty(exports, "FORMAT_VERSION", {
33
34
  enumerable: true,
34
- get: function () { return chunk4JEZZJ6S_cjs.FORMAT_VERSION; }
35
+ get: function () { return chunkHW3LW7DH_cjs.FORMAT_VERSION; }
35
36
  });
36
37
  Object.defineProperty(exports, "GraphDataHeaderSchema", {
37
38
  enumerable: true,
38
- get: function () { return chunk4JEZZJ6S_cjs.GraphDataHeaderSchema; }
39
+ get: function () { return chunkHW3LW7DH_cjs.GraphDataHeaderSchema; }
39
40
  });
40
41
  Object.defineProperty(exports, "GraphDataSchema", {
41
42
  enumerable: true,
42
- get: function () { return chunk4JEZZJ6S_cjs.GraphDataSchema; }
43
+ get: function () { return chunkHW3LW7DH_cjs.GraphDataSchema; }
43
44
  });
44
45
  Object.defineProperty(exports, "GraphDataSourceSchema", {
45
46
  enumerable: true,
46
- get: function () { return chunk4JEZZJ6S_cjs.GraphDataSourceSchema; }
47
+ get: function () { return chunkHW3LW7DH_cjs.GraphDataSourceSchema; }
47
48
  });
48
49
  Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
49
50
  enumerable: true,
50
- get: function () { return chunk4JEZZJ6S_cjs.GraphInterchangeChunkSchema; }
51
+ get: function () { return chunkHW3LW7DH_cjs.GraphInterchangeChunkSchema; }
51
52
  });
52
53
  Object.defineProperty(exports, "ImportErrorSchema", {
53
54
  enumerable: true,
54
- get: function () { return chunk4JEZZJ6S_cjs.ImportErrorSchema; }
55
+ get: function () { return chunkHW3LW7DH_cjs.ImportErrorSchema; }
55
56
  });
56
57
  Object.defineProperty(exports, "ImportOptionsSchema", {
57
58
  enumerable: true,
58
- get: function () { return chunk4JEZZJ6S_cjs.ImportOptionsSchema; }
59
+ get: function () { return chunkHW3LW7DH_cjs.ImportOptionsSchema; }
59
60
  });
60
61
  Object.defineProperty(exports, "ImportResultSchema", {
61
62
  enumerable: true,
62
- get: function () { return chunk4JEZZJ6S_cjs.ImportResultSchema; }
63
+ get: function () { return chunkHW3LW7DH_cjs.ImportResultSchema; }
63
64
  });
64
65
  Object.defineProperty(exports, "InterchangeEdgeSchema", {
65
66
  enumerable: true,
66
- get: function () { return chunk4JEZZJ6S_cjs.InterchangeEdgeSchema; }
67
+ get: function () { return chunkHW3LW7DH_cjs.InterchangeEdgeSchema; }
67
68
  });
68
69
  Object.defineProperty(exports, "InterchangeNodeSchema", {
69
70
  enumerable: true,
70
- get: function () { return chunk4JEZZJ6S_cjs.InterchangeNodeSchema; }
71
+ get: function () { return chunkHW3LW7DH_cjs.InterchangeNodeSchema; }
71
72
  });
72
73
  Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
73
74
  enumerable: true,
74
- get: function () { return chunk4JEZZJ6S_cjs.UnknownPropertyStrategySchema; }
75
+ get: function () { return chunkHW3LW7DH_cjs.UnknownPropertyStrategySchema; }
75
76
  });
76
77
  Object.defineProperty(exports, "exportGraph", {
77
78
  enumerable: true,
78
- get: function () { return chunk4JEZZJ6S_cjs.exportGraph; }
79
+ get: function () { return chunkHW3LW7DH_cjs.exportGraph; }
79
80
  });
80
81
  Object.defineProperty(exports, "exportGraphStream", {
81
82
  enumerable: true,
82
- get: function () { return chunk4JEZZJ6S_cjs.exportGraphStream; }
83
+ get: function () { return chunkHW3LW7DH_cjs.exportGraphStream; }
83
84
  });
84
85
  Object.defineProperty(exports, "importGraph", {
85
86
  enumerable: true,
86
- get: function () { return chunk4JEZZJ6S_cjs.importGraph; }
87
+ get: function () { return chunkHW3LW7DH_cjs.importGraph; }
87
88
  });
88
89
  Object.defineProperty(exports, "importGraphStream", {
89
90
  enumerable: true,
90
- get: function () { return chunk4JEZZJ6S_cjs.importGraphStream; }
91
+ get: function () { return chunkHW3LW7DH_cjs.importGraphStream; }
91
92
  });
92
93
  //# sourceMappingURL=index.cjs.map
93
94
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { G as GraphDef } from '../manager-DwQi8eV0.cjs';
3
- import { S as Store } from '../store-view-BSpqvAxK.cjs';
3
+ import { S as Store } from '../store-view-9KDOpZzF.cjs';
4
4
  import '../extension-types-ixRpJVUp.cjs';
5
5
  import '../fulltext-strategy-CDkSSYhq.cjs';
6
6
  import 'drizzle-orm';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { G as GraphDef } from '../manager-ejUCB52T.js';
3
- import { S as Store } from '../store-view-CKbHFRnn.js';
3
+ import { S as Store } from '../store-view-DplHC3Nt.js';
4
4
  import '../extension-types-ixRpJVUp.js';
5
5
  import '../fulltext-strategy-B57yvC5Q.js';
6
6
  import 'drizzle-orm';
@@ -1,16 +1,17 @@
1
- export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-KMI7LYAF.js';
2
- import '../chunk-QNKSQTKQ.js';
3
- import '../chunk-QWEUYILR.js';
1
+ export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-PZKNKG5M.js';
2
+ import '../chunk-DN5VP4JC.js';
3
+ import '../chunk-SKCOUWAX.js';
4
+ import '../chunk-UR7W5YQK.js';
4
5
  import '../chunk-FPIZFYHE.js';
5
- import '../chunk-RGPG7EOJ.js';
6
- import '../chunk-CZQ3FO2Q.js';
6
+ import '../chunk-S5F7ZLP2.js';
7
+ import '../chunk-5VTR2F2K.js';
7
8
  import '../chunk-UT3S4SEN.js';
8
- import '../chunk-JBTOYDMN.js';
9
- import '../chunk-I7ZUZKFD.js';
9
+ import '../chunk-IU46OHVW.js';
10
+ import '../chunk-JFUPDJXD.js';
10
11
  import '../chunk-OHMP6N2J.js';
11
12
  import '../chunk-KBGQIPRQ.js';
12
13
  import '../chunk-SNXVDZAJ.js';
13
- import '../chunk-MP2JQKSG.js';
14
+ import '../chunk-WI7ISNQF.js';
14
15
  import '../chunk-G6Q5UM7U.js';
15
16
  //# sourceMappingURL=index.js.map
16
17
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { G as GraphDef } from '../manager-DwQi8eV0.cjs';
2
2
  import { Q as QueryAst } from '../fulltext-strategy-CDkSSYhq.cjs';
3
- import { S as Store } from '../store-view-BSpqvAxK.cjs';
3
+ import { S as Store } from '../store-view-9KDOpZzF.cjs';
4
4
  import { P as ProfilerOptions, a as ProfileReport } from '../types-Bv9DcS_E.cjs';
5
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-Bv9DcS_E.cjs';
6
6
  import '../extension-types-ixRpJVUp.cjs';
@@ -1,6 +1,6 @@
1
1
  import { G as GraphDef } from '../manager-ejUCB52T.js';
2
2
  import { Q as QueryAst } from '../fulltext-strategy-B57yvC5Q.js';
3
- import { S as Store } from '../store-view-CKbHFRnn.js';
3
+ import { S as Store } from '../store-view-DplHC3Nt.js';
4
4
  import { P as ProfilerOptions, a as ProfileReport } from '../types-CoxuV7EJ.js';
5
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-CoxuV7EJ.js';
6
6
  import '../extension-types-ixRpJVUp.js';
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkA42GCBGX_cjs = require('../chunk-A42GCBGX.cjs');
4
- var chunkXOX22WHL_cjs = require('../chunk-XOX22WHL.cjs');
4
+ var chunkZUNQ5BEP_cjs = require('../chunk-ZUNQ5BEP.cjs');
5
5
  require('../chunk-EOLERH7Y.cjs');
6
- var chunk4TOD4LBZ_cjs = require('../chunk-4TOD4LBZ.cjs');
7
- var chunkBLZDPRXT_cjs = require('../chunk-BLZDPRXT.cjs');
6
+ var chunkX4JBT642_cjs = require('../chunk-X4JBT642.cjs');
7
+ var chunkRSSQKPSZ_cjs = require('../chunk-RSSQKPSZ.cjs');
8
8
  require('../chunk-7YSP4V4R.cjs');
9
9
  require('../chunk-H7YNSMA7.cjs');
10
10
  require('../chunk-SJDMVITW.cjs');
11
11
  var chunkDI74SMXS_cjs = require('../chunk-DI74SMXS.cjs');
12
- var chunkLGEALRC6_cjs = require('../chunk-LGEALRC6.cjs');
12
+ var chunkDIK74MXX_cjs = require('../chunk-DIK74MXX.cjs');
13
13
  require('../chunk-TDXIBCGY.cjs');
14
14
 
15
15
  // src/provenance/index.ts
@@ -30,7 +30,7 @@ function edgeToKey(edge) {
30
30
  function keyToRef(key) {
31
31
  const separatorIndex = key.indexOf(KEY_SEPARATOR);
32
32
  if (separatorIndex === -1) {
33
- throw new chunkLGEALRC6_cjs.ConfigurationError(
33
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
34
34
  "Invalid provenance identity key.",
35
35
  { key },
36
36
  {
@@ -46,9 +46,9 @@ function sortedReferences(keys) {
46
46
  return [...keys].toSorted((left, right) => chunkA42GCBGX_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
47
47
  }
48
48
  function parseNodeProps(row) {
49
- const parsed = chunk4TOD4LBZ_cjs.rowPropsToObject(row.props);
49
+ const parsed = chunkX4JBT642_cjs.rowPropsToObject(row.props);
50
50
  if (!chunkDI74SMXS_cjs.isPlainObject(parsed)) {
51
- throw new chunkLGEALRC6_cjs.ConfigurationError(
51
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
52
52
  `Node ${row.kind}/${row.id} props are not an object.`,
53
53
  { kind: row.kind, id: row.id }
54
54
  );
@@ -60,7 +60,7 @@ function sourceRetractedState(row, retractedField) {
60
60
  const value = props[retractedField];
61
61
  if (value === void 0) return "available";
62
62
  if (typeof value !== "boolean") {
63
- throw new chunkLGEALRC6_cjs.ConfigurationError(
63
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
64
64
  `Provenance source field "${retractedField}" must contain a boolean value.`,
65
65
  { kind: row.kind, id: row.id, field: retractedField },
66
66
  {
@@ -78,26 +78,26 @@ function normalizeConfig(graph, config) {
78
78
  const derivesKind = config.derives.kind;
79
79
  const retractedField = config.source.retractedField ?? DEFAULT_RETRACTED_FIELD;
80
80
  if (sourceKinds.length === 0) {
81
- throw new chunkLGEALRC6_cjs.ConfigurationError(
81
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
82
82
  "Provenance retraction requires at least one source kind.",
83
83
  { role: "source" }
84
84
  );
85
85
  }
86
86
  if (factKinds.length === 0) {
87
- throw new chunkLGEALRC6_cjs.ConfigurationError(
87
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
88
88
  "Provenance retraction requires at least one fact kind.",
89
89
  { role: "fact" }
90
90
  );
91
91
  }
92
92
  const duplicateSourceKinds = duplicateValues(sourceKinds);
93
93
  if (duplicateSourceKinds.length > 0) {
94
- throw new chunkLGEALRC6_cjs.ConfigurationError("Provenance source kinds must be unique.", {
94
+ throw new chunkDIK74MXX_cjs.ConfigurationError("Provenance source kinds must be unique.", {
95
95
  duplicateSourceKinds
96
96
  });
97
97
  }
98
98
  const duplicateFactKinds = duplicateValues(factKinds);
99
99
  if (duplicateFactKinds.length > 0) {
100
- throw new chunkLGEALRC6_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
100
+ throw new chunkDIK74MXX_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
101
101
  duplicateFactKinds
102
102
  });
103
103
  }
@@ -115,7 +115,7 @@ function normalizeConfig(graph, config) {
115
115
  if (factKinds.some(
116
116
  (kind) => sourceKinds.includes(kind) || kind === justificationKind
117
117
  )) {
118
- throw new chunkLGEALRC6_cjs.ConfigurationError(
118
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
119
119
  "Provenance fact kinds must be distinct from source and justification kinds.",
120
120
  { sourceKinds, justificationKind, factKinds }
121
121
  );
@@ -157,7 +157,7 @@ function duplicateValues(values) {
157
157
  }
158
158
  function assertKind(records, kind, role, noun, graphId) {
159
159
  if (Object.hasOwn(records, kind)) return;
160
- throw new chunkLGEALRC6_cjs.ConfigurationError(
160
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
161
161
  `Provenance ${role} kind "${kind}" is not a ${noun} kind in this graph.`,
162
162
  { role, kind, graphId }
163
163
  );
@@ -166,7 +166,7 @@ function assertSourceField(graph, sourceKind, retractedField) {
166
166
  const registration = graph.nodes[sourceKind];
167
167
  if (registration === void 0) return;
168
168
  if (Object.hasOwn(registration.type.schema.shape, retractedField)) return;
169
- throw new chunkLGEALRC6_cjs.ConfigurationError(
169
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
170
170
  `Provenance source kind "${sourceKind}" must include field "${retractedField}".`,
171
171
  { sourceKind, retractedField },
172
172
  {
@@ -181,14 +181,14 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
181
181
  const toKinds = new Set(registration.to.map((node) => node.kind));
182
182
  for (const kind of expected.fromKinds) {
183
183
  if (fromKinds.has(kind)) continue;
184
- throw new chunkLGEALRC6_cjs.ConfigurationError(
184
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
185
185
  `Provenance ${expected.role} edge "${edgeKind}" cannot start at "${kind}".`,
186
186
  { edgeKind, role: expected.role, expectedFrom: kind }
187
187
  );
188
188
  }
189
189
  for (const kind of expected.toKinds) {
190
190
  if (toKinds.has(kind)) continue;
191
- throw new chunkLGEALRC6_cjs.ConfigurationError(
191
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
192
192
  `Provenance ${expected.role} edge "${edgeKind}" cannot end at "${kind}".`,
193
193
  { edgeKind, role: expected.role, expectedTo: kind }
194
194
  );
@@ -294,7 +294,7 @@ function buildSupportEdges(config, rows) {
294
294
  };
295
295
  }
296
296
  async function loadSupportGraph(backend, graphId, config) {
297
- const asOf = chunkBLZDPRXT_cjs.nowIso();
297
+ const asOf = chunkRSSQKPSZ_cjs.nowIso();
298
298
  const roles = await readRoles(backend, graphId, config, asOf);
299
299
  const supportEdges = buildSupportEdges(config, roles);
300
300
  const sourceRowsByKind = await Promise.all(
@@ -425,21 +425,21 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
425
425
  snapshot,
426
426
  affected,
427
427
  (key) => !snapshot.supportedFactKeys.has(key),
428
- chunk4TOD4LBZ_cjs.isLiveNodeRow,
428
+ chunkX4JBT642_cjs.isLiveNodeRow,
429
429
  (row) => closeFactCurrency(backend, store, runHooks, row, lock)
430
430
  );
431
431
  await forEachAffectedFact(
432
432
  snapshot,
433
433
  affected,
434
434
  (key) => snapshot.supportedFactKeys.has(key),
435
- chunk4TOD4LBZ_cjs.isTombstonedNodeRow,
435
+ chunkX4JBT642_cjs.isTombstonedNodeRow,
436
436
  (row) => reopenFactCurrency(backend, store, runHooks, row, lock)
437
437
  );
438
438
  }
439
439
  function getFactRegistration(store, row) {
440
440
  const registration = store.graph.nodes[row.kind];
441
441
  if (registration !== void 0) return registration;
442
- throw new chunkLGEALRC6_cjs.ConfigurationError(
442
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
443
443
  `Provenance fact kind "${row.kind}" is not a node kind in this graph.`,
444
444
  { kind: row.kind, graphId: store.graphId }
445
445
  );
@@ -447,8 +447,8 @@ function getFactRegistration(store, row) {
447
447
  async function closeFactCurrency(backend, store, runHooks, row, lock) {
448
448
  await runHooks("delete", row.kind, row.id, async () => {
449
449
  const registration = getFactRegistration(store, row);
450
- await chunkXOX22WHL_cjs.applyNodeSoftDelete(
451
- chunkXOX22WHL_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
450
+ await chunkZUNQ5BEP_cjs.applyNodeSoftDelete(
451
+ chunkZUNQ5BEP_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
452
452
  {
453
453
  existing: row,
454
454
  schema: registration.type.schema,
@@ -463,8 +463,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
463
463
  async function reopenFactCurrency(backend, store, runHooks, row, lock) {
464
464
  await runHooks("update", row.kind, row.id, async () => {
465
465
  const registration = getFactRegistration(store, row);
466
- await chunkXOX22WHL_cjs.applyNodeResurrect(
467
- chunkXOX22WHL_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
466
+ await chunkZUNQ5BEP_cjs.applyNodeResurrect(
467
+ chunkZUNQ5BEP_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
468
468
  {
469
469
  existing: row,
470
470
  schema: registration.type.schema,
@@ -477,7 +477,7 @@ async function reopenFactCurrency(backend, store, runHooks, row, lock) {
477
477
  function getTransactionNodeCollection(tx, kind) {
478
478
  const collection = tx.getNodeCollection(kind);
479
479
  if (collection !== void 0) return collection;
480
- throw new chunkLGEALRC6_cjs.ConfigurationError(
480
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
481
481
  `Provenance source kind "${kind}" is not available on this transaction.`,
482
482
  { kind }
483
483
  );
@@ -490,13 +490,13 @@ async function runTransition(store, config, sources, retracted) {
490
490
  const uniqueSources = uniqueNodeReferences(sources);
491
491
  for (const source of uniqueSources) {
492
492
  if (config.sourceKinds.includes(source.kind)) continue;
493
- throw new chunkLGEALRC6_cjs.ConfigurationError(
493
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
494
494
  `Provenance retraction source must be one of: ${config.sourceKinds.join(", ")}.`,
495
495
  { expectedKinds: config.sourceKinds, actualKind: source.kind }
496
496
  );
497
497
  }
498
498
  return store.transaction(async (tx) => {
499
- const lock = await chunkXOX22WHL_cjs.lockRecordedGraphWrite(tx.backend, store.graphId);
499
+ const lock = await chunkZUNQ5BEP_cjs.lockRecordedGraphWrite(tx.backend, store.graphId);
500
500
  const rows = await Promise.all(
501
501
  uniqueSources.map(
502
502
  (source) => tx.backend.getNode(store.graphId, source.kind, source.id)
@@ -505,7 +505,7 @@ async function runTransition(store, config, sources, retracted) {
505
505
  const sourceRows = uniqueSources.map((source, index) => {
506
506
  const sourceRow = rows[index];
507
507
  if (sourceRow === void 0 || sourceRow.deleted_at !== void 0) {
508
- throw new chunkLGEALRC6_cjs.NodeNotFoundError(source.kind, source.id);
508
+ throw new chunkDIK74MXX_cjs.NodeNotFoundError(source.kind, source.id);
509
509
  }
510
510
  return { source, row: sourceRow };
511
511
  });
@@ -554,7 +554,7 @@ function uniqueNodeReferences(references) {
554
554
  function createRetractionCapability(store, config) {
555
555
  const historyEnabled = store.historyEnabled;
556
556
  if (!historyEnabled) {
557
- throw new chunkLGEALRC6_cjs.ConfigurationError(
557
+ throw new chunkDIK74MXX_cjs.ConfigurationError(
558
558
  "createRetractionCapability requires a store created with { history: true }.",
559
559
  { graphId: store.graphId },
560
560
  {
@@ -571,7 +571,7 @@ function createRetractionCapability(store, config) {
571
571
  unRetractMany: (sources) => transition(sources, false),
572
572
  async holding() {
573
573
  return store.transaction(async (tx) => {
574
- await chunkXOX22WHL_cjs.lockRecordedGraphWrite(tx.backend, store.graphId);
574
+ await chunkZUNQ5BEP_cjs.lockRecordedGraphWrite(tx.backend, store.graphId);
575
575
  const snapshot = await computeSupport(
576
576
  tx.backend,
577
577
  store.graphId,
@@ -1,5 +1,5 @@
1
1
  import { G as GraphDef } from '../manager-DwQi8eV0.cjs';
2
- import { H as HistoryStore } from '../store-view-BSpqvAxK.cjs';
2
+ import { H as HistoryStore } from '../store-view-9KDOpZzF.cjs';
3
3
  import '../extension-types-ixRpJVUp.cjs';
4
4
  import 'zod';
5
5
  import '../fulltext-strategy-CDkSSYhq.cjs';
@@ -1,5 +1,5 @@
1
1
  import { G as GraphDef } from '../manager-ejUCB52T.js';
2
- import { H as HistoryStore } from '../store-view-CKbHFRnn.js';
2
+ import { H as HistoryStore } from '../store-view-DplHC3Nt.js';
3
3
  import '../extension-types-ixRpJVUp.js';
4
4
  import 'zod';
5
5
  import '../fulltext-strategy-B57yvC5Q.js';
@@ -1,13 +1,13 @@
1
1
  import { compareStrings } from '../chunk-BYPOGQWK.js';
2
- import { lockRecordedGraphWrite, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-CZQ3FO2Q.js';
2
+ import { lockRecordedGraphWrite, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-5VTR2F2K.js';
3
3
  import '../chunk-UT3S4SEN.js';
4
- import { rowPropsToObject, isLiveNodeRow, isTombstonedNodeRow } from '../chunk-JBTOYDMN.js';
5
- import { nowIso } from '../chunk-I7ZUZKFD.js';
4
+ import { rowPropsToObject, isLiveNodeRow, isTombstonedNodeRow } from '../chunk-IU46OHVW.js';
5
+ import { nowIso } from '../chunk-JFUPDJXD.js';
6
6
  import '../chunk-OHMP6N2J.js';
7
7
  import '../chunk-KBGQIPRQ.js';
8
8
  import '../chunk-SNXVDZAJ.js';
9
9
  import { isPlainObject } from '../chunk-ITE4IXAK.js';
10
- import { ConfigurationError, NodeNotFoundError } from '../chunk-MP2JQKSG.js';
10
+ import { ConfigurationError, NodeNotFoundError } from '../chunk-WI7ISNQF.js';
11
11
  import '../chunk-G6Q5UM7U.js';
12
12
 
13
13
  // src/provenance/index.ts