systemprompt_identifiers/cloud.rs
1//! Identifiers for cloud billing and account surfaces.
2//!
3//! `CloudUserId` is the account id the systemprompt.io cloud management API
4//! assigns. It is an external-protocol value, not a local `users.id`, so it
5//! is a checked opaque string rather than a `UserId`. `CloudAppId` is the
6//! hosting application the same API reports a cloud tenant as deployed to.
7//!
8//! Copyright (c) systemprompt.io — Business Source License 1.1.
9//! See <https://systemprompt.io> for licensing details.
10
11crate::define_id!(PriceId, checked, |value| {
12 crate::macros::validate_non_empty("PriceId", value)
13});
14crate::define_id!(CloudUserId, checked, |value| {
15 crate::macros::validate_non_empty("CloudUserId", value)
16});
17crate::define_id!(CloudAppId, checked, |value| {
18 crate::macros::validate_non_empty("CloudAppId", value)
19});