Skip to main content

Module client

Module client 

Source
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§

AuthResponse
Full response from the POST /api/v1/auth/validate endpoint.
BriefcaseClient
Authenticated client for the Briefcase AI platform.
ClientConfig
Configuration for the client’s HTTP behaviour and cache policy.
ValidatedClient
Information about a validated client returned by the server.

Enums§

ClientError
Errors that can occur during client operations.