Expand description
Data-plane JSON-RPC client.
Makes JSON-RPC calls directly against the account’s provisioned Tooling
Access endpoint, authenticating with a short-lived session JWT. The JWT is
minted via the Admin control plane (crate::admin::AdminApiClient::mint_tooling_token),
cached in memory, and refreshed proactively before expiry (or reactively on
a 401). The signing key never leaves the server; this client only ever holds
a minted JWT.
A host that outlives a single process (e.g. the CLI) can persist the cached
token between runs by seeding crate::config::RpcConfig::seed on startup
and snapshotting RpcApiClient::current_token afterwards.
Structs§
- RpcApi
Client - JSON-RPC client for the Tooling Access endpoint.