@dakera-ai/dakera 0.7.1 → 0.7.3

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
@@ -402,8 +402,14 @@ interface StoreMemoryRequest {
402
402
  importance?: number;
403
403
  /** Optional metadata */
404
404
  metadata?: Record<string, unknown>;
405
- /** TTL in seconds */
405
+ /** TTL in seconds — memory is hard-deleted after this many seconds from creation */
406
406
  ttl_seconds?: number;
407
+ /**
408
+ * Explicit expiry as a Unix timestamp (seconds).
409
+ * Takes precedence over `ttl_seconds` when both are provided.
410
+ * The memory is hard-deleted by the decay engine on expiry (DECAY-3).
411
+ */
412
+ expires_at?: number;
407
413
  /** Associated session ID */
408
414
  session_id?: string;
409
415
  /** Pre-computed embedding */
@@ -1040,6 +1046,116 @@ interface TtlConfig {
1040
1046
  ttl_seconds: number;
1041
1047
  strategy?: string;
1042
1048
  }
1049
+ /** AutoPilot configuration */
1050
+ interface AutoPilotConfig {
1051
+ enabled: boolean;
1052
+ dedup_threshold: number;
1053
+ dedup_interval_hours: number;
1054
+ consolidation_interval_hours: number;
1055
+ }
1056
+ /** Result snapshot from a deduplication cycle */
1057
+ interface DedupResultSnapshot {
1058
+ namespaces_processed: number;
1059
+ memories_scanned: number;
1060
+ duplicates_removed: number;
1061
+ }
1062
+ /** Result snapshot from a consolidation cycle */
1063
+ interface ConsolidationResultSnapshot {
1064
+ namespaces_processed: number;
1065
+ memories_scanned: number;
1066
+ clusters_merged: number;
1067
+ memories_consolidated: number;
1068
+ }
1069
+ /** PILOT-1: AutoPilot status response */
1070
+ interface AutoPilotStatusResponse {
1071
+ config: AutoPilotConfig;
1072
+ last_dedup_at?: number;
1073
+ last_consolidation_at?: number;
1074
+ last_dedup?: DedupResultSnapshot;
1075
+ last_consolidation?: ConsolidationResultSnapshot;
1076
+ total_dedup_removed: number;
1077
+ total_consolidated: number;
1078
+ }
1079
+ /** PILOT-2: AutoPilot configuration update request (all fields optional) */
1080
+ interface AutoPilotConfigRequest {
1081
+ enabled?: boolean;
1082
+ dedup_threshold?: number;
1083
+ dedup_interval_hours?: number;
1084
+ consolidation_interval_hours?: number;
1085
+ }
1086
+ /** PILOT-2: AutoPilot configuration update response */
1087
+ interface AutoPilotConfigResponse {
1088
+ success: boolean;
1089
+ config: AutoPilotConfig;
1090
+ message: string;
1091
+ }
1092
+ /** PILOT-3: Trigger action */
1093
+ type AutoPilotTriggerAction = 'dedup' | 'consolidate' | 'all';
1094
+ /** Dedup result from a manual trigger */
1095
+ interface AutoPilotDedupResult {
1096
+ namespaces_processed: number;
1097
+ memories_scanned: number;
1098
+ duplicates_removed: number;
1099
+ }
1100
+ /** Consolidation result from a manual trigger */
1101
+ interface AutoPilotConsolidationResult {
1102
+ namespaces_processed: number;
1103
+ memories_scanned: number;
1104
+ clusters_merged: number;
1105
+ memories_consolidated: number;
1106
+ }
1107
+ /** PILOT-3: Trigger response */
1108
+ interface AutoPilotTriggerResponse {
1109
+ success: boolean;
1110
+ action: AutoPilotTriggerAction;
1111
+ dedup?: AutoPilotDedupResult;
1112
+ consolidation?: AutoPilotConsolidationResult;
1113
+ message: string;
1114
+ }
1115
+ /** Response from GET /v1/admin/decay/config (DECAY-1) */
1116
+ interface DecayConfigResponse {
1117
+ /** Decay strategy: "exponential", "linear", or "step" */
1118
+ strategy: 'exponential' | 'linear' | 'step';
1119
+ /** Half-life in hours */
1120
+ half_life_hours: number;
1121
+ /** Minimum importance threshold; memories below are hard-deleted on next cycle */
1122
+ min_importance: number;
1123
+ }
1124
+ /** Request for PUT /v1/admin/decay/config (DECAY-1) */
1125
+ interface DecayConfigUpdateRequest {
1126
+ /** Decay strategy: "exponential", "linear", or "step" */
1127
+ strategy?: 'exponential' | 'linear' | 'step';
1128
+ /** Half-life in hours (must be > 0) */
1129
+ half_life_hours?: number;
1130
+ /** Minimum importance threshold 0.0–1.0 */
1131
+ min_importance?: number;
1132
+ }
1133
+ /** Response from PUT /v1/admin/decay/config (DECAY-1) */
1134
+ interface DecayConfigUpdateResponse {
1135
+ success: boolean;
1136
+ config: DecayConfigResponse;
1137
+ message: string;
1138
+ }
1139
+ /** Stats from a single decay cycle */
1140
+ interface LastDecayCycleStats {
1141
+ namespaces_processed: number;
1142
+ memories_processed: number;
1143
+ memories_decayed: number;
1144
+ memories_deleted: number;
1145
+ }
1146
+ /** Response from GET /v1/admin/decay/stats (DECAY-2) */
1147
+ interface DecayStatsResponse {
1148
+ /** Total memories whose importance was lowered by decay (all-time) */
1149
+ total_decayed: number;
1150
+ /** Total memories hard-deleted by decay or TTL expiry (all-time) */
1151
+ total_deleted: number;
1152
+ /** Unix timestamp of the last decay cycle (undefined if never run) */
1153
+ last_run_at?: number;
1154
+ /** Number of decay cycles completed since startup */
1155
+ cycles_run: number;
1156
+ /** Stats from the most recent decay cycle (undefined if never run) */
1157
+ last_cycle?: LastDecayCycleStats;
1158
+ }
1043
1159
  /** API key */
1044
1160
  interface ApiKey {
1045
1161
  id: string;
@@ -1804,6 +1920,22 @@ declare class DakeraClient {
1804
1920
  }>;
1805
1921
  /** Configure TTL for a namespace */
1806
1922
  configureTtl(namespace: string, ttlSeconds: number, strategy?: string): Promise<TtlConfig>;
1923
+ /** Get AutoPilot status: current config and last-run statistics (PILOT-1) */
1924
+ autopilotStatus(): Promise<AutoPilotStatusResponse>;
1925
+ /** Update AutoPilot configuration at runtime (PILOT-2) */
1926
+ autopilotUpdateConfig(request: AutoPilotConfigRequest): Promise<AutoPilotConfigResponse>;
1927
+ /** Manually trigger an AutoPilot dedup or consolidation cycle (PILOT-3) */
1928
+ autopilotTrigger(action: AutoPilotTriggerAction): Promise<AutoPilotTriggerResponse>;
1929
+ /** Get current decay engine configuration (DECAY-1). Requires Admin scope. */
1930
+ decayConfig(): Promise<DecayConfigResponse>;
1931
+ /**
1932
+ * Update decay engine configuration at runtime (DECAY-1). Requires Admin scope.
1933
+ * Changes take effect on the next decay cycle — no restart required.
1934
+ * All fields are optional; omit any to keep its current value.
1935
+ */
1936
+ decayUpdateConfig(request: DecayConfigUpdateRequest): Promise<DecayConfigUpdateResponse>;
1937
+ /** Get decay activity counters and last-cycle snapshot (DECAY-2). Requires Admin scope. */
1938
+ decayStats(): Promise<DecayStatsResponse>;
1807
1939
  /** Create a new API key */
1808
1940
  createKey(request: CreateKeyRequest): Promise<ApiKey>;
1809
1941
  /** List all API keys */
@@ -1962,4 +2094,4 @@ declare class TimeoutError extends DakeraError {
1962
2094
  constructor(message: string);
1963
2095
  }
1964
2096
 
1965
- 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 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 CreateKeyRequest, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, 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 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 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 };
2097
+ 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 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 };
package/dist/index.d.ts CHANGED
@@ -402,8 +402,14 @@ interface StoreMemoryRequest {
402
402
  importance?: number;
403
403
  /** Optional metadata */
404
404
  metadata?: Record<string, unknown>;
405
- /** TTL in seconds */
405
+ /** TTL in seconds — memory is hard-deleted after this many seconds from creation */
406
406
  ttl_seconds?: number;
407
+ /**
408
+ * Explicit expiry as a Unix timestamp (seconds).
409
+ * Takes precedence over `ttl_seconds` when both are provided.
410
+ * The memory is hard-deleted by the decay engine on expiry (DECAY-3).
411
+ */
412
+ expires_at?: number;
407
413
  /** Associated session ID */
408
414
  session_id?: string;
409
415
  /** Pre-computed embedding */
@@ -1040,6 +1046,116 @@ interface TtlConfig {
1040
1046
  ttl_seconds: number;
1041
1047
  strategy?: string;
1042
1048
  }
1049
+ /** AutoPilot configuration */
1050
+ interface AutoPilotConfig {
1051
+ enabled: boolean;
1052
+ dedup_threshold: number;
1053
+ dedup_interval_hours: number;
1054
+ consolidation_interval_hours: number;
1055
+ }
1056
+ /** Result snapshot from a deduplication cycle */
1057
+ interface DedupResultSnapshot {
1058
+ namespaces_processed: number;
1059
+ memories_scanned: number;
1060
+ duplicates_removed: number;
1061
+ }
1062
+ /** Result snapshot from a consolidation cycle */
1063
+ interface ConsolidationResultSnapshot {
1064
+ namespaces_processed: number;
1065
+ memories_scanned: number;
1066
+ clusters_merged: number;
1067
+ memories_consolidated: number;
1068
+ }
1069
+ /** PILOT-1: AutoPilot status response */
1070
+ interface AutoPilotStatusResponse {
1071
+ config: AutoPilotConfig;
1072
+ last_dedup_at?: number;
1073
+ last_consolidation_at?: number;
1074
+ last_dedup?: DedupResultSnapshot;
1075
+ last_consolidation?: ConsolidationResultSnapshot;
1076
+ total_dedup_removed: number;
1077
+ total_consolidated: number;
1078
+ }
1079
+ /** PILOT-2: AutoPilot configuration update request (all fields optional) */
1080
+ interface AutoPilotConfigRequest {
1081
+ enabled?: boolean;
1082
+ dedup_threshold?: number;
1083
+ dedup_interval_hours?: number;
1084
+ consolidation_interval_hours?: number;
1085
+ }
1086
+ /** PILOT-2: AutoPilot configuration update response */
1087
+ interface AutoPilotConfigResponse {
1088
+ success: boolean;
1089
+ config: AutoPilotConfig;
1090
+ message: string;
1091
+ }
1092
+ /** PILOT-3: Trigger action */
1093
+ type AutoPilotTriggerAction = 'dedup' | 'consolidate' | 'all';
1094
+ /** Dedup result from a manual trigger */
1095
+ interface AutoPilotDedupResult {
1096
+ namespaces_processed: number;
1097
+ memories_scanned: number;
1098
+ duplicates_removed: number;
1099
+ }
1100
+ /** Consolidation result from a manual trigger */
1101
+ interface AutoPilotConsolidationResult {
1102
+ namespaces_processed: number;
1103
+ memories_scanned: number;
1104
+ clusters_merged: number;
1105
+ memories_consolidated: number;
1106
+ }
1107
+ /** PILOT-3: Trigger response */
1108
+ interface AutoPilotTriggerResponse {
1109
+ success: boolean;
1110
+ action: AutoPilotTriggerAction;
1111
+ dedup?: AutoPilotDedupResult;
1112
+ consolidation?: AutoPilotConsolidationResult;
1113
+ message: string;
1114
+ }
1115
+ /** Response from GET /v1/admin/decay/config (DECAY-1) */
1116
+ interface DecayConfigResponse {
1117
+ /** Decay strategy: "exponential", "linear", or "step" */
1118
+ strategy: 'exponential' | 'linear' | 'step';
1119
+ /** Half-life in hours */
1120
+ half_life_hours: number;
1121
+ /** Minimum importance threshold; memories below are hard-deleted on next cycle */
1122
+ min_importance: number;
1123
+ }
1124
+ /** Request for PUT /v1/admin/decay/config (DECAY-1) */
1125
+ interface DecayConfigUpdateRequest {
1126
+ /** Decay strategy: "exponential", "linear", or "step" */
1127
+ strategy?: 'exponential' | 'linear' | 'step';
1128
+ /** Half-life in hours (must be > 0) */
1129
+ half_life_hours?: number;
1130
+ /** Minimum importance threshold 0.0–1.0 */
1131
+ min_importance?: number;
1132
+ }
1133
+ /** Response from PUT /v1/admin/decay/config (DECAY-1) */
1134
+ interface DecayConfigUpdateResponse {
1135
+ success: boolean;
1136
+ config: DecayConfigResponse;
1137
+ message: string;
1138
+ }
1139
+ /** Stats from a single decay cycle */
1140
+ interface LastDecayCycleStats {
1141
+ namespaces_processed: number;
1142
+ memories_processed: number;
1143
+ memories_decayed: number;
1144
+ memories_deleted: number;
1145
+ }
1146
+ /** Response from GET /v1/admin/decay/stats (DECAY-2) */
1147
+ interface DecayStatsResponse {
1148
+ /** Total memories whose importance was lowered by decay (all-time) */
1149
+ total_decayed: number;
1150
+ /** Total memories hard-deleted by decay or TTL expiry (all-time) */
1151
+ total_deleted: number;
1152
+ /** Unix timestamp of the last decay cycle (undefined if never run) */
1153
+ last_run_at?: number;
1154
+ /** Number of decay cycles completed since startup */
1155
+ cycles_run: number;
1156
+ /** Stats from the most recent decay cycle (undefined if never run) */
1157
+ last_cycle?: LastDecayCycleStats;
1158
+ }
1043
1159
  /** API key */
1044
1160
  interface ApiKey {
1045
1161
  id: string;
@@ -1804,6 +1920,22 @@ declare class DakeraClient {
1804
1920
  }>;
1805
1921
  /** Configure TTL for a namespace */
1806
1922
  configureTtl(namespace: string, ttlSeconds: number, strategy?: string): Promise<TtlConfig>;
1923
+ /** Get AutoPilot status: current config and last-run statistics (PILOT-1) */
1924
+ autopilotStatus(): Promise<AutoPilotStatusResponse>;
1925
+ /** Update AutoPilot configuration at runtime (PILOT-2) */
1926
+ autopilotUpdateConfig(request: AutoPilotConfigRequest): Promise<AutoPilotConfigResponse>;
1927
+ /** Manually trigger an AutoPilot dedup or consolidation cycle (PILOT-3) */
1928
+ autopilotTrigger(action: AutoPilotTriggerAction): Promise<AutoPilotTriggerResponse>;
1929
+ /** Get current decay engine configuration (DECAY-1). Requires Admin scope. */
1930
+ decayConfig(): Promise<DecayConfigResponse>;
1931
+ /**
1932
+ * Update decay engine configuration at runtime (DECAY-1). Requires Admin scope.
1933
+ * Changes take effect on the next decay cycle — no restart required.
1934
+ * All fields are optional; omit any to keep its current value.
1935
+ */
1936
+ decayUpdateConfig(request: DecayConfigUpdateRequest): Promise<DecayConfigUpdateResponse>;
1937
+ /** Get decay activity counters and last-cycle snapshot (DECAY-2). Requires Admin scope. */
1938
+ decayStats(): Promise<DecayStatsResponse>;
1807
1939
  /** Create a new API key */
1808
1940
  createKey(request: CreateKeyRequest): Promise<ApiKey>;
1809
1941
  /** List all API keys */
@@ -1962,4 +2094,4 @@ declare class TimeoutError extends DakeraError {
1962
2094
  constructor(message: string);
1963
2095
  }
1964
2096
 
1965
- 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 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 CreateKeyRequest, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, 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 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 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 };
2097
+ 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 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 };
package/dist/index.js CHANGED
@@ -1333,6 +1333,34 @@ var DakeraClient = class {
1333
1333
  if (strategy) body.strategy = strategy;
1334
1334
  return this.request("POST", `/v1/admin/namespaces/${namespace}/ttl`, body);
1335
1335
  }
