systemprompt-identifiers 0.14.4

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
10
11
//! Policy version identifier.

crate::define_id!(PolicyVersion);
crate::define_id!(PolicyId);
crate::define_id!(SecretPatternId, non_empty);

impl PolicyVersion {
    pub fn unversioned() -> Self {
        Self("unversioned".to_owned())
    }
}