# Typescript SDK reference

Every discovered public declaration and client signature in the local typescript SDK source.

Source: https://docs.minds.sh/docs/developers/reference/typescript



This reference lists **368 source declarations** from **5 files**. It preserves signatures and types rather than assuming identical APIs across languages. See [SDK compatibility](/docs/developers/compatibility) before using a method against a deployed instance.

## src/control-plane/client.ts [#srccontrol-planeclientts]

### `ControlPlaneConfig` [#controlplaneconfig]

```typescript
export interface ControlPlaneConfig {
  baseUrl: string;
  apiKey?: string;
  timeout?: number;
}
```

Source: `minds-ts-sdk/src/control-plane/client.ts:5`.

### `TenantInfo` [#tenantinfo]

```typescript
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` [#backupinfo]

```typescript
export interface BackupInfo {
  id: string;
  tenantId: string;
  status: string;
  createdAt: string;
  sizeBytes?: number;
}
```

Source: `minds-ts-sdk/src/control-plane/client.ts:20`.

### `MonitoringMetrics` [#monitoringmetrics]

```typescript
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` [#controlplaneclient]

```typescript
export class ControlPlaneClient
```

Source: `minds-ts-sdk/src/control-plane/client.ts:37`.

### `ControlPlaneClient.constructor` [#controlplaneclientconstructor]

```typescript
constructor(config: ControlPlaneConfig)
```

Source: `minds-ts-sdk/src/control-plane/client.ts:42`.

### `ControlPlaneClient.listTenants` [#controlplaneclientlisttenants]

```typescript
async listTenants(): Promise<TenantInfo[]>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:79`.

### `ControlPlaneClient.getTenant` [#controlplaneclientgettenant]

```typescript
async getTenant(id: string): Promise<TenantInfo>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:83`.

### `ControlPlaneClient.createTenant` [#controlplaneclientcreatetenant]

```typescript
async createTenant(name: string, config?: Record<string, unknown>): Promise<TenantInfo>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:87`.

### `ControlPlaneClient.deleteTenant` [#controlplaneclientdeletetenant]

```typescript
async deleteTenant(id: string): Promise<void>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:91`.

### `ControlPlaneClient.listBackups` [#controlplaneclientlistbackups]

```typescript
async listBackups(tenantId?: string): Promise<BackupInfo[]>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:96`.

### `ControlPlaneClient.createBackup` [#controlplaneclientcreatebackup]

```typescript
async createBackup(tenantId: string): Promise<BackupInfo>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:101`.

### `ControlPlaneClient.restoreBackup` [#controlplaneclientrestorebackup]

```typescript
async restoreBackup(backupId: string, targetTenantId?: string): Promise<void>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:105`.

### `ControlPlaneClient.getMetrics` [#controlplaneclientgetmetrics]

```typescript
async getMetrics(): Promise<MonitoringMetrics>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:112`.

### `ControlPlaneClient.healthCheck` [#controlplaneclienthealthcheck]

```typescript
async healthCheck(): Promise<{ status: string }>
```

Source: `minds-ts-sdk/src/control-plane/client.ts:116`.

### `createControlPlane` [#createcontrolplane]

```typescript
export function createControlPlane(config: ControlPlaneConfig): ControlPlaneClient
```

Source: `minds-ts-sdk/src/control-plane/client.ts:124`.

### `createControlPlaneFromEnv` [#createcontrolplanefromenv]

```typescript
export function createControlPlaneFromEnv(): ControlPlaneClient
```

Source: `minds-ts-sdk/src/control-plane/client.ts:133`.

## src/index.ts [#srcindexts]

### `Result` [#result]

```typescript
export type Result<T> = Promise<T>;
```

Source: `minds-ts-sdk/src/index.ts:1`.

### `NamespaceHeaders` [#namespaceheaders]

```typescript
export interface NamespaceHeaders {
  tenantId?: string;
  reservoirId?: string;
  agentId?: string;
  dataspaceId?: string;
}
```

Source: `minds-ts-sdk/src/index.ts:3`.

### `SDKConfig` [#sdkconfig]

```typescript
export interface SDKConfig {
  baseUrl: string;
  token?: string;
  timeoutMs?: number;
  namespace?: NamespaceHeaders;
}
```

Source: `minds-ts-sdk/src/index.ts:10`.

### `KeyspaceInfo` [#keyspaceinfo]

```typescript
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` [#enginestats]

```typescript
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` [#transactioninfo]

```typescript
export interface TransactionInfo {
  tx_id: string;
  status: 'active' | 'committed' | 'aborted';
  started_at: string;
}
```

Source: `minds-ts-sdk/src/index.ts:37`.

### `DataspaceInfo` [#dataspaceinfo]

```typescript
export interface DataspaceInfo {
  name: string;
  keyspaces: string[];
}
```

Source: `minds-ts-sdk/src/index.ts:43`.

### `BackupInfo` [#backupinfo-1]

```typescript
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` [#replicationlink]

```typescript
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` [#kvitem]

```typescript
export interface KVItem {
  key: string;
  value: unknown;
  version?: number;
  metadata?: Record<string, unknown>;
}
```

Source: `minds-ts-sdk/src/index.ts:69`.

### `KVScanResult` [#kvscanresult]

```typescript
export interface KVScanResult {
  items: KVItem[];
  cursor?: string;
  has_more: boolean;
}
```

Source: `minds-ts-sdk/src/index.ts:76`.

### `VectorIndexInfo` [#vectorindexinfo]

```typescript
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` [#vectorsearchresult]

```typescript
export interface VectorSearchResult {
  id: string;
  score: number;
  metadata?: Record<string, unknown>;
  vector?: number[];
}
```

Source: `minds-ts-sdk/src/index.ts:94`.

### `EpisodicEvent` [#episodicevent]

```typescript
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` [#proceduralworkflow]

```typescript
export interface ProceduralWorkflow {
  id?: string;
  name: string;
  steps: WorkflowStep[];
  description?: string;
  metadata?: Record<string, unknown>;
}
```

Source: `minds-ts-sdk/src/index.ts:114`.

### `WorkflowStep` [#workflowstep]

```typescript
export interface WorkflowStep {
  action: string;
  params?: Record<string, unknown>;
  conditions?: Record<string, unknown>;
}
```

Source: `minds-ts-sdk/src/index.ts:122`.

### `ResourceDocument` [#resourcedocument]

```typescript
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` [#vaultentry]

```typescript
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` [#cognitivethought]

```typescript
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` [#cognitivedecision]

```typescript
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` [#cognitiveinteraction]

```typescript
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` [#hybridretrievalresult]

```typescript
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` [#modelinfo]

```typescript
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` [#embeddingresult]

```typescript
export interface EmbeddingResult {
  embeddings: number[][];
}
```

Source: `minds-ts-sdk/src/index.ts:193`.

### `SNNArchitecture` [#snnarchitecture]

```typescript
export interface SNNArchitecture {
  layers: SNNLayer[];
  connections: SNNConnection[];
}
```

Source: `minds-ts-sdk/src/index.ts:201`.

### `SNNLayer` [#snnlayer]

```typescript
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` [#snnconnection]

```typescript
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` [#snnnetwork]

```typescript
export interface SNNNetwork {
  network_id: string;
  architecture: SNNArchitecture;
  compiled: boolean;
}
```

Source: `minds-ts-sdk/src/index.ts:220`.

### `SNNStepResult` [#snnstepresult]

```typescript
export interface SNNStepResult {
  spikes: Record<string, number[]>;
  voltages?: Record<string, number[]>;
  time_step: number;
}
```

Source: `minds-ts-sdk/src/index.ts:226`.

### `NSRetrievalResult` [#nsretrievalresult]

```typescript
export interface NSRetrievalResult {
  items: NSRetrievedItem[];
  total_score: number;
}
```

Source: `minds-ts-sdk/src/index.ts:236`.

### `NSRetrievedItem` [#nsretrieveditem]

```typescript
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` [#nspath]

```typescript
export interface NSPath {
  nodes: string[];
  edges: string[];
  cost: number;
}
```

Source: `minds-ts-sdk/src/index.ts:250`.

### `CheckpointInfo` [#checkpointinfo]

```typescript
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` [#componentinfo]

```typescript
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` [#mhnnetwork]

```typescript
export interface MHNNetwork {
  id: string;
  dimension: number;
  capacity: number;
  beta: number;
  pattern_count: number;
}
```

Source: `minds-ts-sdk/src/index.ts:279`.

### `MHNRetrievalResult` [#mhnretrievalresult]

```typescript
export interface MHNRetrievalResult {
  key?: string;
  pattern: number[];
  score: number;
  metadata?: Record<string, unknown>;
}
```

Source: `minds-ts-sdk/src/index.ts:287`.

### `AkashaError` [#akashaerror]

```typescript
export class AkashaError extends Error
```

Source: `minds-ts-sdk/src/index.ts:298`.

### `AkashaError.constructor` [#akashaerrorconstructor]

```typescript
constructor(public readonly code: number, message: string, public readonly details?: unknown)
```

Source: `minds-ts-sdk/src/index.ts:299`.

### `HttpClient` [#httpclient]

```typescript
export class HttpClient
```

Source: `minds-ts-sdk/src/index.ts:305`.

### `HttpClient.constructor` [#httpclientconstructor]

```typescript
constructor(cfg: SDKConfig)
```

Source: `minds-ts-sdk/src/index.ts:311`.

### `HttpClient.stream` [#httpclientstream]

```typescript
async stream(path: string, body?: unknown, headers?: HeadersInit): Promise<Response>
```

Source: `minds-ts-sdk/src/index.ts:340`.

### `HttpClient.request` [#httpclientrequest]

```typescript
async request<T>(method: string, path: string, body?: unknown, headers?: HeadersInit): Result<T>
```

Source: `minds-ts-sdk/src/index.ts:363`.

### `HttpClient.get` [#httpclientget]

```typescript
get<T>(path: string, headers?: HeadersInit)
```

Source: `minds-ts-sdk/src/index.ts:388`.

### `HttpClient.post` [#httpclientpost]

```typescript
post<T>(path: string, body?: unknown, headers?: HeadersInit)
```

Source: `minds-ts-sdk/src/index.ts:389`.

### `HttpClient.put` [#httpclientput]

```typescript
put<T>(path: string, body?: unknown, headers?: HeadersInit)
```

Source: `minds-ts-sdk/src/index.ts:390`.

### `HttpClient.patch` [#httpclientpatch]

```typescript
patch<T>(path: string, body?: unknown, headers?: HeadersInit)
```

Source: `minds-ts-sdk/src/index.ts:391`.

### `HttpClient.delete` [#httpclientdelete]

```typescript
delete<T>(path: string, headers?: HeadersInit)
```

Source: `minds-ts-sdk/src/index.ts:392`.

### `CoreClient` [#coreclient]

```typescript
export class CoreClient
```

Source: `minds-ts-sdk/src/index.ts:395`.

### `CoreClient.constructor` [#coreclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:396`.

### `CoreClient.stats` [#coreclientstats]

```typescript
stats(): Result<EngineStats>
```

Source: `minds-ts-sdk/src/index.ts:403`.

### `CoreClient.listKeyspaces` [#coreclientlistkeyspaces]

```typescript
listKeyspaces(): Result<KeyspaceInfo[]>
```

Source: `minds-ts-sdk/src/index.ts:406`.

### `CoreClient.createKeyspace` [#coreclientcreatekeyspace]

```typescript
createKeyspace(name: string, model: string, config?: Record<string, unknown>): Result<KeyspaceInfo>
```

Source: `minds-ts-sdk/src/index.ts:411`.

### `CoreClient.getKeyspace` [#coreclientgetkeyspace]

```typescript
getKeyspace(name: string): Result<KeyspaceInfo | null>
```

Source: `minds-ts-sdk/src/index.ts:416`.

### `CoreClient.deleteKeyspace` [#coreclientdeletekeyspace]

```typescript
deleteKeyspace(name: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:424`.

### `CoreClient.store` [#coreclientstore]

```typescript
store(keyspace: string, item: Record<string, unknown>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:436`.

### `CoreClient.get` [#coreclientget]

```typescript
get(keyspace: string, itemId: string): Result<Record<string, unknown> | null>
```

Source: `minds-ts-sdk/src/index.ts:441`.

### `CoreClient.delete` [#coreclientdelete]

```typescript
delete(keyspace: string, itemId: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:449`.

### `CoreClient.query` [#coreclientquery]

```typescript
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` [#coreclienttextsearch]

```typescript
textSearch(query: string, keyspaces?: string[], limit = 100): Result<{ id: string; keyspace: string; score: number }[]>
```

Source: `minds-ts-sdk/src/index.ts:462`.

### `CoreClient.beginTransaction` [#coreclientbegintransaction]

```typescript
beginTransaction(): Result<TransactionInfo>
```

Source: `minds-ts-sdk/src/index.ts:471`.

### `CoreClient.commitTransaction` [#coreclientcommittransaction]

```typescript
commitTransaction(txId: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:474`.

### `CoreClient.abortTransaction` [#coreclientaborttransaction]

```typescript
abortTransaction(txId: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:477`.

### `CoreClient.listDataspaces` [#coreclientlistdataspaces]

```typescript
listDataspaces(): Result<DataspaceInfo[]>
```

Source: `minds-ts-sdk/src/index.ts:484`.

### `CoreClient.switchNamespace` [#coreclientswitchnamespace]

```typescript
switchNamespace(namespace: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:489`.

### `CoreClient.analyze` [#coreclientanalyze]

```typescript
analyze(keyspace?: string): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:498`.

### `CoreClient.compact` [#coreclientcompact]

```typescript
compact(keyspace?: string): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:503`.

### `CoreClient.reindex` [#coreclientreindex]

```typescript
reindex(keyspace?: string): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:508`.

### `CoreClient.clearCache` [#coreclientclearcache]

```typescript
clearCache(): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:513`.

### `CoreClient.createBackup` [#coreclientcreatebackup]

```typescript
createBackup(name?: string, keyspaces?: string[]): Result<BackupInfo>
```

Source: `minds-ts-sdk/src/index.ts:520`.

### `CoreClient.listBackups` [#coreclientlistbackups]

```typescript
listBackups(): Result<BackupInfo[]>
```

Source: `minds-ts-sdk/src/index.ts:525`.

### `CoreClient.restoreBackup` [#coreclientrestorebackup]

```typescript
restoreBackup(backupId: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:530`.

### `CoreClient.deleteBackup` [#coreclientdeletebackup]

```typescript
deleteBackup(backupId: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:535`.

### `CoreClient.createReplicationLink` [#coreclientcreatereplicationlink]

```typescript
createReplicationLink(targetUrl: string, keyspaces?: string[], mode: 'sync' | 'async' = 'async'): Result<ReplicationLink>
```

Source: `minds-ts-sdk/src/index.ts:547`.

### `CoreClient.stopReplication` [#coreclientstopreplication]

```typescript
stopReplication(linkId: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:552`.

### `CoreClient.getReplicationStatus` [#coreclientgetreplicationstatus]

```typescript
getReplicationStatus(linkId?: string): Result<{ links: ReplicationLink[] }>
```

Source: `minds-ts-sdk/src/index.ts:557`.

### `GraphClient` [#graphclient]

```typescript
export class GraphClient
```

Source: `minds-ts-sdk/src/index.ts:562`.

### `GraphClient.constructor` [#graphclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:563`.

### `GraphClient.cypher` [#graphclientcypher]

```typescript
cypher<T = unknown>(query: string): Result<T[]>
```

Source: `minds-ts-sdk/src/index.ts:564`.

### `GraphClient.search` [#graphclientsearch]

```typescript
search(text: string, limit = 10): Result<{ entity_id: string; score: number }[]>
```

Source: `minds-ts-sdk/src/index.ts:565`.

### `GraphClient.ensurePropertyIndex` [#graphclientensurepropertyindex]

```typescript
ensurePropertyIndex(property: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:568`.

### `GraphClient.indexStats` [#graphclientindexstats]

```typescript
indexStats(): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:569`.

### `GraphClient.pagerank` [#graphclientpagerank]

```typescript
pagerank(damping_factor?: number): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:570`.

### `GraphClient.microtheorySwitch` [#graphclientmicrotheoryswitch]

```typescript
microtheorySwitch(name: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:571`.

### `GraphClient.microtheoryKeyspace` [#graphclientmicrotheorykeyspace]

```typescript
microtheoryKeyspace(name: string): Result<{ keyspace: string }>
```

Source: `minds-ts-sdk/src/index.ts:572`.

### `AnalyticsClient` [#analyticsclient]

```typescript
export class AnalyticsClient
```

Source: `minds-ts-sdk/src/index.ts:575`.

### `AnalyticsClient.constructor` [#analyticsclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:576`.

### `AnalyticsClient.sql` [#analyticsclientsql]

```typescript
sql<T = unknown>(query: string): Result<T[]>
```

Source: `minds-ts-sdk/src/index.ts:577`.

### `AnalyticsClient.registerSource` [#analyticsclientregistersource]

```typescript
registerSource(name: string, kind: 'csv'|'parquet'|'core', spec: Record<string, unknown>): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:578`.

### `AnalyticsClient.options` [#analyticsclientoptions]

```typescript
options(opts: Record<string, unknown>): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:582`.

### `AnalyticsClient.cacheClear` [#analyticsclientcacheclear]

```typescript
cacheClear(): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:583`.

### `AnalyticsClient.cacheStats` [#analyticsclientcachestats]

```typescript
cacheStats(): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:584`.

### `MlClient` [#mlclient]

```typescript
export class MlClient
```

Source: `minds-ts-sdk/src/index.ts:587`.

### `MlClient.constructor` [#mlclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:588`.

### `MlClient.embed` [#mlclientembed]

```typescript
embed(text: string): Result<{ vector: number[] }>
```

Source: `minds-ts-sdk/src/index.ts:589`.

### `MlClient.generate` [#mlclientgenerate]

```typescript
generate(modelId: string, prompt: string, maxTokens = 256, temperature = 0.7): Result<{ text: string }>
```

Source: `minds-ts-sdk/src/index.ts:590`.

### `MlClient.generateStream` [#mlclientgeneratestream]

```typescript
async *generateStream(modelId: string, prompt: string, maxTokens = 256, temperature = 0.7): AsyncGenerator<string, void, void>
```

Source: `minds-ts-sdk/src/index.ts:593`.

### `KVClient` [#kvclient]

```typescript
export class KVClient
```

Source: `minds-ts-sdk/src/index.ts:625`.

### `KVClient.constructor` [#kvclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:626`.

### `KVClient.get` [#kvclientget]

```typescript
get(key: string): Result<KVItem | null>
```

Source: `minds-ts-sdk/src/index.ts:628`.

### `KVClient.set` [#kvclientset]

```typescript
set(key: string, value: unknown, metadata?: Record<string, unknown>): Result<{ ok: boolean; version: number }>
```

Source: `minds-ts-sdk/src/index.ts:635`.

### `KVClient.remove` [#kvclientremove]

```typescript
remove(key: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:639`.

### `KVClient.exists` [#kvclientexists]

```typescript
exists(key: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:646`.

### `KVClient.scan` [#kvclientscan]

```typescript
scan(prefix?: string, cursor?: string, limit = 100): Result<KVScanResult>
```

Source: `minds-ts-sdk/src/index.ts:650`.

### `KVClient.mget` [#kvclientmget]

```typescript
mget(keys: string[]): Result<KVItem[]>
```

Source: `minds-ts-sdk/src/index.ts:654`.

### `KVClient.mset` [#kvclientmset]

```typescript
mset(items: { key: string; value: unknown; metadata?: Record<string, unknown> }[]): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:658`.

### `KVClient.incr` [#kvclientincr]

```typescript
incr(key: string, delta = 1): Result<{ value: number }>
```

Source: `minds-ts-sdk/src/index.ts:662`.

### `KVClient.setex` [#kvclientsetex]

```typescript
setex(key: string, value: unknown, ttlSecs: number): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:666`.

### `VectorClient` [#vectorclient]

```typescript
export class VectorClient
```

Source: `minds-ts-sdk/src/index.ts:675`.

### `VectorClient.constructor` [#vectorclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:676`.

### `VectorClient.createIndex` [#vectorclientcreateindex]

```typescript
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` [#vectorclientlistindices]

```typescript
listIndices(): Result<VectorIndexInfo[]>
```

Source: `minds-ts-sdk/src/index.ts:682`.

### `VectorClient.deleteIndex` [#vectorclientdeleteindex]

```typescript
deleteIndex(name: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:686`.

### `VectorClient.add` [#vectorclientadd]

```typescript
add(indexName: string, vectors: number[][], ids: string[], metadata?: Record<string, unknown>[]): Result<{ added: number }>
```

Source: `minds-ts-sdk/src/index.ts:693`.

### `VectorClient.search` [#vectorclientsearch]

```typescript
search(indexName: string, query: number[], topK = 10, filter?: Record<string, unknown>): Result<VectorSearchResult[]>
```

Source: `minds-ts-sdk/src/index.ts:697`.

### `VectorClient.deleteVectors` [#vectorclientdeletevectors]

```typescript
deleteVectors(indexName: string, ids: string[]): Result<{ deleted: number }>
```

Source: `minds-ts-sdk/src/index.ts:701`.

### `VectorClient.getStats` [#vectorclientgetstats]

```typescript
getStats(indexName: string): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:705`.

### `VectorClient.save` [#vectorclientsave]

```typescript
save(indexName: string, path: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:709`.

### `VectorClient.load` [#vectorclientload]

```typescript
load(indexName: string, path: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:713`.

### `EpisodicMemoryClient` [#episodicmemoryclient]

```typescript
export class EpisodicMemoryClient
```

Source: `minds-ts-sdk/src/index.ts:722`.

### `EpisodicMemoryClient.constructor` [#episodicmemoryclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:723`.

### `EpisodicMemoryClient.insert` [#episodicmemoryclientinsert]

```typescript
insert(event: Omit<EpisodicEvent, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:725`.

### `EpisodicMemoryClient.get` [#episodicmemoryclientget]

```typescript
get(id: string): Result<EpisodicEvent | null>
```

Source: `minds-ts-sdk/src/index.ts:729`.

### `EpisodicMemoryClient.update` [#episodicmemoryclientupdate]

```typescript
update(id: string, event: Partial<EpisodicEvent>): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:736`.

### `EpisodicMemoryClient.remove` [#episodicmemoryclientremove]

```typescript
remove(id: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:740`.

### `EpisodicMemoryClient.search` [#episodicmemoryclientsearch]

```typescript
search(query: string, limit = 10, eventTypes?: string[]): Result<EpisodicEvent[]>
```

Source: `minds-ts-sdk/src/index.ts:747`.

### `EpisodicMemoryClient.range` [#episodicmemoryclientrange]

```typescript
range(startTime: string, endTime: string, limit = 100, eventTypes?: string[]): Result<EpisodicEvent[]>
```

Source: `minds-ts-sdk/src/index.ts:751`.

### `EpisodicMemoryClient.recent` [#episodicmemoryclientrecent]

```typescript
recent(limit = 10, eventTypes?: string[]): Result<EpisodicEvent[]>
```

Source: `minds-ts-sdk/src/index.ts:755`.

### `ProceduralMemoryClient` [#proceduralmemoryclient]

```typescript
export class ProceduralMemoryClient
```

Source: `minds-ts-sdk/src/index.ts:760`.

### `ProceduralMemoryClient.constructor` [#proceduralmemoryclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:761`.

### `ProceduralMemoryClient.store` [#proceduralmemoryclientstore]

```typescript
store(workflow: Omit<ProceduralWorkflow, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:763`.

### `ProceduralMemoryClient.get` [#proceduralmemoryclientget]

```typescript
get(id: string): Result<ProceduralWorkflow | null>
```

Source: `minds-ts-sdk/src/index.ts:767`.

### `ProceduralMemoryClient.getByName` [#proceduralmemoryclientgetbyname]

```typescript
getByName(name: string): Result<ProceduralWorkflow | null>
```

Source: `minds-ts-sdk/src/index.ts:774`.

### `ProceduralMemoryClient.list` [#proceduralmemoryclientlist]

```typescript
list(limit = 100, offset = 0): Result<ProceduralWorkflow[]>
```

Source: `minds-ts-sdk/src/index.ts:781`.

### `ProceduralMemoryClient.update` [#proceduralmemoryclientupdate]

```typescript
update(id: string, workflow: Partial<ProceduralWorkflow>): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:785`.

### `ProceduralMemoryClient.remove` [#proceduralmemoryclientremove]

```typescript
remove(id: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:789`.

### `ProceduralMemoryClient.run` [#proceduralmemoryclientrun]

```typescript
run(id: string, params?: Record<string, unknown>): Result<{ result: unknown; steps_done: number }>
```

Source: `minds-ts-sdk/src/index.ts:796`.

### `ResourceMemoryClient` [#resourcememoryclient]

```typescript
export class ResourceMemoryClient
```

Source: `minds-ts-sdk/src/index.ts:801`.

### `ResourceMemoryClient.constructor` [#resourcememoryclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:802`.

### `ResourceMemoryClient.upload` [#resourcememoryclientupload]

```typescript
upload(resource: Omit<ResourceDocument, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:804`.

### `ResourceMemoryClient.get` [#resourcememoryclientget]

```typescript
get(id: string): Result<ResourceDocument | null>
```

Source: `minds-ts-sdk/src/index.ts:808`.

### `ResourceMemoryClient.list` [#resourcememoryclientlist]

```typescript
list(contentType?: string, limit = 100, offset = 0): Result<ResourceDocument[]>
```

Source: `minds-ts-sdk/src/index.ts:815`.

### `ResourceMemoryClient.search` [#resourcememoryclientsearch]

```typescript
search(query: string, contentTypes?: string[], limit = 10): Result<ResourceDocument[]>
```

Source: `minds-ts-sdk/src/index.ts:819`.

### `ResourceMemoryClient.remove` [#resourcememoryclientremove]

```typescript
remove(id: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:823`.

### `ResourceMemoryClient.updateMetadata` [#resourcememoryclientupdatemetadata]

```typescript
updateMetadata(id: string, metadata: Record<string, unknown>): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:830`.

### `VaultMemoryClient` [#vaultmemoryclient]

```typescript
export class VaultMemoryClient
```

Source: `minds-ts-sdk/src/index.ts:835`.

### `VaultMemoryClient.constructor` [#vaultmemoryclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:836`.

### `VaultMemoryClient.store` [#vaultmemoryclientstore]

```typescript
store(entry: Omit<VaultEntry, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:838`.

### `VaultMemoryClient.get` [#vaultmemoryclientget]

```typescript
get(key: string): Result<VaultEntry | null>
```

Source: `minds-ts-sdk/src/index.ts:842`.

### `VaultMemoryClient.listKeys` [#vaultmemoryclientlistkeys]

```typescript
listKeys(sensitivity?: 'low' | 'medium' | 'high' | 'critical'): Result<string[]>
```

Source: `minds-ts-sdk/src/index.ts:849`.

### `VaultMemoryClient.remove` [#vaultmemoryclientremove]

```typescript
remove(key: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:853`.

### `VaultMemoryClient.rotateKey` [#vaultmemoryclientrotatekey]

```typescript
rotateKey(): Result<{ ok: boolean; rotated_at: string }>
```

Source: `minds-ts-sdk/src/index.ts:860`.

### `CognitiveMemoryClient` [#cognitivememoryclient]

```typescript
export class CognitiveMemoryClient
```

Source: `minds-ts-sdk/src/index.ts:865`.

### `CognitiveMemoryClient.constructor` [#cognitivememoryclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:866`.

### `CognitiveMemoryClient.thought` [#cognitivememoryclientthought]

```typescript
thought(thought: Omit<CognitiveThought, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:868`.

### `CognitiveMemoryClient.decision` [#cognitivememoryclientdecision]

```typescript
decision(decision: Omit<CognitiveDecision, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:872`.

### `CognitiveMemoryClient.interaction` [#cognitivememoryclientinteraction]

```typescript
interaction(interaction: Omit<CognitiveInteraction, 'id'>): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:876`.

### `CognitiveMemoryClient.getSession` [#cognitivememoryclientgetsession]

```typescript
getSession(sessionId: string, limit = 100): Result<{ thoughts: CognitiveThought[]; decisions: CognitiveDecision[]; interactions: CognitiveInteraction[] }>
```

Source: `minds-ts-sdk/src/index.ts:880`.

### `CognitiveMemoryClient.query` [#cognitivememoryclientquery]

```typescript
query(query: string, types?: ('thought' | 'decision' | 'interaction')[], limit = 10): Result<{ items: (CognitiveThought | CognitiveDecision | CognitiveInteraction)[] }>
```

Source: `minds-ts-sdk/src/index.ts:884`.

### `CognitiveMemoryClient.getReasoningChain` [#cognitivememoryclientgetreasoningchain]

```typescript
getReasoningChain(decisionId: string): Result<{ thoughts: CognitiveThought[]; decision: CognitiveDecision }>
```

Source: `minds-ts-sdk/src/index.ts:888`.

### `MemoryClient` [#memoryclient]

```typescript
export class MemoryClient
```

Source: `minds-ts-sdk/src/index.ts:897`.

### `MemoryClient.episodic` [#memoryclientepisodic]

```typescript
public readonly episodic: EpisodicMemoryClient;
```

Source: `minds-ts-sdk/src/index.ts:898`.

### `MemoryClient.procedural` [#memoryclientprocedural]

```typescript
public readonly procedural: ProceduralMemoryClient;
```

Source: `minds-ts-sdk/src/index.ts:899`.

### `MemoryClient.resources` [#memoryclientresources]

```typescript
public readonly resources: ResourceMemoryClient;
```

Source: `minds-ts-sdk/src/index.ts:900`.

### `MemoryClient.vault` [#memoryclientvault]

```typescript
public readonly vault: VaultMemoryClient;
```

Source: `minds-ts-sdk/src/index.ts:901`.

### `MemoryClient.cognitive` [#memoryclientcognitive]

```typescript
public readonly cognitive: CognitiveMemoryClient;
```

Source: `minds-ts-sdk/src/index.ts:902`.

### `MemoryClient.constructor` [#memoryclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:904`.

### `MemoryClient.hybridRetrieval` [#memoryclienthybridretrieval]

```typescript
hybridRetrieval(query: string, limit = 10, sources?: ('episodic' | 'semantic' | 'procedural' | 'resource')[]): Result<HybridRetrievalResult[]>
```

Source: `minds-ts-sdk/src/index.ts:912`.

### `MemoryClient.stats` [#memoryclientstats]

```typescript
stats(): Result<Record<string, unknown>>
```

Source: `minds-ts-sdk/src/index.ts:916`.

### `AkashaClient` [#akashaclient]

```typescript
export class AkashaClient
```

Source: `minds-ts-sdk/src/index.ts:921`.

### `AkashaClient.core` [#akashaclientcore]

```typescript
public readonly core: CoreClient;
```

Source: `minds-ts-sdk/src/index.ts:922`.

### `AkashaClient.kv` [#akashaclientkv]

```typescript
public readonly kv: KVClient;
```

Source: `minds-ts-sdk/src/index.ts:923`.

### `AkashaClient.graph` [#akashaclientgraph]

```typescript
public readonly graph: GraphClient;
```

Source: `minds-ts-sdk/src/index.ts:924`.

### `AkashaClient.vector` [#akashaclientvector]

```typescript
public readonly vector: VectorClient;
```

Source: `minds-ts-sdk/src/index.ts:925`.

### `AkashaClient.analytics` [#akashaclientanalytics]

```typescript
public readonly analytics: AnalyticsClient;
```

Source: `minds-ts-sdk/src/index.ts:926`.

### `AkashaClient.ml` [#akashaclientml]

```typescript
public readonly ml: MlClient;
```

Source: `minds-ts-sdk/src/index.ts:927`.

### `AkashaClient.memory` [#akashaclientmemory]

```typescript
public readonly memory: MemoryClient;
```

Source: `minds-ts-sdk/src/index.ts:928`.

### `AkashaClient.router` [#akashaclientrouter]

```typescript
public readonly router: RouterClient;
```

Source: `minds-ts-sdk/src/index.ts:929`.

### `AkashaClient.snn` [#akashaclientsnn]

```typescript
public readonly snn: SnnClient;
```

Source: `minds-ts-sdk/src/index.ts:930`.

### `AkashaClient.ns` [#akashaclientns]

```typescript
public readonly ns: NsClient;
```

Source: `minds-ts-sdk/src/index.ts:931`.

### `AkashaClient.continual` [#akashaclientcontinual]

```typescript
public readonly continual: ContinualClient;
```

Source: `minds-ts-sdk/src/index.ts:932`.

### `AkashaClient.mhn` [#akashaclientmhn]

```typescript
public readonly mhn: MhnClient;
```

Source: `minds-ts-sdk/src/index.ts:933`.

### `AkashaClient.brain` [#akashaclientbrain]

```typescript
public readonly brain: CognitiveBrain;
```

Source: `minds-ts-sdk/src/index.ts:934`.

### `AkashaClient.constructor` [#akashaclientconstructor]

```typescript
constructor(cfg: SDKConfig)
```

Source: `minds-ts-sdk/src/index.ts:936`.

### `resolveAkashaBase` [#resolveakashabase]

```typescript
export function resolveAkashaBase(input: string): string
```

Source: `minds-ts-sdk/src/index.ts:954`.

### `connect` [#connect]

```typescript
export async function connect(uri: string, opts?: Omit<SDKConfig, 'baseUrl'>): Promise<AkashaClient>
```

Source: `minds-ts-sdk/src/index.ts:963`.

### `AkashaResolvedEndpoint` [#akasharesolvedendpoint]

```typescript
export interface AkashaResolvedEndpoint {
  protocol: string;
  address: string;
  tls: boolean;
  alpn?: string;
  region?: string;
  path?: string;
}
```

Source: `minds-ts-sdk/src/index.ts:968`.

### `AkashaResolved` [#akasharesolved]

```typescript
export interface AkashaResolved {
  baseUrl: string;
  endpoints: AkashaResolvedEndpoint[];
  grpcAddress?: string;
}
```

Source: `minds-ts-sdk/src/index.ts:977`.

### `resolveAkasha` [#resolveakasha]

```typescript
export async function resolveAkasha(uri: string): Promise<AkashaResolved>
```

Source: `minds-ts-sdk/src/index.ts:983`.

### `RouterClient` [#routerclient]

```typescript
export class RouterClient
```

Source: `minds-ts-sdk/src/index.ts:1014`.

### `RouterClient.constructor` [#routerclientconstructor]

```typescript
constructor()
```

Source: `minds-ts-sdk/src/index.ts:1019`.

### `RouterClient.connect` [#routerclientconnect]

```typescript
async connect(address: string): Promise<void>
```

Source: `minds-ts-sdk/src/index.ts:1032`.

### `RouterClient.registerCapability` [#routerclientregistercapability]

```typescript
registerCapability(req: any): Promise<any>
```

Source: `minds-ts-sdk/src/index.ts:1046`.

### `RouterClient.queryCapabilities` [#routerclientquerycapabilities]

```typescript
queryCapabilities(req: any): Promise<any>
```

Source: `minds-ts-sdk/src/index.ts:1047`.

### `RouterClient.routeTask` [#routerclientroutetask]

```typescript
routeTask(req: any): Promise<any>
```

Source: `minds-ts-sdk/src/index.ts:1048`.

### `SnnClient` [#snnclient]

```typescript
export class SnnClient
```

Source: `minds-ts-sdk/src/index.ts:1058`.

### `SnnClient.constructor` [#snnclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:1059`.

### `SnnClient.build` [#snnclientbuild]

```typescript
build(architecture: SNNArchitecture, name?: string): Result<SNNNetwork>
```

Source: `minds-ts-sdk/src/index.ts:1062`.

### `SnnClient.compile` [#snnclientcompile]

```typescript
compile(networkId: string, optimizations?: string[]): Result<{ ok: boolean; compilation_time_ms: number }>
```

Source: `minds-ts-sdk/src/index.ts:1067`.

### `SnnClient.step` [#snnclientstep]

```typescript
step(networkId: string, inputs: Record<string, number[]>, dt = 1.0): Result<SNNStepResult>
```

Source: `minds-ts-sdk/src/index.ts:1072`.

### `SnnClient.trainBptt` [#snnclienttrainbptt]

```typescript
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` [#snnclientgetstate]

```typescript
getState(networkId: string, include?: ('voltages' | 'spikes' | 'weights')[]): Result<{ state: Record<string, unknown> }>
```

Source: `minds-ts-sdk/src/index.ts:1082`.

### `SnnClient.reset` [#snnclientreset]

```typescript
reset(networkId: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:1087`.

### `SnnClient.list` [#snnclientlist]

```typescript
list(): Result<SNNNetwork[]>
```

Source: `minds-ts-sdk/src/index.ts:1092`.

### `SnnClient.remove` [#snnclientremove]

```typescript
remove(networkId: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:1097`.

### `NsClient` [#nsclient]

```typescript
export class NsClient
```

Source: `minds-ts-sdk/src/index.ts:1105`.

### `NsClient.constructor` [#nsclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:1106`.

### `NsClient.retrieve` [#nsclientretrieve]

```typescript
retrieve(query: string, limit = 10, neuralWeight = 0.5): Result<NSRetrievalResult>
```

Source: `minds-ts-sdk/src/index.ts:1109`.

### `NsClient.findPaths` [#nsclientfindpaths]

```typescript
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` [#nsclientprefetchstart]

```typescript
prefetchStart(pattern: string, depth = 2): Result<{ prefetch_id: string }>
```

Source: `minds-ts-sdk/src/index.ts:1119`.

### `NsClient.prefetchStop` [#nsclientprefetchstop]

```typescript
prefetchStop(prefetchId: string): Result<{ ok: boolean }>
```

Source: `minds-ts-sdk/src/index.ts:1124`.

### `NsClient.cacheStats` [#nsclientcachestats]

```typescript
cacheStats(): Result<{ hit_rate: number; size_bytes: number; entry_count: number }>
```

Source: `minds-ts-sdk/src/index.ts:1129`.

### `NsClient.cacheClear` [#nsclientcacheclear]

```typescript
cacheClear(): Result<{ ok: boolean; cleared_entries: number }>
```

Source: `minds-ts-sdk/src/index.ts:1134`.

### `NsClient.addKnowledge` [#nsclientaddknowledge]

```typescript
addKnowledge(subject: string, predicate: string, object: string, confidence = 1.0): Result<{ id: string }>
```

Source: `minds-ts-sdk/src/index.ts:1139`.

### `NsClient.queryKnowledge` [#nsclientqueryknowledge]

```typescript
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` [#continualclient]

```typescript
export class ContinualClient
```

Source: `minds-ts-sdk/src/index.ts:1149`.

### `ContinualClient.constructor` [#continualclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:1150`.

### `ContinualClient.createCheckpoint` [#continualclientcreatecheckpoint]

```typescript
createCheckpoint(name?: string, components?: string[], metadata?: Record<string, unknown>): Result<CheckpointInfo>
```

Source: `minds-ts-sdk/src/index.ts:1153`.

### `ContinualClient.getCheckpointStatus` [#continualclientgetcheckpointstatus]

```typescript
getCheckpointStatus(checkpointId?: string): Result<CheckpointInfo>
```

Source: `minds-ts-sdk/src/index.ts:1158`.

### `ContinualClient.listCheckpoints` [#continualclientlistcheckpoints]

```typescript
listCheckpoints(): Result<CheckpointInfo[]>
```

Source: `minds-ts-sdk/src/index.ts:1164`.

### `ContinualClient.recover` [#continualclientrecover]

```typescript
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` [#continualclientregistercomponent]

```typescript
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` [#continualclientunregistercomponent]

```typescript
unregisterComponent(name: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:1179`.

### `ContinualClient.listComponents` [#continualclientlistcomponents]

```typescript
listComponents(): Result<ComponentInfo[]>
```

Source: `minds-ts-sdk/src/index.ts:1187`.

### `ContinualClient.deleteCheckpoint` [#continualclientdeletecheckpoint]

```typescript
deleteCheckpoint(checkpointId: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:1192`.

### `MhnClient` [#mhnclient]

```typescript
export class MhnClient
```

Source: `minds-ts-sdk/src/index.ts:1200`.

### `MhnClient.constructor` [#mhnclientconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:1201`.

### `MhnClient.create` [#mhnclientcreate]

```typescript
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` [#mhnclientstore]

```typescript
store(networkId: string, patterns: number[][], keys?: string[], metadata?: Record<string, unknown>[]): Result<{ stored: number }>
```

Source: `minds-ts-sdk/src/index.ts:1209`.

### `MhnClient.retrieve` [#mhnclientretrieve]

```typescript
retrieve(networkId: string, query: number[], topK = 1, iterations = 1, includeScores = true): Result<MHNRetrievalResult[]>
```

Source: `minds-ts-sdk/src/index.ts:1214`.

### `MhnClient.deletePattern` [#mhnclientdeletepattern]

```typescript
deletePattern(networkId: string, key: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:1219`.

### `MhnClient.getStats` [#mhnclientgetstats]

```typescript
getStats(networkId: string): Result<{ pattern_count: number; capacity: number; capacity_usage: number; dimension: number }>
```

Source: `minds-ts-sdk/src/index.ts:1227`.

### `MhnClient.clear` [#mhnclientclear]

```typescript
clear(networkId: string): Result<{ ok: boolean; cleared: number }>
```

Source: `minds-ts-sdk/src/index.ts:1232`.

### `MhnClient.list` [#mhnclientlist]

```typescript
list(): Result<MHNNetwork[]>
```

Source: `minds-ts-sdk/src/index.ts:1237`.

### `MhnClient.deleteNetwork` [#mhnclientdeletenetwork]

```typescript
deleteNetwork(networkId: string): Result<boolean>
```

Source: `minds-ts-sdk/src/index.ts:1242`.

### `MhnClient.systemInfo` [#mhnclientsysteminfo]

```typescript
systemInfo(): Result<{ version: string; device: string; memory_usage_bytes: number }>
```

Source: `minds-ts-sdk/src/index.ts:1250`.

### `McpMemoryContext` [#mcpmemorycontext]

```typescript
export interface McpMemoryContext {
  source?: string;
  timestamp?: string;
  importance?: number;
  tags?: string[];
}
```

Source: `minds-ts-sdk/src/index.ts:1259`.

### `McpStoredMemory` [#mcpstoredmemory]

```typescript
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` [#mcpretrievedmemory]

```typescript
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` [#mcpreflectionresult]

```typescript
export interface McpReflectionResult {
  topic: string;
  insights: string[];
  patterns: string[];
  connections: number;
  recommendations: string[];
}
```

Source: `minds-ts-sdk/src/index.ts:1288`.

### `McpIntrospectionResult` [#mcpintrospectionresult]

```typescript
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` [#mcptoolcallresult]

```typescript
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` [#cognitivebrain]

```typescript
export class CognitiveBrain
```

Source: `minds-ts-sdk/src/index.ts:1321`.

### `CognitiveBrain.constructor` [#cognitivebrainconstructor]

```typescript
constructor(private readonly http: HttpClient)
```

Source: `minds-ts-sdk/src/index.ts:1322`.

### `CognitiveBrain.remember` [#cognitivebrainremember]

```typescript
remember(content: string, context?: McpMemoryContext, memoryTypeHint?: string): Result<McpStoredMemory>
```

Source: `minds-ts-sdk/src/index.ts:1325`.

### `CognitiveBrain.recall` [#cognitivebrainrecall]

```typescript
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` [#cognitivebrainforget]

```typescript
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` [#cognitivebrainreflect]

```typescript
reflect(topic?: string): Result<McpReflectionResult>
```

Source: `minds-ts-sdk/src/index.ts:1357`.

### `CognitiveBrain.introspect` [#cognitivebrainintrospect]

```typescript
introspect(aspect?: string): Result<McpIntrospectionResult>
```

Source: `minds-ts-sdk/src/index.ts:1362`.

### `CognitiveBrain.callTool` [#cognitivebraincalltool]

```typescript
callTool(toolName: string, args: Record<string, unknown>): Result<McpToolCallResult>
```

Source: `minds-ts-sdk/src/index.ts:1367`.

### `CognitiveBrain.listTools` [#cognitivebrainlisttools]

```typescript
listTools(): Result<{ name: string; description: string; tier: number }[]>
```

Source: `minds-ts-sdk/src/index.ts:1372`.

## src/services/akashagraph-service.ts [#srcservicesakashagraph-servicets]

### `GraphNode` [#graphnode]

```typescript
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` [#graphedge]

```typescript
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` [#graphpath]

```typescript
export interface GraphPath {
  nodes: GraphNode[];
  edges: GraphEdge[];
  length: number;
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:28`.

### `GraphQueryResult` [#graphqueryresult]

```typescript
export interface GraphQueryResult {
  nodes: GraphNode[];
  edges: GraphEdge[];
  metadata?: Record<string, any>;
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:34`.

### `TemporalClauseOptions` [#temporalclauseoptions]

```typescript
export interface TemporalClauseOptions {
  validTime?: number;
  transactionTime?: number;
  validRange?: { from: number; to: number };
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:40`.

### `CypherLiteOptions` [#cypherliteoptions]

```typescript
export interface CypherLiteOptions {
  allowUpdates?: boolean;
  enforceTransactions?: boolean;
  temporal?: TemporalClauseOptions;
  params?: Record<string, any>;
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:46`.

### `SchemaPropertyDefinition` [#schemapropertydefinition]

```typescript
export interface SchemaPropertyDefinition {
  propertyType: string;
  required: boolean;
  indexed: boolean;
  description?: string;
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:53`.

### `SchemaNodeSchema` [#schemanodeschema]

```typescript
export interface SchemaNodeSchema {
  label: string;
  properties: Record<string, SchemaPropertyDefinition>;
  description?: string;
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:60`.

### `SchemaEdgeSchema` [#schemaedgeschema]

```typescript
export interface SchemaEdgeSchema {
  predicate: string;
  properties: Record<string, SchemaPropertyDefinition>;
  description?: string;
}
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:66`.

### `GraphSchemaMetadata` [#graphschemametadata]

```typescript
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` [#graphtraversaloptions]

```typescript
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` [#akashagraphbackend]

```typescript
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` [#akashagraphhttpbackend]

```typescript
export class AkashaGraphHttpBackend implements AkashaGraphBackend
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:112`.

### `AkashaGraphHttpBackend.constructor` [#akashagraphhttpbackendconstructor]

```typescript
constructor(endpoint?: string, timeout: number = 5000, tenantId?: string)
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:117`.

### `AkashaGraphHttpBackend.createNode` [#akashagraphhttpbackendcreatenode]

```typescript
async createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:158`.

### `AkashaGraphHttpBackend.getNode` [#akashagraphhttpbackendgetnode]

```typescript
async getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:165`.

### `AkashaGraphHttpBackend.updateNode` [#akashagraphhttpbackendupdatenode]

```typescript
async updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:180`.

### `AkashaGraphHttpBackend.deleteNode` [#akashagraphhttpbackenddeletenode]

```typescript
async deleteNode(namespace: string, nodeId: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:190`.

### `AkashaGraphHttpBackend.createEdge` [#akashagraphhttpbackendcreateedge]

```typescript
async createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:205`.

### `AkashaGraphHttpBackend.getEdge` [#akashagraphhttpbackendgetedge]

```typescript
async getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:212`.

### `AkashaGraphHttpBackend.deleteEdge` [#akashagraphhttpbackenddeleteedge]

```typescript
async deleteEdge(namespace: string, edgeId: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:227`.

### `AkashaGraphHttpBackend.findPath` [#akashagraphhttpbackendfindpath]

```typescript
async findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:242`.

### `AkashaGraphHttpBackend.traverse` [#akashagraphhttpbackendtraverse]

```typescript
async traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:264`.

### `AkashaGraphHttpBackend.query` [#akashagraphhttpbackendquery]

```typescript
async query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:283`.

### `AkashaGraphHttpBackend.cypherLite` [#akashagraphhttpbackendcypherlite]

```typescript
async cypherLite(namespace: string, cypher: string, options?: CypherLiteOptions): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:293`.

### `AkashaGraphHttpBackend.getSchemaMetadata` [#akashagraphhttpbackendgetschemametadata]

```typescript
async getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:309`.

### `AkashaGraphHttpBackend.close` [#akashagraphhttpbackendclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:318`.

### `AkashaGraphMemoryBackend` [#akashagraphmemorybackend]

```typescript
export class AkashaGraphMemoryBackend implements AkashaGraphBackend
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:326`.

### `AkashaGraphMemoryBackend.constructor` [#akashagraphmemorybackendconstructor]

```typescript
constructor()
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:332`.

### `AkashaGraphMemoryBackend.createNode` [#akashagraphmemorybackendcreatenode]

```typescript
async createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:390`.

### `AkashaGraphMemoryBackend.getNode` [#akashagraphmemorybackendgetnode]

```typescript
async getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:403`.

### `AkashaGraphMemoryBackend.updateNode` [#akashagraphmemorybackendupdatenode]

```typescript
async updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:419`.

### `AkashaGraphMemoryBackend.deleteNode` [#akashagraphmemorybackenddeletenode]

```typescript
async deleteNode(namespace: string, nodeId: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:437`.

### `AkashaGraphMemoryBackend.createEdge` [#akashagraphmemorybackendcreateedge]

```typescript
async createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:458`.

### `AkashaGraphMemoryBackend.getEdge` [#akashagraphmemorybackendgetedge]

```typescript
async getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:473`.

### `AkashaGraphMemoryBackend.deleteEdge` [#akashagraphmemorybackenddeleteedge]

```typescript
async deleteEdge(namespace: string, edgeId: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:489`.

### `AkashaGraphMemoryBackend.findPath` [#akashagraphmemorybackendfindpath]

```typescript
async findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:503`.

### `AkashaGraphMemoryBackend.traverse` [#akashagraphmemorybackendtraverse]

```typescript
async traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:589`.

### `AkashaGraphMemoryBackend.query` [#akashagraphmemorybackendquery]

```typescript
async query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:669`.

### `AkashaGraphMemoryBackend.cypherLite` [#akashagraphmemorybackendcypherlite]

```typescript
async cypherLite(namespace: string, cypher: string, _options?: CypherLiteOptions): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:675`.

### `AkashaGraphMemoryBackend.getSchemaMetadata` [#akashagraphmemorybackendgetschemametadata]

```typescript
async getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:679`.

### `AkashaGraphMemoryBackend.close` [#akashagraphmemorybackendclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:773`.

### `AkashaGraphService` [#akashagraphservice]

```typescript
export class AkashaGraphService
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:802`.

### `AkashaGraphService.create` [#akashagraphservicecreate]

```typescript
static async create(endpoint?: string, timeout?: number, tenantId?: string): Promise<AkashaGraphService>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:814`.

### `AkashaGraphService.createWithBackend` [#akashagraphservicecreatewithbackend]

```typescript
static createWithBackend(
    backend: 'http' | 'memory',
    endpoint?: string,
    timeout?: number,
    tenantId?: string,
  ): AkashaGraphService
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:844`.

### `AkashaGraphService.getBackendType` [#akashagraphservicegetbackendtype]

```typescript
getBackendType(): 'http' | 'memory'
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:857`.

### `AkashaGraphService.createNode` [#akashagraphservicecreatenode]

```typescript
async createNode(namespace: string, node: Omit<GraphNode, 'id'>): Promise<GraphNode>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:861`.

### `AkashaGraphService.getNode` [#akashagraphservicegetnode]

```typescript
async getNode(namespace: string, nodeId: string, asOfTime?: number): Promise<GraphNode | null>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:865`.

### `AkashaGraphService.updateNode` [#akashagraphserviceupdatenode]

```typescript
async updateNode(namespace: string, nodeId: string, properties: Record<string, any>): Promise<GraphNode>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:869`.

### `AkashaGraphService.deleteNode` [#akashagraphservicedeletenode]

```typescript
async deleteNode(namespace: string, nodeId: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:873`.

### `AkashaGraphService.createEdge` [#akashagraphservicecreateedge]

```typescript
async createEdge(namespace: string, edge: Omit<GraphEdge, 'id'>): Promise<GraphEdge>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:877`.

### `AkashaGraphService.getEdge` [#akashagraphservicegetedge]

```typescript
async getEdge(namespace: string, edgeId: string, asOfTime?: number): Promise<GraphEdge | null>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:881`.

### `AkashaGraphService.deleteEdge` [#akashagraphservicedeleteedge]

```typescript
async deleteEdge(namespace: string, edgeId: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:885`.

### `AkashaGraphService.findPath` [#akashagraphservicefindpath]

```typescript
async findPath(namespace: string, fromId: string, toId: string, options?: GraphTraversalOptions): Promise<GraphPath[]>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:889`.

### `AkashaGraphService.traverse` [#akashagraphservicetraverse]

```typescript
async traverse(namespace: string, startId: string, options?: GraphTraversalOptions): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:893`.

### `AkashaGraphService.query` [#akashagraphservicequery]

```typescript
async query(namespace: string, cypher: string, params?: Record<string, any>): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:897`.

### `AkashaGraphService.cypherLite` [#akashagraphservicecypherlite]

```typescript
async cypherLite(namespace: string, cypher: string, options?: CypherLiteOptions): Promise<GraphQueryResult>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:901`.

### `AkashaGraphService.getSchemaMetadata` [#akashagraphservicegetschemametadata]

```typescript
async getSchemaMetadata(namespace: string): Promise<GraphSchemaMetadata>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:905`.

### `AkashaGraphService.close` [#akashagraphserviceclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashagraph-service.ts:909`.

## src/services/akashakv-service.ts [#srcservicesakashakv-servicets]

### `KVPutOptions` [#kvputoptions]

```typescript
export interface KVPutOptions {
  ttl?: number; // TTL in seconds
  metadata?: Record<string, any>;
}
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:8`.

### `KVGetResult` [#kvgetresult]

```typescript
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` [#kvlistresult]

```typescript
export interface KVListResult {
  keys: string[];
  hasMore: boolean;
  cursor?: string;
}
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:20`.

### `KVWatchCallback` [#kvwatchcallback]

```typescript
export interface KVWatchCallback {
  (key: string, value: any, operation: 'put' | 'delete'): void | Promise<void>;
}
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:26`.

### `AkashaKVBackend` [#akashakvbackend]

```typescript
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` [#akashakvhttpbackend]

```typescript
export class AkashaKVHttpBackend implements AkashaKVBackend
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:45`.

### `AkashaKVHttpBackend.constructor` [#akashakvhttpbackendconstructor]

```typescript
constructor(endpoint?: string, timeout: number = 5000)
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:50`.

### `AkashaKVHttpBackend.put` [#akashakvhttpbackendput]

```typescript
async put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:56`.

### `AkashaKVHttpBackend.get` [#akashakvhttpbackendget]

```typescript
async get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:93`.

### `AkashaKVHttpBackend.delete` [#akashakvhttpbackenddelete]

```typescript
async delete(namespace: string, key: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:134`.

### `AkashaKVHttpBackend.list` [#akashakvhttpbackendlist]

```typescript
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` [#akashakvhttpbackendwatch]

```typescript
async watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:211`.

### `AkashaKVHttpBackend.close` [#akashakvhttpbackendclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:277`.

### `AkashaKVMemoryBackend` [#akashakvmemorybackend]

```typescript
export class AkashaKVMemoryBackend implements AkashaKVBackend
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:289`.

### `AkashaKVMemoryBackend.constructor` [#akashakvmemorybackendconstructor]

```typescript
constructor()
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:295`.

### `AkashaKVMemoryBackend.put` [#akashakvmemorybackendput]

```typescript
async put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:349`.

### `AkashaKVMemoryBackend.get` [#akashakvmemorybackendget]

```typescript
async get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:365`.

### `AkashaKVMemoryBackend.delete` [#akashakvmemorybackenddelete]

```typescript
async delete(namespace: string, key: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:387`.

### `AkashaKVMemoryBackend.list` [#akashakvmemorybackendlist]

```typescript
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` [#akashakvmemorybackendwatch]

```typescript
async watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:437`.

### `AkashaKVMemoryBackend.close` [#akashakvmemorybackendclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:449`.

### `AkashaKVService` [#akashakvservice]

```typescript
export class AkashaKVService
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:462`.

### `AkashaKVService.create` [#akashakvservicecreate]

```typescript
static async create(endpoint?: string, timeout?: number): Promise<AkashaKVService>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:474`.

### `AkashaKVService.createWithBackend` [#akashakvservicecreatewithbackend]

```typescript
static createWithBackend(backend: 'http' | 'memory', endpoint?: string, timeout?: number): AkashaKVService
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:505`.

### `AkashaKVService.getBackendType` [#akashakvservicegetbackendtype]

```typescript
getBackendType(): 'http' | 'memory'
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:513`.

### `AkashaKVService.put` [#akashakvserviceput]

```typescript
async put(namespace: string, key: string, value: any, options?: KVPutOptions): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:517`.

### `AkashaKVService.get` [#akashakvserviceget]

```typescript
async get<T = any>(namespace: string, key: string): Promise<KVGetResult<T> | null>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:521`.

### `AkashaKVService.delete` [#akashakvservicedelete]

```typescript
async delete(namespace: string, key: string): Promise<boolean>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:525`.

### `AkashaKVService.list` [#akashakvservicelist]

```typescript
async list(namespace: string, prefix?: string, limit?: number, cursor?: string): Promise<KVListResult>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:529`.

### `AkashaKVService.watch` [#akashakvservicewatch]

```typescript
async watch(namespace: string, pattern: string, callback: KVWatchCallback): Promise<() => void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:533`.

### `AkashaKVService.close` [#akashakvserviceclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/akashakv-service.ts:537`.

## src/services/kv-graph-sync.ts [#srcserviceskv-graph-syncts]

### `SyncConfig` [#syncconfig]

```typescript
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` [#syncstats]

```typescript
export interface SyncStats {
  nodesSynced: number;
  edgesCreated: number;
  errors: number;
  lastSyncTime: number;
}
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:20`.

### `KVGraphSyncService` [#kvgraphsyncservice]

```typescript
export class KVGraphSyncService
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:30`.

### `KVGraphSyncService.constructor` [#kvgraphsyncserviceconstructor]

```typescript
constructor(kv: AkashaKVService, graph: AkashaGraphService)
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:39`.

### `KVGraphSyncService.startSync` [#kvgraphsyncservicestartsync]

```typescript
async startSync(config: SyncConfig): Promise<void>
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:52`.

### `KVGraphSyncService.stopSync` [#kvgraphsyncservicestopsync]

```typescript
async stopSync(namespace: string): Promise<void>
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:88`.

### `KVGraphSyncService.getStats` [#kvgraphsyncservicegetstats]

```typescript
getStats(namespace: string): SyncStats | null
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:115`.

### `KVGraphSyncService.getActiveConfigs` [#kvgraphsyncservicegetactiveconfigs]

```typescript
getActiveConfigs(): SyncConfig[]
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:122`.

### `KVGraphSyncService.syncEntity` [#kvgraphsyncservicesyncentity]

```typescript
async syncEntity(namespace: string, key: string): Promise<void>
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:129`.

### `KVGraphSyncService.close` [#kvgraphsyncserviceclose]

```typescript
async close(): Promise<void>
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:416`.

### `createKVGraphSync` [#createkvgraphsync]

```typescript
export async function createKVGraphSync(
  kvEndpoint?: string,
  graphEndpoint?: string
): Promise<KVGraphSyncService>
```

Source: `minds-ts-sdk/src/services/kv-graph-sync.ts:427`.
