Skip to content

docs: sync api reference 2026-06-08#93

Open
JamesLawton wants to merge 1 commit into
mainfrom
docs/update-api-reference-2026-06-08
Open

docs: sync api reference 2026-06-08#93
JamesLawton wants to merge 1 commit into
mainfrom
docs/update-api-reference-2026-06-08

Conversation

@JamesLawton

Copy link
Copy Markdown
Collaborator

What changed

Weekly sync of the OpenAPI spec with the trails-api source-of-truth, plus a small companion update to the QuoteIntent reference page.

  • api-reference/trails-api.gen.yaml — replaced with the current canonical YAML from trails-api/proto/docs/trails-api.gen.yaml.
  • api-reference/before-annotations-trails-api.gen.json — regenerated via pnpm run convert-openapi.
  • api-reference/trails-api.gen.json — regenerated from the new YAML with the existing servers annotation re-applied (manually annotated entries like RetryIntent are now in the source YAML, so they round-trip cleanly).
  • api-reference/endpoints/quote-intent.mdx — extended bridgeProvider and swapProvider enum lists to include the new providers exposed by the API.

Newly surfaced surface area in this sync (all already present in the source repo):

  • Route providers: HYPERLANE, LZ_TRANSFER, OIF, SOMNIA_EXCHANGE, SOMNIA_SWAP, ONRAMP_BLUVO, plus the HYPERLANE_PAY_FOR_GAS step kind.
  • New types: IntentMode (SWAP/FUND/EARN/PAY/WITHDRAW), EdgeRail (SOLANA), EdgeMode, EdgeStatus, EdgeQuoteRequest, EdgeQuoteResponse, EdgeHandoff, IntentEdgeMetadata, FiatCurrency.
  • New endpoints: QuoteIntentEdge, GetEdgeStatus, GetEdges, BuildOIFRefundTransaction, GetFiatCurrencyList, GetCountryList, GetTrailsContracts, GetProtocolContracts, GetSupportedIntentProtocols, GetDefaultIntentProtocol. GetIntentTransactionHistory is now correctly marked deprecated and points at GetIntentHistory.
  • Field additions on existing requests/responses: mode, gasFeeOptions, isTestnet, edge, originTokenAddress/destinationTokenAddress required-field tightening on IntentQuoteRequest, quotedOriginTokenAmount required on the relevant response, etc.

Source of truth

  • trails-api release branch, proto/docs/trails-api.gen.yaml (# trails-api v1 b0e662c50b61d09cef298cd964cb978c2161e62e).
  • Relevant PRs merged into release in the last 7 days that produced these schema changes:
    • trails-api#734feat: add Open Intents Framework (OIF) support (introduces OIF provider, BuildOIFRefundTransaction, OIF refund worker).
    • trails-api#814hyperlane: enable in AUTO routing with market-rate fee estimation.
    • trails-api#824Add edge transaction steps for Solana-origin quotes (edge types + endpoints).
    • trails-api#823refactor: remove edge awareness from intentmachine (GetIntentReceipt now returns 404 instead of 500 when the receipt isn't found).
    • trails-api#827fix: same-chain PriceImpactUSD, native token normalization, EXACT_INPUT calldata (also blocks HYPERLANE and OIF for v1 quotes).
    • Earlier-but-still-unsynced: trails-api#800 feat: add LZ_TRANSFER route provider.

Verification

  • Ran pnpm run convert-openapi to regenerate before-annotations-trails-api.gen.json from the updated YAML.
  • Diffed against the existing trails-api.gen.json to confirm the only manual annotation in the current docs JSON beyond the source YAML was the servers block; that has been re-applied.
  • Spot-checked new endpoints/types in the YAML against the corresponding ridl declarations in trails-api/proto/trails-api.ridl and the generated proto/trails-api.gen.go enum constants.
  • No MDX endpoint pages were removed; new endpoints in the spec do not yet have MDX pages and are flagged below for follow-up.

Follow-ups (not in this PR)

These endpoints exist in the source spec but still have no dedicated MDX page — likely candidates for a future PR rather than weekly auto-sync:

  • QuoteIntentEdge, GetEdgeStatus, GetEdges (Solana edges)
  • BuildOIFRefundTransaction, PrepareIntentRecovery, BuildIntentRecoveryTransaction
  • GetCountryList, GetTrailsContracts, GetProtocolContracts, GetSupportedIntentProtocols, GetDefaultIntentProtocol
  • YieldGetProvider (singular), YieldGetNetworks, YieldGetMarketById

Generated by the Trails Docs weekly agent.


Generated by Claude Code

Sync the OpenAPI spec files with the source-of-truth from
trails-api/proto/docs/trails-api.gen.yaml. Surfaces endpoints,
types and enum values added since the last sync:

- New route providers: HYPERLANE, LZ_TRANSFER, OIF, SOMNIA_EXCHANGE,
  SOMNIA_SWAP, ONRAMP_BLUVO, HYPERLANE_PAY_FOR_GAS
- New types: IntentMode (SWAP/FUND/EARN/PAY/WITHDRAW), EdgeRail,
  EdgeMode, EdgeStatus, EdgeQuoteRequest/Response, EdgeHandoff,
  IntentEdgeMetadata, FiatCurrency
- New endpoints: QuoteIntentEdge, GetEdgeStatus, GetEdges,
  BuildOIFRefundTransaction, GetFiatCurrencyList, GetCountryList,
  GetTrailsContracts, GetProtocolContracts,
  GetSupportedIntentProtocols, GetDefaultIntentProtocol,
  GetIntentTransactionHistory (deprecated alias of GetIntentHistory)
- Additional fields on existing types (mode, gasFeeOptions,
  isTestnet, edge, originTokenAddress/destinationTokenAddress on
  IntentQuoteRequest, etc.)

Also update the quote-intent reference page to list the new
bridge and swap provider options.
@mintlify

mintlify Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
trails 🟢 Ready View Preview Jun 8, 2026, 9:21 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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