@dakera-ai/dakera 0.8.6 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1260,6 +1260,213 @@ interface BatchForgetRequest {
1260
1260
  interface BatchForgetResponse {
1261
1261
  deleted_count: number;
1262
1262
  }
1263
+ /**
1264
+ * Edge type for memory knowledge graph relationships (CE-5).
1265
+ *
1266
+ * - `related_to`: Cosine similarity ≥ 0.85 between two memories.
1267
+ * - `shares_entity`: Both memories reference the same named entity (CE-4).
1268
+ * - `precedes`: Temporal ordering — source was created before target.
1269
+ * - `linked_by`: Explicit user/agent-created link.
1270
+ */
1271
+ type EdgeType = 'related_to' | 'shares_entity' | 'precedes' | 'linked_by';
1272
+ /** A directed edge in the memory knowledge graph. */
1273
+ interface GraphEdge {
1274
+ /** Unique edge identifier. */
1275
+ id: string;
1276
+ /** Source memory ID. */
1277
+ source_id: string;
1278
+ /** Target memory ID. */
1279
+ target_id: string;
1280
+ /** Relationship type between the two memories. */
1281
+ edge_type: EdgeType;
1282
+ /** Edge weight (0.0–1.0). For `related_to` this is the cosine similarity score. */
1283
+ weight: number;
1284
+ /** Unix timestamp of edge creation. */
1285
+ created_at: number;
1286
+ }
1287
+ /** A node (memory) in the knowledge graph traversal result. */
1288
+ interface GraphNode {
1289
+ /** Memory identifier. */
1290
+ memory_id: string;
1291
+ /** First 200 characters of memory content. */
1292
+ content_preview: string;
1293
+ /** Memory importance score. */
1294
+ importance: number;
1295
+ /** Traversal depth from the root node (root = 0). */
1296
+ depth: number;
1297
+ }
1298
+ /** Graph traversal result from `GET /v1/memories/{id}/graph`. */
1299
+ interface MemoryGraph {
1300
+ /** The root memory ID from which traversal started. */
1301
+ root_id: string;
1302
+ /** Maximum traversal depth used. */
1303
+ depth: number;
1304
+ /** All memory nodes reachable within the requested depth. */
1305
+ nodes: GraphNode[];
1306
+ /** All edges connecting the returned nodes. */
1307
+ edges: GraphEdge[];
1308
+ }
1309
+ /** Shortest path result from `GET /v1/memories/{id}/path`. */
1310
+ interface GraphPath {
1311
+ /** Starting memory ID. */
1312
+ source_id: string;
1313
+ /** Destination memory ID. */
1314
+ target_id: string;
1315
+ /** Ordered list of memory IDs from source to target (inclusive). */
1316
+ path: string[];
1317
+ /** Number of edges traversed (`path.length - 1`). -1 if no path exists. */
1318
+ hops: number;
1319
+ /** Edges along the path, in traversal order. */
1320
+ edges: GraphEdge[];
1321
+ }
1322
+ /** Response from `POST /v1/memories/{id}/links`. */
1323
+ interface GraphLinkResponse {
1324
+ /** The newly created edge. */
1325
+ edge: GraphEdge;
1326
+ }
1327
+ /** Agent graph export from `GET /v1/agents/{id}/graph/export`. */
1328
+ interface GraphExport {
1329
+ /** Agent whose graph was exported. */
1330
+ agent_id: string;
1331
+ /** Export format: `json`, `graphml`, or `csv`. */
1332
+ format: 'json' | 'graphml' | 'csv';
1333
+ /** Serialised graph in the requested format. */
1334
+ data: string;
1335
+ /** Total number of memory nodes in the export. */
1336
+ node_count: number;
1337
+ /** Total number of edges in the export. */
1338
+ edge_count: number;
1339
+ }
1340
+ /** Options for `client.memories.graph()`. */
1341
+ interface MemoryGraphOptions {
1342
+ /** Maximum traversal depth (default: 1, max: 3). */
1343
+ depth?: number;
1344
+ /** Filter by edge types. `undefined` returns all types. */
1345
+ types?: EdgeType[];
1346
+ }
1347
+ /** Configuration for namespace-level entity extraction (CE-4). */
1348
+ interface NamespaceNerConfig {
1349
+ extract_entities: boolean;
1350
+ entity_types?: string[];
1351
+ }
1352
+ /** A single extracted entity from GLiNER or rule-based pipeline. */
1353
+ interface ExtractedEntity {
1354
+ entity_type: string;
1355
+ value: string;
1356
+ score: number;
1357
+ }
1358
+ /** Response from POST /v1/memories/extract */
1359
+ interface EntityExtractionResponse {
1360
+ entities: ExtractedEntity[];
1361
+ }
1362
+ /** Response from GET /v1/memory/entities/:id */
1363
+ interface MemoryEntitiesResponse {
1364
+ memory_id: string;
1365
+ entities: ExtractedEntity[];
1366
+ }
1367
+ /**
1368
+ * Feedback signal for memory active learning (INT-1).
1369
+ *
1370
+ * - `upvote`: Boost importance ×1.15, capped at 1.0.
1371
+ * - `downvote`: Penalise importance ×0.85, floor 0.0.
1372
+ * - `flag`: Mark as irrelevant — sets `decay_flag=true`, no immediate importance change.
1373
+ * - `positive`: Backward-compatible alias for `upvote`.
1374
+ * - `negative`: Backward-compatible alias for `downvote`.
1375
+ */
1376
+ type FeedbackSignal = 'upvote' | 'downvote' | 'flag' | 'positive' | 'negative';
1377
+ /** A single recorded feedback event stored in memory metadata (INT-1). */
1378
+ interface FeedbackHistoryEntry {
1379
+ /** Feedback signal that was applied. */
1380
+ signal: FeedbackSignal;
1381
+ /** Unix timestamp (seconds) when feedback was submitted. */
1382
+ timestamp: number;
1383
+ /** Memory importance before this feedback was applied. */
1384
+ old_importance: number;
1385
+ /** Memory importance after this feedback was applied. */
1386
+ new_importance: number;
1387
+ }
1388
+ /** Request body for POST /v1/memories/:id/feedback (INT-1). */
1389
+ interface MemoryFeedbackBodyRequest {
1390
+ agent_id: string;
1391
+ signal: FeedbackSignal;
1392
+ }
1393
+ /** Request body for PATCH /v1/memories/:id/importance (INT-1). */
1394
+ interface MemoryImportancePatchRequest {
1395
+ agent_id: string;
1396
+ importance: number;
1397
+ }
1398
+ /** Response from POST /v1/memories/:id/feedback and PATCH /v1/memories/:id/importance (INT-1). */
1399
+ interface FeedbackResponse {
1400
+ /** ID of the memory that was updated. */
1401
+ memory_id: string;
1402
+ /** New importance score after the feedback was applied (0.0–1.0). */
1403
+ new_importance: number;
1404
+ /** The feedback signal that was recorded. */
1405
+ signal: FeedbackSignal;
1406
+ }
1407
+ /** Response from GET /v1/memories/:id/feedback (INT-1). */
1408
+ interface FeedbackHistoryResponse {
1409
+ memory_id: string;
1410
+ /** Ordered list of feedback events (oldest first, capped at 100). */
1411
+ entries: FeedbackHistoryEntry[];
1412
+ }
1413
+ /** Response from GET /v1/agents/:id/feedback/summary (INT-1). */
1414
+ interface AgentFeedbackSummary {
1415
+ agent_id: string;
1416
+ upvotes: number;
1417
+ downvotes: number;
1418
+ flags: number;
1419
+ total_feedback: number;
1420
+ /** Weighted-average importance across all non-expired memories (0.0–1.0). */
1421
+ health_score: number;
1422
+ }
1423
+ /** Response from GET /v1/feedback/health (INT-1). */
1424
+ interface FeedbackHealthResponse {
1425
+ agent_id: string;
1426
+ /** Mean importance of all non-expired memories (0.0–1.0). Higher = healthier. */
1427
+ health_score: number;
1428
+ memory_count: number;
1429
+ avg_importance: number;
1430
+ }
1431
+ /** Namespace-scoped API key metadata (no secret). Returned by listNamespaceKeys (SEC-1). */
1432
+ interface NamespaceKeyInfo {
1433
+ key_id: string;
1434
+ name: string;
1435
+ namespace: string;
1436
+ created_at: number;
1437
+ active: boolean;
1438
+ expires_at?: number;
1439
+ }
1440
+ /**
1441
+ * Response from POST /v1/namespaces/:namespace/keys (SEC-1).
1442
+ * The `key` field is shown **only once** — store it securely.
1443
+ */
1444
+ interface CreateNamespaceKeyResponse {
1445
+ key_id: string;
1446
+ /** The raw API key. Shown only on creation — cannot be retrieved again. */
1447
+ key: string;
1448
+ name: string;
1449
+ namespace: string;
1450
+ created_at: number;
1451
+ expires_at?: number;
1452
+ warning: string;
1453
+ }
1454
+ /** Response from GET /v1/namespaces/:namespace/keys (SEC-1). */
1455
+ interface ListNamespaceKeysResponse {
1456
+ namespace: string;
1457
+ keys: NamespaceKeyInfo[];
1458
+ total: number;
1459
+ }
1460
+ /** Response from GET /v1/namespaces/:namespace/keys/:key_id/usage (SEC-1). */
1461
+ interface NamespaceKeyUsageResponse {
1462
+ key_id: string;
1463
+ namespace: string;
1464
+ total_requests: number;
1465
+ successful_requests: number;
1466
+ failed_requests: number;
1467
+ bytes_transferred: number;
1468
+ avg_latency_ms: number;
1469
+ }
1263
1470
 
1264
1471
  /**
1265
1472
  * Dakera Client
@@ -1836,6 +2043,117 @@ declare class DakeraClient {
1836
2043
  consolidate(agentId: string, request?: ConsolidateRequest): Promise<ConsolidateResponse>;
1837
2044
  /** Submit feedback on a memory recall */
1838
2045
  memoryFeedback(agentId: string, request: MemoryFeedbackRequest): Promise<MemoryFeedbackResponse>;
2046
+ /**
2047
+ * Submit upvote/downvote/flag feedback on a memory (INT-1).
2048
+ *
2049
+ * - `upvote`: boosts importance ×1.15 (capped at 1.0).
2050
+ * - `downvote`: penalises importance ×0.85 (floor 0.0).
2051
+ * - `flag`: marks as irrelevant — accelerates decay on next cycle.
2052
+ *
2053
+ * @param memoryId The memory to give feedback on.
2054
+ * @param agentId The agent that owns the memory.
2055
+ * @param signal Feedback signal.
2056
+ */
2057
+ feedbackMemory(memoryId: string, agentId: string, signal: FeedbackSignal): Promise<FeedbackResponse>;
2058
+ /**
2059
+ * Get the full feedback history for a memory (INT-1).
2060
+ *
2061
+ * @param memoryId The memory whose feedback history to retrieve.
2062
+ */
2063
+ getMemoryFeedbackHistory(memoryId: string): Promise<FeedbackHistoryResponse>;
2064
+ /**
2065
+ * Get aggregate feedback counts and health score for an agent (INT-1).
2066
+ *
2067
+ * @param agentId The agent to summarise feedback for.
2068
+ */
2069
+ getAgentFeedbackSummary(agentId: string): Promise<AgentFeedbackSummary>;
2070
+ /**
2071
+ * Directly override a memory's importance score (INT-1).
2072
+ *
2073
+ * @param memoryId The memory to update.
2074
+ * @param agentId The agent that owns the memory.
2075
+ * @param importance New importance value (0.0–1.0).
2076
+ */
2077
+ patchMemoryImportance(memoryId: string, agentId: string, importance: number): Promise<FeedbackResponse>;
2078
+ /**
2079
+ * Get overall feedback health score for an agent (INT-1).
2080
+ *
2081
+ * The health score is the mean importance of all non-expired memories (0.0–1.0).
2082
+ * A higher score indicates a healthier, more relevant memory store.
2083
+ *
2084
+ * @param agentId The agent to get health score for.
2085
+ */
2086
+ getFeedbackHealth(agentId: string): Promise<FeedbackHealthResponse>;
2087
+ /**
2088
+ * Traverse the knowledge graph from a memory node.
2089
+ *
2090
+ * Requires CE-5 (Memory Knowledge Graph) on the server.
2091
+ *
2092
+ * @param memoryId Root memory ID to start traversal from.
2093
+ * @param options `depth` (default 1, max 3) and optional `types` filter.
2094
+ *
2095
+ * @example
2096
+ * const graph = await client.memories.graph(memoryId, { depth: 2 });
2097
+ * console.log(`${graph.nodes.length} nodes, ${graph.edges.length} edges`);
2098
+ */
2099
+ memoryGraph(memoryId: string, options?: MemoryGraphOptions): Promise<MemoryGraph>;
2100
+ /**
2101
+ * Find the shortest path between two memories in the knowledge graph.
2102
+ *
2103
+ * Requires CE-5 (Memory Knowledge Graph) on the server.
2104
+ *
2105
+ * @param sourceId Starting memory ID.
2106
+ * @param targetId Destination memory ID.
2107
+ */
2108
+ memoryPath(sourceId: string, targetId: string): Promise<GraphPath>;
2109
+ /**
2110
+ * Create an explicit edge between two memories.
2111
+ *
2112
+ * Requires CE-5 (Memory Knowledge Graph) on the server.
2113
+ *
2114
+ * @param sourceId Source memory ID.
2115
+ * @param targetId Target memory ID.
2116
+ * @param edgeType Edge type — must be `"linked_by"` for explicit links.
2117
+ */
2118
+ memoryLink(sourceId: string, targetId: string, edgeType?: EdgeType): Promise<GraphLinkResponse>;
2119
+ /**
2120
+ * Export the full knowledge graph for an agent.
2121
+ *
2122
+ * Requires CE-5 (Memory Knowledge Graph) on the server.
2123
+ *
2124
+ * @param agentId Agent whose graph to export.
2125
+ * @param format Export format — `"json"` (default), `"graphml"`, or `"csv"`.
2126
+ */
2127
+ agentGraphExport(agentId: string, format?: 'json' | 'graphml' | 'csv'): Promise<GraphExport>;
2128
+ /**
2129
+ * Configure entity extraction for a namespace.
2130
+ *
2131
+ * @param namespace - Target namespace
2132
+ * @param config - NER configuration (extract_entities flag + entity_types)
2133
+ * @returns Updated namespace config
2134
+ *
2135
+ * @note Requires CE-4 (GLiNER) on the server.
2136
+ */
2137
+ configureNamespaceNer(namespace: string, config: NamespaceNerConfig): Promise<Record<string, unknown>>;
2138
+ /**
2139
+ * Extract entities from arbitrary text without storing a memory.
2140
+ *
2141
+ * @param text - Text to extract entities from
2142
+ * @param entityTypes - Entity types to extract (defaults to server defaults)
2143
+ * @returns EntityExtractionResponse with extracted entities
2144
+ *
2145
+ * @note Requires CE-4 (GLiNER) on the server.
2146
+ */
2147
+ extractEntities(text: string, entityTypes?: string[]): Promise<EntityExtractionResponse>;
2148
+ /**
2149
+ * Get entity tags attached to a stored memory.
2150
+ *
2151
+ * @param memoryId - Memory ID to fetch entities for
2152
+ * @returns MemoryEntitiesResponse with entity list
2153
+ *
2154
+ * @note Requires CE-4 (GLiNER) on the server.
2155
+ */
2156
+ memoryEntities(memoryId: string): Promise<MemoryEntitiesResponse>;
1839
2157
  /** Start a new session */
1840
2158
  startSession(agentId: string, metadata?: Record<string, unknown>): Promise<Session>;
1841
2159
  /** End a session */
@@ -2030,6 +2348,34 @@ declare class DakeraClient {
2030
2348
  * ```
2031
2349
  */
2032
2350
  streamMemoryEvents(): AsyncGenerator<MemoryEvent>;
2351
+ /**
2352
+ * Subscribe to real-time memory lifecycle events for a specific agent.
2353
+ *
2354
+ * Wraps `GET /v1/events/stream`, filtering events by `agentId` and
2355
+ * optional `tags`. Reconnects automatically on connection drop when
2356
+ * `reconnect` is `true`.
2357
+ *
2358
+ * Requires a Read-scoped API key.
2359
+ *
2360
+ * @param agentId - Agent whose events to receive.
2361
+ * @param options.tags - Optional tag filter: only events whose tags overlap
2362
+ * this array are yielded.
2363
+ * @param options.reconnect - Auto-reconnect on connection drop. Default `true`.
2364
+ * @param options.reconnectDelay - Milliseconds to wait between reconnection
2365
+ * attempts. Default `1000`.
2366
+ *
2367
+ * @example
2368
+ * ```ts
2369
+ * for await (const event of client.subscribeAgentMemories('my-bot', { tags: ['important'] })) {
2370
+ * console.log(event.event_type, event.memory_id);
2371
+ * }
2372
+ * ```
2373
+ */
2374
+ subscribeAgentMemories(agentId: string, options?: {
2375
+ tags?: string[];
2376
+ reconnect?: boolean;
2377
+ reconnectDelay?: number;
2378
+ }): AsyncGenerator<MemoryEvent>;
2033
2379
  /**
2034
2380
  * Return a URL with `?api_key=<key>` appended for use with browser-native
2035
2381
  * `EventSource`, which cannot send custom request headers.
@@ -2054,6 +2400,39 @@ declare class DakeraClient {
2054
2400
  private _streamSseMemory;
2055
2401
  /** Parse a single SSE event block into a {@link MemoryEvent}. */
2056
2402
  private _parseSseMemoryBlock;
2403
+ /**
2404
+ * Create a namespace-scoped API key (SEC-1).
2405
+ *
2406
+ * The `key` field in the response is shown **only once** — store it securely.
2407
+ *
2408
+ * @param namespace The namespace to scope this key to.
2409
+ * @param name Human-readable label for the key.
2410
+ * @param expiresInDays Optional expiry in days from now.
2411
+ */
2412
+ createNamespaceKey(namespace: string, name: string, expiresInDays?: number): Promise<CreateNamespaceKeyResponse>;
2413
+ /**
2414
+ * List all API keys scoped to a namespace (SEC-1).
2415
+ *
2416
+ * @param namespace The namespace whose keys to list.
2417
+ */
2418
+ listNamespaceKeys(namespace: string): Promise<ListNamespaceKeysResponse>;
2419
+ /**
2420
+ * Revoke a namespace-scoped API key (SEC-1).
2421
+ *
2422
+ * @param namespace The namespace the key belongs to.
2423
+ * @param keyId The key to revoke.
2424
+ */
2425
+ deleteNamespaceKey(namespace: string, keyId: string): Promise<{
2426
+ success: boolean;
2427
+ message: string;
2428
+ }>;
2429
+ /**
2430
+ * Get usage statistics for a namespace-scoped API key (SEC-1).
2431
+ *
2432
+ * @param namespace The namespace the key belongs to.
2433
+ * @param keyId The key whose usage to retrieve.
2434
+ */
2435
+ getNamespaceKeyUsage(namespace: string, keyId: string): Promise<NamespaceKeyUsageResponse>;
2057
2436
  }
2058
2437
 
2059
2438
  /**
@@ -2118,4 +2497,4 @@ declare class TimeoutError extends DakeraError {
2118
2497
  constructor(message: string);
2119
2498
  }
2120
2499
 
2121
- export { type AccessPatternHint, type AgentId, type AgentNetworkEdge, type AgentNetworkInfo, type AgentNetworkNode, type AgentNetworkStats, type AgentStats, type AgentSummary, type AggregationGroup, type AggregationRequest, type AggregationResponse, type AnalyticsOptions, type AnalyticsOverview, type ApiKey, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationResultSnapshot, type CreateKeyRequest, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DeleteOptions, type DeleteResponse, type DistanceMetric, type Document, type DocumentInput, type EmbeddingModel, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextSearchResult, type HealthResponse, type HybridSearchResult, type IndexStats, type JobProgressEvent, type KeyUsage, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type LastDecayCycleStats, type LatencyAnalytics, type ListSessionsOptions, type Memory, type MemoryEvent, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryId, type MemoryType, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceInfo, NotFoundError, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, RateLimitError, type RateLimitHeaders, type ReadConsistency, type RecallRequest, type RecalledMemory, type RetryConfig, type SearchResult, ServerError, type Session, type SessionId, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, TimeoutError, type TtlConfig, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, memoryId, sessionId, vectorId };
2500
+ export { type AccessPatternHint, type AgentFeedbackSummary, type AgentId, type AgentNetworkEdge, type AgentNetworkInfo, type AgentNetworkNode, type AgentNetworkStats, type AgentStats, type AgentSummary, type AggregationGroup, type AggregationRequest, type AggregationResponse, type AnalyticsOptions, type AnalyticsOverview, type ApiKey, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationResultSnapshot, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DeleteOptions, type DeleteResponse, type DistanceMetric, type Document, type DocumentInput, type EdgeType, type EmbeddingModel, type EntityExtractionResponse, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type ExtractedEntity, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextSearchResult, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type IndexStats, type JobProgressEvent, type KeyUsage, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportancePatchRequest, type MemoryType, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceNerConfig, NotFoundError, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, RateLimitError, type RateLimitHeaders, type ReadConsistency, type RecallRequest, type RecalledMemory, type RetryConfig, type SearchResult, ServerError, type Session, type SessionId, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, TimeoutError, type TtlConfig, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, memoryId, sessionId, vectorId };