@comity/identity
v0.9.0
Published
Identity domain abstractions for Comity modules.
Downloads
101
Readme
@comity/identity
Identity domain abstractions for Comity modules.
Purpose
Defines the identity domain model — the User entity, the UserId value object, and the contracts modules use to store, load, and validate users. Provides a stable domain boundary so application logic depends on contracts rather than infrastructure.
Scope
This package:
- ✅ defines the
Userentity andUserIdvalue object - ✅ defines the
UserRepositorycontract - ✅ defines user data, state, snapshot, create, and update types
- ✅ defines the
UserValidatorcontract - ✅ depends only on
@comity/primitivesand@comity/validation
This package does NOT:
- ❌ provide a repository implementation
- ❌ provide validation logic
- ❌ depend on infrastructure or adapters
Public API
User— user entityUserId— user identifier value objectUserRepository— repository contractUserSearchCriteria/UserSearchResult— repository search contractUserData/UserState/UserSnapshot— user data typesUserCreate/UserUpdate/UserStatus— mutation and status typesUserValidator— validation contract
No exhaustive reference; see docs for constraints.
Documentation
None — no package-specific documentation exists.
Related Packages
- @comity/primitives — foundational types used by the domain model
- @comity/validation — validation contracts referenced by the domain
Status
Experimental
Review Completed: 2026-08-15 Reviewer: Hobiri MAGI (DeepSeek v4 Pro) Compliance Score: 98% (Green)
