@fortemi/core 2026.9.2 → 2026.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -6
- package/dist/aiwg-index-schema.js +1827 -0
- package/dist/aiwg-index-schema.js.map +1 -1
- package/dist/{aiwg-index-shard-BCdaz0X1.d.ts → aiwg-index-shard-jyT_f8H6.d.ts} +4 -4
- package/dist/aiwg-index-shard.d.ts +1 -1
- package/dist/aiwg-index-shard.js +2193 -23
- package/dist/aiwg-index-shard.js.map +1 -1
- package/dist/index.d.ts +985 -22
- package/dist/index.js +35176 -28087
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
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
|
/**
|
|
@@ -1156,6 +1156,17 @@ interface RestoreDbSnapshotOptions {
|
|
|
1156
1156
|
* import). The returned instance is ready to query; do NOT run migrations on it.
|
|
1157
1157
|
*/
|
|
1158
1158
|
declare function restoreDbSnapshot(source: DbSnapshotSource, options?: RestoreDbSnapshotOptions): Promise<PGlite>;
|
|
1159
|
+
type RemoteBackendErrorKind = 'aborted' | 'degraded-search' | 'http' | 'invalid-request' | 'invalid-response' | 'transport' | 'unsupported-operation';
|
|
1160
|
+
/** Bounded diagnostics only: never retains request URLs, headers or response text. */
|
|
1161
|
+
declare class RemoteBackendError extends Error {
|
|
1162
|
+
readonly kind: RemoteBackendErrorKind;
|
|
1163
|
+
readonly status?: number | undefined;
|
|
1164
|
+
readonly problemCode?: string | undefined;
|
|
1165
|
+
readonly requestId?: string | undefined;
|
|
1166
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
1167
|
+
readonly name = "RemoteBackendError";
|
|
1168
|
+
constructor(kind: RemoteBackendErrorKind, status?: number | undefined, problemCode?: string | undefined, requestId?: string | undefined, retryAfterSeconds?: number | undefined);
|
|
1169
|
+
}
|
|
1159
1170
|
/**
|
|
1160
1171
|
* Type-safe client for the PGlite Worker.
|
|
1161
1172
|
*
|
|
@@ -1679,9 +1690,13 @@ interface BackendNote {
|
|
|
1679
1690
|
/** A note plus its current rendered content. */
|
|
1680
1691
|
interface BackendNoteFull extends BackendNote {
|
|
1681
1692
|
content: string;
|
|
1693
|
+
/** Native note metadata, separate from inference metadata where supported. */
|
|
1694
|
+
metadata?: unknown;
|
|
1682
1695
|
links?: BackendLink[];
|
|
1683
1696
|
concepts?: BackendConcept[];
|
|
1684
1697
|
provenance?: BackendProvenanceEdge[];
|
|
1698
|
+
/** Server revision/activity graph; not interchangeable with local provenance edges. */
|
|
1699
|
+
provenanceGraph?: RemoteProvenanceGraph;
|
|
1685
1700
|
}
|
|
1686
1701
|
interface BackendLink {
|
|
1687
1702
|
id: string;
|
|
@@ -1692,6 +1707,11 @@ interface BackendLink {
|
|
|
1692
1707
|
score: null | number;
|
|
1693
1708
|
createdAt: string;
|
|
1694
1709
|
metadata?: Record<string, unknown>;
|
|
1710
|
+
/** Exact server JSON metadata, including non-object values and null. */
|
|
1711
|
+
remoteMetadata?: unknown;
|
|
1712
|
+
/** Relative to the requested note; remote self-links can appear in both directions. */
|
|
1713
|
+
direction?: 'incoming' | 'outgoing';
|
|
1714
|
+
snippet?: null | string;
|
|
1695
1715
|
}
|
|
1696
1716
|
interface BackendConcept {
|
|
1697
1717
|
id: string;
|
|
@@ -1701,22 +1721,35 @@ interface BackendConcept {
|
|
|
1701
1721
|
definition: null | string;
|
|
1702
1722
|
createdAt: string;
|
|
1703
1723
|
updatedAt: string;
|
|
1724
|
+
/** Placeholder values for these fields are unavailable, not evidence of absence. */
|
|
1725
|
+
unavailableFields?: Array<'altLabels' | 'definition'>;
|
|
1726
|
+
assignment?: {
|
|
1727
|
+
confidence?: number;
|
|
1728
|
+
createdAt: string;
|
|
1729
|
+
createdBy?: string;
|
|
1730
|
+
isPrimary: boolean;
|
|
1731
|
+
noteId: string;
|
|
1732
|
+
relevanceScore: number;
|
|
1733
|
+
source: string;
|
|
1734
|
+
};
|
|
1704
1735
|
}
|
|
1705
1736
|
interface BackendProvenanceEdge {
|
|
1706
1737
|
id: string;
|
|
1707
1738
|
entityType: string;
|
|
1708
1739
|
entityId: string;
|
|
1709
1740
|
activity: string;
|
|
1710
|
-
agent: string;
|
|
1741
|
+
agent: null | string;
|
|
1711
1742
|
startedAt: string;
|
|
1712
1743
|
endedAt: null | string;
|
|
1713
|
-
attributes:
|
|
1744
|
+
attributes: unknown;
|
|
1714
1745
|
}
|
|
1715
1746
|
/** One search hit — note plus optional rank/snippet when the backend ranks. */
|
|
1716
1747
|
interface BackendSearchHit {
|
|
1717
1748
|
note: BackendNote;
|
|
1718
1749
|
rank?: number;
|
|
1719
1750
|
snippet?: string;
|
|
1751
|
+
/** Original remote search metadata; detail enrichment is a separate read. */
|
|
1752
|
+
remoteSearch?: RemoteSearchMetadata;
|
|
1720
1753
|
}
|
|
1721
1754
|
/** Search response with optional facet counts. */
|
|
1722
1755
|
interface BackendSearchResult {
|
|
@@ -1759,6 +1792,8 @@ interface DataBackend {
|
|
|
1759
1792
|
conceptsOf?(id: string): Promise<BackendConcept[]>;
|
|
1760
1793
|
/** W3C PROV edges for a note (present when capabilities.read). */
|
|
1761
1794
|
provenanceOf?(id: string): Promise<BackendProvenanceEdge[]>;
|
|
1795
|
+
/** Remote revision/activity graph, preserving the server model and field names. */
|
|
1796
|
+
provenanceGraphOf?(id: string): Promise<RemoteProvenanceGraph>;
|
|
1762
1797
|
/** Vector search (present when capabilities.semantic !== 'none'). */
|
|
1763
1798
|
semantic?(query: string, k?: number): Promise<BackendSearchHit[]>;
|
|
1764
1799
|
/** Write op (present when capabilities.write). */
|
|
@@ -1812,8 +1847,33 @@ interface RemoteBackendPaths {
|
|
|
1812
1847
|
links: string;
|
|
1813
1848
|
concepts: string;
|
|
1814
1849
|
provenance: string;
|
|
1815
|
-
|
|
1816
|
-
|
|
1850
|
+
restore: string;
|
|
1851
|
+
/** @deprecated Tool-intent path overrides cannot adapt the REST contract and are rejected. */
|
|
1852
|
+
manageNote?: string;
|
|
1853
|
+
/** @deprecated Semantic search uses the search path and mode parameter. Overrides are rejected. */
|
|
1854
|
+
semantic?: string;
|
|
1855
|
+
}
|
|
1856
|
+
interface RemoteSearchOptions extends BackendSearchQueryOptions {
|
|
1857
|
+
mode?: RemoteSearchMode;
|
|
1858
|
+
}
|
|
1859
|
+
interface RemoteSearchResult extends BackendSearchResult {
|
|
1860
|
+
/** The server total counts returned hits, not the corpus or a pagination estimate. */
|
|
1861
|
+
totalKind: 'returned-hits';
|
|
1862
|
+
requestedMode: RemoteSearchMode;
|
|
1863
|
+
effectiveMode: RemoteSearchMode;
|
|
1864
|
+
degraded: boolean;
|
|
1865
|
+
degradation?: RemoteSearchDegradation;
|
|
1866
|
+
}
|
|
1867
|
+
interface RemoteManageNoteResult {
|
|
1868
|
+
action: 'archive' | 'create' | 'delete' | 'restore' | 'star' | 'unarchive' | 'unstar' | 'update';
|
|
1869
|
+
note_id: string;
|
|
1870
|
+
/** Present only when the mutation itself returns a note envelope. */
|
|
1871
|
+
note?: BackendNoteFull;
|
|
1872
|
+
}
|
|
1873
|
+
interface RemoteDataBackend extends DataBackend {
|
|
1874
|
+
search(query: string, options?: RemoteSearchOptions): Promise<RemoteSearchResult>;
|
|
1875
|
+
semanticWithReport(query: string, k?: number): Promise<RemoteSearchResult>;
|
|
1876
|
+
manageNote(input: unknown): Promise<RemoteManageNoteResult>;
|
|
1817
1877
|
}
|
|
1818
1878
|
interface RemoteBackendConfig {
|
|
1819
1879
|
baseUrl: string;
|
|
@@ -1823,7 +1883,7 @@ interface RemoteBackendConfig {
|
|
|
1823
1883
|
authToken?: string;
|
|
1824
1884
|
paths?: Partial<RemoteBackendPaths>;
|
|
1825
1885
|
}
|
|
1826
|
-
declare function createRemoteBackend(config: RemoteBackendConfig):
|
|
1886
|
+
declare function createRemoteBackend(config: RemoteBackendConfig): RemoteDataBackend;
|
|
1827
1887
|
interface ShardBackendOptions {
|
|
1828
1888
|
id?: string;
|
|
1829
1889
|
/** Declared semantic tier this shard provides (default `none`). Set to `cosine-small` when the reader has a vector provider. */
|
|
@@ -1836,6 +1896,394 @@ interface ShardBackendOptions {
|
|
|
1836
1896
|
* provider is attached.
|
|
1837
1897
|
*/
|
|
1838
1898
|
declare function createShardBackend(reader: ShardReader, options?: ShardBackendOptions): DataBackend;
|
|
1899
|
+
declare const provenanceGraph: z.ZodObject<{
|
|
1900
|
+
all_activities: z.ZodArray<z.ZodObject<{
|
|
1901
|
+
activity_type: z.ZodString;
|
|
1902
|
+
ended_at: z.ZodNullable<z.ZodString>;
|
|
1903
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1904
|
+
metadata: z.ZodEffects<z.ZodUnknown, {} | null, unknown>;
|
|
1905
|
+
model_name: z.ZodNullable<z.ZodString>;
|
|
1906
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1907
|
+
revision_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
1908
|
+
started_at: z.ZodString;
|
|
1909
|
+
}, "strip", z.ZodTypeAny, {
|
|
1910
|
+
activity_type: string;
|
|
1911
|
+
ended_at: null | string;
|
|
1912
|
+
id: string;
|
|
1913
|
+
metadata: {} | null;
|
|
1914
|
+
model_name: null | string;
|
|
1915
|
+
note_id: string;
|
|
1916
|
+
revision_id: null | string;
|
|
1917
|
+
started_at: string;
|
|
1918
|
+
}, {
|
|
1919
|
+
activity_type: string;
|
|
1920
|
+
ended_at: null | string;
|
|
1921
|
+
id: string;
|
|
1922
|
+
metadata?: unknown;
|
|
1923
|
+
model_name: null | string;
|
|
1924
|
+
note_id: string;
|
|
1925
|
+
revision_id: null | string;
|
|
1926
|
+
started_at: string;
|
|
1927
|
+
}>, "many">;
|
|
1928
|
+
all_edges: z.ZodArray<z.ZodObject<{
|
|
1929
|
+
created_at_utc: z.ZodString;
|
|
1930
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1931
|
+
relation: z.ZodString;
|
|
1932
|
+
revision_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1933
|
+
source_note_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
1934
|
+
source_url: z.ZodNullable<z.ZodString>;
|
|
1935
|
+
}, "strip", z.ZodTypeAny, {
|
|
1936
|
+
created_at_utc: string;
|
|
1937
|
+
id: string;
|
|
1938
|
+
relation: string;
|
|
1939
|
+
revision_id: string;
|
|
1940
|
+
source_note_id: null | string;
|
|
1941
|
+
source_url: null | string;
|
|
1942
|
+
}, {
|
|
1943
|
+
created_at_utc: string;
|
|
1944
|
+
id: string;
|
|
1945
|
+
relation: string;
|
|
1946
|
+
revision_id: string;
|
|
1947
|
+
source_note_id: null | string;
|
|
1948
|
+
source_url: null | string;
|
|
1949
|
+
}>, "many">;
|
|
1950
|
+
current_chain: z.ZodNullable<z.ZodObject<{
|
|
1951
|
+
activity: z.ZodNullable<z.ZodObject<{
|
|
1952
|
+
activity_type: z.ZodString;
|
|
1953
|
+
ended_at: z.ZodNullable<z.ZodString>;
|
|
1954
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1955
|
+
metadata: z.ZodEffects<z.ZodUnknown, {} | null, unknown>;
|
|
1956
|
+
model_name: z.ZodNullable<z.ZodString>;
|
|
1957
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1958
|
+
revision_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
1959
|
+
started_at: z.ZodString;
|
|
1960
|
+
}, "strip", z.ZodTypeAny, {
|
|
1961
|
+
activity_type: string;
|
|
1962
|
+
ended_at: null | string;
|
|
1963
|
+
id: string;
|
|
1964
|
+
metadata: {} | null;
|
|
1965
|
+
model_name: null | string;
|
|
1966
|
+
note_id: string;
|
|
1967
|
+
revision_id: null | string;
|
|
1968
|
+
started_at: string;
|
|
1969
|
+
}, {
|
|
1970
|
+
activity_type: string;
|
|
1971
|
+
ended_at: null | string;
|
|
1972
|
+
id: string;
|
|
1973
|
+
metadata?: unknown;
|
|
1974
|
+
model_name: null | string;
|
|
1975
|
+
note_id: string;
|
|
1976
|
+
revision_id: null | string;
|
|
1977
|
+
started_at: string;
|
|
1978
|
+
}>>;
|
|
1979
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
1980
|
+
created_at_utc: z.ZodString;
|
|
1981
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1982
|
+
relation: z.ZodString;
|
|
1983
|
+
revision_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1984
|
+
source_note_id: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
1985
|
+
source_url: z.ZodNullable<z.ZodString>;
|
|
1986
|
+
}, "strip", z.ZodTypeAny, {
|
|
1987
|
+
created_at_utc: string;
|
|
1988
|
+
id: string;
|
|
1989
|
+
relation: string;
|
|
1990
|
+
revision_id: string;
|
|
1991
|
+
source_note_id: null | string;
|
|
1992
|
+
source_url: null | string;
|
|
1993
|
+
}, {
|
|
1994
|
+
created_at_utc: string;
|
|
1995
|
+
id: string;
|
|
1996
|
+
relation: string;
|
|
1997
|
+
revision_id: string;
|
|
1998
|
+
source_note_id: null | string;
|
|
1999
|
+
source_url: null | string;
|
|
2000
|
+
}>, "many">;
|
|
2001
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2002
|
+
revision_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2003
|
+
}, "strip", z.ZodTypeAny, {
|
|
2004
|
+
activity: {
|
|
2005
|
+
activity_type: string;
|
|
2006
|
+
ended_at: null | string;
|
|
2007
|
+
id: string;
|
|
2008
|
+
metadata: {} | null;
|
|
2009
|
+
model_name: null | string;
|
|
2010
|
+
note_id: string;
|
|
2011
|
+
revision_id: null | string;
|
|
2012
|
+
started_at: string;
|
|
2013
|
+
} | null;
|
|
2014
|
+
edges: {
|
|
2015
|
+
created_at_utc: string;
|
|
2016
|
+
id: string;
|
|
2017
|
+
relation: string;
|
|
2018
|
+
revision_id: string;
|
|
2019
|
+
source_note_id: null | string;
|
|
2020
|
+
source_url: null | string;
|
|
2021
|
+
}[];
|
|
2022
|
+
note_id: string;
|
|
2023
|
+
revision_id: string;
|
|
2024
|
+
}, {
|
|
2025
|
+
activity: {
|
|
2026
|
+
activity_type: string;
|
|
2027
|
+
ended_at: null | string;
|
|
2028
|
+
id: string;
|
|
2029
|
+
metadata?: unknown;
|
|
2030
|
+
model_name: null | string;
|
|
2031
|
+
note_id: string;
|
|
2032
|
+
revision_id: null | string;
|
|
2033
|
+
started_at: string;
|
|
2034
|
+
} | null;
|
|
2035
|
+
edges: {
|
|
2036
|
+
created_at_utc: string;
|
|
2037
|
+
id: string;
|
|
2038
|
+
relation: string;
|
|
2039
|
+
revision_id: string;
|
|
2040
|
+
source_note_id: null | string;
|
|
2041
|
+
source_url: null | string;
|
|
2042
|
+
}[];
|
|
2043
|
+
note_id: string;
|
|
2044
|
+
revision_id: string;
|
|
2045
|
+
}>>;
|
|
2046
|
+
derived_count: z.ZodNumber;
|
|
2047
|
+
derived_notes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2048
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2049
|
+
}, "strip", z.ZodTypeAny, {
|
|
2050
|
+
all_activities: {
|
|
2051
|
+
activity_type: string;
|
|
2052
|
+
ended_at: null | string;
|
|
2053
|
+
id: string;
|
|
2054
|
+
metadata: {} | null;
|
|
2055
|
+
model_name: null | string;
|
|
2056
|
+
note_id: string;
|
|
2057
|
+
revision_id: null | string;
|
|
2058
|
+
started_at: string;
|
|
2059
|
+
}[];
|
|
2060
|
+
all_edges: {
|
|
2061
|
+
created_at_utc: string;
|
|
2062
|
+
id: string;
|
|
2063
|
+
relation: string;
|
|
2064
|
+
revision_id: string;
|
|
2065
|
+
source_note_id: null | string;
|
|
2066
|
+
source_url: null | string;
|
|
2067
|
+
}[];
|
|
2068
|
+
current_chain: {
|
|
2069
|
+
activity: {
|
|
2070
|
+
activity_type: string;
|
|
2071
|
+
ended_at: null | string;
|
|
2072
|
+
id: string;
|
|
2073
|
+
metadata: {} | null;
|
|
2074
|
+
model_name: null | string;
|
|
2075
|
+
note_id: string;
|
|
2076
|
+
revision_id: null | string;
|
|
2077
|
+
started_at: string;
|
|
2078
|
+
} | null;
|
|
2079
|
+
edges: {
|
|
2080
|
+
created_at_utc: string;
|
|
2081
|
+
id: string;
|
|
2082
|
+
relation: string;
|
|
2083
|
+
revision_id: string;
|
|
2084
|
+
source_note_id: null | string;
|
|
2085
|
+
source_url: null | string;
|
|
2086
|
+
}[];
|
|
2087
|
+
note_id: string;
|
|
2088
|
+
revision_id: string;
|
|
2089
|
+
} | null;
|
|
2090
|
+
derived_count: number;
|
|
2091
|
+
derived_notes: string[];
|
|
2092
|
+
note_id: string;
|
|
2093
|
+
}, {
|
|
2094
|
+
all_activities: {
|
|
2095
|
+
activity_type: string;
|
|
2096
|
+
ended_at: null | string;
|
|
2097
|
+
id: string;
|
|
2098
|
+
metadata?: unknown;
|
|
2099
|
+
model_name: null | string;
|
|
2100
|
+
note_id: string;
|
|
2101
|
+
revision_id: null | string;
|
|
2102
|
+
started_at: string;
|
|
2103
|
+
}[];
|
|
2104
|
+
all_edges: {
|
|
2105
|
+
created_at_utc: string;
|
|
2106
|
+
id: string;
|
|
2107
|
+
relation: string;
|
|
2108
|
+
revision_id: string;
|
|
2109
|
+
source_note_id: null | string;
|
|
2110
|
+
source_url: null | string;
|
|
2111
|
+
}[];
|
|
2112
|
+
current_chain: {
|
|
2113
|
+
activity: {
|
|
2114
|
+
activity_type: string;
|
|
2115
|
+
ended_at: null | string;
|
|
2116
|
+
id: string;
|
|
2117
|
+
metadata?: unknown;
|
|
2118
|
+
model_name: null | string;
|
|
2119
|
+
note_id: string;
|
|
2120
|
+
revision_id: null | string;
|
|
2121
|
+
started_at: string;
|
|
2122
|
+
} | null;
|
|
2123
|
+
edges: {
|
|
2124
|
+
created_at_utc: string;
|
|
2125
|
+
id: string;
|
|
2126
|
+
relation: string;
|
|
2127
|
+
revision_id: string;
|
|
2128
|
+
source_note_id: null | string;
|
|
2129
|
+
source_url: null | string;
|
|
2130
|
+
}[];
|
|
2131
|
+
note_id: string;
|
|
2132
|
+
revision_id: string;
|
|
2133
|
+
} | null;
|
|
2134
|
+
derived_count: number;
|
|
2135
|
+
derived_notes: string[];
|
|
2136
|
+
note_id: string;
|
|
2137
|
+
}>;
|
|
2138
|
+
/** Producer field names intentionally distinguish this graph from local PGlite PROV edges. */
|
|
2139
|
+
type RemoteProvenanceGraph = z.infer<typeof provenanceGraph>;
|
|
2140
|
+
declare const searchMode: z.ZodEnum<[
|
|
2141
|
+
"fts",
|
|
2142
|
+
"semantic",
|
|
2143
|
+
"hybrid"
|
|
2144
|
+
]>;
|
|
2145
|
+
type RemoteSearchMode = z.infer<typeof searchMode>;
|
|
2146
|
+
declare const searchHit: z.ZodObject<{
|
|
2147
|
+
chain_info: z.ZodOptional<z.ZodObject<{
|
|
2148
|
+
best_chunk_sequence: z.ZodNumber;
|
|
2149
|
+
chain_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2150
|
+
chunks_matched: z.ZodNumber;
|
|
2151
|
+
original_title: z.ZodString;
|
|
2152
|
+
total_chunks: z.ZodNumber;
|
|
2153
|
+
}, "strip", z.ZodTypeAny, {
|
|
2154
|
+
best_chunk_sequence: number;
|
|
2155
|
+
chain_id: string;
|
|
2156
|
+
chunks_matched: number;
|
|
2157
|
+
original_title: string;
|
|
2158
|
+
total_chunks: number;
|
|
2159
|
+
}, {
|
|
2160
|
+
best_chunk_sequence: number;
|
|
2161
|
+
chain_id: string;
|
|
2162
|
+
chunks_matched: number;
|
|
2163
|
+
original_title: string;
|
|
2164
|
+
total_chunks: number;
|
|
2165
|
+
}>>;
|
|
2166
|
+
embedding_status: z.ZodOptional<z.ZodEnum<[
|
|
2167
|
+
"ready",
|
|
2168
|
+
"pending",
|
|
2169
|
+
"failed",
|
|
2170
|
+
"none"
|
|
2171
|
+
]>>;
|
|
2172
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2173
|
+
score: z.ZodNumber;
|
|
2174
|
+
snippet: z.ZodNullable<z.ZodString>;
|
|
2175
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2176
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
}, "strip", z.ZodTypeAny, {
|
|
2178
|
+
chain_info?: {
|
|
2179
|
+
best_chunk_sequence: number;
|
|
2180
|
+
chain_id: string;
|
|
2181
|
+
chunks_matched: number;
|
|
2182
|
+
original_title: string;
|
|
2183
|
+
total_chunks: number;
|
|
2184
|
+
} | undefined;
|
|
2185
|
+
embedding_status?: "failed" | "none" | "pending" | "ready" | undefined;
|
|
2186
|
+
note_id: string;
|
|
2187
|
+
score: number;
|
|
2188
|
+
snippet: null | string;
|
|
2189
|
+
tags?: string[] | undefined;
|
|
2190
|
+
title?: string | undefined;
|
|
2191
|
+
}, {
|
|
2192
|
+
chain_info?: {
|
|
2193
|
+
best_chunk_sequence: number;
|
|
2194
|
+
chain_id: string;
|
|
2195
|
+
chunks_matched: number;
|
|
2196
|
+
original_title: string;
|
|
2197
|
+
total_chunks: number;
|
|
2198
|
+
} | undefined;
|
|
2199
|
+
embedding_status?: "failed" | "none" | "pending" | "ready" | undefined;
|
|
2200
|
+
note_id: string;
|
|
2201
|
+
score: number;
|
|
2202
|
+
snippet: null | string;
|
|
2203
|
+
tags?: string[] | undefined;
|
|
2204
|
+
title?: string | undefined;
|
|
2205
|
+
}>;
|
|
2206
|
+
declare const searchDegradation: z.ZodObject<{
|
|
2207
|
+
code: z.ZodString;
|
|
2208
|
+
effective_mode: z.ZodEnum<[
|
|
2209
|
+
"fts",
|
|
2210
|
+
"semantic",
|
|
2211
|
+
"hybrid"
|
|
2212
|
+
]>;
|
|
2213
|
+
}, "strip", z.ZodTypeAny, {
|
|
2214
|
+
code: string;
|
|
2215
|
+
effective_mode: "fts" | "hybrid" | "semantic";
|
|
2216
|
+
}, {
|
|
2217
|
+
code: string;
|
|
2218
|
+
effective_mode: "fts" | "hybrid" | "semantic";
|
|
2219
|
+
}>;
|
|
2220
|
+
type RemoteSearchDegradation = z.infer<typeof searchDegradation>;
|
|
2221
|
+
type RemoteSearchMetadata = Pick<z.infer<typeof searchHit>, 'chain_info' | 'embedding_status' | 'tags' | 'title'>;
|
|
2222
|
+
declare const manageInput: z.ZodUnion<[
|
|
2223
|
+
z.ZodObject<{
|
|
2224
|
+
action: z.ZodLiteral<"create">;
|
|
2225
|
+
content: z.ZodString;
|
|
2226
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2228
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2229
|
+
}, "strict", z.ZodTypeAny, {
|
|
2230
|
+
action: "create";
|
|
2231
|
+
content: string;
|
|
2232
|
+
source?: string | undefined;
|
|
2233
|
+
tags?: string[] | undefined;
|
|
2234
|
+
title?: null | string | undefined;
|
|
2235
|
+
}, {
|
|
2236
|
+
action: "create";
|
|
2237
|
+
content: string;
|
|
2238
|
+
source?: string | undefined;
|
|
2239
|
+
tags?: string[] | undefined;
|
|
2240
|
+
title?: null | string | undefined;
|
|
2241
|
+
}>,
|
|
2242
|
+
z.ZodEffects<z.ZodObject<{
|
|
2243
|
+
action: z.ZodLiteral<"update">;
|
|
2244
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2245
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2246
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2247
|
+
}, "strict", z.ZodTypeAny, {
|
|
2248
|
+
action: "update";
|
|
2249
|
+
content?: string | undefined;
|
|
2250
|
+
note_id: string;
|
|
2251
|
+
tags?: string[] | undefined;
|
|
2252
|
+
}, {
|
|
2253
|
+
action: "update";
|
|
2254
|
+
content?: string | undefined;
|
|
2255
|
+
note_id: string;
|
|
2256
|
+
tags?: string[] | undefined;
|
|
2257
|
+
}>, {
|
|
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
|
+
z.ZodObject<{
|
|
2269
|
+
action: z.ZodEnum<[
|
|
2270
|
+
"delete",
|
|
2271
|
+
"restore",
|
|
2272
|
+
"archive",
|
|
2273
|
+
"unarchive",
|
|
2274
|
+
"star",
|
|
2275
|
+
"unstar"
|
|
2276
|
+
]>;
|
|
2277
|
+
note_id: z.ZodEffects<z.ZodString, string, string>;
|
|
2278
|
+
}, "strict", z.ZodTypeAny, {
|
|
2279
|
+
action: "archive" | "delete" | "restore" | "star" | "unarchive" | "unstar";
|
|
2280
|
+
note_id: string;
|
|
2281
|
+
}, {
|
|
2282
|
+
action: "archive" | "delete" | "restore" | "star" | "unarchive" | "unstar";
|
|
2283
|
+
note_id: string;
|
|
2284
|
+
}>
|
|
2285
|
+
]>;
|
|
2286
|
+
type RemoteManageNoteInput = z.infer<typeof manageInput>;
|
|
1839
2287
|
/**
|
|
1840
2288
|
* Capability module system (ADR-002).
|
|
1841
2289
|
* Tracks opt-in WASM module states. No WASM loaded by default (CAP-001).
|
|
@@ -2227,6 +2675,72 @@ type WorkerResponse = {
|
|
|
2227
2675
|
} | {
|
|
2228
2676
|
type: 'READY';
|
|
2229
2677
|
};
|
|
2678
|
+
type JsonObject = Record<string, unknown>;
|
|
2679
|
+
interface NativeEmbeddingConfig {
|
|
2680
|
+
id: string;
|
|
2681
|
+
name: string;
|
|
2682
|
+
description: null | string;
|
|
2683
|
+
model: string;
|
|
2684
|
+
dimension: number;
|
|
2685
|
+
chunk_size: number;
|
|
2686
|
+
chunk_overlap: number;
|
|
2687
|
+
hnsw_m: null | number;
|
|
2688
|
+
hnsw_ef_construction: null | number;
|
|
2689
|
+
ivfflat_lists: null | number;
|
|
2690
|
+
is_default: boolean | null;
|
|
2691
|
+
supports_mrl: boolean | null;
|
|
2692
|
+
matryoshka_dims: null | number[];
|
|
2693
|
+
default_truncate_dim: null | number;
|
|
2694
|
+
provider: null | string;
|
|
2695
|
+
provider_config: JsonObject | null;
|
|
2696
|
+
content_types: null | string[];
|
|
2697
|
+
strengths: null | string[];
|
|
2698
|
+
limitations: null | string[];
|
|
2699
|
+
recommended_for: null | string[];
|
|
2700
|
+
benchmark_scores: JsonObject | null;
|
|
2701
|
+
is_available: boolean | null;
|
|
2702
|
+
document_composition: JsonObject;
|
|
2703
|
+
created_at: string;
|
|
2704
|
+
updated_at: string;
|
|
2705
|
+
}
|
|
2706
|
+
interface NativeEmbeddingSet {
|
|
2707
|
+
id: string;
|
|
2708
|
+
name: string;
|
|
2709
|
+
slug: null | string;
|
|
2710
|
+
description: null | string;
|
|
2711
|
+
purpose: null | string;
|
|
2712
|
+
usage_hints: null | string;
|
|
2713
|
+
keywords: null | string[];
|
|
2714
|
+
set_type: 'filter' | 'full';
|
|
2715
|
+
mode: 'auto' | 'manual' | 'mixed' | null;
|
|
2716
|
+
criteria: JsonObject | null;
|
|
2717
|
+
embedding_config_id: null | string;
|
|
2718
|
+
truncate_dim: null | number;
|
|
2719
|
+
auto_embed_rules: JsonObject | null;
|
|
2720
|
+
index_status: string;
|
|
2721
|
+
index_type: null | string;
|
|
2722
|
+
last_indexed_at: null | string;
|
|
2723
|
+
document_count: null | number;
|
|
2724
|
+
embedding_count: null | number;
|
|
2725
|
+
embeddings_current: boolean | null;
|
|
2726
|
+
index_size_bytes: null | number;
|
|
2727
|
+
is_system: boolean | null;
|
|
2728
|
+
is_active: boolean | null;
|
|
2729
|
+
auto_refresh: boolean | null;
|
|
2730
|
+
refresh_interval: null | string;
|
|
2731
|
+
last_refresh_at: null | string;
|
|
2732
|
+
agent_metadata: JsonObject | null;
|
|
2733
|
+
created_at: string;
|
|
2734
|
+
updated_at: string;
|
|
2735
|
+
created_by: null | string;
|
|
2736
|
+
}
|
|
2737
|
+
interface NativeEmbeddingMember {
|
|
2738
|
+
embedding_set_id: string;
|
|
2739
|
+
note_id: string;
|
|
2740
|
+
membership_type: null | string;
|
|
2741
|
+
added_at: null | string;
|
|
2742
|
+
added_by: null | string;
|
|
2743
|
+
}
|
|
2230
2744
|
/**
|
|
2231
2745
|
* EmbeddingSetsRepository - named, filter, and virtual embedding set API.
|
|
2232
2746
|
*/
|
|
@@ -2357,7 +2871,7 @@ interface ResolvedEmbeddingRow {
|
|
|
2357
2871
|
embedding_set_id: string;
|
|
2358
2872
|
embedding_id: string;
|
|
2359
2873
|
vector: string;
|
|
2360
|
-
created_at: Date;
|
|
2874
|
+
created_at: Date | null;
|
|
2361
2875
|
}
|
|
2362
2876
|
interface ResolvedEmbeddingSet {
|
|
2363
2877
|
selector: EmbeddingSetSelector;
|
|
@@ -2368,7 +2882,27 @@ interface ResolvedEmbeddingSet {
|
|
|
2368
2882
|
freshness: EmbeddingSetFreshness;
|
|
2369
2883
|
resolutionSource: 'live' | 'materialized';
|
|
2370
2884
|
}
|
|
2371
|
-
interface
|
|
2885
|
+
interface EmbeddingConfigRow extends Omit<NativeEmbeddingConfig, 'created_at' | 'updated_at'> {
|
|
2886
|
+
created_at: Date;
|
|
2887
|
+
updated_at: Date;
|
|
2888
|
+
}
|
|
2889
|
+
interface EmbeddingMemberRow extends Omit<NativeEmbeddingMember, 'added_at'> {
|
|
2890
|
+
embedding_id: null | string;
|
|
2891
|
+
added_at: Date | null;
|
|
2892
|
+
}
|
|
2893
|
+
interface EmbeddingRow {
|
|
2894
|
+
id: string;
|
|
2895
|
+
note_id: null | string;
|
|
2896
|
+
embedding_set_id: null | string;
|
|
2897
|
+
chunk_index: number;
|
|
2898
|
+
text: string;
|
|
2899
|
+
vector: null | string;
|
|
2900
|
+
model: null | string;
|
|
2901
|
+
contract_fingerprint: null | string;
|
|
2902
|
+
shard_contract_fingerprint_present: boolean;
|
|
2903
|
+
created_at: Date | null;
|
|
2904
|
+
}
|
|
2905
|
+
interface EmbeddingSetRow extends Partial<Omit<NativeEmbeddingSet, 'created_at' | 'criteria' | 'keywords' | 'mode' | 'set_type' | 'truncate_dim' | 'updated_at'>> {
|
|
2372
2906
|
id: string;
|
|
2373
2907
|
name: string;
|
|
2374
2908
|
purpose: null | string;
|
|
@@ -2388,6 +2922,7 @@ interface EmbeddingSetRow {
|
|
|
2388
2922
|
interface EmbeddingSetCreateInput {
|
|
2389
2923
|
id?: string;
|
|
2390
2924
|
name: string;
|
|
2925
|
+
slug?: null | string;
|
|
2391
2926
|
purpose?: null | string;
|
|
2392
2927
|
model_name?: string;
|
|
2393
2928
|
dimensions?: number;
|
|
@@ -2405,6 +2940,11 @@ interface EmbeddingSetEmbeddingInput {
|
|
|
2405
2940
|
declare class EmbeddingSetsRepository {
|
|
2406
2941
|
private db;
|
|
2407
2942
|
constructor(db: QueryExecutor);
|
|
2943
|
+
getConfig(id: string): Promise<EmbeddingConfigRow>;
|
|
2944
|
+
listConfigs(): Promise<EmbeddingConfigRow[]>;
|
|
2945
|
+
listMembers(setId: string): Promise<EmbeddingMemberRow[]>;
|
|
2946
|
+
/** Includes metadata-only records and every chunk, unlike a resolved graph selector. */
|
|
2947
|
+
listEmbeddings(setId: string): Promise<EmbeddingRow[]>;
|
|
2408
2948
|
create(input: EmbeddingSetCreateInput): Promise<EmbeddingSetRow>;
|
|
2409
2949
|
createVirtualDefinition(input: VirtualEmbeddingSetDefinition): Promise<EmbeddingSetRow>;
|
|
2410
2950
|
ensureDefault(): Promise<EmbeddingSetRow>;
|
|
@@ -2418,6 +2958,9 @@ declare class EmbeddingSetsRepository {
|
|
|
2418
2958
|
resolveSelector(selector: EmbeddingSetSelector): Promise<ResolvedEmbeddingSet>;
|
|
2419
2959
|
refreshMaterializedVirtualSet(setId: string): Promise<ResolvedEmbeddingSet>;
|
|
2420
2960
|
markVirtualSetStale(setId: string, reason: string): Promise<void>;
|
|
2961
|
+
/** @internal The repository and mutation must use the same caller-owned transaction. */
|
|
2962
|
+
withMaterializationInvalidation<T>(mutate: () => Promise<T>): Promise<T>;
|
|
2963
|
+
private liveResolutionHash;
|
|
2421
2964
|
private resolveDefinition;
|
|
2422
2965
|
private resolvePhysicalSet;
|
|
2423
2966
|
private resolvePhysicalRows;
|
|
@@ -2505,24 +3048,31 @@ interface NoteSummary {
|
|
|
2505
3048
|
tags: string[];
|
|
2506
3049
|
}
|
|
2507
3050
|
interface NoteFull extends NoteSummary {
|
|
3051
|
+
/** Note metadata is independent of the current revision's AI metadata. */
|
|
3052
|
+
metadata?: unknown;
|
|
2508
3053
|
archive_id: null | string;
|
|
2509
3054
|
revision_mode: string;
|
|
2510
3055
|
original: {
|
|
2511
3056
|
content_hash: string;
|
|
2512
3057
|
content: string;
|
|
2513
3058
|
created_at: Date;
|
|
2514
|
-
id: string;
|
|
3059
|
+
id: null | string;
|
|
3060
|
+
user_created_at?: null | string;
|
|
3061
|
+
user_last_edited_at?: null | string;
|
|
3062
|
+
version_number?: number;
|
|
2515
3063
|
};
|
|
2516
3064
|
current: {
|
|
2517
3065
|
ai_metadata: null | unknown;
|
|
2518
3066
|
content: string;
|
|
2519
3067
|
generation_count: number;
|
|
2520
3068
|
is_user_edited: boolean;
|
|
3069
|
+
last_revision_id?: null | string;
|
|
2521
3070
|
model: null | string;
|
|
2522
3071
|
updated_at: Date;
|
|
2523
3072
|
};
|
|
2524
3073
|
}
|
|
2525
3074
|
interface NoteCreateInput {
|
|
3075
|
+
metadata?: unknown;
|
|
2526
3076
|
content: string;
|
|
2527
3077
|
title?: string;
|
|
2528
3078
|
format?: string;
|
|
@@ -2539,6 +3089,7 @@ interface NoteCreateInput {
|
|
|
2539
3089
|
id?: string;
|
|
2540
3090
|
}
|
|
2541
3091
|
interface NoteUpdateInput {
|
|
3092
|
+
metadata?: unknown;
|
|
2542
3093
|
title?: string;
|
|
2543
3094
|
content?: string;
|
|
2544
3095
|
format?: string;
|
|
@@ -2624,6 +3175,23 @@ interface NoteRevision {
|
|
|
2624
3175
|
ai_metadata: null | unknown;
|
|
2625
3176
|
model: null | string;
|
|
2626
3177
|
created_at: Date;
|
|
3178
|
+
parent_revision_id?: null | string;
|
|
3179
|
+
summary?: null | string;
|
|
3180
|
+
rationale?: null | string;
|
|
3181
|
+
created_at_utc?: null | string;
|
|
3182
|
+
ai_generated_at?: null | string;
|
|
3183
|
+
user_last_edited_at?: null | string;
|
|
3184
|
+
is_user_edited?: boolean;
|
|
3185
|
+
generation_count?: number;
|
|
3186
|
+
}
|
|
3187
|
+
interface OriginalContentRevision {
|
|
3188
|
+
id: string;
|
|
3189
|
+
note_id: string;
|
|
3190
|
+
version_number: number;
|
|
3191
|
+
content: string;
|
|
3192
|
+
hash: string;
|
|
3193
|
+
created_at_utc: string;
|
|
3194
|
+
created_by: string;
|
|
2627
3195
|
}
|
|
2628
3196
|
/**
|
|
2629
3197
|
* NotesRepository — CRUD and lifecycle operations for the note entity.
|
|
@@ -2687,6 +3255,8 @@ declare class NotesRepository {
|
|
|
2687
3255
|
* Get revision history for a note, ordered by revision_number descending.
|
|
2688
3256
|
*/
|
|
2689
3257
|
getRevisions(noteId: string): Promise<NoteRevision[]>;
|
|
3258
|
+
/** User-authored original history is distinct from generated revision history. */
|
|
3259
|
+
getOriginalHistory(noteId: string): Promise<OriginalContentRevision[]>;
|
|
2690
3260
|
}
|
|
2691
3261
|
/**
|
|
2692
3262
|
* SearchRepository - full-text search using DatabaseClient tsvector/tsquery,
|
|
@@ -2934,7 +3504,9 @@ declare class GraphRepository {
|
|
|
2934
3504
|
resolved: ResolvedEmbeddingSet;
|
|
2935
3505
|
}): Promise<SimilarityGraphResult['graphSource']>;
|
|
2936
3506
|
markSimilarityGraphStale(graphSourceId: string, reason: string): Promise<void>;
|
|
2937
|
-
|
|
3507
|
+
getSourceRecord(graphSourceId: string): Promise<NativeGraphSource>;
|
|
3508
|
+
getEdgeRecords(graphSourceId: string): Promise<NativeGraphEdge[]>;
|
|
3509
|
+
loadGraphArtifact(graphSourceId: string, noteIds?: string[], communitySetId?: string): Promise<CommunityGraph>;
|
|
2938
3510
|
private buildSimilarityGraphFromResolved;
|
|
2939
3511
|
private computeSimilarityGraphCacheKey;
|
|
2940
3512
|
private findGraphSource;
|
|
@@ -2990,6 +3562,9 @@ interface CommunityCreateInput {
|
|
|
2990
3562
|
declare class CommunitiesRepository {
|
|
2991
3563
|
private db;
|
|
2992
3564
|
constructor(db: DatabaseClient);
|
|
3565
|
+
getCommunitySet(sourceId: string): Promise<NativeCommunitySet>;
|
|
3566
|
+
getCommunityRecords(sourceId: string): Promise<NativeCommunity[]>;
|
|
3567
|
+
getAssignmentRecords(sourceId: string): Promise<NativeCommunityAssignment[]>;
|
|
2993
3568
|
previewDynamicCommunity(filters: CommunityFilterDefinition): Promise<CommunityAssignmentView[]>;
|
|
2994
3569
|
saveCommunity(input: CommunityCreateInput): Promise<CommunitySourceDescriptor>;
|
|
2995
3570
|
rerunDynamicCommunity(sourceId: string): Promise<CommunityAssignmentView[]>;
|
|
@@ -2998,6 +3573,61 @@ declare class CommunitiesRepository {
|
|
|
2998
3573
|
listCommunitySummaries(sourceId: string): Promise<CommunitySummary[]>;
|
|
2999
3574
|
private resolveFilterNoteIds;
|
|
3000
3575
|
}
|
|
3576
|
+
interface NativeGraphSource {
|
|
3577
|
+
id: string;
|
|
3578
|
+
name: string;
|
|
3579
|
+
kind: 'imported' | 'link' | 'manual' | 'search' | 'similarity';
|
|
3580
|
+
source_table: 'embedding' | 'link' | 'manual' | null;
|
|
3581
|
+
embedding_set_id: null | string;
|
|
3582
|
+
virtual_set_id: null | string;
|
|
3583
|
+
model: null | string;
|
|
3584
|
+
dimension: null | number;
|
|
3585
|
+
truncate_dimension: null | number;
|
|
3586
|
+
metric: 'cosine' | 'inner_product' | 'l2' | null;
|
|
3587
|
+
algorithm: null | string;
|
|
3588
|
+
parameters: null | Record<string, unknown>;
|
|
3589
|
+
input_hash: string;
|
|
3590
|
+
freshness: Record<string, unknown>;
|
|
3591
|
+
created_at: string;
|
|
3592
|
+
}
|
|
3593
|
+
interface NativeGraphEdge {
|
|
3594
|
+
graph_source_id: string;
|
|
3595
|
+
from_note_id: string;
|
|
3596
|
+
to_note_id: string;
|
|
3597
|
+
weight: number;
|
|
3598
|
+
kind: 'link' | 'manual' | 'similarity';
|
|
3599
|
+
rank: null | number;
|
|
3600
|
+
metadata: null | Record<string, unknown>;
|
|
3601
|
+
}
|
|
3602
|
+
interface NativeCommunity {
|
|
3603
|
+
id: string;
|
|
3604
|
+
label: null | string;
|
|
3605
|
+
rank: null | number;
|
|
3606
|
+
size: null | number;
|
|
3607
|
+
confidence: null | number;
|
|
3608
|
+
representative_note_ids: null | string[];
|
|
3609
|
+
metadata: null | Record<string, unknown>;
|
|
3610
|
+
}
|
|
3611
|
+
interface NativeCommunitySet {
|
|
3612
|
+
id: string;
|
|
3613
|
+
graph_source_id: string;
|
|
3614
|
+
name: string;
|
|
3615
|
+
source_type: 'dynamic-snapshot' | 'imported' | 'precomputed' | 'user-authored';
|
|
3616
|
+
algorithm: null | string;
|
|
3617
|
+
parameters: null | Record<string, unknown>;
|
|
3618
|
+
input_hash: string;
|
|
3619
|
+
freshness: Record<string, unknown>;
|
|
3620
|
+
communities: NativeCommunity[];
|
|
3621
|
+
created_at: string;
|
|
3622
|
+
}
|
|
3623
|
+
interface NativeCommunityAssignment {
|
|
3624
|
+
community_set_id: string;
|
|
3625
|
+
community_id: string;
|
|
3626
|
+
note_id: string;
|
|
3627
|
+
confidence: null | number;
|
|
3628
|
+
source_type: NativeCommunitySet['source_type'];
|
|
3629
|
+
metadata: null | Record<string, unknown>;
|
|
3630
|
+
}
|
|
3001
3631
|
/**
|
|
3002
3632
|
* Shared SQL condition builder for note filtering.
|
|
3003
3633
|
* Used by both SearchRepository and NotesRepository to prevent drift
|
|
@@ -3075,7 +3705,7 @@ interface EnqueueJobInput {
|
|
|
3075
3705
|
requiredCapability?: null | string;
|
|
3076
3706
|
}
|
|
3077
3707
|
/** Enqueue a job into the job_queue table. Returns the new job ID. */
|
|
3078
|
-
declare function enqueueJob(db:
|
|
3708
|
+
declare function enqueueJob(db: QueryExecutor, input: EnqueueJobInput): Promise<string>;
|
|
3079
3709
|
/** Enqueue the note creation pipeline: revision → title → embedding. */
|
|
3080
3710
|
declare function enqueueNoteCreationJobs(db: DatabaseClient, noteId: string, hasTitle: boolean): Promise<void>;
|
|
3081
3711
|
/**
|
|
@@ -3129,6 +3759,68 @@ declare function aiRevisionHandler(job: Job, db: DatabaseClient): Promise<unknow
|
|
|
3129
3759
|
declare function conceptTaggingHandler(job: Job, db: DatabaseClient): Promise<unknown>;
|
|
3130
3760
|
/** Linking: find semantically related notes using FTS + vector RRF */
|
|
3131
3761
|
declare function linkingHandler(job: Job, db: DatabaseClient): Promise<unknown>;
|
|
3762
|
+
interface NativeAttachmentProjection {
|
|
3763
|
+
extracted_text: null | string;
|
|
3764
|
+
extraction_status: 'blocked' | 'deferred' | 'extracted' | 'failed' | 'pending';
|
|
3765
|
+
reason: 'extraction_pending' | 'extractor_failed' | 'large_binary' | 'no_extracted_text' | 'quarantined' | 'unsupported_mime' | null;
|
|
3766
|
+
attachment: {
|
|
3767
|
+
bytes: number;
|
|
3768
|
+
checksum: string;
|
|
3769
|
+
id: string;
|
|
3770
|
+
mime: string;
|
|
3771
|
+
path: string;
|
|
3772
|
+
};
|
|
3773
|
+
}
|
|
3774
|
+
interface NativeNote {
|
|
3775
|
+
id: string;
|
|
3776
|
+
title: null | string;
|
|
3777
|
+
original_content: string;
|
|
3778
|
+
revised_content: string;
|
|
3779
|
+
metadata: unknown;
|
|
3780
|
+
format: string;
|
|
3781
|
+
source: string;
|
|
3782
|
+
starred: boolean;
|
|
3783
|
+
archived: boolean;
|
|
3784
|
+
collection_id: null | string;
|
|
3785
|
+
created_at: string;
|
|
3786
|
+
updated_at: string;
|
|
3787
|
+
deleted_at?: null | string;
|
|
3788
|
+
tags: string[];
|
|
3789
|
+
attachments: NativeAttachmentProjection[];
|
|
3790
|
+
}
|
|
3791
|
+
interface NativeCollection {
|
|
3792
|
+
id: string;
|
|
3793
|
+
name: string;
|
|
3794
|
+
description: null | string;
|
|
3795
|
+
parent_id: null | string;
|
|
3796
|
+
created_at: string;
|
|
3797
|
+
note_count: number;
|
|
3798
|
+
}
|
|
3799
|
+
interface NativeTag {
|
|
3800
|
+
name: string;
|
|
3801
|
+
created_at: string;
|
|
3802
|
+
}
|
|
3803
|
+
interface NativeTemplate {
|
|
3804
|
+
id: string;
|
|
3805
|
+
name: string;
|
|
3806
|
+
description: null | string;
|
|
3807
|
+
content: string;
|
|
3808
|
+
format: string;
|
|
3809
|
+
default_tags: string[];
|
|
3810
|
+
collection_id: null | string;
|
|
3811
|
+
created_at: string;
|
|
3812
|
+
updated_at: string;
|
|
3813
|
+
}
|
|
3814
|
+
interface NativeLink {
|
|
3815
|
+
id: string;
|
|
3816
|
+
from_note_id: string;
|
|
3817
|
+
to_note_id: null | string;
|
|
3818
|
+
to_url: null | string;
|
|
3819
|
+
kind: string;
|
|
3820
|
+
score: number;
|
|
3821
|
+
created_at: string;
|
|
3822
|
+
metadata: unknown;
|
|
3823
|
+
}
|
|
3132
3824
|
/**
|
|
3133
3825
|
* TagsRepository — free-form tag management for notes.
|
|
3134
3826
|
*
|
|
@@ -3140,6 +3832,8 @@ declare function linkingHandler(job: Job, db: DatabaseClient): Promise<unknown>;
|
|
|
3140
3832
|
declare class TagsRepository {
|
|
3141
3833
|
private db;
|
|
3142
3834
|
constructor(db: DatabaseClient);
|
|
3835
|
+
/** Declared native tags, including records with no note membership. */
|
|
3836
|
+
listRecords(): Promise<NativeTag[]>;
|
|
3143
3837
|
addTag(noteId: string, tag: string): Promise<void>;
|
|
3144
3838
|
removeTag(noteId: string, tag: string): Promise<void>;
|
|
3145
3839
|
getTagsForNote(noteId: string): Promise<string[]>;
|
|
@@ -3176,6 +3870,7 @@ interface CollectionCreateInput {
|
|
|
3176
3870
|
declare class CollectionsRepository {
|
|
3177
3871
|
private db;
|
|
3178
3872
|
constructor(db: DatabaseClient);
|
|
3873
|
+
getRecord(id: string): Promise<NativeCollection | null>;
|
|
3179
3874
|
create(input: CollectionCreateInput): Promise<CollectionRow>;
|
|
3180
3875
|
get(id: string): Promise<CollectionRow>;
|
|
3181
3876
|
list(): Promise<CollectionRow[]>;
|
|
@@ -3209,6 +3904,8 @@ interface LinkRow {
|
|
|
3209
3904
|
declare class LinksRepository {
|
|
3210
3905
|
private db;
|
|
3211
3906
|
constructor(db: DatabaseClient);
|
|
3907
|
+
/** Rich full-v1-representable link, including URL targets and metadata. */
|
|
3908
|
+
getRecord(id: string): Promise<NativeLink | null>;
|
|
3212
3909
|
create(sourceNoteId: string, targetNoteId: string, linkType?: string): Promise<LinkRow>;
|
|
3213
3910
|
get(id: string): Promise<LinkRow>;
|
|
3214
3911
|
listForNote(noteId: string): Promise<{
|
|
@@ -3218,6 +3915,146 @@ declare class LinksRepository {
|
|
|
3218
3915
|
getBacklinks(noteId: string): Promise<string[]>;
|
|
3219
3916
|
delete(id: string): Promise<void>;
|
|
3220
3917
|
}
|
|
3918
|
+
interface TemplateCreateInput {
|
|
3919
|
+
name: string;
|
|
3920
|
+
content: string;
|
|
3921
|
+
description?: null | string;
|
|
3922
|
+
format?: string;
|
|
3923
|
+
default_tags?: string[];
|
|
3924
|
+
collection_id?: null | string;
|
|
3925
|
+
}
|
|
3926
|
+
declare class TemplatesRepository {
|
|
3927
|
+
private db;
|
|
3928
|
+
constructor(db: DatabaseClient);
|
|
3929
|
+
get(id: string): Promise<NativeTemplate>;
|
|
3930
|
+
list(): Promise<NativeTemplate[]>;
|
|
3931
|
+
create(input: TemplateCreateInput): Promise<NativeTemplate>;
|
|
3932
|
+
update(id: string, input: Partial<TemplateCreateInput>): Promise<NativeTemplate>;
|
|
3933
|
+
delete(id: string): Promise<void>;
|
|
3934
|
+
}
|
|
3935
|
+
interface SkosEmbedding {
|
|
3936
|
+
embedding: null | number[];
|
|
3937
|
+
embedding_model: null | string;
|
|
3938
|
+
embedded_at: null | string;
|
|
3939
|
+
}
|
|
3940
|
+
interface NativeSkosScheme extends SkosEmbedding {
|
|
3941
|
+
id: string;
|
|
3942
|
+
uri: null | string;
|
|
3943
|
+
notation: string;
|
|
3944
|
+
title: string;
|
|
3945
|
+
description: null | string;
|
|
3946
|
+
creator: null | string;
|
|
3947
|
+
publisher: null | string;
|
|
3948
|
+
rights: null | string;
|
|
3949
|
+
version: null | string;
|
|
3950
|
+
is_active: boolean;
|
|
3951
|
+
is_system: boolean;
|
|
3952
|
+
created_at: string;
|
|
3953
|
+
updated_at: string;
|
|
3954
|
+
issued_at: null | string;
|
|
3955
|
+
modified_at: null | string;
|
|
3956
|
+
}
|
|
3957
|
+
interface NativeSkosConcept extends SkosEmbedding {
|
|
3958
|
+
id: string;
|
|
3959
|
+
primary_scheme_id: string;
|
|
3960
|
+
uri: null | string;
|
|
3961
|
+
notation: null | string;
|
|
3962
|
+
facet_type: 'energy' | 'matter' | 'personality' | 'space' | 'time' | null;
|
|
3963
|
+
facet_source: null | string;
|
|
3964
|
+
facet_domain: null | string;
|
|
3965
|
+
facet_scope: null | string;
|
|
3966
|
+
status: 'approved' | 'candidate' | 'deprecated' | 'obsolete';
|
|
3967
|
+
promoted_at: null | string;
|
|
3968
|
+
deprecated_at: null | string;
|
|
3969
|
+
deprecation_reason: null | string;
|
|
3970
|
+
replaced_by_id: null | string;
|
|
3971
|
+
note_count: number;
|
|
3972
|
+
first_used_at: null | string;
|
|
3973
|
+
last_used_at: null | string;
|
|
3974
|
+
depth: number;
|
|
3975
|
+
broader_count: number;
|
|
3976
|
+
narrower_count: number;
|
|
3977
|
+
related_count: number;
|
|
3978
|
+
antipatterns: ('circular_hierarchy' | 'missing_labels' | 'orphan' | 'over_tagged' | 'polyhierarchy_excess' | 'too_broad' | 'too_deep' | 'under_used')[] | null;
|
|
3979
|
+
antipattern_checked_at: null | string;
|
|
3980
|
+
created_at: string;
|
|
3981
|
+
updated_at: string;
|
|
3982
|
+
}
|
|
3983
|
+
interface NativeSkosLabel {
|
|
3984
|
+
id: string;
|
|
3985
|
+
concept_id: string;
|
|
3986
|
+
label_type: 'alt_label' | 'hidden_label' | 'pref_label';
|
|
3987
|
+
value: string;
|
|
3988
|
+
language: string;
|
|
3989
|
+
created_at: string;
|
|
3990
|
+
}
|
|
3991
|
+
interface NativeSkosNote {
|
|
3992
|
+
id: string;
|
|
3993
|
+
concept_id: string;
|
|
3994
|
+
note_type: 'change_note' | 'definition' | 'editorial_note' | 'example' | 'history_note' | 'note' | 'scope_note';
|
|
3995
|
+
value: string;
|
|
3996
|
+
language: string;
|
|
3997
|
+
author: null | string;
|
|
3998
|
+
source: null | string;
|
|
3999
|
+
created_at: string;
|
|
4000
|
+
updated_at: string;
|
|
4001
|
+
}
|
|
4002
|
+
interface NativeSkosRelation {
|
|
4003
|
+
id: string;
|
|
4004
|
+
subject_id: string;
|
|
4005
|
+
object_id: string;
|
|
4006
|
+
relation_type: 'broader' | 'narrower' | 'related';
|
|
4007
|
+
inference_score: null | number;
|
|
4008
|
+
is_inferred: boolean;
|
|
4009
|
+
is_validated: boolean;
|
|
4010
|
+
created_at: string;
|
|
4011
|
+
created_by: null | string;
|
|
4012
|
+
}
|
|
4013
|
+
interface NativeSkosMapping {
|
|
4014
|
+
id: string;
|
|
4015
|
+
concept_id: string;
|
|
4016
|
+
target_uri: string;
|
|
4017
|
+
target_scheme_uri: null | string;
|
|
4018
|
+
target_label: null | string;
|
|
4019
|
+
relation_type: 'broad_match' | 'close_match' | 'exact_match' | 'narrow_match' | 'related_match';
|
|
4020
|
+
confidence: null | number;
|
|
4021
|
+
is_validated: boolean;
|
|
4022
|
+
created_at: string;
|
|
4023
|
+
validated_at: null | string;
|
|
4024
|
+
validated_by: null | string;
|
|
4025
|
+
}
|
|
4026
|
+
interface NativeSkosMembership {
|
|
4027
|
+
concept_id: string;
|
|
4028
|
+
scheme_id: string;
|
|
4029
|
+
is_top_concept: boolean;
|
|
4030
|
+
added_at: string;
|
|
4031
|
+
}
|
|
4032
|
+
interface NativeNoteSkosTag {
|
|
4033
|
+
note_id: string;
|
|
4034
|
+
concept_id: string;
|
|
4035
|
+
source: string;
|
|
4036
|
+
confidence: null | number;
|
|
4037
|
+
relevance_score: null | number;
|
|
4038
|
+
is_primary: boolean;
|
|
4039
|
+
created_at: string;
|
|
4040
|
+
created_by: null | string;
|
|
4041
|
+
}
|
|
4042
|
+
interface NativeSkosCollection {
|
|
4043
|
+
id: string;
|
|
4044
|
+
uri: null | string;
|
|
4045
|
+
pref_label: string;
|
|
4046
|
+
definition: null | string;
|
|
4047
|
+
is_ordered: boolean;
|
|
4048
|
+
scheme_id: null | string;
|
|
4049
|
+
created_at: string;
|
|
4050
|
+
updated_at: string;
|
|
4051
|
+
}
|
|
4052
|
+
interface NativeSkosCollectionMember {
|
|
4053
|
+
collection_id: string;
|
|
4054
|
+
concept_id: string;
|
|
4055
|
+
position: null | number;
|
|
4056
|
+
added_at: string;
|
|
4057
|
+
}
|
|
3221
4058
|
/**
|
|
3222
4059
|
* SkosRepository — SKOS taxonomy management (schemes, concepts, relations).
|
|
3223
4060
|
*
|
|
@@ -3226,7 +4063,7 @@ declare class LinksRepository {
|
|
|
3226
4063
|
* - Create, list, and soft-delete SKOS concepts within schemes
|
|
3227
4064
|
* - Create and query broader/narrower/related concept relations
|
|
3228
4065
|
*/
|
|
3229
|
-
interface SkosScheme {
|
|
4066
|
+
interface SkosScheme extends Partial<Omit<NativeSkosScheme, 'created_at' | 'embedded_at' | 'embedding' | 'issued_at' | 'modified_at' | 'updated_at'>> {
|
|
3230
4067
|
id: string;
|
|
3231
4068
|
title: string;
|
|
3232
4069
|
description: null | string;
|
|
@@ -3234,7 +4071,7 @@ interface SkosScheme {
|
|
|
3234
4071
|
updated_at: Date;
|
|
3235
4072
|
deleted_at: Date | null;
|
|
3236
4073
|
}
|
|
3237
|
-
interface SkosConcept {
|
|
4074
|
+
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
4075
|
id: string;
|
|
3239
4076
|
scheme_id: string;
|
|
3240
4077
|
pref_label: string;
|
|
@@ -3244,14 +4081,14 @@ interface SkosConcept {
|
|
|
3244
4081
|
updated_at: Date;
|
|
3245
4082
|
deleted_at: Date | null;
|
|
3246
4083
|
}
|
|
3247
|
-
interface SkosRelation {
|
|
4084
|
+
interface SkosRelation extends Partial<Omit<NativeSkosRelation, 'created_at' | 'object_id' | 'relation_type' | 'subject_id'>> {
|
|
3248
4085
|
id: string;
|
|
3249
4086
|
source_concept_id: string;
|
|
3250
4087
|
target_concept_id: string;
|
|
3251
4088
|
relation_type: string;
|
|
3252
4089
|
created_at: Date;
|
|
3253
4090
|
}
|
|
3254
|
-
interface NoteSkosTag {
|
|
4091
|
+
interface NoteSkosTag extends Partial<Omit<NativeNoteSkosTag, 'created_at'>> {
|
|
3255
4092
|
id: string;
|
|
3256
4093
|
note_id: string;
|
|
3257
4094
|
concept_id: string;
|
|
@@ -3274,29 +4111,149 @@ declare class SkosRepository {
|
|
|
3274
4111
|
tagNote(noteId: string, conceptId: string): Promise<NoteSkosTag>;
|
|
3275
4112
|
untagNote(noteId: string, conceptId: string): Promise<void>;
|
|
3276
4113
|
conceptsForNote(noteId: string): Promise<SkosConcept[]>;
|
|
4114
|
+
getSchemeRecord(id: string): Promise<NativeSkosScheme | null>;
|
|
4115
|
+
getConceptRecord(id: string): Promise<NativeSkosConcept | null>;
|
|
4116
|
+
getLabels(conceptId: string): Promise<NativeSkosLabel[]>;
|
|
4117
|
+
getNotes(conceptId: string): Promise<NativeSkosNote[]>;
|
|
4118
|
+
getMappings(conceptId: string): Promise<NativeSkosMapping[]>;
|
|
4119
|
+
getSchemeMemberships(conceptId: string): Promise<NativeSkosMembership[]>;
|
|
4120
|
+
getAssignments(noteId: string): Promise<NativeNoteSkosTag[]>;
|
|
4121
|
+
listCollections(schemeId?: string): Promise<NativeSkosCollection[]>;
|
|
4122
|
+
getCollectionMembers(collectionId: string): Promise<NativeSkosCollectionMember[]>;
|
|
3277
4123
|
}
|
|
3278
4124
|
interface ProvenanceEdge {
|
|
3279
4125
|
id: string;
|
|
3280
4126
|
entity_type: string;
|
|
3281
4127
|
entity_id: string;
|
|
3282
4128
|
activity: string;
|
|
3283
|
-
agent: string;
|
|
4129
|
+
agent: null | string;
|
|
3284
4130
|
started_at: Date;
|
|
3285
4131
|
ended_at: Date | null;
|
|
3286
|
-
attributes:
|
|
4132
|
+
attributes: unknown;
|
|
3287
4133
|
}
|
|
3288
4134
|
interface RecordProvenanceInput {
|
|
3289
4135
|
activity: string;
|
|
3290
|
-
agent: string;
|
|
4136
|
+
agent: null | string;
|
|
3291
4137
|
startedAt?: Date | string;
|
|
3292
4138
|
endedAt?: Date | null | string;
|
|
3293
|
-
attributes?:
|
|
4139
|
+
attributes?: unknown;
|
|
3294
4140
|
}
|
|
3295
4141
|
declare class ProvenanceRepository {
|
|
3296
4142
|
private db;
|
|
3297
4143
|
constructor(db: DatabaseClient);
|
|
3298
4144
|
recordProvenance(entityType: string, entityId: string, input: RecordProvenanceInput): Promise<ProvenanceEdge>;
|
|
3299
4145
|
forEntity(entityType: string, entityId: string): Promise<ProvenanceEdge[]>;
|
|
4146
|
+
getActivity(id: string): Promise<NativeProvenanceActivity>;
|
|
4147
|
+
activitiesForNote(noteId: string): Promise<NativeProvenanceActivity[]>;
|
|
4148
|
+
derivationsForRevision(revisionId: string): Promise<NativeProvenanceEdge[]>;
|
|
4149
|
+
getNamedLocation(id: string): Promise<NativeNamedLocation>;
|
|
4150
|
+
getLocation(id: string): Promise<NativeProvenanceLocation>;
|
|
4151
|
+
getDevice(id: string): Promise<NativeProvenanceDevice>;
|
|
4152
|
+
getCapture(id: string): Promise<NativeProvenanceRecord>;
|
|
4153
|
+
captureForNote(noteId: string): Promise<NativeProvenanceRecord>;
|
|
4154
|
+
}
|
|
4155
|
+
interface NativeProvenanceActivity {
|
|
4156
|
+
id: string;
|
|
4157
|
+
note_id: string;
|
|
4158
|
+
revision_id: null | string;
|
|
4159
|
+
activity_type: string;
|
|
4160
|
+
model_name: null | string;
|
|
4161
|
+
started_at: string;
|
|
4162
|
+
ended_at: null | string;
|
|
4163
|
+
metadata: unknown;
|
|
4164
|
+
}
|
|
4165
|
+
interface NativeProvenanceEdge {
|
|
4166
|
+
id: string;
|
|
4167
|
+
revision_id: null | string;
|
|
4168
|
+
source_note_id: null | string;
|
|
4169
|
+
source_url: null | string;
|
|
4170
|
+
relation: string;
|
|
4171
|
+
created_at_utc: string;
|
|
4172
|
+
}
|
|
4173
|
+
interface NativeNamedLocation {
|
|
4174
|
+
id: string;
|
|
4175
|
+
name: string;
|
|
4176
|
+
slug: string;
|
|
4177
|
+
display_name: null | string;
|
|
4178
|
+
location_type: 'city' | 'country' | 'home' | 'poi' | 'region' | 'work';
|
|
4179
|
+
point_ewkb_hex: null | string;
|
|
4180
|
+
boundary_ewkb_hex: null | string;
|
|
4181
|
+
radius_m: null | number;
|
|
4182
|
+
address_line: null | string;
|
|
4183
|
+
locality: null | string;
|
|
4184
|
+
admin_area: null | string;
|
|
4185
|
+
country: null | string;
|
|
4186
|
+
country_code: null | string;
|
|
4187
|
+
postal_code: null | string;
|
|
4188
|
+
timezone: null | string;
|
|
4189
|
+
altitude_m: null | number;
|
|
4190
|
+
owner_id: null | string;
|
|
4191
|
+
is_private: boolean | null;
|
|
4192
|
+
metadata: unknown;
|
|
4193
|
+
created_at: string;
|
|
4194
|
+
updated_at: string;
|
|
4195
|
+
}
|
|
4196
|
+
interface NativeProvenanceLocation {
|
|
4197
|
+
id: string;
|
|
4198
|
+
point_ewkb_hex: string;
|
|
4199
|
+
horizontal_accuracy_m: null | number;
|
|
4200
|
+
altitude_m: null | number;
|
|
4201
|
+
vertical_accuracy_m: null | number;
|
|
4202
|
+
heading_degrees: null | number;
|
|
4203
|
+
speed_mps: null | number;
|
|
4204
|
+
named_location_id: null | string;
|
|
4205
|
+
source: 'ai_estimated' | 'device_api' | 'geocoded' | 'gps_exif' | 'unknown' | 'user_manual';
|
|
4206
|
+
confidence: 'high' | 'low' | 'medium' | 'unknown';
|
|
4207
|
+
created_at: string;
|
|
4208
|
+
}
|
|
4209
|
+
interface NativeProvenanceDevice {
|
|
4210
|
+
id: string;
|
|
4211
|
+
device_make: null | string;
|
|
4212
|
+
device_model: null | string;
|
|
4213
|
+
device_os: null | string;
|
|
4214
|
+
device_os_version: null | string;
|
|
4215
|
+
software: null | string;
|
|
4216
|
+
software_version: null | string;
|
|
4217
|
+
has_gps: boolean | null;
|
|
4218
|
+
has_accelerometer: boolean | null;
|
|
4219
|
+
sensor_metadata: unknown;
|
|
4220
|
+
owner_id: null | string;
|
|
4221
|
+
device_name: null | string;
|
|
4222
|
+
created_at: string;
|
|
4223
|
+
}
|
|
4224
|
+
interface NativeTimestampRange {
|
|
4225
|
+
empty: boolean;
|
|
4226
|
+
lower: null | string;
|
|
4227
|
+
lower_inclusive: boolean;
|
|
4228
|
+
lower_infinite: boolean;
|
|
4229
|
+
upper: null | string;
|
|
4230
|
+
upper_inclusive: boolean;
|
|
4231
|
+
upper_infinite: boolean;
|
|
4232
|
+
}
|
|
4233
|
+
interface NativeProvenanceRecord {
|
|
4234
|
+
id: string;
|
|
4235
|
+
attachment_id: null | string;
|
|
4236
|
+
note_id: null | string;
|
|
4237
|
+
capture_time: NativeTimestampRange | null;
|
|
4238
|
+
capture_timezone: null | string;
|
|
4239
|
+
capture_duration_seconds: null | number;
|
|
4240
|
+
time_source: 'ai_estimated' | 'device_clock' | 'exif' | 'file_metadata' | 'file_mtime' | 'gps' | 'manual' | 'network' | 'user_manual' | null;
|
|
4241
|
+
time_confidence: 'approximate' | 'estimated' | 'exact' | 'high' | 'low' | 'medium' | 'unknown' | null;
|
|
4242
|
+
location_id: null | string;
|
|
4243
|
+
device_id: null | string;
|
|
4244
|
+
activity_id: null | string;
|
|
4245
|
+
event_type: 'accessed' | 'audio' | 'created' | 'modified' | 'photo' | 'recording' | 'scan' | 'screenshot' | 'shared' | 'unknown' | 'video' | null;
|
|
4246
|
+
event_title: null | string;
|
|
4247
|
+
event_description: null | string;
|
|
4248
|
+
raw_metadata: unknown;
|
|
4249
|
+
ai_context: unknown;
|
|
4250
|
+
ai_processed_at: null | string;
|
|
4251
|
+
ai_model: null | string;
|
|
4252
|
+
user_corrected: boolean | null;
|
|
4253
|
+
original_capture_time: NativeTimestampRange | null;
|
|
4254
|
+
original_location_id: null | string;
|
|
4255
|
+
correction_note: null | string;
|
|
4256
|
+
created_at: string;
|
|
3300
4257
|
}
|
|
3301
4258
|
/**
|
|
3302
4259
|
* captureKnowledge — tool function for creating notes.
|
|
@@ -4923,6 +5880,12 @@ declare function exportShard(db: DatabaseClient, options?: ExportOptions): Promi
|
|
|
4923
5880
|
* @returns Import result with counts, warnings, and errors
|
|
4924
5881
|
*/
|
|
4925
5882
|
declare function importShard(db: DatabaseClient, data: ArrayBuffer | Uint8Array, options?: ImportOptions): Promise<ImportResult>;
|
|
5883
|
+
/** Archival storage has no native row batching or native import progress phases. */
|
|
5884
|
+
type FullV1SnapshotImportOptions = Pick<ImportOptions, 'blobStore' | 'conflictStrategy' | 'trustStore' | 'verifySignature'>;
|
|
5885
|
+
/** Persist a validated archival snapshot, not native repository state. */
|
|
5886
|
+
declare function importFullV1Snapshot(db: DatabaseClient, data: ArrayBuffer | Uint8Array, options?: FullV1SnapshotImportOptions): Promise<ImportResult>;
|
|
5887
|
+
/** Re-emit the stored archival state; intentionally excludes native repository changes. */
|
|
5888
|
+
declare function exportFullV1Snapshot(db: DatabaseClient, blobStore: NonNullable<ImportOptions['blobStore']>): Promise<ShardExportResult>;
|
|
4926
5889
|
interface ShardSchemaValidationResult {
|
|
4927
5890
|
valid: boolean;
|
|
4928
5891
|
errors: string[];
|
|
@@ -5692,5 +6655,5 @@ declare function purgeRecordStoreGraph(store: RecordStore, selector: PurgeSelect
|
|
|
5692
6655
|
* @created 2026-07-17
|
|
5693
6656
|
* @agent Codex
|
|
5694
6657
|
*/
|
|
5695
|
-
declare const VERSION = "2026.9.
|
|
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 };
|
|
6658
|
+
declare const VERSION = "2026.9.4";
|
|
6659
|
+
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 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, 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 };
|