1336
+ /** Get AutoPilot status: current config and last-run statistics (PILOT-1) */
1337
+ async autopilotStatus() {
1338
+ return this.request("GET", "/v1/admin/autopilot/status");
1339
+ }
1340
+ /** Update AutoPilot configuration at runtime (PILOT-2) */
1341
+ async autopilotUpdateConfig(request) {
1342
+ return this.request("PUT", "/v1/admin/autopilot/config", request);
1343
+ }
1344
+ /** Manually trigger an AutoPilot dedup or consolidation cycle (PILOT-3) */
1345
+ async autopilotTrigger(action) {
1346
+ return this.request("POST", "/v1/admin/autopilot/trigger", { action });
1347
+ }
1348
+ /** Get current decay engine configuration (DECAY-1). Requires Admin scope. */
1349
+ async decayConfig() {
1350
+ return this.request("GET", "/v1/admin/decay/config");
1351
+ }
1352
+ /**
1353
+ * Update decay engine configuration at runtime (DECAY-1). Requires Admin scope.
1354
+ * Changes take effect on the next decay cycle — no restart required.
1355
+ * All fields are optional; omit any to keep its current value.
1356
+ */
1357
+ async decayUpdateConfig(request) {
1358
+ return this.request("PUT", "/v1/admin/decay/config", request);
1359
+ }
1360
+ /** Get decay activity counters and last-cycle snapshot (DECAY-2). Requires Admin scope. */
1361
+ async decayStats() {
1362
+ return this.request("GET", "/v1/admin/decay/stats");
1363
+ }
1336
1364
  // ===========================================================================
1337
1365
  // API Key Operations
1338
1366
  // ===========================================================================
package/dist/index.mjs CHANGED
@@ -1293,6 +1293,34 @@ var DakeraClient = class {
1293
1293
  if (strategy) body.strategy = strategy;
1294
1294
  return this.request("POST", `/v1/admin/namespaces/${namespace}/ttl`, body);
1295
1295
  }
1296
+ /** Get AutoPilot status: current config and last-run statistics (PILOT-1) */
1297
+ async autopilotStatus() {
1298
+ return this.request("GET", "/v1/admin/autopilot/status");
1299
+ }
1300
+ /** Update AutoPilot configuration at runtime (PILOT-2) */
1301
+ async autopilotUpdateConfig(request) {
1302
+ return this.request("PUT", "/v1/admin/autopilot/config", request);
1303
+ }
1304
+ /** Manually trigger an AutoPilot dedup or consolidation cycle (PILOT-3) */
1305
+ async autopilotTrigger(action) {
1306
+ return this.request("POST", "/v1/admin/autopilot/trigger", { action });
1307
+ }
1308
+ /** Get current decay engine configuration (DECAY-1). Requires Admin scope. */
1309
+ async decayConfig() {
1310
+ return this.request("GET", "/v1/admin/decay/config");
1311
+ }
1312
+ /**
1313
+ * Update decay engine configuration at runtime (DECAY-1). Requires Admin scope.
1314
+ * Changes take effect on the next decay cycle — no restart required.
1315
+ * All fields are optional; omit any to keep its current value.
1316
+ */
1317
+ async decayUpdateConfig(request) {
1318
+ return this.request("PUT", "/v1/admin/decay/config", request);
1319
+ }
1320
+ /** Get decay activity counters and last-cycle snapshot (DECAY-2). Requires Admin scope. */
1321
+ async decayStats() {
1322
+ return this.request("GET", "/v1/admin/decay/stats");
1323
+ }
1296
1324
  // ===========================================================================
1297
1325
  // API Key Operations
1298
1326
  // ===========================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakera-ai/dakera",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "TypeScript/JavaScript SDK for Dakera AI memory platform",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",