@prometheus-ags/entity-graph-core 3.0.2 → 3.0.4

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/index.d.cts CHANGED
@@ -71,6 +71,97 @@ type EntityError = TerminalError | TransientError;
71
71
  */
72
72
  declare function toEntityError(err: unknown): EntityError;
73
73
 
74
+ /**
75
+ * Compiles a {@link FilterSpec} into a Prisma `where` object (plain JSON-serializable shape).
76
+ *
77
+ * Operator mapping matches common Prisma filter APIs: `eq` → `equals`, string ops use `mode: "insensitive"`,
78
+ * `nin` → `notIn`, `arrayContains` → `has`, `isNull` uses `null` / `{ not: null }` per `value`, and `isNotNull` → `{ not: null }`.
79
+ * Unsupported ops (`between`, `arrayOverlaps`, `matches`, `custom`) are omitted from the result.
80
+ *
81
+ * Top-level clause arrays are combined with `AND`. {@link FilterGroup} uses `AND` / `OR` to match `group.logic`.
82
+ */
83
+ declare function toPrismaWhere(filter: FilterSpec): Record<string, unknown>;
84
+ /**
85
+ * Compiles a {@link SortSpec} into Prisma `orderBy` form: `[{ fieldName: "asc" | "desc" }, …]`.
86
+ * `nulls` and `comparator` on {@link SortClause} are ignored (local-only); extend callers if your Prisma version supports null ordering.
87
+ */
88
+ declare function toPrismaOrderBy(sort: SortSpec): Record<string, string>[];
89
+
90
+ /**
91
+ * Transport-agnostic comparison operators. Same spec can compile to REST, SQL, GraphQL, or local JS (`evaluator`).
92
+ * `custom` opts out of automatic serialization — use for predicates only the client can evaluate.
93
+ */
94
+ type FilterOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "nin" | "contains" | "startsWith" | "endsWith" | "isNull" | "isNotNull" | "between" | "arrayContains" | "arrayOverlaps" | "matches" | "custom";
95
+ /** Atomic filter: field path, operator, optional value, and optional JS predicate for `custom`. */
96
+ interface FilterClause {
97
+ field: string;
98
+ op: FilterOperator;
99
+ value?: unknown;
100
+ predicate?: (fieldValue: unknown, entity: Record<string, unknown>) => boolean;
101
+ }
102
+ type FilterLogic = "and" | "or";
103
+ /** Nested boolean group so you can express `(A AND B) OR C` without losing structure when compiling to backends. */
104
+ interface FilterGroup {
105
+ logic: FilterLogic;
106
+ clauses: Array<FilterClause | FilterGroup>;
107
+ }
108
+ /** Top-level filter: flat AND list of clauses, or a recursive `FilterGroup`. */
109
+ type FilterSpec = FilterGroup | FilterClause[];
110
+ type SortDirection = "asc" | "desc";
111
+ /** Single sort key with optional null ordering and custom comparator for local sort parity with remote semantics. */
112
+ interface SortClause {
113
+ field: string;
114
+ direction: SortDirection;
115
+ nulls?: "first" | "last";
116
+ comparator?: (a: unknown, b: unknown) => number;
117
+ }
118
+ /** Ordered multi-key sort (stable application in `compareEntities`). */
119
+ type SortSpec = SortClause[];
120
+ /**
121
+ * Everything `useEntityView` needs to describe a virtualized collection: filters, sorts, and simple multi-field search.
122
+ * One descriptor can drive local evaluation, remote query compilation, or hybrid mode.
123
+ */
124
+ interface ViewDescriptor {
125
+ filter?: FilterSpec;
126
+ sort?: SortSpec;
127
+ search?: {
128
+ query: string;
129
+ fields: string[];
130
+ minChars?: number;
131
+ };
132
+ }
133
+ /**
134
+ * How complete local graph data is relative to the view: **local** (all in memory), **remote** (server must filter/sort), **hybrid** (show local fast + remote reconcile).
135
+ */
136
+ type CompletenessMode = "local" | "remote" | "hybrid";
137
+ /**
138
+ * Compile a view to flat REST query params (`sort`, `q`, and `field[op]=value` keys). Skips `custom` clauses — those cannot be expressed as strings.
139
+ */
140
+ declare function toRestParams(view: ViewDescriptor): Record<string, string>;
141
+ /**
142
+ * Compile a view to parameterized SQL fragments for server-side filtering/sorting. Unknown ops become `TRUE` — validate or restrict ops at the edge.
143
+ */
144
+ declare function toSQLClauses(view: ViewDescriptor): {
145
+ where: string;
146
+ orderBy: string;
147
+ params: unknown[];
148
+ };
149
+ /**
150
+ * Produce a GraphQL-variable-shaped object from a view (Hasura/Postgraphile-style `_op` maps). Intended as a starting point — wire to your actual schema.
151
+ */
152
+ declare function toGraphQLVariables(view: ViewDescriptor): {
153
+ where?: Record<string, unknown>;
154
+ orderBy?: Array<Record<string, unknown>>;
155
+ search?: string;
156
+ };
157
+
158
+ /**
159
+ * Normalize nested `FilterGroup` trees to a flat clause list for compilers that only understand atomic predicates.
160
+ */
161
+ declare function flattenClauses(filter: FilterSpec): FilterClause[];
162
+ /** True if any clause requires client-side `predicate` logic — forces local/hybrid evaluation paths that cannot be pushed to generic REST/SQL. */
163
+ declare function hasCustomPredicates(filter: FilterSpec): boolean;
164
+
74
165
  /** Logical entity kind (e.g. `"Post"`). Used to partition the normalized graph. */
