@mastergnou/directory-contracts
v0.3.3
Published
Shared Mount directory and user-metadata contracts for product-neutral people data.
Maintainers
Readme
@mastergnou/directory-contracts
Shared product-neutral directory and user-metadata contracts for Mount-family products.
Current surface:
NormalizedDirectoryUserfor shared people-directory recordsDirectoryManagerReferencefor manager linkage without product-specific role rulesDirectoryEmploymentMetadatafor neutral employment/lifecycle metadataDirectoryLocationMetadatafor timezone, region, country, and locale metadataHrisFieldMappingfor neutral HRIS/source field mapping descriptions- directory employment and lifecycle enums
Boundary:
- this package owns directory/profile metadata shapes
@mastergnou/auth-contractsowns external identity keys, auth DTOs, SSO/password contracts, SCIM transport contracts, and identity-lifecycle mechanics- products own local user tables, roles, permissions, subject/rater state, workflow membership, and product-specific HR policies
Semantics to preserve:
DirectoryScopegives products neutral scope vocabulary; consumers should document their primary scope field and normally populate one scope field per record, even though migration records may temporarily carry multiple IDs.NormalizedDirectoryUser.activeis a compatibility field for source systems that expose a boolean active flag; transition logic should preferemployment.lifecycleStatewhen both are present.HrisFieldMapping.transformis a serialized transform hint, not a pinned expression language; products should agree on transform syntax before sharing mapping profiles at runtime.DirectoryLifecycleStatedescribes the user's current directory state, whileIdentityLifecycleSourcein@mastergnou/auth-contractsdescribes where a lifecycle signal came from.
