Skip to content

feat(sdk-api): add enterprise to AddAccessTokenOptions#8968

Merged
vinhkhangtieu merged 1 commit into
masterfrom
ANT-909-add-enterprise-to-addaccesstoken
Jun 8, 2026
Merged

feat(sdk-api): add enterprise to AddAccessTokenOptions#8968
vinhkhangtieu merged 1 commit into
masterfrom
ANT-909-add-enterprise-to-addaccesstoken

Conversation

@bitgo-ai-agent-dev
Copy link
Copy Markdown

Summary

  • Adds enterprise?: string to AddAccessTokenOptions in modules/sdk-api/src/types.ts
  • The field is forwarded to the server automatically via the existing request.send(params) call in bitgoAPI.ts — no further changes needed
  • This enables callers of sdk.addAccessToken() to scope tokens to a specific enterprise, unblocking the long-term fix for SSO token creation failures (ANT-839)

Test plan

  • Verify TypeScript compiles cleanly in modules/sdk-api
  • Verify existing unit tests in modules/sdk-api pass
  • Verify existing integration tests for addAccessToken in modules/bitgo continue to pass
  • Manual: confirm that passing enterprise in sdk.addAccessToken({ ..., enterprise: '<id>' }) sends the field to the server in the request body

Ticket: ANT-909

🤖 Generated with Ralph

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 8, 2026

ANT-909

@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the ANT-909-add-enterprise-to-addaccesstoken branch from 908d52c to 6a2b126 Compare June 8, 2026 17:18
@vinhkhangtieu vinhkhangtieu marked this pull request as ready for review June 8, 2026 18:12
@vinhkhangtieu vinhkhangtieu requested review from a team as code owners June 8, 2026 18:12
Allow callers of sdk.addAccessToken() to pass an enterprise ID.
The value is forwarded to the server via the existing request.send(params)
call in bitgoAPI.ts, which already spreads all params into the request body.

Ticket: ANT-909
Session-Id: 9f5635b8-39d3-4249-a4c5-eb72a35f17ae
Task-Id: f65c85d3-215f-4b00-906d-462c725ab8a1
@vinhkhangtieu vinhkhangtieu force-pushed the ANT-909-add-enterprise-to-addaccesstoken branch from 6a2b126 to a95bf93 Compare June 8, 2026 18:14
@vinhkhangtieu vinhkhangtieu merged commit 0dc6573 into master Jun 8, 2026
22 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