@utaba/deep-memory 0.1.0 → 0.3.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/{StorageProvider-CkFjdboX.d.cts → StorageProvider-CSbaIY6X.d.cts} +21 -5
- package/dist/{StorageProvider-CJjz8uBY.d.ts → StorageProvider-DqW-zpd0.d.ts} +21 -5
- package/dist/index.cjs +1252 -161
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -15
- package/dist/index.d.ts +86 -15
- package/dist/index.js +1246 -161
- package/dist/index.js.map +1 -1
- package/dist/{portability-DdlNYXGX.d.cts → portability-1KBMVBGJ.d.cts} +62 -1
- package/dist/{portability-DdlNYXGX.d.ts → portability-1KBMVBGJ.d.ts} +62 -1
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +62 -3
- package/dist/providers/index.d.ts +62 -3
- package/dist/testing/conformance.cjs +22 -0
- package/dist/testing/conformance.cjs.map +1 -1
- package/dist/testing/conformance.d.cts +2 -2
- package/dist/testing/conformance.d.ts +2 -2
- package/dist/testing/conformance.js +22 -0
- package/dist/testing/conformance.js.map +1 -1
- package/dist/traversal-B4SUysM-.d.ts +264 -0
- package/dist/traversal-DQynd-to.d.cts +264 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +28 -3
- package/dist/types/index.d.ts +28 -3
- package/package.json +1 -1
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["// Type re-exports — @utaba/deep-memory/types\n\nexport type {\n ProvenanceContext,\n Provenance,\n} from './provenance.js';\n\nexport type {\n PropertyType,\n PropertySchema,\n EntityTypeDefinition,\n RelationshipTypeDefinition,\n MemoryVocabulary,\n GovernanceMode,\n GovernanceConfig,\n VocabularyProposal,\n VocabularyProposalResult,\n VocabularyChangeRecord,\n ResolvedVocabulary,\n EntityTypeInput,\n RelationshipTypeInput,\n VocabularyInput,\n} from './vocabulary.js';\n\nexport type {\n DetailLevel,\n Entity,\n EntitySummary,\n EntityBrief,\n CreateEntityInput,\n UpdateEntityInput,\n StoredEntity,\n StoredEntityUpdate,\n GetEntityOptions,\n GetEntitiesOptions,\n} from './entities.js';\n\nexport type {\n RelationshipDirection,\n Relationship,\n EnrichedRelationship,\n CreateRelationshipInput,\n StoredRelationship,\n RelationshipQueryOptions,\n RelationshipSummary,\n} from './relationships.js';\n\nexport type {\n RepositoryConfig,\n RepositoryMetadata,\n RepositoryUpdate,\n RepositorySummary,\n RepositoryStats,\n StoredRepository,\n StoredRepositorySummary,\n RepositoryFilter,\n StorageRepositoryConfig,\n} from './repositories.js';\n\nexport type {\n PaginationOptions,\n FindEntitiesQuery,\n ExploreOptions,\n PathOptions,\n ConceptSearchOptions,\n TimelineOptions,\n StorageFindQuery,\n StorageExploreOptions,\n StoragePathOptions,\n StorageTimelineOptions,\n SearchOptions,\n PropertyFilter,\n ProvenanceFilter,\n} from './queries.js';\n\nexport type {\n PaginatedResult,\n NeighbourhoodCentre,\n NeighbourhoodGroup,\n NeighbourhoodLayer,\n Neighbourhood,\n Path,\n PathResult,\n ScoredEntity,\n TimelineEntityRef,\n TimelineRelationshipDetail,\n TimelineEvent,\n TimelineResult,\n GraphResult,\n EntityMap,\n StorageNeighbourhoodGroup,\n StorageNeighbourhoodLayer,\n StorageNeighbourhood,\n StoragePath,\n StoragePathResult,\n StorageTimelineEvent,\n StorageTimelineResult,\n SearchHit,\n BulkImportResult,\n ReembedResult,\n} from './results.js';\n\nexport type {\n DeepMemoryEventType,\n EventPayload,\n DeepMemoryEvent,\n EventHandler,\n Unsubscribe,\n HookResult,\n} from './events.js';\n\nexport type {\n ExportManifest,\n ExportArchive,\n ExportChunk,\n ExportStreamItem,\n ImportOptions,\n ImportChunk,\n ImportStreamHeader,\n ImportWarning,\n ImportResult,\n} from './portability.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["// Type re-exports — @utaba/deep-memory/types\n\nexport type {\n ProvenanceContext,\n Provenance,\n} from './provenance.js';\n\nexport type {\n PropertyType,\n PropertySchema,\n EntityTypeDefinition,\n RelationshipTypeDefinition,\n MemoryVocabulary,\n GovernanceMode,\n GovernanceConfig,\n VocabularyProposal,\n VocabularyProposalResult,\n VocabularyChangeRecord,\n ResolvedVocabulary,\n EntityTypeInput,\n RelationshipTypeInput,\n VocabularyInput,\n} from './vocabulary.js';\n\nexport type {\n DetailLevel,\n Entity,\n EntitySummary,\n EntityBrief,\n CreateEntityInput,\n UpdateEntityInput,\n StoredEntity,\n StoredEntityUpdate,\n GetEntityOptions,\n GetEntitiesOptions,\n} from './entities.js';\n\nexport type {\n RelationshipDirection,\n Relationship,\n EnrichedRelationship,\n CreateRelationshipInput,\n StoredRelationship,\n RelationshipQueryOptions,\n RelationshipSummary,\n} from './relationships.js';\n\nexport type {\n RepositoryConfig,\n RepositoryMetadata,\n RepositoryUpdate,\n RepositorySummary,\n RepositoryStats,\n StoredRepository,\n StoredRepositorySummary,\n RepositoryFilter,\n StorageRepositoryConfig,\n} from './repositories.js';\n\nexport type {\n PaginationOptions,\n FindEntitiesQuery,\n ExploreOptions,\n PathOptions,\n ConceptSearchOptions,\n TimelineOptions,\n StorageFindQuery,\n StorageExploreOptions,\n StoragePathOptions,\n StorageTimelineOptions,\n SearchOptions,\n PropertyFilter,\n ProvenanceFilter,\n} from './queries.js';\n\nexport type {\n PaginatedResult,\n NeighbourhoodCentre,\n NeighbourhoodGroup,\n NeighbourhoodLayer,\n Neighbourhood,\n Path,\n PathResult,\n ScoredEntity,\n TimelineEntityRef,\n TimelineRelationshipDetail,\n TimelineEvent,\n TimelineResult,\n GraphResult,\n EntityMap,\n StorageNeighbourhoodGroup,\n StorageNeighbourhoodLayer,\n StorageNeighbourhood,\n StoragePath,\n StoragePathResult,\n StorageTimelineEvent,\n StorageTimelineResult,\n SearchHit,\n BulkImportResult,\n ReembedResult,\n} from './results.js';\n\nexport type {\n DeepMemoryEventType,\n EventPayload,\n DeepMemoryEvent,\n EventHandler,\n Unsubscribe,\n HookResult,\n} from './events.js';\n\nexport type {\n TraversalSpec,\n TraversalStart,\n TraversalStep,\n TraversalProjection,\n TraversalReturnMode,\n TraversalResult,\n TraversalAggregation,\n TraversalRelationship,\n TraversalPath,\n QueryMetadata,\n} from './traversal.js';\n\nexport type {\n ExportManifest,\n ExportLegalMetadata,\n ExportPipelineMetadata,\n ExportOptions,\n ExportArchive,\n ExportChunk,\n ExportStreamItem,\n ImportOptions,\n ImportChunk,\n BulkImportOptions,\n DeleteProgressCallback,\n ImportStreamHeader,\n ImportWarning,\n ImportResult,\n} from './portability.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BulkImportResult,
|
|
1
|
+
import { H as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, y as CreateRelationshipInput, N as Relationship, V as VocabularyChangeRecord } from '../portability-1KBMVBGJ.cjs';
|
|
2
|
+
export { B as BulkImportOptions, w as BulkImportResult, Y as ConceptSearchOptions, h as DeleteProgressCallback, D as DetailLevel, aa as EnrichedRelationship, b as EntityBrief, ab as EntityMap, a as EntitySummary, z as EntityTypeDefinition, ac as EntityTypeInput, Q as ExploreOptions, a3 as ExportArchive, v as ExportChunk, ad as ExportLegalMetadata, ae as ExportManifest, a2 as ExportOptions, af as ExportPipelineMetadata, a6 as ExportStreamItem, K as FindEntitiesQuery, ag as GetEntitiesOptions, ah as GetEntityOptions, G as GovernanceConfig, ai as GovernanceMode, O as GraphResult, I as ImportChunk, a4 as ImportOptions, a5 as ImportResult, a7 as ImportStreamHeader, aj as ImportWarning, M as MemoryVocabulary, T as Neighbourhood, ak as NeighbourhoodCentre, al as NeighbourhoodGroup, am as NeighbourhoodLayer, e as PaginatedResult, j as PaginationOptions, an as Path, W as PathOptions, X as PathResult, P as PropertyFilter, ao as PropertySchema, ap as PropertyType, J as Provenance, aq as ProvenanceFilter, L as ReembedResult, ar as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, as as RelationshipTypeDefinition, at as RelationshipTypeInput, a0 as RepositoryConfig, d as RepositoryFilter, au as RepositoryMetadata, i as RepositoryStats, a1 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, Z as ScoredEntity, a9 as SearchHit, a8 as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighbourhood, av as StorageNeighbourhoodGroup, aw as StorageNeighbourhoodLayer, ax as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, ay as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, az as TimelineEntityRef, aA as TimelineEvent, _ as TimelineOptions, aB as TimelineRelationshipDetail, $ as TimelineResult, aC as VocabularyInput, A as VocabularyProposal, F as VocabularyProposalResult } from '../portability-1KBMVBGJ.cjs';
|
|
3
|
+
export { Q as QueryMetadata, b as TraversalAggregation, c as TraversalPath, d as TraversalProjection, e as TraversalRelationship, a as TraversalResult, f as TraversalReturnMode, T as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-DQynd-to.cjs';
|
|
3
4
|
|
|
4
5
|
/** All event types emitted by the Deep Memory engine */
|
|
5
|
-
type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed';
|
|
6
|
+
type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
|
|
6
7
|
/** Type-safe event payload mapping */
|
|
7
8
|
type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created' ? {
|
|
8
9
|
repositoryId: string;
|
|
@@ -75,10 +76,16 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
75
76
|
error: string;
|
|
76
77
|
} : T extends 'export:started' ? {
|
|
77
78
|
repositoryId: string;
|
|
79
|
+
totalEntities: number;
|
|
80
|
+
totalRelationships: number;
|
|
78
81
|
} : T extends 'export:progress' ? {
|
|
79
82
|
repositoryId: string;
|
|
80
83
|
entitiesExported: number;
|
|
84
|
+
relationshipsExported: number;
|
|
81
85
|
totalEntities: number;
|
|
86
|
+
totalRelationships: number;
|
|
87
|
+
chunksCompleted: number;
|
|
88
|
+
totalChunks: number;
|
|
82
89
|
} : T extends 'export:completed' ? {
|
|
83
90
|
repositoryId: string;
|
|
84
91
|
entityCount: number;
|
|
@@ -88,7 +95,11 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
88
95
|
} : T extends 'import:progress' ? {
|
|
89
96
|
repositoryId: string;
|
|
90
97
|
entitiesImported: number;
|
|
98
|
+
relationshipsImported: number;
|
|
91
99
|
totalEntities: number;
|
|
100
|
+
totalRelationships: number;
|
|
101
|
+
chunksCompleted: number;
|
|
102
|
+
totalChunks: number;
|
|
92
103
|
} : T extends 'import:completed' ? {
|
|
93
104
|
repositoryId: string;
|
|
94
105
|
entitiesImported: number;
|
|
@@ -96,6 +107,20 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
96
107
|
} : T extends 'import:failed' ? {
|
|
97
108
|
repositoryId: string;
|
|
98
109
|
error: string;
|
|
110
|
+
} : T extends 'delete:started' ? {
|
|
111
|
+
repositoryId: string;
|
|
112
|
+
totalEntities: number;
|
|
113
|
+
totalRelationships: number;
|
|
114
|
+
} : T extends 'delete:progress' ? {
|
|
115
|
+
repositoryId: string;
|
|
116
|
+
entitiesDeleted: number;
|
|
117
|
+
relationshipsDeleted: number;
|
|
118
|
+
totalEntities: number;
|
|
119
|
+
totalRelationships: number;
|
|
120
|
+
} : T extends 'delete:completed' ? {
|
|
121
|
+
repositoryId: string;
|
|
122
|
+
entitiesDeleted: number;
|
|
123
|
+
relationshipsDeleted: number;
|
|
99
124
|
} : Record<string, unknown>;
|
|
100
125
|
/** A typed event emitted by the engine */
|
|
101
126
|
interface DeepMemoryEvent<T extends DeepMemoryEventType> {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BulkImportResult,
|
|
1
|
+
import { H as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, y as CreateRelationshipInput, N as Relationship, V as VocabularyChangeRecord } from '../portability-1KBMVBGJ.js';
|
|
2
|
+
export { B as BulkImportOptions, w as BulkImportResult, Y as ConceptSearchOptions, h as DeleteProgressCallback, D as DetailLevel, aa as EnrichedRelationship, b as EntityBrief, ab as EntityMap, a as EntitySummary, z as EntityTypeDefinition, ac as EntityTypeInput, Q as ExploreOptions, a3 as ExportArchive, v as ExportChunk, ad as ExportLegalMetadata, ae as ExportManifest, a2 as ExportOptions, af as ExportPipelineMetadata, a6 as ExportStreamItem, K as FindEntitiesQuery, ag as GetEntitiesOptions, ah as GetEntityOptions, G as GovernanceConfig, ai as GovernanceMode, O as GraphResult, I as ImportChunk, a4 as ImportOptions, a5 as ImportResult, a7 as ImportStreamHeader, aj as ImportWarning, M as MemoryVocabulary, T as Neighbourhood, ak as NeighbourhoodCentre, al as NeighbourhoodGroup, am as NeighbourhoodLayer, e as PaginatedResult, j as PaginationOptions, an as Path, W as PathOptions, X as PathResult, P as PropertyFilter, ao as PropertySchema, ap as PropertyType, J as Provenance, aq as ProvenanceFilter, L as ReembedResult, ar as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, as as RelationshipTypeDefinition, at as RelationshipTypeInput, a0 as RepositoryConfig, d as RepositoryFilter, au as RepositoryMetadata, i as RepositoryStats, a1 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, Z as ScoredEntity, a9 as SearchHit, a8 as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighbourhood, av as StorageNeighbourhoodGroup, aw as StorageNeighbourhoodLayer, ax as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, ay as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, az as TimelineEntityRef, aA as TimelineEvent, _ as TimelineOptions, aB as TimelineRelationshipDetail, $ as TimelineResult, aC as VocabularyInput, A as VocabularyProposal, F as VocabularyProposalResult } from '../portability-1KBMVBGJ.js';
|
|
3
|
+
export { Q as QueryMetadata, b as TraversalAggregation, c as TraversalPath, d as TraversalProjection, e as TraversalRelationship, a as TraversalResult, f as TraversalReturnMode, T as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-B4SUysM-.js';
|
|
3
4
|
|
|
4
5
|
/** All event types emitted by the Deep Memory engine */
|
|
5
|
-
type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed';
|
|
6
|
+
type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
|
|
6
7
|
/** Type-safe event payload mapping */
|
|
7
8
|
type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created' ? {
|
|
8
9
|
repositoryId: string;
|
|
@@ -75,10 +76,16 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
75
76
|
error: string;
|
|
76
77
|
} : T extends 'export:started' ? {
|
|
77
78
|
repositoryId: string;
|
|
79
|
+
totalEntities: number;
|
|
80
|
+
totalRelationships: number;
|
|
78
81
|
} : T extends 'export:progress' ? {
|
|
79
82
|
repositoryId: string;
|
|
80
83
|
entitiesExported: number;
|
|
84
|
+
relationshipsExported: number;
|
|
81
85
|
totalEntities: number;
|
|
86
|
+
totalRelationships: number;
|
|
87
|
+
chunksCompleted: number;
|
|
88
|
+
totalChunks: number;
|
|
82
89
|
} : T extends 'export:completed' ? {
|
|
83
90
|
repositoryId: string;
|
|
84
91
|
entityCount: number;
|
|
@@ -88,7 +95,11 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
88
95
|
} : T extends 'import:progress' ? {
|
|
89
96
|
repositoryId: string;
|
|
90
97
|
entitiesImported: number;
|
|
98
|
+
relationshipsImported: number;
|
|
91
99
|
totalEntities: number;
|
|
100
|
+
totalRelationships: number;
|
|
101
|
+
chunksCompleted: number;
|
|
102
|
+
totalChunks: number;
|
|
92
103
|
} : T extends 'import:completed' ? {
|
|
93
104
|
repositoryId: string;
|
|
94
105
|
entitiesImported: number;
|
|
@@ -96,6 +107,20 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
96
107
|
} : T extends 'import:failed' ? {
|
|
97
108
|
repositoryId: string;
|
|
98
109
|
error: string;
|
|
110
|
+
} : T extends 'delete:started' ? {
|
|
111
|
+
repositoryId: string;
|
|
112
|
+
totalEntities: number;
|
|
113
|
+
totalRelationships: number;
|
|
114
|
+
} : T extends 'delete:progress' ? {
|
|
115
|
+
repositoryId: string;
|
|
116
|
+
entitiesDeleted: number;
|
|
117
|
+
relationshipsDeleted: number;
|
|
118
|
+
totalEntities: number;
|
|
119
|
+
totalRelationships: number;
|
|
120
|
+
} : T extends 'delete:completed' ? {
|
|
121
|
+
repositoryId: string;
|
|
122
|
+
entitiesDeleted: number;
|
|
123
|
+
relationshipsDeleted: number;
|
|
99
124
|
} : Record<string, unknown>;
|
|
100
125
|
/** A typed event emitted by the engine */
|
|
101
126
|
interface DeepMemoryEvent<T extends DeepMemoryEventType> {
|