75
166
  type EntityType = string;
76
167
  /** Primary key for an entity within its `type`. Lists and relations reference this, not row copies. */
@@ -128,6 +219,41 @@ interface ListState {
128
219
  currentPage: number | null;
129
220
  pageSize: number | null;
130
221
  }
222
+ /** Pagination and lifecycle metadata accepted by successful list writes. */
223
+ type ListResultMeta = Partial<Omit<ListState, "ids" | "isFetching" | "isFetchingMore" | "error" | "stale">>;
224
+ /** One list projection updated as part of an atomic fetched-list ingestion. */
225
+ interface FetchedListTarget {
226
+ key: QueryKey;
227
+ mode?: "replace" | "append";
228
+ meta?: ListResultMeta;
229
+ /** Override list membership when the transport derives ids separately. */
230
+ ids?: EntityId[];
231
+ }
232
+ /** Additional normalized entity rows committed with the primary fetched list. */
233
+ interface FetchedEntityBatch {
234
+ type: EntityType;
235
+ entries: Array<{
236
+ id: EntityId;
237
+ data: Record<string, unknown>;
238
+ }>;
239
+ }
240
+ /** Incrementally project fetched rows into an existing view-backed list. */
241
+ interface FetchedListProjection {
242
+ key: QueryKey;
243
+ view: ViewDescriptor;
244
+ /** Complete the projection's fetch lifecycle without replacing its ids. */
245
+ completeFetch?: boolean;
246
+ }
247
+ /** Additional graph projections completed by one fetched-list response. */
248
+ interface IngestFetchedListOptions {
249
+ lists?: FetchedListTarget[];
250
+ /** Side-descriptor rows that must commit or fail with the primary batch. */
251
+ sideBatches?: FetchedEntityBatch[];
252
+ /** View-backed lists that receive matching fetched ids in the same publication. */
253
+ projections?: FetchedListProjection[];
254
+ /** List fetch flags to clear without replacing their existing ids or metadata. */
255
+ finishListFetches?: QueryKey[];
256
+ }
131
257
  /**
132
258
  * Stable fallbacks for missing `lists[key]` / `entityStates[key]` slots.
133
259
  * Inline `?? { ... }` defaults allocate new objects every `getSnapshot` call and trigger React 19
@@ -169,6 +295,14 @@ interface GraphState {
169
295
  id: EntityId;
170
296
  data: Record<string, unknown>;
171
297
  }>) => void;
298
+ /**
299
+ * Merge one fetched page, mark every row fetched, and update its list
300
+ * projections in one Zustand publication.
301
+ */
302
+ ingestFetchedList: (type: EntityType, entries: Array<{
303
+ id: EntityId;
304
+ data: Record<string, unknown>;
305
+ }>, options?: IngestFetchedListOptions) => void;
172
306
  /**
173
307
  * Replace the canonical entity entirely (no merge). Use when the server returns a full snapshot and partial merge would leave stale keys behind.
174
308
  */
