@fortemi/core 2026.9.3 → 2026.9.5

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.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PGlite } from '@electric-sql/pglite';
2
- import { S as ShardAttachmentProjection, a as ShardCollection, b as ShardEmbeddingConfig, c as ShardEmbedding, d as ShardEmbeddingSet, e as ShardEmbeddingSetMember, f as ShardLink, g as ShardNote, h as ShardNoteSkosTag, i as ShardProvenanceEdge, j as ShardSkosConcept, k as ShardSkosRelation, l as ShardSkosScheme, m as ShardTag, n as ShardTemplate, o as ShardManifest, B as BlobStore, p as BlobReconcileOptions, q as BlobReconcileResult, r as BlobGcOptions, s as BlobGcResult, t as ShardBackend, u as ShardOperation, v as ShardComponent, w as ShardLossEntry, x as ShardCapabilityReport, y as ShardProfileRegistryEntry, E as ExportOptions, z as ShardExportResult, I as ImportOptions, A as ImportResult } from './aiwg-index-shard-BCdaz0X1.js';
3
- export { C as AIWG_SCAN_REQUIRED_FIELDS, D as AiwgChunkedIndexBuildOptions, F as AiwgChunkedIndexBuildResult, G as AiwgChunkedIndexDetailLoader, H as AiwgChunkedIndexLoadOptions, J as AiwgChunkedIndexLoader, K as AiwgChunkedIndexProgress, L as AiwgChunkedIndexProgressPhase, M as AiwgChunkedIndexQueryOptions, N as AiwgChunkedIndexQueryResult, O as AiwgChunkedIndexValidationResult, P as AiwgFortemiAttachmentReference, Q as AiwgFortemiBinarySource, R as AiwgFortemiChunk, T as AiwgFortemiChunkDetailRef, U as AiwgFortemiChunkManifest, V as AiwgFortemiChunkPart, W as AiwgFortemiChunkPartRef, X as AiwgFortemiIndexExport, Y as AiwgFortemiIndexExportSchemaVersion, Z as AiwgFortemiProjectedRecord, _ as AiwgFortemiProvenance, $ as AiwgFortemiProvenanceEvent, a0 as AiwgFortemiRecord, a1 as AiwgFortemiRecordEmbedding, a2 as AiwgFortemiRecordSchemaVersion, a3 as AiwgFortemiRecordSource, a4 as AiwgFortemiRecordType, a5 as AiwgFortemiRelationship, a6 as AiwgFortemiRelationshipDirection, a7 as AiwgFortemiSearchProjection, a8 as AiwgFortemiSkosConcept, a9 as AiwgFortemiSkosRelation, aa as AiwgFortemiSkosRelationType, ab as AiwgHeadlessEmbeddingBackend, ac as AiwgIndexController, ad as AiwgIndexControllerListener, ae as AiwgIndexControllerSnapshot, af as AiwgIndexGraphOptions, ag as AiwgIndexQueryMatch, ah as AiwgIndexQueryOptions, ai as AiwgIndexQueryRankedItem, aj as AiwgIndexQueryResult, ak as AiwgIndexQueryWeights, al as AiwgIndexValidationResult, am as AiwgKnowledgeShardConversionResult, an as AiwgKnowledgeShardOptions, ao as AiwgPrivacyClassification, ap as AiwgPrivacyFilterOptions, aq as AiwgProvenanceConfidence, ar as AiwgRelationshipDirection, as as AiwgRelationshipEdgeSummary, at as AiwgRelationshipNodeSummary, au as AiwgRelationshipQueryOptions, av as AiwgRelationshipSetOperation, aw as AiwgRelationshipSetOptions, ax as AiwgRelationshipSetResult, ay as AiwgRelationshipTraversalOptions, az as AiwgRelationshipTraversalResult, aA as AiwgReviewAction, aB as AiwgReviewDecision, aC as AiwgReviewDecisionExport, aD as AiwgReviewInput, aE as AiwgStaticDuplicatePair, aF as AiwgStaticEmbeddingRecord, aG as AiwgStaticEmbeddingSet, aH as AiwgStaticHybridQueryOptions, aI as AiwgStaticSemanticQueryOptions, aJ as AiwgStaticSemanticResult, aK as AllowlistTrustStore, aL as BlobBackendKind, aM as BlobStoreDiagnostics, aN as BuildAiwgStaticEmbeddingSetOptions, aO as CURRENT_SHARD_VERSION, aP as ConflictStrategy, aQ as CreateBlobStoreOptions, aR as ImportCounts, aS as ImportProgress, aT as ImportProgressPhase, aU as KnowledgeShardProfile, aV as MemoryBlobStore, aW as SHARD_FORMAT, aX as SIGNATURE_ENTRY, aY as SIGNING_ENVELOPE_VERSION, aZ as ShardAuthorityStatus, a_ as ShardClusterRef, a$ as ShardLayout, b0 as ShardSignatureEnvelope, b1 as ShardSignatureVerdict, b2 as ShardSigner, b3 as ShardSigningPayload, b4 as ShardTrustStore, b5 as SignShardInput, b6 as TrustedKey, b7 as VerifyShardSignatureInput, b8 as aiwgFortemiIndexFromKnowledgeShard, b9 as aiwgFortemiIndexToCommunityGraph, ba as aiwgFortemiIndexToKnowledgeShard, bb as aiwgFortemiIndexToKnowledgeShardWithReport, bc as assertAiwgFortemiChunkManifest, bd as assertAiwgFortemiChunkPart, be as assertAiwgFortemiIndexExport, bf as assertAiwgStaticEmbeddingSet, bg as buildAiwgChunkedIndex, bh as buildAiwgStaticEmbeddingSet, bi as createAiwgFetchChunkLoader, bj as createAiwgFetchDetailLoader, bk as createAiwgIndexController, bl as createAiwgReviewDecisionExport, bm as createBlobStore, bn as createLazyBlobStore, bo as filterAiwgRecordsByPrivacy, bp as findAiwgStaticDuplicatePairs, bq as getAiwgFortemiFacets, br as isShardSigningSupported, bs as queryAiwgFortemiIndex, bt as queryAiwgHybridIndex, bu as queryAiwgSemanticIndex, bv as sidecarBlobDigests, bw as signShard, bx as validateAiwgFortemiChunkManifest, by as validateAiwgFortemiChunkPart, bz as validateAiwgFortemiIndexExport, bA as validateAiwgStaticEmbeddingSet, bB as verifyShardSignature } from './aiwg-index-shard-BCdaz0X1.js';
4
2
  import { z, ZodType } from 'zod';
3
+ import { S as ShardAttachmentProjection, a as ShardCollection, b as ShardEmbeddingConfig, c as ShardEmbedding, d as ShardEmbeddingSet, e as ShardEmbeddingSetMember, f as ShardLink, g as ShardNote, h as ShardNoteSkosTag, i as ShardProvenanceEdge, j as ShardSkosConcept, k as ShardSkosRelation, l as ShardSkosScheme, m as ShardTag, n as ShardTemplate, o as ShardManifest, B as BlobStore, p as BlobReconcileOptions, q as BlobReconcileResult, r as BlobGcOptions, s as BlobGcResult, t as ShardBackend, u as ShardOperation, v as ShardComponent, w as ShardLossEntry, x as ShardCapabilityReport, y as ShardProfileRegistryEntry, E as ExportOptions, z as ShardExportResult, I as ImportOptions, A as ImportResult } from './aiwg-index-shard-jyT_f8H6.js';
4
+ export { C as AIWG_SCAN_REQUIRED_FIELDS, D as AiwgChunkedIndexBuildOptions, F as AiwgChunkedIndexBuildResult, G as AiwgChunkedIndexDetailLoader, H as AiwgChunkedIndexLoadOptions, J as AiwgChunkedIndexLoader, K as AiwgChunkedIndexProgress, L as AiwgChunkedIndexProgressPhase, M as AiwgChunkedIndexQueryOptions, N as AiwgChunkedIndexQueryResult, O as AiwgChunkedIndexValidationResult, P as AiwgFortemiAttachmentReference, Q as AiwgFortemiBinarySource, R as AiwgFortemiChunk, T as AiwgFortemiChunkDetailRef, U as AiwgFortemiChunkManifest, V as AiwgFortemiChunkPart, W as AiwgFortemiChunkPartRef, X as AiwgFortemiIndexExport, Y as AiwgFortemiIndexExportSchemaVersion, Z as AiwgFortemiProjectedRecord, _ as AiwgFortemiProvenance, $ as AiwgFortemiProvenanceEvent, a0 as AiwgFortemiRecord, a1 as AiwgFortemiRecordEmbedding, a2 as AiwgFortemiRecordSchemaVersion, a3 as AiwgFortemiRecordSource, a4 as AiwgFortemiRecordType, a5 as AiwgFortemiRelationship, a6 as AiwgFortemiRelationshipDirection, a7 as AiwgFortemiSearchProjection, a8 as AiwgFortemiSkosConcept, a9 as AiwgFortemiSkosRelation, aa as AiwgFortemiSkosRelationType, ab as AiwgHeadlessEmbeddingBackend, ac as AiwgIndexController, ad as AiwgIndexControllerListener, ae as AiwgIndexControllerSnapshot, af as AiwgIndexGraphOptions, ag as AiwgIndexQueryMatch, ah as AiwgIndexQueryOptions, ai as AiwgIndexQueryRankedItem, aj as AiwgIndexQueryResult, ak as AiwgIndexQueryWeights, al as AiwgIndexValidationResult, am as AiwgKnowledgeShardConversionResult, an as AiwgKnowledgeShardOptions, ao as AiwgPrivacyClassification, ap as AiwgPrivacyFilterOptions, aq as AiwgProvenanceConfidence, ar as AiwgRelationshipDirection, as as AiwgRelationshipEdgeSummary, at as AiwgRelationshipNodeSummary, au as AiwgRelationshipQueryOptions, av as AiwgRelationshipSetOperation, aw as AiwgRelationshipSetOptions, ax as AiwgRelationshipSetResult, ay as AiwgRelationshipTraversalOptions, az as AiwgRelationshipTraversalResult, aA as AiwgReviewAction, aB as AiwgReviewDecision, aC as AiwgReviewDecisionExport, aD as AiwgReviewInput, aE as AiwgStaticDuplicatePair, aF as AiwgStaticEmbeddingRecord, aG as AiwgStaticEmbeddingSet, aH as AiwgStaticHybridQueryOptions, aI as AiwgStaticSemanticQueryOptions, aJ as AiwgStaticSemanticResult, aK as AllowlistTrustStore, aL as BlobBackendKind, aM as BlobStoreDiagnostics, aN as BuildAiwgStaticEmbeddingSetOptions, aO as CURRENT_SHARD_VERSION, aP as ConflictStrategy, aQ as CreateBlobStoreOptions, aR as ImportCounts, aS as ImportProgress, aT as ImportProgressPhase, aU as KnowledgeShardProfile, aV as MemoryBlobStore, aW as SHARD_FORMAT, aX as SIGNATURE_ENTRY, aY as SIGNING_ENVELOPE_VERSION, aZ as ShardAuthorityStatus, a_ as ShardClusterRef, a$ as ShardLayout, b0 as ShardSignatureEnvelope, b1 as ShardSignatureVerdict, b2 as ShardSigner, b3 as ShardSigningPayload, b4 as ShardTrustStore, b5 as SignShardInput, b6 as TrustedKey, b7 as VerifyShardSignatureInput, b8 as aiwgFortemiIndexFromKnowledgeShard, b9 as aiwgFortemiIndexToCommunityGraph, ba as aiwgFortemiIndexToKnowledgeShard, bb as aiwgFortemiIndexToKnowledgeShardWithReport, bc as assertAiwgFortemiChunkManifest, bd as assertAiwgFortemiChunkPart, be as assertAiwgFortemiIndexExport, bf as assertAiwgStaticEmbeddingSet, bg as buildAiwgChunkedIndex, bh as buildAiwgStaticEmbeddingSet, bi as createAiwgFetchChunkLoader, bj as createAiwgFetchDetailLoader, bk as createAiwgIndexController, bl as createAiwgReviewDecisionExport, bm as createBlobStore, bn as createLazyBlobStore, bo as filterAiwgRecordsByPrivacy, bp as findAiwgStaticDuplicatePairs, bq as getAiwgFortemiFacets, br as isShardSigningSupported, bs as queryAiwgFortemiIndex, bt as queryAiwgHybridIndex, bu as queryAiwgSemanticIndex, bv as sidecarBlobDigests, bw as signShard, bx as validateAiwgFortemiChunkManifest, by as validateAiwgFortemiChunkPart, bz as validateAiwgFortemiIndexExport, bA as validateAiwgStaticEmbeddingSet, bB as verifyShardSignature } from './aiwg-index-shard-jyT_f8H6.js';
5
5
  export { AiwgIndexSchemaValidationResult, getAiwgFortemiIndexExportSchema, validateAiwgFortemiIndexExportSchema, validateAiwgFortemiProjectedRecordSchema } from './aiwg-index-schema.js';
6
6
  import '@bytecask/core';
