@dakera-ai/dakera 0.11.55 → 0.11.56

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
@@ -127,13 +127,13 @@ interface IndexStats {
127
127
  /** Document for full-text search */
128
128
  interface Document {
129
129
  id: VectorId;
130
- content: string;
130
+ text: string;
131
131
  metadata?: Record<string, unknown>;
132
132
  }
133
133
  /** Input for document operations */
134
134
  type DocumentInput = Document | {
135
135
  id: VectorId | string;
136
- content: string;
136
+ text: string;
137
137
  metadata?: Record<string, unknown>;
138
138
  };
139
139
  /** Result from full-text search */
@@ -1173,13 +1173,30 @@ interface SlowQuery {
1173
1173
  timestamp: string;
1174
1174
  namespace?: string;
1175
1175
  }
1176
+ /** Backup type. */
1177
+ type BackupType = 'full' | 'incremental' | 'snapshot';
1178
+ /** Backup status. */
1179
+ type BackupStatus = 'inprogress' | 'completed' | 'failed' | 'deleting';
1180
+ /** Compression type. */
1181
+ type CompressionType = 'none' | 'zstd' | 'lz4';
1182
+ /** Restore status. */
1183
+ type RestoreStatus = 'inprogress' | 'completed' | 'failed';
1176
1184
  /** Backup info */
1177
1185
  interface BackupInfo {
1178
- id: string;
1179
- created_at: string;
1186
+ backup_id: string;
1187
+ name: string;
1188
+ backup_type: BackupType;
1189
+ status: BackupStatus;
1190
+ namespaces: string[];
1191
+ vector_count: number;
1180
1192
  size_bytes: number;
1181
- status: string;
1182
- include_data: boolean;
1193
+ created_at: number;
1194
+ completed_at?: number;
1195
+ duration_seconds?: number;
1196
+ storage_path?: string;
1197
+ error?: string;
1198
+ encrypted: boolean;
1199
+ compression?: CompressionType;
1183
1200
  }
1184
1201
  /** TTL configuration */
1185
1202
  interface TtlConfig {
@@ -1878,6 +1895,487 @@ interface FulltextReindexResponse {
1878
1895
  /** Per-namespace breakdown. */
1879
1896
  details: FulltextReindexNamespaceResult[];
1880
1897
  }
1898
+ /** Response from GET /health/ready. */
1899
+ interface ReadinessResponse {
1900
+ ready: boolean;
1901
+ version: string;
1902
+ checks: Record<string, {
1903
+ status: string;
1904
+ message?: string;
1905
+ }>;
1906
+ }
1907
+ /** Response from GET /health/live. */
1908
+ interface LivenessResponse {
1909
+ alive: boolean;
1910
+ version: string;
1911
+ uptime_seconds: number;
1912
+ }
1913
+ /** Request for POST /v1/namespaces/{ns}/vectors/bulk-update. */
1914
+ interface BulkUpdateRequest {
1915
+ filter: Record<string, unknown>;
1916
+ update: Record<string, unknown>;
1917
+ }
1918
+ /** Response from POST /v1/namespaces/{ns}/vectors/bulk-update. */
1919
+ interface BulkUpdateResponse {
1920
+ updated: number;
1921
+ failed: number;
1922
+ errors: string[];
1923
+ }
1924
+ /** Request for POST /v1/namespaces/{ns}/vectors/bulk-delete. */
1925
+ interface BulkDeleteRequest {
1926
+ filter: Record<string, unknown>;
1927
+ }
1928
+ /** Response from POST /v1/namespaces/{ns}/vectors/bulk-delete. */
1929
+ interface BulkDeleteResponse {
1930
+ deleted: number;
1931
+ failed: number;
1932
+ errors: string[];
1933
+ }
1934
+ /** Request for POST /v1/namespaces/{ns}/vectors/count. */
1935
+ interface CountVectorsRequest {
1936
+ filter?: Record<string, unknown>;
1937
+ }
1938
+ /** Response from POST /v1/namespaces/{ns}/vectors/count. */
1939
+ interface CountVectorsResponse {
1940
+ count: number;
1941
+ namespace: string;
1942
+ }
1943
+ /** Response from POST /v1/agents/{agent_id}/consolidate. */
1944
+ interface AgentConsolidateResponse {
1945
+ agent_id: string;
1946
+ memories_scanned: number;
1947
+ clusters_found: number;
1948
+ memories_deprecated: number;
1949
+ anchor_ids: string[];
1950
+ deprecated_ids: string[];
1951
+ skipped?: boolean;
1952
+ reason?: string;
1953
+ }
1954
+ /** One entry in the agent consolidation log. */
1955
+ interface AgentConsolidationLogEntry {
1956
+ timestamp: number;
1957
+ clusters_found: number;
1958
+ memories_deprecated: number;
1959
+ anchor_ids: string[];
1960
+ deprecated_ids: string[];
1961
+ }
1962
+ /** Request for PATCH /v1/agents/{agent_id}/consolidation/config. */
1963
+ interface ConsolidationConfigPatch {
1964
+ enabled?: boolean;
1965
+ epsilon?: number;
1966
+ min_samples?: number;
1967
+ soft_deprecation_days?: number;
1968
+ }
1969
+ /** Response from PATCH /v1/agents/{agent_id}/consolidation/config. */
1970
+ interface AgentConsolidationConfig {
1971
+ enabled: boolean;
1972
+ epsilon: number;
1973
+ min_samples: number;
1974
+ soft_deprecation_days: number;
1975
+ }
1976
+ /** Response from GET /v1/namespaces/{ns}/config. */
1977
+ interface NamespaceEntityConfig {
1978
+ namespace: string;
1979
+ extract_entities: boolean;
1980
+ entity_types: string[];
1981
+ }
1982
+ /** Response from GET /v1/namespaces/{ns}/extractor. */
1983
+ interface ExtractorConfig {
1984
+ provider: string;
1985
+ model?: string;
1986
+ base_url?: string;
1987
+ }
1988
+ /** Cluster replication status. */
1989
+ interface ReplicationStatus {
1990
+ replication_factor: number;
1991
+ healthy_replicas: number;
1992
+ total_nodes: number;
1993
+ replication_lag: NodeReplicationLag[];
1994
+ }
1995
+ /** Per-node replication lag. */
1996
+ interface NodeReplicationLag {
1997
+ node_id: string;
1998
+ lag_ms: number;
1999
+ status: string;
2000
+ }
2001
+ /** Shard information. */
2002
+ interface ShardInfo {
2003
+ shard_id: string;
2004
+ namespace: string;
2005
+ primary_node: string;
2006
+ replica_nodes: string[];
2007
+ state: string;
2008
+ vector_count: number;
2009
+ size_bytes: number;
2010
+ }
2011
+ /** Response from GET /admin/cluster/shards. */
2012
+ interface ShardListResponse {
2013
+ shards: ShardInfo[];
2014
+ total: number;
2015
+ }
2016
+ /** Request for POST /admin/cluster/shards/rebalance. */
2017
+ interface ShardRebalanceRequest {
2018
+ shard_ids?: string[];
2019
+ dry_run?: boolean;
2020
+ }
2021
+ /** Response from POST /admin/cluster/shards/rebalance. */
2022
+ interface ShardRebalanceResponse {
2023
+ initiated: boolean;
2024
+ operation_id: string;
2025
+ shards_affected: number;
2026
+ estimated_seconds?: number;
2027
+ planned_moves: Array<{
2028
+ shard_id: string;
2029
+ from_node: string;
2030
+ to_node: string;
2031
+ }>;
2032
+ }
2033
+ /** Maintenance mode status. */
2034
+ interface MaintenanceStatus {
2035
+ enabled: boolean;
2036
+ reason?: string;
2037
+ enabled_at?: number;
2038
+ scheduled_end?: number;
2039
+ nodes_in_maintenance: string[];
2040
+ rejecting_requests: boolean;
2041
+ }
2042
+ /** Request for POST /admin/cluster/maintenance/enable. */
2043
+ interface EnableMaintenanceRequest {
2044
+ reason: string;
2045
+ node_ids?: string[];
2046
+ reject_requests?: boolean;
2047
+ duration_minutes?: number;
2048
+ }
2049
+ /** Request for POST /admin/cluster/maintenance/disable. */
2050
+ interface DisableMaintenanceRequest {
2051
+ force?: boolean;
2052
+ }
2053
+ /** Quota enforcement mode. */
2054
+ type QuotaEnforcement = 'none' | 'soft' | 'hard';
2055
+ /** Quota configuration for a namespace. */
2056
+ interface QuotaConfig {
2057
+ max_vectors?: number;
2058
+ max_storage_bytes?: number;
2059
+ max_dimensions?: number;
2060
+ max_metadata_bytes?: number;
2061
+ enforcement?: QuotaEnforcement;
2062
+ }
2063
+ /** Quota usage for a namespace. */
2064
+ interface QuotaUsage {
2065
+ vector_count: number;
2066
+ storage_bytes: number;
2067
+ avg_dimensions?: number;
2068
+ avg_metadata_bytes?: number;
2069
+ last_updated: number;
2070
+ }
2071
+ /** Combined quota status. */
2072
+ interface QuotaStatus {
2073
+ namespace: string;
2074
+ config: QuotaConfig;
2075
+ usage: QuotaUsage;
2076
+ vector_usage_percent?: number;
2077
+ storage_usage_percent?: number;
2078
+ is_exceeded: boolean;
2079
+ exceeded_quotas: string[];
2080
+ }
2081
+ /** Response from GET /admin/quotas. */
2082
+ interface QuotaListResponse {
2083
+ quotas: QuotaStatus[];
2084
+ total: number;
2085
+ default_config?: QuotaConfig;
2086
+ }
2087
+ /** Response from GET /admin/quotas/default. */
2088
+ interface DefaultQuotaResponse {
2089
+ config?: QuotaConfig;
2090
+ }
2091
+ /** Request for PUT /admin/quotas/default. */
2092
+ interface SetDefaultQuotaRequest {
2093
+ config?: QuotaConfig;
2094
+ }
2095
+ /** Request for PUT /admin/quotas/{namespace}. */
2096
+ interface SetQuotaRequest {
2097
+ config: QuotaConfig;
2098
+ }
2099
+ /** Response from PUT /admin/quotas. */
2100
+ interface SetQuotaResponse {
2101
+ success: boolean;
2102
+ namespace: string;
2103
+ config: QuotaConfig;
2104
+ message: string;
2105
+ }
2106
+ /** Request for POST /admin/quotas/{namespace}/check. */
2107
+ interface QuotaCheckRequest {
2108
+ vector_ids: string[];
2109
+ dimensions?: number;
2110
+ metadata_bytes?: number;
2111
+ }
2112
+ /** Response from POST /admin/quotas/{namespace}/check. */
2113
+ interface QuotaCheckResult {
2114
+ allowed: boolean;
2115
+ reason?: string;
2116
+ usage: QuotaUsage;
2117
+ exceeded_quota?: string;
2118
+ }
2119
+ /** Response from GET /admin/backups. */
2120
+ interface BackupListResponse {
2121
+ backups: BackupInfo[];
2122
+ total: number;
2123
+ }
2124
+ /** Request for POST /admin/backups. */
2125
+ interface CreateBackupRequest {
2126
+ name: string;
2127
+ backup_type?: BackupType;
2128
+ namespaces?: string[];
2129
+ encrypt?: boolean;
2130
+ compression?: CompressionType;
2131
+ }
2132
+ /** Response from POST /admin/backups. */
2133
+ interface CreateBackupResponse {
2134
+ backup: BackupInfo;
2135
+ estimated_completion?: number;
2136
+ }
2137
+ /** Request for POST /admin/backups/restore. */
2138
+ interface RestoreBackupRequest {
2139
+ backup_id: string;
2140
+ target_namespaces?: string[];
2141
+ overwrite?: boolean;
2142
+ point_in_time?: number;
2143
+ }
2144
+ /** Response from POST /admin/backups/restore. */
2145
+ interface RestoreBackupResponse {
2146
+ restore_id: string;
2147
+ status: RestoreStatus;
2148
+ backup_id: string;
2149
+ namespaces: string[];
2150
+ started_at: number;
2151
+ estimated_completion?: number;
2152
+ progress_percent?: number;
2153
+ vectors_restored?: number;
2154
+ completed_at?: number;
2155
+ duration_seconds?: number;
2156
+ error?: string;
2157
+ }
2158
+ /** Backup schedule configuration. */
2159
+ interface BackupSchedule {
2160
+ enabled: boolean;
2161
+ cron?: string;
2162
+ backup_type: BackupType;
2163
+ retention_days: number;
2164
+ max_backups: number;
2165
+ namespaces: string[];
2166
+ encrypt: boolean;
2167
+ compression?: CompressionType;
2168
+ last_backup_at?: number;
2169
+ next_backup_at?: number;
2170
+ }
2171
+ /** Request for POST /admin/backups/schedule. */
2172
+ interface UpdateBackupScheduleRequest {
2173
+ enabled?: boolean;
2174
+ cron?: string;
2175
+ backup_type?: BackupType;
2176
+ retention_days?: number;
2177
+ max_backups?: number;
2178
+ namespaces?: string[];
2179
+ encrypt?: boolean;
2180
+ compression?: CompressionType;
2181
+ }
2182
+ /** Ops job info. */
2183
+ interface JobInfo {
2184
+ id: string;
2185
+ job_type: string;
2186
+ status: string;
2187
+ created_at: number;
2188
+ started_at?: number;
2189
+ completed_at?: number;
2190
+ progress: number;
2191
+ message?: string;
2192
+ metadata: Record<string, string>;
2193
+ }
2194
+ /** System diagnostics. */
2195
+ interface SystemDiagnostics {
2196
+ system: {
2197
+ version: string;
2198
+ rust_version: string;
2199
+ build_time: string;
2200
+ uptime_seconds: number;
2201
+ pid: number;
2202
+ };
2203
+ resources: {
2204
+ memory_bytes: number;
2205
+ memory_total_bytes: number;
2206
+ thread_count: number;
2207
+ open_fds: number;
2208
+ cpu_percent?: number;
2209
+ };
2210
+ components: {
2211
+ storage: {
2212
+ healthy: boolean;
2213
+ message: string;
2214
+ last_check: number;
2215
+ };
2216
+ search_engine: {
2217
+ healthy: boolean;
2218
+ message: string;
2219
+ last_check: number;
2220
+ };
2221
+ cache: {
2222
+ healthy: boolean;
2223
+ message: string;
2224
+ last_check: number;
2225
+ };
2226
+ grpc: {
2227
+ healthy: boolean;
2228
+ message: string;
2229
+ last_check: number;
2230
+ };
2231
+ };
2232
+ active_jobs: number;
2233
+ active_connections: number;
2234
+ max_connections: number;
2235
+ fragmentation_percent: number;
2236
+ }
2237
+ /** Request for POST /ops/compact. */
2238
+ interface CompactionRequest {
2239
+ namespace?: string;
2240
+ force?: boolean;
2241
+ }
2242
+ /** Response from POST /ops/compact. */
2243
+ interface CompactionResponse {
2244
+ job_id: string;
2245
+ message: string;
2246
+ }
2247
+ /** GET /v1/namespaces/{namespace}/fulltext/stats */
2248
+ interface FullTextIndexStats {
2249
+ /** Number of documents in the full-text index. */
2250
+ document_count: number;
2251
+ /** Number of unique terms across all documents. */
2252
+ unique_terms: number;
2253
+ /** Average document length (in terms). */
2254
+ avg_doc_length: number;
2255
+ }
2256
+ /** Request body for POST /v1/namespaces/{namespace}/fulltext/delete */
2257
+ interface FulltextDeleteRequest {
2258
+ /** IDs of documents to delete from the full-text index. */
2259
+ ids: string[];
2260
+ }
2261
+ /** Response from POST /v1/namespaces/{namespace}/fulltext/delete */
2262
+ interface FulltextDeleteResponse {
2263
+ /** Number of documents deleted. */
2264
+ deleted_count: number;
2265
+ }
2266
+ /** Per-namespace TTL statistics. */
2267
+ interface TtlNamespaceStats {
2268
+ namespace: string;
2269
+ vectors_with_ttl: number;
2270
+ expiring_within_hour: number;
2271
+ expiring_within_day: number;
2272
+ expired_pending_cleanup: number;
2273
+ }
2274
+ /** Response from GET /admin/ttl/stats */
2275
+ interface TtlStatsResponse {
2276
+ namespaces: TtlNamespaceStats[];
2277
+ total_with_ttl: number;
2278
+ total_expired: number;
2279
+ }
2280
+ /** A single route match from the query router. */
2281
+ interface RouteMatch {
2282
+ namespace: string;
2283
+ similarity: number;
2284
+ description?: string;
2285
+ }
2286
+ /** Response from POST /v1/route */
2287
+ interface RouteResponse {
2288
+ routes: RouteMatch[];
2289
+ model: string;
2290
+ embedding_time_ms: number;
2291
+ }
2292
+ /** Request body for POST /v1/route */
2293
+ interface RouteRequest {
2294
+ query: string;
2295
+ top_k?: number;
2296
+ min_similarity?: number;
2297
+ model?: string;
2298
+ }
2299
+ /** Response from GET /v1/import/{job_id}/status */
2300
+ interface ImportJobStatus {
2301
+ job_id: string;
2302
+ status: string;
2303
+ format: string;
2304
+ total: number;
2305
+ imported: number;
2306
+ skipped: number;
2307
+ errors: string[];
2308
+ started_at: number;
2309
+ finished_at?: number;
2310
+ }
2311
+ /** Information about a storage tier. */
2312
+ interface TierInfo {
2313
+ name: string;
2314
+ tier_type: string;
2315
+ technology: string;
2316
+ description: string;
2317
+ target_latency: string;
2318
+ capacity?: string;
2319
+ status: string;
2320
+ current_count: number;
2321
+ hit_count: number;
2322
+ hit_rate: number;
2323
+ }
2324
+ /** Storage tier configuration. */
2325
+ interface TierConfig {
2326
+ hot_tier_capacity: number;
2327
+ hot_to_warm_threshold_secs: number;
2328
+ warm_to_cold_threshold_secs: number;
2329
+ auto_tier_enabled: boolean;
2330
+ tier_check_interval_secs: number;
2331
+ }
2332
+ /** Storage tier activity metrics. */
2333
+ interface TierActivity {
2334
+ promotions: number;
2335
+ demotions: number;
2336
+ cache_hit_rate: number;
2337
+ storage_backend: string;
2338
+ promotions_to_hot: number;
2339
+ demotions_to_warm: number;
2340
+ demotions_to_cold: number;
2341
+ }
2342
+ /** Response from GET /admin/storage/tiers */
2343
+ interface StorageTierOverview {
2344
+ tiers_enabled: boolean;
2345
+ architecture: TierInfo[];
2346
+ config: TierConfig;
2347
+ activity: TierActivity;
2348
+ }
2349
+ /** Response from GET /admin/memory-type-stats */
2350
+ interface MemoryTypeStatsResponse {
2351
+ total: number;
2352
+ working: number;
2353
+ episodic: number;
2354
+ semantic: number;
2355
+ procedural: number;
2356
+ agent_namespaces: number;
2357
+ }
2358
+ /** Request body for POST /admin/namespaces/migrate-dimensions */
2359
+ interface MigrateNamespaceDimensionsRequest {
2360
+ namespaces?: string[];
2361
+ target_dimension?: number;
2362
+ }
2363
+ /** Result of migrating a single namespace's dimensions. */
2364
+ interface NamespaceMigrationResult {
2365
+ namespace: string;
2366
+ original_dimension: number;
2367
+ vectors_migrated: number;
2368
+ vectors_skipped: number;
2369
+ status: string;
2370
+ error?: string;
2371
+ }
2372
+ /** Response from POST /admin/namespaces/migrate-dimensions */
2373
+ interface MigrateDimensionsResponse {
2374
+ migrated: number;
2375
+ failed: number;
2376
+ already_current: number;
2377
+ results: NamespaceMigrationResult[];
2378
+ }
1881
2379
 
1882
2380
  /**
1883
2381
  * Dakera client for interacting with the AI memory platform.
@@ -1979,6 +2477,12 @@ declare class DakeraClient {
1979
2477
  * ```
1980
2478
  */
1981
2479
  delete(namespace: string, options: DeleteOptions): Promise<DeleteResponse>;
2480
+ /** Bulk update vector metadata matching a filter. */
2481
+ bulkUpdateVectors(namespace: string, filter: Record<string, unknown>, update: Record<string, unknown>): Promise<BulkUpdateResponse>;
2482
+ /** Bulk delete vectors matching a filter. */
2483
+ bulkDeleteVectors(namespace: string, filter: Record<string, unknown>): Promise<BulkDeleteResponse>;
2484
+ /** Count vectors in a namespace, optionally filtered. */
2485
+ countVectors(namespace: string, filter?: Record<string, unknown>): Promise<CountVectorsResponse>;
1982
2486
  /**
1983
2487
  * Fetch vectors by ID.
1984
2488
  *
@@ -2107,6 +2611,10 @@ declare class DakeraClient {
2107
2611
  * @returns Health status
2108
2612
  */
2109
2613
  health(): Promise<HealthResponse>;
2614
+ /** K8s readiness probe — checks storage and dependencies. */
2615
+ healthReady(): Promise<ReadinessResponse>;
2616
+ /** K8s liveness probe — checks process is alive. */
2617
+ healthLive(): Promise<LivenessResponse>;
2110
2618
  /**
2111
2619
  * Get index statistics for a namespace.
2112
2620
  *
@@ -2475,6 +2983,12 @@ declare class DakeraClient {
2475
2983
  }>;
2476
2984
  /** Consolidate memories for an agent */
2477
2985
  consolidate(agentId: string, request?: ConsolidateRequest): Promise<ConsolidateResponse>;
2986
+ /** Consolidate memories directly for an agent (DBSCAN clustering). */
2987
+ consolidateAgent(agentId: string): Promise<AgentConsolidateResponse>;
2988
+ /** Get the consolidation execution log for an agent. */
2989
+ getConsolidationLog(agentId: string): Promise<AgentConsolidationLogEntry[]>;
2990
+ /** Update the consolidation configuration for an agent. */
2991
+ patchConsolidationConfig(agentId: string, config: ConsolidationConfigPatch): Promise<AgentConsolidationConfig>;
2478
2992
  /** Submit feedback on a memory recall */
2479
2993
  memoryFeedback(agentId: string, request: MemoryFeedbackRequest): Promise<MemoryFeedbackResponse>;
2480
2994
  /**
@@ -2559,6 +3073,10 @@ declare class DakeraClient {
2559
3073
  * @param format Export format — `"json"` (default), `"graphml"`, or `"csv"`.
2560
3074
  */
2561
3075
  agentGraphExport(agentId: string, format?: 'json' | 'graphml' | 'csv'): Promise<GraphExport>;
3076
+ /** Get entity extraction configuration for a namespace. */
3077
+ getNamespaceEntityConfig(namespace: string): Promise<NamespaceEntityConfig>;
3078
+ /** Get the extractor provider configuration for a namespace. */
3079
+ getNamespaceExtractor(namespace: string): Promise<ExtractorConfig>;
2562
3080
  /**
2563
3081
  * Configure entity extraction for a namespace.
2564
3082
  *
@@ -3098,6 +3616,92 @@ declare class DakeraClient {
3098
3616
  * @returns {@link FulltextReindexResponse} with per-namespace breakdown.
3099
3617
  */
3100
3618
  adminFulltextReindex(namespace?: string): Promise<FulltextReindexResponse>;
3619
+ /** GET /admin/cluster/replication — cluster replication status. */
3620
+ adminClusterReplication(): Promise<ReplicationStatus>;
3621
+ /** GET /admin/cluster/shards — list shards. */
3622
+ adminListShards(): Promise<ShardListResponse>;
3623
+ /** POST /admin/cluster/shards/rebalance — rebalance shards. */
3624
+ adminRebalanceShards(request?: ShardRebalanceRequest): Promise<ShardRebalanceResponse>;
3625
+ /** GET /admin/cluster/maintenance — maintenance mode status. */
3626
+ adminMaintenanceStatus(): Promise<MaintenanceStatus>;
3627
+ /** POST /admin/cluster/maintenance/enable — enable maintenance mode. */
3628
+ adminEnableMaintenance(request: EnableMaintenanceRequest): Promise<MaintenanceStatus>;
3629
+ /** POST /admin/cluster/maintenance/disable — disable maintenance mode. */
3630
+ adminDisableMaintenance(request?: DisableMaintenanceRequest): Promise<MaintenanceStatus>;
3631
+ /** GET /admin/quotas — list all namespace quotas. */
3632
+ adminListQuotas(): Promise<QuotaListResponse>;
3633
+ /** GET /admin/quotas/default — get default quota configuration. */
3634
+ adminGetDefaultQuota(): Promise<DefaultQuotaResponse>;
3635
+ /** PUT /admin/quotas/default — set default quota configuration. */
3636
+ adminSetDefaultQuota(request: SetDefaultQuotaRequest): Promise<SetQuotaResponse>;
3637
+ /** GET /admin/quotas/{namespace} — get namespace quota. */
3638
+ adminGetQuota(namespace: string): Promise<QuotaStatus>;
3639
+ /** PUT /admin/quotas/{namespace} — set namespace quota. */
3640
+ adminSetQuota(namespace: string, request: SetQuotaRequest): Promise<SetQuotaResponse>;
3641
+ /** DELETE /admin/quotas/{namespace} — remove namespace quota. */
3642
+ adminDeleteQuota(namespace: string): Promise<Record<string, unknown>>;
3643
+ /** POST /admin/quotas/{namespace}/check — check if operation would exceed quota. */
3644
+ adminCheckQuota(namespace: string, request: QuotaCheckRequest): Promise<QuotaCheckResult>;
3645
+ /** GET /admin/slow-queries — list recent slow queries. */
3646
+ adminListSlowQueries(params?: {
3647
+ namespace?: string;
3648
+ query_type?: string;
3649
+ limit?: number;
3650
+ }): Promise<unknown[]>;
3651
+ /** GET /admin/slow-queries/summary — slow query summary. */
3652
+ adminSlowQuerySummary(): Promise<Record<string, unknown>>;
3653
+ /** DELETE /admin/slow-queries — clear slow query log. */
3654
+ adminClearSlowQueries(namespace?: string): Promise<Record<string, unknown>>;
3655
+ /** PATCH /admin/slow-queries/config — update slow query configuration. */
3656
+ adminUpdateSlowQueryConfig(config: Record<string, unknown>): Promise<Record<string, unknown>>;
3657
+ /** GET /admin/backups — list all backups. */
3658
+ adminListBackups(): Promise<BackupListResponse>;
3659
+ /** POST /admin/backups — create a new backup. */
3660
+ adminCreateBackup(request: CreateBackupRequest): Promise<CreateBackupResponse>;
3661
+ /** GET /admin/backups/{id} — get backup details. */
3662
+ adminGetBackup(backupId: string): Promise<BackupInfo>;
3663
+ /** DELETE /admin/backups/{id} — delete a backup. */
3664
+ adminDeleteBackup(backupId: string): Promise<Record<string, unknown>>;
3665
+ /** GET /admin/backups/schedule — get backup schedule. */
3666
+ adminGetBackupSchedule(): Promise<BackupSchedule>;
3667
+ /** POST /admin/backups/schedule — update backup schedule. */
3668
+ adminUpdateBackupSchedule(request: UpdateBackupScheduleRequest): Promise<BackupSchedule>;
3669
+ /** POST /admin/backups/restore — restore from backup. */
3670
+ adminRestoreBackup(request: RestoreBackupRequest): Promise<RestoreBackupResponse>;
3671
+ /** GET /admin/backups/restore/{id} — restore operation status. */
3672
+ adminGetRestoreStatus(restoreId: string): Promise<RestoreBackupResponse>;
3673
+ /** GET /ops/diagnostics — system diagnostics. */
3674
+ opsDiagnostics(): Promise<SystemDiagnostics>;
3675
+ /** GET /ops/jobs — list background jobs. */
3676
+ opsListJobs(): Promise<JobInfo[]>;
3677
+ /** GET /ops/jobs/{id} — get job status. */
3678
+ opsGetJob(jobId: string): Promise<JobInfo>;
3679
+ /** POST /ops/compact — trigger compaction. */
3680
+ opsCompact(request?: CompactionRequest): Promise<CompactionResponse>;
3681
+ /** POST /ops/shutdown — request graceful shutdown. */
3682
+ opsShutdown(): Promise<Record<string, unknown>>;
3683
+ /** GET /v1/namespaces/{namespace}/fulltext/stats — full-text index statistics. */
3684
+ fulltextStats(namespace: string): Promise<FullTextIndexStats>;
3685
+ /** POST /v1/namespaces/{namespace}/fulltext/delete — delete documents from full-text index. */
3686
+ fulltextDelete(namespace: string, ids: string[]): Promise<FulltextDeleteResponse>;
3687
+ /** GET /admin/ttl/stats — TTL statistics across all namespaces. */
3688
+ adminTtlStats(): Promise<TtlStatsResponse>;
3689
+ /** POST /v1/route — route a query to the best-matching namespace(s). */
3690
+ routeQuery(request: RouteRequest): Promise<RouteResponse>;
3691
+ /** GET /v1/import/{job_id}/status — check import job progress. */
3692
+ importJobStatus(jobId: string): Promise<ImportJobStatus>;
3693
+ /** GET /admin/backups/{id}/download — download a backup as binary data. */
3694
+ adminDownloadBackup(backupId: string): Promise<ArrayBuffer>;
3695
+ /** POST /admin/backups/upload — upload a backup archive. */
3696
+ adminUploadBackup(data: ArrayBuffer | Uint8Array): Promise<CreateBackupResponse>;
3697
+ /** GET /admin/storage/tiers — storage tier overview. */
3698
+ adminStorageTierOverview(): Promise<StorageTierOverview>;
3699
+ /** GET /admin/background-activity — current background activity. */
3700
+ adminBackgroundActivity(): Promise<Record<string, unknown>>;
3701
+ /** GET /admin/memory-type-stats — memory type distribution statistics. */
3702
+ adminMemoryTypeStats(): Promise<MemoryTypeStatsResponse>;
3703
+ /** POST /admin/namespaces/migrate-dimensions — migrate namespace embedding dimensions. */
3704
+ adminMigrateNamespaceDimensions(request?: MigrateNamespaceDimensionsRequest): Promise<MigrateDimensionsResponse>;
3101
3705
  }
3102
3706
 
3103
3707
  /**
@@ -3162,4 +3766,4 @@ declare class TimeoutError extends DakeraError {
3162
3766
  constructor(message: string);
3163
3767
  }
3164
3768
 
3165
- 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, type AuditEvent, type AuditExportResponse, type AuditListResponse, 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 CompressResponse, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationConfig, type ConsolidationLogEntry, type ConsolidationResultSnapshot, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DecayStrategyName, 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 ExtractEntitiesRequest, type ExtractEntitiesResponse, type ExtractedEntity, type ExtractionProviderInfo, type ExtractionResult, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextSearchResult, type FulltextReindexNamespaceResult, type FulltextReindexResponse, type FusionStrategy, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type IndexStats, type JobProgressEvent, type KeyUsage, type KgExportResponse, type KgPathResponse, type KgQueryResponse, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type KpiSnapshot, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryExportResponse, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportResponse, type MemoryImportancePatchRequest, type MemoryPolicy, type MemoryType, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceNerConfig, NotFoundError, type OdeEntity, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, RateLimitError, type RateLimitHeaders, type ReadConsistency, type RecallRequest, type RecallResponse, type RecalledMemory, type RetryConfig, type RotateEncryptionKeyRequest, type RotateEncryptionKeyResponse, type RoutingMode, type SearchResult, ServerError, type Session, type SessionEndResponse, type SessionId, type SessionStartResponse, 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 WakeUpOptions, type WakeUpResponse, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, memoryId, sessionId, vectorId };
3769
+ export { type AccessPatternHint, type AgentConsolidateResponse, type AgentConsolidationConfig, type AgentConsolidationLogEntry, 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, type AuditEvent, type AuditExportResponse, type AuditListResponse, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BackupListResponse, type BackupSchedule, type BackupStatus, type BackupType, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type CompactionRequest, type CompactionResponse, type CompressResponse, type CompressionType, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationConfig, type ConsolidationConfigPatch, type ConsolidationLogEntry, type ConsolidationResultSnapshot, type CountVectorsRequest, type CountVectorsResponse, type CreateBackupRequest, type CreateBackupResponse, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DecayStrategyName, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DefaultQuotaResponse, type DeleteOptions, type DeleteResponse, type DisableMaintenanceRequest, type DistanceMetric, type Document, type DocumentInput, type EdgeType, type EmbeddingModel, type EnableMaintenanceRequest, type EntityExtractionResponse, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type ExtractEntitiesRequest, type ExtractEntitiesResponse, type ExtractedEntity, type ExtractionProviderInfo, type ExtractionResult, type ExtractorConfig, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextIndexStats, type FullTextSearchResult, type FulltextDeleteRequest, type FulltextDeleteResponse, type FulltextReindexNamespaceResult, type FulltextReindexResponse, type FusionStrategy, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type ImportJobStatus, type IndexStats, type JobInfo, type JobProgressEvent, type KeyUsage, type KgExportResponse, type KgPathResponse, type KgQueryResponse, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type KpiSnapshot, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type LivenessResponse, type MaintenanceStatus, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryExportResponse, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportResponse, type MemoryImportancePatchRequest, type MemoryPolicy, type MemoryType, type MemoryTypeStatsResponse, type MigrateDimensionsResponse, type MigrateNamespaceDimensionsRequest, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceEntityConfig, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceMigrationResult, type NamespaceNerConfig, type NodeReplicationLag, NotFoundError, type OdeEntity, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, type QuotaCheckRequest, type QuotaCheckResult, type QuotaConfig, type QuotaListResponse, type QuotaStatus, type QuotaUsage, RateLimitError, type RateLimitHeaders, type ReadConsistency, type ReadinessResponse, type RecallRequest, type RecallResponse, type RecalledMemory, type ReplicationStatus, type RestoreBackupRequest, type RestoreBackupResponse, type RestoreStatus, type RetryConfig, type RotateEncryptionKeyRequest, type RotateEncryptionKeyResponse, type RouteMatch, type RouteRequest, type RouteResponse, type RoutingMode, type SearchResult, ServerError, type Session, type SessionEndResponse, type SessionId, type SessionStartResponse, type SetDefaultQuotaRequest, type SetQuotaRequest, type SetQuotaResponse, type ShardInfo, type ShardListResponse, type ShardRebalanceRequest, type ShardRebalanceResponse, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StorageTierOverview, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type SystemDiagnostics, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, type TierActivity, type TierConfig, type TierInfo, TimeoutError, type TtlConfig, type TtlNamespaceStats, type TtlStatsResponse, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateBackupScheduleRequest, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WakeUpOptions, type WakeUpResponse, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, memoryId, sessionId, vectorId };