@@ -322,6 +456,10 @@ declare function createGraphStore(): Omit<Omit<zustand_vanilla.StoreApi<GraphSta
322
456
  id: EntityId;
323
457
  data: Record<string, unknown>;
324
458
  }>) => void;
459
+ ingestFetchedList: (type: EntityType, entries: Array<{
460
+ id: EntityId;
461
+ data: Record<string, unknown>;
462
+ }>, options?: IngestFetchedListOptions) => void;
325
463
  replaceEntity: (type: EntityType, id: EntityId, data: Record<string, unknown>) => void;
326
464
  removeEntity: (type: EntityType, id: EntityId) => void;
327
465
  patchEntity: (type: EntityType, id: EntityId, patch: Record<string, unknown>) => void;
@@ -415,6 +553,10 @@ declare function createGraphStore(): Omit<Omit<zustand_vanilla.StoreApi<GraphSta
415
553
  id: EntityId;
416
554
  data: Record<string, unknown>;
417
555
  }>) => void;
556
+ ingestFetchedList: (type: EntityType, entries: Array<{
557
+ id: EntityId;
558
+ data: Record<string, unknown>;
559
+ }>, options?: IngestFetchedListOptions) => void;
418
560
  replaceEntity: (type: EntityType, id: EntityId, data: Record<string, unknown>) => void;
419
561
  removeEntity: (type: EntityType, id: EntityId) => void;
420
562
  patchEntity: (type: EntityType, id: EntityId, patch: Record<string, unknown>) => void;
@@ -523,6 +665,10 @@ declare const graphStore: Omit<Omit<zustand_vanilla.StoreApi<GraphState>, "subsc
523
665
  id: EntityId;
524
666
  data: Record<string, unknown>;
525
667
  }>) => void;
668
+ ingestFetchedList: (type: EntityType, entries: Array<{
669
+ id: EntityId;
670
+ data: Record<string, unknown>;
671
+ }>, options?: IngestFetchedListOptions) => void;
526
672
  replaceEntity: (type: EntityType, id: EntityId, data: Record<string, unknown>) => void;
527
673
  removeEntity: (type: EntityType, id: EntityId) => void;
528
674
  patchEntity: (type: EntityType, id: EntityId, patch: Record<string, unknown>) => void;
@@ -616,6 +762,10 @@ declare const graphStore: Omit<Omit<zustand_vanilla.StoreApi<GraphState>, "subsc
616
762
  id: EntityId;
617
763
  data: Record<string, unknown>;
618
764
  }>) => void;
765
+ ingestFetchedList: (type: EntityType, entries: Array<{
766
+ id: EntityId;
767
+ data: Record<string, unknown>;
768
+ }>, options?: IngestFetchedListOptions) => void;
619
769
  replaceEntity: (type: EntityType, id: EntityId, data: Record<string, unknown>) => void;
620
770
  removeEntity: (type: EntityType, id: EntityId) => void;
621
771
  patchEntity: (type: EntityType, id: EntityId, patch: Record<string, unknown>) => void;
@@ -724,6 +874,10 @@ declare const useGraphStore: Omit<Omit<zustand_vanilla.StoreApi<GraphState>, "su
724
874
  id: EntityId;
725
875
  data: Record<string, unknown>;
726
876
  }>) => void;
877
+ ingestFetchedList: (type: EntityType, entries: Array<{
878
+ id: EntityId;
879
+ data: Record<string, unknown>;
880
+ }>, options?: IngestFetchedListOptions) => void;
727
881
  replaceEntity: (type: EntityType, id: EntityId, data: Record<string, unknown>) => void;
728
882
  removeEntity: (type: EntityType, id: EntityId) => void;
729
883
  patchEntity: (type: EntityType, id: EntityId, patch: Record<string, unknown>) => void;
