systemprompt-users 0.19.0

User management for systemprompt.io AI governance infrastructure. 6-tier RBAC, sessions, IP bans, and role-scoped access control for the MCP governance pipeline.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Service layer for the users domain.
//!
//! Wraps the repositories behind cohesive services: [`UserService`] for
//! account lifecycle and sessions, [`UserAdminService`] for promote/demote
//! workflows, [`ApiKeyService`] for API-key issuance, and [`DeviceCertService`]
//! for device-certificate enrollment. [`UserService`] itself implements the
//! cross-crate `UserProvider` trait (see `user::provider`).

mod admin_service;
mod api_key_service;
mod device_cert_service;
mod user;

pub use crate::repository::UpdateUserParams;
pub use admin_service::{DemoteResult, PromoteResult, UserAdminService};
pub use api_key_service::{API_KEY_PREFIX, ApiKeyService, IssueApiKeyParams};
pub use device_cert_service::{DeviceCertService, EnrollParams as EnrollDeviceCertServiceParams};
pub use user::UserService;