Skip to main content

Crate systemprompt_cloud

Crate systemprompt_cloud 

Source
Expand description

§systemprompt-cloud

Cloud API client, credentials management, OAuth login flow, and tenant orchestration for systemprompt.io Cloud deployments. This crate is the bridge between the local CLI/runtime and the systemprompt.io control plane.

§Public surface

§Errors

All public APIs return CloudResult<T> (i.e. Result<T, CloudError>). CloudError composes reqwest, std::io, serde_json, and the more specific CredentialsBootstrapError via #[from] so callers can use ? transparently.

§Feature flags

This crate has no Cargo features — every dependency is required at compile time. The [package.metadata.docs.rs] section in Cargo.toml enables all-features = true for parity with the rest of the workspace.

Re-exports§

pub use api_client::CloudApiClient;
pub use checkout::CheckoutCallbackResult;
pub use checkout::CheckoutTemplates;
pub use checkout::run_checkout_callback_flow;
pub use checkout::wait_for_provisioning;
pub use cli_session::CliSession;
pub use cli_session::LOCAL_SESSION_KEY;
pub use cli_session::SessionKey;
pub use cli_session::SessionStore;
pub use constants::api::PRODUCTION_URL;
pub use constants::api::SANDBOX_URL;
pub use context::CloudContext;
pub use context::ResolvedTenant;
pub use credentials::CloudCredentials;
pub use credentials_bootstrap::CredentialsBootstrap;
pub use credentials_bootstrap::CredentialsBootstrapError;
pub use error::CloudError;
pub use error::CloudResult;
pub use oauth::OAuthTemplates;
pub use oauth::run_oauth_flow;
pub use paths::CloudPath;
pub use paths::CloudPaths;
pub use paths::DiscoveredProject;
pub use paths::ProfilePath;
pub use paths::ProjectContext;
pub use paths::ProjectPath;
pub use paths::UnifiedContext;
pub use paths::get_cloud_paths;
pub use paths::resolve_path;
pub use tenants::StoredTenant;
pub use tenants::TenantStore;
pub use tenants::TenantType;

Modules§

api_client
systemprompt.io Cloud API client.
auth
checkout
cli_session
constants
context
credentials
On-disk representation of authenticated cloud credentials.
credentials_bootstrap
Process-wide cloud credentials bootstrap.
error
Public error type for systemprompt-cloud.
oauth
paths
tenants
On-disk representation of cloud tenants the CLI knows about.

Structs§

CheckoutEvent
CheckoutResponse
DeployResponse
ListSecretsResponse
ProvisioningEvent
RegistryToken
UserMeResponse

Enums§

Environment
OAuthProvider
ProvisioningEventType
SubscriptionStatus

Functions§

expand_home

Type Aliases§

Plan
StatusResponse
Tenant
TenantInfo
TenantSecrets
TenantStatus
UserInfo