@dakera-ai/dakera 0.5.0 → 0.6.0
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 +40 -4
- package/dist/index.d.ts +40 -4
- package/dist/index.js +13 -0
- package/dist/index.mjs +13 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -275,7 +275,7 @@ interface TextUpsertResponse {
|
|
|
275
275
|
/** Approximate number of tokens processed */
|
|
276
276
|
tokens_processed: number;
|
|
277
277
|
/** Embedding model used */
|
|
278
|
-
model:
|
|
278
|
+
model: EmbeddingModel;
|
|
279
279
|
/** Time spent generating embeddings in milliseconds */
|
|
280
280
|
embedding_time_ms: number;
|
|
281
281
|
}
|
|
@@ -316,7 +316,7 @@ interface TextQueryResponse {
|
|
|
316
316
|
/** Search results */
|
|
317
317
|
results: TextSearchResult[];
|
|
318
318
|
/** Embedding model used */
|
|
319
|
-
model:
|
|
319
|
+
model: EmbeddingModel;
|
|
320
320
|
/** Time spent generating query embedding in milliseconds */
|
|
321
321
|
embedding_time_ms: number;
|
|
322
322
|
/** Time spent searching in milliseconds */
|
|
@@ -342,12 +342,37 @@ interface BatchTextQueryResponse {
|
|
|
342
342
|
/** Results for each query */
|
|
343
343
|
results: TextSearchResult[][];
|
|
344
344
|
/** Embedding model used */
|
|
345
|
-
model:
|
|
345
|
+
model: EmbeddingModel;
|
|
346
346
|
/** Time spent generating all embeddings in milliseconds */
|
|
347
347
|
embedding_time_ms: number;
|
|
348
348
|
/** Time spent on all searches in milliseconds */
|
|
349
349
|
search_time_ms: number;
|
|
350
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* Request body for ``PUT /v1/namespaces/:namespace`` (upsert semantics).
|
|
353
|
+
*
|
|
354
|
+
* Creates the namespace if it does not exist, or updates its configuration
|
|
355
|
+
* if it already exists.
|
|
356
|
+
*/
|
|
357
|
+
interface ConfigureNamespaceRequest {
|
|
358
|
+
/** Vector dimension. Required on creation; must match on update. */
|
|
359
|
+
dimension: number;
|
|
360
|
+
/** Distance metric (default: cosine). */
|
|
361
|
+
distance?: DistanceMetric;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Response from ``PUT /v1/namespaces/:namespace``.
|
|
365
|
+
*/
|
|
366
|
+
interface ConfigureNamespaceResponse {
|
|
367
|
+
/** Namespace name. */
|
|
368
|
+
namespace: string;
|
|
369
|
+
/** Vector dimension. */
|
|
370
|
+
dimension: number;
|
|
371
|
+
/** Distance metric in use. */
|
|
372
|
+
distance: DistanceMetric;
|
|
373
|
+
/** ``true`` if the namespace was newly created; ``false`` if it already existed. */
|
|
374
|
+
created: boolean;
|
|
375
|
+
}
|
|
351
376
|
/** Memory type classification */
|
|
352
377
|
type MemoryType = 'episodic' | 'semantic' | 'procedural' | 'strategic';
|
|
353
378
|
/** Request to store a memory */
|
|
@@ -1210,6 +1235,17 @@ declare class DakeraClient {
|
|
|
1210
1235
|
indexType?: string;
|
|
1211
1236
|
metadata?: Record<string, unknown>;
|
|
1212
1237
|
}): Promise<NamespaceInfo>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Create or update a namespace configuration (upsert semantics).
|
|
1240
|
+
*
|
|
1241
|
+
* Creates the namespace if it does not exist, or updates its configuration
|
|
1242
|
+
* if it already exists. Requires Write scope.
|
|
1243
|
+
*
|
|
1244
|
+
* @param namespace - Namespace name
|
|
1245
|
+
* @param request - dimension and optional distance metric
|
|
1246
|
+
* @returns ConfigureNamespaceResponse with ``created: true`` if newly created
|
|
1247
|
+
*/
|
|
1248
|
+
configureNamespace(namespace: string, request: ConfigureNamespaceRequest): Promise<ConfigureNamespaceResponse>;
|
|
1213
1249
|
/**
|
|
1214
1250
|
* Delete a namespace.
|
|
1215
1251
|
*
|
|
@@ -1763,4 +1799,4 @@ declare class TimeoutError extends DakeraError {
|
|
|
1763
1799
|
constructor(message: string);
|
|
1764
1800
|
}
|
|
1765
1801
|
|
|
1766
|
-
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, type BackupInfo, type BatchQuerySpec, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, 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, 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 ReadConsistency, type RecallRequest, type RecalledMemory, 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 };
|
|
1802
|
+
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, type BackupInfo, type BatchQuerySpec, 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, 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 ReadConsistency, type RecallRequest, type RecalledMemory, 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
|
@@ -275,7 +275,7 @@ interface TextUpsertResponse {
|
|
|
275
275
|
/** Approximate number of tokens processed */
|
|
276
276
|
tokens_processed: number;
|
|
277
277
|
/** Embedding model used */
|
|
278
|
-
model:
|
|
278
|
+
model: EmbeddingModel;
|
|
279
279
|
/** Time spent generating embeddings in milliseconds */
|
|
280
280
|
embedding_time_ms: number;
|
|
281
281
|
}
|
|
@@ -316,7 +316,7 @@ interface TextQueryResponse {
|
|
|
316
316
|
/** Search results */
|
|
317
317
|
results: TextSearchResult[];
|
|
318
318
|
/** Embedding model used */
|
|
319
|
-
model:
|
|
319
|
+
model: EmbeddingModel;
|
|
320
320
|
/** Time spent generating query embedding in milliseconds */
|
|
321
321
|
embedding_time_ms: number;
|
|
322
322
|
/** Time spent searching in milliseconds */
|
|
@@ -342,12 +342,37 @@ interface BatchTextQueryResponse {
|
|
|
342
342
|
/** Results for each query */
|
|
343
343
|
results: TextSearchResult[][];
|
|
344
344
|
/** Embedding model used */
|
|
345
|
-
model:
|
|
345
|
+
model: EmbeddingModel;
|
|
346
346
|
/** Time spent generating all embeddings in milliseconds */
|
|
347
347
|
embedding_time_ms: number;
|
|
348
348
|
/** Time spent on all searches in milliseconds */
|
|
349
349
|
search_time_ms: number;
|
|
350
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* Request body for ``PUT /v1/namespaces/:namespace`` (upsert semantics).
|
|
353
|
+
*
|
|
354
|
+
* Creates the namespace if it does not exist, or updates its configuration
|
|
355
|
+
* if it already exists.
|
|
356
|
+
*/
|
|
357
|
+
interface ConfigureNamespaceRequest {
|
|
358
|
+
/** Vector dimension. Required on creation; must match on update. */
|
|
359
|
+
dimension: number;
|
|
360
|
+
/** Distance metric (default: cosine). */
|
|
361
|
+
distance?: DistanceMetric;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Response from ``PUT /v1/namespaces/:namespace``.
|
|
365
|
+
*/
|
|
366
|
+
interface ConfigureNamespaceResponse {
|
|
367
|
+
/** Namespace name. */
|
|
368
|
+
namespace: string;
|
|
369
|
+
/** Vector dimension. */
|
|
370
|
+
dimension: number;
|
|
371
|
+
/** Distance metric in use. */
|
|
372
|
+
distance: DistanceMetric;
|
|
373
|
+
/** ``true`` if the namespace was newly created; ``false`` if it already existed. */
|
|
374
|
+
created: boolean;
|
|
375
|
+
}
|
|
351
376
|
/** Memory type classification */
|
|
352
377
|
type MemoryType = 'episodic' | 'semantic' | 'procedural' | 'strategic';
|
|
353
378
|
/** Request to store a memory */
|
|
@@ -1210,6 +1235,17 @@ declare class DakeraClient {
|
|
|
1210
1235
|
indexType?: string;
|
|
1211
1236
|
metadata?: Record<string, unknown>;
|
|
1212
1237
|
}): Promise<NamespaceInfo>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Create or update a namespace configuration (upsert semantics).
|
|
1240
|
+
*
|
|
1241
|
+
* Creates the namespace if it does not exist, or updates its configuration
|
|
1242
|
+
* if it already exists. Requires Write scope.
|
|
1243
|
+
*
|
|
1244
|
+
* @param namespace - Namespace name
|
|
1245
|
+
* @param request - dimension and optional distance metric
|
|
1246
|
+
* @returns ConfigureNamespaceResponse with ``created: true`` if newly created
|
|
1247
|
+
*/
|
|
1248
|
+
configureNamespace(namespace: string, request: ConfigureNamespaceRequest): Promise<ConfigureNamespaceResponse>;
|
|
1213
1249
|
/**
|
|
1214
1250
|
* Delete a namespace.
|
|
1215
1251
|
*
|
|
@@ -1763,4 +1799,4 @@ declare class TimeoutError extends DakeraError {
|
|
|
1763
1799
|
constructor(message: string);
|
|
1764
1800
|
}
|
|
1765
1801
|
|
|
1766
|
-
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, type BackupInfo, type BatchQuerySpec, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, 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, 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 ReadConsistency, type RecallRequest, type RecalledMemory, 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 };
|
|
1802
|
+
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, type BackupInfo, type BatchQuerySpec, 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, 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 ReadConsistency, type RecallRequest, type RecalledMemory, 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
|
@@ -473,6 +473,19 @@ var DakeraClient = class {
|
|
|
473
473
|
if (options.metadata) body.metadata = options.metadata;
|
|
474
474
|
return this.request("POST", "/v1/namespaces", body);
|
|
475
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* Create or update a namespace configuration (upsert semantics).
|
|
478
|
+
*
|
|
479
|
+
* Creates the namespace if it does not exist, or updates its configuration
|
|
480
|
+
* if it already exists. Requires Write scope.
|
|
481
|
+
*
|
|
482
|
+
* @param namespace - Namespace name
|
|
483
|
+
* @param request - dimension and optional distance metric
|
|
484
|
+
* @returns ConfigureNamespaceResponse with ``created: true`` if newly created
|
|
485
|
+
*/
|
|
486
|
+
async configureNamespace(namespace, request) {
|
|
487
|
+
return this.request("PUT", `/v1/namespaces/${namespace}`, request);
|
|
488
|
+
}
|
|
476
489
|
/**
|
|
477
490
|
* Delete a namespace.
|
|
478
491
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -435,6 +435,19 @@ var DakeraClient = class {
|
|
|
435
435
|
if (options.metadata) body.metadata = options.metadata;
|
|
436
436
|
return this.request("POST", "/v1/namespaces", body);
|
|
437
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Create or update a namespace configuration (upsert semantics).
|
|
440
|
+
*
|
|
441
|
+
* Creates the namespace if it does not exist, or updates its configuration
|
|
442
|
+
* if it already exists. Requires Write scope.
|
|
443
|
+
*
|
|
444
|
+
* @param namespace - Namespace name
|
|
445
|
+
* @param request - dimension and optional distance metric
|
|
446
|
+
* @returns ConfigureNamespaceResponse with ``created: true`` if newly created
|
|
447
|
+
*/
|
|
448
|
+
async configureNamespace(namespace, request) {
|
|
449
|
+
return this.request("PUT", `/v1/namespaces/${namespace}`, request);
|
|
450
|
+
}
|
|
438
451
|
/**
|
|
439
452
|
* Delete a namespace.
|
|
440
453
|
*
|