@nicia-ai/typegraph 0.13.0 → 0.14.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.
- package/dist/backend/postgres/index.cjs +28 -28
- package/dist/backend/postgres/index.d.cts +1 -1
- package/dist/backend/postgres/index.d.ts +1 -1
- package/dist/backend/postgres/index.js +4 -4
- package/dist/backend/sqlite/index.cjs +14 -14
- package/dist/backend/sqlite/index.d.cts +1 -1
- package/dist/backend/sqlite/index.d.ts +1 -1
- package/dist/backend/sqlite/index.js +4 -4
- package/dist/backend/sqlite/local.cjs +7 -7
- package/dist/backend/sqlite/local.d.cts +1 -1
- package/dist/backend/sqlite/local.d.ts +1 -1
- package/dist/backend/sqlite/local.js +4 -4
- package/dist/{chunk-U3452TEU.js → chunk-6GWJH6AR.js} +15 -27
- package/dist/chunk-6GWJH6AR.js.map +1 -0
- package/dist/{chunk-52WSY6G5.js → chunk-BNIBR5U2.js} +70 -31
- package/dist/chunk-BNIBR5U2.js.map +1 -0
- package/dist/{chunk-54WJF3DW.js → chunk-GNIYZKBI.js} +29 -3
- package/dist/chunk-GNIYZKBI.js.map +1 -0
- package/dist/{chunk-2XPKLHHH.cjs → chunk-KE2BL3JZ.cjs} +74 -35
- package/dist/chunk-KE2BL3JZ.cjs.map +1 -0
- package/dist/{chunk-PYV4ADC6.js → chunk-KLOSTZDQ.js} +141 -13
- package/dist/chunk-KLOSTZDQ.js.map +1 -0
- package/dist/{chunk-JQDWEX6V.cjs → chunk-LELLOHJK.cjs} +22 -34
- package/dist/chunk-LELLOHJK.cjs.map +1 -0
- package/dist/{chunk-2WVFEIHR.cjs → chunk-MME3H4ZF.cjs} +40 -2
- package/dist/chunk-MME3H4ZF.cjs.map +1 -0
- package/dist/{chunk-NZMKJHE2.cjs → chunk-OEKH5PWL.cjs} +15 -15
- package/dist/{chunk-NZMKJHE2.cjs.map → chunk-OEKH5PWL.cjs.map} +1 -1
- package/dist/{chunk-7VITUTRA.cjs → chunk-QFZ5QB2J.cjs} +140 -12
- package/dist/chunk-QFZ5QB2J.cjs.map +1 -0
- package/dist/{chunk-J4SICP3X.js → chunk-RVUEBUBH.js} +3 -3
- package/dist/{chunk-J4SICP3X.js.map → chunk-RVUEBUBH.js.map} +1 -1
- package/dist/index.cjs +432 -578
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +393 -539
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +16 -16
- package/dist/indexes/index.js +2 -2
- package/dist/interchange/index.d.cts +3 -3
- package/dist/interchange/index.d.ts +3 -3
- package/dist/{manager-DGSnJa1v.d.cts → manager-oh2mTMvy.d.cts} +1 -1
- package/dist/{manager-BCLhWysp.d.ts → manager-qRSdnKEO.d.ts} +1 -1
- package/dist/profiler/index.cjs +6 -6
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +3 -3
- package/dist/profiler/index.d.ts +3 -3
- package/dist/profiler/index.js +6 -6
- package/dist/profiler/index.js.map +1 -1
- package/dist/schema/index.cjs +20 -20
- package/dist/schema/index.d.cts +4 -4
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.js +2 -2
- package/dist/{store-6-vH0ZIj.d.ts → store-B9ItxA-Q.d.ts} +37 -17
- package/dist/{store-Bmdt_dS6.d.cts → store-BJPIoe8u.d.cts} +37 -17
- package/dist/{types-1YJKodRv.d.ts → types-5t_MIcvv.d.ts} +12 -6
- package/dist/{types-GLkwvQvS.d.cts → types-Ckfwgv9l.d.cts} +12 -6
- package/package.json +1 -1
- package/dist/chunk-2WVFEIHR.cjs.map +0 -1
- package/dist/chunk-2XPKLHHH.cjs.map +0 -1
- package/dist/chunk-52WSY6G5.js.map +0 -1
- package/dist/chunk-54WJF3DW.js.map +0 -1
- package/dist/chunk-7VITUTRA.cjs.map +0 -1
- package/dist/chunk-JQDWEX6V.cjs.map +0 -1
- package/dist/chunk-PYV4ADC6.js.map +0 -1
- package/dist/chunk-U3452TEU.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { N as NodeType, E as EdgeType } from './types-DMzKq0d5.cjs';
|
|
3
3
|
export { A as AnyEdgeType, C as Cardinality, a as Collation, D as DeleteBehavior, b as EdgeId, c as EdgeProps, d as EdgeRegistration, e as EdgeTypeWithEndpoints, f as EndpointExistence, G as GraphDefaults, g as NodeId, h as NodeProps, i as NodeRegistration, S as SqlDialect, T as TemporalMode, U as UniqueConstraint, j as UniquenessScope, k as isEdgeType, l as isEdgeTypeWithEndpoints, m as isNodeType } from './types-DMzKq0d5.cjs';
|
|
4
|
-
import { I as InferenceType, M as MetaEdge, O as OntologyRelation } from './types-
|
|
5
|
-
export { D as DEFAULT_SQL_SCHEMA, G as GraphBackend, a as MetaEdgeProperties, S as SqlSchema, b as SqlTableNames, T as TransactionBackend, c as createSqlSchema, i as isMetaEdge } from './types-
|
|
6
|
-
import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-
|
|
7
|
-
export { a as AggregateResult, b as AnyEdge, c as AnyNode, B as BatchResults, d as BatchableQuery, e as ConstraintNames, f as CreateEdgeInput, g as CreateNodeInput, h as Edge, i as EdgeAccessor, j as EdgeCollection, k as EdgeFindByEndpointsOptions, l as EdgeGetOrCreateByEndpointsOptions, m as EdgeGetOrCreateByEndpointsResult, n as EmbeddingSchema, o as EmbeddingValue, p as ExecutableAggregateQuery, q as ExecutableQuery, F as FieldAccessor, G as GetOrCreateAction, H as HookContext, I as IfExistsMode, N as Node, r as NodeAccessor, s as NodeAlias, t as NodeCollection, u as NodeGetOrCreateByConstraintOptions, v as NodeGetOrCreateByConstraintResult, w as NodeRef, O as OperationHookContext, P as PaginateOptions, x as PaginatedResult, y as Predicate, z as PreparedQuery, D as PropsAccessor, J as QueryHookContext, K as QueryOptions, R as RecursiveTraversalOptions, S as SelectContext, L as SelectableEdge, M as SelectableNode, U as Store, V as StoreHooks, W as StoreOptions, X as StreamOptions, Y as SubgraphOptions, Z as SubgraphResult, _ as SubsetEdge, $ as SubsetNode, a0 as TransactionContext, a1 as TypedEdgeCollection, a2 as UnionableQuery, a3 as UpdateEdgeInput, a4 as UpdateNodeInput, a5 as createStore, a6 as createStoreWithSchema, a7 as defineSubgraphProject, a8 as embedding, a9 as exists, aa as fieldRef, ab as getEmbeddingDimensions, ac as inSubquery, ad as isEmbeddingSchema, ae as isParameterRef, af as notExists, ag as notInSubquery, ah as param } from './store-
|
|
8
|
-
import { G as GraphDef, K as KindRegistry } from './manager-
|
|
9
|
-
export { A as AllEdgeTypes, a as AllNodeTypes, E as EdgeKinds, b as GetEdgeType, c as GetNodeType, N as NodeKinds, d as defineGraph, g as getEdgeKinds, e as getNodeKinds, i as isGraphDef } from './manager-
|
|
4
|
+
import { I as InferenceType, M as MetaEdge, O as OntologyRelation } from './types-Ckfwgv9l.cjs';
|
|
5
|
+
export { D as DEFAULT_SQL_SCHEMA, G as GraphBackend, a as MetaEdgeProperties, S as SqlSchema, b as SqlTableNames, T as TransactionBackend, c as createSqlSchema, i as isMetaEdge } from './types-Ckfwgv9l.cjs';
|
|
6
|
+
import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-BJPIoe8u.cjs';
|
|
7
|
+
export { a as AggregateResult, b as AnyEdge, c as AnyNode, B as BatchResults, d as BatchableQuery, e as ConstraintNames, f as CreateEdgeInput, g as CreateNodeInput, h as Edge, i as EdgeAccessor, j as EdgeCollection, k as EdgeFindByEndpointsOptions, l as EdgeGetOrCreateByEndpointsOptions, m as EdgeGetOrCreateByEndpointsResult, n as EmbeddingSchema, o as EmbeddingValue, p as ExecutableAggregateQuery, q as ExecutableQuery, F as FieldAccessor, G as GetOrCreateAction, H as HookContext, I as IfExistsMode, N as Node, r as NodeAccessor, s as NodeAlias, t as NodeCollection, u as NodeGetOrCreateByConstraintOptions, v as NodeGetOrCreateByConstraintResult, w as NodeRef, O as OperationHookContext, P as PaginateOptions, x as PaginatedResult, y as Predicate, z as PreparedQuery, D as PropsAccessor, J as QueryHookContext, K as QueryOptions, R as RecursiveTraversalOptions, S as SelectContext, L as SelectableEdge, M as SelectableNode, U as Store, V as StoreHooks, W as StoreOptions, X as StreamOptions, Y as SubgraphOptions, Z as SubgraphResult, _ as SubsetEdge, $ as SubsetNode, a0 as TransactionContext, a1 as TypedEdgeCollection, a2 as UnionableQuery, a3 as UpdateEdgeInput, a4 as UpdateNodeInput, a5 as createStore, a6 as createStoreWithSchema, a7 as defineSubgraphProject, a8 as embedding, a9 as exists, aa as fieldRef, ab as getEmbeddingDimensions, ac as inSubquery, ad as isEmbeddingSchema, ae as isParameterRef, af as notExists, ag as notInSubquery, ah as param } from './store-BJPIoe8u.cjs';
|
|
8
|
+
import { G as GraphDef, K as KindRegistry } from './manager-oh2mTMvy.cjs';
|
|
9
|
+
export { A as AllEdgeTypes, a as AllNodeTypes, E as EdgeKinds, b as GetEdgeType, c as GetNodeType, N as NodeKinds, d as defineGraph, g as getEdgeKinds, e as getNodeKinds, i as isGraphDef } from './manager-oh2mTMvy.cjs';
|
|
10
10
|
export { C as CardinalityError, a as CompilerInvariantError, b as ConfigurationError, D as DatabaseOperationError, c as DisjointError, E as EdgeNotFoundError, d as EndpointError, e as EndpointNotFoundError, f as ErrorCategory, K as KindNotFoundError, M as MigrationError, N as NodeConstraintNotFoundError, g as NodeNotFoundError, R as RestrictedDeleteError, S as SchemaMismatchError, T as TypeGraphError, h as TypeGraphErrorOptions, U as UniquenessError, i as UnsupportedPredicateError, V as ValidationError, j as ValidationErrorDetails, k as ValidationIssue, l as VersionConflictError, m as getErrorSuggestion, n as isConstraintError, o as isSystemError, p as isTypeGraphError, q as isUserRecoverable } from './index-QTnQwakS.cjs';
|
|
11
11
|
import { A as AggregateExpr, F as FieldRef, C as ComparisonOp, a as AggregateComparisonPredicate } from './ast-Bh2NDeaK.cjs';
|
|
12
12
|
export { J as JsonPointer, b as JsonPointerFor, c as JsonPointerInput, d as JsonPointerSegment, e as JsonPointerSegments, f as JsonPointerSegmentsFor, M as MAX_JSON_POINTER_DEPTH, O as OrderSpec, P as ParameterRef, R as ResolveJsonPointer, g as ResolveJsonPointerSegments, S as SortDirection, T as TraversalExpansion, j as joinJsonPointers, h as jsonPointer, n as normalizeJsonPointer, p as parseJsonPointer } from './ast-Bh2NDeaK.cjs';
|
|
@@ -437,10 +437,13 @@ declare const core: {
|
|
|
437
437
|
/**
|
|
438
438
|
* Maximum depth for recursive CTE queries when maxDepth is unlimited (-1).
|
|
439
439
|
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
440
|
+
* Graphs with branching factor B produce O(B^depth) rows before cycle
|
|
441
|
+
* detection can prune them. A default of 10 covers typical neighborhood,
|
|
442
|
+
* shortest-path, and hierarchy use-cases without risking exponential blowup
|
|
443
|
+
* on dense graphs. Users who need deeper traversals should call .maxHops(N)
|
|
444
|
+
* explicitly (up to MAX_EXPLICIT_RECURSIVE_DEPTH).
|
|
442
445
|
*/
|
|
443
|
-
declare const MAX_RECURSIVE_DEPTH =
|
|
446
|
+
declare const MAX_RECURSIVE_DEPTH = 10;
|
|
444
447
|
/**
|
|
445
448
|
* Maximum depth for explicit maxDepth traversals.
|
|
446
449
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { N as NodeType, E as EdgeType } from './types-DMzKq0d5.js';
|
|
3
3
|
export { A as AnyEdgeType, C as Cardinality, a as Collation, D as DeleteBehavior, b as EdgeId, c as EdgeProps, d as EdgeRegistration, e as EdgeTypeWithEndpoints, f as EndpointExistence, G as GraphDefaults, g as NodeId, h as NodeProps, i as NodeRegistration, S as SqlDialect, T as TemporalMode, U as UniqueConstraint, j as UniquenessScope, k as isEdgeType, l as isEdgeTypeWithEndpoints, m as isNodeType } from './types-DMzKq0d5.js';
|
|
4
|
-
import { I as InferenceType, M as MetaEdge, O as OntologyRelation } from './types-
|
|
5
|
-
export { D as DEFAULT_SQL_SCHEMA, G as GraphBackend, a as MetaEdgeProperties, S as SqlSchema, b as SqlTableNames, T as TransactionBackend, c as createSqlSchema, i as isMetaEdge } from './types-
|
|
6
|
-
import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-
|
|
7
|
-
export { a as AggregateResult, b as AnyEdge, c as AnyNode, B as BatchResults, d as BatchableQuery, e as ConstraintNames, f as CreateEdgeInput, g as CreateNodeInput, h as Edge, i as EdgeAccessor, j as EdgeCollection, k as EdgeFindByEndpointsOptions, l as EdgeGetOrCreateByEndpointsOptions, m as EdgeGetOrCreateByEndpointsResult, n as EmbeddingSchema, o as EmbeddingValue, p as ExecutableAggregateQuery, q as ExecutableQuery, F as FieldAccessor, G as GetOrCreateAction, H as HookContext, I as IfExistsMode, N as Node, r as NodeAccessor, s as NodeAlias, t as NodeCollection, u as NodeGetOrCreateByConstraintOptions, v as NodeGetOrCreateByConstraintResult, w as NodeRef, O as OperationHookContext, P as PaginateOptions, x as PaginatedResult, y as Predicate, z as PreparedQuery, D as PropsAccessor, J as QueryHookContext, K as QueryOptions, R as RecursiveTraversalOptions, S as SelectContext, L as SelectableEdge, M as SelectableNode, U as Store, V as StoreHooks, W as StoreOptions, X as StreamOptions, Y as SubgraphOptions, Z as SubgraphResult, _ as SubsetEdge, $ as SubsetNode, a0 as TransactionContext, a1 as TypedEdgeCollection, a2 as UnionableQuery, a3 as UpdateEdgeInput, a4 as UpdateNodeInput, a5 as createStore, a6 as createStoreWithSchema, a7 as defineSubgraphProject, a8 as embedding, a9 as exists, aa as fieldRef, ab as getEmbeddingDimensions, ac as inSubquery, ad as isEmbeddingSchema, ae as isParameterRef, af as notExists, ag as notInSubquery, ah as param } from './store-
|
|
8
|
-
import { G as GraphDef, K as KindRegistry } from './manager-
|
|
9
|
-
export { A as AllEdgeTypes, a as AllNodeTypes, E as EdgeKinds, b as GetEdgeType, c as GetNodeType, N as NodeKinds, d as defineGraph, g as getEdgeKinds, e as getNodeKinds, i as isGraphDef } from './manager-
|
|
4
|
+
import { I as InferenceType, M as MetaEdge, O as OntologyRelation } from './types-5t_MIcvv.js';
|
|
5
|
+
export { D as DEFAULT_SQL_SCHEMA, G as GraphBackend, a as MetaEdgeProperties, S as SqlSchema, b as SqlTableNames, T as TransactionBackend, c as createSqlSchema, i as isMetaEdge } from './types-5t_MIcvv.js';
|
|
6
|
+
import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-B9ItxA-Q.js';
|
|
7
|
+
export { a as AggregateResult, b as AnyEdge, c as AnyNode, B as BatchResults, d as BatchableQuery, e as ConstraintNames, f as CreateEdgeInput, g as CreateNodeInput, h as Edge, i as EdgeAccessor, j as EdgeCollection, k as EdgeFindByEndpointsOptions, l as EdgeGetOrCreateByEndpointsOptions, m as EdgeGetOrCreateByEndpointsResult, n as EmbeddingSchema, o as EmbeddingValue, p as ExecutableAggregateQuery, q as ExecutableQuery, F as FieldAccessor, G as GetOrCreateAction, H as HookContext, I as IfExistsMode, N as Node, r as NodeAccessor, s as NodeAlias, t as NodeCollection, u as NodeGetOrCreateByConstraintOptions, v as NodeGetOrCreateByConstraintResult, w as NodeRef, O as OperationHookContext, P as PaginateOptions, x as PaginatedResult, y as Predicate, z as PreparedQuery, D as PropsAccessor, J as QueryHookContext, K as QueryOptions, R as RecursiveTraversalOptions, S as SelectContext, L as SelectableEdge, M as SelectableNode, U as Store, V as StoreHooks, W as StoreOptions, X as StreamOptions, Y as SubgraphOptions, Z as SubgraphResult, _ as SubsetEdge, $ as SubsetNode, a0 as TransactionContext, a1 as TypedEdgeCollection, a2 as UnionableQuery, a3 as UpdateEdgeInput, a4 as UpdateNodeInput, a5 as createStore, a6 as createStoreWithSchema, a7 as defineSubgraphProject, a8 as embedding, a9 as exists, aa as fieldRef, ab as getEmbeddingDimensions, ac as inSubquery, ad as isEmbeddingSchema, ae as isParameterRef, af as notExists, ag as notInSubquery, ah as param } from './store-B9ItxA-Q.js';
|
|
8
|
+
import { G as GraphDef, K as KindRegistry } from './manager-qRSdnKEO.js';
|
|
9
|
+
export { A as AllEdgeTypes, a as AllNodeTypes, E as EdgeKinds, b as GetEdgeType, c as GetNodeType, N as NodeKinds, d as defineGraph, g as getEdgeKinds, e as getNodeKinds, i as isGraphDef } from './manager-qRSdnKEO.js';
|
|
10
10
|
export { C as CardinalityError, a as CompilerInvariantError, b as ConfigurationError, D as DatabaseOperationError, c as DisjointError, E as EdgeNotFoundError, d as EndpointError, e as EndpointNotFoundError, f as ErrorCategory, K as KindNotFoundError, M as MigrationError, N as NodeConstraintNotFoundError, g as NodeNotFoundError, R as RestrictedDeleteError, S as SchemaMismatchError, T as TypeGraphError, h as TypeGraphErrorOptions, U as UniquenessError, i as UnsupportedPredicateError, V as ValidationError, j as ValidationErrorDetails, k as ValidationIssue, l as VersionConflictError, m as getErrorSuggestion, n as isConstraintError, o as isSystemError, p as isTypeGraphError, q as isUserRecoverable } from './index-QTnQwakS.js';
|
|
11
11
|
import { A as AggregateExpr, F as FieldRef, C as ComparisonOp, a as AggregateComparisonPredicate } from './ast-COMyNeMn.js';
|
|
12
12
|
export { J as JsonPointer, b as JsonPointerFor, c as JsonPointerInput, d as JsonPointerSegment, e as JsonPointerSegments, f as JsonPointerSegmentsFor, M as MAX_JSON_POINTER_DEPTH, O as OrderSpec, P as ParameterRef, R as ResolveJsonPointer, g as ResolveJsonPointerSegments, S as SortDirection, T as TraversalExpansion, j as joinJsonPointers, h as jsonPointer, n as normalizeJsonPointer, p as parseJsonPointer } from './ast-COMyNeMn.js';
|
|
@@ -437,10 +437,13 @@ declare const core: {
|
|
|
437
437
|
/**
|
|
438
438
|
* Maximum depth for recursive CTE queries when maxDepth is unlimited (-1).
|
|
439
439
|
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
440
|
+
* Graphs with branching factor B produce O(B^depth) rows before cycle
|
|
441
|
+
* detection can prune them. A default of 10 covers typical neighborhood,
|
|
442
|
+
* shortest-path, and hierarchy use-cases without risking exponential blowup
|
|
443
|
+
* on dense graphs. Users who need deeper traversals should call .maxHops(N)
|
|
444
|
+
* explicitly (up to MAX_EXPLICIT_RECURSIVE_DEPTH).
|
|
442
445
|
*/
|
|
443
|
-
declare const MAX_RECURSIVE_DEPTH =
|
|
446
|
+
declare const MAX_RECURSIVE_DEPTH = 10;
|
|
444
447
|
/**
|
|
445
448
|
* Maximum depth for explicit maxDepth traversals.
|
|
446
449
|
*
|