7
7
  /**
@@ -546,7 +546,17 @@ interface DatasetCapabilityNegotiationResult {
546
546
  degradations: DatasetCapabilityDegradation[];
547
547
  diagnostics: DatasetCapabilityDiagnostic[];
548
548
  }
549
- declare function validateDatasetExecutionDescriptor(descriptor: DatasetExecutionCapabilityDescriptor): DatasetCapabilityDiagnostic[];
549
+ type DatasetCapabilityWireResult = {
550
+ diagnostics: DatasetCapabilityDiagnostic[];
551
+ valid: false;
552
+ } | {
553
+ result: DatasetCapabilityNegotiationResult;
554
+ valid: true;
555
+ };
556
+ declare function validateDatasetExecutionDescriptor(descriptor: unknown): DatasetCapabilityDiagnostic[];
557
+ declare function validateDatasetExecutionRequest(request: unknown): DatasetCapabilityDiagnostic[];
558
+ /** Validate untrusted JSON before exposing a typed negotiation result. */
559
+ declare function negotiateDatasetExecutionCapabilitiesFromWire(descriptor: unknown, request: unknown): DatasetCapabilityWireResult;
550
560
  /** Pure negotiation: performs no I/O and cannot mutate the descriptor or request. */
551
561
  declare function negotiateDatasetExecutionCapabilities(descriptor: DatasetExecutionCapabilityDescriptor, request: DatasetCapabilityNegotiationRequest): DatasetCapabilityNegotiationResult;
552
562
  /** Descriptor for the journaled browser-local RecordStore/PGlite projection. */
@@ -1156,6 +1166,17 @@ interface RestoreDbSnapshotOptions {
1156
1166
  * import). The returned instance is ready to query; do NOT run migrations on it.
1157
1167
  */
1158
1168
  declare function restoreDbSnapshot(source: DbSnapshotSource, options?: RestoreDbSnapshotOptions): Promise<PGlite>;
1169
+ type RemoteBackendErrorKind = 'aborted' | 'degraded-search' | 'http' | 'invalid-request' | 'invalid-response' | 'transport' | 'unsupported-operation';
1170
+ /** Bounded diagnostics only: never retains request URLs, headers or response text. */
1171
+ declare class RemoteBackendError extends Error {
1172
+ readonly kind: RemoteBackendErrorKind;
1173
+ readonly status?: number | undefined;
1174
+ readonly problemCode?: string | undefined;
1175
+ readonly requestId?: string | undefined;
1176
+ readonly retryAfterSeconds?: number | undefined;
1177
+ readonly name = "RemoteBackendError";
1178
+ constructor(kind: RemoteBackendErrorKind, status?: number | undefined, problemCode?: string | undefined, requestId?: string | undefined, retryAfterSeconds?: number | undefined);
1179
+ }
1159
1180
  /**
1160
1181
  * Type-safe client for the PGlite Worker.
1161
1182
  *
@@ -1679,9 +1700,13 @@ interface BackendNote {
1679
1700
  /** A note plus its current rendered content. */
1680
1701
  interface BackendNoteFull extends BackendNote {
1681
1702
  content: string;
1703
+ /** Native note metadata, separate from inference metadata where supported. */
1704
+ metadata?: unknown;
1682
1705
  links?: BackendLink[];
1683
1706
  concepts?: BackendConcept[];
1684
1707
  provenance?: BackendProvenanceEdge[];
1708
+ /** Server revision/activity graph; not interchangeable with local provenance edges. */
1709
+ provenanceGraph?: RemoteProvenanceGraph;
1685
1710
  }
