{"openapi":"3.0.0","paths":{"/":{"get":{"operationId":"ApiV2Controller_getHello","parameters":[],"responses":{"200":{"description":""}},"tags":["ApiV2"]}},"/borrow/application/update-constants":{"post":{"operationId":"ApplicationController_bustingMethod","parameters":[],"responses":{"201":{"description":""}},"tags":["Application"]}},"/borrow/application/{id}":{"get":{"operationId":"ApplicationController_getApplicationById","parameters":[{"name":"id","required":true,"in":"path","description":"Application ID","schema":{"type":"number"}}],"responses":{"200":{"description":"Application with steps and tasks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApplicationDto"}}}}},"tags":["Application"]}},"/borrow/application":{"post":{"operationId":"ApplicationController_createApplication","parameters":[{"name":"applicationId","required":true,"in":"query","description":"Application ID to create","schema":{"type":"number"}}],"responses":{"201":{"description":"Application created with steps and tasks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApplicationDto"}}}}},"tags":["Application"]}},"/borrow/application/task/status":{"patch":{"operationId":"ApplicationController_updateTaskStatus","parameters":[],"requestBody":{"required":true,"description":"Task status update request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskStatusDto"}}}},"responses":{"200":{"description":"Task status updated successfully"}},"tags":["Application"]}},"/governance/proposals":{"get":{"operationId":"GovernanceController_cachedMethod","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Page size. Default 20, max 100.","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Page offset. Default 0.","schema":{"type":"number"}},{"name":"state","required":false,"in":"query","description":"Filter by proposal state.","schema":{"enum":["Pending","Active","Canceled","Defeated","Succeeded","Queued","Expired","Executed"],"type":"string"}}],"responses":{"200":{"description":"Paginated proposals list, ordered by created_block desc. Omits description/actions/params_at_creation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProposalsResponseDto"}}}}},"tags":["Governance"]}},"/governance/proposals/{proposalId}":{"get":{"operationId":"GovernanceController_getProposal","parameters":[{"name":"proposalId","required":true,"in":"path","description":"Proposal id (uint256 decimal string).","schema":{"type":"string"}},{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}}],"responses":{"200":{"description":"Full proposal row, including its linked timelock operation + calls when present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDetailResponseDto"}}}}},"tags":["Governance"]}},"/governance/proposals/{proposalId}/votes":{"get":{"operationId":"GovernanceController_listVotes","parameters":[{"name":"proposalId","required":true,"in":"path","description":"Proposal id (uint256 decimal string).","schema":{"type":"string"}},{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Page size. Default 20, max 100.","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Page offset. Default 0.","schema":{"type":"number"}},{"name":"support","required":false,"in":"query","description":"Filter by vote support: 0 Against, 1 For, 2 Abstain.","schema":{"enum":[0,1,2],"type":"number"}}],"responses":{"200":{"description":"Paginated voter list for a proposal, ordered by block_number desc, log_index desc.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVotesResponseDto"}}}}},"tags":["Governance"]}},"/governance/delegates":{"get":{"operationId":"GovernanceController_listDelegates","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Page size. Default 20, max 100.","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Page offset. Default 0.","schema":{"type":"number"}}],"responses":{"200":{"description":"Delegate leaderboard, ordered by voting_power desc.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDelegatesResponseDto"}}}}},"tags":["Governance"]}},"/governance/delegates/{address}":{"get":{"operationId":"GovernanceController_getDelegate","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}},{"name":"address","required":true,"in":"path","description":"Delegate address.","schema":{"type":"string"}}],"responses":{"200":{"description":"Single delegate row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegateDetailResponseDto"}}}}},"tags":["Governance"]}},"/governance/delegates/{address}/delegators":{"get":{"operationId":"GovernanceController_listDelegators","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Page size. Default 20, max 100.","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Page offset. Default 0.","schema":{"type":"number"}},{"name":"address","required":true,"in":"path","description":"Delegate address.","schema":{"type":"string"}}],"responses":{"200":{"description":"Delegators pointing at this delegate, ordered by updated_block desc.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDelegatorsResponseDto"}}}}},"tags":["Governance"]}},"/governance/accounts/{address}":{"get":{"operationId":"GovernanceController_getAccount","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}},{"name":"address","required":true,"in":"path","description":"Wallet address.","schema":{"type":"string"}}],"responses":{"200":{"description":"Account-centric view: this address's delegators row, delegates row, and votes cast count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponseDto"}}}}},"tags":["Governance"]}},"/governance/metrics":{"get":{"operationId":"GovernanceController_cachedMethod","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}}],"responses":{"200":{"description":"governance_metrics row plus proposalsCount/delegatesCount.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsResponseDto"}}}}},"tags":["Governance"]}},"/governance/status":{"get":{"operationId":"GovernanceController_getStatus","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_ARBITRUM","CHIP_GOVERNANCE_SHORT_ARBITRUM","GMX_GOVERNANCE_ARBITRUM"],"type":"string"}}],"responses":{"200":{"description":"Indexer sync health for the deployment (not cached).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponseDto"}}}}},"tags":["Governance"]}},"/loans/{loanId}/hardware":{"get":{"operationId":"LoanHardwareController_getLoanHardware","parameters":[{"name":"loanId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicHardwareViewDto"}}}}},"tags":["loans"]}},"/usdai/dashboard/tvl":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"Current TVL value from USDai and sUSDai contracts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TvlResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/topline":{"get":{"operationId":"DashboardController_getTopline","parameters":[],"responses":{"200":{"description":"The five app topline figures — TVL, gross staking APY (with bucket breakdown), net APY (with the CHIP Hurdle Rate quoted in its place), total lifetime deployed, and the yield counter — computed as ONE snapshot at the same instant and cached under a single 5-minute key, so consumers never see the figures move on different beats. Each figure is independently nullable: a null means that figure failed to compute (or, for yieldCounter, has never been produced) while the others are still valid. Figures match the shapes of the corresponding standalone endpoints (/tvl, /current-apy, /total-originated-volume, /usdai/dashboard yieldCounter), except net APY: this payload keeps the raw `netApy` and the `chipHurdle` breakdown, while /net-apy serves only the floored rate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToplineResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/originated-volume-history":{"get":{"operationId":"DashboardController_getOriginatedVolumeHistory","parameters":[],"responses":{"200":{"description":""}},"tags":["Dashboard"]}},"/usdai/dashboard/principal-repaid-history":{"get":{"operationId":"DashboardController_getPrincipalRepaidHistory","parameters":[],"responses":{"200":{"description":""}},"tags":["Dashboard"]}},"/usdai/dashboard/yield-repaid-history":{"get":{"operationId":"DashboardController_getYieldRepaidHistory","parameters":[],"responses":{"200":{"description":""}},"tags":["Dashboard"]}},"/usdai/dashboard/total-yield-repaid":{"get":{"operationId":"DashboardController_getTotalYieldRepaid","parameters":[],"responses":{"200":{"description":"Cumulative yield repaid to lenders via LoanRouter LenderRepaid events. Total is summed as raw 6-decimal token units across USDC and PYUSD loans (both treated as 1:1 USD downstream).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotalYieldRepaidResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/total-originated-volume":{"get":{"operationId":"DashboardController_getTotalOriginatedVolume","parameters":[],"responses":{"200":{"description":"Total lifetime capital deployed, USD: lifetime principal originated (LoanRouter V1 + V2-native + the two legacy v2 GPU-financing pools) plus LoanRouter V2 escrow capital committed but not yet lent. Router events are LoanOriginated principals (USDC/PYUSD, 6-decimal, treated 1:1 USD). v2 contribution counts only the FIRST origination per (pool, borrower, collateralTokenIds) chain to avoid monthly-rollover inflation; v2 pools are USDC-denominated but the subgraph emits principal in 18-decimal scaled units. Other v2 pools (ATH, XAI, etc.) are excluded. Escrow deposits whose loanTermsHash has already originated are excluded from the escrow leg so escrow-funded loans are counted once; for principal strictly originated on-chain (escrow float excluded), sum the originated-volume-history series instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotalOriginatedVolumeResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/susdai-redemptions-queue-history":{"get":{"operationId":"DashboardController_getSUsdaiRedemptionsQueueHistory","parameters":[],"responses":{"200":{"description":""}},"tags":["Dashboard"]}},"/usdai/dashboard/susdai-redemptions-queue":{"get":{"operationId":"DashboardController_getSUsdaiRedemptionsQueue","parameters":[],"responses":{"200":{"description":"Currently-queued sUSDai redemption requests (active==true, onchain pendingShares > 0). Data sourced hybrid: request metadata (controller/owner/sender, requestedAtTimestamp, txHash) from metastreet-usdai-contracts subgraph; authoritative live values (pendingShares, redeemableShares, withdrawableAmount, sharesAhead, totals) from on-chain reads (sUSDai.redemption + redemptionQueueInfo). Rows with on-chain pendingShares==0 are filtered out despite subgraph marking them active, ensuring consistency during indexing lag. Cached 60s; graceful-degrade on subgraph error returns on-chain totals + empty items. Excludes fulfilled, canceled, and expired requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SUsdaiRedemptionsQueueResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/susdai-redemption-target-periods":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"sUSDai hurdle periods and redemption estimates. Look a request up by its on-chain redemptionTimestamp in a period's redemptionTimestamps. Each period opens for the contract's redemptionTimestamp() eligibility date and evaluates at eligibility plus two hours. The fixed hurdle grows the anchor depositSharePrice at 7% simple annualized. The expected redemption price projects depositSharePrice and redemptionSharePrice to that same time, then assumes a donation only for any deposit-price hurdle shortfall. It does not add accrued but unpaid loan or escrow interest back to redemptionSharePrice. Periods start only after a finalized on-chain RedemptionsServiced(allRedemptionsServiced=true) event and use the post-transaction state at the end of that event's block for depositSharePrice. An eligibility date that passes before its batch is serviced maps to the period still open. expectedSharePrice is an estimate, not a donation, payout, or servicing guarantee.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedemptionTargetPeriodsResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/susdai-expected-share-price":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[{"name":"redemptionTimestamp","required":false,"in":"query","description":"Exact on-chain redemptionTimestamp request key in unix seconds. Omit for the current open/unserviced period. A valid unknown or future key returns null.","schema":{"example":1762063200,"type":"number"}}],"responses":{"200":{"description":"The donation-adjusted redemption estimate for the exact request cycle, or null when no matching estimate exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SUsdaiExpectedSharePriceResponseDto"}}}},"400":{"description":"redemptionTimestamp is not a non-negative safe integer unix-second."}},"tags":["Dashboard"]}},"/usdai/dashboard/future-yield-payments":{"get":{"operationId":"DashboardController_getFutureYieldPayments","parameters":[{"name":"startTimestamp","required":false,"in":"query","description":"Lower bound (unix seconds, inclusive). Defaults to 0.","schema":{"type":"number"}},{"name":"endTimestamp","required":false,"in":"query","description":"Upper bound (unix seconds, inclusive). Defaults to +∞.","schema":{"type":"number"}}],"responses":{"200":{"description":"Scheduled future interest + final-principal payments from currently active LoanRouter loans, ascending by dueAt. Each payment carries the loan's currency (address, symbol, decimals); interest/principal amounts are raw token units — apply currency.decimals to format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FutureYieldPaymentsResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/current-apy":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"Last stored APY value. is stored as a 18 Decimals value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApyResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/net-apy":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"The CHIP Hurdle Rate (`result`): net staking APY floored at the governed CHIP hurdle minimum. This is the single quoted depositor rate — the raw net APY below the floor is not served here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNetApyResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/utilization":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"ration of staked usdai","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UtilizationResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/susdai-share-prices":{"get":{"operationId":"DashboardController_getSusdaiSharePrices","parameters":[{"name":"from","required":true,"in":"query","schema":{"type":"string"}},{"name":"to","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Dashboard"]}},"/usdai/dashboard/proof-of-reserves":{"get":{"operationId":"DashboardController_getProofOfReserves","parameters":[{"name":"chainId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Proof of reserves data showing the backing assets for USDai, including their APY, amount, and share.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofOfReservesResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/loans-apr":{"get":{"operationId":"DashboardController_getLoansApr","parameters":[{"name":"chainId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Published percent APR for every deal, keyed by LoanTermsV2 row id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoansAprResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/expected-apy":{"get":{"operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"Expected APY data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedApyResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/loan-snapshot":{"get":{"description":"Returns deployed principal (USD), principal-weighted APY, and aggregate LTV under two windows: `current` (active loans only) and `allTime` (all loans ever originated).","operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanSnapshotResponseDto"}}}}},"summary":"Active-vs-all-time loan snapshot","tags":["Dashboard"]}},"/usdai/dashboard/default-rate":{"get":{"description":"Count-based default rate: defaulted loans / qualifying loans (same set as Originated). Returns rate as fraction (0..1).","operationId":"DashboardController_cachedMethod","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultRateResponseDto"}}}}},"summary":"Loan default rate","tags":["Dashboard"]}},"/usdai/dashboard":{"get":{"operationId":"DashboardController_getDashboardData","parameters":[{"name":"granularity","required":false,"in":"query","description":"Buckets the 30-minute-cadence TVL/reserves history series to fixed-interval averages: `1d` with the default rawWindowDays takes the payload from ~8.7MB to ~1.0MB, `6h` to ~1.5MB. Omit for the full raw history. The daily-cadence series (apy, utilization, minted/staked, fmv, price, cumulative yield) are always returned raw.","schema":{"enum":["6h","12h","1d"],"type":"string"}},{"name":"rawWindowDays","required":false,"in":"query","description":"Trailing window kept at raw 30-minute resolution when `granularity` is set (default 30). Ignored without `granularity`.","schema":{"enum":[0,7,30,90],"type":"number"}}],"responses":{"200":{"description":"Comprehensive dashboard data including TVL, APY, utilization and their historical values","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponseDto"}}}}},"summary":"","tags":["Dashboard"]}},"/usdai/public/usdai-supply":{"get":{"operationId":"PublicController_getUSDaiSupply","parameters":[],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/susdai-supply":{"get":{"operationId":"PublicController_getsUSDaiSupply","parameters":[],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/susai-staking-apy":{"get":{"operationId":"PublicController_getSusaiStakingApy","parameters":[],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/current-net-apy":{"get":{"operationId":"PublicController_getCurrentNetApy","parameters":[],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/protocol-alignments":{"get":{"operationId":"PublicController_cachedMethod","parameters":[{"name":"season","required":false,"in":"query","description":"Season","schema":{}}],"responses":{"200":{"description":"Protocol total alignments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolAlignmentsResponseDto"}}}}},"tags":["Public"]}},"/usdai/public/total-allo":{"get":{"operationId":"PublicController_getTotalAllo","parameters":[{"name":"partner","required":false,"in":"query","description":"Partner","schema":{"type":"string"}},{"name":"season","required":false,"in":"query","description":"Season","schema":{"type":"number"}}],"responses":{"200":{"description":"Total Allo in the protocol","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotalAlloResponseDto"}}}}},"tags":["Public"]}},"/usdai/public/raw-xp-state":{"get":{"operationId":"PublicController_getXpState","parameters":[{"name":"account","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/exponent-points":{"get":{"operationId":"PublicController_getExponentPoints","parameters":[{"name":"address","required":true,"in":"query","schema":{"type":"string"}},{"name":"season","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/integration-summaries":{"get":{"operationId":"PublicController_getIntegrationSummaries","parameters":[],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/integration-rates":{"get":{"operationId":"PublicController_getIntegrationRates","parameters":[],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/public/daily-snapshots":{"get":{"operationId":"PublicController_getDailySnapshots","parameters":[{"name":"from","required":true,"in":"query","schema":{"type":"string"}},{"name":"to","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Public"]}},"/usdai/wallet/integrations-data":{"get":{"operationId":"WalletController_getWalletIntegrationsData","parameters":[{"name":"address","required":false,"in":"query","description":"Wallet address","schema":{"type":"string"}},{"name":"chainId","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Wallet integrations data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntegrationsDataDto"}}}}},"tags":["Wallet"]}},"/usdai/wallet/rates":{"get":{"operationId":"WalletController_getRates","parameters":[{"name":"address","required":false,"in":"query","description":"Wallet address","schema":{"type":"string"}}],"responses":{"200":{"description":"Rates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRatesDto"}}}}},"tags":["Wallet"]}},"/usdai/wallet/adjusted-rates":{"get":{"operationId":"WalletController_getAdjustedRates","parameters":[{"name":"address","required":false,"in":"query","description":"Wallet address","schema":{"type":"string"}}],"responses":{"200":{"description":"Rates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRatesDto"}}}}},"tags":["Wallet"]}},"/usdai/wallet/{address}":{"get":{"operationId":"WalletController_getWalletInfo","parameters":[{"name":"address","required":true,"in":"path","description":"Wallet address","schema":{"type":"string"}},{"name":"season","required":true,"in":"query","schema":{"type":"string"}},{"name":"privy-id-token","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Wallet info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWalletDto"}}}}},"tags":["Wallet"]}},"/ms-app/yieldpass/metrics/{chainId}/{marketId}/{account}":{"get":{"operationId":"YieldpassController_getYieldpassMarketAccountMetrics","parameters":[{"name":"chainId","required":true,"in":"path","schema":{"type":"string"}},{"name":"marketId","required":true,"in":"path","schema":{"type":"string"}},{"name":"account","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Yieldpass market account metrics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldpassMarketAccountMetricsResponseDto"}}}},"400":{"content":{"application/json":{"examples":{"BadRequestException":{"description":"Bad Request","value":{"statusCode":400,"message":"Bad Request","error":"Bad Request"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"message":{"type":"string","example":"Bad Request"},"error":{"type":"string","example":"Bad Request"}},"required":["statusCode","message"]}}},"description":""}},"tags":["Yieldpass"]}},"/usdai/testnet/whitelisted-eids":{"get":{"operationId":"UsdaiController_getWhitelistedEids[0]","parameters":[],"responses":{"200":{"description":"Whitelisted EIDs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWhitelistedEidsResponseDto"},"example":{"1":{"1":true,"2":false}}}}}},"tags":["Usdai"]}},"/usdai/whitelisted-eids":{"get":{"operationId":"UsdaiController_getWhitelistedEids[1]","parameters":[],"responses":{"200":{"description":"Whitelisted EIDs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWhitelistedEidsResponseDto"},"example":{"1":{"1":true,"2":false}}}}}},"tags":["Usdai"]}},"/usdai/wallets/leaderboard":{"get":{"operationId":"WalletsController_getLeaderboard","parameters":[{"name":"season","required":false,"in":"query","description":"Season","schema":{"type":"number"}}],"responses":{"200":{"description":"Leaderboard info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLeaderboardDto"}}}}},"tags":["Wallets"]}},"/usdai/wallets/alignment-leaderboards":{"get":{"operationId":"WalletsController_getAlignmentLeaderboards","parameters":[{"name":"season","required":false,"in":"query","description":"Season","schema":{"type":"number"}}],"responses":{"200":{"description":"Alignment leaderboards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAlignmentLeaderboardsDto"}}}}},"tags":["Wallets"]}},"/usdai/wallets/referral-leaderboard":{"get":{"operationId":"WalletsController_getReferralLeaderboard","parameters":[],"responses":{"200":{"description":"Referral leaderboard info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetReferralLeaderboardDto"}}}}},"tags":["Wallets"]}},"/usdai/wallets/totalWallets":{"get":{"operationId":"WalletsController_getTotalWallets","parameters":[{"name":"season","required":false,"in":"query","description":"Season","schema":{"type":"number"}}],"responses":{"200":{"description":"Total wallets info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTotalWalletsDto"}}}}},"tags":["Wallets"]}},"/usdai/auth/login":{"post":{"operationId":"AuthController_login","parameters":[{"name":"privy-id-token","in":"header","description":"Privy ID token","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequestBodyDto"}}}},"responses":{"200":{"description":"User logged in successfully"}},"tags":["Auth"]}},"/usdai/invite/available/{code}":{"get":{"operationId":"InviteController_available","parameters":[{"name":"code","required":true,"in":"path","description":"Invite code","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsCodeAvailableResponseDto"}}}}},"tags":["Invite"]}},"/usdai/loans/{chainId}/{loanId}/schedule":{"get":{"operationId":"LoansController_getSchedule","parameters":[{"name":"chainId","required":true,"in":"path","schema":{"type":"number"}},{"name":"loanId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanScheduleResponseDto"}}}},"404":{"description":"Loan not found"}},"summary":"Get payment schedule for a loan","tags":["Loans"]}},"/usdai/external/v1/susdai/redemptions/next":{"get":{"description":"Bare next redemption date, read live from sUSDai's on-chain schedule.","operationId":"ExternalController_cachedMethod","parameters":[],"responses":{"200":{"description":"Next sUSDai redemption processing date","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NextRedemptionResponseDto"}}}}},"summary":"Next sUSDai redemption processing date","tags":["External API"]}},"/usdai/external/v1/susdai/redemptions/schedule":{"get":{"description":"Bare array of the next N redemption processing dates, starting with the next one, read live from sUSDai's on-chain schedule","operationId":"ExternalController_cachedMethod","parameters":[{"name":"limit","required":false,"in":"query","description":"Number of dates to return. Default 6, min 1, max 24.","schema":{"type":"number"}}],"responses":{"200":{"description":"Upcoming sUSDai redemption processing dates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedemptionScheduleResponseDto"}}}}},"summary":"Upcoming sUSDai redemption processing dates","tags":["External API"]}},"/usdai/borrow/rwa/metadata/testnet/{version}":{"get":{"operationId":"MetadataController_getRWACollectionMetadata[0]","parameters":[],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/usdai/borrow/rwa/metadata/{version}":{"get":{"operationId":"MetadataController_getRWACollectionMetadata[1]","parameters":[],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/usdai/borrow/rwa/metadata/testnet/{version}/{tokenId}":{"get":{"operationId":"MetadataController_getRWATokenMetadata[0]","parameters":[{"name":"tokenId","required":true,"in":"path","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/usdai/borrow/rwa/metadata/{version}/{tokenId}":{"get":{"operationId":"MetadataController_getRWATokenMetadata[1]","parameters":[{"name":"tokenId","required":true,"in":"path","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/usdai/borrow/rwa/metadata/testnet/{version}/{tokenIdRange}/{file}":{"get":{"operationId":"MetadataController_getRWATokenMetadataPSA[0]","parameters":[{"name":"tokenIdRange","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/usdai/borrow/rwa/metadata/{version}/{tokenIdRange}/{file}":{"get":{"operationId":"MetadataController_getRWATokenMetadataPSA[1]","parameters":[{"name":"tokenIdRange","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/usdai/borrow/rwa/quote":{"get":{"operationId":"QuoteController_getRWAQuote","parameters":[{"name":"startTokenId","required":true,"in":"query","description":"Start Token ID","schema":{"type":"string"}},{"name":"endTokenId","required":true,"in":"query","description":"End Token ID","schema":{"type":"string"}},{"name":"chainId","required":true,"in":"query","description":"Chain ID","schema":{"type":"number"}},{"name":"collectionId","required":true,"in":"query","description":"Collection ID","schema":{"type":"string"}},{"name":"currencyId","required":true,"in":"query","description":"Currency ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Token price signed quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRWAQuoteResponseDto"}}}},"400":{"content":{"application/json":{"examples":{"BadRequestException":{"description":"Bad Request","value":{"statusCode":400,"message":"Bad Request","error":"Bad Request"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"message":{"type":"string","example":"Bad Request"},"error":{"type":"string","example":"Bad Request"}},"required":["statusCode","message"]}}},"description":""},"500":{"content":{"application/json":{"examples":{"InternalServerErrorException":{"description":"Internal Server Error","value":{"statusCode":500,"message":"Internal Server Error","error":"Internal Server Error"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":500},"message":{"type":"string","example":"Internal Server Error"},"error":{"type":"string","example":"Internal Server Error"}},"required":["statusCode","message"]}}},"description":""}},"tags":["Quote"]}},"/usdai/borrow/rwa/quotes":{"post":{"operationId":"QuoteController_getRWAQuotes","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRwaQuotesBodyDto"}}}},"responses":{"200":{"description":"Token price signed quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRWAQuotesResponseDto"}}}},"400":{"content":{"application/json":{"examples":{"BadRequestException":{"description":"Bad Request","value":{"statusCode":400,"message":"Bad Request","error":"Bad Request"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"message":{"type":"string","example":"Bad Request"},"error":{"type":"string","example":"Bad Request"}},"required":["statusCode","message"]}}},"description":""},"500":{"content":{"application/json":{"examples":{"InternalServerErrorException":{"description":"Internal Server Error","value":{"statusCode":500,"message":"Internal Server Error","error":"Internal Server Error"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":500},"message":{"type":"string","example":"Internal Server Error"},"error":{"type":"string","example":"Internal Server Error"}},"required":["statusCode","message"]}}},"description":""}},"tags":["Quote"]}},"/usdai/integrations":{"get":{"operationId":"IntegrationsController_cachedMethod","parameters":[],"responses":{"200":{"description":"Description of the response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntegrationsResponseDto"}}}}},"tags":["Integrations"]}},"/usdai/integrations/s1":{"get":{"description":"Returns the union of all distinct integrationName values present in any S1 frozen table. Used to determine which integrations had any XP in Season 1.","operationId":"IntegrationsController_cachedMethod","parameters":[],"responses":{"200":{"description":"Array of lowercase integration ID strings","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"summary":"Get S1 integration IDs","tags":["Integrations"]}},"/usdai/xp-transfer/message":{"get":{"operationId":"XpTransferController_getMessage","parameters":[],"responses":{"200":{"description":""}},"tags":["XpTransfer"]}},"/usdai/xp-transfer/account/{address}":{"get":{"operationId":"XpTransferController_getAccount","parameters":[{"name":"address","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["XpTransfer"]}},"/usdai/xp-transfer/transfer":{"post":{"operationId":"XpTransferController_transfer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XpTransferDto"}}}},"responses":{"201":{"description":""}},"tags":["XpTransfer"]}},"/usdai/deposit-partners/me/daily":{"get":{"operationId":"DepositPartnersController_cachedMethod","parameters":[],"responses":{"200":{"description":""}},"security":[{"partner-api-key":[]}],"tags":["Deposit partners"]}},"/usdai/deposit-partners/me/summary":{"get":{"operationId":"DepositPartnersController_cachedMethod","parameters":[],"responses":{"200":{"description":""}},"security":[{"partner-api-key":[]}],"tags":["Deposit partners"]}},"/usdai/deposit-partners/me/accounts":{"get":{"operationId":"DepositPartnersController_cachedMethod","parameters":[],"responses":{"200":{"description":""}},"security":[{"partner-api-key":[]}],"tags":["Deposit partners"]}},"/wallet-screening/{walletAddress}":{"get":{"operationId":"WalletScreeningController_screenWallet","parameters":[{"name":"walletAddress","required":true,"in":"path","description":"The wallet address to screen for risk","schema":{"example":"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb","type":"string"}}],"responses":{"200":{"description":"Risk assessment for the wallet address. Uses TRM Labs screening with 30-day cache.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletRiskResponseDto"}}}}},"tags":["Wallet Screening"]}},"/health":{"get":{"operationId":"HealthController_check","parameters":[],"responses":{"200":{"description":""}},"tags":["Health"]}},"/health/ready":{"get":{"operationId":"HealthController_readiness","parameters":[],"responses":{"200":{"description":""}},"tags":["Health"]}},"/health/live":{"get":{"operationId":"HealthController_liveness","parameters":[],"responses":{"200":{"description":""}},"tags":["Health"]}}},"info":{"title":"USDAI API","description":"","version":"1.0.0","contact":{}},"tags":[],"servers":[{"url":""}],"components":{"securitySchemes":{"partner-api-key":{"scheme":"bearer","bearerFormat":"API key","type":"http","description":"Deposit-partner API key"}},"schemas":{"GetApplicationDto":{"type":"object","properties":{"id":{"description":"Application ID","type":"number"},"created_at":{"description":"Application creation timestamp","type":"string"},"Step":{"description":"Steps associated with the application","type":"array","items":{"type":"object","properties":{"id":{"description":"Step ID","type":"string"},"step_id":{"description":"Step identifier","type":"string"},"application_id":{"description":"Application ID","type":"number"},"created_at":{"description":"Step creation timestamp","type":"string"},"tasks":{"description":"Task IDs","type":"array","items":{"type":"string"}},"Task":{"description":"Tasks for this step","type":"array","items":{"type":"object","properties":{"id":{"description":"Task ID","type":"string"},"task_id":{"description":"Task identifier","type":"string"},"step_id":{"description":"Step ID","type":"string"},"application_id":{"description":"Application ID","type":"number"},"status":{"description":"Task status","type":"string","enum":["PENDING","TODO","COMPLETED","UNAVAILABLE"],"nullable":true},"created_at":{"description":"Task creation timestamp","type":"string"}},"required":["id","task_id","step_id","application_id","status","created_at"]},"nullable":true}},"required":["id","step_id","application_id","created_at","tasks","Task"]},"nullable":true}},"required":["id","created_at","Step"]},"UpdateTaskStatusDto":{"type":"object","properties":{"application_id":{"description":"Application ID","type":"number"},"step_id":{"description":"Step ID","type":"string","enum":["borrower-intake","due-diligence","spv-formation","purchase-order","equipment-delivery","funding"],"x-enumNames":["borrower-intake","due-diligence","spv-formation","purchase-order","equipment-delivery","funding"]},"task_id":{"description":"Task ID","type":"string","enum":["user-application","execute-nda","intake-call","executed-term-sheet","kyb-aml","colocation-agreement","data-center-one-pager","offtake-agreement","purchase-order-oem","customer-service-agreement","bridge-loan-onboarding","proof-of-order-placement","loan-proceeds-in-escrow","executed-sale-contribution-agreement","install-aravolta-monitoring","executed-warehouse-receipt","chips-added-to-master-insurance-policy","assets-tokenized","loan-executed","onramp-offramp","country-legal-review","spv-llc-formation","executed-spv-llc-documents"],"x-enumNames":["user-application","execute-nda","intake-call","executed-term-sheet","kyb-aml","colocation-agreement","data-center-one-pager","offtake-agreement","purchase-order-oem","customer-service-agreement","bridge-loan-onboarding","proof-of-order-placement","loan-proceeds-in-escrow","executed-sale-contribution-agreement","install-aravolta-monitoring","executed-warehouse-receipt","chips-added-to-master-insurance-policy","assets-tokenized","loan-executed","onramp-offramp","country-legal-review","spv-llc-formation","executed-spv-llc-documents"]},"status":{"description":"Task status","type":"string","enum":["PENDING","TODO","COMPLETED","UNAVAILABLE","SKIPPED","REJECTED"],"x-enumNames":["PENDING","TODO","COMPLETED","UNAVAILABLE","SKIPPED","REJECTED"],"nullable":true}},"required":["application_id","step_id","task_id","status"]},"ListProposalsResponseDto":{"type":"object","properties":{"totalCount":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"deployment":{"type":"string"},"proposal_id":{"type":"string"},"proposer":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"description_hash":{"type":"string"},"created_block":{"type":"number"},"created_tx":{"type":"string"},"created_at":{"type":"string"},"vote_start_ts":{"type":"number"},"vote_end_ts":{"type":"number"},"deadline_ts":{"type":"number"},"extended":{"type":"boolean"},"quorum_at_snapshot":{"type":"string","nullable":true},"for_votes":{"type":"string"},"against_votes":{"type":"string"},"abstain_votes":{"type":"string"},"state":{"type":"string","enum":["Pending","Active","Canceled","Defeated","Succeeded","Queued","Expired","Executed"]},"eta_ts":{"type":"number","nullable":true},"queued_tx":{"type":"string","nullable":true},"queued_at":{"type":"string","nullable":true},"executed_tx":{"type":"string","nullable":true},"executed_at":{"type":"string","nullable":true},"canceled_tx":{"type":"string","nullable":true},"canceled_at":{"type":"string","nullable":true},"timelock_operation_id":{"type":"string","nullable":true},"reconciled_at":{"type":"string","nullable":true}},"required":["deployment","proposal_id","proposer","title","excerpt","description_hash","created_block","created_tx","created_at","vote_start_ts","vote_end_ts","deadline_ts","extended","quorum_at_snapshot","for_votes","against_votes","abstain_votes","state","eta_ts","queued_tx","queued_at","executed_tx","executed_at","canceled_tx","canceled_at","timelock_operation_id","reconciled_at"]}}},"required":["totalCount","items"]},"ProposalDetailResponseDto":{"type":"object","properties":{"deployment":{"type":"string"},"proposal_id":{"type":"string"},"proposer":{"type":"string"},"title":{"type":"string"},"description_hash":{"type":"string"},"created_block":{"type":"number"},"created_tx":{"type":"string"},"created_at":{"type":"string"},"vote_start_ts":{"type":"number"},"vote_end_ts":{"type":"number"},"deadline_ts":{"type":"number"},"extended":{"type":"boolean"},"quorum_at_snapshot":{"type":"string","nullable":true},"for_votes":{"type":"string"},"against_votes":{"type":"string"},"abstain_votes":{"type":"string"},"state":{"type":"string","enum":["Pending","Active","Canceled","Defeated","Succeeded","Queued","Expired","Executed"]},"eta_ts":{"type":"number","nullable":true},"queued_tx":{"type":"string","nullable":true},"queued_at":{"type":"string","nullable":true},"executed_tx":{"type":"string","nullable":true},"executed_at":{"type":"string","nullable":true},"canceled_tx":{"type":"string","nullable":true},"canceled_at":{"type":"string","nullable":true},"timelock_operation_id":{"type":"string","nullable":true},"reconciled_at":{"type":"string","nullable":true},"description":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"target":{"type":"string"},"value":{"type":"string"},"signature":{"type":"string"},"calldata":{"type":"string"}},"required":["index","target","value","signature","calldata"]}},"params_at_creation":{"type":"object","additionalProperties":{"type":"string"}},"timelock":{"type":"object","properties":{"operation":{"type":"object","properties":{"deployment":{"type":"string"},"operation_id":{"type":"string"},"predecessor":{"type":"string","nullable":true},"salt":{"type":"string","nullable":true},"delay_ts":{"type":"number","nullable":true},"eta_ts":{"type":"number","nullable":true},"status":{"type":"string","enum":["scheduled","executed","cancelled"]},"proposal_id":{"type":"string","nullable":true},"scheduled_tx":{"type":"string","nullable":true},"scheduled_at":{"type":"string","nullable":true},"executed_tx":{"type":"string","nullable":true},"executed_at":{"type":"string","nullable":true},"cancelled_tx":{"type":"string","nullable":true},"cancelled_at":{"type":"string","nullable":true}},"required":["deployment","operation_id","predecessor","salt","delay_ts","eta_ts","status","proposal_id","scheduled_tx","scheduled_at","executed_tx","executed_at","cancelled_tx","cancelled_at"]},"calls":{"type":"array","items":{"type":"object","properties":{"deployment":{"type":"string"},"operation_id":{"type":"string"},"call_index":{"type":"number"},"target":{"type":"string"},"value":{"type":"string"},"data":{"type":"string"},"executed_tx":{"type":"string","nullable":true},"executed_at":{"type":"string","nullable":true}},"required":["deployment","operation_id","call_index","target","value","data","executed_tx","executed_at"]}}},"required":["operation","calls"],"nullable":true}},"required":["deployment","proposal_id","proposer","title","description_hash","created_block","created_tx","created_at","vote_start_ts","vote_end_ts","deadline_ts","extended","quorum_at_snapshot","for_votes","against_votes","abstain_votes","state","eta_ts","queued_tx","queued_at","executed_tx","executed_at","canceled_tx","canceled_at","timelock_operation_id","reconciled_at","description","actions","params_at_creation","timelock"]},"ListVotesResponseDto":{"type":"object","properties":{"totalCount":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"chain_id":{"type":"number"},"block_number":{"type":"number"},"log_index":{"type":"number"},"deployment":{"type":"string"},"proposal_id":{"type":"string"},"voter":{"type":"string"},"support":{"oneOf":[{"type":"number","minimum":0,"maximum":0},{"type":"number","minimum":1,"maximum":1},{"type":"number","minimum":2,"maximum":2}]},"weight":{"type":"string"},"reason":{"type":"string"},"params":{"type":"string","nullable":true},"tx_hash":{"type":"string"},"voted_at":{"type":"string"}},"required":["chain_id","block_number","log_index","deployment","proposal_id","voter","support","weight","reason","params","tx_hash","voted_at"]}}},"required":["totalCount","items"]},"ListDelegatesResponseDto":{"type":"object","properties":{"totalCount":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"deployment":{"type":"string"},"address":{"type":"string"},"voting_power":{"type":"string"},"delegator_count":{"type":"number"},"is_blacklisted":{"type":"boolean"},"last_event_block":{"type":"number"},"reconciled_at":{"type":"string","nullable":true}},"required":["deployment","address","voting_power","delegator_count","is_blacklisted","last_event_block","reconciled_at"]}}},"required":["totalCount","items"]},"DelegateDetailResponseDto":{"type":"object","properties":{"deployment":{"type":"string"},"address":{"type":"string"},"voting_power":{"type":"string"},"delegator_count":{"type":"number"},"is_blacklisted":{"type":"boolean"},"last_event_block":{"type":"number"},"reconciled_at":{"type":"string","nullable":true}},"required":["deployment","address","voting_power","delegator_count","is_blacklisted","last_event_block","reconciled_at"]},"ListDelegatorsResponseDto":{"type":"object","properties":{"totalCount":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"deployment":{"type":"string"},"delegator":{"type":"string"},"delegate":{"type":"string","nullable":true},"updated_block":{"type":"number"},"updated_at":{"type":"string"},"updated_tx":{"type":"string","nullable":true}},"required":["deployment","delegator","delegate","updated_block","updated_at","updated_tx"]}}},"required":["totalCount","items"]},"AccountResponseDto":{"type":"object","properties":{"delegator":{"type":"object","properties":{"deployment":{"type":"string"},"delegator":{"type":"string"},"delegate":{"type":"string","nullable":true},"updated_block":{"type":"number"},"updated_at":{"type":"string"},"updated_tx":{"type":"string","nullable":true}},"required":["deployment","delegator","delegate","updated_block","updated_at","updated_tx"],"nullable":true},"delegate":{"type":"object","properties":{"deployment":{"type":"string"},"address":{"type":"string"},"voting_power":{"type":"string"},"delegator_count":{"type":"number"},"is_blacklisted":{"type":"boolean"},"last_event_block":{"type":"number"},"reconciled_at":{"type":"string","nullable":true}},"required":["deployment","address","voting_power","delegator_count","is_blacklisted","last_event_block","reconciled_at"],"nullable":true},"votesCast":{"type":"number"}},"required":["delegator","delegate","votesCast"]},"MetricsResponseDto":{"type":"object","properties":{"deployment":{"type":"string"},"total_supply":{"type":"string"},"disenfranchised_supply":{"type":"string"},"delegated_supply":{"type":"string"},"quorum_current":{"type":"string","nullable":true},"unique_voters":{"type":"number"},"updated_at":{"type":"string"},"proposalsCount":{"type":"number"},"delegatesCount":{"type":"number"}},"required":["deployment","total_supply","disenfranchised_supply","delegated_supply","quorum_current","unique_voters","updated_at","proposalsCount","delegatesCount"]},"StatusResponseDto":{"type":"object","properties":{"deployment":{"type":"string"},"chainId":{"type":"number"},"headBlock":{"type":"number"},"minIndexedBlock":{"type":"number"},"lagBlocks":{"type":"number"},"isSynced":{"type":"boolean"},"syncedPercentage":{"type":"number"},"lastCycleStartedAt":{"type":"string","nullable":true},"lastCycleFinishedAt":{"type":"string","nullable":true},"lastCycleMs":{"type":"number","nullable":true},"lastError":{"type":"string","nullable":true},"updatedAt":{"type":"string"}},"required":["deployment","chainId","headBlock","minIndexedBlock","lagBlocks","isSynced","syncedPercentage","lastCycleStartedAt","lastCycleFinishedAt","lastCycleMs","lastError","updatedAt"]},"PublicHardwareServerDto":{"type":"object","properties":{"isHealthy":{"type":"boolean","description":"Whether the server is reported healthy. Always true on the public response (PROD-1305 product decision), including for placeholder rows of servers that are declared but not linked yet","example":true}},"required":["isHealthy"]},"PublicHardwareViewDto":{"type":"object","properties":{"servers":{"description":"One entry per server the loan declares: padded with placeholder rows when fewer are linked, truncated when more are","type":"array","items":{"$ref":"#/components/schemas/PublicHardwareServerDto"}}},"required":["servers"]},"TvlResponseDto":{"type":"object","properties":{"tvl":{"description":"TVL value in USD","type":"number"},"usdaiTvl":{"description":"USDAI TVL","type":"number"},"sUsdaiTvl":{"description":"sUSDai TVL","type":"number"},"mintedUsdai":{"description":"Total minted USDai (totalSupply + bridgedSupply)","type":"number"},"stablecoinReserves":{"description":"Stablecoin + M0 reserves bag (USDC/USDT/PYUSD/wM across USDai, sUSDai, queue)","type":"number"},"loansReserves":{"description":"Active loans principal (LoanRouter + V2)","type":"number"},"updatedAt":{"description":"ISO-8601 UTC timestamp of the TVL snapshot","type":"string","format":"date-time"}},"required":["tvl","usdaiTvl","sUsdaiTvl","mintedUsdai","stablecoinReserves","loansReserves","updatedAt"]},"ToplineResponseDto":{"type":"object","properties":{"asOf":{"description":"ISO timestamp — when this snapshot was assembled; every figure shares it","type":"string"},"tvl":{"description":"Same shape as /usdai/dashboard/tvl; null if the figure failed to compute","type":"object","properties":{"tvl":{"type":"number"},"usdaiTvl":{"type":"number"},"sUsdaiTvl":{"type":"number"},"mintedUsdai":{"type":"number"},"stablecoinReserves":{"type":"number"},"loansReserves":{"type":"number"},"updatedAt":{"type":"string"}},"required":["tvl","usdaiTvl","sUsdaiTvl","mintedUsdai","stablecoinReserves","loansReserves","updatedAt"],"nullable":true},"apy":{"description":"Gross staking APY with bucket breakdown; null if the figure failed to compute","type":"object","properties":{"gross":{"type":"number"},"grossApyByBucket":{"type":"object","properties":{"stablecoins":{"type":"number"},"active":{"type":"number"},"escrowed":{"type":"number"}},"required":["stablecoins","active","escrowed"]}},"required":["gross","grossApyByBucket"],"nullable":true},"netApy":{"type":"number","nullable":true},"chipHurdle":{"description":"The CHIP Hurdle Rate quoted in net APY's place: `netApy` floored at `minimum`, with `active` true while CHIP is capitalizing the difference. Always present — `minimum` is the governed floor even when `netApy` failed to compute.","type":"object","properties":{"minimum":{"description":"The CHIP-governed floor, in percent","type":"number"},"rate":{"description":"Net APY floored at `minimum`; null when net APY could not be computed","type":"number","nullable":true},"active":{"description":"True while CHIP is capitalizing the shortfall up to the floor","type":"boolean","nullable":true}},"required":["minimum","rate","active"]},"totalOriginatedVolume":{"description":"Same shape as /usdai/dashboard/total-originated-volume","type":"object","properties":{"total":{"type":"number"},"asOf":{"type":"integer"}},"required":["total","asOf"],"nullable":true},"yieldCounter":{"description":"Same shape as the yieldCounter field of /usdai/dashboard; null before its crons first run","type":"object","properties":{"yesterdayCumulative":{"type":"string"},"todayDelta":{"type":"string"},"yieldPerSecond":{"type":"string"},"capturedAt":{"type":"string"}},"required":["yesterdayCumulative","todayDelta","yieldPerSecond","capturedAt"],"nullable":true}},"required":["asOf","tvl","apy","netApy","chipHurdle","totalOriginatedVolume","yieldCounter"]},"TotalYieldRepaidResponseDto":{"type":"object","properties":{"total":{"description":"Cumulative yield repaid, USD","type":"number"},"asOf":{"description":"Unix seconds — when this snapshot was computed","type":"integer"}},"required":["total","asOf"]},"TotalOriginatedVolumeResponseDto":{"type":"object","properties":{"total":{"description":"Total lifetime deployed, USD: cumulative principal originated + escrow capital not yet lent","type":"number"},"asOf":{"description":"Unix seconds — when this snapshot was computed","type":"integer"}},"required":["total","asOf"]},"SUsdaiRedemptionsQueueResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"redemptionId":{"description":"Integer counter","type":"integer"},"controller":{"description":"0x… lowercased","type":"string"},"owner":{"description":"0x… lowercased","type":"string"},"sender":{"description":"0x… lowercased","type":"string"},"requestedShares":{"description":"18-decimal applied","type":"number"},"pendingShares":{"description":"18-decimal applied — onchain value, authoritative","type":"number"},"redeemableShares":{"description":"18-decimal applied — onchain","type":"number"},"withdrawableAmount":{"description":"18-decimal applied, USDai units","type":"number"},"sharesAhead":{"description":"18-decimal applied — onchain queue position","type":"number"},"fulfilledShares":{"description":"18-decimal applied — subgraph cumulative","type":"number"},"fulfilledAmount":{"description":"18-decimal applied, USDai units — subgraph cumulative","type":"number"},"requestedAtTimestamp":{"description":"Unix seconds","type":"integer"},"requestTxHash":{"description":"0x… transaction hash","type":"string"}},"required":["redemptionId","controller","owner","sender","requestedShares","pendingShares","redeemableShares","withdrawableAmount","sharesAhead","fulfilledShares","fulfilledAmount","requestedAtTimestamp","requestTxHash"]}},"totals":{"type":"object","properties":{"pendingShares":{"description":"18-decimal applied — onchain redemptionQueueInfo().pending","type":"number"},"balance":{"description":"18-decimal applied, USDai units — onchain serviced & ready","type":"number"},"head":{"description":"Integer counter","type":"integer"},"tail":{"description":"Integer counter","type":"integer"},"queueIndex":{"description":"Integer counter","type":"integer"}},"required":["pendingShares","balance","head","tail","queueIndex"]},"asOf":{"description":"Unix seconds — when snapshot was computed","type":"integer"}},"required":["items","totals","asOf"]},"RedemptionTargetPeriodsResponseDto":{"type":"object","properties":{"periods":{"type":"array","items":{"type":"object","properties":{"redemptionTimestamp":{"description":"Eligibility date this period opened for (contract redemptionTimestamp)","type":"integer"},"redemptionTimestamps":{"description":"Request lookup keys: every eligibility date mapped to this period, including dates passed before it was serviced","type":"array","items":{"type":"integer"}},"targetTimestamp":{"description":"Redemption eligibility plus two hours, in unix seconds","type":"integer"},"anchorTimestamp":{"description":"Unix seconds used as the simple-interest period start","type":"integer"},"anchorBlockNumber":{"description":"Block supplying the anchor depositSharePrice","type":"integer"},"anchorBlockTimestamp":{"description":"Timestamp of the anchor block","type":"integer"},"anchorPriceBoundary":{"description":"Exact historical-state boundary used for the anchor price","type":"string","enum":["first-block-at-or-after","servicing-block-end"]},"anchorDepositSharePrice":{"description":"Unsigned 18-decimal integer string","type":"string","pattern":"^\\d+$"},"hurdleSharePrice":{"description":"Fixed 7% simple-annual depositSharePrice hurdle","type":"string","pattern":"^\\d+$"},"hurdleStatus":{"description":"Only the deposit-price hurdle is fixed for the period","type":"string","enum":["fixed"]},"expectedSharePrice":{"description":"Unsigned 18-decimal integer string","type":"string","pattern":"^\\d+$","nullable":true},"projectedDepositSharePrice":{"description":"Unsigned 18-decimal integer string","type":"string","pattern":"^\\d+$","nullable":true},"projectedRedemptionSharePrice":{"description":"Unsigned 18-decimal integer string","type":"string","pattern":"^\\d+$","nullable":true},"assumedDonationSharePrice":{"description":"Unsigned 18-decimal integer string","type":"string","pattern":"^\\d+$","nullable":true},"projectionBoundary":{"description":"Chain state projected to targetTimestamp; null when the provider cannot project it","type":"string","enum":["finalized-state-projected-to-target","last-block-before-target"],"nullable":true},"projectionBlockNumber":{"type":"integer","nullable":true},"projectionBlockTimestamp":{"type":"integer","nullable":true},"servicedAtTimestamp":{"type":"integer","nullable":true},"servicingTransactionHash":{"type":"string","nullable":true}},"required":["redemptionTimestamp","redemptionTimestamps","targetTimestamp","anchorTimestamp","anchorBlockNumber","anchorBlockTimestamp","anchorPriceBoundary","anchorDepositSharePrice","hurdleSharePrice","hurdleStatus","expectedSharePrice","projectedDepositSharePrice","projectedRedemptionSharePrice","assumedDonationSharePrice","projectionBoundary","projectionBlockNumber","projectionBlockTimestamp","servicedAtTimestamp","servicingTransactionHash"]}},"asOf":{"description":"Latest chain-head timestamp used by this replay","type":"integer"}},"required":["periods","asOf"]},"SUsdaiExpectedSharePriceResponseDto":{"type":"object","properties":{"expectedSharePrice":{"description":"Donation-adjusted redemption estimate as an 18-decimal integer string","type":"string","pattern":"^\\d+$","nullable":true}},"required":["expectedSharePrice"]},"FutureYieldPaymentsResponseDto":{"type":"object","properties":{"payments":{"description":"Ascending by dueAt","type":"array","items":{"type":"object","properties":{"dueAt":{"description":"Unix seconds — scheduled payment date","type":"integer"},"loanTermsHash":{"description":"Canonical loan identifier, 0x… lowercased","type":"string"},"loanName":{"description":"Reserved; null in v1","type":"string","nullable":true},"borrower":{"description":"Borrower address, 0x… lowercased","type":"string"},"currency":{"type":"object","properties":{"address":{"description":"ERC-20 address, lowercased","type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer"}},"required":["address","symbol","decimals"]},"interestAmount":{"description":"Decimal value with currency.decimals applied","type":"number"},"principalAmount":{"description":"Decimal value; per-window principal repayment (amortized or equal-installment), 0 only on an interest-only stub window; the final window sweeps the remaining balance","type":"number"},"paymentIndex":{"description":"0-based payment index within the loan's schedule","type":"integer"},"paymentsTotal":{"type":"integer"},"isFinalPayment":{"type":"boolean"}},"required":["dueAt","loanTermsHash","loanName","borrower","currency","interestAmount","principalAmount","paymentIndex","paymentsTotal","isFinalPayment"]}},"totals":{"type":"object","properties":{"byCurrency":{"description":"One entry per currency present in window, sorted by symbol","type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"decimals":{"type":"integer"},"interestAmount":{"type":"number"},"principalAmount":{"type":"number"}},"required":["symbol","decimals","interestAmount","principalAmount"]}},"paymentCount":{"type":"integer"},"loanCount":{"description":"Distinct loans contributing within window","type":"integer"}},"required":["byCurrency","paymentCount","loanCount"]},"asOf":{"description":"Unix seconds — when this snapshot was computed","type":"integer"}},"required":["payments","totals","asOf"]},"GetApyResponseDto":{"type":"object","properties":{"result":{"type":"number"},"grossApyByBucket":{"type":"object","properties":{"stablecoins":{"type":"number"},"active":{"type":"number"},"escrowed":{"type":"number"}},"required":["stablecoins","active","escrowed"]}},"required":["result","grossApyByBucket"]},"GetNetApyResponseDto":{"type":"object","properties":{"result":{"description":"CHIP Hurdle Rate — net staking APY floored at the governed minimum. Null when net APY could not be computed.","type":"number","nullable":true}},"required":["result"]},"UtilizationResponseDto":{"type":"object","properties":{"result":{"type":"number"}},"required":["result"]},"ProofOfReservesResponseDto":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["LEGACY_DEAL"]},"documentId":{"type":"string"},"name":{"type":"string"},"chain":{"type":"number"},"borrower":{"type":"string","nullable":true},"stage":{"type":"number","minimum":4,"maximum":4},"locationName":{"type":"string"},"locationLongitude":{"type":"number"},"locationLatitude":{"type":"number"},"amount":{"type":"string"},"remainingAmount":{"type":"string","nullable":true},"totalAmount":{"type":"string","nullable":true},"totalRemainingAmount":{"type":"string","nullable":true},"term":{"type":"number"},"apr":{"type":"number"},"baseRate":{"type":"number"},"share":{"type":"number"},"offTake":{"oneOf":[{"type":"number","minimum":0,"maximum":0},{"type":"number","minimum":1,"maximum":1},{"type":"number","minimum":2,"maximum":2}],"nullable":true},"group":{"type":"string","nullable":true},"hardware":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"percentage":{"type":"number"},"count":{"type":"number"}},"required":["name","percentage","count"]}},"escrow":{"type":"object","properties":{"type":{"type":"string","enum":["onchain","offchain"]},"amount":{"type":"string"},"apr":{"type":"number"},"originationDate":{"type":"number"},"manufacturer":{"type":"string","nullable":true},"netEscrow":{"type":"string","nullable":true},"escrowedOn":{"type":"number","nullable":true},"originationTxHash":{"type":"string","nullable":true}},"required":["type","amount","apr","originationDate","manufacturer","netEscrow","escrowedOn","originationTxHash"],"nullable":true},"pool":{"type":"string"}},"required":["type","documentId","name","chain","borrower","stage","locationName","locationLongitude","locationLatitude","amount","term","apr","offTake","pool"]},{"type":"object","properties":{"type":{"type":"string","enum":["TBILL"]},"name":{"type":"string"},"chain":{"type":"number"},"icon":{"type":"string"},"iconUrl":{"type":"string"},"reserveLink":{"type":"string"},"apy":{"type":"number"},"amount":{"type":"string"},"share":{"type":"number"}},"required":["type","name","chain","icon","iconUrl","reserveLink","apy","amount","share"]},{"type":"object","properties":{"type":{"type":"string","enum":["DEAL"]},"documentId":{"type":"string"},"name":{"type":"string"},"chain":{"type":"number"},"borrower":{"type":"string","nullable":true},"stage":{"oneOf":[{"type":"number","minimum":0,"maximum":0},{"type":"number","minimum":1,"maximum":1},{"type":"number","minimum":2,"maximum":2},{"type":"number","minimum":3,"maximum":3},{"type":"number","minimum":4,"maximum":4},{"type":"number","minimum":5,"maximum":5}]},"locationName":{"type":"string"},"locationLongitude":{"type":"number"},"locationLatitude":{"type":"number"},"amount":{"type":"string"},"remainingAmount":{"type":"string","nullable":true},"totalAmount":{"type":"string","nullable":true},"totalRemainingAmount":{"type":"string","nullable":true},"term":{"type":"number"},"apr":{"type":"number"},"baseRate":{"type":"number"},"share":{"type":"number"},"offTake":{"oneOf":[{"type":"number","minimum":0,"maximum":0},{"type":"number","minimum":1,"maximum":1},{"type":"number","minimum":2,"maximum":2}],"nullable":true},"group":{"type":"string","nullable":true},"hardware":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"percentage":{"type":"number"},"count":{"type":"number"}},"required":["name","percentage","count"]}},"escrow":{"type":"object","properties":{"type":{"type":"string","enum":["onchain","offchain"]},"amount":{"type":"string"},"apr":{"type":"number"},"originationDate":{"type":"number"},"manufacturer":{"type":"string","nullable":true},"netEscrow":{"type":"string","nullable":true},"escrowedOn":{"type":"number","nullable":true},"originationTxHash":{"type":"string","nullable":true}},"required":["type","amount","apr","originationDate","manufacturer","netEscrow","escrowedOn","originationTxHash"],"nullable":true}},"required":["type","documentId","name","chain","borrower","stage","locationName","locationLongitude","locationLatitude","amount","term","apr","offTake"]}]}},"LoansAprResponseDto":{"type":"object","additionalProperties":{"type":"number"}},"ExpectedApyResponseDto":{"type":"object","properties":{"result":{"type":"object","properties":{"projectedApy":{"type":"number"},"newDealsCapital":{"type":"number"},"detailedDeals":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["DEAL"]},"documentId":{"type":"string"},"name":{"type":"string"},"chain":{"type":"number"},"borrower":{"type":"string","nullable":true},"stage":{"oneOf":[{"type":"number","minimum":0,"maximum":0},{"type":"number","minimum":1,"maximum":1},{"type":"number","minimum":2,"maximum":2},{"type":"number","minimum":3,"maximum":3},{"type":"number","minimum":4,"maximum":4},{"type":"number","minimum":5,"maximum":5}]},"locationName":{"type":"string"},"locationLongitude":{"type":"number"},"locationLatitude":{"type":"number"},"amount":{"type":"string"},"remainingAmount":{"type":"string","nullable":true},"totalAmount":{"type":"string","nullable":true},"totalRemainingAmount":{"type":"string","nullable":true},"term":{"type":"number"},"apr":{"type":"number"},"baseRate":{"type":"number"},"share":{"type":"number"},"offTake":{"oneOf":[{"type":"number","minimum":0,"maximum":0},{"type":"number","minimum":1,"maximum":1},{"type":"number","minimum":2,"maximum":2}],"nullable":true},"group":{"type":"string","nullable":true},"hardware":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"percentage":{"type":"number"},"count":{"type":"number"}},"required":["name","percentage","count"]}},"escrow":{"type":"object","properties":{"type":{"type":"string","enum":["onchain","offchain"]},"amount":{"type":"string"},"apr":{"type":"number"},"originationDate":{"type":"number"},"manufacturer":{"type":"string","nullable":true},"netEscrow":{"type":"string","nullable":true},"escrowedOn":{"type":"number","nullable":true},"originationTxHash":{"type":"string","nullable":true}},"required":["type","amount","apr","originationDate","manufacturer","netEscrow","escrowedOn","originationTxHash"],"nullable":true},"dealYield":{"type":"number"},"contributionToApy":{"type":"number"}},"required":["type","documentId","name","chain","borrower","stage","locationName","locationLongitude","locationLatitude","amount","term","apr","offTake","dealYield","contributionToApy"]}},"breakdown":{"type":"object","properties":{"active":{"type":"object","properties":{"amount":{"type":"number"},"count":{"type":"number"},"apy":{"type":"number"}},"required":["amount","count","apy"]},"committed":{"type":"object","properties":{"amount":{"type":"number"},"count":{"type":"number"},"apy":{"type":"number"}},"required":["amount","count","apy"]},"termSheetExecuted":{"type":"object","properties":{"amount":{"type":"number"},"count":{"type":"number"},"apy":{"type":"number"}},"required":["amount","count","apy"]},"escrowed":{"type":"object","properties":{"amount":{"type":"number"},"count":{"type":"number"},"apy":{"type":"number"}},"required":["amount","count","apy"]},"reserved":{"type":"object","properties":{"amount":{"type":"number"},"count":{"type":"number"},"apy":{"type":"number"}},"required":["amount","count","apy"]}},"required":["active","committed","termSheetExecuted","escrowed","reserved"]},"pyusd":{"type":"object","properties":{"amount":{"type":"number"},"apy":{"type":"number"},"contributionToApy":{"type":"number"}},"required":["amount","apy","contributionToApy"]}},"required":["projectedApy","newDealsCapital","detailedDeals","breakdown","pyusd"],"nullable":true}},"required":["result"]},"LoanSnapshotResponseDto":{"type":"object","properties":{"current":{"description":"Active loans only","type":"object","properties":{"deployed":{"description":"Sum of principal (USD)","type":"number"},"wavgRate":{"description":"Principal-weighted APY (fraction)","type":"number"},"ltv":{"description":"Principal / collateralValue (fraction)","type":"number"}},"required":["deployed","wavgRate","ltv"]},"allTime":{"description":"All loans ever originated","type":"object","properties":{"deployed":{"description":"Sum of principal (USD)","type":"number"},"wavgRate":{"description":"Principal-weighted APY (fraction)","type":"number"},"ltv":{"description":"Principal / collateralValue (fraction)","type":"number"}},"required":["deployed","wavgRate","ltv"]},"asOf":{"description":"Unix seconds — when this was computed","type":"integer"},"hardwareFinanced":{"description":"Total GPU count across every loan with a telemetry asset mapping — sum of per-asset GPU health entries","type":"integer"}},"required":["current","allTime","asOf","hardwareFinanced"]},"DefaultRateResponseDto":{"type":"object","properties":{"rate":{"description":"Default rate as fraction (0..1) — FE multiplies by 100 for %","type":"number"},"defaulted":{"description":"Count of qualifying loans with ≥1 LoanLiquidated event","type":"integer"},"total":{"description":"Count of qualifying loans (same set as Originated KPI)","type":"integer"},"asOf":{"description":"Unix seconds — when this was computed","type":"integer"}},"required":["rate","defaulted","total","asOf"]},"DashboardResponseDto":{"type":"object","properties":{"tvlHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"usdaiTvlHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"sUsdaiTvlHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"stablecoinReservesHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"loansReservesHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"apyHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"netApyHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"utilizationHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"mintedUsdaiHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"stakedUsdaiHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"yieldCounter":{"type":"object","properties":{"yesterdayCumulative":{"type":"string"},"todayDelta":{"type":"string"},"yieldPerSecond":{"type":"string"},"capturedAt":{"type":"string","format":"date-time"}},"required":["yesterdayCumulative","todayDelta","yieldPerSecond","capturedAt"],"nullable":true},"tradingVolumes":{"type":"object","properties":{"usdai":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"volume":{"type":"string"},"transferCount":{"type":"string"}},"required":["date","timestamp","volume","transferCount"]}},"susdai":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"volume":{"type":"string"},"transferCount":{"type":"string"}},"required":["date","timestamp","volume","transferCount"]}}},"required":["usdai","susdai"]},"YTDTV":{"type":"object","properties":{"usdai":{"type":"object","properties":{"volume":{"type":"string"},"transferCount":{"type":"string"},"startTimestamp":{"type":"string","format":"date-time"}},"required":["volume","transferCount","startTimestamp"]},"susdai":{"type":"object","properties":{"volume":{"type":"string"},"transferCount":{"type":"string"},"startTimestamp":{"type":"string","format":"date-time"}},"required":["volume","transferCount","startTimestamp"]}},"required":["usdai","susdai"]}},"required":["tvlHistory","usdaiTvlHistory","sUsdaiTvlHistory","stablecoinReservesHistory","loansReservesHistory","apyHistory","netApyHistory","utilizationHistory","mintedUsdaiHistory","stakedUsdaiHistory","yieldCounter","tradingVolumes","YTDTV"]},"ProtocolAlignmentsResponseDto":{"type":"object","properties":{"usdai_alignment":{"type":"number"},"susdai_alignment":{"type":"number"}},"required":["usdai_alignment","susdai_alignment"]},"TotalAlloResponseDto":{"type":"object","properties":{"total":{"type":"number"}},"required":["total"]},"GetIntegrationsDataDto":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"oneOf":[{"type":"string","enum":["ERC20"]},{"type":"string","enum":["LP_ERC20"]},{"type":"string","enum":["VAULT"]},{"type":"string","enum":["MORPHO_MARKET"]}]},"balance":{"type":"number","nullable":true},"apy":{"type":"number","nullable":true},"usdPrice":{"type":"number","nullable":true}},"required":["type","balance","apy","usdPrice"]}},"GetRatesDto":{"type":"object","additionalProperties":{"type":"number"}},"GetWalletDto":{"type":"object","properties":{"wallet":{"description":"Wallet data","type":"object","properties":{"address":{"description":"Wallet address","type":"string"},"inviteUsed":{"description":"Invite used","type":"object","properties":{"code":{"description":"Invite code","type":"string"},"owner":{"description":"Invite owner","type":"string","nullable":true},"percentage":{"description":"Invite percentage","type":"number"}},"required":["code","owner","percentage"],"nullable":true},"invite":{"description":"Wallet invite","type":"object","properties":{"code":{"description":"Invite code","type":"string"},"percentage":{"description":"Invite percentage","type":"number"}},"required":["code","percentage"]},"team":{"type":"array","items":{"description":"Team member","type":"object","properties":{"address":{"description":"Team member address","type":"string"},"xp":{"description":"Team member XP","type":"number"},"alignment":{"description":"Team member alignment","type":"string","enum":["ICO","Airdrop"],"nullable":true}},"required":["address","xp","alignment"]}},"isKycVerified":{"description":"KYC verified","type":"boolean"}},"required":["address","inviteUsed","invite","team","isKycVerified"],"nullable":true},"xpState":{"description":"XP state","type":"object","properties":{"xp":{"type":"object","additionalProperties":{"type":"number"}},"totalXp":{"description":"Total XP","type":"number"},"inviteXp":{"description":"Invite XP","type":"number"},"rank":{"description":"Wallet rank","type":"number"},"qualifiedWallets":{"description":"Qualified wallets","type":"number"},"icoXp":{"description":"ICO XP (Season 1 only)","type":"number"},"airdropXp":{"description":"Airdrop XP (Season 1 only)","type":"number"},"noAlignmentXp":{"description":"No alignment XP (Season 1 only)","type":"number"},"alignment":{"description":"Wallet alignment (Season 1 only)","type":"string","enum":["ICO","Airdrop"],"nullable":true},"alignmentPercentage":{"description":"Wallet alignment percentage (Season 1 only)","type":"number"}},"required":["xp","totalXp","inviteXp","rank","qualifiedWallets"],"nullable":true}},"required":["wallet","xpState"]},"YieldpassMarketAccountMetricsResponseDto":{"type":"object","properties":{"nodesDeposited":{"type":"number"},"ypBalanceIncLp":{"type":"number"},"tokensBorrowed":{"type":"number"}},"required":["nodesDeposited","ypBalanceIncLp","tokensBorrowed"]},"GetWhitelistedEidsResponseDto":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"boolean"}}},"GetLeaderboardDto":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"xp":{"type":"number"},"qualifiedMembers":{"type":"number"},"rank":{"type":"number"},"invitedBy":{"type":"string","nullable":true},"alignment":{"type":"string","enum":["ICO","Airdrop"],"nullable":true}},"required":["address","xp","qualifiedMembers","rank","invitedBy","alignment"]}},"GetAlignmentLeaderboardsDto":{"type":"object","properties":{"ICO":{"type":"object","properties":{"leaderboard":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"xp":{"type":"number"}},"required":["address","xp"]}},"count":{"type":"number"},"totalXp":{"type":"number"}},"required":["leaderboard","count","totalXp"]},"Airdrop":{"type":"object","properties":{"leaderboard":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"xp":{"type":"number"}},"required":["address","xp"]}},"count":{"type":"number"},"totalXp":{"type":"number"}},"required":["leaderboard","count","totalXp"]}},"required":["ICO","Airdrop"]},"GetReferralLeaderboardDto":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"number"},"address":{"type":"string"},"qualifiedWallets":{"type":"number"}},"required":["rank","address","qualifiedWallets"]}}},"GetTotalWalletsDto":{"type":"object","properties":{"totalWallets":{"type":"number"}},"required":["totalWallets"]},"LoginRequestBodyDto":{"type":"object","properties":{"inviteCode":{"description":"Invite code used in case of signup","type":"string"}}},"IsCodeAvailableResponseDto":{"type":"object","properties":{"isAvailable":{"type":"boolean"},"percentage":{"type":"number"}},"required":["isAvailable","percentage"]},"CurrencyDto":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"}},"required":["address","symbol","decimals"]},"RepaymentDto":{"type":"object","properties":{"interval":{"type":"number","description":"1-based interval number"},"dueAt":{"type":"number","description":"Unix seconds"},"principal":{"type":"string","description":"Raw token units (string-encoded bigint)"},"interest":{"type":"string","description":"Raw token units (string-encoded bigint)"},"total":{"type":"string","description":"Raw token units (string-encoded bigint)"},"remainingBalance":{"type":"string","description":"Raw token units (string-encoded bigint)"}},"required":["interval","dueAt","principal","interest","total","remainingBalance"]},"CoveragePointDto":{"type":"object","properties":{"month":{"type":"string"},"atSec":{"type":"number","description":"Unix seconds, first-of-month"},"debtBalance":{"type":"number"},"effectiveNetPayout":{"type":"number"},"coverage":{"type":"number","description":"effectiveNetPayout/debtBalance ratio"}},"required":["month","atSec","debtBalance","effectiveNetPayout","coverage"]},"LoanScheduleResponseDto":{"type":"object","properties":{"loanId":{"type":"string"},"chainId":{"type":"number"},"status":{"type":"number","description":"LoanStatusV2 enum: 0=Uninitialized, 1=Active, 2=Repaid, 3=Breached, 4=Liquidated, 5=CollateralLiquidated"},"currency":{"$ref":"#/components/schemas/CurrencyDto"},"totalIntervals":{"type":"number"},"principalPerInterval":{"type":"string","description":"Raw token units (string-encoded bigint)"},"totalPrincipal":{"type":"string","description":"Raw token units (string-encoded bigint)"},"totalInterest":{"type":"string","description":"Raw token units (string-encoded bigint)"},"repaymentInterval":{"type":"number","description":"Seconds between repayments"},"repayments":{"type":"array","items":{"$ref":"#/components/schemas/RepaymentDto"}},"asOf":{"type":"number","description":"Unix seconds, when schedule was computed"},"coverage":{"description":"BARKR insurance coverage ratio per month. Absent when the loan has no barkrInsurance data — FE draws no line.","type":"array","items":{"$ref":"#/components/schemas/CoveragePointDto"}}},"required":["loanId","chainId","status","currency","totalIntervals","principalPerInterval","totalPrincipal","totalInterest","repaymentInterval","repayments","asOf"]},"NextRedemptionResponseDto":{"type":"object","properties":{"nextRedemptionDate":{"description":"ISO-8601 UTC timestamp of the next sUSDai redemption processing time. A redemption requested before this timestamp is processed at it; one requested after it rolls into the following 30-day window.","type":"string"}},"required":["nextRedemptionDate"]},"RedemptionScheduleResponseDto":{"type":"object","properties":{"redemptionDates":{"description":"Ascending ISO-8601 UTC processing dates, starting with the next one, spaced exactly 30 days apart.","type":"array","items":{"type":"string"}}},"required":["redemptionDates"]},"GetRWAQuoteResponseDto":{"type":"object","properties":{"quote":{"type":"object","properties":{"token":{"type":"string"},"startTokenId":{"type":"integer","format":"int64"},"endTokenId":{"type":"integer","format":"int64"},"currency":{"type":"string"},"price":{"type":"integer","format":"int64"},"timestamp":{"type":"integer","format":"int64"},"duration":{"type":"integer","format":"int64"}},"required":["token","startTokenId","endTokenId","currency","price","timestamp","duration"]},"signature":{"type":"string"},"prices":{"type":"array","items":{"type":"object","properties":{"currentPrice":{"type":"number"},"maturityPrice":{"type":"number"},"originalPrice":{"type":"number"}},"required":["currentPrice","maturityPrice","originalPrice"]}}},"required":["quote","signature","prices"]},"GetRwaQuotesBodyDto":{"type":"array","items":{"type":"object","properties":{"startTokenId":{"oneOf":[{"type":"number"},{"type":"string"}]},"endTokenId":{"oneOf":[{"type":"number"},{"type":"string"}]},"collectionId":{"type":"string"},"currencyId":{"type":"string"},"chainId":{"type":"number"}},"required":["startTokenId","endTokenId","collectionId","currencyId","chainId"]}},"GetRWAQuotesResponseDto":{"type":"array","items":{"type":"object","properties":{"quote":{"type":"object","properties":{"token":{"type":"string"},"startTokenId":{"type":"integer","format":"int64"},"endTokenId":{"type":"integer","format":"int64"},"currency":{"type":"string"},"price":{"type":"integer","format":"int64"},"timestamp":{"type":"integer","format":"int64"},"duration":{"type":"integer","format":"int64"}},"required":["token","startTokenId","endTokenId","currency","price","timestamp","duration"]},"signature":{"type":"string"},"prices":{"type":"array","items":{"type":"object","properties":{"currentPrice":{"type":"number"},"maturityPrice":{"type":"number"},"originalPrice":{"type":"number"}},"required":["currentPrice","maturityPrice","originalPrice"]}}},"required":["quote","signature","prices"]}},"GetIntegrationsResponseDto":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"integrationName":{"type":"string","nullable":true},"protocol":{"type":"string","enum":["USD.AI","CONCRETE","PENDLE","PENDLE-YT","CURVE","EULER","SILO","FLUID","BALANCER","PENPIE","EQUILIBRIA","GAMMA","GEARBOX","MORPHO","UNISWAP","CASE.FUN","AERODROME","SPECTRA","MAVERICK","KAMINO","JUPITER","EXPONENT"]},"network":{"type":"array","items":{"type":"string","enum":["BASE","ARBITRUM","ETHEREUM","PLASMA","ARC","SOLANA"]}},"type":{"type":"string","enum":["USD.AI","DEX","MM","Yield","Loop"]},"product":{"type":"string","enum":["NATIVE","LP","YT","SUPPLY","VAULT","LOCKED"],"nullable":true},"alloRate":{"type":"number","nullable":true},"priced":{"type":"boolean"},"metadata":{"type":"object","properties":{"label":{"type":"string"},"alignment":{"type":"string","enum":["ICO","AIRDROP","NONE"],"nullable":true},"url":{"type":"string","nullable":true},"labelTooltip":{"type":"string","nullable":true},"alloRateTooltip":{"type":"string","nullable":true},"isHidden":{"type":"boolean"},"order":{"type":"number"},"displayOrder":{"type":"integer","minimum":0,"exclusiveMinimum":false,"nullable":true},"showInS1":{"type":"boolean"},"expirationDate":{"type":"string"},"alloRateLabel":{"type":"string"}},"required":["label","alignment","url","labelTooltip","alloRateTooltip","isHidden","order","displayOrder","showInS1"]}},"required":["id","integrationName","protocol","network","type","product","alloRate","priced","metadata"]}},"XpTransferDto":{"type":"object","properties":{"season":{"type":"integer","minimum":1,"exclusiveMinimum":false,"maximum":1000,"exclusiveMaximum":false},"source":{"type":"string","maxLength":64},"target":{"type":"string","maxLength":64},"signature":{"type":"string"}},"required":["season","source","target","signature"]},"WalletRiskResponseDto":{"type":"object","properties":{"isRisky":{"type":"boolean","description":"Whether the wallet address is considered risky based on TRM Labs screening (risk score >= 15)","example":false}},"required":["isRisky"]}}}}