Skip to content

feat: add getProfile() to ATXPAccount#139

Merged
emilioacc merged 2 commits intomainfrom
emilio/atxp-1643-sdk-profile
Mar 4, 2026
Merged

feat: add getProfile() to ATXPAccount#139
emilioacc merged 2 commits intomainfrom
emilio/atxp-1643-sdk-profile

Conversation

@emilioacc
Copy link
Contributor

Summary

  • Adds MeResponse type and getProfile() method to ATXPAccount
  • Caches the full /me response — no extra HTTP requests when used alongside getAccountId()
  • Exposes account profile data (type, funded status) for downstream consumers

Test plan

  • getProfile() returns cached data after getAccountId() fetch
  • getProfile() fetches /me when account_id was in connection string
  • No duplicate HTTP requests
  • Tests pass in CI

🤖 Generated with Claude Code

emilioacc and others added 2 commits March 4, 2026 18:18
- Add MeResponse type with account profile fields
- Cache full /me response in ATXPAccount
- Add getProfile() that returns cached profile data
- Works whether account_id is in connection string or not

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Mirrors the _accountIdPromise pattern from getAccountId() to
prevent duplicate /me requests when getProfile() is called
concurrently.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@emilioacc emilioacc merged commit 01a216d into main Mar 4, 2026
1 check passed
@emilioacc emilioacc deleted the emilio/atxp-1643-sdk-profile branch March 4, 2026 18:53
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.

1 participant