@@ -817,6 +971,10 @@ declare const useGraphStore: Omit<Omit<zustand_vanilla.StoreApi<GraphState>, "su
817
971
  id: EntityId;
818
972
  data: Record<string, unknown>;
819
973
  }>) => void;
974
+ ingestFetchedList: (type: EntityType, entries: Array<{
975
+ id: EntityId;
976
+ data: Record<string, unknown>;
977
+ }>, options?: IngestFetchedListOptions) => void;
820
978
  replaceEntity: (type: EntityType, id: EntityId, data: Record<string, unknown>) => void;
821
979
  removeEntity: (type: EntityType, id: EntityId) => void;
822
980
  patchEntity: (type: EntityType, id: EntityId, patch: Record<string, unknown>) => void;
@@ -845,97 +1003,6 @@ declare const useGraphStore: Omit<Omit<zustand_vanilla.StoreApi<GraphState>, "su
845
1003
  }) => void), shouldReplace: true): void;
846
1004
  };
847
1005
 
848
- /**
849
- * Compiles a {@link FilterSpec} into a Prisma `where` object (plain JSON-serializable shape).
850
- *
851
- * Operator mapping matches common Prisma filter APIs: `eq` → `equals`, string ops use `mode: "insensitive"`,
852
- * `nin` → `notIn`, `arrayContains` → `has`, `isNull` uses `null` / `{ not: null }` per `value`, and `isNotNull` → `{ not: null }`.
853
- * Unsupported ops (`between`, `arrayOverlaps`, `matches`, `custom`) are omitted from the result.
854
- *
855
- * Top-level clause arrays are combined with `AND`. {@link FilterGroup} uses `AND` / `OR` to match `group.logic`.
856
- */
857
- declare function toPrismaWhere(filter: FilterSpec): Record<string, unknown>;
858
- /**
859
- * Compiles a {@link SortSpec} into Prisma `orderBy` form: `[{ fieldName: "asc" | "desc" }, …]`.
860
- * `nulls` and `comparator` on {@link SortClause} are ignored (local-only); extend callers if your Prisma version supports null ordering.
861
- */
862
- declare function toPrismaOrderBy(sort: SortSpec): Record<string, string>[];
863
-
864
- /**
865
- * Transport-agnostic comparison operators. Same spec can compile to REST, SQL, GraphQL, or local JS (`evaluator`).
866
- * `custom` opts out of automatic serialization — use for predicates only the client can evaluate.
867
- */
868
- type FilterOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "nin" | "contains" | "startsWith" | "endsWith" | "isNull" | "isNotNull" | "between" | "arrayContains" | "arrayOverlaps" | "matches" | "custom";
869
- /** Atomic filter: field path, operator, optional value, and optional JS predicate for `custom`. */
870
- interface FilterClause {
871
- field: string;
872
- op: FilterOperator;
873
- value?: unknown;
874
- predicate?: (fieldValue: unknown, entity: Record<string, unknown>) => boolean;
875
- }
876
- type FilterLogic = "and" | "or";
877
- /** Nested boolean group so you can express `(A AND B) OR C` without losing structure when compiling to backends. */
878
- interface FilterGroup {
879
- logic: FilterLogic;
880
- clauses: Array<FilterClause | FilterGroup>;
881
- }
882
- /** Top-level filter: flat AND list of clauses, or a recursive `FilterGroup`. */
883
- type FilterSpec = FilterGroup | FilterClause[];
884
- type SortDirection = "asc" | "desc";
885
- /** Single sort key with optional null ordering and custom comparator for local sort parity with remote semantics. */
886
- interface SortClause {
887
- field: string;
888
- direction: SortDirection;
889
- nulls?: "first" | "last";
890
- comparator?: (a: unknown, b: unknown) => number;
891
- }
892
- /** Ordered multi-key sort (stable application in `compareEntities`). */
893
- type SortSpec = SortClause[];
894
- /**
895
- * Everything `useEntityView` needs to describe a virtualized collection: filters, sorts, and simple multi-field search.
896
- * One descriptor can drive local evaluation, remote query compilation, or hybrid mode.
897
- */
898
- interface ViewDescriptor {
899
- filter?: FilterSpec;
900
- sort?: SortSpec;
901
- search?: {
902
- query: string;
903
- fields: string[];
904
- minChars?: number;
905
- };
906
- }
907
- /**
908
- * How complete local graph data is relative to the view: **local** (all in memory), **remote** (server must filter/sort), **hybrid** (show local fast + remote reconcile).
909
- */
910
- type CompletenessMode = "local" | "remote" | "hybrid";
911
- /**
912
- * Compile a view to flat REST query params (`sort`, `q`, and `field[op]=value` keys). Skips `custom` clauses — those cannot be expressed as strings.
913
- */
914
- declare function toRestParams(view: ViewDescriptor): Record<string, string>;
915
- /**
916
- * Compile a view to parameterized SQL fragments for server-side filtering/sorting. Unknown ops become `TRUE` — validate or restrict ops at the edge.
917
- */
918
- declare function toSQLClauses(view: ViewDescriptor): {
919
- where: string;
920
- orderBy: string;
921
- params: unknown[];
922
- };
923
- /**
924
- * Produce a GraphQL-variable-shaped object from a view (Hasura/Postgraphile-style `_op` maps). Intended as a starting point — wire to your actual schema.
925
- */
926
- declare function toGraphQLVariables(view: ViewDescriptor): {
927
- where?: Record<string, unknown>;
928
- orderBy?: Array<Record<string, unknown>>;
929
- search?: string;
930
- };
931
-
932
- /**
933
- * Normalize nested `FilterGroup` trees to a flat clause list for compilers that only understand atomic predicates.
934
- */
935
- declare function flattenClauses(filter: FilterSpec): FilterClause[];
936
- /** True if any clause requires client-side `predicate` logic — forces local/hybrid evaluation paths that cannot be pushed to generic REST/SQL. */
937
- declare function hasCustomPredicates(filter: FilterSpec): boolean;
938
-
939
1006
  /**
940
1007
  * 2.0 transport contract.
941
1008
  *
@@ -3241,4 +3308,4 @@ declare function getFacetedMinMaxValues<TData>(rowModel: RowModel<TData>, column
3241
3308
  */
