systemprompt-identifiers 0.13.0

Typed newtype identifiers (UserId, TraceId, AgentId, McpServerId…) for systemprompt.io AI governance infrastructure. Enforces type-safe IDs across every boundary in the MCP governance pipeline.
Documentation
1
2
3
4
5
6
7
8
9
//! User identifier.
//!
//! Every `UserId` must originate from a row in the `users` table. The
//! request middleware persists an anonymous user before constructing a
//! request context (see `SessionCreationService::ensure_anonymous_user`);
//! handlers that need a `UserId` for an FK write call the provider rather
//! than fabricate one.

crate::define_id!(UserId, schema);