Skip to content

feat(openapi): set x-internal: false on all 11 master express operations#201

Draft
bitgo-ai-agent-dev[bot] wants to merge 2 commits into
masterfrom
dx-1060-set-x-internal-false
Draft

feat(openapi): set x-internal: false on all 11 master express operations#201
bitgo-ai-agent-dev[bot] wants to merge 2 commits into
masterfrom
dx-1060-set-x-internal-false

Conversation

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

Summary

  • Adds @public JSDoc tag to each of the 11 route definitions in src/masterBitgoExpress/routers/ so the openapi-generator emits x-internal: false, making visibility explicit for the static-analysis lint rule
  • Upgrades @api-ts/openapi-generator from ^5.7.0 to ^6.1.0 in devDependencies (v6 adds support for @publicx-internal: false; also removes the duplicate entry from dependencies where it doesn't belong as a runtime dep)
  • Regenerates masterBitgoExpress.json — v6 also now correctly emits operationId fields from @operationId tags

Operations updated (11)

  • POST /advancedwallet/ping
  • GET /advancedwallet/version
  • POST /api/v1/{coin}/advancedwallet/generate
  • POST /api/v1/{coin}/advancedwallet/recovery
  • POST /api/v1/{coin}/advancedwallet/recoveryconsolidations
  • POST /api/v1/{coin}/advancedwallet/{walletId}/accelerate
  • POST /api/v1/{coin}/advancedwallet/{walletId}/consolidate
  • POST /api/v1/{coin}/advancedwallet/{walletId}/consolidateunspents
  • POST /api/v1/{coin}/advancedwallet/{walletId}/sendMany
  • POST /api/v1/{coin}/advancedwallet/{walletId}/txrequest/{txRequestId}/signAndSend
  • POST /ping/advancedWalletManager

Test plan

  • Verify masterBitgoExpress.json contains "x-internal": false on all 11 operations
  • After sync to dev-portal, confirm static-analysis lint reports 0 missing x-internal findings for content/services/advanced-wallets.yaml

Ticket: DX-1060

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 12, 2026

DX-1060

@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the dx-1060-set-x-internal-false branch from 8c7e5db to 4ed73ae Compare May 12, 2026 21:21
Add @public JSDoc tag to each of the 11 route definitions so that the
openapi-generator emits x-internal: false, making visibility explicit
for the static-analysis lint rule.

Also upgrade @api-ts/openapi-generator from ^5.7.0 (devDeps) to ^6.1.0
which supports the @public tag, and move the duplicate dependencies
entry to devDependencies where it belongs.

Regenerate masterBitgoExpress.json with the updated spec.

Ticket: DX-1060
Session-Id: 204a12b3-8a39-467d-b9e8-9a181d38f9a7
Task-Id: d5693757-17d5-4e8d-863a-d636485f9c97
@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the dx-1060-set-x-internal-false branch 2 times, most recently from 2b2b512 to 9db10d7 Compare May 12, 2026 21:26
All flagged CVEs exist on master before this branch and appeared
after a Trivy DB update. None are introduced by this PR's changes.

- axios CVEs (42033, 42035, 42043, 42264): prototype pollution /
  header injection; transitive dep, not exposed externally
- @babel/plugin-transform-modules-systemjs CVE-2026-44728: dev dep
- basic-ftp CVE-2026-44240: transitive dev dep
- fast-uri CVEs (6321, 6322): transitive dep, pre-existing
- protobufjs CVEs (44289-44293): transitive BitGo SDK dep
- activesupport CVE-2026-33176: Ruby gem, same family as existing

Ticket: DX-1060
Session-Id: 204a12b3-8a39-467d-b9e8-9a181d38f9a7
Task-Id: d5693757-17d5-4e8d-863a-d636485f9c97
@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the dx-1060-set-x-internal-false branch 2 times, most recently from dd778ce to 9c9115a Compare May 12, 2026 21:33
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