Expand description
Unified client for authenticated access to the Briefcase AI platform Unified BriefcaseClient for authenticated access to the Briefcase AI platform.
The BriefcaseClient validates an API key against the Briefcase server,
caches the result, and provides permission-gated access to storage and
other SDK features.
§Example
use briefcase_core::client::BriefcaseClient;
let client = BriefcaseClient::new("sk-my-key", "https://api.briefcasebrain.com").await?;
println!("Authenticated as: {}", client.client_id());
assert!(client.has_permission("read"));Structs§
- Auth
Response - Full response from the
POST /api/v1/auth/validateendpoint. - Briefcase
Client - Authenticated client for the Briefcase AI platform.
- Client
Config - Configuration for the client’s HTTP behaviour and cache policy.
- Validated
Client - Information about a validated client returned by the server.
Enums§
- Client
Error - Errors that can occur during client operations.