Typescript SDK reference
Every discovered public declaration and client signature in the local typescript SDK source.
This reference lists 368 source declarations from 5 files. It preserves signatures and types rather than assuming identical APIs across languages. See SDK compatibility before using a method against a deployed instance.
src/control-plane/client.ts
ControlPlaneConfig
export interface ControlPlaneConfig {
baseUrl: string;
apiKey?: string;
timeout?: number;
}Source: minds-ts-sdk/src/control-plane/client.ts:5.
TenantInfo
export interface TenantInfo {
id: string;
name: string;
status: string;
createdAt: string;
updatedAt: string;
config?: Record<string, unknown>;
}Source: minds-ts-sdk/src/control-plane/client.ts:11.
BackupInfo
export interface BackupInfo {
id: string;
tenantId: string;
status: string;
createdAt: string;
sizeBytes?: number;
}Source: minds-ts-sdk/src/control-plane/client.ts:20.
MonitoringMetrics
export interface MonitoringMetrics {
memoryUsageBytes: number;
storageUsageBytes: number;
activeConnections: number;
requestsPerSecond: number;
latencyP50Ms: number;
latencyP99Ms: number;
}Source: minds-ts-sdk/src/control-plane/client.ts:28.
ControlPlaneClient
export class ControlPlaneClientSource: minds-ts-sdk/src/control-plane/client.ts:37.
ControlPlaneClient.constructor
constructor(config: ControlPlaneConfig)Source: minds-ts-sdk/src/control-plane/client.ts:42.
ControlPlaneClient.listTenants
async listTenants(): Promise<TenantInfo[]>Source: minds-ts-sdk/src/control-plane/client.ts:79.
ControlPlaneClient.getTenant
async getTenant(id: string): Promise<TenantInfo>Source: minds-ts-sdk/src/control-plane/client.ts:83.
ControlPlaneClient.createTenant
async createTenant(name: string, config?: Record<string, unknown>): Promise<TenantInfo>Source: minds-ts-sdk/src/control-plane/client.ts:87.
ControlPlaneClient.deleteTenant
async deleteTenant(id: string): Promise<void>Source: minds-ts-sdk/src/control-plane/client.ts:91.
ControlPlaneClient.listBackups
async listBackups(tenantId?: string): Promise<BackupInfo[]>Source: minds-ts-sdk/src/control-plane/client.ts:96.
ControlPlaneClient.createBackup
async createBackup(tenantId: string): Promise<BackupInfo>Source: minds-ts-sdk/src/control-plane/client.ts:101.
ControlPlaneClient.restoreBackup
async restoreBackup(backupId: string, targetTenantId?: string): Promise<void>Source: minds-ts-sdk/src/control-plane/client.ts:105.
ControlPlaneClient.getMetrics
async getMetrics(): Promise<MonitoringMetrics>Source: minds-ts-sdk/src/control-plane/client.ts:112.
ControlPlaneClient.healthCheck
async healthCheck(): Promise<{ status: string }>Source: minds-ts-sdk/src/control-plane/client.ts:116.
createControlPlane
export function createControlPlane(config: ControlPlaneConfig): ControlPlaneClientSource: minds-ts-sdk/src/control-plane/client.ts:124.
createControlPlaneFromEnv
export function createControlPlaneFromEnv(): ControlPlaneClientSource: minds-ts-sdk/src/control-plane/client.ts:133.
src/index.ts
Result
export type Result<T> = Promise<T>;Source: minds-ts-sdk/src/index.ts:1.
NamespaceHeaders
export interface NamespaceHeaders {
tenantId?: string;
reservoirId?: string;
agentId?: string;
dataspaceId?: string;
}Source: minds-ts-sdk/src/index.ts:3.
SDKConfig
export interface SDKConfig {
baseUrl: string;
token?: string;
timeoutMs?: number;
namespace?: NamespaceHeaders;
}Source: minds-ts-sdk/src/index.ts:10.
KeyspaceInfo
export interface KeyspaceInfo {
name: string;
model: string;
config?: Record<string, unknown>;
created_at?: string;
item_count?: number;
}Source: minds-ts-sdk/src/index.ts:21.
EngineStats
export interface EngineStats {
keyspace_count: number;
total_items: number;
memory_usage_bytes: number;
uptime_secs: number;
[key: string]: unknown;
}Source: minds-ts-sdk/src/index.ts:29.
TransactionInfo
export interface TransactionInfo {
tx_id: string;
status: 'active' | 'committed' | 'aborted';
started_at: string;
}Source: minds-ts-sdk/src/index.ts:37.
DataspaceInfo
export interface DataspaceInfo {
name: string;
keyspaces: string[];
}Source: minds-ts-sdk/src/index.ts:43.
BackupInfo
export interface BackupInfo {
backup_id: string;
name?: string;
created_at: string;
size_bytes: number;
keyspaces: string[];
}Source: minds-ts-sdk/src/index.ts:48.
ReplicationLink
export interface ReplicationLink {
link_id: string;
target_url: string;
mode: 'sync' | 'async';
status: 'active' | 'paused' | 'error';
keyspaces: string[];
lag_ms?: number;
}Source: minds-ts-sdk/src/index.ts:56.
KVItem
export interface KVItem {
key: string;
value: unknown;
version?: number;
metadata?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:69.
KVScanResult
export interface KVScanResult {
items: KVItem[];
cursor?: string;
has_more: boolean;
}Source: minds-ts-sdk/src/index.ts:76.
VectorIndexInfo
export interface VectorIndexInfo {
name: string;
dimension: number;
metric: 'cosine' | 'euclidean' | 'dot';
count: number;
config?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:86.
VectorSearchResult
export interface VectorSearchResult {
id: string;
score: number;
metadata?: Record<string, unknown>;
vector?: number[];
}Source: minds-ts-sdk/src/index.ts:94.
EpisodicEvent
export interface EpisodicEvent {
id?: string;
event_type: string;
content: unknown;
timestamp?: string;
metadata?: Record<string, unknown>;
embedding?: number[];
}Source: minds-ts-sdk/src/index.ts:105.
ProceduralWorkflow
export interface ProceduralWorkflow {
id?: string;
name: string;
steps: WorkflowStep[];
description?: string;
metadata?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:114.
WorkflowStep
export interface WorkflowStep {
action: string;
params?: Record<string, unknown>;
conditions?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:122.
ResourceDocument
export interface ResourceDocument {
id?: string;
name: string;
content_type: string;
content: string | ArrayBuffer;
metadata?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:128.
VaultEntry
export interface VaultEntry {
id?: string;
key: string;
value: unknown;
sensitivity: 'low' | 'medium' | 'high' | 'critical';
metadata?: Record<string, unknown>;
expires_at?: string;
}Source: minds-ts-sdk/src/index.ts:136.
CognitiveThought
export interface CognitiveThought {
id?: string;
content: string;
thought_type: string;
confidence?: number;
context?: Record<string, unknown>;
timestamp?: string;
}Source: minds-ts-sdk/src/index.ts:145.
CognitiveDecision
export interface CognitiveDecision {
id?: string;
question: string;
options: string[];
selected: string;
reasoning?: string;
confidence?: number;
timestamp?: string;
}Source: minds-ts-sdk/src/index.ts:154.
CognitiveInteraction
export interface CognitiveInteraction {
id?: string;
interaction_type: string;
input: unknown;
output: unknown;
duration_ms?: number;
metadata?: Record<string, unknown>;
timestamp?: string;
}Source: minds-ts-sdk/src/index.ts:164.
HybridRetrievalResult
export interface HybridRetrievalResult {
id: string;
content: unknown;
score: number;
source: 'episodic' | 'semantic' | 'procedural' | 'resource';
metadata?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:174.
ModelInfo
export interface ModelInfo {
model_id: string;
model_type: 'embedding' | 'classification' | 'generation';
loaded: boolean;
config?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:186.
EmbeddingResult
export interface EmbeddingResult {
embeddings: number[][];
}Source: minds-ts-sdk/src/index.ts:193.
SNNArchitecture
export interface SNNArchitecture {
layers: SNNLayer[];
connections: SNNConnection[];
}Source: minds-ts-sdk/src/index.ts:201.
SNNLayer
export interface SNNLayer {
name: string;
neuron_type: 'lif' | 'izhikevich' | 'adaptive';
size: number;
params?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:206.
SNNConnection
export interface SNNConnection {
from: string;
to: string;
weight_init?: 'random' | 'uniform' | 'normal';
params?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:213.
SNNNetwork
export interface SNNNetwork {
network_id: string;
architecture: SNNArchitecture;
compiled: boolean;
}Source: minds-ts-sdk/src/index.ts:220.
SNNStepResult
export interface SNNStepResult {
spikes: Record<string, number[]>;
voltages?: Record<string, number[]>;
time_step: number;
}Source: minds-ts-sdk/src/index.ts:226.
NSRetrievalResult
export interface NSRetrievalResult {
items: NSRetrievedItem[];
total_score: number;
}Source: minds-ts-sdk/src/index.ts:236.
NSRetrievedItem
export interface NSRetrievedItem {
id: string;
content: unknown;
neural_score: number;
symbolic_score: number;
combined_score: number;
path?: string[];
}Source: minds-ts-sdk/src/index.ts:241.
NSPath
export interface NSPath {
nodes: string[];
edges: string[];
cost: number;
}Source: minds-ts-sdk/src/index.ts:250.
CheckpointInfo
export interface CheckpointInfo {
checkpoint_id: string;
name?: string;
created_at: string;
components: string[];
metadata?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:260.
ComponentInfo
export interface ComponentInfo {
name: string;
component_type: 'model' | 'embeddings' | 'custom';
registered_at: string;
ewc_importance?: number;
}Source: minds-ts-sdk/src/index.ts:268.
MHNNetwork
export interface MHNNetwork {
id: string;
dimension: number;
capacity: number;
beta: number;
pattern_count: number;
}Source: minds-ts-sdk/src/index.ts:279.
MHNRetrievalResult
export interface MHNRetrievalResult {
key?: string;
pattern: number[];
score: number;
metadata?: Record<string, unknown>;
}Source: minds-ts-sdk/src/index.ts:287.
AkashaError
export class AkashaError extends ErrorSource: minds-ts-sdk/src/index.ts:298.
AkashaError.constructor
constructor(public readonly code: number, message: string, public readonly details?: unknown)Source: minds-ts-sdk/src/index.ts:299.
HttpClient
export class HttpClientSource: minds-ts-sdk/src/index.ts:305.
HttpClient.constructor
constructor(cfg: SDKConfig)Source: minds-ts-sdk/src/index.ts:311.
HttpClient.stream
async stream(path: string, body?: unknown, headers?: HeadersInit): Promise<Response>Source: minds-ts-sdk/src/index.ts:340.
HttpClient.request
async request<T>(method: string, path: string, body?: unknown, headers?: HeadersInit): Result<T>Source: minds-ts-sdk/src/index.ts:363.
HttpClient.get
get<T>(path: string, headers?: HeadersInit)Source: minds-ts-sdk/src/index.ts:388.
HttpClient.post
post<T>(path: string, body?: unknown, headers?: HeadersInit)Source: minds-ts-sdk/src/index.ts:389.
HttpClient.put
put<T>(path: string, body?: unknown, headers?: HeadersInit)Source: minds-ts-sdk/src/index.ts:390.
HttpClient.patch
patch<T>(path: string, body?: unknown, headers?: HeadersInit)Source: minds-ts-sdk/src/index.ts:391.
HttpClient.delete
delete<T>(path: string, headers?: HeadersInit)Source: minds-ts-sdk/src/index.ts:392.
CoreClient
export class CoreClientSource: minds-ts-sdk/src/index.ts:395.
CoreClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:396.
CoreClient.stats
stats(): Result<EngineStats>Source: minds-ts-sdk/src/index.ts:403.
CoreClient.listKeyspaces
listKeyspaces(): Result<KeyspaceInfo[]>Source: minds-ts-sdk/src/index.ts:406.
CoreClient.createKeyspace
createKeyspace(name: string, model: string, config?: Record<string, unknown>): Result<KeyspaceInfo>Source: minds-ts-sdk/src/index.ts:411.
CoreClient.getKeyspace
getKeyspace(name: string): Result<KeyspaceInfo | null>Source: minds-ts-sdk/src/index.ts:416.
CoreClient.deleteKeyspace
deleteKeyspace(name: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:424.
CoreClient.store
store(keyspace: string, item: Record<string, unknown>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:436.
CoreClient.get
get(keyspace: string, itemId: string): Result<Record<string, unknown> | null>Source: minds-ts-sdk/src/index.ts:441.
CoreClient.delete
delete(keyspace: string, itemId: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:449.
CoreClient.query
query<T = Record<string, unknown>>(keyspace: string, query: Record<string, unknown>, limit = 100, offset = 0): Result<T[]>Source: minds-ts-sdk/src/index.ts:457.
CoreClient.textSearch
textSearch(query: string, keyspaces?: string[], limit = 100): Result<{ id: string; keyspace: string; score: number }[]>Source: minds-ts-sdk/src/index.ts:462.
CoreClient.beginTransaction
beginTransaction(): Result<TransactionInfo>Source: minds-ts-sdk/src/index.ts:471.
CoreClient.commitTransaction
commitTransaction(txId: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:474.
CoreClient.abortTransaction
abortTransaction(txId: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:477.
CoreClient.listDataspaces
listDataspaces(): Result<DataspaceInfo[]>Source: minds-ts-sdk/src/index.ts:484.
CoreClient.switchNamespace
switchNamespace(namespace: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:489.
CoreClient.analyze
analyze(keyspace?: string): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:498.
CoreClient.compact
compact(keyspace?: string): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:503.
CoreClient.reindex
reindex(keyspace?: string): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:508.
CoreClient.clearCache
clearCache(): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:513.
CoreClient.createBackup
createBackup(name?: string, keyspaces?: string[]): Result<BackupInfo>Source: minds-ts-sdk/src/index.ts:520.
CoreClient.listBackups
listBackups(): Result<BackupInfo[]>Source: minds-ts-sdk/src/index.ts:525.
CoreClient.restoreBackup
restoreBackup(backupId: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:530.
CoreClient.deleteBackup
deleteBackup(backupId: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:535.
CoreClient.createReplicationLink
createReplicationLink(targetUrl: string, keyspaces?: string[], mode: 'sync' | 'async' = 'async'): Result<ReplicationLink>Source: minds-ts-sdk/src/index.ts:547.
CoreClient.stopReplication
stopReplication(linkId: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:552.
CoreClient.getReplicationStatus
getReplicationStatus(linkId?: string): Result<{ links: ReplicationLink[] }>Source: minds-ts-sdk/src/index.ts:557.
GraphClient
export class GraphClientSource: minds-ts-sdk/src/index.ts:562.
GraphClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:563.
GraphClient.cypher
cypher<T = unknown>(query: string): Result<T[]>Source: minds-ts-sdk/src/index.ts:564.
GraphClient.search
search(text: string, limit = 10): Result<{ entity_id: string; score: number }[]>Source: minds-ts-sdk/src/index.ts:565.
GraphClient.ensurePropertyIndex
ensurePropertyIndex(property: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:568.
GraphClient.indexStats
indexStats(): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:569.
GraphClient.pagerank
pagerank(damping_factor?: number): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:570.
GraphClient.microtheorySwitch
microtheorySwitch(name: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:571.
GraphClient.microtheoryKeyspace
microtheoryKeyspace(name: string): Result<{ keyspace: string }>Source: minds-ts-sdk/src/index.ts:572.
AnalyticsClient
export class AnalyticsClientSource: minds-ts-sdk/src/index.ts:575.
AnalyticsClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:576.
AnalyticsClient.sql
sql<T = unknown>(query: string): Result<T[]>Source: minds-ts-sdk/src/index.ts:577.
AnalyticsClient.registerSource
registerSource(name: string, kind: 'csv'|'parquet'|'core', spec: Record<string, unknown>): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:578.
AnalyticsClient.options
options(opts: Record<string, unknown>): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:582.
AnalyticsClient.cacheClear
cacheClear(): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:583.
AnalyticsClient.cacheStats
cacheStats(): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:584.
MlClient
export class MlClientSource: minds-ts-sdk/src/index.ts:587.
MlClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:588.
MlClient.embed
embed(text: string): Result<{ vector: number[] }>Source: minds-ts-sdk/src/index.ts:589.
MlClient.generate
generate(modelId: string, prompt: string, maxTokens = 256, temperature = 0.7): Result<{ text: string }>Source: minds-ts-sdk/src/index.ts:590.
MlClient.generateStream
async *generateStream(modelId: string, prompt: string, maxTokens = 256, temperature = 0.7): AsyncGenerator<string, void, void>Source: minds-ts-sdk/src/index.ts:593.
KVClient
export class KVClientSource: minds-ts-sdk/src/index.ts:625.
KVClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:626.
KVClient.get
get(key: string): Result<KVItem | null>Source: minds-ts-sdk/src/index.ts:628.
KVClient.set
set(key: string, value: unknown, metadata?: Record<string, unknown>): Result<{ ok: boolean; version: number }>Source: minds-ts-sdk/src/index.ts:635.
KVClient.remove
remove(key: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:639.
KVClient.exists
exists(key: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:646.
KVClient.scan
scan(prefix?: string, cursor?: string, limit = 100): Result<KVScanResult>Source: minds-ts-sdk/src/index.ts:650.
KVClient.mget
mget(keys: string[]): Result<KVItem[]>Source: minds-ts-sdk/src/index.ts:654.
KVClient.mset
mset(items: { key: string; value: unknown; metadata?: Record<string, unknown> }[]): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:658.
KVClient.incr
incr(key: string, delta = 1): Result<{ value: number }>Source: minds-ts-sdk/src/index.ts:662.
KVClient.setex
setex(key: string, value: unknown, ttlSecs: number): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:666.
VectorClient
export class VectorClientSource: minds-ts-sdk/src/index.ts:675.
VectorClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:676.
VectorClient.createIndex
createIndex(name: string, dimension: number, metric: 'cosine' | 'euclidean' | 'dot' = 'cosine', config?: Record<string, unknown>): Result<VectorIndexInfo>Source: minds-ts-sdk/src/index.ts:678.
VectorClient.listIndices
listIndices(): Result<VectorIndexInfo[]>Source: minds-ts-sdk/src/index.ts:682.
VectorClient.deleteIndex
deleteIndex(name: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:686.
VectorClient.add
add(indexName: string, vectors: number[][], ids: string[], metadata?: Record<string, unknown>[]): Result<{ added: number }>Source: minds-ts-sdk/src/index.ts:693.
VectorClient.search
search(indexName: string, query: number[], topK = 10, filter?: Record<string, unknown>): Result<VectorSearchResult[]>Source: minds-ts-sdk/src/index.ts:697.
VectorClient.deleteVectors
deleteVectors(indexName: string, ids: string[]): Result<{ deleted: number }>Source: minds-ts-sdk/src/index.ts:701.
VectorClient.getStats
getStats(indexName: string): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:705.
VectorClient.save
save(indexName: string, path: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:709.
VectorClient.load
load(indexName: string, path: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:713.
EpisodicMemoryClient
export class EpisodicMemoryClientSource: minds-ts-sdk/src/index.ts:722.
EpisodicMemoryClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:723.
EpisodicMemoryClient.insert
insert(event: Omit<EpisodicEvent, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:725.
EpisodicMemoryClient.get
get(id: string): Result<EpisodicEvent | null>Source: minds-ts-sdk/src/index.ts:729.
EpisodicMemoryClient.update
update(id: string, event: Partial<EpisodicEvent>): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:736.
EpisodicMemoryClient.remove
remove(id: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:740.
EpisodicMemoryClient.search
search(query: string, limit = 10, eventTypes?: string[]): Result<EpisodicEvent[]>Source: minds-ts-sdk/src/index.ts:747.
EpisodicMemoryClient.range
range(startTime: string, endTime: string, limit = 100, eventTypes?: string[]): Result<EpisodicEvent[]>Source: minds-ts-sdk/src/index.ts:751.
EpisodicMemoryClient.recent
recent(limit = 10, eventTypes?: string[]): Result<EpisodicEvent[]>Source: minds-ts-sdk/src/index.ts:755.
ProceduralMemoryClient
export class ProceduralMemoryClientSource: minds-ts-sdk/src/index.ts:760.
ProceduralMemoryClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:761.
ProceduralMemoryClient.store
store(workflow: Omit<ProceduralWorkflow, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:763.
ProceduralMemoryClient.get
get(id: string): Result<ProceduralWorkflow | null>Source: minds-ts-sdk/src/index.ts:767.
ProceduralMemoryClient.getByName
getByName(name: string): Result<ProceduralWorkflow | null>Source: minds-ts-sdk/src/index.ts:774.
ProceduralMemoryClient.list
list(limit = 100, offset = 0): Result<ProceduralWorkflow[]>Source: minds-ts-sdk/src/index.ts:781.
ProceduralMemoryClient.update
update(id: string, workflow: Partial<ProceduralWorkflow>): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:785.
ProceduralMemoryClient.remove
remove(id: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:789.
ProceduralMemoryClient.run
run(id: string, params?: Record<string, unknown>): Result<{ result: unknown; steps_done: number }>Source: minds-ts-sdk/src/index.ts:796.
ResourceMemoryClient
export class ResourceMemoryClientSource: minds-ts-sdk/src/index.ts:801.
ResourceMemoryClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:802.
ResourceMemoryClient.upload
upload(resource: Omit<ResourceDocument, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:804.
ResourceMemoryClient.get
get(id: string): Result<ResourceDocument | null>Source: minds-ts-sdk/src/index.ts:808.
ResourceMemoryClient.list
list(contentType?: string, limit = 100, offset = 0): Result<ResourceDocument[]>Source: minds-ts-sdk/src/index.ts:815.
ResourceMemoryClient.search
search(query: string, contentTypes?: string[], limit = 10): Result<ResourceDocument[]>Source: minds-ts-sdk/src/index.ts:819.
ResourceMemoryClient.remove
remove(id: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:823.
ResourceMemoryClient.updateMetadata
updateMetadata(id: string, metadata: Record<string, unknown>): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:830.
VaultMemoryClient
export class VaultMemoryClientSource: minds-ts-sdk/src/index.ts:835.
VaultMemoryClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:836.
VaultMemoryClient.store
store(entry: Omit<VaultEntry, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:838.
VaultMemoryClient.get
get(key: string): Result<VaultEntry | null>Source: minds-ts-sdk/src/index.ts:842.
VaultMemoryClient.listKeys
listKeys(sensitivity?: 'low' | 'medium' | 'high' | 'critical'): Result<string[]>Source: minds-ts-sdk/src/index.ts:849.
VaultMemoryClient.remove
remove(key: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:853.
VaultMemoryClient.rotateKey
rotateKey(): Result<{ ok: boolean; rotated_at: string }>Source: minds-ts-sdk/src/index.ts:860.
CognitiveMemoryClient
export class CognitiveMemoryClientSource: minds-ts-sdk/src/index.ts:865.
CognitiveMemoryClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:866.
CognitiveMemoryClient.thought
thought(thought: Omit<CognitiveThought, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:868.
CognitiveMemoryClient.decision
decision(decision: Omit<CognitiveDecision, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:872.
CognitiveMemoryClient.interaction
interaction(interaction: Omit<CognitiveInteraction, 'id'>): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:876.
CognitiveMemoryClient.getSession
getSession(sessionId: string, limit = 100): Result<{ thoughts: CognitiveThought[]; decisions: CognitiveDecision[]; interactions: CognitiveInteraction[] }>Source: minds-ts-sdk/src/index.ts:880.
CognitiveMemoryClient.query
query(query: string, types?: ('thought' | 'decision' | 'interaction')[], limit = 10): Result<{ items: (CognitiveThought | CognitiveDecision | CognitiveInteraction)[] }>Source: minds-ts-sdk/src/index.ts:884.
CognitiveMemoryClient.getReasoningChain
getReasoningChain(decisionId: string): Result<{ thoughts: CognitiveThought[]; decision: CognitiveDecision }>Source: minds-ts-sdk/src/index.ts:888.
MemoryClient
export class MemoryClientSource: minds-ts-sdk/src/index.ts:897.
MemoryClient.episodic
public readonly episodic: EpisodicMemoryClient;Source: minds-ts-sdk/src/index.ts:898.
MemoryClient.procedural
public readonly procedural: ProceduralMemoryClient;Source: minds-ts-sdk/src/index.ts:899.
MemoryClient.resources
public readonly resources: ResourceMemoryClient;Source: minds-ts-sdk/src/index.ts:900.
MemoryClient.vault
public readonly vault: VaultMemoryClient;Source: minds-ts-sdk/src/index.ts:901.
MemoryClient.cognitive
public readonly cognitive: CognitiveMemoryClient;Source: minds-ts-sdk/src/index.ts:902.
MemoryClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:904.
MemoryClient.hybridRetrieval
hybridRetrieval(query: string, limit = 10, sources?: ('episodic' | 'semantic' | 'procedural' | 'resource')[]): Result<HybridRetrievalResult[]>Source: minds-ts-sdk/src/index.ts:912.
MemoryClient.stats
stats(): Result<Record<string, unknown>>Source: minds-ts-sdk/src/index.ts:916.
AkashaClient
export class AkashaClientSource: minds-ts-sdk/src/index.ts:921.
AkashaClient.core
public readonly core: CoreClient;Source: minds-ts-sdk/src/index.ts:922.
AkashaClient.kv
public readonly kv: KVClient;Source: minds-ts-sdk/src/index.ts:923.
AkashaClient.graph
public readonly graph: GraphClient;Source: minds-ts-sdk/src/index.ts:924.
AkashaClient.vector
public readonly vector: VectorClient;Source: minds-ts-sdk/src/index.ts:925.
AkashaClient.analytics
public readonly analytics: AnalyticsClient;Source: minds-ts-sdk/src/index.ts:926.
AkashaClient.ml
public readonly ml: MlClient;Source: minds-ts-sdk/src/index.ts:927.
AkashaClient.memory
public readonly memory: MemoryClient;Source: minds-ts-sdk/src/index.ts:928.
AkashaClient.router
public readonly router: RouterClient;Source: minds-ts-sdk/src/index.ts:929.
AkashaClient.snn
public readonly snn: SnnClient;Source: minds-ts-sdk/src/index.ts:930.
AkashaClient.ns
public readonly ns: NsClient;Source: minds-ts-sdk/src/index.ts:931.
AkashaClient.continual
public readonly continual: ContinualClient;Source: minds-ts-sdk/src/index.ts:932.
AkashaClient.mhn
public readonly mhn: MhnClient;Source: minds-ts-sdk/src/index.ts:933.
AkashaClient.brain
public readonly brain: CognitiveBrain;Source: minds-ts-sdk/src/index.ts:934.
AkashaClient.constructor
constructor(cfg: SDKConfig)Source: minds-ts-sdk/src/index.ts:936.
resolveAkashaBase
export function resolveAkashaBase(input: string): stringSource: minds-ts-sdk/src/index.ts:954.
connect
export async function connect(uri: string, opts?: Omit<SDKConfig, 'baseUrl'>): Promise<AkashaClient>Source: minds-ts-sdk/src/index.ts:963.
AkashaResolvedEndpoint
export interface AkashaResolvedEndpoint {
protocol: string;
address: string;
tls: boolean;
alpn?: string;
region?: string;
path?: string;
}Source: minds-ts-sdk/src/index.ts:968.
AkashaResolved
export interface AkashaResolved {
baseUrl: string;
endpoints: AkashaResolvedEndpoint[];
grpcAddress?: string;
}Source: minds-ts-sdk/src/index.ts:977.
resolveAkasha
export async function resolveAkasha(uri: string): Promise<AkashaResolved>Source: minds-ts-sdk/src/index.ts:983.
RouterClient
export class RouterClientSource: minds-ts-sdk/src/index.ts:1014.
RouterClient.constructor
constructor()Source: minds-ts-sdk/src/index.ts:1019.
RouterClient.connect
async connect(address: string): Promise<void>Source: minds-ts-sdk/src/index.ts:1032.
RouterClient.registerCapability
registerCapability(req: any): Promise<any>Source: minds-ts-sdk/src/index.ts:1046.
RouterClient.queryCapabilities
queryCapabilities(req: any): Promise<any>Source: minds-ts-sdk/src/index.ts:1047.
RouterClient.routeTask
routeTask(req: any): Promise<any>Source: minds-ts-sdk/src/index.ts:1048.
SnnClient
export class SnnClientSource: minds-ts-sdk/src/index.ts:1058.
SnnClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:1059.
SnnClient.build
build(architecture: SNNArchitecture, name?: string): Result<SNNNetwork>Source: minds-ts-sdk/src/index.ts:1062.
SnnClient.compile
compile(networkId: string, optimizations?: string[]): Result<{ ok: boolean; compilation_time_ms: number }>Source: minds-ts-sdk/src/index.ts:1067.
SnnClient.step
step(networkId: string, inputs: Record<string, number[]>, dt = 1.0): Result<SNNStepResult>Source: minds-ts-sdk/src/index.ts:1072.
SnnClient.trainBptt
trainBptt(networkId: string, data: { inputs: number[][]; targets: number[][] }, epochs = 100, learningRate = 0.01): Result<{ final_loss: number; epochs_run: number }>Source: minds-ts-sdk/src/index.ts:1077.
SnnClient.getState
getState(networkId: string, include?: ('voltages' | 'spikes' | 'weights')[]): Result<{ state: Record<string, unknown> }>Source: minds-ts-sdk/src/index.ts:1082.
SnnClient.reset
reset(networkId: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:1087.
SnnClient.list
list(): Result<SNNNetwork[]>Source: minds-ts-sdk/src/index.ts:1092.
SnnClient.remove
remove(networkId: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:1097.
NsClient
export class NsClientSource: minds-ts-sdk/src/index.ts:1105.
NsClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:1106.
NsClient.retrieve
retrieve(query: string, limit = 10, neuralWeight = 0.5): Result<NSRetrievalResult>Source: minds-ts-sdk/src/index.ts:1109.
NsClient.findPaths
findPaths(startNode: string, endNode: string, maxDepth = 5, algorithm: 'bfs' | 'dijkstra' | 'astar' = 'bfs'): Result<{ paths: NSPath[] }>Source: minds-ts-sdk/src/index.ts:1114.
NsClient.prefetchStart
prefetchStart(pattern: string, depth = 2): Result<{ prefetch_id: string }>Source: minds-ts-sdk/src/index.ts:1119.
NsClient.prefetchStop
prefetchStop(prefetchId: string): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:1124.
NsClient.cacheStats
cacheStats(): Result<{ hit_rate: number; size_bytes: number; entry_count: number }>Source: minds-ts-sdk/src/index.ts:1129.
NsClient.cacheClear
cacheClear(): Result<{ ok: boolean; cleared_entries: number }>Source: minds-ts-sdk/src/index.ts:1134.
NsClient.addKnowledge
addKnowledge(subject: string, predicate: string, object: string, confidence = 1.0): Result<{ id: string }>Source: minds-ts-sdk/src/index.ts:1139.
NsClient.queryKnowledge
queryKnowledge(pattern: { subject?: string; predicate?: string; object?: string }, limit = 100): Result<{ triples: { subject: string; predicate: string; object: string; confidence: number }[] }>Source: minds-ts-sdk/src/index.ts:1144.
ContinualClient
export class ContinualClientSource: minds-ts-sdk/src/index.ts:1149.
ContinualClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:1150.
ContinualClient.createCheckpoint
createCheckpoint(name?: string, components?: string[], metadata?: Record<string, unknown>): Result<CheckpointInfo>Source: minds-ts-sdk/src/index.ts:1153.
ContinualClient.getCheckpointStatus
getCheckpointStatus(checkpointId?: string): Result<CheckpointInfo>Source: minds-ts-sdk/src/index.ts:1158.
ContinualClient.listCheckpoints
listCheckpoints(): Result<CheckpointInfo[]>Source: minds-ts-sdk/src/index.ts:1164.
ContinualClient.recover
recover(checkpointId: string, components?: string[], strategy: 'full' | 'selective' | 'merge' = 'full'): Result<{ ok: boolean; recovered_components: string[] }>Source: minds-ts-sdk/src/index.ts:1169.
ContinualClient.registerComponent
registerComponent(name: string, state: Record<string, unknown>, componentType: 'model' | 'embeddings' | 'custom' = 'model', ewcImportance?: number): Result<{ ok: boolean }>Source: minds-ts-sdk/src/index.ts:1174.
ContinualClient.unregisterComponent
unregisterComponent(name: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:1179.
ContinualClient.listComponents
listComponents(): Result<ComponentInfo[]>Source: minds-ts-sdk/src/index.ts:1187.
ContinualClient.deleteCheckpoint
deleteCheckpoint(checkpointId: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:1192.
MhnClient
export class MhnClientSource: minds-ts-sdk/src/index.ts:1200.
MhnClient.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:1201.
MhnClient.create
create(dimension: number, capacity = 1000, beta = 1.0, name?: string, config?: Record<string, unknown>): Result<MHNNetwork>Source: minds-ts-sdk/src/index.ts:1204.
MhnClient.store
store(networkId: string, patterns: number[][], keys?: string[], metadata?: Record<string, unknown>[]): Result<{ stored: number }>Source: minds-ts-sdk/src/index.ts:1209.
MhnClient.retrieve
retrieve(networkId: string, query: number[], topK = 1, iterations = 1, includeScores = true): Result<MHNRetrievalResult[]>Source: minds-ts-sdk/src/index.ts:1214.
MhnClient.deletePattern
deletePattern(networkId: string, key: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:1219.
MhnClient.getStats
getStats(networkId: string): Result<{ pattern_count: number; capacity: number; capacity_usage: number; dimension: number }>Source: minds-ts-sdk/src/index.ts:1227.
MhnClient.clear
clear(networkId: string): Result<{ ok: boolean; cleared: number }>Source: minds-ts-sdk/src/index.ts:1232.
MhnClient.list
list(): Result<MHNNetwork[]>Source: minds-ts-sdk/src/index.ts:1237.
MhnClient.deleteNetwork
deleteNetwork(networkId: string): Result<boolean>Source: minds-ts-sdk/src/index.ts:1242.
MhnClient.systemInfo
systemInfo(): Result<{ version: string; device: string; memory_usage_bytes: number }>Source: minds-ts-sdk/src/index.ts:1250.
McpMemoryContext
export interface McpMemoryContext {
source?: string;
timestamp?: string;
importance?: number;
tags?: string[];
}Source: minds-ts-sdk/src/index.ts:1259.
McpStoredMemory
export interface McpStoredMemory {
stored: boolean;
memory_id: string;
memory_type: string;
was_duplicate: boolean;
duplicate_of?: string;
importance: number;
related_ids: string[];
contradiction_warning?: string;
}Source: minds-ts-sdk/src/index.ts:1266.
McpRetrievedMemory
export interface McpRetrievedMemory {
id: string;
content: string;
memory_type: string;
relevance: number;
confidence: number;
importance: number;
timestamp: string;
tags: string[];
}Source: minds-ts-sdk/src/index.ts:1277.
McpReflectionResult
export interface McpReflectionResult {
topic: string;
insights: string[];
patterns: string[];
connections: number;
recommendations: string[];
}Source: minds-ts-sdk/src/index.ts:1288.
McpIntrospectionResult
export interface McpIntrospectionResult {
total_memories: number;
by_type: Record<string, number>;
health: string;
oldest_memory: string | null;
newest_memory: string | null;
avg_importance: number;
}Source: minds-ts-sdk/src/index.ts:1296.
McpToolCallResult
export interface McpToolCallResult {
result: unknown;
metadata?: {
duration_ms: number;
memories_processed: number;
trace_id: string;
timestamp: string;
};
}Source: minds-ts-sdk/src/index.ts:1305.
CognitiveBrain
export class CognitiveBrainSource: minds-ts-sdk/src/index.ts:1321.
CognitiveBrain.constructor
constructor(private readonly http: HttpClient)Source: minds-ts-sdk/src/index.ts:1322.
CognitiveBrain.remember
remember(content: string, context?: McpMemoryContext, memoryTypeHint?: string): Result<McpStoredMemory>Source: minds-ts-sdk/src/index.ts:1325.
CognitiveBrain.recall
recall(query: string, options?: { limit?: number; memoryTypes?: string[]; tags?: string[]; minImportance?: number }): Result<{ memories: McpRetrievedMemory[]; total_matches: number }>Source: minds-ts-sdk/src/index.ts:1334.
CognitiveBrain.forget
forget(memoryIds: string[], reason: string, options?: { confirmBulk?: boolean; mode?: 'soft' | 'hard' }): Result<{ deleted_count: number; audit_id: string }>Source: minds-ts-sdk/src/index.ts:1347.
CognitiveBrain.reflect
reflect(topic?: string): Result<McpReflectionResult>Source: minds-ts-sdk/src/index.ts:1357.
CognitiveBrain.introspect
introspect(aspect?: string): Result<McpIntrospectionResult>Source: minds-ts-sdk/src/index.ts:1362.
CognitiveBrain.callTool
callTool(toolName: string, args: Record<string, unknown>): Result<McpToolCallResult>Source: minds-ts-sdk/src/index.ts:1367.
CognitiveBrain.listTools
listTools(): Result<{ name: string; description: string; tier: number }[]>Source: minds-ts-sdk/src/index.ts:1372.
src/services/akashagraph-service.ts
GraphNode
export interface GraphNode {
id: string;
labels: string[];
properties: Record<string, any>;
validFrom?: number;
validTo?: number;
transactionTime?: number;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:8.
GraphEdge
export interface GraphEdge {
id?: string;
from: string;
to: string;
type: string;
properties?: Record<string, any>;
validFrom?: number;
validTo?: number;
transactionTime?: number;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:17.
GraphPath
export interface GraphPath {
nodes: GraphNode[];
edges: GraphEdge[];
length: number;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:28.
GraphQueryResult
export interface GraphQueryResult {
nodes: GraphNode[];
edges: GraphEdge[];
metadata?: Record<string, any>;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:34.
TemporalClauseOptions
export interface TemporalClauseOptions {
validTime?: number;
transactionTime?: number;
validRange?: { from: number; to: number };
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:40.
CypherLiteOptions
export interface CypherLiteOptions {
allowUpdates?: boolean;
enforceTransactions?: boolean;
temporal?: TemporalClauseOptions;
params?: Record<string, any>;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:46.
SchemaPropertyDefinition
export interface SchemaPropertyDefinition {
propertyType: string;
required: boolean;
indexed: boolean;
description?: string;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:53.
SchemaNodeSchema
export interface SchemaNodeSchema {
label: string;
properties: Record<string, SchemaPropertyDefinition>;
description?: string;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:60.
SchemaEdgeSchema
export interface SchemaEdgeSchema {
predicate: string;
properties: Record<string, SchemaPropertyDefinition>;
description?: string;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:66.
GraphSchemaMetadata
export interface GraphSchemaMetadata {
version: number;
lastUpdated: string;
nodeSchemas: Record<string, SchemaNodeSchema>;
edgeSchemas: Record<string, SchemaEdgeSchema>;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:72.
GraphTraversalOptions
export interface GraphTraversalOptions {
maxDepth?: number;
direction?: 'outgoing' | 'incoming' | 'both';
edgeTypes?: string[];
nodeLabels?: string[];
asOfTime?: number;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:79.
AkashaGraphBackend
export interface AkashaGraphBackend {
createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>;
getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>;
updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>;
deleteNode(namespace: string, nodeId: string): Promise<boolean>;
createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>;
getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>;
deleteEdge(namespace: string, edgeId: string): Promise<boolean>;
findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>;
traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>;
query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>;
cypherLite(namespace: string, cypher: string, options?: CypherLiteOptions): Promise<GraphQueryResult>;
getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>;
close(): Promise<void>;
}Source: minds-ts-sdk/src/services/akashagraph-service.ts:90.
AkashaGraphHttpBackend
export class AkashaGraphHttpBackend implements AkashaGraphBackendSource: minds-ts-sdk/src/services/akashagraph-service.ts:112.
AkashaGraphHttpBackend.constructor
constructor(endpoint?: string, timeout: number = 5000, tenantId?: string)Source: minds-ts-sdk/src/services/akashagraph-service.ts:117.
AkashaGraphHttpBackend.createNode
async createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>Source: minds-ts-sdk/src/services/akashagraph-service.ts:158.
AkashaGraphHttpBackend.getNode
async getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>Source: minds-ts-sdk/src/services/akashagraph-service.ts:165.
AkashaGraphHttpBackend.updateNode
async updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>Source: minds-ts-sdk/src/services/akashagraph-service.ts:180.
AkashaGraphHttpBackend.deleteNode
async deleteNode(namespace: string, nodeId: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashagraph-service.ts:190.
AkashaGraphHttpBackend.createEdge
async createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>Source: minds-ts-sdk/src/services/akashagraph-service.ts:205.
AkashaGraphHttpBackend.getEdge
async getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>Source: minds-ts-sdk/src/services/akashagraph-service.ts:212.
AkashaGraphHttpBackend.deleteEdge
async deleteEdge(namespace: string, edgeId: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashagraph-service.ts:227.
AkashaGraphHttpBackend.findPath
async findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>Source: minds-ts-sdk/src/services/akashagraph-service.ts:242.
AkashaGraphHttpBackend.traverse
async traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:264.
AkashaGraphHttpBackend.query
async query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:283.
AkashaGraphHttpBackend.cypherLite
async cypherLite(namespace: string, cypher: string, options?: CypherLiteOptions): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:293.
AkashaGraphHttpBackend.getSchemaMetadata
async getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>Source: minds-ts-sdk/src/services/akashagraph-service.ts:309.
AkashaGraphHttpBackend.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/akashagraph-service.ts:318.
AkashaGraphMemoryBackend
export class AkashaGraphMemoryBackend implements AkashaGraphBackendSource: minds-ts-sdk/src/services/akashagraph-service.ts:326.
AkashaGraphMemoryBackend.constructor
constructor()Source: minds-ts-sdk/src/services/akashagraph-service.ts:332.
AkashaGraphMemoryBackend.createNode
async createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>Source: minds-ts-sdk/src/services/akashagraph-service.ts:390.
AkashaGraphMemoryBackend.getNode
async getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>Source: minds-ts-sdk/src/services/akashagraph-service.ts:403.
AkashaGraphMemoryBackend.updateNode
async updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>Source: minds-ts-sdk/src/services/akashagraph-service.ts:419.
AkashaGraphMemoryBackend.deleteNode
async deleteNode(namespace: string, nodeId: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashagraph-service.ts:437.
AkashaGraphMemoryBackend.createEdge
async createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>Source: minds-ts-sdk/src/services/akashagraph-service.ts:458.
AkashaGraphMemoryBackend.getEdge
async getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>Source: minds-ts-sdk/src/services/akashagraph-service.ts:473.
AkashaGraphMemoryBackend.deleteEdge
async deleteEdge(namespace: string, edgeId: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashagraph-service.ts:489.
AkashaGraphMemoryBackend.findPath
async findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>Source: minds-ts-sdk/src/services/akashagraph-service.ts:503.
AkashaGraphMemoryBackend.traverse
async traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:589.
AkashaGraphMemoryBackend.query
async query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:669.
AkashaGraphMemoryBackend.cypherLite
async cypherLite(namespace: string, cypher: string, _options?: CypherLiteOptions): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:675.
AkashaGraphMemoryBackend.getSchemaMetadata
async getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>Source: minds-ts-sdk/src/services/akashagraph-service.ts:679.
AkashaGraphMemoryBackend.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/akashagraph-service.ts:773.
AkashaGraphService
export class AkashaGraphServiceSource: minds-ts-sdk/src/services/akashagraph-service.ts:802.
AkashaGraphService.create
static async create(endpoint?: string, timeout?: number, tenantId?: string): Promise<AkashaGraphService>Source: minds-ts-sdk/src/services/akashagraph-service.ts:814.
AkashaGraphService.createWithBackend
static createWithBackend(
backend: 'http' | 'memory',
endpoint?: string,
timeout?: number,
tenantId?: string,
): AkashaGraphServiceSource: minds-ts-sdk/src/services/akashagraph-service.ts:844.
AkashaGraphService.getBackendType
getBackendType(): 'http' | 'memory'Source: minds-ts-sdk/src/services/akashagraph-service.ts:857.
AkashaGraphService.createNode
async createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>Source: minds-ts-sdk/src/services/akashagraph-service.ts:861.
AkashaGraphService.getNode
async getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>Source: minds-ts-sdk/src/services/akashagraph-service.ts:865.
AkashaGraphService.updateNode
async updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>Source: minds-ts-sdk/src/services/akashagraph-service.ts:869.
AkashaGraphService.deleteNode
async deleteNode(namespace: string, nodeId: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashagraph-service.ts:873.
AkashaGraphService.createEdge
async createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>Source: minds-ts-sdk/src/services/akashagraph-service.ts:877.
AkashaGraphService.getEdge
async getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>Source: minds-ts-sdk/src/services/akashagraph-service.ts:881.
AkashaGraphService.deleteEdge
async deleteEdge(namespace: string, edgeId: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashagraph-service.ts:885.
AkashaGraphService.findPath
async findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>Source: minds-ts-sdk/src/services/akashagraph-service.ts:889.
AkashaGraphService.traverse
async traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:893.
AkashaGraphService.query
async query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:897.
AkashaGraphService.cypherLite
async cypherLite(namespace: string, cypher: string, options?: CypherLiteOptions): Promise<GraphQueryResult>Source: minds-ts-sdk/src/services/akashagraph-service.ts:901.
AkashaGraphService.getSchemaMetadata
async getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>Source: minds-ts-sdk/src/services/akashagraph-service.ts:905.
AkashaGraphService.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/akashagraph-service.ts:909.
src/services/akashakv-service.ts
KVPutOptions
export interface KVPutOptions {
ttl?: number; // TTL in seconds
metadata?: Record<string, any>;
}Source: minds-ts-sdk/src/services/akashakv-service.ts:8.
KVGetResult
export interface KVGetResult<T = any> {
value: T;
metadata?: Record<string, any>;
version?: number;
timestamp?: number;
}Source: minds-ts-sdk/src/services/akashakv-service.ts:13.
KVListResult
export interface KVListResult {
keys: string[];
hasMore: boolean;
cursor?: string;
}Source: minds-ts-sdk/src/services/akashakv-service.ts:20.
KVWatchCallback
export interface KVWatchCallback {
(key: string, value: any, operation: 'put' | 'delete'): void | Promise<void>;
}Source: minds-ts-sdk/src/services/akashakv-service.ts:26.
AkashaKVBackend
export interface AkashaKVBackend {
put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>;
get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>;
delete(namespace: string, key: string): Promise<boolean>;
list(namespace: string, prefix?: string, limit?: number, cursor?: string): Promise<KVListResult>;
watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>;
close(): Promise<void>;
}Source: minds-ts-sdk/src/services/akashakv-service.ts:33.
AkashaKVHttpBackend
export class AkashaKVHttpBackend implements AkashaKVBackendSource: minds-ts-sdk/src/services/akashakv-service.ts:45.
AkashaKVHttpBackend.constructor
constructor(endpoint?: string, timeout: number = 5000)Source: minds-ts-sdk/src/services/akashakv-service.ts:50.
AkashaKVHttpBackend.put
async put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>Source: minds-ts-sdk/src/services/akashakv-service.ts:56.
AkashaKVHttpBackend.get
async get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>Source: minds-ts-sdk/src/services/akashakv-service.ts:93.
AkashaKVHttpBackend.delete
async delete(namespace: string, key: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashakv-service.ts:134.
AkashaKVHttpBackend.list
async list(namespace: string, prefix?: string, limit: number = 100, cursor?: string): Promise<KVListResult>Source: minds-ts-sdk/src/services/akashakv-service.ts:169.
AkashaKVHttpBackend.watch
async watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>Source: minds-ts-sdk/src/services/akashakv-service.ts:211.
AkashaKVHttpBackend.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/akashakv-service.ts:277.
AkashaKVMemoryBackend
export class AkashaKVMemoryBackend implements AkashaKVBackendSource: minds-ts-sdk/src/services/akashakv-service.ts:289.
AkashaKVMemoryBackend.constructor
constructor()Source: minds-ts-sdk/src/services/akashakv-service.ts:295.
AkashaKVMemoryBackend.put
async put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>Source: minds-ts-sdk/src/services/akashakv-service.ts:349.
AkashaKVMemoryBackend.get
async get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>Source: minds-ts-sdk/src/services/akashakv-service.ts:365.
AkashaKVMemoryBackend.delete
async delete(namespace: string, key: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashakv-service.ts:387.
AkashaKVMemoryBackend.list
async list(namespace: string, prefix?: string, limit: number = 100, cursor?: string): Promise<KVListResult>Source: minds-ts-sdk/src/services/akashakv-service.ts:399.
AkashaKVMemoryBackend.watch
async watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>Source: minds-ts-sdk/src/services/akashakv-service.ts:437.
AkashaKVMemoryBackend.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/akashakv-service.ts:449.
AkashaKVService
export class AkashaKVServiceSource: minds-ts-sdk/src/services/akashakv-service.ts:462.
AkashaKVService.create
static async create(endpoint?: string, timeout?: number): Promise<AkashaKVService>Source: minds-ts-sdk/src/services/akashakv-service.ts:474.
AkashaKVService.createWithBackend
static createWithBackend(backend: 'http' | 'memory', endpoint?: string, timeout?: number): AkashaKVServiceSource: minds-ts-sdk/src/services/akashakv-service.ts:505.
AkashaKVService.getBackendType
getBackendType(): 'http' | 'memory'Source: minds-ts-sdk/src/services/akashakv-service.ts:513.
AkashaKVService.put
async put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>Source: minds-ts-sdk/src/services/akashakv-service.ts:517.
AkashaKVService.get
async get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>Source: minds-ts-sdk/src/services/akashakv-service.ts:521.
AkashaKVService.delete
async delete(namespace: string, key: string): Promise<boolean>Source: minds-ts-sdk/src/services/akashakv-service.ts:525.
AkashaKVService.list
async list(namespace: string, prefix?: string, limit?: number, cursor?: string): Promise<KVListResult>Source: minds-ts-sdk/src/services/akashakv-service.ts:529.
AkashaKVService.watch
async watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>Source: minds-ts-sdk/src/services/akashakv-service.ts:533.
AkashaKVService.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/akashakv-service.ts:537.
src/services/kv-graph-sync.ts
SyncConfig
export interface SyncConfig {
namespace: string;
syncPattern?: string; // Pattern for keys to sync (e.g., "entity:*")
autoCreateEdges?: boolean; // Auto-create edges from references
edgeProperty?: string; // Property name containing references (default: "relatedTo")
batchSize?: number; // Batch sync operations
syncInterval?: number; // Interval for batch processing (ms)
}Source: minds-ts-sdk/src/services/kv-graph-sync.ts:11.
SyncStats
export interface SyncStats {
nodesSynced: number;
edgesCreated: number;
errors: number;
lastSyncTime: number;
}Source: minds-ts-sdk/src/services/kv-graph-sync.ts:20.
KVGraphSyncService
export class KVGraphSyncServiceSource: minds-ts-sdk/src/services/kv-graph-sync.ts:30.
KVGraphSyncService.constructor
constructor(kv: AkashaKVService, graph: AkashaGraphService)Source: minds-ts-sdk/src/services/kv-graph-sync.ts:39.
KVGraphSyncService.startSync
async startSync(config: SyncConfig): Promise<void>Source: minds-ts-sdk/src/services/kv-graph-sync.ts:52.
KVGraphSyncService.stopSync
async stopSync(namespace: string): Promise<void>Source: minds-ts-sdk/src/services/kv-graph-sync.ts:88.
KVGraphSyncService.getStats
getStats(namespace: string): SyncStats | nullSource: minds-ts-sdk/src/services/kv-graph-sync.ts:115.
KVGraphSyncService.getActiveConfigs
getActiveConfigs(): SyncConfig[]Source: minds-ts-sdk/src/services/kv-graph-sync.ts:122.
KVGraphSyncService.syncEntity
async syncEntity(namespace: string, key: string): Promise<void>Source: minds-ts-sdk/src/services/kv-graph-sync.ts:129.
KVGraphSyncService.close
async close(): Promise<void>Source: minds-ts-sdk/src/services/kv-graph-sync.ts:416.
createKVGraphSync
export async function createKVGraphSync(
kvEndpoint?: string,
graphEndpoint?: string
): Promise<KVGraphSyncService>Source: minds-ts-sdk/src/services/kv-graph-sync.ts:427.