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 briefing::BriefingResponse;
pub use briefing::ContradictionItem;
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::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::PageChange;
pub use memory::PageChangeKind;
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 narrative::NarrativeResponse;
pub use pages::Page;
pub use responses::ExportStats;
pub use responses::MemoryDetail;
pub use responses::PendingRevision;
pub use sources::MemoryType;
pub use sources::RawDocument;
pub use sources::SourceType;
pub use sources::StabilityTier;
pub use sources::SyncStatus;

Modules§

briefing
Wire types for daily briefing and contradiction responses.
entities
Knowledge graph types – entities, observations, relations.
events
Event emission trait — shared by daemon (NoopEmitter) and Tauri app (TauriEmitter).
import
Types for the chat-export import endpoint.
memory
Core memory data types — search results, items, stats, profiles, agents, spaces.
narrative
Wire types for profile narrative responses.
onboarding
Onboarding milestone wire types. Shared with origin-mcp + origin-app.
pages
Wire types for compiled knowledge pages.
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.
system_info
System info wire type. Reported by daemon + sometimes detected client-side.
working_memory
Working memory wire types — rolling buffer of recent captures for zero-query Spotlight.

Structs§

ChangelogEntry
A single revision entry in a memory’s changelog (topic-key upsert history).
PageSource
A link between a page and one of its source memories. (Backed by the concept_sources SQL table; rename deferred for back-compat.)
PageSourceWithMemory
Page source enriched with the memory’s metadata (for the API response).

Functions§

version
Crate version.