@tushell/ontology-core
v0.1.0
Published
Tushell Portal ontology: Four Directions, role hierarchy, journey phases, and Zod schemas for every portal entity (users, stories, ceremonies, circles, kinship, chronicles, beats, agents, lattices, handouts).
Keywords
Readme
@tushell/ontology-core
The shared ontology of the Tushell Portal ("The Portal of Knowing"): Four Directions, role hierarchy, journey phases, and Zod schemas for every portal entity.
Implements the vocabulary defined by these RISE specs:
rispecs/00-foundation/data-schemas.rispec.mdrispecs/01-auth-roles/role-hierarchy.rispec.mdrispecs/02-four-directions/south-west-north-dimensions.rispec.md
What's inside
- Enums —
DirectionEnum,RoleEnum,JourneyPhaseEnum, story status/scope/genre/tone - Role hierarchy —
ROLE_LEVELSnumeric levels for permission comparisons - Direction metadata —
DIRECTION_META(label, color, element, season, glyph per direction) - Entity schemas —
UserSchema,StorySchema,CeremonySchema,CircleSchema,KinshipNodeSchema,KinshipEdgeSchema,ChronicleSchema,NarrativeBeatSchema,AgentSchema,StoryLatticeSchema,HandoutSchema,DataLibrarySchema— each with inferred TypeScript types and create/update input variants where applicable.
Usage
import { RoleEnum, ROLE_LEVELS, DIRECTION_META, UserSchema } from "@tushell/ontology-core"
const canFacilitate = ROLE_LEVELS[user.role] >= ROLE_LEVELS["ceremony_guide"]
const user = UserSchema.parse(rawJson)zod (v4) is a peer dependency.