1686
1711
  interface BackendLink {
1687
1712
  id: string;
@@ -1692,6 +1717,11 @@ interface BackendLink {
1692
1717
  score: null | number;
1693
1718
  createdAt: string;
1694
1719
  metadata?: Record<string, unknown>;
1720
+ /** Exact server JSON metadata, including non-object values and null. */
1721
+ remoteMetadata?: unknown;
1722
+ /** Relative to the requested note; remote self-links can appear in both directions. */
1723
+ direction?: 'incoming' | 'outgoing';
1724
+ snippet?: null | string;
1695
1725
  }
1696
1726
  interface BackendConcept {
1697
1727
  id: string;
@@ -1701,22 +1731,35 @@ interface BackendConcept {
1701
1731
  definition: null | string;
1702
1732
  createdAt: string;
1703
1733
  updatedAt: string;
1734
+ /** Placeholder values for these fields are unavailable, not evidence of absence. */
1735
+ unavailableFields?: Array<'altLabels' | 'definition'>;
1736
+ assignment?: {
1737
+ confidence?: number;
1738
+ createdAt: string;
1739
+ createdBy?: string;
1740
+ isPrimary: boolean;
1741
+ noteId: string;
1742
+ relevanceScore: number;
1743
+ source: string;
1744
+ };
1704
1745
  }
1705
1746
  interface BackendProvenanceEdge {
1706
1747
  id: string;
1707
1748
  entityType: string;
1708
1749
  entityId: string;
1709
1750
  activity: string;
1710
- agent: string;
1751
+ agent: null | string;
1711
1752
  startedAt: string;
1712
1753
  endedAt: null | string;
1713
- attributes: null | Record<string, unknown>;
1754
+ attributes: unknown;
1714
1755
  }
1715
1756
  /** One search hit — note plus optional rank/snippet when the backend ranks. */
1716
1757
  interface BackendSearchHit {
1717
1758
  note: BackendNote;
1718
1759
  rank?: number;
1719
1760
  snippet?: string;
1761
+ /** Original remote search metadata; detail enrichment is a separate read. */
1762
+ remoteSearch?: RemoteSearchMetadata;
1720
1763
  }
1721
1764
  /** Search response with optional facet counts. */
1722
1765
  interface BackendSearchResult {
@@ -1759,6 +1802,8 @@ interface DataBackend {
1759
1802
  conceptsOf?(id: string): Promise<BackendConcept[]>;
1760
1803
  /** W3C PROV edges for a note (present when capabilities.read). */
1761
1804
  provenanceOf?(id: string): Promise<BackendProvenanceEdge[]>;
1805
+ /** Remote revision/activity graph, preserving the server model and field names. */
1806
+ provenanceGraphOf?(id: string): Promise<RemoteProvenanceGraph>;
1762
1807
  /** Vector search (present when capabilities.semantic !== 'none'). */
1763
1808
  semantic?(query: string, k?: number): Promise<BackendSearchHit[]>;
1764
1809
  /** Write op (present when capabilities.write). */
@@ -1812,8 +1857,33 @@ interface RemoteBackendPaths {
1812
1857
  links: string;
1813
1858
  concepts: string;
1814
1859
  provenance: string;
1815
- manageNote: string;
1816
- semantic: string;
1860
+ restore: string;
1861
+ /** @deprecated Tool-intent path overrides cannot adapt the REST contract and are rejected. */
1862
+ manageNote?: string;
1863
+ /** @deprecated Semantic search uses the search path and mode parameter. Overrides are rejected. */
1864
+ semantic?: string;
1865
+ }
1866
+ interface RemoteSearchOptions extends BackendSearchQueryOptions {
1867
+ mode?: RemoteSearchMode;
1868
+ }
1869
+ interface RemoteSearchResult extends BackendSearchResult {
1870
+ /** The server total counts returned hits, not the corpus or a pagination estimate. */
1871
+ totalKind: 'returned-hits';
1872
+ requestedMode: RemoteSearchMode;
1873
+ effectiveMode: RemoteSearchMode;
1874
+ degraded: boolean;
1875
+ degradation?: RemoteSearchDegradation;
1876
+ }
1877
+ interface RemoteManageNoteResult {
1878
+ action: 'archive' | 'create' | 'delete' | 'restore' | 'star' | 'unarchive' | 'unstar' | 'update';
1879
+ note_id: string;
1880
+ /** Present only when the mutation itself returns a note envelope. */
1881
+ note?: BackendNoteFull;
1882
+ }
1883
+ interface RemoteDataBackend extends DataBackend {
1884
+ search(query: string, options?: RemoteSearchOptions): Promise<RemoteSearchResult>;
1885
+ semanticWithReport(query: string, k?: number): Promise<RemoteSearchResult>;
1886
+ manageNote(input: unknown): Promise<RemoteManageNoteResult>;
1817
1887
  }
1818
1888
  interface RemoteBackendConfig {
1819
1889
  baseUrl: string;
@@ -1823,7 +1893,7 @@ interface RemoteBackendConfig {
1823
1893
  authToken?: string;
1824
1894
  paths?: Partial<RemoteBackendPaths>;
1825
1895
  }
1826
- declare function createRemoteBackend(config: RemoteBackendConfig): DataBackend;
1896
+ declare function createRemoteBackend(config: RemoteBackendConfig): RemoteDataBackend;
1827
1897
  interface ShardBackendOptions {
1828
1898
  id?: string;
1829
1899
  /** Declared semantic tier this shard provides (default `none`). Set to `cosine-small` when the reader has a vector provider. */
@@ -1836,6 +1906,394 @@ interface ShardBackendOptions {
1836
1906
  * provider is attached.
1837
1907
  */
1838
1908
  declare function createShardBackend(reader: ShardReader, options?: ShardBackendOptions): DataBackend;
1909
+ declare const provenanceGraph: z.ZodObject<{
1910
+ all_activities: z.ZodArray<z.ZodObject<{
1911
+ activity_type: z.ZodString;
1912
+ ended_at: z.ZodNullable<z.ZodString>;
1913
+ id: z.ZodEffects<z.ZodString, string, string>;
1914
+ metadata: z.ZodEffects<z.ZodUnknown, {} | null, unknown>;
1915
+ model_name: z.ZodNullable<z.ZodString>;
1916
+ note_id: z.ZodEffects<z.ZodString, string, string>;
1917
+ revision_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1918
+ started_at: z.ZodString;
1919
+ }, "strip", z.ZodTypeAny, {
1920
+ activity_type: string;
1921
+ ended_at: null | string;
1922
+ id: string;
1923
+ metadata: {} | null;
1924
+ model_name: null | string;
1925
+ note_id: string;
1926
+ revision_id: null | string;
1927
+ started_at: string;
1928
+ }, {
1929
+ activity_type: string;
1930
+ ended_at: null | string;
1931
+ id: string;
1932
+ metadata?: unknown;
1933
+ model_name: null | string;
1934
+ note_id: string;
1935
+ revision_id: null | string;
1936
+ started_at: string;
1937
+ }>, "many">;
1938
+ all_edges: z.ZodArray<z.ZodObject<{
1939
+ created_at_utc: z.ZodString;
1940
+ id: z.ZodEffects<z.ZodString, string, string>;
1941
+ relation: z.ZodString;
1942
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
1943
+ source_note_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1944
+ source_url: z.ZodNullable<z.ZodString>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ created_at_utc: string;
1947
+ id: string;
1948
+ relation: string;
1949
+ revision_id: string;
1950
+ source_note_id: null | string;
1951
+ source_url: null | string;
1952
+ }, {
1953
+ created_at_utc: string;
1954
+ id: string;
1955
+ relation: string;
1956
+ revision_id: string;
1957
+ source_note_id: null | string;
1958
+ source_url: null | string;
1959
+ }>, "many">;
1960
+ current_chain: z.ZodNullable<z.ZodObject<{
1961
+ activity: z.ZodNullable<z.ZodObject<{
1962
+ activity_type: z.ZodString;
1963
+ ended_at: z.ZodNullable<z.ZodString>;
1964
+ id: z.ZodEffects<z.ZodString, string, string>;
1965
+ metadata: z.ZodEffects<z.ZodUnknown, {} | null, unknown>;
1966
+ model_name: z.ZodNullable<z.ZodString>;
1967
+ note_id: z.ZodEffects<z.ZodString, string, string>;
1968
+ revision_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1969
+ started_at: z.ZodString;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ activity_type: string;
1972
+ ended_at: null | string;
1973
+ id: string;
1974
+ metadata: {} | null;
1975
+ model_name: null | string;
1976
+ note_id: string;
1977
+ revision_id: null | string;
1978
+ started_at: string;
1979
+ }, {
1980
+ activity_type: string;
1981
+ ended_at: null | string;
1982
+ id: string;
1983
+ metadata?: unknown;
1984
+ model_name: null | string;
1985
+ note_id: string;
1986
+ revision_id: null | string;
1987
+ started_at: string;
1988
+ }>>;
1989
+ edges: z.ZodArray<z.ZodObject<{
1990
+ created_at_utc: z.ZodString;
1991
+ id: z.ZodEffects<z.ZodString, string, string>;
1992
+ relation: z.ZodString;
1993
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
1994
+ source_note_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1995
+ source_url: z.ZodNullable<z.ZodString>;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ created_at_utc: string;
1998
+ id: string;
1999
+ relation: string;
2000
+ revision_id: string;
2001
+ source_note_id: null | string;
2002
+ source_url: null | string;
2003
+ }, {
2004
+ created_at_utc: string;
2005
+ id: string;
2006
+ relation: string;
2007
+ revision_id: string;
2008
+ source_note_id: null | string;
2009
+ source_url: null | string;
2010
+ }>, "many">;
2011
+ note_id: z.ZodEffects<z.ZodString, string, string>;
2012
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ activity: {
2015
+ activity_type: string;
2016
+ ended_at: null | string;
2017
+ id: string;
2018
+ metadata: {} | null;
2019
+ model_name: null | string;
2020
+ note_id: string;
2021
+ revision_id: null | string;
2022
+ started_at: string;
2023
+ } | null;
2024
+ edges: {
2025
+ created_at_utc: string;
2026
+ id: string;
2027
+ relation: string;
2028
+ revision_id: string;
2029
+ source_note_id: null | string;
2030
+ source_url: null | string;
2031
+ }[];
2032
+ note_id: string;
2033
+ revision_id: string;
2034
+ }, {
2035
+ activity: {
2036
+ activity_type: string;
2037
+ ended_at: null | string;
2038
+ id: string;
2039
+ metadata?: unknown;
2040
+ model_name: null | string;
2041
+ note_id: string;
2042
+ revision_id: null | string;
2043
+ started_at: string;
2044
+ } | null;
2045
+ edges: {
2046
+ created_at_utc: string;
2047
+ id: string;
2048
+ relation: string;
2049
+ revision_id: string;
2050
+ source_note_id: null | string;
2051
+ source_url: null | string;
2052
+ }[];
2053
+ note_id: string;
2054
+ revision_id: string;
2055
+ }>>;
2056
+ derived_count: z.ZodNumber;
2057
+ derived_notes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2058
+ note_id: z.ZodEffects<z.ZodString, string, string>;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ all_activities: {
2061
+ activity_type: string;
2062
+ ended_at: null | string;
2063
+ id: string;
2064
+ metadata: {} | null;
2065
+ model_name: null | string;
2066
+ note_id: string;
2067
+ revision_id: null | string;
2068
+ started_at: string;
2069
+ }[];
2070
+ all_edges: {
2071
+ created_at_utc: string;
2072
+ id: string;
2073
+ relation: string;
2074
+ revision_id: string;
2075
+ source_note_id: null | string;
2076
+ source_url: null | string;
2077
+ }[];
2078
+ current_chain: {
2079
+ activity: {
2080
+ activity_type: string;
2081
+ ended_at: null | string;
2082
+ id: string;
2083
+ metadata: {} | null;
2084
+ model_name: null | string;
2085
+ note_id: string;
2086
+ revision_id: null | string;
2087
+ started_at: string;
2088
+ } | null;
2089
+ edges: {
2090
+ created_at_utc: string;
2091
+ id: string;
2092
+ relation: string;
2093
+ revision_id: string;
2094
+ source_note_id: null | string;
2095
+ source_url: null | string;
2096
+ }[];
2097
+ note_id: string;
2098
+ revision_id: string;
2099
+ } | null;
2100
+ derived_count: number;
2101
+ derived_notes: string[];
2102
+ note_id: string;
2103
+ }, {
2104
+ all_activities: {
2105
+ activity_type: string;
2106
+ ended_at: null | string;
2107
+ id: string;
2108
+ metadata?: unknown;
2109
+ model_name: null | string;
2110
+ note_id: string;
2111
+ revision_id: null | string;
2112
+ started_at: string;
2113
+ }[];
2114
+ all_edges: {
2115
+ created_at_utc: string;
2116
+ id: string;
2117
+ relation: string;
2118
+ revision_id: string;
2119
+ source_note_id: null | string;
2120
+ source_url: null | string;
2121
+ }[];
2122
+ current_chain: {
2123
+ activity: {
2124
+ activity_type: string;
2125
+ ended_at: null | string;
2126
+ id: string;
2127
+ metadata?: unknown;
2128
+ model_name: null | string;
2129
+ note_id: string;
2130
+ revision_id: null | string;
2131
+ started_at: string;
2132
+ } | null;
2133
+ edges: {
2134
+ created_at_utc: string;
2135
+ id: string;
2136
+ relation: string;
2137
+ revision_id: string;
2138
+ source_note_id: null | string;
2139
+ source_url: null | string;
2140
+ }[];
2141
+ note_id: string;
2142
+ revision_id: string;
2143
+ } | null;
2144
+ derived_count: number;
2145
+ derived_notes: string[];
2146
+ note_id: string;
2147
+ }>;
2148
+ /** Producer field names intentionally distinguish this graph from local PGlite PROV edges. */
2149
+ type RemoteProvenanceGraph = z.infer<typeof provenanceGraph>;
2150
+ declare const searchMode: z.ZodEnum<[
2151
+ "fts",
2152
+ "semantic",
2153
+ "hybrid"
2154
+ ]>;
2155
+ type RemoteSearchMode = z.infer<typeof searchMode>;
2156
+ declare const searchHit: z.ZodObject<{
2157
+ chain_info: z.ZodOptional<z.ZodObject<{
2158
+ best_chunk_sequence: z.ZodNumber;
2159
+ chain_id: z.ZodEffects<z.ZodString, string, string>;
2160
+ chunks_matched: z.ZodNumber;
2161
+ original_title: z.ZodString;
2162
+ total_chunks: z.ZodNumber;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ best_chunk_sequence: number;
2165
+ chain_id: string;
2166
+ chunks_matched: number;
2167
+ original_title: string;
2168
+ total_chunks: number;
2169
+ }, {
2170
+ best_chunk_sequence: number;
2171
+ chain_id: string;
2172
+ chunks_matched: number;
2173
+ original_title: string;
2174
+ total_chunks: number;
2175
+ }>>;
2176
+ embedding_status: z.ZodOptional<z.ZodEnum<[
2177
+ "ready",
2178
+ "pending",
2179
+ "failed",
2180
+ "none"
2181
+ ]>>;
2182
+ note_id: z.ZodEffects<z.ZodString, string, string>;
2183
+ score: z.ZodNumber;
2184
+ snippet: z.ZodNullable<z.ZodString>;
2185
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2186
+ title: z.ZodOptional<z.ZodString>;
2187
+ }, "strip", z.ZodTypeAny, {
2188
+ chain_info?: {
2189
+ best_chunk_sequence: number;
2190
+ chain_id: string;
2191
+ chunks_matched: number;
2192
+ original_title: string;
2193
+ total_chunks: number;
2194
+ } | undefined;
2195
+ embedding_status?: "failed" | "none" | "pending" | "ready" | undefined;
2196
+ note_id: string;
2197
+ score: number;
2198
+ snippet: null | string;
2199
+ tags?: string[] | undefined;
2200
+ title?: string | undefined;
2201
+ }, {
2202
+ chain_info?: {
2203
+ best_chunk_sequence: number;
2204
+ chain_id: string;
2205
+ chunks_matched: number;
2206
+ original_title: string;
2207
+ total_chunks: number;
2208
+ } | undefined;
2209
+ embedding_status?: "failed" | "none" | "pending" | "ready" | undefined;
2210
+ note_id: string;
2211
+ score: number;
2212
+ snippet: null | string;
2213
+ tags?: string[] | undefined;
2214
+ title?: string | undefined;
2215
+ }>;
2216
+ declare const searchDegradation: z.ZodObject<{
2217
+ code: z.ZodString;
2218
+ effective_mode: z.ZodEnum<[
2219
+ "fts",
2220
+ "semantic",
2221
+ "hybrid"
2222
+ ]>;
2223
+ }, "strip", z.ZodTypeAny, {
2224
+ code: string;
2225
+ effective_mode: "fts" | "hybrid" | "semantic";
2226
+ }, {
2227
+ code: string;
2228
+ effective_mode: "fts" | "hybrid" | "semantic";
2229
+ }>;
2230
+ type RemoteSearchDegradation = z.infer<typeof searchDegradation>;
2231
+ type RemoteSearchMetadata = Pick<z.infer<typeof searchHit>, 'chain_info' | 'embedding_status' | 'tags' | 'title'>;
2232
+ declare const manageInput: z.ZodUnion<[
2233
+ z.ZodObject<{
2234
+ action: z.ZodLiteral<"create">;
2235
+ content: z.ZodString;
2236
+ source: z.ZodOptional<z.ZodString>;
2237
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2238
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2239
+ }, "strict", z.ZodTypeAny, {
2240
+ action: "create";
2241
+ content: string;
2242
+ source?: string | undefined;
2243
+ tags?: string[] | undefined;
2244
+ title?: null | string | undefined;
2245
+ }, {
2246
+ action: "create";
2247
+ content: string;
2248
+ source?: string | undefined;
2249
+ tags?: string[] | undefined;
2250
+ title?: null | string | undefined;
2251
+ }>,
2252
+ z.ZodEffects<z.ZodObject<{
2253
+ action: z.ZodLiteral<"update">;
2254
+ content: z.ZodOptional<z.ZodString>;
2255
+ note_id: z.ZodEffects<z.ZodString, string, string>;
2256
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2257
+ }, "strict", z.ZodTypeAny, {
2258
+ action: "update";
2259
+ content?: string | undefined;
2260
+ note_id: string;
2261
+ tags?: string[] | undefined;
2262
+ }, {
2263
+ action: "update";
2264
+ content?: string | undefined;
2265
+ note_id: string;
2266
+ tags?: string[] | undefined;
2267
+ }>, {
2268
+ action: "update";
2269
+ content?: string | undefined;
2270
+ note_id: string;
2271
+ tags?: string[] | undefined;
2272
+ }, {
2273
+ action: "update";
2274
+ content?: string | undefined;
2275
+ note_id: string;
2276
+ tags?: string[] | undefined;
2277
+ }>,
2278
+ z.ZodObject<{
2279
+ action: z.ZodEnum<[
2280
+ "delete",
2281
+ "restore",
2282
+ "archive",
2283
+ "unarchive",
2284
+ "star",
2285
+ "unstar"
2286
+ ]>;
2287
+ note_id: z.ZodEffects<z.ZodString, string, string>;
2288
+ }, "strict", z.ZodTypeAny, {
2289
+ action: "archive" | "delete" | "restore" | "star" | "unarchive" | "unstar";
2290
+ note_id: string;
2291
+ }, {
2292
+ action: "archive" | "delete" | "restore" | "star" | "unarchive" | "unstar";
2293
+ note_id: string;
2294
+ }>
2295
+ ]>;
2296
+ type RemoteManageNoteInput = z.infer<typeof manageInput>;
1839
2297
  /**
1840
2298
  * Capability module system (ADR-002).
1841
2299
  * Tracks opt-in WASM module states. No WASM loaded by default (CAP-001).
@@ -2227,6 +2685,72 @@ type WorkerResponse = {
2227
2685
  } | {
2228
2686
  type: 'READY';
2229
2687
  };
2688
+ type JsonObject = Record<string, unknown>;
2689
+ interface NativeEmbeddingConfig {
2690
+ id: string;
2691
+ name: string;
2692
+ description: null | string;
2693
+ model: string;
2694
+ dimension: number;
2695
+ chunk_size: number;
2696
+ chunk_overlap: number;
2697
+ hnsw_m: null | number;
2698
+ hnsw_ef_construction: null | number;
2699
+ ivfflat_lists: null | number;
2700
+ is_default: boolean | null;
2701
+ supports_mrl: boolean | null;
2702
+ matryoshka_dims: null | number[];
2703
+ default_truncate_dim: null | number;
2704
+ provider: null | string;
2705
+ provider_config: JsonObject | null;
2706
+ content_types: null | string[];
2707
+ strengths: null | string[];
2708
+ limitations: null | string[];
2709
+ recommended_for: null | string[];
2710
+ benchmark_scores: JsonObject | null;
2711
+ is_available: boolean | null;
2712
+ document_composition: JsonObject;
2713
+ created_at: string;
2714
+ updated_at: string;
2715
+ }
2716
+ interface NativeEmbeddingSet {
2717
+ id: string;
2718
+ name: string;
2719
+ slug: null | string;
2720
+ description: null | string;
2721
+ purpose: null | string;
2722
+ usage_hints: null | string;
2723
+ keywords: null | string[];
2724
+ set_type: 'filter' | 'full';
2725
+ mode: 'auto' | 'manual' | 'mixed' | null;
2726
+ criteria: JsonObject | null;
2727
+ embedding_config_id: null | string;
2728
+ truncate_dim: null | number;
2729
+ auto_embed_rules: JsonObject | null;
2730
+ index_status: string;
2731
+ index_type: null | string;
2732
+ last_indexed_at: null | string;
2733
+ document_count: null | number;
2734
+ embedding_count: null | number;
2735
+ embeddings_current: boolean | null;
2736
+ index_size_bytes: null | number;
2737
+ is_system: boolean | null;
2738
+ is_active: boolean | null;
2739
+ auto_refresh: boolean | null;
2740
+ refresh_interval: null | string;
2741
+ last_refresh_at: null | string;
2742
+ agent_metadata: JsonObject | null;
2743
+ created_at: string;
2744
+ updated_at: string;
2745
+ created_by: null | string;
2746
+ }
2747
+ interface NativeEmbeddingMember {
2748
+ embedding_set_id: string;
2749
+ note_id: string;
2750
+ membership_type: null | string;
2751
+ added_at: null | string;
2752
+ added_by: null | string;
2753
+ }
2230
2754
  /**
2231
2755
  * EmbeddingSetsRepository - named, filter, and virtual embedding set API.
2232
2756
  */
@@ -2357,7 +2881,7 @@ interface ResolvedEmbeddingRow {
2357
2881
  embedding_set_id: string;
2358
2882
  embedding_id: string;
2359
2883
  vector: string;
2360
- created_at: Date;
2884
+ created_at: Date | null;
2361
2885
  }
2362
2886
  interface ResolvedEmbeddingSet {
2363
2887
  selector: EmbeddingSetSelector;
@@ -2368,7 +2892,27 @@ interface ResolvedEmbeddingSet {
2368
2892
  freshness: EmbeddingSetFreshness;
2369
2893
  resolutionSource: 'live' | 'materialized';
2370
2894
  }
2371
- interface EmbeddingSetRow {
2895
+ interface EmbeddingConfigRow extends Omit<NativeEmbeddingConfig, 'created_at' | 'updated_at'> {
2896
+ created_at: Date;
2897
+ updated_at: Date;
2898
+ }
2899
+ interface EmbeddingMemberRow extends Omit<NativeEmbeddingMember, 'added_at'> {
2900
+ embedding_id: null | string;
2901
+ added_at: Date | null;
2902
+ }
2903
+ interface EmbeddingRow {
2904
+ id: string;
2905
+ note_id: null | string;
2906
+ embedding_set_id: null | string;
2907
+ chunk_index: number;
2908
+ text: string;
2909
+ vector: null | string;
2910
+ model: null | string;
2911
+ contract_fingerprint: null | string;
2912
+ shard_contract_fingerprint_present: boolean;
2913
+ created_at: Date | null;
2914
+ }
2915
+ interface EmbeddingSetRow extends Partial<Omit<NativeEmbeddingSet, 'created_at' | 'criteria' | 'keywords' | 'mode' | 'set_type' | 'truncate_dim' | 'updated_at'>> {
2372
2916
  id: string;
2373
2917
  name: string;
2374
2918
  purpose: null | string;
@@ -2388,6 +2932,7 @@ interface EmbeddingSetRow {
2388
2932
  interface EmbeddingSetCreateInput {
2389
2933
  id?: string;
2390
2934
  name: string;
2935
+ slug?: null | string;
2391
2936
  purpose?: null | string;
2392
2937
  model_name?: string;
2393
2938
  dimensions?: number;
@@ -2405,6 +2950,11 @@ interface EmbeddingSetEmbeddingInput {
2405
2950
  declare class EmbeddingSetsRepository {
2406
2951
  private db;
2407
2952
  constructor(db: QueryExecutor);
2953
+ getConfig(id: string): Promise<EmbeddingConfigRow>;
2954
+ listConfigs(): Promise<EmbeddingConfigRow[]>;
2955
+ listMembers(setId: string): Promise<EmbeddingMemberRow[]>;
2956
+ /** Includes metadata-only records and every chunk, unlike a resolved graph selector. */
2957
+ listEmbeddings(setId: string): Promise<EmbeddingRow[]>;
2408
2958
  create(input: EmbeddingSetCreateInput): Promise<EmbeddingSetRow>;
2409
2959
  createVirtualDefinition(input: VirtualEmbeddingSetDefinition): Promise<EmbeddingSetRow>;
2410
2960
  ensureDefault(): Promise<EmbeddingSetRow>;
@@ -2418,6 +2968,9 @@ declare class EmbeddingSetsRepository {
2418
2968
  resolveSelector(selector: EmbeddingSetSelector): Promise<ResolvedEmbeddingSet>;
2419
2969
  refreshMaterializedVirtualSet(setId: string): Promise<ResolvedEmbeddingSet>;
2420
2970
  markVirtualSetStale(setId: string, reason: string): Promise<void>;
2971
+ /** @internal The repository and mutation must use the same caller-owned transaction. */
2972
+ withMaterializationInvalidation<T>(mutate: () => Promise<T>): Promise<T>;
2973
+ private liveResolutionHash;
2421
2974
  private resolveDefinition;
2422
2975
  private resolvePhysicalSet;
2423
2976
  private resolvePhysicalRows;
@@ -2505,24 +3058,31 @@ interface NoteSummary {
2505
3058
  tags: string[];
2506
3059
  }
2507
3060
  interface NoteFull extends NoteSummary {
3061
+ /** Note metadata is independent of the current revision's AI metadata. */
3062
+ metadata?: unknown;
2508
3063
  archive_id: null | string;
2509
3064
  revision_mode: string;
2510
3065
  original: {
2511
3066
  content_hash: string;
2512
3067
  content: string;
2513
3068
  created_at: Date;
2514
- id: string;
3069
+ id: null | string;
3070
+ user_created_at?: null | string;
3071
+ user_last_edited_at?: null | string;
3072
+ version_number?: number;
2515
3073
  };
2516
3074
  current: {
2517
3075
  ai_metadata: null | unknown;
2518
3076
  content: string;
2519
3077
  generation_count: number;
2520
3078
  is_user_edited: boolean;
3079
+ last_revision_id?: null | string;
2521
3080
  model: null | string;
2522
3081
  updated_at: Date;
2523
3082
  };
2524
3083
  }
2525
3084
  interface NoteCreateInput {
3085
+ metadata?: unknown;
2526
3086
  content: string;
2527
3087
  title?: string;
2528
3088
  format?: string;
@@ -2539,6 +3099,7 @@ interface NoteCreateInput {
2539
3099
  id?: string;
2540
3100
  }
2541
3101
  interface NoteUpdateInput {
3102
+ metadata?: unknown;
2542
3103
  title?: string;
2543
3104
  content?: string;
2544
3105
  format?: string;
@@ -2624,6 +3185,23 @@ interface NoteRevision {
2624
3185
  ai_metadata: null | unknown;
2625
3186
  model: null | string;
2626
3187
  created_at: Date;
3188
+ parent_revision_id?: null | string;
3189
+ summary?: null | string;
3190
+ rationale?: null | string;
3191
+ created_at_utc?: null | string;
3192
+ ai_generated_at?: null | string;
3193
+ user_last_edited_at?: null | string;
3194
+ is_user_edited?: boolean;
3195
+ generation_count?: number;
3196
+ }
3197
+ interface OriginalContentRevision {
3198
+ id: string;
3199
+ note_id: string;
3200
+ version_number: number;
3201
+ content: string;
3202
+ hash: string;
3203
+ created_at_utc: string;
3204
+ created_by: string;
2627
3205
  }
2628
3206
  /**
2629
3207
  * NotesRepository — CRUD and lifecycle operations for the note entity.
@@ -2687,6 +3265,8 @@ declare class NotesRepository {
2687
3265
  * Get revision history for a note, ordered by revision_number descending.
2688
3266
  */
2689
3267
  getRevisions(noteId: string): Promise<NoteRevision[]>;
3268
+ /** User-authored original history is distinct from generated revision history. */
3269
+ getOriginalHistory(noteId: string): Promise<OriginalContentRevision[]>;
2690
3270
  }
2691
3271
  /**
2692
3272
  * SearchRepository - full-text search using DatabaseClient tsvector/tsquery,
@@ -2934,7 +3514,9 @@ declare class GraphRepository {
2934
3514
  resolved: ResolvedEmbeddingSet;
2935
3515
  }): Promise<SimilarityGraphResult['graphSource']>;
2936
3516
  markSimilarityGraphStale(graphSourceId: string, reason: string): Promise<void>;
2937
- loadGraphArtifact(graphSourceId: string, noteIds?: string[]): Promise<CommunityGraph>;
3517
+ getSourceRecord(graphSourceId: string): Promise<NativeGraphSource>;
3518
+ getEdgeRecords(graphSourceId: string): Promise<NativeGraphEdge[]>;
3519
+ loadGraphArtifact(graphSourceId: string, noteIds?: string[], communitySetId?: string): Promise<CommunityGraph>;
2938
3520
  private buildSimilarityGraphFromResolved;
2939
3521
  private computeSimilarityGraphCacheKey;
2940
3522
  private findGraphSource;
@@ -2990,6 +3572,9 @@ interface CommunityCreateInput {
2990
3572
  declare class CommunitiesRepository {
2991
3573
  private db;
2992
3574
  constructor(db: DatabaseClient);
3575
+ getCommunitySet(sourceId: string): Promise<NativeCommunitySet>;
3576
+ getCommunityRecords(sourceId: string): Promise<NativeCommunity[]>;
3577
+ getAssignmentRecords(sourceId: string): Promise<NativeCommunityAssignment[]>;
2993
3578
  previewDynamicCommunity(filters: CommunityFilterDefinition): Promise<CommunityAssignmentView[]>;
2994
3579
  saveCommunity(input: CommunityCreateInput): Promise<CommunitySourceDescriptor>;
2995
3580
  rerunDynamicCommunity(sourceId: string): Promise<CommunityAssignmentView[]>;
@@ -2998,6 +3583,61 @@ declare class CommunitiesRepository {
2998
3583
  listCommunitySummaries(sourceId: string): Promise<CommunitySummary[]>;
2999
3584
  private resolveFilterNoteIds;
3000
3585
  }
3586
+ interface NativeGraphSource {
3587
+ id: string;
3588
+ name: string;
3589
+ kind: 'imported' | 'link' | 'manual' | 'search' | 'similarity';
3590
+ source_table: 'embedding' | 'link' | 'manual' | null;
3591
+ embedding_set_id: null | string;
3592
+ virtual_set_id: null | string;
3593
+ model: null | string;
3594
+ dimension: null | number;
3595
+ truncate_dimension: null | number;
3596
+ metric: 'cosine' | 'inner_product' | 'l2' | null;
3597
+ algorithm: null | string;
3598
+ parameters: null | Record<string, unknown>;
3599
+ input_hash: string;
3600
+ freshness: Record<string, unknown>;
3601
+ created_at: string;
3602
+ }
3603
+ interface NativeGraphEdge {
3604
+ graph_source_id: string;
3605
+ from_note_id: string;
3606
+ to_note_id: string;
3607
+ weight: number;
3608
+ kind: 'link' | 'manual' | 'similarity';
3609
+ rank: null | number;
3610
+ metadata: null | Record<string, unknown>;
3611
+ }
3612
+ interface NativeCommunity {
3613
+ id: string;
3614
+ label: null | string;
3615
+ rank: null | number;
3616
+ size: null | number;
3617
+ confidence: null | number;
3618
+ representative_note_ids: null | string[];
3619
+ metadata: null | Record<string, unknown>;
3620
+ }
3621
+ interface NativeCommunitySet {
3622
+ id: string;
3623
+ graph_source_id: string;
3624
+ name: string;
3625
+ source_type: 'dynamic-snapshot' | 'imported' | 'precomputed' | 'user-authored';
3626
+ algorithm: null | string;
3627
+ parameters: null | Record<string, unknown>;
3628
+ input_hash: string;
3629
+ freshness: Record<string, unknown>;
3630
+ communities: NativeCommunity[];
3631
+ created_at: string;
3632
+ }
3633
+ interface NativeCommunityAssignment {
3634
+ community_set_id: string;
3635
+ community_id: string;
3636
+ note_id: string;
3637
+ confidence: null | number;
3638
+ source_type: NativeCommunitySet['source_type'];
3639
+ metadata: null | Record<string, unknown>;
3640
+ }
3001
3641
  /**
3002
3642
  * Shared SQL condition builder for note filtering.
3003
3643
  * Used by both SearchRepository and NotesRepository to prevent drift
@@ -3075,7 +3715,7 @@ interface EnqueueJobInput {
3075
3715
  requiredCapability?: null | string;
3076
3716
  }
3077
3717
  /** Enqueue a job into the job_queue table. Returns the new job ID. */
3078
- declare function enqueueJob(db: DatabaseClient, input: EnqueueJobInput): Promise<string>;
3718
+ declare function enqueueJob(db: QueryExecutor, input: EnqueueJobInput): Promise<string>;
3079
3719
  /** Enqueue the note creation pipeline: revision → title → embedding. */
3080
3720
  declare function enqueueNoteCreationJobs(db: DatabaseClient, noteId: string, hasTitle: boolean): Promise<void>;
3081
3721
  /**
@@ -3129,6 +3769,68 @@ declare function aiRevisionHandler(job: Job, db: DatabaseClient): Promise<unknow
3129
3769
  declare function conceptTaggingHandler(job: Job, db: DatabaseClient): Promise<unknown>;
3130
3770
  /** Linking: find semantically related notes using FTS + vector RRF */
3131
3771
  declare function linkingHandler(job: Job, db: DatabaseClient): Promise<unknown>;
3772
+ interface NativeAttachmentProjection {
3773
+ extracted_text: null | string;
3774
+ extraction_status: 'blocked' | 'deferred' | 'extracted' | 'failed' | 'pending';
3775
+ reason: 'extraction_pending' | 'extractor_failed' | 'large_binary' | 'no_extracted_text' | 'quarantined' | 'unsupported_mime' | null;
3776
+ attachment: {
3777
+ bytes: number;
3778
+ checksum: string;
3779
+ id: string;
3780
+ mime: string;
3781
+ path: string;
3782
+ };
3783
+ }
3784
+ interface NativeNote {
3785
+ id: string;
3786
+ title: null | string;
3787
+ original_content: string;
3788
+ revised_content: string;
3789
+ metadata: unknown;
3790
+ format: string;
3791
+ source: string;
3792
+ starred: boolean;
3793
+ archived: boolean;
3794
+ collection_id: null | string;
3795
+ created_at: string;
3796
+ updated_at: string;
3797
+ deleted_at?: null | string;
3798
+ tags: string[];
3799
+ attachments: NativeAttachmentProjection[];
3800
+ }
3801
+ interface NativeCollection {
3802
+ id: string;
3803
+ name: string;
3804
+ description: null | string;
3805
+ parent_id: null | string;
3806
+ created_at: string;
3807
+ note_count: number;
3808
+ }
3809
+ interface NativeTag {
3810
+ name: string;
3811
+ created_at: string;
3812
+ }
3813
+ interface NativeTemplate {
3814
+ id: string;
3815
+ name: string;
3816
+ description: null | string;
3817
+ content: string;
3818
+ format: string;
3819
+ default_tags: string[];
3820
+ collection_id: null | string;
3821
+ created_at: string;
3822
+ updated_at: string;
3823
+ }
3824
+ interface NativeLink {
3825
+ id: string;
3826
+ from_note_id: string;
3827
+ to_note_id: null | string;
3828
+ to_url: null | string;
3829
+ kind: string;
3830
+ score: number;
3831
+ created_at: string;
3832
+ metadata: unknown;
3833
+ }
3132
3834
  /**
3133
3835
  * TagsRepository — free-form tag management for notes.
3134
3836
  *
@@ -3140,6 +3842,8 @@ declare function linkingHandler(job: Job, db: DatabaseClient): Promise<unknown>;
3140
3842
  declare class TagsRepository {
3141
3843
  private db;
3142
3844
  constructor(db: DatabaseClient);
3845
+ /** Declared native tags, including records with no note membership. */
3846
+ listRecords(): Promise<NativeTag[]>;
3143
3847
  addTag(noteId: string, tag: string): Promise<void>;
3144
3848
  removeTag(noteId: string, tag: string): Promise<void>;
3145
3849
  getTagsForNote(noteId: string): Promise<string[]>;
@@ -3176,6 +3880,7 @@ interface CollectionCreateInput {
3176
3880
  declare class CollectionsRepository {
3177
3881
  private db;
3178
3882
  constructor(db: DatabaseClient);
3883
+ getRecord(id: string): Promise<NativeCollection | null>;
3179
3884
  create(input: CollectionCreateInput): Promise<CollectionRow>;
3180
3885
  get(id: string): Promise<CollectionRow>;
3181
3886
  list(): Promise<CollectionRow[]>;
@@ -3209,6 +3914,8 @@ interface LinkRow {
3209
3914
  declare class LinksRepository {
3210
3915
  private db;
3211
3916
  constructor(db: DatabaseClient);
3917
+ /** Rich full-v1-representable link, including URL targets and metadata. */
3918
+ getRecord(id: string): Promise<NativeLink | null>;
3212
3919
  create(sourceNoteId: string, targetNoteId: string, linkType?: string): Promise<LinkRow>;
3213
3920
  get(id: string): Promise<LinkRow>;
3214
3921
  listForNote(noteId: string): Promise<{
@@ -3218,6 +3925,146 @@ declare class LinksRepository {
3218
3925
  getBacklinks(noteId: string): Promise<string[]>;
3219
3926
  delete(id: string): Promise<void>;
3220
3927
  }
3928
+ interface TemplateCreateInput {
3929
+ name: string;
3930
+ content: string;
3931
+ description?: null | string;
3932
+ format?: string;
3933
+ default_tags?: string[];
3934
+ collection_id?: null | string;
3935
+ }
3936
+ declare class TemplatesRepository {
3937
+ private db;
3938
+ constructor(db: DatabaseClient);
3939
+ get(id: string): Promise<NativeTemplate>;
3940
+ list(): Promise<NativeTemplate[]>;
3941
+ create(input: TemplateCreateInput): Promise<NativeTemplate>;
3942
+ update(id: string, input: Partial<TemplateCreateInput>): Promise<NativeTemplate>;
3943
+ delete(id: string): Promise<void>;
3944
+ }
3945
+ interface SkosEmbedding {
3946
+ embedding: null | number[];
3947
+ embedding_model: null | string;
3948
+ embedded_at: null | string;
3949
+ }
3950
+ interface NativeSkosScheme extends SkosEmbedding {
3951
+ id: string;
3952
+ uri: null | string;
3953
+ notation: string;
3954
+ title: string;
3955
+ description: null | string;
3956
+ creator: null | string;
3957
+ publisher: null | string;
3958
+ rights: null | string;
3959
+ version: null | string;
3960
+ is_active: boolean;
3961
+ is_system: boolean;
3962
+ created_at: string;
3963
+ updated_at: string;
3964
+ issued_at: null | string;
3965
+ modified_at: null | string;
3966
+ }
3967
+ interface NativeSkosConcept extends SkosEmbedding {
3968
+ id: string;
3969
+ primary_scheme_id: string;
3970
+ uri: null | string;
3971
+ notation: null | string;
3972
+ facet_type: 'energy' | 'matter' | 'personality' | 'space' | 'time' | null;
3973
+ facet_source: null | string;
3974
+ facet_domain: null | string;
3975
+ facet_scope: null | string;
3976
+ status: 'approved' | 'candidate' | 'deprecated' | 'obsolete';
3977
+ promoted_at: null | string;
3978
+ deprecated_at: null | string;
3979
+ deprecation_reason: null | string;
3980
+ replaced_by_id: null | string;
3981
+ note_count: number;
3982
+ first_used_at: null | string;
3983
+ last_used_at: null | string;
3984
+ depth: number;
3985
+ broader_count: number;
3986
+ narrower_count: number;
3987
+ related_count: number;
3988
+ antipatterns: ('circular_hierarchy' | 'missing_labels' | 'orphan' | 'over_tagged' | 'polyhierarchy_excess' | 'too_broad' | 'too_deep' | 'under_used')[] | null;
3989
+ antipattern_checked_at: null | string;
3990
+ created_at: string;
3991
+ updated_at: string;
3992
+ }
3993
+ interface NativeSkosLabel {
3994
+ id: string;
3995
+ concept_id: string;
3996
+ label_type: 'alt_label' | 'hidden_label' | 'pref_label';
3997
+ value: string;
3998
+ language: string;
3999
+ created_at: string;
4000
+ }
4001
+ interface NativeSkosNote {
4002
+ id: string;
4003
+ concept_id: string;
4004
+ note_type: 'change_note' | 'definition' | 'editorial_note' | 'example' | 'history_note' | 'note' | 'scope_note';
4005
+ value: string;
4006
+ language: string;
4007
+ author: null | string;
4008
+ source: null | string;
4009
+ created_at: string;
4010
+ updated_at: string;
4011
+ }
4012
+ interface NativeSkosRelation {
4013
+ id: string;
4014
+ subject_id: string;
4015
+ object_id: string;
4016
+ relation_type: 'broader' | 'narrower' | 'related';
4017
+ inference_score: null | number;
4018
+ is_inferred: boolean;
4019
+ is_validated: boolean;
4020
+ created_at: string;
4021
+ created_by: null | string;
4022
+ }
4023
+ interface NativeSkosMapping {
4024
+ id: string;
4025
+ concept_id: string;
4026
+ target_uri: string;
4027
+ target_scheme_uri: null | string;
4028
+ target_label: null | string;
4029
+ relation_type: 'broad_match' | 'close_match' | 'exact_match' | 'narrow_match' | 'related_match';
4030
+ confidence: null | number;
4031
+ is_validated: boolean;
4032
+ created_at: string;
4033
+ validated_at: null | string;
4034
+ validated_by: null | string;
4035
+ }
4036
+ interface NativeSkosMembership {
4037
+ concept_id: string;
4038
+ scheme_id: string;
4039
+ is_top_concept: boolean;
4040
+ added_at: string;
4041
+ }
4042
+ interface NativeNoteSkosTag {
4043
+ note_id: string;
4044
+ concept_id: string;
4045
+ source: string;
4046
+ confidence: null | number;
4047
+ relevance_score: null | number;
4048
+ is_primary: boolean;
4049
+ created_at: string;
4050
+ created_by: null | string;
4051
+ }
4052
+ interface NativeSkosCollection {
4053
+ id: string;
4054
+ uri: null | string;
4055
+ pref_label: string;
4056
+ definition: null | string;
4057
+ is_ordered: boolean;
4058
+ scheme_id: null | string;
4059
+ created_at: string;
4060
+ updated_at: string;
4061
+ }
4062
+ interface NativeSkosCollectionMember {
4063
+ collection_id: string;
4064
+ concept_id: string;
4065
+ position: null | number;
4066
+ added_at: string;
4067
+ }
3221
4068
  /**
3222
4069
  * SkosRepository — SKOS taxonomy management (schemes, concepts, relations).
3223
4070
  *
@@ -3226,7 +4073,7 @@ declare class LinksRepository {
3226
4073
  * - Create, list, and soft-delete SKOS concepts within schemes
3227
4074
  * - Create and query broader/narrower/related concept relations
3228
4075
  */
3229
- interface SkosScheme {
4076
+ interface SkosScheme extends Partial<Omit<NativeSkosScheme, 'created_at' | 'embedded_at' | 'embedding' | 'issued_at' | 'modified_at' | 'updated_at'>> {
3230
4077
  id: string;
3231
4078
  title: string;
3232
4079
  description: null | string;
@@ -3234,7 +4081,7 @@ interface SkosScheme {
3234
4081
  updated_at: Date;
3235
4082
  deleted_at: Date | null;
3236
4083
  }
3237
- interface SkosConcept {
4084
+ interface SkosConcept extends Partial<Omit<NativeSkosConcept, 'antipattern_checked_at' | 'created_at' | 'deprecated_at' | 'embedded_at' | 'embedding' | 'first_used_at' | 'last_used_at' | 'primary_scheme_id' | 'promoted_at' | 'updated_at'>> {
3238
4085
  id: string;
3239
4086
  scheme_id: string;
3240
4087
  pref_label: string;
@@ -3244,14 +4091,14 @@ interface SkosConcept {
3244
4091
  updated_at: Date;
3245
4092
  deleted_at: Date | null;
3246
4093
  }
3247
- interface SkosRelation {
4094
+ interface SkosRelation extends Partial<Omit<NativeSkosRelation, 'created_at' | 'object_id' | 'relation_type' | 'subject_id'>> {
3248
4095
  id: string;
3249
4096
  source_concept_id: string;
3250
4097
  target_concept_id: string;
3251
4098
  relation_type: string;
3252
4099
  created_at: Date;
3253
4100
  }
3254
- interface NoteSkosTag {
4101
+ interface NoteSkosTag extends Partial<Omit<NativeNoteSkosTag, 'created_at'>> {
3255
4102
  id: string;
3256
4103
  note_id: string;
3257
4104
  concept_id: string;
@@ -3274,29 +4121,149 @@ declare class SkosRepository {
3274
4121
  tagNote(noteId: string, conceptId: string): Promise<NoteSkosTag>;
3275
4122
  untagNote(noteId: string, conceptId: string): Promise<void>;
3276
4123
  conceptsForNote(noteId: string): Promise<SkosConcept[]>;
4124
+ getSchemeRecord(id: string): Promise<NativeSkosScheme | null>;
4125
+ getConceptRecord(id: string): Promise<NativeSkosConcept | null>;
4126
+ getLabels(conceptId: string): Promise<NativeSkosLabel[]>;
4127
+ getNotes(conceptId: string): Promise<NativeSkosNote[]>;
4128
+ getMappings(conceptId: string): Promise<NativeSkosMapping[]>;
4129
+ getSchemeMemberships(conceptId: string): Promise<NativeSkosMembership[]>;
4130
+ getAssignments(noteId: string): Promise<NativeNoteSkosTag[]>;
4131
+ listCollections(schemeId?: string): Promise<NativeSkosCollection[]>;
4132
+ getCollectionMembers(collectionId: string): Promise<NativeSkosCollectionMember[]>;
3277
4133
  }
3278
4134
  interface ProvenanceEdge {
3279
4135
  id: string;
3280
4136
  entity_type: string;
3281
4137
  entity_id: string;
3282
4138
  activity: string;
3283
- agent: string;
4139
+ agent: null | string;
3284
4140
  started_at: Date;
3285
4141
  ended_at: Date | null;
3286
- attributes: null | Record<string, unknown>;
4142
+ attributes: unknown;
3287
4143
  }
3288
4144
  interface RecordProvenanceInput {
3289
4145
  activity: string;
3290
- agent: string;
4146
+ agent: null | string;
3291
4147
  startedAt?: Date | string;
3292
4148
  endedAt?: Date | null | string;
3293
- attributes?: null | Record<string, unknown>;
4149
+ attributes?: unknown;
3294
4150
  }
3295
4151
  declare class ProvenanceRepository {
3296
4152
  private db;
3297
4153
  constructor(db: DatabaseClient);
3298
4154
  recordProvenance(entityType: string, entityId: string, input: RecordProvenanceInput): Promise<ProvenanceEdge>;
3299
4155
  forEntity(entityType: string, entityId: string): Promise<ProvenanceEdge[]>;
4156
+ getActivity(id: string): Promise<NativeProvenanceActivity>;
4157
+ activitiesForNote(noteId: string): Promise<NativeProvenanceActivity[]>;
4158
+ derivationsForRevision(revisionId: string): Promise<NativeProvenanceEdge[]>;
4159
+ getNamedLocation(id: string): Promise<NativeNamedLocation>;
4160
+ getLocation(id: string): Promise<NativeProvenanceLocation>;
4161
+ getDevice(id: string): Promise<NativeProvenanceDevice>;
4162
+ getCapture(id: string): Promise<NativeProvenanceRecord>;
4163
+ captureForNote(noteId: string): Promise<NativeProvenanceRecord>;
4164
+ }
4165
+ interface NativeProvenanceActivity {
4166
+ id: string;
4167
+ note_id: string;
4168
+ revision_id: null | string;
4169
+ activity_type: string;
4170
+ model_name: null | string;
4171
+ started_at: string;
4172
+ ended_at: null | string;
4173
+ metadata: unknown;
4174
+ }
4175
+ interface NativeProvenanceEdge {
4176
+ id: string;
4177
+ revision_id: null | string;
4178
+ source_note_id: null | string;
4179
+ source_url: null | string;
4180
+ relation: string;
4181
+ created_at_utc: string;
4182
+ }
4183
+ interface NativeNamedLocation {
4184
+ id: string;
4185
+ name: string;
4186
+ slug: string;
4187
+ display_name: null | string;
4188
+ location_type: 'city' | 'country' | 'home' | 'poi' | 'region' | 'work';
4189
+ point_ewkb_hex: null | string;
4190
+ boundary_ewkb_hex: null | string;
4191
+ radius_m: null | number;
4192
+ address_line: null | string;
4193
+ locality: null | string;
4194
+ admin_area: null | string;
4195
+ country: null | string;
4196
+ country_code: null | string;
4197
+ postal_code: null | string;
4198
+ timezone: null | string;
4199
+ altitude_m: null | number;
4200
+ owner_id: null | string;
4201
+ is_private: boolean | null;
4202
+ metadata: unknown;
4203
+ created_at: string;
4204
+ updated_at: string;
4205
+ }
4206
+ interface NativeProvenanceLocation {
4207
+ id: string;
4208
+ point_ewkb_hex: string;
4209
+ horizontal_accuracy_m: null | number;
4210
+ altitude_m: null | number;
4211
+ vertical_accuracy_m: null | number;
4212
+ heading_degrees: null | number;
4213
+ speed_mps: null | number;
4214
+ named_location_id: null | string;
4215
+ source: 'ai_estimated' | 'device_api' | 'geocoded' | 'gps_exif' | 'unknown' | 'user_manual';
4216
+ confidence: 'high' | 'low' | 'medium' | 'unknown';
4217
+ created_at: string;
4218
+ }
4219
+ interface NativeProvenanceDevice {
4220
+ id: string;
4221
+ device_make: null | string;
4222
+ device_model: null | string;
4223
+ device_os: null | string;
4224
+ device_os_version: null | string;
4225
+ software: null | string;
4226
+ software_version: null | string;
4227
+ has_gps: boolean | null;
4228
+ has_accelerometer: boolean | null;
4229
+ sensor_metadata: unknown;
4230
+ owner_id: null | string;
4231
+ device_name: null | string;
4232
+ created_at: string;
4233
+ }
4234
+ interface NativeTimestampRange {
4235
+ empty: boolean;
4236
+ lower: null | string;
4237
+ lower_inclusive: boolean;
4238
+ lower_infinite: boolean;
4239
+ upper: null | string;
4240
+ upper_inclusive: boolean;
4241
+ upper_infinite: boolean;
4242
+ }
4243
+ interface NativeProvenanceRecord {
4244
+ id: string;
4245
+ attachment_id: null | string;
4246
+ note_id: null | string;
4247
+ capture_time: NativeTimestampRange | null;
4248
+ capture_timezone: null | string;
4249
+ capture_duration_seconds: null | number;
4250
+ time_source: 'ai_estimated' | 'device_clock' | 'exif' | 'file_metadata' | 'file_mtime' | 'gps' | 'manual' | 'network' | 'user_manual' | null;
4251
+ time_confidence: 'approximate' | 'estimated' | 'exact' | 'high' | 'low' | 'medium' | 'unknown' | null;
4252
+ location_id: null | string;
4253
+ device_id: null | string;
4254
+ activity_id: null | string;
4255
+ event_type: 'accessed' | 'audio' | 'created' | 'modified' | 'photo' | 'recording' | 'scan' | 'screenshot' | 'shared' | 'unknown' | 'video' | null;
4256
+ event_title: null | string;
4257
+ event_description: null | string;
4258
+ raw_metadata: unknown;
4259
+ ai_context: unknown;
4260
+ ai_processed_at: null | string;
4261
+ ai_model: null | string;
4262
+ user_corrected: boolean | null;
4263
+ original_capture_time: NativeTimestampRange | null;
4264
+ original_location_id: null | string;
4265
+ correction_note: null | string;
4266
+ created_at: string;
3300
4267
  }
3301
4268
  /**
3302
4269
  * captureKnowledge — tool function for creating notes.
@@ -4923,6 +5890,12 @@ declare function exportShard(db: DatabaseClient, options?: ExportOptions): Promi
4923
5890
  * @returns Import result with counts, warnings, and errors
4924
5891
  */
4925
5892
  declare function importShard(db: DatabaseClient, data: ArrayBuffer | Uint8Array, options?: ImportOptions): Promise<ImportResult>;
5893
+ /** Archival storage has no native row batching or native import progress phases. */
5894
+ type FullV1SnapshotImportOptions = Pick<ImportOptions, 'blobStore' | 'conflictStrategy' | 'trustStore' | 'verifySignature'>;
5895
+ /** Persist a validated archival snapshot, not native repository state. */
5896
+ declare function importFullV1Snapshot(db: DatabaseClient, data: ArrayBuffer | Uint8Array, options?: FullV1SnapshotImportOptions): Promise<ImportResult>;
5897
+ /** Re-emit the stored archival state; intentionally excludes native repository changes. */
5898
+ declare function exportFullV1Snapshot(db: DatabaseClient, blobStore: NonNullable<ImportOptions['blobStore']>): Promise<ShardExportResult>;
4926
5899
  interface ShardSchemaValidationResult {
4927
5900
  valid: boolean;
4928
5901
  errors: string[];
@@ -5692,5 +6665,5 @@ declare function purgeRecordStoreGraph(store: RecordStore, selector: PurgeSelect
5692
6665
  * @created 2026-07-17
5693
6666
  * @agent Codex
5694
6667
  */
5695
- declare const VERSION = "2026.9.3";
5696
- export { type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRecord, type AttachmentBlobRow, type AttachmentProjectionResult, type AttachmentRecord, type AttachmentRow, AttachmentsRepository, type BackendCandidate, type BackendCapabilities, type BackendConcept, type BackendLink, type BackendListOptions, type BackendNote, type BackendNoteFull, type BackendProvenanceEdge, type BackendRequest, type BackendSearchHit, type BackendSearchQueryOptions, type BackendSearchResult, type BackendSelection, type BackendSemanticTier, type BackendStartupCost, BlobGcOptions, BlobGcResult, BlobReconcileOptions, BlobReconcileResult, BlobStore, type BridgeCapability, BridgeInferenceProvider, type BridgeProviderInfo, type BrowserNoteExport, CORE_V1_COMPONENTS, CURRENT_MIGRATION_HEAD, type CanonicalAttachInput, CanonicalAttachmentsRepository, type CanonicalNoteCreateInput, type CanonicalNoteUpdateInput, type CanonicalNoteView, CanonicalNotesRepository, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionNoteRecord, type CollectionRecord, type CollectionRow, CollectionsRepository, CommunitiesRepository, type CommunityAssignmentView, type CommunityCreateInput, type CommunityFilterDefinition, type CommunityGraph, type CommunityOptions, type CommunitySourceDescriptor, type CommunitySourceType, type CommunitySummary, type CompletionRequest, type CompletionResponse, type ConditionResult, type ConfigureInferenceRuntimeOptions, type ConfiguredInferenceProvider, type ConfiguredInferenceRuntime, type CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreatePGliteOptions, type CreateRecordStoreOptions, type CspDirectiveName, type CspDirectives, type CspViolationReport, DATASET_EXECUTION_CAPABILITY_IDS, DATASET_EXECUTION_CONTRACT, DATASET_EXECUTION_SCHEMA_VERSION, DATASET_INGEST_CONTRACT, DATASET_INGEST_SCHEMA_VERSION, DATASET_LINEAGE_CONTRACT, DATASET_LINEAGE_SCHEMA_VERSION, DATASET_MATERIALIZATION_CONTRACT, DATASET_MATERIALIZATION_KINDS, DATASET_MATERIALIZATION_SCHEMA_VERSION, DB_SNAPSHOT_SCHEMA_VERSION, DEFAULT_LARGE_DOCUMENT_CHARS, DEFAULT_LARGE_DOCUMENT_CHUNKS, type DataBackend, type DatabaseClient, type DatasetBenchmarkEvidence, type DatasetCapabilityDeclaration, type DatasetCapabilityDegradation, type DatasetCapabilityDiagnostic, type DatasetCapabilityDiagnosticCode, type DatasetCapabilityEvidence, type DatasetCapabilityLimits, type DatasetCapabilityNegotiationRequest, type DatasetCapabilityNegotiationResult, type DatasetCapabilityRequirement, type DatasetCapabilityStatus, type DatasetCheckpoint, type DatasetDestinationScope, type DatasetDeterminismClass, type DatasetDigest, type DatasetExecutionCapabilityDescriptor, type DatasetExecutionCapabilityId, type DatasetExecutionDataClass, type DatasetExecutionMaturity, type DatasetExecutionPlane, type DatasetImplementationIdentity, type DatasetIncrementalParityResult, DatasetIngestError, type DatasetIngestErrorCode, DatasetIngestExecutor, type DatasetIngestHooks, type DatasetIngestMode, type DatasetIngestStore, type DatasetIngestTransaction, DatasetLineageLedger, type DatasetLineageLedgerOptions, type DatasetMaterializationAdapter, type DatasetMaterializationArtifact, DatasetMaterializationError, type DatasetMaterializationKind, type DatasetMaterializationOperation, type DatasetMaterializationProfile, type DatasetMaterializationReceipt, type DatasetMaterializationRequest, type DatasetMeasuredResources, type DatasetMutation, type DatasetMutationBatch, type DatasetOptionalCapabilityRequirement, type DatasetPrivacyBoundary, type DatasetPrivacyDecision, type DatasetProcessingPlan, type DatasetProfileNegotiationRequest, type DatasetProfileNegotiationResult, type DatasetProfileStatus, type DatasetRecordAuthorizer, type DatasetRecordRejection, type DatasetRetrievalRequest, type DatasetRetrievalResponse, type DatasetRunAttempt, type DatasetRunReceipt, type DatasetRunState, type DatasetRunStatus, type DatasetSourceRecord, type DatasetSourceSnapshot, type DatasetStoredRecord, type DatasetTombstoneMutation, type DatasetUpsertMutation, type DatasetVerificationState, type DbSnapshot, type DbSnapshotCompat, type DbSnapshotCompression, type DbSnapshotExpectations, type DbSnapshotMeta, type DbSnapshotSource, DbSnapshotVersionError, type DeletionReceipt, type DeletionReceiptRecord, type DiscoveredProvider, type DiscoveryOptions, type DumpDbSnapshotOptions, type DumpableDb, EMBED_REQUEST_KIND, EMBED_RESPONSE_KIND, type EmbedFunction, type EmbedFunctionOptions, type EmbedRequest, type EmbedRequestMessage, type EmbedResponse, type EmbedResponseMessage, type EmbedTransportPort, type EmbedWorkerOptions, type EmbeddingCompatibilityPolicy, type EmbeddingSetCreateInput, type EmbeddingSetCriteria, type EmbeddingSetDescriptor, type EmbeddingSetEmbeddingInput, type EmbeddingSetFreshness, type EmbeddingSetKind, type EmbeddingSetMode, type EmbeddingSetRow, type EmbeddingSetSelector, EmbeddingSetsRepository, type EmbeddingTaskSelectionOptions, type EnqueueJobInput, type ErrorCategory, type EventMap, type EvidenceLocator, type ExecuteDatasetBatchOptions, ExportOptions, FORTEMI_BROWSER_LOCAL_DATASET_EXECUTION_DESCRIPTOR, FORTEMI_COMPATIBILITY_PATH, FORTEMI_COMPATIBILITY_STATES, FORTEMI_PORTABLE_SHARD_DATASET_EXECUTION_DESCRIPTOR, FORTEMI_REQUIRED_COMPATIBILITY_CAPABILITIES, FORTEMI_SERVER_COMPATIBILITY_REVISION, FORTEMI_STATIC_CACHE_DATASET_EXECUTION_DESCRIPTOR, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FetchFortemiCompatibilityOptions, type FortemiBridge, type FortemiBridgeCapabilities, type FortemiBridgeHost, type FortemiCompatibilityCapability, type FortemiCompatibilityResponse, type FortemiCompatibilityState, type FortemiCompatibilityValidationResult, type FortemiConfig, type FortemiCore, type FortemiInferenceRouter, type FortemiRequiredCompatibilityCapability, type FortemiSecretStore, type FortemiToolDefinition, FortemiToolManifest, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type GraphNode, GraphRepository, type IDisposable, IdbRecordStore, ImportOptions, ImportResult, type InferenceCapabilities, type InferenceProvider, type InferenceRuntimeConfig, type InferenceTask, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, type JournalEntry, LINEAGE_ENTITY_KINDS, LINEAGE_RELATIONSHIP_KINDS, LOCAL_ENDPOINTS, type LegacyInferenceProviderConfig, type LegacyMigrationReport, LifecyclePurgeRepository, type LineageActivity, type LineageAgent, type LineageAssertion, type LineageAssertionKind, type LineageAuthorizationPolicy, type LineageCorrection, type LineageEntity, type LineageEntityKind, type LineageEvidence, type LineageEvidenceReference, type LineageLedgerArchive, type LineageLossItem, type LineageLossReceipt, type LineagePrivacy, type LineageProjection, type LineageProjectionCapabilities, type LineageRelationshipKind, type LineageTraversalEdge, type LineageTraversalNode, type LineageTraversalRequest, type LineageTraversalResult, type LineageValidationCode, LineageValidationError, type LinkRecord0, type LinkRow, LinksRepository, type ListNotesInput, ListNotesInputSchema, type LlmCapabilityOptions, type LlmCompleteFn, type LlmCompleteOptions, type LoadedPluginScript, type LocalEndpoint, type ManageArchiveInput, ManageArchiveInputSchema, type ManageArchiveResult, type ManageAttachmentsInput, ManageAttachmentsInputSchema, type ManageAttachmentsResult, type ManageCapabilitiesInput, ManageCapabilitiesInputSchema, type ManageCapabilitiesResult, type ManageCollectionsInput, ManageCollectionsInputSchema, type ManageCollectionsResult, type ManageLinksInput, ManageLinksInputSchema, type ManageLinksResult, type ManageNoteInput, ManageNoteInputSchema, type ManageNoteResult, type ManageTagsInput, ManageTagsInputSchema, type ManageTagsResult, MemoryDatasetIngestStore, MemoryRecordStore, type MetadataPredicate, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteOriginalRecord, type NoteProjectionResult, type NoteRecord0, type NoteRevisedCurrentRecord, type NoteRevision, type NoteRevisionRecord, type NoteSkosTag, type NoteSummary, type NoteTagRecord, type NoteUpdateInput, NotesRepository, OpenAICompatibleProvider, type OpenAIProviderConfig, type OpenShardOptions, type PGliteBackendOptions, PGliteStorageBackend, PGliteStorageBackendFactory, PGliteWorkerClient, PGliteWorkerStorageBackend, PGliteWorkerStorageBackendFactory, type PGliteWorkerStorageBackendFactoryOptions, type PaginatedResult, type PersistenceMode, type PluginCspOptions, type PluginScriptDescriptor, type PluginScriptPolicy, type PrefetchOptions, type PrefetchResult, type PresenceTrackedRecord, type ProbeResult, type ProbeStatus, type ProvenanceEdge, ProvenanceRepository, type ProviderCapabilities, type ProviderCostTier, type ProviderDataClass, type ProviderPrivacyTier, type ProviderProfile, ProviderRegistry, type ProviderRoutePolicy, type ProviderRouteProbeResult, type ProviderRouteRequirements, type ProviderRouteSelection, type ProviderRouteValidation, type ProviderRouteValidationIssue, type ProviderRouteValidationSeverity, type ProviderTier, type PurgeCounts, type PurgePreview, type PurgeSelector, type QueryExecutor, type QueryResult, RECORD_COLLECTIONS, RECORD_SCHEMA_VERSION, RECORD_STORE_CAPABILITIES, REGISTERED_METADATA_PATHS, type RecommendedTier, type RecordBackendManageNoteResult, type RecordBackendOptions, type RecordCollectionName, type RecordCollections, type RecordListOptions, type RecordMutation, type RecordProjectionResult, type RecordProvenanceInput, type RecordStore, type RecordStoreCapabilities, type RegisteredMetadataPath, type RemoteBackendConfig, type RemoteBackendPaths, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RestoreDbSnapshotOptions, type RouteHandler, SOURCE_UPSERT_CONTRACT_VERSION, SOURCE_UPSERT_MAX_ITEMS, SUPPORTED_PGLITE_VERSION, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, ShardBackend, type ShardBackendOptions, ShardCapabilityReport, ShardCollection, ShardComponent, type ShardComponentStore, ShardEmbedding, ShardEmbeddingConfig, ShardEmbeddingSet, ShardEmbeddingSetMember, ShardExportResult, ShardLink, type ShardListOptions, ShardLossEntry, ShardManifest, ShardNote, type ShardNoteFull, ShardNoteSkosTag, ShardOperation, ShardProfileRegistryEntry, ShardProvenanceEdge, type ShardReader, type ShardReaderNote, type ShardReaderSource, type ShardSchemaValidationResult, type ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, ShardSkosConcept, ShardSkosRelation, ShardSkosScheme, ShardTag, ShardTemplate, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type SkosConcept, type SkosRelation, SkosRepository, type SkosScheme, type SourceIdentityInput, type SourceIdentityRecord, type SourceImportBatchRecord, type SourceImportRunRecord, type SourceUpsertBatchOutcome, type SourceUpsertBatchResult, type SourceUpsertItem, type SourceUpsertItemResult, type SourceUpsertOptions, type SourceUpsertOutcome, type SourceUpsertPolicy, type SourceUpsertReasonCode, SourceUpsertRepository, type SourceUpsertRequest, type SourceUpsertRequestItem, type SourceUpsertResponse, type SourceUpsertScope, type StaticSemanticProvider, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, TagsRepository, TransactionProxy, TypedEventBus, VERSION, type VectorEntry, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, allMigrations, appendPluginScript, assertShardComponentRecord, buildMetadataPredicateConditions, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, clearPrefetchedShard, collectionFromShard, collectionToShard, compareDatasetIncrementalParity, computeBlobHash, computeHash, computeLineageDigest, computeSri, conceptTaggingHandler, configureInferenceRuntime, cosineSimilarity, createBridgeInferenceProviders, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLegacyProvider, createLocalProviderProfile, createPGliteBackend, createPGliteInstance, createRecordBackend, createRecordStore, createRemoteBackend, createRoutes, createShardBackend, createShardCapabilityReport, createWorkerEmbedFunction, datasetDestinationScopeKey, defaultStorageBackendFactory, defineInferenceProvider, defineInferenceRuntime, defineLegacyInferenceProvider, defineOpenAICompatibleProvider, deriveDatasetIngestIdempotencyKey, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, digestDatasetMaterializationValue, discoverLocalProviders, dropAttachmentProjection, dropNoteProjection, dumpDbSnapshot, embeddingConfigToShard, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, executeDatasetMaterialization, executeDatasetRetrieval, exportShard, exportShardFromRecords, exportShardFromRecordsWithReport, exportShardWithReport, fetchAndValidateFortemiCompatibility, fetchPluginScript, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getConfiguredInferenceProviderId, getEmbedFunction, getEmbeddingTaskSelectionOptions, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getKnowledgeShardContractReceipt, getKnowledgeShardProfileRegistry, getKnowledgeShardSchema, getLlmFunction, getNote, getPrefetchedSha256, getProviderRouteRequirementIssue, handleEmbedRequests, hasFortemiSecureSecrets, importShard, importShardToRecords, inferInferenceTaskCapability, inferLocalEmbeddingDimensions, isPluginScriptAllowed, isShardPrefetched, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, mergeInferenceRuntimeConfigs, migrateLegacyBlobStore, negotiateDatasetExecutionCapabilities, negotiateDatasetMaterializationProfile, noteFromShard, noteSkosTagToShard, noteToShard, openShard, packTarGz, parseCspReport, prefetchShard, previewRecordStorePurge, profileSupportError, projectAttachments, projectNotes, projectRecords, provenanceEdgeToShard, providerSatisfiesRouteRequirements, purgeRecordStoreGraph, registerLlmCapability, registerSemanticCapability, registerSemanticCapabilityWorker, registerServiceWorker, restoreDbSnapshot, searchTool, selectBackend, selectEmbeddingTask, selectLlmModel, setEmbedFunction, setEmbeddingTaskSelectionOptions, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsToShard, templateToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, upsertRecordStoreRequest, upsertRecordStoreSources, urlLinkToShard, validateChecksums, validateCoreV1ShardArchive, validateDatasetBenchmarkEvidence, validateDatasetExecutionDescriptor, validateFortemiCompatibilityResponse, validateFullV1ShardArchive, validateProviderRoute, validateRecordV1ShardArchive, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifySri };
6668
+ declare const VERSION = "2026.9.5";
6669
+ export { type ArchiveInfo, ArchiveManager, type AttachInput, type AttachmentBlobRecord, type AttachmentBlobRow, type AttachmentProjectionResult, type AttachmentRecord, type AttachmentRow, AttachmentsRepository, type BackendCandidate, type BackendCapabilities, type BackendConcept, type BackendLink, type BackendListOptions, type BackendNote, type BackendNoteFull, type BackendProvenanceEdge, type BackendRequest, type BackendSearchHit, type BackendSearchQueryOptions, type BackendSearchResult, type BackendSelection, type BackendSemanticTier, type BackendStartupCost, BlobGcOptions, BlobGcResult, BlobReconcileOptions, BlobReconcileResult, BlobStore, type BridgeCapability, BridgeInferenceProvider, type BridgeProviderInfo, type BrowserNoteExport, CORE_V1_COMPONENTS, CURRENT_MIGRATION_HEAD, type CanonicalAttachInput, CanonicalAttachmentsRepository, type CanonicalNoteCreateInput, type CanonicalNoteUpdateInput, type CanonicalNoteView, CanonicalNotesRepository, type CapabilityInfo, CapabilityManager, type CapabilityName, type CapabilityState, type CaptureKnowledgeInput, CaptureKnowledgeInputSchema, type CaptureKnowledgeResult, type CollectionCreateInput, type CollectionNoteRecord, type NativeCollection as CollectionRecord, type CollectionRow, CollectionsRepository, CommunitiesRepository, type NativeCommunityAssignment as CommunityAssignmentRecord, type CommunityAssignmentView, type CommunityCreateInput, type CommunityFilterDefinition, type CommunityGraph, type CommunityOptions, type NativeCommunity as CommunityRecord, type NativeCommunitySet as CommunitySetRecord, type CommunitySourceDescriptor, type CommunitySourceType, type CommunitySummary, type CompletionRequest, type CompletionResponse, type ConditionResult, type ConfigureInferenceRuntimeOptions, type ConfiguredInferenceProvider, type ConfiguredInferenceRuntime, type CooldownConfig, type CooldownEvent, type CosineSemanticProviderOptions, type CreatePGliteOptions, type CreateRecordStoreOptions, type CspDirectiveName, type CspDirectives, type CspViolationReport, DATASET_EXECUTION_CAPABILITY_IDS, DATASET_EXECUTION_CONTRACT, DATASET_EXECUTION_SCHEMA_VERSION, DATASET_INGEST_CONTRACT, DATASET_INGEST_SCHEMA_VERSION, DATASET_LINEAGE_CONTRACT, DATASET_LINEAGE_SCHEMA_VERSION, DATASET_MATERIALIZATION_CONTRACT, DATASET_MATERIALIZATION_KINDS, DATASET_MATERIALIZATION_SCHEMA_VERSION, DB_SNAPSHOT_SCHEMA_VERSION, DEFAULT_LARGE_DOCUMENT_CHARS, DEFAULT_LARGE_DOCUMENT_CHUNKS, type DataBackend, type DatabaseClient, type DatasetBenchmarkEvidence, type DatasetCapabilityDeclaration, type DatasetCapabilityDegradation, type DatasetCapabilityDiagnostic, type DatasetCapabilityDiagnosticCode, type DatasetCapabilityEvidence, type DatasetCapabilityLimits, type DatasetCapabilityNegotiationRequest, type DatasetCapabilityNegotiationResult, type DatasetCapabilityRequirement, type DatasetCapabilityStatus, type DatasetCapabilityWireResult, type DatasetCheckpoint, type DatasetDestinationScope, type DatasetDeterminismClass, type DatasetDigest, type DatasetExecutionCapabilityDescriptor, type DatasetExecutionCapabilityId, type DatasetExecutionDataClass, type DatasetExecutionMaturity, type DatasetExecutionPlane, type DatasetImplementationIdentity, type DatasetIncrementalParityResult, DatasetIngestError, type DatasetIngestErrorCode, DatasetIngestExecutor, type DatasetIngestHooks, type DatasetIngestMode, type DatasetIngestStore, type DatasetIngestTransaction, DatasetLineageLedger, type DatasetLineageLedgerOptions, type DatasetMaterializationAdapter, type DatasetMaterializationArtifact, DatasetMaterializationError, type DatasetMaterializationKind, type DatasetMaterializationOperation, type DatasetMaterializationProfile, type DatasetMaterializationReceipt, type DatasetMaterializationRequest, type DatasetMeasuredResources, type DatasetMutation, type DatasetMutationBatch, type DatasetOptionalCapabilityRequirement, type DatasetPrivacyBoundary, type DatasetPrivacyDecision, type DatasetProcessingPlan, type DatasetProfileNegotiationRequest, type DatasetProfileNegotiationResult, type DatasetProfileStatus, type DatasetRecordAuthorizer, type DatasetRecordRejection, type DatasetRetrievalRequest, type DatasetRetrievalResponse, type DatasetRunAttempt, type DatasetRunReceipt, type DatasetRunState, type DatasetRunStatus, type DatasetSourceRecord, type DatasetSourceSnapshot, type DatasetStoredRecord, type DatasetTombstoneMutation, type DatasetUpsertMutation, type DatasetVerificationState, type DbSnapshot, type DbSnapshotCompat, type DbSnapshotCompression, type DbSnapshotExpectations, type DbSnapshotMeta, type DbSnapshotSource, DbSnapshotVersionError, type DeletionReceipt, type DeletionReceiptRecord, type DiscoveredProvider, type DiscoveryOptions, type DumpDbSnapshotOptions, type DumpableDb, EMBED_REQUEST_KIND, EMBED_RESPONSE_KIND, type EmbedFunction, type EmbedFunctionOptions, type EmbedRequest, type EmbedRequestMessage, type EmbedResponse, type EmbedResponseMessage, type EmbedTransportPort, type EmbedWorkerOptions, type EmbeddingCompatibilityPolicy, type EmbeddingConfigRow, type EmbeddingMemberRow, type EmbeddingRow, type EmbeddingSetCreateInput, type EmbeddingSetCriteria, type EmbeddingSetDescriptor, type EmbeddingSetEmbeddingInput, type EmbeddingSetFreshness, type EmbeddingSetKind, type EmbeddingSetMode, type EmbeddingSetRow, type EmbeddingSetSelector, EmbeddingSetsRepository, type EmbeddingTaskSelectionOptions, type EnqueueJobInput, type ErrorCategory, type EventMap, type EvidenceLocator, type ExecuteDatasetBatchOptions, ExportOptions, FORTEMI_BROWSER_LOCAL_DATASET_EXECUTION_DESCRIPTOR, FORTEMI_COMPATIBILITY_PATH, FORTEMI_COMPATIBILITY_STATES, FORTEMI_PORTABLE_SHARD_DATASET_EXECUTION_DESCRIPTOR, FORTEMI_REQUIRED_COMPATIBILITY_CAPABILITIES, FORTEMI_SERVER_COMPATIBILITY_REVISION, FORTEMI_STATIC_CACHE_DATASET_EXECUTION_DESCRIPTOR, type FallbackEvent, FallbackRouter, type FallbackRouterConfig, type FetchFortemiCompatibilityOptions, type FortemiBridge, type FortemiBridgeCapabilities, type FortemiBridgeHost, type FortemiCompatibilityCapability, type FortemiCompatibilityResponse, type FortemiCompatibilityState, type FortemiCompatibilityValidationResult, type FortemiConfig, type FortemiCore, type FortemiInferenceRouter, type FortemiRequiredCompatibilityCapability, type FortemiSecretStore, type FortemiToolDefinition, FortemiToolManifest, type FullV1SnapshotImportOptions, type GetNoteInput, GetNoteInputSchema, type GpuCapabilities, type GraphCommunity, type GraphEdge, type NativeGraphEdge as GraphEdgeRecord, type GraphNode, GraphRepository, type NativeGraphSource as GraphSourceRecord, type IDisposable, IdbRecordStore, ImportOptions, ImportResult, type InferenceCapabilities, type InferenceProvider, type InferenceRuntimeConfig, type InferenceTask, JOB_CAPABILITIES, JOB_PRIORITIES, type JobQueueOptions, JobQueueWorker, type JobStatus, type JobType, type JournalEntry, LINEAGE_ENTITY_KINDS, LINEAGE_RELATIONSHIP_KINDS, LOCAL_ENDPOINTS, type LegacyInferenceProviderConfig, type LegacyMigrationReport, LifecyclePurgeRepository, type LineageActivity, type LineageAgent, type LineageAssertion, type LineageAssertionKind, type LineageAuthorizationPolicy, type LineageCorrection, type LineageEntity, type LineageEntityKind, type LineageEvidence, type LineageEvidenceReference, type LineageLedgerArchive, type LineageLossItem, type LineageLossReceipt, type LineagePrivacy, type LineageProjection, type LineageProjectionCapabilities, type LineageRelationshipKind, type LineageTraversalEdge, type LineageTraversalNode, type LineageTraversalRequest, type LineageTraversalResult, type LineageValidationCode, LineageValidationError, type NativeLink as LinkRecord, type LinkRecord0, type LinkRow, LinksRepository, type ListNotesInput, ListNotesInputSchema, type LlmCapabilityOptions, type LlmCompleteFn, type LlmCompleteOptions, type LoadedPluginScript, type LocalEndpoint, type ManageArchiveInput, ManageArchiveInputSchema, type ManageArchiveResult, type ManageAttachmentsInput, ManageAttachmentsInputSchema, type ManageAttachmentsResult, type ManageCapabilitiesInput, ManageCapabilitiesInputSchema, type ManageCapabilitiesResult, type ManageCollectionsInput, ManageCollectionsInputSchema, type ManageCollectionsResult, type ManageLinksInput, ManageLinksInputSchema, type ManageLinksResult, type ManageNoteInput, ManageNoteInputSchema, type ManageNoteResult, type ManageTagsInput, ManageTagsInputSchema, type ManageTagsResult, MemoryDatasetIngestStore, MemoryRecordStore, type MetadataPredicate, type Migration, MigrationRunner, type ModelCategory, type ModelFitResult, type ModelInfo, type NativeNamedLocation as NamedLocation, type NativeAttachmentProjection as NativeAttachmentRecord, type NativeNote as NativeNoteRecord, type NoteCreateInput, type NoteFull, type NoteListOptions, type NoteOriginalRecord, type NoteProjectionResult, type NoteRecord0, type NoteRevisedCurrentRecord, type NoteRevision, type NoteRevisionRecord, type NativeNoteSkosTag as NoteSkosAssignment, type NoteSkosTag, type NoteSummary, type NoteTagRecord, type NoteUpdateInput, NotesRepository, OpenAICompatibleProvider, type OpenAIProviderConfig, type OpenShardOptions, type OriginalContentRevision, type PGliteBackendOptions, PGliteStorageBackend, PGliteStorageBackendFactory, PGliteWorkerClient, PGliteWorkerStorageBackend, PGliteWorkerStorageBackendFactory, type PGliteWorkerStorageBackendFactoryOptions, type PaginatedResult, type PersistenceMode, type PluginCspOptions, type PluginScriptDescriptor, type PluginScriptPolicy, type PrefetchOptions, type PrefetchResult, type PresenceTrackedRecord, type ProbeResult, type ProbeStatus, type NativeProvenanceActivity as ProvenanceActivity, type NativeProvenanceRecord as ProvenanceCapture, type NativeProvenanceEdge as ProvenanceDerivation, type NativeProvenanceDevice as ProvenanceDevice, type ProvenanceEdge, type NativeProvenanceLocation as ProvenanceLocation, ProvenanceRepository, type NativeTimestampRange as ProvenanceTimeRange, type ProviderCapabilities, type ProviderCostTier, type ProviderDataClass, type ProviderPrivacyTier, type ProviderProfile, ProviderRegistry, type ProviderRoutePolicy, type ProviderRouteProbeResult, type ProviderRouteRequirements, type ProviderRouteSelection, type ProviderRouteValidation, type ProviderRouteValidationIssue, type ProviderRouteValidationSeverity, type ProviderTier, type PurgeCounts, type PurgePreview, type PurgeSelector, type QueryExecutor, type QueryResult, RECORD_COLLECTIONS, RECORD_SCHEMA_VERSION, RECORD_STORE_CAPABILITIES, REGISTERED_METADATA_PATHS, type RecommendedTier, type RecordBackendManageNoteResult, type RecordBackendOptions, type RecordCollectionName, type RecordCollections, type RecordListOptions, type RecordMutation, type RecordProjectionResult, type RecordProvenanceInput, type RecordStore, type RecordStoreCapabilities, type RegisteredMetadataPath, type RemoteBackendConfig, RemoteBackendError, type RemoteBackendErrorKind, type RemoteBackendPaths, type RemoteDataBackend, type RemoteManageNoteInput, type RemoteManageNoteResult, type RemoteProvenanceGraph, type RemoteSearchDegradation, type RemoteSearchMetadata, type RemoteSearchMode, type RemoteSearchOptions, type RemoteSearchResult, type ResolvedEmbeddingRow, type ResolvedEmbeddingSet, type RestoreDbSnapshotOptions, type RouteHandler, SOURCE_UPSERT_CONTRACT_VERSION, SOURCE_UPSERT_MAX_ITEMS, SUPPORTED_PGLITE_VERSION, type SWRegistrationResult, type SearchFacets, type SearchInput, SearchInputSchema, type SearchOptions, SearchRepository, type SearchResponse, type SearchResult, ShardBackend, type ShardBackendOptions, ShardCapabilityReport, ShardCollection, ShardComponent, type ShardComponentStore, ShardEmbedding, ShardEmbeddingConfig, ShardEmbeddingSet, ShardEmbeddingSetMember, ShardExportResult, ShardLink, type ShardListOptions, ShardLossEntry, ShardManifest, ShardNote, type ShardNoteFull, ShardNoteSkosTag, ShardOperation, ShardProfileRegistryEntry, ShardProvenanceEdge, type ShardReader, type ShardReaderNote, type ShardReaderSource, type ShardSchemaValidationResult, type ShardSearchOptions, type ShardSearchRankedNote, type ShardSearchResult, type ShardSearchWeights, ShardSkosConcept, ShardSkosRelation, ShardSkosScheme, ShardTag, ShardTemplate, type SimilarityGraphCacheKey, type SimilarityGraphOptions, type SimilarityGraphRequest, type SimilarityGraphResult, type NativeSkosCollection as SkosCollection, type NativeSkosCollectionMember as SkosCollectionMember, type SkosConcept, type NativeSkosConcept as SkosConceptRecord, type NativeSkosLabel as SkosLabel, type NativeSkosMapping as SkosMapping, type NativeSkosMembership as SkosMembership, type NativeSkosNote as SkosNote, type SkosRelation, SkosRepository, type SkosScheme, type NativeSkosScheme as SkosSchemeRecord, type SourceIdentityInput, type SourceIdentityRecord, type SourceImportBatchRecord, type SourceImportRunRecord, type SourceUpsertBatchOutcome, type SourceUpsertBatchResult, type SourceUpsertItem, type SourceUpsertItemResult, type SourceUpsertOptions, type SourceUpsertOutcome, type SourceUpsertPolicy, type SourceUpsertReasonCode, SourceUpsertRepository, type SourceUpsertRequest, type SourceUpsertRequestItem, type SourceUpsertResponse, type SourceUpsertScope, type StaticSemanticProvider, type StorageBackend, type StorageBackendFactory, type StorageOpenRequest, type StorageTopology, type StreamChunk, type NativeTag as TagRecord, TagsRepository, type TemplateCreateInput, type NativeTemplate as TemplateRecord, TemplatesRepository, TransactionProxy, TypedEventBus, VERSION, type VectorEntry, type VirtualEmbeddingSetDefinition, type VirtualEmbeddingSetSource, type VirtualEmbeddingSetValidationError, type VirtualMaterializationPolicy, type VramTier, type WorkerRequest, type WorkerResponse, aiRevisionHandler, allMigrations, appendPluginScript, assertShardComponentRecord, buildMetadataPredicateConditions, buildNoteConditions, buildPluginCsp, captureKnowledge, chunkText, classifyError, classifyModel, clearPrefetchedShard, collectionFromShard, collectionToShard, compareDatasetIncrementalParity, computeBlobHash, computeHash, computeLineageDigest, computeSri, conceptTaggingHandler, configureInferenceRuntime, cosineSimilarity, createBridgeInferenceProviders, createCosineSemanticProvider, createCspReportHandler, createFortemi, createLegacyProvider, createLocalProviderProfile, createPGliteBackend, createPGliteInstance, createRecordBackend, createRecordStore, createRemoteBackend, createRoutes, createShardBackend, createShardCapabilityReport, createWorkerEmbedFunction, datasetDestinationScopeKey, defaultStorageBackendFactory, defineInferenceProvider, defineInferenceRuntime, defineLegacyInferenceProvider, defineOpenAICompatibleProvider, deriveDatasetIngestIdempotencyKey, detectCommunities, detectGpuCapabilities, detectInferenceCapabilities, digestDatasetMaterializationValue, discoverLocalProviders, dropAttachmentProjection, dropNoteProjection, dumpDbSnapshot, embeddingConfigToShard, embeddingFromShard, embeddingGenerationHandler, embeddingSetFromShard, embeddingSetMemberToShard, embeddingSetToShard, embeddingToShard, enqueueFullWorkflow, enqueueJob, enqueueNoteCreationJobs, estimateModelFit, estimateVramMB, estimateVramTier, executeDatasetMaterialization, executeDatasetRetrieval, exportFullV1Snapshot, exportShard, exportShardFromRecords, exportShardFromRecordsWithReport, exportShardWithReport, fetchAndValidateFortemiCompatibility, fetchPluginScript, formatFortemiCompatibilitySummary, fortemiCompatibilityUrl, fortemiManifest, fromPrefetched, generateId, getConfiguredInferenceProviderId, getEmbedFunction, getEmbeddingTaskSelectionOptions, getFortemiBridge, getFortemiSecretStore, getJobQueueStatus, getKnowledgeShardContractReceipt, getKnowledgeShardProfileRegistry, getKnowledgeShardSchema, getLlmFunction, getNote, getPrefetchedSha256, getProviderRouteRequirementIssue, handleEmbedRequests, hasFortemiSecureSecrets, importFullV1Snapshot, importShard, importShardToRecords, inferInferenceTaskCapability, inferLocalEmbeddingDimensions, isPluginScriptAllowed, isShardPrefetched, linkFromShard, linkToShard, linkingHandler, listNotes, manageArchive, manageAttachments, manageCapabilities, manageCollections, manageLinks, manageNote, manageTags, matchRoute, mergeInferenceRuntimeConfigs, migrateLegacyBlobStore, negotiateDatasetExecutionCapabilities, negotiateDatasetExecutionCapabilitiesFromWire, negotiateDatasetMaterializationProfile, noteFromShard, noteSkosTagToShard, noteToShard, openShard, packTarGz, parseCspReport, prefetchShard, previewRecordStorePurge, profileSupportError, projectAttachments, projectNotes, projectRecords, provenanceEdgeToShard, providerSatisfiesRouteRequirements, purgeRecordStoreGraph, registerLlmCapability, registerSemanticCapability, registerSemanticCapabilityWorker, registerServiceWorker, restoreDbSnapshot, searchTool, selectBackend, selectEmbeddingTask, selectLlmModel, setEmbedFunction, setEmbeddingTaskSelectionOptions, setLlmFunction, sha256Hex, skosConceptToShard, skosRelationToShard, skosSchemeToShard, suggestTags, tagsToShard, templateToShard, titleGenerationHandler, unpackTarGz, unregisterLlmCapability, unregisterSemanticCapability, upsertRecordStoreRequest, upsertRecordStoreSources, urlLinkToShard, validateChecksums, validateCoreV1ShardArchive, validateDatasetBenchmarkEvidence, validateDatasetExecutionDescriptor, validateDatasetExecutionRequest, validateFortemiCompatibilityResponse, validateFullV1ShardArchive, validateProviderRoute, validateRecordV1ShardArchive, validateShardArchive, validateShardComponentRecord, validateShardManifest, verifyDbSnapshotMeta, verifySri };