{"openapi":"3.0.0","paths":{"/":{"get":{"operationId":"ApiV2Controller_getHello","parameters":[],"responses":{"200":{"description":""}},"tags":["ApiV2"]}},"/borrow/application/update-constants":{"post":{"operationId":"ApplicationController_","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_","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_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","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","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","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","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","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","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_","parameters":[{"name":"deployment","required":false,"in":"query","description":"Governance deployment. Defaults to CHIP_GOVERNANCE_ARBITRUM.","schema":{"enum":["CHIP_GOVERNANCE_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","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"]}},"/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/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_","parameters":[{"name":"address","required":true,"in":"path","description":"Wallet address","schema":{"type":"string"}}],"responses":{"200":{"description":"Wallet info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWalletDto"}}}}},"tags":["Wallet"]}},"/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_","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/dashboard/testnet/tvl":{"get":{"operationId":"DashboardController_","parameters":[],"responses":{"200":{"description":"Current TVL value from USDai and sUSDai contracts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TvlResponseDto"}}}}},"tags":["Dashboard"]}},"/usdai/dashboard/tvl":{"get":{"operationId":"DashboardController_","parameters":[],"responses":{"200":{"description":"Current TVL value from USDai and sUSDai contracts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TvlResponseDto"}}}}},"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":"Lifetime principal originated, summed across the LoanRouter and the two legacy v2 GPU-financing pools. 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.","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/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_","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_","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/utilization":{"get":{"operationId":"DashboardController_","parameters":[],"responses":{"200":{"description":"ration of staked usdai","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UtilizationResponseDto"}}}}},"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_","parameters":[],"responses":{"200":{"description":"Expected APY data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedApyResponseDto"}}}}},"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_","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/accounts-totals":{"get":{"operationId":"PublicController_getAccountsTotals","parameters":[{"name":"cursor","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/external/v1/reserves-summary":{"get":{"description":"Returns aggregated protocol metrics including staking APY, reserves breakdown, and loan details","operationId":"ExternalController_getReservesSummary","parameters":[],"responses":{"200":{"description":"Reserves summary with staking metrics, reserves breakdown, and loan details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservesSummaryResponseDto"}}}}},"summary":"Get reserves summary","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_","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_","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"]}},"/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":"/v2"}],"components":{"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"]},"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"}}},"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"]},"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"]},"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"]},"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":"Cumulative principal originated via LoanRouter, USD","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"]},"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"]},"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"]},"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"]}},"susdaiFmvHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"usdaiPriceHistory":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"string"}},"required":["timestamp","value"]}},"cumulativeYieldHistory":{"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","susdaiFmvHistory","usdaiPriceHistory","cumulativeYieldHistory","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"]},"ReservesSummaryResponseDto":{"type":"object","properties":{"staking_apy":{"type":"number"},"staking_ratio":{"type":"number"},"total_reserves":{"type":"number"},"cash_reserves":{"type":"number"},"loans_reserves":{"type":"number"},"active_loans":{"type":"array","items":{"type":"object","properties":{"loan_id":{"type":"string"},"asset_name":{"type":"string"},"amount":{"type":"number"},"term":{"type":"number"},"apr":{"type":"number"},"insurance":{"type":"number","nullable":true}},"required":["loan_id","asset_name","amount","term","apr","insurance"]}},"upcoming_loans":{"type":"array","items":{"type":"object","properties":{"loan_id":{"type":"string"},"asset_name":{"type":"string"},"amount":{"type":"number"},"term":{"type":"number"},"apr":{"type":"number"},"insurance":{"type":"number","nullable":true}},"required":["loan_id","asset_name","amount","term","apr","insurance"]}},"metadata":{"type":"object","properties":{"timestamp":{"type":"string"},"cached":{"type":"boolean"}},"required":["timestamp","cached"]}},"required":["staking_apy","staking_ratio","total_reserves","cash_reserves","loans_reserves","active_loans","upcoming_loans","metadata"]},"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"]},"network":{"type":"array","items":{"type":"string","enum":["BASE","ARBITRUM","ETHEREUM","PLASMA"]}},"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"]}},"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"]}}}}