@dakera-ai/dakera 0.7.2 → 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 +62 -2
- package/dist/index.d.ts +62 -2
- package/dist/index.js +16 -0
- package/dist/index.mjs +16 -0
- package/package.json +1 -1
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 */
|
|
@@ -1106,6 +1112,50 @@ interface AutoPilotTriggerResponse {
|
|
|
1106
1112
|
consolidation?: AutoPilotConsolidationResult;
|
|
1107
1113
|
message: string;
|
|
1108
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
|
+
}
|
|
1109
1159
|
/** API key */
|
|
1110
1160
|
interface ApiKey {
|
|
1111
1161
|
id: string;
|
|
@@ -1876,6 +1926,16 @@ declare class DakeraClient {
|
|
|
1876
1926
|
autopilotUpdateConfig(request: AutoPilotConfigRequest): Promise<AutoPilotConfigResponse>;
|
|
1877
1927
|
/** Manually trigger an AutoPilot dedup or consolidation cycle (PILOT-3) */
|
|
1878
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>;
|
|
1879
1939
|
/** Create a new API key */
|
|
1880
1940
|
createKey(request: CreateKeyRequest): Promise<ApiKey>;
|
|
1881
1941
|
/** List all API keys */
|
|
@@ -2034,4 +2094,4 @@ declare class TimeoutError extends DakeraError {
|
|
|
2034
2094
|
constructor(message: string);
|
|
2035
2095
|
}
|
|
2036
2096
|
|
|
2037
|
-
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 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 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 */
|
|
@@ -1106,6 +1112,50 @@ interface AutoPilotTriggerResponse {
|
|
|
1106
1112
|
consolidation?: AutoPilotConsolidationResult;
|
|
1107
1113
|
message: string;
|
|
1108
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
|
+
}
|
|
1109
1159
|
/** API key */
|
|
1110
1160
|
interface ApiKey {
|
|
1111
1161
|
id: string;
|
|
@@ -1876,6 +1926,16 @@ declare class DakeraClient {
|
|
|
1876
1926
|
autopilotUpdateConfig(request: AutoPilotConfigRequest): Promise<AutoPilotConfigResponse>;
|
|
1877
1927
|
/** Manually trigger an AutoPilot dedup or consolidation cycle (PILOT-3) */
|
|
1878
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>;
|
|
1879
1939
|
/** Create a new API key */
|
|
1880
1940
|
createKey(request: CreateKeyRequest): Promise<ApiKey>;
|
|
1881
1941
|
/** List all API keys */
|
|
@@ -2034,4 +2094,4 @@ declare class TimeoutError extends DakeraError {
|
|
|
2034
2094
|
constructor(message: string);
|
|
2035
2095
|
}
|
|
2036
2096
|
|
|
2037
|
-
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 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 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
|
@@ -1345,6 +1345,22 @@ var DakeraClient = class {
|
|
|
1345
1345
|
async autopilotTrigger(action) {
|
|
1346
1346
|
return this.request("POST", "/v1/admin/autopilot/trigger", { action });
|
|
1347
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
|
+
}
|
|
1348
1364
|
// ===========================================================================
|
|
1349
1365
|
// API Key Operations
|
|
1350
1366
|
// ===========================================================================
|
package/dist/index.mjs
CHANGED
|
@@ -1305,6 +1305,22 @@ var DakeraClient = class {
|
|
|
1305
1305
|
async autopilotTrigger(action) {
|
|
1306
1306
|
return this.request("POST", "/v1/admin/autopilot/trigger", { action });
|
|
1307
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
|
+
}
|
|
1308
1324
|
// ===========================================================================
|
|
1309
1325
|
// API Key Operations
|
|
1310
1326
|
// ===========================================================================
|