@nicia-ai/typegraph 0.30.0 → 0.31.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/README.md +39 -0
- package/dist/backend/postgres/index.cjs +19 -18
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +9 -8
- package/dist/backend/postgres/pglite.cjs +13 -12
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +9 -8
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +16 -16
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +7 -7
- package/dist/backend/sqlite/libsql.cjs +12 -12
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +8 -8
- package/dist/backend/sqlite/local.cjs +13 -13
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +8 -8
- package/dist/{chunk-AI3RNREM.js → chunk-2HZGWCB4.js} +94 -496
- package/dist/chunk-2HZGWCB4.js.map +1 -0
- package/dist/chunk-2YMGNYXY.js +40 -0
- package/dist/chunk-2YMGNYXY.js.map +1 -0
- package/dist/chunk-2ZY4K43M.js +90 -0
- package/dist/chunk-2ZY4K43M.js.map +1 -0
- package/dist/chunk-3EUKJEQ3.js +77 -0
- package/dist/chunk-3EUKJEQ3.js.map +1 -0
- package/dist/chunk-3JBJEYWE.cjs +604 -0
- package/dist/chunk-3JBJEYWE.cjs.map +1 -0
- package/dist/{chunk-IUIJJYPI.js → chunk-4A4GUZTQ.js} +6 -5
- package/dist/chunk-4A4GUZTQ.js.map +1 -0
- package/dist/{chunk-WEMZM7J7.cjs → chunk-54JVNOAQ.cjs} +5 -41
- package/dist/chunk-54JVNOAQ.cjs.map +1 -0
- package/dist/{chunk-IE6GN7L3.cjs → chunk-5CN7B4CZ.cjs} +17 -98
- package/dist/chunk-5CN7B4CZ.cjs.map +1 -0
- package/dist/{chunk-K4N35E7B.cjs → chunk-5DTPBFX5.cjs} +64 -63
- package/dist/chunk-5DTPBFX5.cjs.map +1 -0
- package/dist/chunk-6G35I3VW.cjs +40 -0
- package/dist/chunk-6G35I3VW.cjs.map +1 -0
- package/dist/{chunk-4BXHVEFB.cjs → chunk-6RMLO5O4.cjs} +6 -51
- package/dist/chunk-6RMLO5O4.cjs.map +1 -0
- package/dist/chunk-6SA7UIQJ.cjs +94 -0
- package/dist/chunk-6SA7UIQJ.cjs.map +1 -0
- package/dist/chunk-6ZR4QC3O.cjs +12 -0
- package/dist/{chunk-LUHU4T2F.cjs.map → chunk-6ZR4QC3O.cjs.map} +1 -1
- package/dist/chunk-73KASJGO.cjs +52 -0
- package/dist/chunk-73KASJGO.cjs.map +1 -0
- package/dist/chunk-A3W7QG7K.js +45 -0
- package/dist/chunk-A3W7QG7K.js.map +1 -0
- package/dist/{chunk-FWBVPATK.cjs → chunk-ASYQDPPU.cjs} +19 -19
- package/dist/{chunk-FWBVPATK.cjs.map → chunk-ASYQDPPU.cjs.map} +1 -1
- package/dist/{chunk-FVIGJTS7.js → chunk-ATTXBMAX.js} +4 -74
- package/dist/chunk-ATTXBMAX.js.map +1 -0
- package/dist/chunk-AW4A3P5A.cjs +51 -0
- package/dist/chunk-AW4A3P5A.cjs.map +1 -0
- package/dist/{chunk-WFCECD6Q.cjs → chunk-CIINW6PS.cjs} +73 -68
- package/dist/chunk-CIINW6PS.cjs.map +1 -0
- package/dist/{chunk-26HWIIVS.cjs → chunk-FLOI7QOT.cjs} +63 -62
- package/dist/chunk-FLOI7QOT.cjs.map +1 -0
- package/dist/{chunk-633N7DSE.js → chunk-GKFWM3DS.js} +4 -36
- package/dist/chunk-GKFWM3DS.js.map +1 -0
- package/dist/chunk-HTGDWIDE.cjs +89 -0
- package/dist/chunk-HTGDWIDE.cjs.map +1 -0
- package/dist/{chunk-R4JOBEJU.js → chunk-IJORSAC3.js} +4 -40
- package/dist/chunk-IJORSAC3.js.map +1 -0
- package/dist/{chunk-SGPXKJ4A.cjs → chunk-KTIEB7VH.cjs} +26 -16
- package/dist/chunk-KTIEB7VH.cjs.map +1 -0
- package/dist/chunk-LJLMDDCW.js +282 -0
- package/dist/chunk-LJLMDDCW.js.map +1 -0
- package/dist/{chunk-VFX3LC76.cjs → chunk-N2MBPTAF.cjs} +14 -14
- package/dist/{chunk-VFX3LC76.cjs.map → chunk-N2MBPTAF.cjs.map} +1 -1
- package/dist/{chunk-3IRMLJEK.js → chunk-O4VUR6SI.js} +3 -3
- package/dist/{chunk-3IRMLJEK.js.map → chunk-O4VUR6SI.js.map} +1 -1
- package/dist/chunk-RZ4DH4E7.cjs +15832 -0
- package/dist/chunk-RZ4DH4E7.cjs.map +1 -0
- package/dist/chunk-SAJSMR2B.js +35 -0
- package/dist/chunk-SAJSMR2B.js.map +1 -0
- package/dist/{chunk-4LBO6KIF.cjs → chunk-SFFJ2IKN.cjs} +60 -59
- package/dist/chunk-SFFJ2IKN.cjs.map +1 -0
- package/dist/{chunk-K5VREXMZ.js → chunk-STP7QVUB.js} +7 -6
- package/dist/chunk-STP7QVUB.js.map +1 -0
- package/dist/chunk-THX25XW6.js +590 -0
- package/dist/chunk-THX25XW6.js.map +1 -0
- package/dist/chunk-UIFEEPME.js +15787 -0
- package/dist/chunk-UIFEEPME.js.map +1 -0
- package/dist/{chunk-2QA5EHEN.js → chunk-UJ4V3YUQ.js} +3 -3
- package/dist/{chunk-2QA5EHEN.js.map → chunk-UJ4V3YUQ.js.map} +1 -1
- package/dist/{chunk-UESTHN47.cjs → chunk-V4IQYOQ4.cjs} +95 -507
- package/dist/chunk-V4IQYOQ4.cjs.map +1 -0
- package/dist/chunk-VMEWZU2N.cjs +287 -0
- package/dist/chunk-VMEWZU2N.cjs.map +1 -0
- package/dist/{chunk-N2OEOGBB.js → chunk-VZX2KSY3.js} +13 -8
- package/dist/chunk-VZX2KSY3.js.map +1 -0
- package/dist/{chunk-IX7RE7CG.js → chunk-WYTUF3QO.js} +3 -3
- package/dist/{chunk-IX7RE7CG.js.map → chunk-WYTUF3QO.js.map} +1 -1
- package/dist/{chunk-3JLRHQ67.js → chunk-XKJQQQVR.js} +6 -5
- package/dist/chunk-XKJQQQVR.js.map +1 -0
- package/dist/{chunk-ENDUY2CD.js → chunk-YCV72E6L.js} +23 -17
- package/dist/chunk-YCV72E6L.js.map +1 -0
- package/dist/{ddl-EdkIiFVU.d.ts → ddl-BJcPrB4L.d.ts} +3 -3
- package/dist/{ddl-BSFlbGQF.d.cts → ddl-CPZ7mB7X.d.cts} +3 -3
- package/dist/{extension-types-CwHV-Uk4.d.cts → extension-types-D1k0inWU.d.cts} +1 -1
- package/dist/{extension-types-CwHV-Uk4.d.ts → extension-types-D1k0inWU.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +17 -17
- package/dist/graph-extension/index.d.cts +5 -16
- package/dist/graph-extension/index.d.ts +5 -16
- package/dist/graph-extension/index.js +2 -2
- package/dist/graph-merge/index.cjs +3822 -0
- package/dist/graph-merge/index.cjs.map +1 -0
- package/dist/graph-merge/index.d.cts +1191 -0
- package/dist/graph-merge/index.d.ts +1191 -0
- package/dist/graph-merge/index.js +3791 -0
- package/dist/graph-merge/index.js.map +1 -0
- package/dist/{index-DzeIiMO3.d.ts → index-BEK0VtNB.d.ts} +2 -2
- package/dist/{index-Ln_KHTGA.d.cts → index-C8sSTErx.d.cts} +2 -2
- package/dist/index.cjs +281 -15913
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +23 -15790
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +30 -26
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +6 -2
- package/dist/interchange/index.cjs +49 -592
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +5 -5
- package/dist/interchange/index.d.ts +5 -5
- package/dist/interchange/index.js +2 -588
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-BbdyNhkv.d.ts → manager-By-WEd8M.d.ts} +3 -3
- package/dist/{manager-wTDgjoXG.d.cts → manager-Np7VVSlE.d.cts} +3 -3
- package/dist/{materialize-indexes-lkawaDor.d.ts → materialize-indexes-CAGhqPHQ.d.ts} +1 -1
- package/dist/{materialize-indexes-oanE3RU0.d.cts → materialize-indexes-DEYkU-wr.d.cts} +1 -1
- package/dist/{postgres-CK2ByP1q.d.cts → postgres-4J2tmauh.d.cts} +1 -1
- package/dist/{postgres-ymXYC6Rr.d.ts → postgres-BdIb7tS_.d.ts} +1 -1
- package/dist/profiler/index.d.cts +7 -7
- package/dist/profiler/index.d.ts +7 -7
- package/dist/result-DWo6mUVz.d.cts +37 -0
- package/dist/result-DWo6mUVz.d.ts +37 -0
- package/dist/schema/index.cjs +29 -28
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +6 -5
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-DxH1lrwD.d.cts → sqlite-Gatk_iw_.d.cts} +1 -1
- package/dist/{sqlite-R8YGOqVQ.d.ts → sqlite-aM_PAz-O.d.ts} +1 -1
- package/dist/{store--z1Tmk7U.d.cts → store-DuCbdqsh.d.cts} +49 -49
- package/dist/{store-CNKM334w.d.ts → store-MloRPwb9.d.ts} +49 -49
- package/dist/{types-BBiDqJCU.d.ts → types-BKQljXom.d.ts} +16 -2
- package/dist/{types-dL-clxO3.d.cts → types-C1CYxWrL.d.cts} +16 -2
- package/dist/{types-D5B6Be5c.d.cts → types-DoByHGyU.d.cts} +2 -2
- package/dist/{types-CMvxx2kd.d.ts → types-K3vpaJAL.d.ts} +2 -2
- package/dist/{where-CAo6wsBZ.d.ts → where-Dt49bvo6.d.ts} +2 -2
- package/dist/{where-bJjuOCeV.d.cts → where-DydZjGOb.d.cts} +2 -2
- package/package.json +6 -1
- package/dist/chunk-26HWIIVS.cjs.map +0 -1
- package/dist/chunk-3JLRHQ67.js.map +0 -1
- package/dist/chunk-4BXHVEFB.cjs.map +0 -1
- package/dist/chunk-4LBO6KIF.cjs.map +0 -1
- package/dist/chunk-633N7DSE.js.map +0 -1
- package/dist/chunk-AI3RNREM.js.map +0 -1
- package/dist/chunk-ENDUY2CD.js.map +0 -1
- package/dist/chunk-FVIGJTS7.js.map +0 -1
- package/dist/chunk-IE6GN7L3.cjs.map +0 -1
- package/dist/chunk-IUIJJYPI.js.map +0 -1
- package/dist/chunk-K4N35E7B.cjs.map +0 -1
- package/dist/chunk-K5VREXMZ.js.map +0 -1
- package/dist/chunk-LUHU4T2F.cjs +0 -12
- package/dist/chunk-N2OEOGBB.js.map +0 -1
- package/dist/chunk-R4JOBEJU.js.map +0 -1
- package/dist/chunk-SGPXKJ4A.cjs.map +0 -1
- package/dist/chunk-UESTHN47.cjs.map +0 -1
- package/dist/chunk-WEMZM7J7.cjs.map +0 -1
- package/dist/chunk-WFCECD6Q.cjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import { K as KindRegistry, G as GraphDef,
|
|
4
|
-
import { A as AnyEdgeType, N as NodeType, T as TemporalMode,
|
|
2
|
+
import { aA as ValueType, aB as PredicateExpression, aC as VectorMetricType, a1 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, P as FieldRef, ad as ParameterRef, G as GraphBackend, am as TransactionBackend, a6 as JsonPointerInput, an as TraversalExpansion, p as SqlDialect, ai as SqlSchema, aD as Traversal, aE as NodePredicate, aF as ProjectedField, ac as OrderSpec, aG as GroupBySpec, a4 as HybridFusionOptions, aH as RecursiveCyclePolicy, aI as TraversalDirection$1, aJ as EdgeRow, aK as NodeRow, W as AdoptedTransaction, L as AggregateExpr, F as FulltextStrategy, V as VectorStrategy, aL as VectorSlotMap, aM as SelectiveField, aN as ComposableQuery, aO as SetOperationType, aP as SetOperation, ah as SortDirection, m as JsonSchema, aQ as VectorMetric } from './types-C1CYxWrL.cjs';
|
|
3
|
+
import { K as KindRegistry, G as GraphDef, w as EdgeKinds, t as NodeKinds, v as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-Np7VVSlE.cjs';
|
|
4
|
+
import { A as AnyEdgeType, N as NodeType, T as TemporalMode, g as EdgeType, E as EdgeRegistration, e as EdgeId, d as NodeId, b as NodeRegistration, K as KindEntity, m as Cardinality, n as EndpointExistence, f as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-D1k0inWU.cjs';
|
|
5
5
|
import { SQL } from 'drizzle-orm';
|
|
6
|
-
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-
|
|
6
|
+
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-DEYkU-wr.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Embedding type for vector search.
|
|
@@ -216,50 +216,6 @@ declare function searchable(options?: SearchableOptions): SearchableSchema;
|
|
|
216
216
|
declare function isSearchableSchema(value: unknown): value is SearchableSchema;
|
|
217
217
|
declare function getSearchableMetadata(schema: z.ZodType): SearchableMetadata | undefined;
|
|
218
218
|
|
|
219
|
-
/**
|
|
220
|
-
* Query Compiler Module
|
|
221
|
-
*
|
|
222
|
-
* Main entry point for compiling query ASTs to SQL.
|
|
223
|
-
* Re-exports individual compiler modules and provides the main compile functions.
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Options for query compilation.
|
|
228
|
-
*/
|
|
229
|
-
type CompileQueryOptions = Readonly<{
|
|
230
|
-
/** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
|
|
231
|
-
dialect?: SqlDialect | undefined;
|
|
232
|
-
/** SQL schema configuration for table names. Defaults to standard names. */
|
|
233
|
-
schema?: SqlSchema | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Fulltext strategy override. When set, overrides the dialect's
|
|
236
|
-
* default fulltext strategy for `$fulltext.matches()` compilation.
|
|
237
|
-
* Callers typically read this from `backend.fulltextStrategy` so a
|
|
238
|
-
* backend-declared strategy (e.g. ParadeDB) wins over the dialect
|
|
239
|
-
* default (tsvector).
|
|
240
|
-
*/
|
|
241
|
-
fulltextStrategy?: FulltextStrategy | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* Vector strategy override. When set, `field.similarTo(...)`
|
|
244
|
-
* predicates compile against the strategy's per-`(kind, field)`
|
|
245
|
-
* tables and distance expression. Callers read it from
|
|
246
|
-
* `backend.vectorStrategy` so a backend-declared strategy (pgvector,
|
|
247
|
-
* libsql-native, sqlite-vec) drives the per-field relevance scan.
|
|
248
|
-
*/
|
|
249
|
-
vectorStrategy?: VectorStrategy | undefined;
|
|
250
|
-
/**
|
|
251
|
-
* Whether the active backend supports SQL window functions such as
|
|
252
|
-
* `ROW_NUMBER()`. Defaults to true for direct compiler callers.
|
|
253
|
-
*/
|
|
254
|
-
windowFunctions?: boolean | undefined;
|
|
255
|
-
/**
|
|
256
|
-
* Declared embedding slots `(kind, fieldPath) -> descriptor` used by
|
|
257
|
-
* the `field.similarTo(...)` CTE to know which kinds in an alias
|
|
258
|
-
* declare the field. Callers build it from the graph's node schemas.
|
|
259
|
-
*/
|
|
260
|
-
vectorSlots?: VectorSlotMap | undefined;
|
|
261
|
-
}>;
|
|
262
|
-
|
|
263
219
|
type FieldTypeInfo = Readonly<{
|
|
264
220
|
valueType: ValueType;
|
|
265
221
|
elementType?: ValueType | undefined;
|
|
@@ -2050,6 +2006,50 @@ declare class ExecutableAggregateQuery<G extends GraphDef, Aliases extends Alias
|
|
|
2050
2006
|
execute(): Promise<readonly AggregateResult<R>[]>;
|
|
2051
2007
|
}
|
|
2052
2008
|
|
|
2009
|
+
/**
|
|
2010
|
+
* Query Compiler Module
|
|
2011
|
+
*
|
|
2012
|
+
* Main entry point for compiling query ASTs to SQL.
|
|
2013
|
+
* Re-exports individual compiler modules and provides the main compile functions.
|
|
2014
|
+
*/
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* Options for query compilation.
|
|
2018
|
+
*/
|
|
2019
|
+
type CompileQueryOptions = Readonly<{
|
|
2020
|
+
/** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
|
|
2021
|
+
dialect?: SqlDialect | undefined;
|
|
2022
|
+
/** SQL schema configuration for table names. Defaults to standard names. */
|
|
2023
|
+
schema?: SqlSchema | undefined;
|
|
2024
|
+
/**
|
|
2025
|
+
* Fulltext strategy override. When set, overrides the dialect's
|
|
2026
|
+
* default fulltext strategy for `$fulltext.matches()` compilation.
|
|
2027
|
+
* Callers typically read this from `backend.fulltextStrategy` so a
|
|
2028
|
+
* backend-declared strategy (e.g. ParadeDB) wins over the dialect
|
|
2029
|
+
* default (tsvector).
|
|
2030
|
+
*/
|
|
2031
|
+
fulltextStrategy?: FulltextStrategy | undefined;
|
|
2032
|
+
/**
|
|
2033
|
+
* Vector strategy override. When set, `field.similarTo(...)`
|
|
2034
|
+
* predicates compile against the strategy's per-`(kind, field)`
|
|
2035
|
+
* tables and distance expression. Callers read it from
|
|
2036
|
+
* `backend.vectorStrategy` so a backend-declared strategy (pgvector,
|
|
2037
|
+
* libsql-native, sqlite-vec) drives the per-field relevance scan.
|
|
2038
|
+
*/
|
|
2039
|
+
vectorStrategy?: VectorStrategy | undefined;
|
|
2040
|
+
/**
|
|
2041
|
+
* Whether the active backend supports SQL window functions such as
|
|
2042
|
+
* `ROW_NUMBER()`. Defaults to true for direct compiler callers.
|
|
2043
|
+
*/
|
|
2044
|
+
windowFunctions?: boolean | undefined;
|
|
2045
|
+
/**
|
|
2046
|
+
* Declared embedding slots `(kind, fieldPath) -> descriptor` used by
|
|
2047
|
+
* the `field.similarTo(...)` CTE to know which kinds in an alias
|
|
2048
|
+
* declare the field. Callers build it from the graph's node schemas.
|
|
2049
|
+
*/
|
|
2050
|
+
vectorSlots?: VectorSlotMap | undefined;
|
|
2051
|
+
}>;
|
|
2052
|
+
|
|
2053
2053
|
type PreparedQueryConfig<R> = Readonly<{
|
|
2054
2054
|
ast: QueryAst;
|
|
2055
2055
|
unoptimizedAst: QueryAst;
|
|
@@ -3952,4 +3952,4 @@ declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: Gr
|
|
|
3952
3952
|
*/
|
|
3953
3953
|
declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
|
|
3954
3954
|
|
|
3955
|
-
export { type
|
|
3955
|
+
export { type HybridVectorOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EmbeddingMetric as E, type EdgeGetOrCreateByEndpointsResult as F, type EdgeIntrospection as G, type EmbeddingSchema as H, type EmbeddingValue as I, ExecutableAggregateQuery as J, ExecutableQuery as K, type FieldAccessor as L, type FulltextSearchHit as M, type Node as N, type FulltextSearchOptions as O, type GetOrCreateAction as P, QueryBuilder as Q, type GraphAlgorithms as R, Store as S, TraversalBuilder as T, type UniqueIntrospection as U, type GraphEdgeCollections as V, type GraphNodeCollections as W, type HookContext as X, type HybridFulltextOptions as Y, type HybridSearchHit as Z, type HybridSearchOptions as _, type EmbeddingIndexType as a, createStore as a$, type IfExistsMode as a0, type KindIntrospection as a1, type MaterializeRemovalsEntry as a2, type MaterializeRemovalsOptions as a3, type MaterializeRemovalsResult as a4, type NeighborsOptions as a5, type NodeAccessor as a6, type NodeAlias as a7, type NodeBulkFindByIndexOptions as a8, type NodeCollection as a9, type SearchableSchema as aA, type SelectContext as aB, type SelectableEdge as aC, type SelectableNode as aD, type ShortestPathOptions as aE, type ShortestPathResult as aF, type StoreHooks as aG, type StoreOptions as aH, type StoreProjection as aI, type StoreRef as aJ, StoreSearch as aK, type StreamOptions as aL, type SubgraphEdgeResult as aM, type SubgraphNodeResult as aN, type SubgraphOptions as aO, type SubgraphResult as aP, type SubsetEdge as aQ, type SubsetNode as aR, type TemporalAlgorithmOptions as aS, type TransactionContext as aT, type TraversalDirection as aU, type TypedEdgeCollection as aV, UnionableQuery as aW, type UpdateEdgeInput as aX, type UpdateNodeInput as aY, type VectorSearchHit as aZ, type VectorSearchOptions as a_, type NodeGetOrCreateByConstraintOptions as aa, type NodeGetOrCreateByConstraintResult as ab, type NodeIdentifier as ac, type NodeRef as ad, type OntologyIntrospection as ae, type OperationHookContext as af, type PaginateOptions as ag, type PaginatedResult as ah, type PathNode as ai, type Predicate as aj, PreparedQuery as ak, type PropsAccessor as al, type QueryHookContext as am, type QueryOptions as an, type ReachableNode as ao, type ReachableOptions as ap, type RebuildFulltextOptions as aq, type RebuildFulltextResult as ar, type ReclaimedVectorFieldEntry as as, type RecursiveTraversalOptions as at, type ReembedFunction as au, type ReembedVectorFieldOptions as av, type ReembedVectorFieldResult as aw, type SchemaIntrospection as ax, type SearchableMetadata as ay, type SearchableOptions as az, type EdgeAliasMap as b, createStoreWithSchema as b0, createVerifiedStore as b1, defineSubgraphProject as b2, embedding as b3, exists as b4, fieldRef as b5, getEmbeddingDimensions as b6, getSearchableMetadata as b7, inSubquery as b8, isEmbeddingSchema as b9, isParameterRef as ba, isSearchableSchema as bb, notExists as bc, notInSubquery as bd, param as be, searchable as bf, type AggregateResult as c, type AlgorithmCyclePolicy as d, type AnyEdge as e, type AnyNode as f, type BatchResults as g, type BatchableQuery as h, type ConstraintNames as i, type CreateEdgeInput as j, type CreateNodeInput as k, type DegreeOptions as l, type DynamicEdgeAccessor as m, type DynamicEdgeCollection as n, type DynamicEdgeType as o, type DynamicFieldBuilder as p, type DynamicNodeAccessor as q, type DynamicNodeCollection as r, type DynamicNodeType as s, type DynamicSelectableEdge as t, type DynamicSelectableNode as u, type Edge as v, type EdgeAccessor as w, type EdgeCollection as x, type EdgeFindByEndpointsOptions as y, type EdgeGetOrCreateByEndpointsOptions as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import { K as KindRegistry, G as GraphDef,
|
|
4
|
-
import { A as AnyEdgeType, N as NodeType, T as TemporalMode,
|
|
2
|
+
import { aA as ValueType, aB as PredicateExpression, aC as VectorMetricType, a1 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, P as FieldRef, ad as ParameterRef, G as GraphBackend, am as TransactionBackend, a6 as JsonPointerInput, an as TraversalExpansion, p as SqlDialect, ai as SqlSchema, aD as Traversal, aE as NodePredicate, aF as ProjectedField, ac as OrderSpec, aG as GroupBySpec, a4 as HybridFusionOptions, aH as RecursiveCyclePolicy, aI as TraversalDirection$1, aJ as EdgeRow, aK as NodeRow, W as AdoptedTransaction, L as AggregateExpr, F as FulltextStrategy, V as VectorStrategy, aL as VectorSlotMap, aM as SelectiveField, aN as ComposableQuery, aO as SetOperationType, aP as SetOperation, ah as SortDirection, m as JsonSchema, aQ as VectorMetric } from './types-BKQljXom.js';
|
|
3
|
+
import { K as KindRegistry, G as GraphDef, w as EdgeKinds, t as NodeKinds, v as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-By-WEd8M.js';
|
|
4
|
+
import { A as AnyEdgeType, N as NodeType, T as TemporalMode, g as EdgeType, E as EdgeRegistration, e as EdgeId, d as NodeId, b as NodeRegistration, K as KindEntity, m as Cardinality, n as EndpointExistence, f as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-D1k0inWU.js';
|
|
5
5
|
import { SQL } from 'drizzle-orm';
|
|
6
|
-
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-
|
|
6
|
+
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-CAGhqPHQ.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Embedding type for vector search.
|
|
@@ -216,50 +216,6 @@ declare function searchable(options?: SearchableOptions): SearchableSchema;
|
|
|
216
216
|
declare function isSearchableSchema(value: unknown): value is SearchableSchema;
|
|
217
217
|
declare function getSearchableMetadata(schema: z.ZodType): SearchableMetadata | undefined;
|
|
218
218
|
|
|
219
|
-
/**
|
|
220
|
-
* Query Compiler Module
|
|
221
|
-
*
|
|
222
|
-
* Main entry point for compiling query ASTs to SQL.
|
|
223
|
-
* Re-exports individual compiler modules and provides the main compile functions.
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Options for query compilation.
|
|
228
|
-
*/
|
|
229
|
-
type CompileQueryOptions = Readonly<{
|
|
230
|
-
/** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
|
|
231
|
-
dialect?: SqlDialect | undefined;
|
|
232
|
-
/** SQL schema configuration for table names. Defaults to standard names. */
|
|
233
|
-
schema?: SqlSchema | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Fulltext strategy override. When set, overrides the dialect's
|
|
236
|
-
* default fulltext strategy for `$fulltext.matches()` compilation.
|
|
237
|
-
* Callers typically read this from `backend.fulltextStrategy` so a
|
|
238
|
-
* backend-declared strategy (e.g. ParadeDB) wins over the dialect
|
|
239
|
-
* default (tsvector).
|
|
240
|
-
*/
|
|
241
|
-
fulltextStrategy?: FulltextStrategy | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* Vector strategy override. When set, `field.similarTo(...)`
|
|
244
|
-
* predicates compile against the strategy's per-`(kind, field)`
|
|
245
|
-
* tables and distance expression. Callers read it from
|
|
246
|
-
* `backend.vectorStrategy` so a backend-declared strategy (pgvector,
|
|
247
|
-
* libsql-native, sqlite-vec) drives the per-field relevance scan.
|
|
248
|
-
*/
|
|
249
|
-
vectorStrategy?: VectorStrategy | undefined;
|
|
250
|
-
/**
|
|
251
|
-
* Whether the active backend supports SQL window functions such as
|
|
252
|
-
* `ROW_NUMBER()`. Defaults to true for direct compiler callers.
|
|
253
|
-
*/
|
|
254
|
-
windowFunctions?: boolean | undefined;
|
|
255
|
-
/**
|
|
256
|
-
* Declared embedding slots `(kind, fieldPath) -> descriptor` used by
|
|
257
|
-
* the `field.similarTo(...)` CTE to know which kinds in an alias
|
|
258
|
-
* declare the field. Callers build it from the graph's node schemas.
|
|
259
|
-
*/
|
|
260
|
-
vectorSlots?: VectorSlotMap | undefined;
|
|
261
|
-
}>;
|
|
262
|
-
|
|
263
219
|
type FieldTypeInfo = Readonly<{
|
|
264
220
|
valueType: ValueType;
|
|
265
221
|
elementType?: ValueType | undefined;
|
|
@@ -2050,6 +2006,50 @@ declare class ExecutableAggregateQuery<G extends GraphDef, Aliases extends Alias
|
|
|
2050
2006
|
execute(): Promise<readonly AggregateResult<R>[]>;
|
|
2051
2007
|
}
|
|
2052
2008
|
|
|
2009
|
+
/**
|
|
2010
|
+
* Query Compiler Module
|
|
2011
|
+
*
|
|
2012
|
+
* Main entry point for compiling query ASTs to SQL.
|
|
2013
|
+
* Re-exports individual compiler modules and provides the main compile functions.
|
|
2014
|
+
*/
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* Options for query compilation.
|
|
2018
|
+
*/
|
|
2019
|
+
type CompileQueryOptions = Readonly<{
|
|
2020
|
+
/** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
|
|
2021
|
+
dialect?: SqlDialect | undefined;
|
|
2022
|
+
/** SQL schema configuration for table names. Defaults to standard names. */
|
|
2023
|
+
schema?: SqlSchema | undefined;
|
|
2024
|
+
/**
|
|
2025
|
+
* Fulltext strategy override. When set, overrides the dialect's
|
|
2026
|
+
* default fulltext strategy for `$fulltext.matches()` compilation.
|
|
2027
|
+
* Callers typically read this from `backend.fulltextStrategy` so a
|
|
2028
|
+
* backend-declared strategy (e.g. ParadeDB) wins over the dialect
|
|
2029
|
+
* default (tsvector).
|
|
2030
|
+
*/
|
|
2031
|
+
fulltextStrategy?: FulltextStrategy | undefined;
|
|
2032
|
+
/**
|
|
2033
|
+
* Vector strategy override. When set, `field.similarTo(...)`
|
|
2034
|
+
* predicates compile against the strategy's per-`(kind, field)`
|
|
2035
|
+
* tables and distance expression. Callers read it from
|
|
2036
|
+
* `backend.vectorStrategy` so a backend-declared strategy (pgvector,
|
|
2037
|
+
* libsql-native, sqlite-vec) drives the per-field relevance scan.
|
|
2038
|
+
*/
|
|
2039
|
+
vectorStrategy?: VectorStrategy | undefined;
|
|
2040
|
+
/**
|
|
2041
|
+
* Whether the active backend supports SQL window functions such as
|
|
2042
|
+
* `ROW_NUMBER()`. Defaults to true for direct compiler callers.
|
|
2043
|
+
*/
|
|
2044
|
+
windowFunctions?: boolean | undefined;
|
|
2045
|
+
/**
|
|
2046
|
+
* Declared embedding slots `(kind, fieldPath) -> descriptor` used by
|
|
2047
|
+
* the `field.similarTo(...)` CTE to know which kinds in an alias
|
|
2048
|
+
* declare the field. Callers build it from the graph's node schemas.
|
|
2049
|
+
*/
|
|
2050
|
+
vectorSlots?: VectorSlotMap | undefined;
|
|
2051
|
+
}>;
|
|
2052
|
+
|
|
2053
2053
|
type PreparedQueryConfig<R> = Readonly<{
|
|
2054
2054
|
ast: QueryAst;
|
|
2055
2055
|
unoptimizedAst: QueryAst;
|
|
@@ -3952,4 +3952,4 @@ declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: Gr
|
|
|
3952
3952
|
*/
|
|
3953
3953
|
declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
|
|
3954
3954
|
|
|
3955
|
-
export { type
|
|
3955
|
+
export { type HybridVectorOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EmbeddingMetric as E, type EdgeGetOrCreateByEndpointsResult as F, type EdgeIntrospection as G, type EmbeddingSchema as H, type EmbeddingValue as I, ExecutableAggregateQuery as J, ExecutableQuery as K, type FieldAccessor as L, type FulltextSearchHit as M, type Node as N, type FulltextSearchOptions as O, type GetOrCreateAction as P, QueryBuilder as Q, type GraphAlgorithms as R, Store as S, TraversalBuilder as T, type UniqueIntrospection as U, type GraphEdgeCollections as V, type GraphNodeCollections as W, type HookContext as X, type HybridFulltextOptions as Y, type HybridSearchHit as Z, type HybridSearchOptions as _, type EmbeddingIndexType as a, createStore as a$, type IfExistsMode as a0, type KindIntrospection as a1, type MaterializeRemovalsEntry as a2, type MaterializeRemovalsOptions as a3, type MaterializeRemovalsResult as a4, type NeighborsOptions as a5, type NodeAccessor as a6, type NodeAlias as a7, type NodeBulkFindByIndexOptions as a8, type NodeCollection as a9, type SearchableSchema as aA, type SelectContext as aB, type SelectableEdge as aC, type SelectableNode as aD, type ShortestPathOptions as aE, type ShortestPathResult as aF, type StoreHooks as aG, type StoreOptions as aH, type StoreProjection as aI, type StoreRef as aJ, StoreSearch as aK, type StreamOptions as aL, type SubgraphEdgeResult as aM, type SubgraphNodeResult as aN, type SubgraphOptions as aO, type SubgraphResult as aP, type SubsetEdge as aQ, type SubsetNode as aR, type TemporalAlgorithmOptions as aS, type TransactionContext as aT, type TraversalDirection as aU, type TypedEdgeCollection as aV, UnionableQuery as aW, type UpdateEdgeInput as aX, type UpdateNodeInput as aY, type VectorSearchHit as aZ, type VectorSearchOptions as a_, type NodeGetOrCreateByConstraintOptions as aa, type NodeGetOrCreateByConstraintResult as ab, type NodeIdentifier as ac, type NodeRef as ad, type OntologyIntrospection as ae, type OperationHookContext as af, type PaginateOptions as ag, type PaginatedResult as ah, type PathNode as ai, type Predicate as aj, PreparedQuery as ak, type PropsAccessor as al, type QueryHookContext as am, type QueryOptions as an, type ReachableNode as ao, type ReachableOptions as ap, type RebuildFulltextOptions as aq, type RebuildFulltextResult as ar, type ReclaimedVectorFieldEntry as as, type RecursiveTraversalOptions as at, type ReembedFunction as au, type ReembedVectorFieldOptions as av, type ReembedVectorFieldResult as aw, type SchemaIntrospection as ax, type SearchableMetadata as ay, type SearchableOptions as az, type EdgeAliasMap as b, createStoreWithSchema as b0, createVerifiedStore as b1, defineSubgraphProject as b2, embedding as b3, exists as b4, fieldRef as b5, getEmbeddingDimensions as b6, getSearchableMetadata as b7, inSubquery as b8, isEmbeddingSchema as b9, isParameterRef as ba, isSearchableSchema as bb, notExists as bc, notInSubquery as bd, param as be, searchable as bf, type AggregateResult as c, type AlgorithmCyclePolicy as d, type AnyEdge as e, type AnyNode as f, type BatchResults as g, type BatchableQuery as h, type ConstraintNames as i, type CreateEdgeInput as j, type CreateNodeInput as k, type DegreeOptions as l, type DynamicEdgeAccessor as m, type DynamicEdgeCollection as n, type DynamicEdgeType as o, type DynamicFieldBuilder as p, type DynamicNodeAccessor as q, type DynamicNodeCollection as r, type DynamicNodeType as s, type DynamicSelectableEdge as t, type DynamicSelectableNode as u, type Edge as v, type EdgeAccessor as w, type EdgeCollection as x, type EdgeFindByEndpointsOptions as y, type EdgeGetOrCreateByEndpointsOptions as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NodeType,
|
|
2
|
+
import { N as NodeType, g as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, f as KindAnnotations, m as Cardinality, n as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, a as NullCheckOp, A as AnyEdgeType } from './extension-types-D1k0inWU.js';
|
|
3
3
|
import { SQL } from 'drizzle-orm';
|
|
4
4
|
import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
|
|
5
5
|
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
@@ -1878,6 +1878,20 @@ type FindEdgesByKindParams = Readonly<{
|
|
|
1878
1878
|
temporalMode?: TemporalMode;
|
|
1879
1879
|
/** Timestamp for "current" and "asOf" temporal modes. */
|
|
1880
1880
|
asOf?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* Stable ordering for keyset pagination. Default: "created_at" (existing
|
|
1883
|
+
* behavior). Use "id" for iteration that is stable under shared `created_at`
|
|
1884
|
+
* timestamps — the offset path orders by the NON-unique `created_at`, so a
|
|
1885
|
+
* full enumeration must page by the unique `id` to avoid skipping a row at a
|
|
1886
|
+
* page boundary. Mirrors {@link FindNodesByKindParams.orderBy}.
|
|
1887
|
+
*/
|
|
1888
|
+
orderBy?: "id" | "created_at";
|
|
1889
|
+
/**
|
|
1890
|
+
* Keyset cursor. Returns rows strictly greater (by `orderBy`) than this value.
|
|
1891
|
+
* When `orderBy: "id"`, compared lexicographically. Mutually exclusive with
|
|
1892
|
+
* `offset` — callers pick one. Mirrors {@link FindNodesByKindParams.after}.
|
|
1893
|
+
*/
|
|
1894
|
+
after?: string;
|
|
1881
1895
|
}>;
|
|
1882
1896
|
/**
|
|
1883
1897
|
* Parameters for counting edges by kind.
|
|
@@ -2604,4 +2618,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
|
|
|
2604
2618
|
type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
|
|
2605
2619
|
type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
|
|
2606
2620
|
|
|
2607
|
-
export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type
|
|
2621
|
+
export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type ValueType as aA, type PredicateExpression as aB, type VectorMetricType as aC, type Traversal as aD, type NodePredicate as aE, type ProjectedField as aF, type GroupBySpec as aG, type RecursiveCyclePolicy as aH, type TraversalDirection as aI, type EdgeRow as aJ, type NodeRow as aK, type VectorSlotMap as aL, type SelectiveField as aM, type ComposableQuery as aN, type SetOperationType as aO, type SetOperation as aP, type VectorMetric as aQ, MAX_JSON_POINTER_DEPTH as aa, type MetaEdgeProperties as ab, type OrderSpec as ac, type ParameterRef as ad, type ResolveJsonPointer as ae, type ResolveJsonPointerSegments as af, type SetActiveVersionParams as ag, type SortDirection as ah, type SqlSchema as ai, type SqlTableNames as aj, type StrategyTableContribution as ak, type TableContribution as al, type TransactionBackend as am, type TraversalExpansion as an, type UpsertFulltextBatchParams as ao, type VectorCapabilities as ap, type VectorSlot as aq, buildVectorCapabilities as ar, createSqlSchema as as, fts5Strategy as at, isMetaEdge as au, joinJsonPointers as av, jsonPointer as aw, normalizeJsonPointer as ax, parseJsonPointer as ay, tsvectorStrategy as az, type AnyPgDatabase as b, type EdgeIndexDeclaration as c, type NodeIndexDeclaration as d, type IndexWhereExpression as e, type SerializedNodeDef as f, type SerializedEdgeDef as g, type SerializedMetaEdge as h, type SerializedOntologyRelation as i, type SerializedClosures as j, type SerializedSchema as k, type SchemaHash as l, type JsonSchema as m, type SerializedOntology as n, type SerializedUniqueConstraint as o, type SqlDialect as p, type EdgeIndexDirection as q, type EdgeIndexWhereBuilder as r, type IndexOrigin as s, type IndexScope as t, type IndexWhereFieldBuilder as u, type IndexWhereInput as v, type NodeIndexWhereBuilder as w, type SystemColumnName as x, type VectorIndexDeclaration as y, type VectorIndexImplementation as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NodeType,
|
|
2
|
+
import { N as NodeType, g as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, f as KindAnnotations, m as Cardinality, n as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, a as NullCheckOp, A as AnyEdgeType } from './extension-types-D1k0inWU.cjs';
|
|
3
3
|
import { SQL } from 'drizzle-orm';
|
|
4
4
|
import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
|
|
5
5
|
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
@@ -1878,6 +1878,20 @@ type FindEdgesByKindParams = Readonly<{
|
|
|
1878
1878
|
temporalMode?: TemporalMode;
|
|
1879
1879
|
/** Timestamp for "current" and "asOf" temporal modes. */
|
|
1880
1880
|
asOf?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* Stable ordering for keyset pagination. Default: "created_at" (existing
|
|
1883
|
+
* behavior). Use "id" for iteration that is stable under shared `created_at`
|
|
1884
|
+
* timestamps — the offset path orders by the NON-unique `created_at`, so a
|
|
1885
|
+
* full enumeration must page by the unique `id` to avoid skipping a row at a
|
|
1886
|
+
* page boundary. Mirrors {@link FindNodesByKindParams.orderBy}.
|
|
1887
|
+
*/
|
|
1888
|
+
orderBy?: "id" | "created_at";
|
|
1889
|
+
/**
|
|
1890
|
+
* Keyset cursor. Returns rows strictly greater (by `orderBy`) than this value.
|
|
1891
|
+
* When `orderBy: "id"`, compared lexicographically. Mutually exclusive with
|
|
1892
|
+
* `offset` — callers pick one. Mirrors {@link FindNodesByKindParams.after}.
|
|
1893
|
+
*/
|
|
1894
|
+
after?: string;
|
|
1881
1895
|
}>;
|
|
1882
1896
|
/**
|
|
1883
1897
|
* Parameters for counting edges by kind.
|
|
@@ -2604,4 +2618,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
|
|
|
2604
2618
|
type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
|
|
2605
2619
|
type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
|
|
2606
2620
|
|
|
2607
|
-
export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type
|
|
2621
|
+
export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type ValueType as aA, type PredicateExpression as aB, type VectorMetricType as aC, type Traversal as aD, type NodePredicate as aE, type ProjectedField as aF, type GroupBySpec as aG, type RecursiveCyclePolicy as aH, type TraversalDirection as aI, type EdgeRow as aJ, type NodeRow as aK, type VectorSlotMap as aL, type SelectiveField as aM, type ComposableQuery as aN, type SetOperationType as aO, type SetOperation as aP, type VectorMetric as aQ, MAX_JSON_POINTER_DEPTH as aa, type MetaEdgeProperties as ab, type OrderSpec as ac, type ParameterRef as ad, type ResolveJsonPointer as ae, type ResolveJsonPointerSegments as af, type SetActiveVersionParams as ag, type SortDirection as ah, type SqlSchema as ai, type SqlTableNames as aj, type StrategyTableContribution as ak, type TableContribution as al, type TransactionBackend as am, type TraversalExpansion as an, type UpsertFulltextBatchParams as ao, type VectorCapabilities as ap, type VectorSlot as aq, buildVectorCapabilities as ar, createSqlSchema as as, fts5Strategy as at, isMetaEdge as au, joinJsonPointers as av, jsonPointer as aw, normalizeJsonPointer as ax, parseJsonPointer as ay, tsvectorStrategy as az, type AnyPgDatabase as b, type EdgeIndexDeclaration as c, type NodeIndexDeclaration as d, type IndexWhereExpression as e, type SerializedNodeDef as f, type SerializedEdgeDef as g, type SerializedMetaEdge as h, type SerializedOntologyRelation as i, type SerializedClosures as j, type SerializedSchema as k, type SchemaHash as l, type JsonSchema as m, type SerializedOntology as n, type SerializedUniqueConstraint as o, type SqlDialect as p, type EdgeIndexDirection as q, type EdgeIndexWhereBuilder as r, type IndexOrigin as s, type IndexScope as t, type IndexWhereFieldBuilder as u, type IndexWhereInput as v, type NodeIndexWhereBuilder as w, type SystemColumnName as x, type VectorIndexDeclaration as y, type VectorIndexImplementation as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KindEntity } from './extension-types-
|
|
2
|
-
import { J as JsonPointer } from './types-
|
|
1
|
+
import { K as KindEntity } from './extension-types-D1k0inWU.cjs';
|
|
2
|
+
import { J as JsonPointer } from './types-C1CYxWrL.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* QueryProfiler types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KindEntity } from './extension-types-
|
|
2
|
-
import { J as JsonPointer } from './types-
|
|
1
|
+
import { K as KindEntity } from './extension-types-D1k0inWU.js';
|
|
2
|
+
import { J as JsonPointer } from './types-BKQljXom.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* QueryProfiler types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyEdgeType, N as NodeType } from './extension-types-
|
|
2
|
-
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-
|
|
1
|
+
import { A as AnyEdgeType, N as NodeType } from './extension-types-D1k0inWU.js';
|
|
2
|
+
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-BKQljXom.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
|
-
import { A as AnyEdgeType, N as NodeType } from './extension-types-
|
|
2
|
-
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-
|
|
1
|
+
import { A as AnyEdgeType, N as NodeType } from './extension-types-D1k0inWU.cjs';
|
|
2
|
+
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-C1CYxWrL.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.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"import": "./dist/graph-extension/index.js",
|
|
38
38
|
"require": "./dist/graph-extension/index.cjs"
|
|
39
39
|
},
|
|
40
|
+
"./graph-merge": {
|
|
41
|
+
"types": "./dist/graph-merge/index.d.ts",
|
|
42
|
+
"import": "./dist/graph-merge/index.js",
|
|
43
|
+
"require": "./dist/graph-merge/index.cjs"
|
|
44
|
+
},
|
|
40
45
|
"./sqlite": {
|
|
41
46
|
"types": "./dist/backend/sqlite/index.d.ts",
|
|
42
47
|
"import": "./dist/backend/sqlite/index.js",
|