3242
3309
  declare function getFacetedRowModel<TData>(preFilteredRowModel: RowModel<TData>, columnId: string, allFilteredRowModel: RowModel<TData>): RowModel<TData>;
3243
3310
 
3244
- export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CompletenessMode, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, type EntityError, type EntityErrorOptions, type EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, type EntitySnapshot, type EntityState, type EntitySyncMetadata, type EntityTransport, type EntityType, type ExpandedState, type FilterClause, type FilterFn, type FilterGroup, type FilterOperator, type FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, type GraphState, type GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type ListState, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, type QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type Row, type RowModel, type RowSelectionState, type SchemaGraphToolContext, type SortClause, type SortDirection, type SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, type SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, TerminalError, type TimeTravelSnapshot, type TimeTravelState, TransientError, type UnsubscribeFn, type Updater, type ViewDescriptor, type ViewMode, type WebSocketAdapterOptions, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, restoreGraphSnapshot, restoreGraphSnapshotBySeq, selectGraph, serializeKey, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
3311
+ export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CompletenessMode, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, type EntityError, type EntityErrorOptions, type EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, type EntitySnapshot, type EntityState, type EntitySyncMetadata, type EntityTransport, type EntityType, type ExpandedState, type FetchedEntityBatch, type FetchedListProjection, type FetchedListTarget, type FilterClause, type FilterFn, type FilterGroup, type FilterOperator, type FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, type GraphState, type GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type IngestFetchedListOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type ListResultMeta, type ListState, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, type QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type Row, type RowModel, type RowSelectionState, type SchemaGraphToolContext, type SortClause, type SortDirection, type SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, type SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, TerminalError, type TimeTravelSnapshot, type TimeTravelState, TransientError, type UnsubscribeFn, type Updater, type ViewDescriptor, type ViewMode, type WebSocketAdapterOptions, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, restoreGraphSnapshot, restoreGraphSnapshotBySeq, selectGraph, serializeKey, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };