@utaba/deep-memory 0.6.0 → 0.7.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.
@@ -1,4 +1,4 @@
1
- import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-B-8J4nQQ.js';
1
+ import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-fa5sVgsP.cjs';
2
2
 
3
3
  /** Result returned by ensureSchema describing what actions were taken. */
4
4
  interface EnsureSchemaResult {
@@ -48,6 +48,11 @@ interface StorageProvider {
48
48
  getEntities(repositoryId: string, entityIds: string[]): Promise<Map<string, StoredEntity>>;
49
49
  updateEntity(repositoryId: string, entityId: string, updates: StoredEntityUpdate): Promise<StoredEntity>;
50
50
  deleteEntity(repositoryId: string, entityId: string): Promise<void>;
51
+ /** Delete multiple entities and their associated relationships in a single batch operation */
52
+ deleteEntities(repositoryId: string, ids: string[]): Promise<{
53
+ deleted: string[];
54
+ notFound: string[];
55
+ }>;
51
56
  /** Delete all entities of a given type and their associated relationships */
52
57
  deleteEntitiesByType(repositoryId: string, entityType: string): Promise<{
53
58
  deletedEntities: number;
@@ -58,6 +63,11 @@ interface StorageProvider {
58
63
  getRelationship(repositoryId: string, relationshipId: string): Promise<StoredRelationship | null>;
59
64
  getEntityRelationships(repositoryId: string, entityId: string, options?: RelationshipQueryOptions): Promise<PaginatedResult<StoredRelationship>>;
60
65
  deleteRelationship(repositoryId: string, relationshipId: string): Promise<void>;
66
+ /** Delete multiple relationships in a single batch operation */
67
+ deleteRelationships(repositoryId: string, ids: string[]): Promise<{
68
+ deleted: string[];
69
+ notFound: string[];
70
+ }>;
61
71
  /** Delete all relationships of a given type */
62
72
  deleteRelationshipsByType(repositoryId: string, relationshipType: string): Promise<{
63
73
  deletedRelationships: number;
@@ -1,4 +1,4 @@
1
- import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-B-8J4nQQ.cjs';
1
+ import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-fa5sVgsP.js';
2
2
 
3
3
  /** Result returned by ensureSchema describing what actions were taken. */
4
4
  interface EnsureSchemaResult {
@@ -48,6 +48,11 @@ interface StorageProvider {
48
48
  getEntities(repositoryId: string, entityIds: string[]): Promise<Map<string, StoredEntity>>;
49
49
  updateEntity(repositoryId: string, entityId: string, updates: StoredEntityUpdate): Promise<StoredEntity>;
50
50
  deleteEntity(repositoryId: string, entityId: string): Promise<void>;
51
+ /** Delete multiple entities and their associated relationships in a single batch operation */
52
+ deleteEntities(repositoryId: string, ids: string[]): Promise<{
53
+ deleted: string[];
54
+ notFound: string[];
55
+ }>;
51
56
  /** Delete all entities of a given type and their associated relationships */
52
57
  deleteEntitiesByType(repositoryId: string, entityType: string): Promise<{
53
58
  deletedEntities: number;
@@ -58,6 +63,11 @@ interface StorageProvider {
58
63
  getRelationship(repositoryId: string, relationshipId: string): Promise<StoredRelationship | null>;
59
64
  getEntityRelationships(repositoryId: string, entityId: string, options?: RelationshipQueryOptions): Promise<PaginatedResult<StoredRelationship>>;
60
65
  deleteRelationship(repositoryId: string, relationshipId: string): Promise<void>;
66
+ /** Delete multiple relationships in a single batch operation */
67
+ deleteRelationships(repositoryId: string, ids: string[]): Promise<{
68
+ deleted: string[];
69
+ notFound: string[];
70
+ }>;
61
71
  /** Delete all relationships of a given type */
62
72
  deleteRelationshipsByType(repositoryId: string, relationshipType: string): Promise<{
63
73
  deletedRelationships: number;