{"openapi":"3.0.0","paths":{"/health/live":{"get":{"operationId":"HealthController_live","parameters":[],"responses":{"200":{"description":""}},"summary":"Process probe: dependency outages must not trigger task replacement.","tags":["Health"]}},"/health/status":{"get":{"operationId":"HealthController_check","parameters":[],"responses":{"200":{"description":"The Health Check is successful\n\nHealth check results","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"],"example":"ok"},"info":{"type":"object","example":{"database":{"status":"up","responseTime":12}},"additionalProperties":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["up","degraded","down"]},"responseTime":{"type":"number","description":"Time the health indicator took to respond, in ms"}},"additionalProperties":true},"nullable":true},"error":{"type":"object","example":{},"additionalProperties":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["up","degraded","down"]},"responseTime":{"type":"number","description":"Time the health indicator took to respond, in ms"}},"additionalProperties":true},"nullable":true},"details":{"type":"object","example":{"database":{"status":"up","responseTime":12}},"additionalProperties":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["up","degraded","down"]},"responseTime":{"type":"number","description":"Time the health indicator took to respond, in ms"}},"additionalProperties":true}}}}}}},"503":{"description":"The Health Check is not successful","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error","shutting_down"],"example":"error"},"info":{"type":"object","example":{"database":{"status":"up","responseTime":12}},"additionalProperties":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["up","degraded","down"]},"responseTime":{"type":"number","description":"Time the health indicator took to respond, in ms"}},"additionalProperties":true},"nullable":true},"error":{"type":"object","example":{"redis":{"status":"down","message":"Could not connect","responseTime":3005}},"additionalProperties":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["up","degraded","down"]},"responseTime":{"type":"number","description":"Time the health indicator took to respond, in ms"}},"additionalProperties":true},"nullable":true},"details":{"type":"object","example":{"database":{"status":"up","responseTime":12},"redis":{"status":"down","message":"Could not connect","responseTime":3005}},"additionalProperties":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["up","degraded","down"]},"responseTime":{"type":"number","description":"Time the health indicator took to respond, in ms"}},"additionalProperties":true}}}}}}}},"summary":"Check application health status","tags":["Health"]}},"/v1/notifications":{"get":{"operationId":"NotificationController_getNotifications_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Paginated notifications list"}},"security":[{"device-id":[]}],"summary":"Get paginated notifications for device","tags":["Notifications"]},"patch":{"operationId":"NotificationController_markAllAsRead_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"All notifications marked as read"}},"security":[{"device-id":[]}],"summary":"Mark all notifications as read","tags":["Notifications"]}},"/v1/notifications/{id}":{"get":{"operationId":"NotificationController_getNotification_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Notification ID","schema":{"type":"number"}}],"responses":{"200":{"description":"Notification details"}},"security":[{"device-id":[]}],"summary":"Get a single notification by ID","tags":["Notifications"]},"patch":{"operationId":"NotificationController_markAsRead_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Notification ID","schema":{"type":"number"}}],"responses":{"200":{"description":"Notification marked as read"},"404":{"description":"Notification not found"}},"security":[{"device-id":[]}],"summary":"Mark a notification as read","tags":["Notifications"]}},"/v1/platforms":{"get":{"operationId":"PlatformController_getPlatforms_v1","parameters":[{"name":"includeDisabled","required":false,"in":"query","description":"Include disabled platforms","schema":{"type":"boolean"}}],"responses":{"200":{"description":"List of platforms"}},"summary":"Get all platforms","tags":["Platforms"]}},"/v1/platforms/{id}/priority-fees":{"get":{"operationId":"PlatformController_getPriorityFees_v1","parameters":[{"name":"id","required":true,"in":"path","description":"Platform ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Priority fees data"},"404":{"description":"Platform not found"}},"summary":"Get priority fees for a platform","tags":["Platforms"]}},"/v1/platforms/{id}/estimate-fees":{"post":{"operationId":"PlatformController_estimateFees_v1","parameters":[{"name":"id","required":true,"in":"path","description":"Platform ID","schema":{"type":"string"}}],"responses":{"201":{"description":"Estimated fees"},"400":{"description":"Invalid EVM fee request"},"404":{"description":"Platform not found"}},"summary":"Estimate transaction fees for a platform","tags":["Platforms"]}},"/v1/tokens":{"get":{"operationId":"TokenController_getTokens_v1","parameters":[{"name":"offset","required":false,"in":"query","description":"Number of items to skip","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":200,"default":50,"type":"number"}},{"name":"platformId","required":false,"in":"query","description":"Platform ID to filter by","schema":{"type":"string"}},{"name":"tokenId","required":false,"in":"query","description":"Exact catalog token ID; combined with the other filters","schema":{"type":"string"}},{"name":"includeDisabled","required":false,"in":"query","description":"Include disabled tokens","schema":{"type":"boolean"}},{"name":"returnContracts","required":false,"in":"query","description":"Return token contracts instead of tokens","schema":{"type":"boolean"}},{"name":"nativeOnly","required":false,"in":"query","description":"Return only native tokens (no contract address)","schema":{"type":"boolean"}},{"name":"search","required":false,"in":"query","description":"Search tokens by symbol or name (prefix match)","schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of tokens or contracts"}},"summary":"Get tokens or token contracts","tags":["Tokens"]}},"/v1/token-imports":{"post":{"operationId":"TokenImportsController_importToken_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportTokenDto"}}}},"responses":{"201":{"description":"Token contract imported"},"400":{"description":"Invalid contract address, metadata method or platform selection"},"404":{"description":"Configured platform not found"},"502":{"description":"Malformed metadata response from RPC"},"503":{"description":"Metadata RPC temporarily unavailable"}},"security":[{"device-id":[]}],"summary":"Import a custom ERC20 token by contract address","tags":["Token Imports"]}},"/v1/devices":{"post":{"operationId":"DeviceController_addNewDevice_v1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDeviceDto"}}}},"responses":{"201":{"description":"Device registered successfully"}},"summary":"Register a new device","tags":["Devices"]}},"/v1/devices/current":{"put":{"operationId":"DeviceController_useDevice_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseDeviceDto"}}}},"responses":{"200":{"description":"Device usage recorded"}},"security":[{"device-id":[]}],"summary":"Mark device as active and check app version","tags":["Devices"]}},"/v1/wallet/addresses":{"post":{"operationId":"WalletController_saveWalletAddresses_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAddressListDto"}}}},"responses":{"201":{"description":"Addresses saved"}},"security":[{"device-id":[]}],"summary":"Save wallet addresses for device","tags":["Wallet"]}},"/v1/wallet/addresses/{address}/balances":{"get":{"operationId":"WalletController_getBalances_v1","parameters":[{"name":"address","required":true,"in":"path","description":"Wallet address","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"query","description":"Platform ID","schema":{"type":"string"}},{"name":"contracts","required":false,"in":"query","description":"Comma-separated token contract keys in tokenId:platformId format","schema":{"type":"string"}},{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Token balances"}},"security":[{"device-id":[]}],"summary":"Get token balances for an address","tags":["Wallet"]}},"/v1/wallet/addresses/{address}/nonce":{"get":{"operationId":"WalletController_getNonce_v1","parameters":[{"name":"address","required":true,"in":"path","description":"Wallet address","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"query","description":"Platform ID","schema":{"type":"string"}},{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Current nonce"}},"security":[{"device-id":[]}],"summary":"Get nonce for an address","tags":["Wallet"]}},"/v1/wallet/addresses/{address}/info":{"get":{"operationId":"WalletController_getAccountInfo_v1","parameters":[{"name":"address","required":true,"in":"path","description":"Wallet address","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"query","description":"Platform ID","schema":{"type":"string"}},{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Account info"}},"security":[{"device-id":[]}],"summary":"Get account info for an address","tags":["Wallet"]}},"/v1/wallet/addresses/{address}/staking":{"get":{"operationId":"WalletController_getNativeStaking_v1","parameters":[{"name":"address","required":true,"in":"path","description":"Wallet address","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"query","description":"Platform ID","schema":{"type":"string"}},{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Staking info"}},"security":[{"device-id":[]}],"summary":"Get native staking info for an address","tags":["Wallet"]}},"/v1/wallet/total-balance":{"get":{"operationId":"WalletController_getTotalBalance_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Total balance in USD"}},"security":[{"device-id":[]}],"summary":"Get total balance across all addresses","tags":["Wallet"]}},"/v1/wallet/blockhash":{"get":{"operationId":"WalletController_getLatestBlockhash_v1","parameters":[{"name":"platformId","required":true,"in":"query","description":"Platform ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Latest blockhash"},"404":{"description":"Blockhash not found"}},"security":[{"device-id":[]}],"summary":"Get latest blockhash (Solana)","tags":["Wallet"]}},"/v1/tx/history/{txId}":{"get":{"operationId":"TxController_getTransactionDetailsV2_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"address","required":true,"in":"query","description":"Wallet address","schema":{"type":"string"}},{"name":"txId","required":true,"in":"path","description":"Transaction ID","schema":{"type":"number"}}],"responses":{"200":{"description":"Transaction receipt"},"404":{"description":"Transaction not found"}},"security":[{"device-id":[]}],"summary":"Get transaction receipt by ID","tags":["Transactions"]}},"/v1/tx/history":{"get":{"operationId":"TxController_getTransactionsHistory_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"address","required":false,"in":"query","description":"Wallet address","schema":{"type":"string"}},{"name":"tokenId","required":false,"in":"query","description":"Token ID","schema":{"type":"string"}},{"name":"platformId","required":false,"in":"query","description":"Platform ID","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","description":"Transaction type filter","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","description":"Number of items to skip","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":200,"default":50,"type":"number"}}],"responses":{"200":{"description":"Paginated transaction history"}},"security":[{"device-id":[]}],"summary":"Get transaction history","tags":["Transactions"]}},"/v1/tx/max-amount":{"post":{"operationId":"TxController_maxAmount_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaxAmountDto"}}}},"responses":{"201":{"description":"Max amount and estimated fee"},"400":{"description":"Invalid request or TX_PREPARATION_FAILED with reason insufficient_funds/reverted"},"502":{"description":"EVM preparation may return TX_PREPARATION_FAILED with reason invalid_response"},"503":{"description":"EVM preparation may return TX_PREPARATION_FAILED with reason unavailable; authentication/admission failures retain their own variants"}},"security":[{"device-id":[]}],"summary":"Calculate max sendable amount","tags":["Transactions"]}},"/v1/tx/build":{"post":{"operationId":"TxController_buildTransaction_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildTransactionDto"}}}},"responses":{"201":{"description":"Built unsigned transaction"},"400":{"description":"Invalid request or TX_PREPARATION_FAILED with reason insufficient_funds/reverted"},"502":{"description":"EVM preparation may return TX_PREPARATION_FAILED with reason invalid_response"},"503":{"description":"EVM preparation may return TX_PREPARATION_FAILED with reason unavailable; authentication/admission failures retain their own variants"}},"security":[{"device-id":[]}],"summary":"Build an unsigned transaction","tags":["Transactions"]}},"/v1/tx/submit":{"post":{"operationId":"TxController_submitTransaction_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitExecutionDto"}}}},"responses":{"200":{"description":"Transaction submitted"}},"security":[{"device-id":[]}],"summary":"Submit a signed transaction","tags":["Transactions"]}},"/v1/tx/executions":{"get":{"operationId":"TxExecutionController_list_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Discover owned operations and their network execution statuses","tags":["Transactions"]}},"/v1/tx/executions/{executionId}":{"get":{"operationId":"TxExecutionController_get_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Read persisted evidence for one owned execution","tags":["Transactions"]}},"/v1/tx/operations/{operationId}":{"get":{"operationId":"TxExecutionController_operation_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"operationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Read an operation and its current generations in the owned wallet","tags":["Transactions"]}},"/v1/tx/operations/{operationId}/close":{"post":{"operationId":"TxExecutionController_close_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"operationId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseOperationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Close an owned classic operation at its observed revision","tags":["Transactions"]}},"/v1/settings":{"get":{"operationId":"SettingsController_getSettings_v1","parameters":[],"responses":{"200":{"description":"Application settings"}},"summary":"Get application settings","tags":["Settings"]}},"/v1/settings/preferences":{"get":{"operationId":"SettingsController_getPreferences_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Device preferences"}},"security":[{"device-id":[]}],"summary":"Get device preferences","tags":["Settings"]},"put":{"operationId":"SettingsController_updatePreferences_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePreferencesDto"}}}},"responses":{"200":{"description":"Preferences updated"}},"security":[{"device-id":[]}],"summary":"Update device preferences","tags":["Settings"]}},"/v1/market/snapshot":{"get":{"operationId":"MarketController_getMarketSnapshot_v1","parameters":[],"responses":{"200":{"description":"Market snapshot data"}},"summary":"Get market snapshot with token prices","tags":["Market"]}},"/v1/market/momentum":{"get":{"operationId":"MarketController_getMomentum_v1","parameters":[],"responses":{"200":{"description":"Momentum data"}},"summary":"Get latest momentum snapshot with 7-day history","tags":["Market"]}},"/v1/market/top-movers":{"get":{"operationId":"MarketController_getTopMovers_v1","parameters":[],"responses":{"200":{"description":"Top movers list"}},"summary":"Get top movers by 24h price change","tags":["Market"]}},"/v1/swap/config":{"get":{"operationId":"SwapController_getConfig_v1","parameters":[],"responses":{"200":{"description":"Swap config"}},"security":[{"device-id":[]}],"summary":"Get swap client configuration","tags":["Swap"]}},"/v1/swap/quote":{"post":{"operationId":"SwapController_getQuote_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapQuoteDto"}}}},"responses":{"201":{"description":"Swap quote"}},"security":[{"device-id":[]}],"summary":"Get a swap quote","tags":["Swap"]}},"/v1/swap/build":{"post":{"operationId":"SwapController_buildTransaction_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapBuildDto"}}}},"responses":{"201":{"description":"Built swap transaction"}},"security":[{"device-id":[]}],"summary":"Build a swap transaction from a quote","tags":["Swap"]}},"/v1/swap/tokens":{"get":{"operationId":"SwapController_getAvailableTokens_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"discoveryMode","required":true,"in":"query","schema":{"type":"string","enum":["offers","direct_transaction"]}},{"name":"clientBuild","required":false,"in":"query","description":"Installed app full build","schema":{"type":"string"}},{"name":"fromChain","required":true,"in":"query","description":"Source chain platformId (e.g. \"ethereum\")","schema":{"type":"string"}},{"name":"fromToken","required":true,"in":"query","description":"Source token contract address or native token ID","schema":{"type":"string"}},{"name":"toChain","required":false,"in":"query","description":"Destination chain platformId filter (e.g. \"polygon-pos\")","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"Search by symbol or name prefix","schema":{"type":"string"}},{"name":"fromAddress","required":false,"in":"query","description":"Active source address used to authorize EVM deposit routes","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","description":"Pagination offset","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size","schema":{"minimum":1,"default":50,"type":"number"}}],"responses":{"200":{"description":"Available swap tokens"}},"security":[{"device-id":[]}],"summary":"Get available to-tokens for a given from-token","tags":["Swap"]}},"/v1/swap/orders":{"get":{"operationId":"SwapController_getOrders_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"executionKind","required":false,"in":"query","schema":{"type":"string","enum":["protocol_order"]}},{"name":"trackingVersion","required":false,"in":"query","schema":{"type":"string","enum":["1"]}},{"name":"limit","required":true,"in":"query","schema":{"minimum":1,"maximum":50,"default":20,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","schema":{"maxLength":512,"type":"string"}},{"name":"fromChain","required":false,"in":"query","schema":{"maxLength":128,"type":"string"}},{"name":"fromAddress","required":false,"in":"query","schema":{"pattern":"^0x[0-9a-f]{40}$","type":"string"}},{"name":"accountMode","required":false,"in":"query","schema":{"type":"string","enum":["eoa","smart_account"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["Swap"]}},"/v1/swap/status":{"get":{"operationId":"SwapController_getStatus_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"trackingVersion","required":false,"in":"query","description":"Required version 1 for deposit-order status","schema":{"type":"string","enum":["1"]}},{"name":"orderIntentId","required":true,"in":"query","description":"Opaque device-owned deposit or protocol order ID","schema":{"format":"uuid","type":"string"}},{"name":"phase","required":false,"in":"query","schema":{"type":"string","enum":["order","prerequisite","registration","fund","refund"]}},{"name":"preparationId","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"executionKind","required":false,"in":"query","schema":{"type":"string","enum":["protocol_order"]}}],"responses":{"200":{"description":"Swap status"}},"security":[{"device-id":[]}],"summary":"Get owned swap order status","tags":["Swap"]}},"/v1/onramp/providers":{"get":{"operationId":"OnRampController_getProviders_v1","parameters":[],"responses":{"200":{"description":"List of on-ramp providers"}},"summary":"Get available on-ramp providers","tags":["On-Ramp"]}},"/v1/onramp/supported-fiats":{"get":{"operationId":"OnRampController_getSupportedFiats_v1","parameters":[],"responses":{"200":{"description":"Sorted list of fiat currency codes"}},"summary":"Get union of all fiat currencies supported by any provider","tags":["On-Ramp"]}},"/v1/onramp/supported-payment-methods":{"get":{"operationId":"OnRampController_getSupportedPaymentMethods_v1","parameters":[],"responses":{"200":{"description":"Sorted list of payment method keys"}},"summary":"Get union of all payment methods supported by any provider","tags":["On-Ramp"]}},"/v1/onramp/quote":{"get":{"operationId":"OnRampController_getQuotes_v1","parameters":[{"name":"fiatCurrency","required":true,"in":"query","description":"Fiat currency code","schema":{"example":"USD","type":"string"}},{"name":"fiatAmount","required":true,"in":"query","description":"Fiat amount to spend","schema":{"minimum":1,"example":100,"type":"number"}},{"name":"cryptoCurrency","required":true,"in":"query","description":"Target crypto currency","schema":{"example":"ETH","type":"string"}},{"name":"network","required":false,"in":"query","description":"Target network","schema":{"example":"ethereum","type":"string"}},{"name":"paymentMethod","required":false,"in":"query","description":"Preferred payment method","schema":{"example":"credit_debit_card","type":"string"}}],"responses":{"200":{"description":"Provider quotes sorted by best rate"}},"summary":"Get live quotes from all on-ramp providers","tags":["On-Ramp"]}},"/v1/onramp/session":{"post":{"operationId":"OnRampController_createSession_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionDto"}}}},"responses":{"201":{"description":"On-ramp session created"}},"security":[{"device-id":[]}],"summary":"Create an on-ramp session","tags":["On-Ramp"]}},"/v1/onramp/session-requests/{requestId}":{"get":{"operationId":"OnRampController_getSessionRequest_v1","parameters":[{"name":"requestId","required":true,"in":"path","schema":{"maxLength":128,"pattern":"^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|lio-action-plan:[1-9][0-9]*:[1-9][0-9]*)$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["On-Ramp"]}},"/v1/onramp/orders/{id}/session":{"get":{"operationId":"OnRampController_getSessionOrder_v1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["On-Ramp"]}},"/v1/onramp/orders/{id}/session-launch":{"post":{"operationId":"OnRampController_launchSession_v1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["On-Ramp"]}},"/v1/onramp/orders":{"get":{"operationId":"OnRampController_getOrders_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"List of on-ramp orders"}},"security":[{"device-id":[]}],"summary":"Get on-ramp orders for device","tags":["On-Ramp"]}},"/v1/onramp/orders/{id}":{"get":{"operationId":"OnRampController_getOrderById_v1","parameters":[{"name":"id","required":true,"in":"path","description":"Order ID","schema":{"type":"string"}},{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Order details"}},"security":[{"device-id":[]}],"summary":"Get on-ramp order by ID","tags":["On-Ramp"]}},"/v1/webhook/onramp/{provider}":{"post":{"operationId":"OnRampWebhookController_handleWebhook_v1","parameters":[{"name":"provider","required":true,"in":"path","description":"On-ramp provider name","schema":{"type":"string"}}],"responses":{"201":{"description":"Webhook processed or already applied"},"400":{"description":"Malformed webhook payload"},"401":{"description":"Invalid webhook signature"},"503":{"description":"Processing unavailable; retry delivery"}},"summary":"Handle on-ramp provider webhook","tags":["On-Ramp Webhooks"]}},"/v1/lio/quick-actions":{"get":{"operationId":"LioController_getQuickActions_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"List of quick actions"}},"security":[{"device-id":[]}],"summary":"Get available quick actions","tags":["Lio AI Assistant"]}},"/v1/lio/toolbox":{"get":{"operationId":"LioController_getToolbox_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Toolbox sections and actions"}},"security":[{"device-id":[]}],"summary":"Get LIO toolbox catalog","tags":["Lio AI Assistant"]}},"/v1/lio/conversations":{"get":{"operationId":"LioController_listConversations_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":200,"type":"number"}}],"responses":{"200":{"description":"Array of conversation summaries"}},"security":[{"device-id":[]}],"summary":"List all active conversations","tags":["Lio AI Assistant"]},"post":{"operationId":"LioController_createConversation_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationDto"}}}},"responses":{"201":{"description":"Newly created conversation"}},"security":[{"device-id":[]}],"summary":"Create a new conversation","tags":["Lio AI Assistant"]}},"/v1/lio/conversations/{id}":{"get":{"operationId":"LioController_getConversation_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Max messages to return (1-200, default 50)","schema":{"minimum":1,"maximum":200,"type":"number"}},{"name":"before","required":false,"in":"query","description":"Message ID cursor — returns messages older than this","schema":{"minimum":1,"type":"number"}}],"responses":{"200":{"description":"Conversation with messages"}},"security":[{"device-id":[]}],"summary":"Get a conversation with its messages","tags":["Lio AI Assistant"]},"delete":{"operationId":"LioController_archiveConversation_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"Archived successfully"}},"security":[{"device-id":[]}],"summary":"Archive (soft-delete) a conversation","tags":["Lio AI Assistant"]},"patch":{"operationId":"LioController_renameConversation_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationDto"}}}},"responses":{"200":{"description":"Updated conversation summary"}},"security":[{"device-id":[]}],"summary":"Rename a conversation","tags":["Lio AI Assistant"]}},"/v1/lio/chat":{"post":{"operationId":"LioController_chat_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"stream","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"conversationId","required":false,"in":"query","schema":{"minimum":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequestDto"}}}},"responses":{"201":{"description":"Chat response from Lio"}},"security":[{"device-id":[]}],"summary":"Send a chat message to Lio","tags":["Lio AI Assistant"]}},"/v1/lio/schedules":{"get":{"operationId":"LioScheduleController_list_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Array of schedule definitions"}},"security":[{"device-id":[]}],"summary":"List all schedules for this device","tags":["Lio Schedules"]},"post":{"operationId":"LioScheduleController_create_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScheduleDto"}}}},"responses":{"201":{"description":"Created schedule definition"}},"security":[{"device-id":[]}],"summary":"Create a new digest/alert schedule","tags":["Lio Schedules"]}},"/v1/lio/schedules/{id}":{"patch":{"operationId":"LioScheduleController_update_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateScheduleDto"}}}},"responses":{"200":{"description":"Updated schedule definition"}},"security":[{"device-id":[]}],"summary":"Update a schedule definition","tags":["Lio Schedules"]},"delete":{"operationId":"LioScheduleController_remove_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"Deleted successfully"}},"security":[{"device-id":[]}],"summary":"Delete a schedule definition","tags":["Lio Schedules"]}},"/v1/lio/schedules/{id}/enabled":{"patch":{"operationId":"LioScheduleController_setEnabled_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetScheduleEnabledDto"}}}},"responses":{"200":{"description":"Toggle applied"}},"security":[{"device-id":[]}],"summary":"Enable or disable a schedule","tags":["Lio Schedules"]}},"/v1/lio/action-plans/{id}":{"get":{"operationId":"LioActionPlanController_getPlan_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"minimum":1,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Get a LIO action plan","tags":["Lio AI Assistant"]}},"/v1/lio/action-plans/{id}/confirm":{"post":{"operationId":"LioActionPlanController_confirmPlan_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"minimum":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmActionPlanDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Confirm a LIO action plan","tags":["Lio AI Assistant"]}},"/v1/lio/action-plans/{id}/steps/{stepId}/prepare":{"post":{"operationId":"LioActionPlanController_prepareStep_v1","parameters":[{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"},"required":true},{"name":"id","required":true,"in":"path","schema":{"minimum":1,"type":"number"}},{"name":"stepId","required":true,"in":"path","schema":{"minimum":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareActionPlanStepDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"device-id":[]}],"summary":"Prepare one LIO action-plan step","tags":["Lio AI Assistant"]}},"/v1/portfolio/allocation":{"get":{"operationId":"PortfolioController_getAllocation_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Portfolio allocation data"}},"security":[{"device-id":[]}],"summary":"Get portfolio allocation breakdown","tags":["Portfolio"]}},"/v1/portfolio/performance":{"get":{"operationId":"PortfolioController_getPerformance_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Portfolio performance data"}},"security":[{"device-id":[]}],"summary":"Get portfolio performance metrics","tags":["Portfolio"]}},"/v1/portfolio/rebalance/preview":{"post":{"operationId":"PortfolioController_previewRebalance_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRebalanceDto"}}}},"responses":{"201":{"description":"Rebalance preview data"}},"security":[{"device-id":[]}],"summary":"Preview portfolio rebalance","tags":["Portfolio"]}},"/v1/chain-activity/webhook":{"post":{"operationId":"WebhookController_handleWebhook","parameters":[],"responses":{"200":{"description":""}},"summary":"Receive chain activity webhook from providers","tags":["chain-activity"]}},"/v1/staking/tron/vote":{"post":{"operationId":"TronStakingController_buildVote_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteRequestDto"}}}},"responses":{"201":{"description":"Unsigned vote transaction"}},"security":[{"device-id":[]}],"summary":"Vote for TRON Super Representatives","tags":["Staking / TRON"]}},"/v1/staking/tron/claim-rewards":{"post":{"operationId":"TronStakingController_buildClaimRewards_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRewardsRequestDto"}}}},"responses":{"201":{"description":"Unsigned claim rewards transaction"}},"security":[{"device-id":[]}],"summary":"Claim TRON staking rewards","tags":["Staking / TRON"]}},"/v1/staking/tron/resources":{"get":{"operationId":"TronStakingController_getAccountResources_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"address","required":true,"in":"query","description":"TRON wallet address","schema":{"type":"string"}}],"responses":{"200":{"description":"Account resources"}},"security":[{"device-id":[]}],"summary":"Get TRON account resources (energy, bandwidth)","tags":["Staking / TRON"]}},"/v1/staking/{platformId}/validators":{"get":{"operationId":"StakingController_getValidators_v1","parameters":[{"name":"platformId","required":true,"in":"path","description":"Platform ID (e.g. solana, tron)","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"sortBy","required":false,"in":"query","schema":{"enum":["rank","apy","commission","totalStake"],"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"device-id","in":"header","description":"Device UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of validators"}},"security":[{"device-id":[]}],"summary":"List validators for a platform","tags":["Staking"]}},"/v1/staking/{platformId}/delegations":{"get":{"operationId":"StakingController_getDelegations_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"path","description":"Platform ID","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","description":"Filter by status","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Paginated list of delegations"}},"security":[{"device-id":[]}],"summary":"Get delegations for a device on a platform","tags":["Staking"]}},"/v1/staking/{platformId}/stake":{"post":{"operationId":"StakingController_buildStake_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"path","description":"Platform ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StakeRequestDto"}}}},"responses":{"201":{"description":"Unsigned stake transaction"}},"security":[{"device-id":[]}],"summary":"Build a stake transaction","tags":["Staking"]}},"/v1/staking/{platformId}/unstake":{"post":{"operationId":"StakingController_buildUnstake_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"path","description":"Platform ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnstakeRequestDto"}}}},"responses":{"201":{"description":"Unsigned unstake transaction"}},"security":[{"device-id":[]}],"summary":"Build an unstake transaction","tags":["Staking"]}},"/v1/staking/{platformId}/withdraw":{"post":{"operationId":"StakingController_buildWithdraw_v1","parameters":[{"name":"device-id","required":true,"in":"header","description":"Device UUID","schema":{"type":"string"}},{"name":"platformId","required":true,"in":"path","description":"Platform ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawRequestDto"}}}},"responses":{"201":{"description":"Unsigned withdraw transaction"}},"security":[{"device-id":[]}],"summary":"Build a withdraw unstaked tokens transaction","tags":["Staking"]}},"/v1/gas-abstraction/address":{"get":{"operationId":"GasAbstractionController_getAddress_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"eoa","required":true,"in":"query","description":"EOA address","schema":{"example":"0x1234...","type":"string"}},{"name":"chainId","required":true,"in":"query","description":"Numeric chain ID","schema":{"example":"1","type":"string"}}],"responses":{"200":{"description":"Smart Account info"}},"security":[{"device-id":[]}],"summary":"Compute Smart Account address for an EOA","tags":["Gas Abstraction"]}},"/v1/gas-abstraction/options":{"get":{"operationId":"GasAbstractionController_getOptions_v1","parameters":[{"name":"device-id","required":true,"in":"header","schema":{"type":"string"}},{"name":"address","required":true,"in":"query","description":"Smart Account address","schema":{"example":"0xabcd...","type":"string"}},{"name":"chainId","required":true,"in":"query","description":"Numeric chain ID","schema":{"example":"1","type":"string"}},{"name":"eoa","required":true,"in":"query","description":"Authenticated EOA owner of the Smart Account","schema":{"example":"0x1234...","type":"string"}}],"responses":{"200":{"description":"Available fee token quotes"}},"security":[{"device-id":[]}],"summary":"Get fee token quotes for gas payment","tags":["Gas Abstraction"]}}},"info":{"title":"NDWallet","description":"NDWallet Server API","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"},"device-id":{"type":"apiKey","in":"header","name":"device-id"}},"schemas":{"ImportTokenDto":{"type":"object","properties":{"platformId":{"type":"string","description":"Platform ID (EVM only)","example":"ethereum"},"contractAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC20 contract address","example":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},"required":["platformId","contractAddress"]},"CreateDeviceDto":{"type":"object","properties":{"devicePlatform":{"type":"string","enum":["ios","android"],"description":"Device platform (ios or android)"},"appVersion":{"type":"string","maxLength":50,"description":"App version"},"deviceToken":{"type":"string","maxLength":500,"description":"Device token that is used for push notifications"},"language":{"type":"string","description":"Preferred language locale, e.g. en, ru-RU, de-DE"}},"required":["devicePlatform","appVersion"]},"UseDeviceDto":{"type":"object","properties":{"appVersion":{"type":"string","maxLength":50,"description":"App version"},"deviceToken":{"type":"string","maxLength":500,"description":"Device token"},"language":{"type":"string","description":"Preferred language locale, e.g. en, ru-RU, de-DE"}},"required":["appVersion"]},"WalletAddressDto":{"type":"object","properties":{"address":{"type":"string","description":"Wallet address"},"platformId":{"type":"string","description":"Platform Id (see GET /v1/platforms)"}},"required":["address","platformId"]},"WalletAddressListDto":{"type":"object","properties":{"addresses":{"description":"List of wallet addresses","type":"array","items":{"$ref":"#/components/schemas/WalletAddressDto"}}},"required":["addresses"]},"MaxAmountParamsDto":{"type":"object","properties":{"feeModel":{"enum":["optimism-eoa-safe-max-v1"],"type":"string"},"from":{"type":"string","description":"Sender address"},"to":{"type":"string","description":"Recipient address (used for fee estimation)"},"contractAddress":{"type":"string","description":"Token contract address (for token transfers)"},"feePriority":{"enum":["low","medium","high"],"type":"string","description":"Fee priority level","default":"medium"},"feeToken":{"type":"string","pattern":"^0x(?!0{40}$)[0-9a-fA-F]{40}$","description":"Fee token routing marker (unsupported for max amount)"},"accountMode":{"type":"string","enum":["eoa","smart-account"],"description":"Required for EVM platforms; omit for non-EVM platforms."}},"required":["from","to"]},"MaxAmountDto":{"type":"object","properties":{"platformId":{"type":"string","description":"Platform ID"},"type":{"type":"string","description":"Transaction type","enum":["native-transfer","erc20-transfer","erc721-transfer","erc1155-transfer","solana-token-transfer","trc20-transfer"]},"params":{"description":"Transaction parameters","allOf":[{"$ref":"#/components/schemas/MaxAmountParamsDto"}]}},"required":["platformId","type","params"]},"PreparationOperationDto":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"phase":{"type":"string","enum":["send","swap","reset","approval","fund","refund","stake","unstake","withdraw","vote","claim"]},"generation":{"type":"number","minimum":1,"maximum":2147483647},"expectedPreviousGeneration":{"type":"number","nullable":true,"minimum":1,"maximum":2147483647}},"required":["operationId","phase","generation","expectedPreviousGeneration"]},"BuildTxParamsDto":{"type":"object","properties":{"feeModel":{"enum":["optimism-eoa-safe-max-v1"],"type":"string"},"from":{"type":"string","description":"Sender address. In smart-account mode this is the owner/signer EOA used to derive the Smart Account."},"to":{"type":"string","description":"Recipient address"},"amount":{"type":"string","description":"Amount in smallest units (wei, lamports, satoshi)"},"contractAddress":{"type":"string","description":"Token contract address (for token transfers)"},"tokenId":{"type":"string","description":"Token ID (for ERC-721/1155)"},"feePriority":{"enum":["low","medium","high"],"type":"string","description":"Fee priority level","default":"medium"},"feeToken":{"type":"string","pattern":"^0x(?!0{40}$)[0-9a-fA-F]{40}$","description":"Fee token address for gas abstraction (e.g. USDC contract)"},"accountMode":{"type":"string","enum":["eoa","smart-account"],"description":"Required for EVM platforms; omit for non-EVM platforms. smart-account always builds a UserOperation, including native-fee requests."}},"required":["from","to"]},"BuildTransactionDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"operation":{"$ref":"#/components/schemas/PreparationOperationDto"},"platformId":{"type":"string","description":"Platform ID"},"type":{"type":"string","description":"Transaction type","enum":["native-transfer","erc20-transfer","erc721-transfer","erc1155-transfer","solana-token-transfer","trc20-transfer"]},"params":{"description":"Transaction parameters","allOf":[{"$ref":"#/components/schemas/BuildTxParamsDto"}]}},"required":["clientBuild","operation","platformId","type","params"]},"NetworkArtifactDto":{"type":"object","properties":{"kind":{"type":"string","enum":["signed_tx","user_operation"]},"signedTx":{"type":"string","minLength":1,"maxLength":2000000},"userOperation":{"type":"object"}},"required":["kind"]},"ProtocolOrderLioAssociationDto":{"type":"object","properties":{"planId":{"type":"number","minimum":1},"stepId":{"type":"number","minimum":1}},"required":["planId","stepId"]},"OffchainOrderDto":{"type":"object","properties":{"stage":{"type":"string","enum":["order","registration"]},"preparationId":{"type":"string","format":"uuid"},"artifact":{"type":"string","minLength":1,"maxLength":32768},"attemptId":{"type":"string","format":"uuid"},"lioAssociation":{"$ref":"#/components/schemas/ProtocolOrderLioAssociationDto"}},"required":["stage","preparationId"]},"SubmitExecutionDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"kind":{"type":"string","enum":["network","protocol_order"]},"executionId":{"type":"string","format":"uuid"},"artifact":{"$ref":"#/components/schemas/NetworkArtifactDto"},"platformId":{"type":"string","minLength":1,"maxLength":80},"protocolOrder":{"$ref":"#/components/schemas/OffchainOrderDto"}},"required":["clientBuild","kind"]},"CloseOperationDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20}},"required":["clientBuild"]},"UpdatePreferencesDto":{"type":"object","properties":{"currency":{"type":"string","maxLength":10,"description":"Preferred fiat currency code"},"language":{"type":"string","description":"Preferred language code"},"autoLockMinutes":{"type":"number","minimum":1,"maximum":60,"description":"Auto-lock timeout in minutes"},"biometrics":{"type":"boolean","description":"Enable biometric authentication"},"notifications":{"type":"boolean","description":"Enable push notifications"}}},"SwapQuoteDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"responseMode":{"enum":["offers"],"type":"string","description":"Explicit wallet DEX/CEX comparison"},"acceptFixedRate":{"type":"boolean","description":"Client can review fixed-rate deposit offers"},"fromChain":{"type":"string","description":"Source chain identifier"},"toChain":{"type":"string","description":"Destination chain identifier"},"fromToken":{"type":"string","description":"Source token address or identifier"},"toToken":{"type":"string","description":"Destination token address or identifier"},"fromAmount":{"type":"string","description":"Amount to swap in smallest units"},"fromAddress":{"type":"string","description":"Sender wallet address"},"toAddress":{"type":"string","description":"Destination wallet address (for cross-chain swaps where destination chain differs)"},"slippageBps":{"type":"number","minimum":1,"maximum":1000,"description":"Slippage tolerance in basis points (1-1000)"}},"required":["clientBuild","responseMode","fromChain","toChain","fromToken","toToken","fromAmount","fromAddress"]},"SwapPreparationRequestDto":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"preparationRequestId":{"type":"string","format":"uuid"}},"required":["operationId","preparationRequestId"]},"SwapBuildDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"executionKind":{"type":"string","enum":["direct_transaction","protocol_order","deposit_order"],"description":"Execution kind pinned by the selected offer; never inferred from its reference"},"preparationRequestId":{"type":"string","format":"uuid","description":"Stable preparation request ID for deposit and protocol builds"},"orderAction":{"enum":["continue","refund","approval_fees"],"type":"string","description":"approval_fees only estimates owned unsigned candidates; it never creates or submits an attempt"},"amountSelection":{"enum":["exact","max"],"type":"string","description":"Original source amount selection for order continuation"},"feeToken":{"type":"string","description":"For deposit Smart Account funding, omit for native fees or pass the selected ERC-20. Standalone protocol SA approval retains its own fee selection."},"maxInputFee":{"type":"string","pattern":"^(0|[1-9][0-9]{0,79})(?![\\s\\S])","description":"Direct Smart Account Swap input-token fee reserve in atomic units"},"quote":{"type":"object","description":"Direct quote returned from /swap/quote"},"quoteSessionId":{"type":"string","format":"uuid","description":"Opaque server-owned deposit or signed-order quote session"},"orderIntentId":{"type":"string","format":"uuid","description":"Opaque persisted order for explicit recovery funding; never creates an order"},"fromAddress":{"type":"string","description":"Current sender wallet address; deposit builds assert it against the persisted source"},"accountMode":{"type":"string","enum":["eoa","smart-account"]},"operation":{"$ref":"#/components/schemas/SwapPreparationRequestDto"}},"required":["clientBuild","executionKind","fromAddress"]},"Object":{"type":"object","properties":{}},"CreateSessionDto":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","pattern":"^[0-9a-f-]+$","description":"Stable logical request UUID, persisted before sending"},"provider":{"type":"string","enum":["transak","moonpay"],"description":"On-ramp provider name"},"fiatCurrency":{"type":"string","maxLength":10,"description":"Fiat currency code (e.g. USD, EUR)"},"fiatAmount":{"type":"number","minimum":1,"description":"Fiat amount to spend"},"cryptoCurrency":{"type":"string","maxLength":20,"description":"Target cryptocurrency symbol"},"walletAddress":{"type":"string","maxLength":128,"description":"Destination wallet address"},"network":{"type":"string","maxLength":50,"description":"Network/chain identifier"},"redirectUrl":{"type":"string","format":"uri","description":"URL to redirect the user back to after purchase is completed"}},"required":["requestId","provider","fiatCurrency","fiatAmount","cryptoCurrency","walletAddress"]},"CreateConversationDto":{"type":"object","properties":{"sourceNotificationId":{"type":"number","minimum":1}}},"UpdateConversationDto":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120}},"required":["title"]},"LioWalletContextDto":{"type":"object","properties":{"ready":{"type":"boolean"},"addresses":{"type":"object","additionalProperties":{"type":"string"}}},"required":["ready"]},"ChoiceSelectionDto":{"type":"object","properties":{"groupId":{"type":"string","maxLength":128},"optionId":{"type":"string","maxLength":128}},"required":["groupId","optionId"]},"ChatRequestDto":{"type":"object","properties":{"clientTurnId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$","format":"uuid","description":"Canonical lowercase UUID v4 generated once per logical turn"},"walletContext":{"$ref":"#/components/schemas/LioWalletContextDto"},"message":{"type":"string","maxLength":4000},"startTaskKind":{"type":"string","enum":["swap","investment_discovery","asset_news_monitor"]},"contextActionId":{"type":"string","maxLength":64},"contextActionSourceMessageId":{"type":"number","minimum":1},"choiceSelection":{"$ref":"#/components/schemas/ChoiceSelectionDto"}},"required":["clientTurnId","message"]},"CreateScheduleDto":{"type":"object","properties":{"kind":{"type":"object"},"schedule":{"type":"object","additionalProperties":true},"params":{"type":"object","additionalProperties":true}},"required":["kind","schedule"]},"UpdateScheduleDto":{"type":"object","properties":{"schedule":{"type":"object","additionalProperties":true},"params":{"type":"object","additionalProperties":true},"isEnabled":{"type":"boolean"}}},"SetScheduleEnabledDto":{"type":"object","properties":{"isEnabled":{"type":"boolean","description":"Whether the schedule should be active"}},"required":["isEnabled"]},"ConfirmActionPlanDto":{"type":"object","properties":{"confirmationNonce":{"type":"string","minLength":1}},"required":["confirmationNonce"]},"PrepareActionPlanStepDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"preparationRequestId":{"type":"string","format":"uuid"},"feeToken":{"type":"string"},"fromAddress":{"type":"string"},"toAddress":{"type":"string"},"swapAction":{"type":"object"}},"required":["clientBuild"]},"TargetAllocationDto":{"type":"object","properties":{"tokenId":{"type":"string","pattern":"^\\S+$","description":"Aggregate token id, not a network position"},"targetPercent":{"type":"number","minimum":0,"maximum":100}},"required":["tokenId","targetPercent"]},"PreviewRebalanceDto":{"type":"object","properties":{"targetAllocations":{"minItems":1,"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/TargetAllocationDto"}}},"required":["targetAllocations"]},"VoteEntry":{"type":"object","properties":{"address":{"type":"string","description":"Validator/SR address"},"count":{"type":"number","minimum":1,"maximum":9007199254740991,"description":"Number of votes"}},"required":["address","count"]},"VoteRequestDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"from":{"type":"string","description":"Sender wallet address"},"votes":{"description":"Vote distribution","type":"array","items":{"$ref":"#/components/schemas/VoteEntry"}},"operation":{"type":"object"}},"required":["clientBuild","from","votes","operation"]},"ClaimRewardsRequestDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"from":{"type":"string","description":"Sender wallet address"},"operation":{"type":"object"}},"required":["clientBuild","from","operation"]},"StakeRequestDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"from":{"type":"string","description":"Sender wallet address"},"validatorAddress":{"type":"string","description":"Validator address to delegate to"},"amount":{"type":"string","description":"Amount in smallest units"},"resourceType":{"type":"string","description":"Resource type (TRON only)","enum":["ENERGY","BANDWIDTH","GENERAL"]},"operation":{"type":"object"}},"required":["clientBuild","from","validatorAddress","amount","operation"]},"UnstakeRequestDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"from":{"type":"string","description":"Sender wallet address"},"validatorAddress":{"type":"string","description":"Validator address to undelegate from"},"amount":{"type":"string","description":"Amount in smallest units"},"resourceType":{"type":"string","description":"Resource type (TRON only)","enum":["ENERGY","BANDWIDTH","GENERAL"]},"operation":{"type":"object"}},"required":["clientBuild","from","validatorAddress","amount","operation"]},"WithdrawRequestDto":{"type":"object","properties":{"clientBuild":{"type":"string","description":"Installed app MAJOR.MINOR.PATCH+BUILD identity","example":"0.8.0+42","maxLength":20},"from":{"type":"string","description":"Sender wallet address"},"operation":{"type":"object"}},"required":["clientBuild","from","operation"]}}}}