Skip to main content

Crate origin_types

Crate origin_types 

Source
Expand description

Shared types for the Origin memory system.

This crate provides lightweight type definitions shared across origin-core, origin-server, and the Tauri app. Dependencies are limited to serde and serde_json – no heavy runtime deps.

Re-exports§

pub use entities::Entity;
pub use entities::EntityDetail;
pub use entities::EntitySearchResult;
pub use entities::EntitySuggestion;
pub use entities::Observation;
pub use entities::RecentRelation;
pub use entities::Relation;
pub use entities::RelationWithEntity;
pub use memory::ActivityBadge;
pub use memory::ActivityKind;
pub use memory::AgentActivityRow;
pub use memory::AgentConnection;
pub use memory::ConceptChange;
pub use memory::ConceptChangeKind;
pub use memory::DomainInfo;
pub use memory::EnrichmentStatusResponse;
pub use memory::EnrichmentStepStatus;
pub use memory::HomeStats;
pub use memory::IndexedFileInfo;
pub use memory::MemoryItem;
pub use memory::MemoryStats;
pub use memory::MemoryVersionItem;
pub use memory::Profile;
pub use memory::RecentActivityItem;
pub use memory::RejectionRecord;
pub use memory::RetrievalEvent;
pub use memory::SearchResult;
pub use memory::SessionSnapshot;
pub use memory::SnapshotCapture;
pub use memory::SnapshotCaptureWithContent;
pub use memory::Space;
pub use memory::TopMemory;
pub use memory::TypeBreakdown;
pub use sources::MemoryType;
pub use sources::RawDocument;
pub use sources::SourceType;
pub use sources::StabilityTier;
pub use sources::SyncStatus;

Modules§

entities
Knowledge graph types – entities, observations, relations.
import
Types for the chat-export import endpoint.
memory
Core memory data types — search results, items, stats, profiles, agents, spaces.
requests
API request types for all HTTP endpoints.
responses
API response types for all HTTP endpoints.
sources
Document source types – MemoryType enum, RawDocument, SourceType, SyncStatus.

Structs§

ChangelogEntry
A single revision entry in a memory’s changelog (topic-key upsert history).
ConceptSource
A link between a concept and one of its source memories (concept_sources join table).
ConceptSourceWithMemory
Concept source enriched with the memory’s metadata (for the API response).

Functions§

version
Crate version.