feat(admin): add account_info endpoint (DX-6093)#48
Merged
johnpmitsch merged 1 commit intoJul 7, 2026
Conversation
Adds `account_info` to the admin client, wrapping `GET /v0/account/info`. Returns the account id, name, creation timestamp, billing version, and current subscription (plan name, status, interval). Exposed across all four language layers following the existing `list_chains` no-param GET pattern: - Core: new `account.rs` with `AccountInfo`, `AccountSubscription`, `AccountInfoResponse` types plus wiremock happy-path and API-error tests. - Python (`account_info`), Node (`accountInfo`), Ruby (`account_info`) bindings, surface files, RBS signature, and per-language READMEs. - Example usage added to all four admin examples.
Zlerp
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
account_infoto the admin client, wrappingGET /v0/account/info. It returns the account id, name, creation timestamp, billing version, and current subscription (plan name, status, interval).Exposed across all four language layers following the existing
list_chainsno-param GET pattern:account.rswithAccountInfo,AccountSubscription,AccountInfoResponse.account_info), Node (accountInfo), Ruby (account_info), plus surface files, RBS signature, and per-language READMEs.idis typed asi64; other fields areString/Option<String>for resilience against API changes.Test plan
cargo check && just lint: clean.just node-build,just python-build,just ruby-build: all pass; napi/pyo3 stubs regenerated with the new method and types.just test: 219 passed.Closes DX-6093