mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-03 19:19:47 -04:00
The Go REST client had no agent-network coverage, so API consumers (the Terraform provider among them) hand-rolled raw requests against the endpoints. Expose the full surface on the client instead: catalog, providers, policies, guardrails, budget rules, and settings. GetSettings reports an unbootstrapped account as an APIError matchable via IsNotFound, translating the legacy 200-with-null body older management servers answered into the same error, so callers only ever branch on IsNotFound regardless of server version.