Skip to content

feat(admin): add account_info endpoint (DX-6093)#48

Merged
johnpmitsch merged 1 commit into
mainfrom
dx-6093-add-get-v0accountinfo-to-the-admin-sdk-client
Jul 7, 2026
Merged

feat(admin): add account_info endpoint (DX-6093)#48
johnpmitsch merged 1 commit into
mainfrom
dx-6093-add-get-v0accountinfo-to-the-admin-sdk-client

Conversation

@johnpmitsch

Copy link
Copy Markdown
Collaborator

Summary

Adds account_info to the admin client, wrapping GET /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_chains no-param GET pattern:

  • Core: new account.rs with AccountInfo, AccountSubscription, AccountInfoResponse.
  • Bindings: Python (account_info), Node (accountInfo), Ruby (account_info), plus surface files, RBS signature, and per-language READMEs.
  • Examples: usage added to all four admin examples.

id is typed as i64; other fields are String/Option<String> for resilience against API changes.

Test plan

  • New wiremock tests cover the happy path and a 401 API error.
  • 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.
  • Full suite just test: 219 passed.

Closes DX-6093

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.
@johnpmitsch johnpmitsch merged commit ff5074a into main Jul 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants