feat: regenerate API schemas to add Robinhood Chain network#28
Open
jiyuu-jin wants to merge 1 commit into
Open
feat: regenerate API schemas to add Robinhood Chain network#28jiyuu-jin wants to merge 1 commit into
jiyuu-jin wants to merge 1 commit into
Conversation
Regenerated src/api via `pnpm generate-api` against the live yield.xyz OpenAPI spec. Adds `robinhood` / `robinhood-testnet` to all network enums plus other upstream spec changes (new endpoints, campaign/KYC schemas, and reshaped risk types). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: cbf2b31 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Robinhood Chain (network identifier
robinhood, EVM chain ID 4663, an Arbitrum Orbit L2) is live in the yield.xyz API with vaults from Steakhouse (Morpho V2), Midas, and Spark — see https://docs.yield.xyz/docs/robinhood. The SDK's generated network enums predate the launch, so consumers currently get a type error passingnetwork: 'robinhood'togetYields()even though the API accepts it.This PR is a pure
pnpm generate-apiregeneration against the published OpenAPI spec (clean: true, perorval.config.ts) — no hand-written code. The only manual addition is the changeset (patch, matching past schema-regeneration changesets like #24).robinhoodandrobinhood-testnetnow appear in all network enums:Networks,NetworkDtoId,YieldsControllerGetYieldsNetwork,YieldQueryDtoNetwork,YieldDtoNetwork,TokenDtoNetwork,TransactionDtoNetwork,AllocationDtoNetwork,ActionsControllerGetActionsNetwork,ActionsQueryDtoNetwork,ActionArgumentsDtoInputTokenNetwork,ActionArgumentsDtoOutputTokenNetwork.Because the spec is live, the regeneration pulls in every upstream change since 0.0.7. Most are additive, but these are breaking for existing consumers:
getYieldRiskresponse type changed:RiskParameterDto[]→YieldRiskDto(array of parameters → single ratings object). TheRiskParameterDto*types are removed from the package exports.YieldDto.riskchanged type:YieldRiskDto→YieldRiskSummaryDto.YieldRiskDto.exponentialFiremoved (Exponential.fi provider dropped), replaced bystakingRewards?: YieldRiskStakingRewardsDto. AllYieldRiskExponentialDto*types are removed from the package exports.RewardDtoYieldSourceenum value renamed:lending_interest→lending(andliquid_stakingadded).ValidatorDtoflattened subnet fields removed:pricePerShare,subnetId,subnetName,marketCap,tokenSymbol→ nestedsubnet?: ValidatorSubnetDto.YieldRequirementsDto.kycUrlremoved, replaced by structuredkyc?: KycMetadataDto.Given the above, maintainers may prefer a
minor/majorbump over thepatchin the changeset — happy to adjust (repo history has shipped schema changes aspatch, so I matched that).Other spec changes pulled in (additive)
tempo,pharos.GET /v1/yields/{yieldId}/campaigns(getYieldCampaigns),GET /v1/tokens(tokensGetTokens),GET /v1/kyc/status(kycGetStatus), with their supportingYieldCampaignDto/ campaign enums / KYC DTO schemas.YieldDto: newprime: boolean,feeConfigurations?: YieldFeeConfigurationDto[],investmentSchedule?: InvestmentScheduleDto(fund-style RWA subscription/redemption schedules),executionContracts?: ExecutionContractsDto.getYields/YieldQueryDto: newprime?: booleanfilter.YieldType: newliquid_stakingvalue;yieldTypesfilter params added on actions/tokens queries.YieldEntryLimitsDto: newsubsequentMinimumfield.YieldMetadataDto: newsupportsCampaigns: boolean.BalanceHistorySnapshotDto: newperiodDelta?field.ArgumentFieldDtoName: newshareAmount,shareAmountRaw,useAutoClaimvalues.YieldStatisticsDtoscope clarifications).Verification
pnpm lint(biome check . && tsc -b) passes.pnpm buildsucceeds.robinhood: "robinhood"and"robinhood-testnet"present in all 12 network enum schema files listed above.🤖 Generated with Claude Code
Notes for maintainers
startup_failureon this PR is pre-existing, not caused by these changes.main'sci.ymlfails at workflow startup (0s, "workflow file issue") for any new PR — every green CI run in history predates May 2026, and open PR feat: schema changes + ci fix #27 ("feat: schema changes + ci fix") replacesjdx/mise-action@v2with a manual mise install to fix exactly this. That fix hasn't been merged tomain, so this PR can't get a CI run. I did not touch the workflow here to keep this PR a pure regeneration; locallypnpm buildandpnpm lintboth pass.stakingRewardsrisk types,lending_interest→lending) plus the newer additions (robinhood/tempo/pharos networks, KYC + tokens endpoints,prime, investment schedules). If feat: schema changes + ci fix #27's CI fix is merged first, I'm happy to rebase/regenerate here.