{
  "components": {
    "responses": {
      "APIError": {
        "content": {
          "application/json": {
            "schema": {
              "externalDocs": {
                "url": "https://pkg.go.dev/encore.dev/beta/errs#Error"
              },
              "properties": {
                "code": {
                  "description": "Error code",
                  "example": "not_found",
                  "externalDocs": {
                    "url": "https://pkg.go.dev/encore.dev/beta/errs#ErrCode"
                  },
                  "type": "string"
                },
                "details": {
                  "description": "Error details",
                  "type": "object"
                },
                "message": {
                  "description": "Error message",
                  "type": "string"
                }
              },
              "title": "APIError",
              "type": "object"
            }
          }
        },
        "description": "Error response"
      }
    },
    "schemas": {
      "api.ActivityEntry": {
        "properties": {
          "amountMicros": {
            "type": "string"
          },
          "chain": {
            "$ref": "#/components/schemas/api.Chain"
          },
          "createdAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "referenceId": {
            "type": "string"
          },
          "type": {
            "enum": [
              "deposit",
              "ticket_reserved",
              "ticket_spent",
              "ticket_refunded",
              "key_export",
              "wallet_transfer",
              "account_transfer_sent",
              "account_transfer_received",
              "equity_contribution",
              "trade_queued",
              "trade_confirmed",
              "trade_failed",
              "referral_reward",
              "withdrawal_queued",
              "withdrawal_confirmed",
              "withdrawal_failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "referenceId",
          "createdAt"
        ],
        "type": "object"
      },
      "api.AnyCardPayload": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/api.PnlCardPayload"
          },
          {
            "$ref": "#/components/schemas/api.OpenPositionPayload"
          },
          {
            "$ref": "#/components/schemas/api.RecapPayload"
          }
        ]
      },
      "api.ApiKeyMetadata": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "prefix": {
            "type": "string"
          }
        },
        "required": [
          "prefix",
          "createdAt"
        ],
        "type": "object"
      },
      "api.BasedBotHolding": {
        "properties": {
          "balanceRaw": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "symbol": {
            "type": "string"
          },
          "valueUSD": {
            "type": "string"
          },
          "withdrawableRaw": {
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "decimals",
          "balanceRaw"
        ],
        "type": "object"
      },
      "api.BasedBotHoldingItem": {
        "properties": {
          "holding": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/api.BasedBotHolding"
              },
              {
                "nullable": true,
                "type": "boolean"
              }
            ],
            "nullable": true
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "holding"
        ],
        "type": "object"
      },
      "api.BasedBotWallet": {
        "properties": {
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/api.WalletAddress"
            },
            "type": "array"
          },
          "balance": {
            "properties": {
              "availableMicros": {
                "type": "string"
              }
            },
            "required": [
              "availableMicros"
            ],
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "main",
              "subwallet"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ownerAccountId": {
            "type": "string"
          },
          "state": {
            "enum": [
              "active",
              "archived"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "ownerAccountId",
          "kind",
          "name",
          "state",
          "addresses",
          "balance"
        ],
        "type": "object"
      },
      "api.BasedBotWalletGroupSummary": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "walletIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "walletIds"
        ],
        "type": "object"
      },
      "api.BulkTransferDestination": {
        "properties": {
          "shareBps": {
            "type": "number"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "shareBps"
        ],
        "type": "object"
      },
      "api.BulkTransferDestinationResult": {
        "properties": {
          "amountMicros": {
            "type": "string"
          },
          "shareBps": {
            "type": "number"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "amountMicros",
          "walletId",
          "shareBps"
        ],
        "type": "object"
      },
      "api.BulkTransferSource": {
        "properties": {
          "amountMicros": {
            "type": "string"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "amountMicros"
        ],
        "type": "object"
      },
      "api.Chain": {
        "type": "string"
      },
      "api.ChainDescriptor": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/api.EvmChainDescriptor"
          },
          {
            "$ref": "#/components/schemas/api.SolanaChainDescriptor"
          }
        ]
      },
      "api.ClaimDescriptor": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/api.EvmContractClaim"
          },
          {
            "$ref": "#/components/schemas/api.SolanaProgramClaim"
          }
        ]
      },
      "api.ConnectState": {
        "enum": [
          "pending",
          "approved",
          "claimed",
          "expired"
        ],
        "type": "string"
      },
      "api.CreateDcaTradingStrategyOutcome": {
        "anyOf": [
          {
            "properties": {
              "status": {
                "enum": [
                  "created"
                ],
                "type": "string"
              },
              "strategy": {
                "$ref": "#/components/schemas/api.TradingStrategy"
              },
              "walletId": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "walletId",
              "strategy"
            ],
            "type": "object"
          },
          {
            "properties": {
              "error": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "failed"
                ],
                "type": "string"
              },
              "walletId": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "walletId",
              "error"
            ],
            "type": "object"
          }
        ]
      },
      "api.DepositEntry": {
        "properties": {
          "amountMicros": {
            "type": "string"
          },
          "chain": {
            "$ref": "#/components/schemas/api.Chain"
          },
          "detectedAt": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "finalizedAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "state": {
            "enum": [
              "detected",
              "sweep_pending",
              "sweeping",
              "confirming",
              "canonicalized",
              "credited",
              "failed"
            ],
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "transaction": {
            "$ref": "#/components/schemas/api.TransactionRef"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "chain",
          "token",
          "amountMicros",
          "state",
          "detectedAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.EvmChainDescriptor": {
        "properties": {
          "chainId": {
            "type": "number"
          },
          "display": {
            "properties": {
              "accent": {
                "type": "string"
              },
              "accentText": {
                "type": "string"
              }
            },
            "required": [
              "accent",
              "accentText"
            ],
            "type": "object"
          },
          "explorerUrl": {
            "type": "string"
          },
          "family": {
            "enum": [
              "evm"
            ],
            "type": "string"
          },
          "finality": {
            "properties": {
              "confirmations": {
                "type": "number"
              },
              "kind": {
                "enum": [
                  "block"
                ],
                "type": "string"
              },
              "source": {
                "enum": [
                  "evm",
                  "arbsys"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "confirmations",
              "source"
            ],
            "type": "object"
          },
          "key": {
            "type": "string"
          },
          "maxTradeGasReserveMicros": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nativeCurrency": {
            "properties": {
              "decimals": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "symbol",
              "decimals"
            ],
            "type": "object"
          },
          "portfolioProvider": {
            "enum": [
              "mobula"
            ],
            "nullable": true,
            "type": "string"
          },
          "sniper": {
            "properties": {
              "feeBps": {
                "type": "number"
              },
              "nativeFunding": {
                "type": "boolean"
              }
            },
            "required": [
              "feeBps",
              "nativeFunding"
            ],
            "type": "object"
          },
          "ticketLifetime": {
            "properties": {
              "kind": {
                "enum": [
                  "block"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          "token": {
            "properties": {
              "address": {
                "type": "string"
              },
              "decimals": {
                "type": "number"
              },
              "program": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              }
            },
            "required": [
              "address",
              "symbol",
              "decimals"
            ],
            "type": "object"
          },
          "tradingEnabled": {
            "type": "boolean"
          },
          "vault": {
            "properties": {
              "contract": {
                "type": "string"
              }
            },
            "required": [
              "contract"
            ],
            "type": "object"
          },
          "walletRpcUrl": {
            "type": "string"
          }
        },
        "required": [
          "family",
          "vault",
          "finality",
          "ticketLifetime",
          "key",
          "name",
          "chainId",
          "nativeCurrency",
          "walletRpcUrl",
          "token",
          "portfolioProvider",
          "tradingEnabled"
        ],
        "type": "object"
      },
      "api.EvmContractClaim": {
        "properties": {
          "calldata": {
            "type": "string"
          },
          "contract": {
            "type": "string"
          },
          "issuedAt": {
            "properties": {
              "kind": {
                "enum": [
                  "block"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          "kind": {
            "enum": [
              "evm_contract_call"
            ],
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "validUntil": {
            "properties": {
              "kind": {
                "enum": [
                  "block"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          }
        },
        "required": [
          "kind",
          "contract",
          "token",
          "calldata",
          "issuedAt",
          "validUntil"
        ],
        "type": "object"
      },
      "api.ExecuteTradeBatchOutcome": {
        "properties": {
          "error": {
            "type": "string"
          },
          "trade": {
            "$ref": "#/components/schemas/api.Trade"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId"
        ],
        "type": "object"
      },
      "api.ExportedSecret": {
        "properties": {
          "encoding": {
            "enum": [
              "hex",
              "base58"
            ],
            "type": "string"
          },
          "family": {
            "$ref": "#/components/schemas/api.NetworkFamily"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "family",
          "encoding",
          "value"
        ],
        "type": "object"
      },
      "api.ExportedWalletMaterial": {
        "properties": {
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/api.WalletAddress"
            },
            "type": "array"
          },
          "kind": {
            "enum": [
              "main",
              "subwallet"
            ],
            "type": "string"
          },
          "mnemonic": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "secrets": {
            "items": {
              "$ref": "#/components/schemas/api.ExportedSecret"
            },
            "type": "array"
          },
          "state": {
            "enum": [
              "active",
              "archived"
            ],
            "type": "string"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "name",
          "kind",
          "state",
          "addresses",
          "secrets"
        ],
        "type": "object"
      },
      "api.FinalityPoint": {
        "anyOf": [
          {
            "properties": {
              "hash": {
                "type": "string"
              },
              "kind": {
                "enum": [
                  "block"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          {
            "properties": {
              "hash": {
                "type": "string"
              },
              "kind": {
                "enum": [
                  "slot"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          }
        ]
      },
      "api.GiveawayStatus": {
        "enum": [
          "upcoming",
          "open",
          "closed",
          "cancelled"
        ],
        "type": "string"
      },
      "api.GiveawaySummary": {
        "properties": {
          "closesAt": {
            "type": "string"
          },
          "entry": {
            "properties": {
              "enteredAt": {
                "type": "string"
              }
            },
            "required": [
              "enteredAt"
            ],
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "meetsBalanceMinimum": {
            "type": "boolean"
          },
          "minimumConfirmedBalanceMicros": {
            "type": "string"
          },
          "opensAt": {
            "type": "string"
          },
          "prize": {
            "type": "string"
          },
          "rulesUrl": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/api.GiveawayStatus"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "prize",
          "minimumConfirmedBalanceMicros",
          "opensAt",
          "closesAt",
          "status",
          "meetsBalanceMinimum"
        ],
        "type": "object"
      },
      "api.MarketCandle": {
        "properties": {
          "close": {
            "type": "number"
          },
          "high": {
            "type": "number"
          },
          "low": {
            "type": "number"
          },
          "open": {
            "type": "number"
          },
          "timestamp": {
            "type": "number"
          },
          "volume": {
            "type": "number"
          }
        },
        "required": [
          "timestamp",
          "open",
          "high",
          "low",
          "close"
        ],
        "type": "object"
      },
      "api.MarketHolder": {
        "properties": {
          "chainKey": {
            "type": "string"
          },
          "holderAddress": {
            "type": "string"
          },
          "percentageOfTotalSupply": {
            "type": "string"
          },
          "rank": {
            "type": "number"
          },
          "tokenAddress": {
            "type": "string"
          },
          "tokenAmount": {
            "type": "string"
          },
          "tokenAmountUSD": {
            "type": "string"
          },
          "trackedWallet": {
            "$ref": "#/components/schemas/api.MarketTrackedWallet"
          }
        },
        "required": [
          "rank",
          "chainKey",
          "tokenAddress",
          "holderAddress",
          "tokenAmount"
        ],
        "type": "object"
      },
      "api.MarketTrackedWallet": {
        "properties": {
          "address": {
            "type": "string"
          },
          "emoji": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "address",
          "label",
          "emoji"
        ],
        "type": "object"
      },
      "api.MarketTrade": {
        "properties": {
          "chainKey": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "marketCapUSD": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string"
          },
          "priceUSD": {
            "type": "string"
          },
          "side": {
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "tokenAddress": {
            "type": "string"
          },
          "tokenAmount": {
            "type": "string"
          },
          "tokenAmountUSD": {
            "type": "string"
          },
          "trackedWallets": {
            "items": {
              "$ref": "#/components/schemas/api.MarketTrackedWallet"
            },
            "type": "array"
          },
          "traderAddress": {
            "type": "string"
          },
          "transactionHash": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "chainKey",
          "tokenAddress",
          "side",
          "tokenAmount",
          "traderAddress",
          "trackedWallets",
          "transactionHash",
          "occurredAt"
        ],
        "type": "object"
      },
      "api.NetworkFamily": {
        "enum": [
          "evm",
          "solana"
        ],
        "type": "string"
      },
      "api.NewPairCandidate": {
        "properties": {
          "chain": {
            "type": "string"
          },
          "chainId": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "deployerAddress": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "launchpad": {
            "$ref": "#/components/schemas/api.NewPairLaunchpad"
          },
          "logo": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "providerSource": {
            "type": "string"
          },
          "providerSourceName": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "tokenAddress": {
            "type": "string"
          },
          "transactionHash": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "chain",
          "chainId",
          "tokenAddress",
          "launchpad",
          "createdAt"
        ],
        "type": "object"
      },
      "api.NewPairLaunchpad": {
        "enum": [
          "any",
          "unknown",
          "pons",
          "flap",
          "trench",
          "long_xyz",
          "bankr",
          "bags",
          "pools_trade",
          "uniswap",
          "fourmeme",
          "stonkfun",
          "raydium"
        ],
        "type": "string"
      },
      "api.OpenPositionPayload": {
        "description": "formatting belongs to the renderer; this is the claim itself.\n",
        "properties": {
          "calledBy": {
            "type": "string"
          },
          "chainKey": {
            "type": "string"
          },
          "chainName": {
            "type": "string"
          },
          "costBasisUSD": {
            "description": "indexer mark, which is what \"unrealized\" means and why this card carries no settlement star.\n",
            "title": "Cost basis is StarSwap's own, from confirmed buys. The current value is an\n",
            "type": "string"
          },
          "currentValueUSD": {
            "type": "string"
          },
          "entryMarketCapUSD": {
            "type": "string"
          },
          "fills": {
            "items": {
              "$ref": "#/components/schemas/api.PnlCardFill"
            },
            "type": "array"
          },
          "holdSeconds": {
            "type": "number"
          },
          "kind": {
            "enum": [
              "open"
            ],
            "type": "string"
          },
          "markedAt": {
            "type": "string"
          },
          "multiple": {
            "type": "string"
          },
          "openedAt": {
            "type": "string"
          },
          "quote": {
            "type": "string"
          },
          "realizedUSD": {
            "type": "string"
          },
          "referralCode": {
            "type": "string"
          },
          "sharedAt": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "tokenAddress": {
            "type": "string"
          },
          "tokenLogo": {
            "type": "string"
          },
          "tokenName": {
            "type": "string"
          },
          "unrealizedUSD": {
            "type": "string"
          },
          "version": {
            "type": "number"
          }
        },
        "required": [
          "version",
          "kind",
          "symbol",
          "tokenAddress",
          "chainKey",
          "chainName",
          "costBasisUSD",
          "currentValueUSD",
          "realizedUSD",
          "unrealizedUSD",
          "markedAt",
          "referralCode",
          "sharedAt"
        ],
        "title": "Every number a card shows, in settlement-token units, exact. Display\n",
        "type": "object"
      },
      "api.PnlCardCandle": {
        "properties": {
          "close": {
            "type": "number"
          },
          "high": {
            "type": "number"
          },
          "low": {
            "type": "number"
          },
          "open": {
            "type": "number"
          },
          "time": {
            "type": "number"
          },
          "volume": {
            "type": "number"
          }
        },
        "required": [
          "time",
          "open",
          "high",
          "low",
          "close"
        ],
        "type": "object"
      },
      "api.PnlCardFill": {
        "properties": {
          "atSeconds": {
            "type": "number"
          },
          "multiple": {
            "type": "string"
          }
        },
        "required": [
          "atSeconds",
          "multiple"
        ],
        "type": "object"
      },
      "api.PnlCardPayload": {
        "properties": {
          "calledBy": {
            "title": "Who the sharer is crediting for the call.\n",
            "type": "string"
          },
          "candlePeriodMs": {
            "description": "holding window has to be compacted. Present only together with candles.\n",
            "title": "Native provider cadence, or the fixed display bucket width when a long\n",
            "type": "number"
          },
          "candles": {
            "items": {
              "$ref": "#/components/schemas/api.PnlCardCandle"
            },
            "title": "Provider OHLCV frozen with the card across its verified holding window.\n",
            "type": "array"
          },
          "chainKey": {
            "type": "string"
          },
          "chainName": {
            "type": "string"
          },
          "closedAt": {
            "type": "string"
          },
          "costBasisUSD": {
            "type": "string"
          },
          "entryMarketCapUSD": {
            "type": "string"
          },
          "entryPriceUSD": {
            "title": "Execution prices derived only from the confirmed settlement amounts.\n",
            "type": "string"
          },
          "exitMarketCapUSD": {
            "type": "string"
          },
          "exitPriceUSD": {
            "type": "string"
          },
          "explorerUrl": {
            "type": "string"
          },
          "feesUSD": {
            "type": "string"
          },
          "fills": {
            "description": "were taken at relative to the entry price. The card draws the position's real shape from these, so two trades of the same size cannot look alike.\n",
            "items": {
              "$ref": "#/components/schemas/api.PnlCardFill"
            },
            "title": "Later buys inside the same lot, as seconds since entry and the price they\n",
            "type": "array"
          },
          "holdSeconds": {
            "type": "number"
          },
          "kind": {
            "enum": [
              "realized"
            ],
            "type": "string"
          },
          "multiple": {
            "type": "string"
          },
          "netProceedsUSD": {
            "type": "string"
          },
          "openedAt": {
            "type": "string"
          },
          "pnlUSD": {
            "type": "string"
          },
          "quote": {
            "title": "Optional words from the sharer, kept separate from measured trade data.\n",
            "type": "string"
          },
          "referralCode": {
            "type": "string"
          },
          "returnPercentage": {
            "type": "string"
          },
          "settlementSymbol": {
            "type": "string"
          },
          "sharedAt": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "tokenAddress": {
            "type": "string"
          },
          "tokenLogo": {
            "type": "string"
          },
          "tokenName": {
            "description": "identifying it. Both are best effort: a card renders without either.\n",
            "title": "The token's own name and mark, so a contract address is not the only thing\n",
            "type": "string"
          },
          "transactionId": {
            "type": "string"
          },
          "version": {
            "type": "number"
          }
        },
        "required": [
          "version",
          "kind",
          "symbol",
          "tokenAddress",
          "chainKey",
          "chainName",
          "settlementSymbol",
          "netProceedsUSD",
          "costBasisUSD",
          "pnlUSD",
          "feesUSD",
          "closedAt",
          "referralCode",
          "sharedAt"
        ],
        "type": "object"
      },
      "api.PointEntry": {
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "points": {
            "type": "string"
          },
          "reason": {
            "enum": [
              "trade",
              "qualified_referral"
            ],
            "type": "string"
          },
          "referenceId": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "reason",
          "points",
          "referenceId",
          "createdAt"
        ],
        "type": "object"
      },
      "api.PonsV2Deployment": {
        "properties": {
          "buybackEnabled": {
            "type": "boolean"
          },
          "chain": {
            "enum": [
              "robinhood"
            ],
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "creatorTaxBps": {
            "type": "number"
          },
          "curveAddress": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "launchFeeFundingWithdrawalId": {
            "type": "string"
          },
          "launchFeeTicketId": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "publicAccountId": {
            "type": "string"
          },
          "snipe": {
            "properties": {
              "amountMicros": {
                "type": "string"
              },
              "autoSellAfterSeconds": {
                "enum": [
                  3
                ],
                "format": "int64",
                "type": "integer"
              },
              "exemptFromAntiSnipeTax": {
                "type": "boolean"
              },
              "ruleId": {
                "type": "string"
              },
              "slippagePercentage": {
                "type": "string"
              },
              "walletCount": {
                "type": "number"
              },
              "walletGroupId": {
                "type": "string"
              }
            },
            "required": [
              "ruleId",
              "walletGroupId",
              "walletCount",
              "amountMicros",
              "slippagePercentage"
            ],
            "type": "object"
          },
          "state": {
            "enum": [
              "queued",
              "submitted",
              "confirmed",
              "failed"
            ],
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "terms": {
            "$ref": "#/components/schemas/api.PonsV2Terms"
          },
          "tokenAddress": {
            "type": "string"
          },
          "txHash": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "xPostUrl": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "publicAccountId",
          "chain",
          "state",
          "name",
          "symbol",
          "logoUrl",
          "description",
          "xPostUrl",
          "creatorTaxBps",
          "buybackEnabled",
          "terms",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.PonsV2PairAsset": {
        "properties": {
          "address": {
            "type": "string"
          },
          "assetClass": {
            "enum": [
              "native",
              "stablecoin",
              "equity",
              "crypto"
            ],
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "symbol",
          "name",
          "decimals",
          "assetClass"
        ],
        "type": "object"
      },
      "api.PonsV2Terms": {
        "properties": {
          "curveFeeBps": {
            "type": "number"
          },
          "economicsDigest": {
            "type": "string"
          },
          "factory": {
            "type": "string"
          },
          "factoryCodeHash": {
            "type": "string"
          },
          "graduationThresholdRaw": {
            "type": "string"
          },
          "launchConfigId": {
            "type": "number"
          },
          "launchFeeMicros": {
            "type": "string"
          },
          "launchFeeRaw": {
            "type": "string"
          },
          "maxCreatorTaxBps": {
            "type": "number"
          },
          "nativePriceUsdMicros": {
            "type": "string"
          },
          "pairAsset": {
            "$ref": "#/components/schemas/api.PonsV2PairAsset"
          },
          "phantomQuoteRaw": {
            "type": "string"
          },
          "poolFee": {
            "type": "number"
          },
          "snipeTaxSeconds": {
            "type": "number"
          },
          "snipeTaxStartBps": {
            "type": "number"
          },
          "supplyRaw": {
            "type": "string"
          },
          "tickSpacing": {
            "type": "number"
          }
        },
        "required": [
          "factory",
          "factoryCodeHash",
          "launchConfigId",
          "pairAsset",
          "launchFeeRaw",
          "launchFeeMicros",
          "nativePriceUsdMicros",
          "economicsDigest",
          "supplyRaw",
          "curveFeeBps",
          "phantomQuoteRaw",
          "graduationThresholdRaw",
          "poolFee",
          "tickSpacing",
          "maxCreatorTaxBps",
          "snipeTaxStartBps",
          "snipeTaxSeconds"
        ],
        "type": "object"
      },
      "api.PortfolioBalance": {
        "properties": {
          "address": {
            "type": "string"
          },
          "balanceRaw": {
            "type": "string"
          },
          "fetchedAt": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "balanceRaw",
          "fetchedAt"
        ],
        "type": "object"
      },
      "api.PortfolioHistoryPoint": {
        "properties": {
          "capturedAt": {
            "type": "string"
          },
          "positionsValueUSD": {
            "type": "string"
          },
          "starswapBalanceUSD": {
            "type": "string"
          },
          "valueUSD": {
            "type": "string"
          }
        },
        "required": [
          "capturedAt",
          "valueUSD",
          "positionsValueUSD",
          "starswapBalanceUSD"
        ],
        "type": "object"
      },
      "api.PortfolioHistoryRange": {
        "enum": [
          "day",
          "week",
          "month",
          "all"
        ],
        "type": "string"
      },
      "api.PortfolioPosition": {
        "properties": {
          "address": {
            "type": "string"
          },
          "averageBuyPriceUSD": {
            "type": "string"
          },
          "balanceRaw": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "logo": {
            "type": "string"
          },
          "marketCapUSD": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "native": {
            "type": "boolean"
          },
          "openedAt": {
            "type": "string"
          },
          "pnlPercentage": {
            "type": "string"
          },
          "priceChange24hPercentage": {
            "type": "string"
          },
          "priceUSD": {
            "type": "string"
          },
          "realizedPnlUSD": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "totalPnlUSD": {
            "type": "string"
          },
          "unrealizedPnlUSD": {
            "type": "string"
          },
          "valueUSD": {
            "type": "string"
          },
          "withdrawableRaw": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "symbol",
          "name",
          "decimals",
          "balanceRaw",
          "native"
        ],
        "type": "object"
      },
      "api.PublicRebalanceStatus": {
        "properties": {
          "active": {
            "anyOf": [
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "properties": {
                  "amountMicros": {
                    "type": "string"
                  },
                  "fromChain": {
                    "type": "string"
                  },
                  "state": {
                    "enum": [
                      "prepared",
                      "submitted",
                      "completed",
                      "failed"
                    ],
                    "type": "string"
                  },
                  "toChain": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "fromChain",
                  "toChain",
                  "amountMicros",
                  "state",
                  "updatedAt"
                ],
                "type": "object"
              }
            ],
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "evaluationIntervalSeconds": {
            "type": "number"
          },
          "minimumTransferMicros": {
            "type": "string"
          },
          "nextEvaluationAt": {
            "type": "string"
          },
          "paused": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled",
          "paused",
          "minimumTransferMicros",
          "evaluationIntervalSeconds",
          "active"
        ],
        "type": "object"
      },
      "api.PumpFunRewardSummary": {
        "properties": {
          "chain": {
            "type": "string"
          },
          "provider": {
            "enum": [
              "pumpfun"
            ],
            "type": "string"
          },
          "totalClaimableLamports": {
            "type": "string"
          },
          "wallets": {
            "items": {
              "$ref": "#/components/schemas/api.PumpFunRewardWallet"
            },
            "type": "array"
          }
        },
        "required": [
          "provider",
          "chain",
          "totalClaimableLamports",
          "wallets"
        ],
        "type": "object"
      },
      "api.PumpFunRewardWallet": {
        "properties": {
          "address": {
            "type": "string"
          },
          "pumpLamports": {
            "type": "string"
          },
          "pumpSwapLamports": {
            "type": "string"
          },
          "totalLamports": {
            "type": "string"
          },
          "walletId": {
            "type": "string"
          },
          "walletName": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "walletName",
          "address",
          "pumpLamports",
          "pumpSwapLamports",
          "totalLamports"
        ],
        "type": "object"
      },
      "api.RecapChain": {
        "properties": {
          "chainKey": {
            "type": "string"
          },
          "chainName": {
            "type": "string"
          },
          "fills": {
            "type": "number"
          }
        },
        "required": [
          "chainKey",
          "chainName",
          "fills"
        ],
        "type": "object"
      },
      "api.RecapPayload": {
        "properties": {
          "chains": {
            "items": {
              "$ref": "#/components/schemas/api.RecapChain"
            },
            "type": "array"
          },
          "closedTrades": {
            "type": "number"
          },
          "fills": {
            "type": "number"
          },
          "kind": {
            "enum": [
              "recap"
            ],
            "type": "string"
          },
          "longestHoldSeconds": {
            "type": "number"
          },
          "netRealizedUSD": {
            "type": "string"
          },
          "periodEnd": {
            "type": "string"
          },
          "periodStart": {
            "type": "string"
          },
          "pointsEarned": {
            "type": "string"
          },
          "profitableTrades": {
            "type": "number"
          },
          "referralCode": {
            "type": "string"
          },
          "sharedAt": {
            "type": "string"
          },
          "version": {
            "type": "number"
          }
        },
        "required": [
          "version",
          "kind",
          "periodStart",
          "periodEnd",
          "closedTrades",
          "profitableTrades",
          "fills",
          "netRealizedUSD",
          "chains",
          "referralCode",
          "sharedAt"
        ],
        "type": "object"
      },
      "api.ReferralReward": {
        "properties": {
          "amountMicros": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "policyVersion": {
            "type": "string"
          },
          "tradeId": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tradeId",
          "amountMicros",
          "policyVersion",
          "createdAt"
        ],
        "type": "object"
      },
      "api.ReserveEntry": {
        "properties": {
          "availableMicros": {
            "type": "string"
          },
          "chain": {
            "$ref": "#/components/schemas/api.Chain"
          },
          "finality": {
            "$ref": "#/components/schemas/api.FinalityPoint"
          },
          "inFlightMicros": {
            "type": "string"
          },
          "observedAt": {
            "type": "string"
          },
          "observedMicros": {
            "type": "string"
          },
          "reservedMicros": {
            "type": "string"
          },
          "targetBps": {
            "type": "string"
          }
        },
        "required": [
          "chain",
          "observedMicros",
          "availableMicros",
          "reservedMicros",
          "inFlightMicros",
          "targetBps",
          "observedAt",
          "finality"
        ],
        "type": "object"
      },
      "api.RevenueAccount": {
        "properties": {
          "grossRevenueMicros": {
            "type": "string"
          },
          "nativeFeeValueMicros": {
            "type": "string"
          },
          "netRevenueMicros": {
            "type": "string"
          },
          "referralCode": {
            "type": "string"
          },
          "referralRewardsMicros": {
            "type": "string"
          }
        },
        "required": [
          "referralCode",
          "grossRevenueMicros",
          "referralRewardsMicros",
          "netRevenueMicros",
          "nativeFeeValueMicros"
        ],
        "type": "object"
      },
      "api.RevenueValues": {
        "properties": {
          "grossRevenueMicros": {
            "type": "string"
          },
          "nativeFeeValueMicros": {
            "type": "string"
          },
          "netRevenueMicros": {
            "type": "string"
          },
          "referralRewardsMicros": {
            "type": "string"
          }
        },
        "required": [
          "grossRevenueMicros",
          "referralRewardsMicros",
          "netRevenueMicros",
          "nativeFeeValueMicros"
        ],
        "type": "object"
      },
      "api.SessionUser": {
        "properties": {
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/api.WalletAddress"
            },
            "type": "array"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "recoveryConfirmed": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "email",
          "addresses",
          "recoveryConfirmed"
        ],
        "type": "object"
      },
      "api.SniperFeePayment": {
        "enum": [
          "buy_amount",
          "native_balance"
        ],
        "type": "string"
      },
      "api.SniperFeePolicy": {
        "anyOf": [
          {
            "properties": {
              "feeBps": {
                "enum": [
                  50
                ],
                "format": "int64",
                "type": "integer"
              },
              "version": {
                "enum": [
                  "sniper-fee-v1"
                ],
                "type": "string"
              }
            },
            "required": [
              "version",
              "feeBps"
            ],
            "type": "object"
          },
          {
            "properties": {
              "feeBps": {
                "enum": [
                  10
                ],
                "format": "int64",
                "type": "integer"
              },
              "version": {
                "enum": [
                  "sniper-fee-10bps-v1"
                ],
                "type": "string"
              }
            },
            "required": [
              "version",
              "feeBps"
            ],
            "type": "object"
          }
        ]
      },
      "api.SniperFunding": {
        "enum": [
          "settlement",
          "native"
        ],
        "type": "string"
      },
      "api.SniperLaunchpad": {
        "enum": [
          "any",
          "unknown",
          "pons",
          "flap",
          "trench",
          "long_xyz",
          "bankr",
          "bags",
          "pools_trade",
          "uniswap",
          "fourmeme",
          "stonkfun",
          "raydium"
        ],
        "type": "string"
      },
      "api.SniperProtocol": {
        "enum": [
          "token_deployment",
          "uniswap_v4",
          "pons",
          "pons_v2",
          "flap",
          "fourmeme",
          "v3_pool",
          "v2_pool",
          "raydium_launchlab"
        ],
        "type": "string"
      },
      "api.SniperRule": {
        "properties": {
          "allocations": {
            "items": {
              "$ref": "#/components/schemas/api.SniperRuleAllocation"
            },
            "type": "array"
          },
          "autoSellAfterSeconds": {
            "enum": [
              3
            ],
            "format": "int64",
            "type": "integer"
          },
          "chain": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "deployerAddress": {
            "title": "Compatibility alias returned only for deployer targets.\n",
            "type": "string"
          },
          "expiresAt": {
            "type": "string"
          },
          "feePayment": {
            "$ref": "#/components/schemas/api.SniperFeePayment"
          },
          "feePolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/api.SniperFeePolicy"
              }
            ],
            "title": "Missing only on rules created before sniper fee policies were versioned.\n"
          },
          "funding": {
            "$ref": "#/components/schemas/api.SniperFunding"
          },
          "id": {
            "type": "string"
          },
          "launchpad": {
            "allOf": [
              {
                "$ref": "#/components/schemas/api.SniperLaunchpad"
              }
            ],
            "title": "Missing only on rules created before launchpad filters. Missing matches any\nlaunchpad.\n"
          },
          "payPonsAntiSniperTax": {
            "type": "boolean"
          },
          "slippagePercentage": {
            "type": "string"
          },
          "startBlock": {
            "type": "string"
          },
          "state": {
            "enum": [
              "armed",
              "triggered",
              "completed",
              "partial_failed",
              "failed",
              "cancelled",
              "expired"
            ],
            "type": "string"
          },
          "target": {
            "$ref": "#/components/schemas/api.SniperRuleTarget"
          },
          "trigger": {
            "$ref": "#/components/schemas/api.SniperRuleTrigger"
          },
          "updatedAt": {
            "type": "string"
          },
          "watchDurationSeconds": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "chain",
          "target",
          "funding",
          "feePayment",
          "allocations",
          "slippagePercentage",
          "watchDurationSeconds",
          "startBlock",
          "state",
          "expiresAt",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.SniperRuleAllocation": {
        "anyOf": [
          {
            "properties": {
              "amountMicros": {
                "type": "string"
              },
              "amountRaw": {
                "type": "string"
              },
              "error": {
                "type": "string"
              },
              "funding": {
                "enum": [
                  "settlement"
                ],
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "quoteAttempt": {
                "type": "number"
              },
              "quoteId": {
                "type": "string"
              },
              "sellAfter": {
                "type": "string"
              },
              "sellQuoteId": {
                "type": "string"
              },
              "sellTradeId": {
                "type": "string"
              },
              "state": {
                "enum": [
                  "armed",
                  "queued",
                  "sell_waiting",
                  "sell_queued",
                  "confirmed",
                  "failed"
                ],
                "type": "string"
              },
              "tradeId": {
                "type": "string"
              },
              "walletId": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "walletId",
              "state",
              "quoteAttempt",
              "funding",
              "amountMicros"
            ],
            "type": "object"
          },
          {
            "properties": {
              "amountMicros": {
                "type": "string"
              },
              "amountRaw": {
                "type": "string"
              },
              "error": {
                "type": "string"
              },
              "funding": {
                "enum": [
                  "native"
                ],
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "quoteAttempt": {
                "type": "number"
              },
              "quoteId": {
                "type": "string"
              },
              "sellAfter": {
                "type": "string"
              },
              "sellQuoteId": {
                "type": "string"
              },
              "sellTradeId": {
                "type": "string"
              },
              "state": {
                "enum": [
                  "armed",
                  "queued",
                  "sell_waiting",
                  "sell_queued",
                  "confirmed",
                  "failed"
                ],
                "type": "string"
              },
              "tradeId": {
                "type": "string"
              },
              "walletId": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "walletId",
              "state",
              "quoteAttempt",
              "funding",
              "amountRaw"
            ],
            "type": "object"
          }
        ]
      },
      "api.SniperRuleTarget": {
        "anyOf": [
          {
            "properties": {
              "address": {
                "type": "string"
              },
              "kind": {
                "enum": [
                  "deployer"
                ],
                "type": "string"
              },
              "ticker": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "address"
            ],
            "type": "object"
          },
          {
            "properties": {
              "kind": {
                "enum": [
                  "ticker"
                ],
                "type": "string"
              },
              "ticker": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "ticker"
            ],
            "type": "object"
          }
        ]
      },
      "api.SniperRuleTrigger": {
        "properties": {
          "blockHash": {
            "type": "string"
          },
          "blockNumber": {
            "type": "string"
          },
          "detectedAt": {
            "type": "string"
          },
          "executeAfter": {
            "type": "string"
          },
          "factoryAddress": {
            "type": "string"
          },
          "hooksAddress": {
            "type": "string"
          },
          "launchpad": {
            "$ref": "#/components/schemas/api.SniperLaunchpad"
          },
          "pairTokenAddress": {
            "type": "string"
          },
          "poolAddress": {
            "type": "string"
          },
          "poolId": {
            "type": "string"
          },
          "preBondingFactoryAddress": {
            "type": "string"
          },
          "protocol": {
            "$ref": "#/components/schemas/api.SniperProtocol"
          },
          "providerSource": {
            "type": "string"
          },
          "providerSourceName": {
            "type": "string"
          },
          "quoteDeadline": {
            "type": "string"
          },
          "source": {
            "enum": [
              "chain_scan",
              "mobula_pulse_v2",
              "pons_v2_factory_event",
              "uniswap_v4_pool_manager_event",
              "solana_launchlab"
            ],
            "type": "string"
          },
          "tokenAddress": {
            "type": "string"
          },
          "transactionHash": {
            "type": "string"
          }
        },
        "required": [
          "protocol",
          "tokenAddress",
          "detectedAt",
          "quoteDeadline"
        ],
        "type": "object"
      },
      "api.SolanaAccountMeta": {
        "anyOf": [
          {
            "properties": {
              "address": {
                "type": "string"
              },
              "kind": {
                "enum": [
                  "address"
                ],
                "type": "string"
              },
              "role": {
                "enum": [
                  "readonly",
                  "writable"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "address",
              "role"
            ],
            "type": "object"
          },
          {
            "properties": {
              "kind": {
                "enum": [
                  "feePayer"
                ],
                "type": "string"
              },
              "role": {
                "enum": [
                  "writableSigner"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "role"
            ],
            "type": "object"
          }
        ]
      },
      "api.SolanaChainDescriptor": {
        "properties": {
          "chainId": {
            "type": "number"
          },
          "commitment": {
            "enum": [
              "finalized"
            ],
            "type": "string"
          },
          "display": {
            "properties": {
              "accent": {
                "type": "string"
              },
              "accentText": {
                "type": "string"
              }
            },
            "required": [
              "accent",
              "accentText"
            ],
            "type": "object"
          },
          "explorerUrl": {
            "type": "string"
          },
          "family": {
            "enum": [
              "solana"
            ],
            "type": "string"
          },
          "genesisHash": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "maxTradeGasReserveMicros": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nativeCurrency": {
            "properties": {
              "decimals": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "symbol",
              "decimals"
            ],
            "type": "object"
          },
          "portfolioProvider": {
            "enum": [
              "mobula"
            ],
            "nullable": true,
            "type": "string"
          },
          "sniper": {
            "properties": {
              "feeBps": {
                "type": "number"
              },
              "nativeFunding": {
                "type": "boolean"
              }
            },
            "required": [
              "feeBps",
              "nativeFunding"
            ],
            "type": "object"
          },
          "ticketLifetime": {
            "properties": {
              "kind": {
                "enum": [
                  "slot"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          "token": {
            "properties": {
              "address": {
                "type": "string"
              },
              "decimals": {
                "type": "number"
              },
              "program": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              }
            },
            "required": [
              "address",
              "symbol",
              "decimals"
            ],
            "type": "object"
          },
          "tradingEnabled": {
            "type": "boolean"
          },
          "vault": {
            "properties": {
              "authority": {
                "type": "string"
              },
              "config": {
                "type": "string"
              },
              "programId": {
                "type": "string"
              },
              "tokenAccount": {
                "type": "string"
              }
            },
            "required": [
              "programId",
              "config",
              "authority",
              "tokenAccount"
            ],
            "type": "object"
          },
          "walletRpcUrl": {
            "type": "string"
          }
        },
        "required": [
          "family",
          "genesisHash",
          "commitment",
          "vault",
          "ticketLifetime",
          "key",
          "name",
          "chainId",
          "nativeCurrency",
          "walletRpcUrl",
          "token",
          "portfolioProvider",
          "tradingEnabled"
        ],
        "type": "object"
      },
      "api.SolanaProgramClaim": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/api.SolanaAccountMeta"
            },
            "type": "array"
          },
          "instructionDataBase64": {
            "type": "string"
          },
          "issuedAt": {
            "properties": {
              "kind": {
                "enum": [
                  "slot"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          "kind": {
            "enum": [
              "solana_program_instruction"
            ],
            "type": "string"
          },
          "nullifier": {
            "type": "string"
          },
          "programId": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "validUntil": {
            "properties": {
              "kind": {
                "enum": [
                  "slot"
                ],
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          "verification": {
            "properties": {
              "algorithm": {
                "enum": [
                  "secp256k1_recover"
                ],
                "type": "string"
              },
              "messageBase64": {
                "type": "string"
              },
              "publicKey": {
                "type": "string"
              },
              "signatureBase64": {
                "type": "string"
              }
            },
            "required": [
              "algorithm",
              "publicKey",
              "messageBase64",
              "signatureBase64"
            ],
            "type": "object"
          }
        },
        "required": [
          "kind",
          "programId",
          "token",
          "nullifier",
          "accounts",
          "instructionDataBase64",
          "verification",
          "issuedAt",
          "validUntil"
        ],
        "type": "object"
      },
      "api.Ticket": {
        "properties": {
          "amountMicros": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "recipient",
          "amountMicros"
        ],
        "type": "object"
      },
      "api.TicketEntry": {
        "properties": {
          "chain": {
            "type": "string"
          },
          "claim": {
            "$ref": "#/components/schemas/api.ClaimDescriptor"
          },
          "createdAt": {
            "type": "string"
          },
          "publicAccountId": {
            "type": "string"
          },
          "state": {
            "enum": [
              "reserved",
              "spent",
              "refunded",
              "expired_pending_check"
            ],
            "type": "string"
          },
          "ticket": {
            "properties": {
              "amountMicros": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "recipient": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "recipient",
              "amountMicros"
            ],
            "type": "object"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "publicAccountId",
          "chain",
          "ticket",
          "claim",
          "state",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.TicketEntry_2": {
        "properties": {
          "chain": {
            "$ref": "#/components/schemas/api.Chain"
          },
          "claim": {
            "$ref": "#/components/schemas/api.ClaimDescriptor"
          },
          "createdAt": {
            "type": "string"
          },
          "publicAccountId": {
            "type": "string"
          },
          "state": {
            "enum": [
              "reserved",
              "spent",
              "refunded",
              "expired_pending_check"
            ],
            "type": "string"
          },
          "ticket": {
            "$ref": "#/components/schemas/api.Ticket"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "publicAccountId",
          "chain",
          "ticket",
          "claim",
          "state",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.Trade": {
        "properties": {
          "amountInRaw": {
            "type": "string"
          },
          "broadcastAt": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "expectedAmountOutRaw": {
            "type": "string"
          },
          "finalizedAt": {
            "type": "string"
          },
          "gasChargedMicros": {
            "type": "string"
          },
          "gasReservedMicros": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "marketCapMoment": {
            "enum": [
              "quote",
              "attempt",
              "entry",
              "exit"
            ],
            "type": "string"
          },
          "marketCapTimestamp": {
            "type": "string"
          },
          "marketCapUSD": {
            "type": "string"
          },
          "minimumAmountOutRaw": {
            "type": "string"
          },
          "netProceedsRaw": {
            "type": "string"
          },
          "ownerAccountId": {
            "type": "string"
          },
          "pnlUSD": {
            "type": "string"
          },
          "publicAccountId": {
            "type": "string"
          },
          "quoteId": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "settledAmountOutRaw": {
            "type": "string"
          },
          "side": {
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "state": {
            "enum": [
              "queued",
              "submitted",
              "confirmed",
              "failed",
              "awaiting_ticket_refund"
            ],
            "type": "string"
          },
          "tokenIn": {
            "$ref": "#/components/schemas/api.TradeToken"
          },
          "tokenOut": {
            "$ref": "#/components/schemas/api.TradeToken"
          },
          "transaction": {
            "$ref": "#/components/schemas/api.TransactionRef"
          },
          "updatedAt": {
            "type": "string"
          },
          "vaultFeeMicros": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "quoteId",
          "ownerAccountId",
          "publicAccountId",
          "side",
          "chain",
          "state",
          "tokenIn",
          "tokenOut",
          "amountInRaw",
          "expectedAmountOutRaw",
          "minimumAmountOutRaw",
          "recipient",
          "gasReservedMicros",
          "gasChargedMicros",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.TradeRoute": {
        "properties": {
          "aggregator": {
            "type": "string"
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/api.TradeRouteLeg"
            },
            "type": "array"
          },
          "routerAddress": {
            "type": "string"
          }
        },
        "required": [
          "aggregator",
          "routerAddress",
          "legs"
        ],
        "type": "object"
      },
      "api.TradeRouteLeg": {
        "properties": {
          "amountInRaw": {
            "type": "string"
          },
          "amountOutRaw": {
            "type": "string"
          },
          "executorAddress": {
            "type": "string"
          },
          "feeAmountRaw": {
            "type": "string"
          },
          "feeBps": {
            "type": "number"
          },
          "feeTokenAddress": {
            "type": "string"
          },
          "poolAddress": {
            "type": "string"
          },
          "poolType": {
            "type": "string"
          },
          "shareBps": {
            "type": "number"
          },
          "tokenIn": {
            "$ref": "#/components/schemas/api.TradeToken"
          },
          "tokenOut": {
            "$ref": "#/components/schemas/api.TradeToken"
          },
          "venue": {
            "type": "string"
          }
        },
        "required": [
          "venue",
          "executorAddress",
          "tokenIn",
          "tokenOut"
        ],
        "type": "object"
      },
      "api.TradeToken": {
        "properties": {
          "address": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "symbol": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "symbol",
          "decimals"
        ],
        "type": "object"
      },
      "api.TradingStrategy": {
        "properties": {
          "allowanceMicros": {
            "type": "string"
          },
          "amountPerCycleMicros": {
            "type": "string"
          },
          "amountPerCycleRaw": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "circuitBreakerBps": {
            "type": "number"
          },
          "consecutiveFailures": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "cycle": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "intervalSeconds": {
            "type": "number"
          },
          "kind": {
            "enum": [
              "dca",
              "pulse"
            ],
            "type": "string"
          },
          "lastAction": {
            "$ref": "#/components/schemas/api.TradingStrategyAction"
          },
          "lastRunAt": {
            "type": "string"
          },
          "lastSampleAt": {
            "type": "string"
          },
          "lastSamplePriceUSD": {
            "type": "string"
          },
          "nextRunAt": {
            "type": "string"
          },
          "pauseReason": {
            "enum": [
              "user",
              "circuit_breaker",
              "failures"
            ],
            "type": "string"
          },
          "pendingSpendMicros": {
            "type": "string"
          },
          "pendingTradeId": {
            "type": "string"
          },
          "proceedsMicros": {
            "type": "string"
          },
          "publicAccountId": {
            "type": "string"
          },
          "side": {
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "slippagePercentage": {
            "type": "string"
          },
          "spentMicros": {
            "type": "string"
          },
          "state": {
            "enum": [
              "active",
              "paused",
              "completed",
              "stopped"
            ],
            "type": "string"
          },
          "stepBps": {
            "type": "number"
          },
          "token": {
            "$ref": "#/components/schemas/api.TradingStrategyToken"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "publicAccountId",
          "kind",
          "chain",
          "token",
          "allowanceMicros",
          "spentMicros",
          "intervalSeconds",
          "slippagePercentage",
          "state",
          "cycle",
          "nextRunAt",
          "consecutiveFailures",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.TradingStrategyAction": {
        "properties": {
          "amountRaw": {
            "type": "string"
          },
          "at": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "sample",
              "buy",
              "sell",
              "circuit_breaker",
              "error"
            ],
            "type": "string"
          },
          "priceChangeBps": {
            "type": "number"
          },
          "priceUSD": {
            "type": "string"
          },
          "tradeId": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "at"
        ],
        "type": "object"
      },
      "api.TradingStrategyToken": {
        "properties": {
          "address": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "logo": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "symbol",
          "name",
          "decimals"
        ],
        "type": "object"
      },
      "api.TransactionRef": {
        "properties": {
          "finality": {
            "$ref": "#/components/schemas/api.FinalityPoint"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "finality"
        ],
        "type": "object"
      },
      "api.WalletAddress": {
        "properties": {
          "address": {
            "type": "string"
          },
          "family": {
            "$ref": "#/components/schemas/api.NetworkFamily"
          }
        },
        "required": [
          "family",
          "address"
        ],
        "type": "object"
      },
      "api.WalletImportPreviewItem": {
        "properties": {
          "address": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "family": {
            "$ref": "#/components/schemas/api.NetworkFamily"
          },
          "totalValueUSD": {
            "type": "string"
          }
        },
        "required": [
          "family",
          "address"
        ],
        "type": "object"
      },
      "api.WalletPortfolioBatchItem": {
        "properties": {
          "error": {
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/api.WalletPortfolioResponse"
            },
            "type": "array"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "items"
        ],
        "type": "object"
      },
      "api.WalletPortfolioResponse": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/api.WalletAddress"
          },
          "canonicalBalanceRaw": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "nullable": true,
                "type": "boolean"
              }
            ],
            "nullable": true
          },
          "chain": {
            "type": "string"
          },
          "portfolio": {
            "anyOf": [
              {
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "balance": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/api.PortfolioBalance"
                      },
                      {
                        "nullable": true,
                        "type": "boolean"
                      }
                    ],
                    "nullable": true
                  },
                  "error": {
                    "type": "string"
                  },
                  "positions": {
                    "items": {
                      "$ref": "#/components/schemas/api.PortfolioPosition"
                    },
                    "type": "array"
                  },
                  "totalValueUSD": {
                    "type": "string"
                  }
                },
                "required": [
                  "address",
                  "balance",
                  "positions"
                ],
                "type": "object"
              },
              {
                "nullable": true,
                "type": "boolean"
              }
            ],
            "nullable": true
          },
          "rpcError": {
            "type": "string"
          },
          "walletId": {
            "type": "string"
          }
        },
        "required": [
          "walletId",
          "chain",
          "address",
          "canonicalBalanceRaw",
          "portfolio"
        ],
        "type": "object"
      },
      "api.WalletSummary": {
        "properties": {
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/api.WalletAddress"
            },
            "type": "array"
          },
          "balance": {
            "properties": {
              "availableMicros": {
                "type": "string"
              },
              "gasReservedMicros": {
                "type": "string"
              },
              "pendingSettlementMicros": {
                "type": "string"
              },
              "reservedMicros": {
                "type": "string"
              }
            },
            "required": [
              "availableMicros",
              "reservedMicros",
              "gasReservedMicros",
              "pendingSettlementMicros"
            ],
            "type": "object"
          },
          "createdAt": {
            "type": "string"
          },
          "depositRecipientId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "imported": {
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "main",
              "subwallet"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ownerAccountId": {
            "type": "string"
          },
          "state": {
            "enum": [
              "active",
              "archived"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "ownerAccountId",
          "depositRecipientId",
          "kind",
          "name",
          "state",
          "addresses",
          "balance",
          "createdAt"
        ],
        "type": "object"
      },
      "api.WalletTracker": {
        "properties": {
          "address": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "emoji": {
            "type": "string"
          },
          "family": {
            "$ref": "#/components/schemas/api.NetworkFamily"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "lastSyncedAt": {
            "type": "string"
          },
          "sound": {
            "$ref": "#/components/schemas/api.WalletTrackerSound"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "family",
          "address",
          "label",
          "emoji",
          "sound",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.WalletTrackerEventType": {
        "enum": [
          "buy",
          "sell",
          "first_buy",
          "buy_more",
          "first_sell",
          "sell_partial",
          "sell_all",
          "add",
          "remove",
          "burn",
          "transfer_in",
          "transfer_out",
          "launch",
          "fee_claim"
        ],
        "type": "string"
      },
      "api.WalletTrackerFileItem": {
        "properties": {
          "address": {
            "type": "string"
          },
          "alertsOnBubble": {
            "type": "boolean"
          },
          "alertsOnFeed": {
            "type": "boolean"
          },
          "alertsOnToast": {
            "type": "boolean"
          },
          "emoji": {
            "type": "string"
          },
          "eventTypes": {
            "items": {
              "$ref": "#/components/schemas/api.WalletTrackerEventType"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "sound": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "name"
        ],
        "type": "object"
      },
      "api.WalletTrackerMarketAction": {
        "enum": [
          "entry",
          "add",
          "clip",
          "exit",
          "sell"
        ],
        "type": "string"
      },
      "api.WalletTrackerMarketPosition": {
        "properties": {
          "action": {
            "$ref": "#/components/schemas/api.WalletTrackerMarketAction"
          },
          "averageEntryPriceUSD": {
            "type": "string"
          },
          "baseAmountAfter": {
            "type": "string"
          },
          "pnlBasis": {
            "enum": [
              "retained_average_cost"
            ],
            "type": "string"
          },
          "realizedPnlPercentage": {
            "type": "string"
          },
          "realizedPnlUSD": {
            "type": "string"
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "api.WalletTrackerMarketTrade": {
        "properties": {
          "baseAmount": {
            "type": "string"
          },
          "baseAmountUSD": {
            "type": "string"
          },
          "baseToken": {
            "$ref": "#/components/schemas/api.WalletTrackerToken"
          },
          "baseTokenMarketCapUSD": {
            "type": "string"
          },
          "baseTokenPriceUSD": {
            "type": "string"
          },
          "chainKey": {
            "type": "string"
          },
          "eventTypes": {
            "items": {
              "$ref": "#/components/schemas/api.WalletTrackerEventType"
            },
            "type": "array"
          },
          "feesUSD": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string"
          },
          "position": {
            "$ref": "#/components/schemas/api.WalletTrackerMarketPosition"
          },
          "quoteAmount": {
            "type": "string"
          },
          "quoteAmountUSD": {
            "type": "string"
          },
          "quoteToken": {
            "$ref": "#/components/schemas/api.WalletTrackerToken"
          },
          "side": {
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "trackerEmoji": {
            "type": "string"
          },
          "trackerId": {
            "type": "string"
          },
          "trackerLabel": {
            "type": "string"
          },
          "trackerSound": {
            "$ref": "#/components/schemas/api.WalletTrackerSound"
          },
          "transactionHash": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          }
        },
        "required": [
          "position",
          "id",
          "trackerId",
          "trackerLabel",
          "trackerEmoji",
          "trackerSound",
          "walletAddress",
          "chainKey",
          "side",
          "eventTypes",
          "baseToken",
          "quoteToken",
          "baseAmount",
          "quoteAmount",
          "transactionHash",
          "occurredAt"
        ],
        "type": "object"
      },
      "api.WalletTrackerPositionEntry": {
        "properties": {
          "entryMarketCapUSD": {
            "type": "string"
          },
          "entryPriceUSD": {
            "type": "string"
          },
          "observedBaseAmount": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string"
          },
          "trackerEmoji": {
            "type": "string"
          },
          "trackerId": {
            "type": "string"
          },
          "trackerLabel": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          }
        },
        "required": [
          "trackerId",
          "trackerLabel",
          "trackerEmoji",
          "walletAddress",
          "entryPriceUSD",
          "occurredAt"
        ],
        "type": "object"
      },
      "api.WalletTrackerSettings": {
        "properties": {
          "eventTypes": {
            "items": {
              "$ref": "#/components/schemas/api.WalletTrackerEventType"
            },
            "type": "array"
          }
        },
        "required": [
          "eventTypes"
        ],
        "type": "object"
      },
      "api.WalletTrackerSound": {
        "enum": [
          "none",
          "chime",
          "bell",
          "pop"
        ],
        "type": "string"
      },
      "api.WalletTrackerToken": {
        "properties": {
          "address": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "logo": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "symbol",
          "name",
          "decimals"
        ],
        "type": "object"
      },
      "api.WalletTrackerTrade": {
        "properties": {
          "baseAmount": {
            "type": "string"
          },
          "baseAmountUSD": {
            "type": "string"
          },
          "baseToken": {
            "$ref": "#/components/schemas/api.WalletTrackerToken"
          },
          "baseTokenMarketCapUSD": {
            "type": "string"
          },
          "baseTokenPriceUSD": {
            "type": "string"
          },
          "chainKey": {
            "type": "string"
          },
          "eventTypes": {
            "items": {
              "$ref": "#/components/schemas/api.WalletTrackerEventType"
            },
            "type": "array"
          },
          "feesUSD": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string"
          },
          "quoteAmount": {
            "type": "string"
          },
          "quoteAmountUSD": {
            "type": "string"
          },
          "quoteToken": {
            "$ref": "#/components/schemas/api.WalletTrackerToken"
          },
          "side": {
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "trackerEmoji": {
            "type": "string"
          },
          "trackerId": {
            "type": "string"
          },
          "trackerLabel": {
            "type": "string"
          },
          "trackerSound": {
            "$ref": "#/components/schemas/api.WalletTrackerSound"
          },
          "transactionHash": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "trackerId",
          "trackerLabel",
          "trackerEmoji",
          "trackerSound",
          "walletAddress",
          "chainKey",
          "side",
          "eventTypes",
          "baseToken",
          "quoteToken",
          "baseAmount",
          "quoteAmount",
          "transactionHash",
          "occurredAt"
        ],
        "type": "object"
      },
      "api.WithdrawalEntry": {
        "properties": {
          "amountRaw": {
            "type": "string"
          },
          "assetKind": {
            "enum": [
              "settlement",
              "native",
              "erc20",
              "spl",
              "token2022"
            ],
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "finalizedAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ownerAccountId": {
            "type": "string"
          },
          "publicAccountId": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "recipientKind": {
            "enum": [
              "address",
              "email"
            ],
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/api.WithdrawalState"
          },
          "ticketId": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "tokenDecimals": {
            "type": "number"
          },
          "transaction": {
            "$ref": "#/components/schemas/api.TransactionRef"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "ownerAccountId",
          "publicAccountId",
          "chain",
          "state",
          "assetKind",
          "token",
          "tokenDecimals",
          "amountRaw",
          "recipient",
          "recipientKind",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "api.WithdrawalState": {
        "enum": [
          "queued",
          "submitted",
          "confirmed",
          "failed",
          "awaiting_ticket_refund"
        ],
        "type": "string"
      }
    }
  },
  "info": {
    "title": "StarSwap API",
    "version": "1",
    "description": "Custodial wallets, market trading, and settlement. See https://starswap.cc/docs for authentication, amount units, and recovery guidance."
  },
  "openapi": "3.0.0",
  "paths": {
    "/account": {
      "get": {
        "operationId": "GET:api.account",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "createdAt": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "recoveryConfirmed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "email",
                    "addresses",
                    "recoveryConfirmed",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/activity": {
      "get": {
        "operationId": "GET:api.activity",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.ActivityEntry"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/auth/api-key-otp/request": {
      "post": {
        "operationId": "POST:api.requestApiKeyOtp",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "retryAfterSeconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "ok",
                    "retryAfterSeconds"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/auth/export-otp/request": {
      "post": {
        "operationId": "POST:api.requestExportOtp",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "retryAfterSeconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "ok",
                    "retryAfterSeconds"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/auth/logout": {
      "post": {
        "operationId": "POST:api.logout",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/auth/otp/request": {
      "post": {
        "operationId": "POST:api.requestOtp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "referralCode": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "capturedReferralCode": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "referralCodeStatus": {
                      "enum": [
                        "captured",
                        "retry"
                      ],
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "ok",
                    "retryAfterSeconds"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/auth/otp/verify": {
      "post": {
        "operationId": "POST:api.verifyOtpCode",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "email",
                  "code"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "csrfToken": {
                      "type": "string"
                    },
                    "recoveryCode": {
                      "type": "string"
                    },
                    "user": {
                      "$ref": "#/components/schemas/api.SessionUser"
                    }
                  },
                  "required": [
                    "user",
                    "csrfToken"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/balance": {
      "get": {
        "operationId": "GET:api.balance",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "availableMicros": {
                      "type": "string"
                    },
                    "gasReservedMicros": {
                      "type": "string"
                    },
                    "reservedMicros": {
                      "type": "string"
                    },
                    "totalMicros": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "availableMicros",
                    "reservedMicros",
                    "gasReservedMicros",
                    "totalMicros"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/chains": {
      "get": {
        "operationId": "GET:api.chains",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.ChainDescriptor"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/deposits": {
      "get": {
        "operationId": "GET:api.deposits",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.DepositEntry"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/internal/wallet-tracker-stream/refresh": {
      "post": {
        "operationId": "POST:api.refreshWalletTrackerStreamTargetEndpoint",
        "responses": {
          "200": {
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/internal/wallet-tracker-stream/targets": {
      "post": {
        "operationId": "POST:api.listWalletTrackerStreamTargets",
        "responses": {
          "200": {
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/ready": {
      "get": {
        "operationId": "GET:api.ready",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "app": {
                      "type": "string"
                    },
                    "commit": {
                      "type": "string"
                    },
                    "database_ok": {
                      "type": "boolean"
                    },
                    "image_tag": {
                      "type": "string"
                    },
                    "ledger_ok": {
                      "type": "boolean"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "uptime_seconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "app",
                    "commit",
                    "image_tag",
                    "uptime_seconds",
                    "ok",
                    "database_ok",
                    "ledger_ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/reserves": {
      "get": {
        "operationId": "GET:api.reserves",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.ReserveEntry"
                      },
                      "type": "array"
                    },
                    "rebalance": {
                      "$ref": "#/components/schemas/api.PublicRebalanceStatus"
                    },
                    "totalMicros": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "totalMicros",
                    "rebalance"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/security/key-export": {
      "post": {
        "operationId": "POST:api.exportKey",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "recoveryCode": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "recoveryCode"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "mnemonic": {
                      "type": "string"
                    },
                    "replacementRecoveryCode": {
                      "type": "string"
                    },
                    "secrets": {
                      "items": {
                        "$ref": "#/components/schemas/api.ExportedSecret"
                      },
                      "type": "array"
                    },
                    "walletId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "walletId",
                    "mnemonic",
                    "addresses",
                    "secrets",
                    "replacementRecoveryCode",
                    "expiresAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/security/recovery-confirm": {
      "post": {
        "operationId": "POST:api.confirmRecovery",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/status": {
      "get": {
        "operationId": "GET:api.status",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "app": {
                      "type": "string"
                    },
                    "commit": {
                      "type": "string"
                    },
                    "database_ok": {
                      "type": "boolean"
                    },
                    "image_tag": {
                      "type": "string"
                    },
                    "ledger_ok": {
                      "type": "boolean"
                    },
                    "uptime_seconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "app",
                    "commit",
                    "image_tag",
                    "database_ok",
                    "ledger_ok",
                    "uptime_seconds"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/tickets": {
      "get": {
        "operationId": "GET:api.tickets",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.TicketEntry_2"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createTicket",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountMicros": {
                    "type": "string"
                  },
                  "chain": {
                    "$ref": "#/components/schemas/api.Chain"
                  },
                  "recipient": {
                    "type": "string"
                  }
                },
                "required": [
                  "chain",
                  "amountMicros",
                  "recipient"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "$ref": "#/components/schemas/api.Chain"
                    },
                    "claim": {
                      "$ref": "#/components/schemas/api.ClaimDescriptor"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "reserved",
                        "spent",
                        "refunded",
                        "expired_pending_check"
                      ],
                      "type": "string"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/api.Ticket"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "publicAccountId",
                    "chain",
                    "ticket",
                    "claim",
                    "state",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/tickets/{id}": {
      "get": {
        "operationId": "GET:api.ticket",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "$ref": "#/components/schemas/api.Chain"
                    },
                    "claim": {
                      "$ref": "#/components/schemas/api.ClaimDescriptor"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "reserved",
                        "spent",
                        "refunded",
                        "expired_pending_check"
                      ],
                      "type": "string"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/api.Ticket"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "publicAccountId",
                    "chain",
                    "ticket",
                    "claim",
                    "state",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "GET:api.v1Account",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "email": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "mainWallet": {
                      "$ref": "#/components/schemas/api.WalletSummary"
                    },
                    "recoveryConfirmed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "email",
                    "recoveryConfirmed",
                    "mainWallet"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/account-transfers": {
      "post": {
        "operationId": "POST:api.transferAccountBalance",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountMicros": {
                    "type": "string"
                  },
                  "fromWalletId": {
                    "type": "string"
                  },
                  "recipientEmail": {
                    "type": "string"
                  }
                },
                "required": [
                  "fromWalletId",
                  "recipientEmail",
                  "amountMicros"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountMicros": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "fromWalletId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "recipientEmail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "fromWalletId",
                    "recipientEmail",
                    "amountMicros",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/account/api-key": {
      "delete": {
        "operationId": "DELETE:api.revokeApiKey",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "get": {
        "operationId": "GET:api.apiKeyMetadata",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "apiKey": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/api.ApiKeyMetadata"
                        },
                        {
                          "nullable": true,
                          "type": "boolean"
                        }
                      ],
                      "nullable": true
                    }
                  },
                  "required": [
                    "apiKey"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createApiKey",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "apiKey": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "prefix": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "apiKey",
                    "prefix",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "put": {
        "operationId": "PUT:api.rotateApiKey",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "apiKey": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "prefix": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "apiKey",
                    "prefix",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/account/portfolio-history": {
      "get": {
        "operationId": "GET:api.accountPortfolioHistory",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "range",
            "schema": {
              "$ref": "#/components/schemas/api.PortfolioHistoryRange"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "capturedAt": {
                      "type": "string"
                    },
                    "currentPositionsValueUSD": {
                      "type": "string"
                    },
                    "currentStarswapBalanceUSD": {
                      "type": "string"
                    },
                    "currentValueUSD": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.PortfolioHistoryPoint"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items",
                    "currentValueUSD",
                    "currentPositionsValueUSD",
                    "currentStarswapBalanceUSD",
                    "capturedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/chains": {
      "get": {
        "operationId": "GET:api.v1Chains",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.ChainDescriptor"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/deployments": {
      "get": {
        "operationId": "GET:api.listDeployments",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.PonsV2Deployment"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createDeployment",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "buybackEnabled": {
                    "type": "boolean"
                  },
                  "creatorTaxBps": {
                    "type": "number"
                  },
                  "description": {
                    "type": "string"
                  },
                  "expectedTerms": {
                    "properties": {
                      "economicsDigest": {
                        "type": "string"
                      },
                      "factory": {
                        "type": "string"
                      },
                      "factoryCodeHash": {
                        "type": "string"
                      },
                      "launchConfigId": {
                        "type": "number"
                      },
                      "launchFeeMicros": {
                        "type": "string"
                      },
                      "launchFeeRaw": {
                        "type": "string"
                      },
                      "nativePriceUsdMicros": {
                        "type": "string"
                      },
                      "pairToken": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "factory",
                      "factoryCodeHash",
                      "launchConfigId",
                      "launchFeeRaw",
                      "launchFeeMicros",
                      "nativePriceUsdMicros",
                      "economicsDigest",
                      "pairToken"
                    ],
                    "type": "object"
                  },
                  "launchFeeWalletId": {
                    "type": "string"
                  },
                  "launchpad": {
                    "enum": [
                      "pons_v2"
                    ],
                    "type": "string"
                  },
                  "logoUrl": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "pairToken": {
                    "type": "string"
                  },
                  "snipe": {
                    "properties": {
                      "amountMicros": {
                        "type": "string"
                      },
                      "autoSellAfterSeconds": {
                        "enum": [
                          3
                        ],
                        "format": "int64",
                        "type": "integer"
                      },
                      "exemptFromAntiSnipeTax": {
                        "type": "boolean"
                      },
                      "slippagePercentage": {
                        "type": "string"
                      },
                      "walletGroupId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "walletGroupId",
                      "amountMicros",
                      "slippagePercentage"
                    ],
                    "type": "object"
                  },
                  "symbol": {
                    "type": "string"
                  },
                  "walletId": {
                    "type": "string"
                  },
                  "xPostUrl": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "launchpad",
                  "name",
                  "symbol",
                  "pairToken",
                  "creatorTaxBps",
                  "buybackEnabled",
                  "expectedTerms"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "buybackEnabled": {
                      "type": "boolean"
                    },
                    "chain": {
                      "enum": [
                        "robinhood"
                      ],
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "creatorTaxBps": {
                      "type": "number"
                    },
                    "curveAddress": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "launchFeeFundingWithdrawalId": {
                      "type": "string"
                    },
                    "launchFeeTicketId": {
                      "type": "string"
                    },
                    "logoUrl": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "snipe": {
                      "properties": {
                        "amountMicros": {
                          "type": "string"
                        },
                        "autoSellAfterSeconds": {
                          "enum": [
                            3
                          ],
                          "format": "int64",
                          "type": "integer"
                        },
                        "exemptFromAntiSnipeTax": {
                          "type": "boolean"
                        },
                        "ruleId": {
                          "type": "string"
                        },
                        "slippagePercentage": {
                          "type": "string"
                        },
                        "walletCount": {
                          "type": "number"
                        },
                        "walletGroupId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ruleId",
                        "walletGroupId",
                        "walletCount",
                        "amountMicros",
                        "slippagePercentage"
                      ],
                      "type": "object"
                    },
                    "state": {
                      "enum": [
                        "queued",
                        "submitted",
                        "confirmed",
                        "failed"
                      ],
                      "type": "string"
                    },
                    "symbol": {
                      "type": "string"
                    },
                    "terms": {
                      "$ref": "#/components/schemas/api.PonsV2Terms"
                    },
                    "tokenAddress": {
                      "type": "string"
                    },
                    "txHash": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "xPostUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "publicAccountId",
                    "chain",
                    "state",
                    "name",
                    "symbol",
                    "logoUrl",
                    "description",
                    "xPostUrl",
                    "creatorTaxBps",
                    "buybackEnabled",
                    "terms",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/deployments/assets": {
      "post": {
        "operationId": "POST:api.uploadDeploymentImage",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "contentType": {
                    "enum": [
                      "image/png",
                      "image/jpeg",
                      "image/webp",
                      "image/gif"
                    ],
                    "type": "string"
                  },
                  "dataBase64": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  }
                },
                "required": [
                  "fileName",
                  "contentType",
                  "dataBase64"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "contentType": {
                      "type": "string"
                    },
                    "size": {
                      "type": "number"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "contentType",
                    "size"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/deployments/pons-v2/terms": {
      "get": {
        "operationId": "GET:api.getPonsV2DeploymentTerms",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "pairToken",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "pairAssets": {
                      "items": {
                        "$ref": "#/components/schemas/api.PonsV2PairAsset"
                      },
                      "type": "array"
                    },
                    "terms": {
                      "$ref": "#/components/schemas/api.PonsV2Terms"
                    }
                  },
                  "required": [
                    "terms",
                    "pairAssets"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/deployments/x-post": {
      "get": {
        "operationId": "GET:api.previewDeploymentXPost",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "url",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "authorName": {
                      "type": "string"
                    },
                    "authorUrl": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "authorName",
                    "authorUrl",
                    "text"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/deployments/{deploymentId}": {
      "get": {
        "operationId": "GET:api.getDeployment",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "deploymentId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "buybackEnabled": {
                      "type": "boolean"
                    },
                    "chain": {
                      "enum": [
                        "robinhood"
                      ],
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "creatorTaxBps": {
                      "type": "number"
                    },
                    "curveAddress": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "launchFeeFundingWithdrawalId": {
                      "type": "string"
                    },
                    "launchFeeTicketId": {
                      "type": "string"
                    },
                    "logoUrl": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "snipe": {
                      "properties": {
                        "amountMicros": {
                          "type": "string"
                        },
                        "autoSellAfterSeconds": {
                          "enum": [
                            3
                          ],
                          "format": "int64",
                          "type": "integer"
                        },
                        "exemptFromAntiSnipeTax": {
                          "type": "boolean"
                        },
                        "ruleId": {
                          "type": "string"
                        },
                        "slippagePercentage": {
                          "type": "string"
                        },
                        "walletCount": {
                          "type": "number"
                        },
                        "walletGroupId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ruleId",
                        "walletGroupId",
                        "walletCount",
                        "amountMicros",
                        "slippagePercentage"
                      ],
                      "type": "object"
                    },
                    "state": {
                      "enum": [
                        "queued",
                        "submitted",
                        "confirmed",
                        "failed"
                      ],
                      "type": "string"
                    },
                    "symbol": {
                      "type": "string"
                    },
                    "terms": {
                      "$ref": "#/components/schemas/api.PonsV2Terms"
                    },
                    "tokenAddress": {
                      "type": "string"
                    },
                    "txHash": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "xPostUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "publicAccountId",
                    "chain",
                    "state",
                    "name",
                    "symbol",
                    "logoUrl",
                    "description",
                    "xPostUrl",
                    "creatorTaxBps",
                    "buybackEnabled",
                    "terms",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/giveaways": {
      "get": {
        "operationId": "GET:api.listGiveaways",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "confirmedBalanceMicros": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.GiveawaySummary"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "confirmedBalanceMicros",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/giveaways/{giveawayId}/entries": {
      "post": {
        "operationId": "POST:api.enterGiveaway",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "giveawayId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "confirmedBalanceMicros": {
                      "type": "string"
                    },
                    "enteredAt": {
                      "type": "string"
                    },
                    "giveawayId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "giveawayId",
                    "enteredAt",
                    "confirmedBalanceMicros"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/account": {
      "get": {
        "operationId": "GET:api.basedBotAccount",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "defaultWalletId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "mainWallet": {
                      "$ref": "#/components/schemas/api.BasedBotWallet"
                    },
                    "walletGroups": {
                      "items": {
                        "$ref": "#/components/schemas/api.BasedBotWalletGroupSummary"
                      },
                      "type": "array"
                    },
                    "wallets": {
                      "items": {
                        "$ref": "#/components/schemas/api.BasedBotWallet"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "defaultWalletId",
                    "wallets",
                    "walletGroups"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/connect-requests": {
      "post": {
        "operationId": "POST:api.createBasedBotConnectRequest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "verifierHash": {
                    "type": "string"
                  }
                },
                "required": [
                  "verifierHash"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expiresAt": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "state": {
                      "$ref": "#/components/schemas/api.ConnectState"
                    }
                  },
                  "required": [
                    "requestId",
                    "state",
                    "expiresAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/connect-requests/{requestId}/approve": {
      "post": {
        "operationId": "POST:api.approveBasedBotConnectRequest",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "authorizedWalletIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "buyPresetsUSD": {
                    "items": {
                      "type": "number"
                    },
                    "type": "array"
                  },
                  "buyWalletIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "customBuyEnabled": {
                    "type": "boolean"
                  },
                  "sellEnabled": {
                    "type": "boolean"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  }
                },
                "required": [
                  "authorizedWalletIds",
                  "buyPresetsUSD",
                  "slippagePercentage",
                  "customBuyEnabled",
                  "sellEnabled"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expiresAt": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "state": {
                      "$ref": "#/components/schemas/api.ConnectState"
                    }
                  },
                  "required": [
                    "requestId",
                    "state",
                    "expiresAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/connect-requests/{requestId}/exchange": {
      "post": {
        "operationId": "POST:api.exchangeBasedBotConnectRequest",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "verifier": {
                    "type": "string"
                  }
                },
                "required": [
                  "verifier"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accessKey": {
                      "type": "string"
                    },
                    "quickTrade": {
                      "properties": {
                        "accountId": {
                          "type": "string"
                        },
                        "authorizedBuyWalletIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "buyPresetsUSD": {
                          "items": {
                            "type": "number"
                          },
                          "type": "array"
                        },
                        "buyWalletIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "customBuyEnabled": {
                          "type": "boolean"
                        },
                        "sellEnabled": {
                          "type": "boolean"
                        },
                        "slippagePercentage": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "accountId",
                        "buyWalletIds",
                        "authorizedBuyWalletIds",
                        "buyPresetsUSD",
                        "slippagePercentage",
                        "customBuyEnabled",
                        "sellEnabled"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "accessKey",
                    "quickTrade"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/connect-requests/{requestId}/review": {
      "get": {
        "operationId": "GET:api.reviewBasedBotConnectRequest",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "authorizedWalletIds": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "authorizedWalletIds"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/connection": {
      "delete": {
        "operationId": "DELETE:api.revokeBasedBotConnection",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/holdings": {
      "post": {
        "operationId": "POST:api.basedBotWalletHoldings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "chain": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "walletIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "walletIds",
                  "chain",
                  "token"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "holding": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/api.BasedBotHolding"
                        },
                        {
                          "nullable": true,
                          "type": "boolean"
                        }
                      ],
                      "nullable": true
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.BasedBotHoldingItem"
                      },
                      "type": "array"
                    },
                    "token": {
                      "type": "string"
                    },
                    "walletIds": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "walletIds",
                    "chain",
                    "token",
                    "holding",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/integrations/basedbot/wallets/{walletId}/holding": {
      "get": {
        "operationId": "GET:api.basedBotWalletHolding",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "holding": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/api.BasedBotHolding"
                        },
                        {
                          "nullable": true,
                          "type": "boolean"
                        }
                      ],
                      "nullable": true
                    },
                    "token": {
                      "type": "string"
                    },
                    "walletId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "walletId",
                    "chain",
                    "token",
                    "holding"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/markets/candles": {
      "get": {
        "operationId": "GET:api.marketCandles",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "before",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "interval",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "candles": {
                      "items": {
                        "$ref": "#/components/schemas/api.MarketCandle"
                      },
                      "type": "array"
                    },
                    "hasMore": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "candles",
                    "hasMore"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/markets/holders": {
      "get": {
        "operationId": "GET:api.getMarketHolders",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.MarketHolder"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/markets/new-pairs": {
      "get": {
        "operationId": "GET:api.listNewPairs",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "launchpad",
            "schema": {
              "$ref": "#/components/schemas/api.SniperLaunchpad"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "sinceMinutes",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "connected": {
                      "type": "boolean"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.NewPairCandidate"
                      },
                      "type": "array"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "connected",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/markets/trades": {
      "get": {
        "operationId": "GET:api.getMarketTrades",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.MarketTrade"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/pnl-cards": {
      "post": {
        "operationId": "POST:api.createPnlCard",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "calledBy": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "quote": {
                    "type": "string"
                  },
                  "recapDays": {
                    "title": "A period summary over the account's own closed trades.\n",
                    "type": "number"
                  },
                  "token": {
                    "type": "string"
                  },
                  "tradeId": {
                    "title": "A closed sell.\n",
                    "type": "string"
                  },
                  "walletId": {
                    "title": "A position still held: the wallet, chain and token that identify it.\n",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "payload": {
                      "$ref": "#/components/schemas/api.AnyCardPayload"
                    }
                  },
                  "required": [
                    "id",
                    "path",
                    "payload"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/pnl-cards/{cardId}": {
      "delete": {
        "operationId": "DELETE:api.revokePnlCard",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "get": {
        "description": "the link all have to resolve without a session. Only what the trader chose to publish is stored, so nothing here widens beyond the card face.\n",
        "operationId": "GET:api.getPnlCard",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "payload": {
                      "$ref": "#/components/schemas/api.AnyCardPayload"
                    }
                  },
                  "required": [
                    "id",
                    "payload"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        },
        "summary": "Public on purpose: an unfurl, a forwarded screenshot and a stranger opening\n"
      }
    },
    "/v1/points": {
      "get": {
        "operationId": "GET:api.getPoints",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "confirmedSpendMicros": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.PointEntry"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    },
                    "referralPoints": {
                      "type": "string"
                    },
                    "totalPoints": {
                      "type": "string"
                    },
                    "tradePoints": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "totalPoints",
                    "tradePoints",
                    "referralPoints",
                    "confirmedSpendMicros",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/protocol/tvl": {
      "get": {
        "operationId": "GET:api.protocolTvl",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "calculatedAt": {
                      "type": "string"
                    },
                    "positionCount": {
                      "type": "number"
                    },
                    "positionsValueUSD": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "nullable": true,
                          "type": "boolean"
                        }
                      ],
                      "nullable": true
                    },
                    "refreshIntervalSeconds": {
                      "type": "number"
                    },
                    "walletCount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "positionsValueUSD",
                    "refreshIntervalSeconds"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/referrals": {
      "get": {
        "operationId": "GET:api.getReferrals",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "canSetCustomCode": {
                      "type": "boolean"
                    },
                    "code": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.ReferralReward"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    },
                    "qualifiedReferralCount": {
                      "type": "number"
                    },
                    "referredCount": {
                      "type": "number"
                    },
                    "totalEarnedMicros": {
                      "type": "string"
                    },
                    "usedReferralCode": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "canSetCustomCode",
                    "referredCount",
                    "qualifiedReferralCount",
                    "totalEarnedMicros",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/referrals/code": {
      "put": {
        "operationId": "PUT:api.setReferralCode",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/revenue": {
      "get": {
        "operationId": "GET:api.revenue",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accounts": {
                      "items": {
                        "$ref": "#/components/schemas/api.RevenueAccount"
                      },
                      "type": "array"
                    },
                    "allTime": {
                      "$ref": "#/components/schemas/api.RevenueValues"
                    },
                    "calculatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "allTime",
                    "accounts",
                    "calculatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/rewards": {
      "get": {
        "operationId": "GET:api.getRewards",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.PumpFunRewardSummary"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/rewards/pumpfun/claims": {
      "post": {
        "operationId": "POST:api.claimPumpFunRewards",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "claimedLamports": {
                      "type": "string"
                    },
                    "provider": {
                      "enum": [
                        "pumpfun"
                      ],
                      "type": "string"
                    },
                    "transactions": {
                      "items": {
                        "properties": {
                          "claimedLamports": {
                            "type": "string"
                          },
                          "signature": {
                            "type": "string"
                          },
                          "walletIds": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "signature",
                          "walletIds",
                          "claimedLamports"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "provider",
                    "chain",
                    "claimedLamports",
                    "transactions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/sniper-rules": {
      "get": {
        "operationId": "GET:api.listSniperRules",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.SniperRule"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createSniperRule",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allocations": {
                    "items": {
                      "properties": {
                        "amountMicros": {
                          "type": "string"
                        },
                        "amountRaw": {
                          "type": "string"
                        },
                        "walletId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "walletId"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "autoSellAfterSeconds": {
                    "enum": [
                      3
                    ],
                    "format": "int64",
                    "type": "integer"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "deployerAddress": {
                    "title": "Accepted for clients released before target selectors.\n",
                    "type": "string"
                  },
                  "feePayment": {
                    "$ref": "#/components/schemas/api.SniperFeePayment"
                  },
                  "funding": {
                    "$ref": "#/components/schemas/api.SniperFunding"
                  },
                  "launchpad": {
                    "$ref": "#/components/schemas/api.SniperLaunchpad"
                  },
                  "payPonsAntiSniperTax": {
                    "type": "boolean"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  },
                  "target": {
                    "$ref": "#/components/schemas/api.SniperRuleTarget"
                  },
                  "watchDurationSeconds": {
                    "type": "number"
                  }
                },
                "required": [
                  "chain",
                  "allocations"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allocations": {
                      "items": {
                        "$ref": "#/components/schemas/api.SniperRuleAllocation"
                      },
                      "type": "array"
                    },
                    "autoSellAfterSeconds": {
                      "enum": [
                        3
                      ],
                      "format": "int64",
                      "type": "integer"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "deployerAddress": {
                      "title": "Compatibility alias returned only for deployer targets.\n",
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "feePayment": {
                      "$ref": "#/components/schemas/api.SniperFeePayment"
                    },
                    "feePolicy": {
                      "$ref": "#/components/schemas/api.SniperFeePolicy"
                    },
                    "funding": {
                      "$ref": "#/components/schemas/api.SniperFunding"
                    },
                    "id": {
                      "type": "string"
                    },
                    "launchpad": {
                      "$ref": "#/components/schemas/api.SniperLaunchpad"
                    },
                    "payPonsAntiSniperTax": {
                      "type": "boolean"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "startBlock": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "armed",
                        "triggered",
                        "completed",
                        "partial_failed",
                        "failed",
                        "cancelled",
                        "expired"
                      ],
                      "type": "string"
                    },
                    "target": {
                      "$ref": "#/components/schemas/api.SniperRuleTarget"
                    },
                    "trigger": {
                      "$ref": "#/components/schemas/api.SniperRuleTrigger"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "watchDurationSeconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "chain",
                    "target",
                    "funding",
                    "feePayment",
                    "allocations",
                    "slippagePercentage",
                    "watchDurationSeconds",
                    "startBlock",
                    "state",
                    "expiresAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/sniper-rules/{ruleId}/cancel": {
      "post": {
        "operationId": "POST:api.cancelSniperRule",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "ruleId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allocations": {
                      "items": {
                        "$ref": "#/components/schemas/api.SniperRuleAllocation"
                      },
                      "type": "array"
                    },
                    "autoSellAfterSeconds": {
                      "enum": [
                        3
                      ],
                      "format": "int64",
                      "type": "integer"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "deployerAddress": {
                      "title": "Compatibility alias returned only for deployer targets.\n",
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "feePayment": {
                      "$ref": "#/components/schemas/api.SniperFeePayment"
                    },
                    "feePolicy": {
                      "$ref": "#/components/schemas/api.SniperFeePolicy"
                    },
                    "funding": {
                      "$ref": "#/components/schemas/api.SniperFunding"
                    },
                    "id": {
                      "type": "string"
                    },
                    "launchpad": {
                      "$ref": "#/components/schemas/api.SniperLaunchpad"
                    },
                    "payPonsAntiSniperTax": {
                      "type": "boolean"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "startBlock": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "armed",
                        "triggered",
                        "completed",
                        "partial_failed",
                        "failed",
                        "cancelled",
                        "expired"
                      ],
                      "type": "string"
                    },
                    "target": {
                      "$ref": "#/components/schemas/api.SniperRuleTarget"
                    },
                    "trigger": {
                      "$ref": "#/components/schemas/api.SniperRuleTrigger"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "watchDurationSeconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "chain",
                    "target",
                    "funding",
                    "feePayment",
                    "allocations",
                    "slippagePercentage",
                    "watchDurationSeconds",
                    "startBlock",
                    "state",
                    "expiresAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/tickets": {
      "get": {
        "operationId": "GET:api.listV1Tickets",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "walletId",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.TicketEntry"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createV1Ticket",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountMicros": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "recipient": {
                    "type": "string"
                  },
                  "walletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "chain",
                  "amountMicros",
                  "recipient"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "claim": {
                      "$ref": "#/components/schemas/api.ClaimDescriptor"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "reserved",
                        "spent",
                        "refunded",
                        "expired_pending_check"
                      ],
                      "type": "string"
                    },
                    "ticket": {
                      "properties": {
                        "amountMicros": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "recipient": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "recipient",
                        "amountMicros"
                      ],
                      "type": "object"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "publicAccountId",
                    "chain",
                    "ticket",
                    "claim",
                    "state",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/tickets/{ticketId}": {
      "get": {
        "operationId": "GET:api.getV1Ticket",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "ticketId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "claim": {
                      "$ref": "#/components/schemas/api.ClaimDescriptor"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "reserved",
                        "spent",
                        "refunded",
                        "expired_pending_check"
                      ],
                      "type": "string"
                    },
                    "ticket": {
                      "properties": {
                        "amountMicros": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "recipient": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "recipient",
                        "amountMicros"
                      ],
                      "type": "object"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "publicAccountId",
                    "chain",
                    "ticket",
                    "claim",
                    "state",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/tokens": {
      "get": {
        "operationId": "GET:api.tokens",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "bondingPercentage": {
                            "type": "string"
                          },
                          "bundlersHoldingsPercentage": {
                            "type": "string"
                          },
                          "buyTax": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "decimals": {
                            "type": "number"
                          },
                          "devHoldingsPercentage": {
                            "type": "string"
                          },
                          "feesPaid24hUSD": {
                            "type": "string"
                          },
                          "holdersCount": {
                            "type": "number"
                          },
                          "insidersHoldingsPercentage": {
                            "type": "string"
                          },
                          "isHoneypot": {
                            "type": "boolean"
                          },
                          "liquidityUSD": {
                            "type": "string"
                          },
                          "logo": {
                            "type": "string"
                          },
                          "marketCapUSD": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "poolReserveRaw": {
                            "type": "string"
                          },
                          "priceChange24hPercentage": {
                            "type": "string"
                          },
                          "priceUSD": {
                            "type": "string"
                          },
                          "sellTax": {
                            "type": "string"
                          },
                          "snipersHoldingsPercentage": {
                            "type": "string"
                          },
                          "symbol": {
                            "type": "string"
                          },
                          "telegramURL": {
                            "type": "string"
                          },
                          "top10HoldingsPercentage": {
                            "type": "string"
                          },
                          "totalFeesPaidUSD": {
                            "type": "string"
                          },
                          "totalSupply": {
                            "type": "string"
                          },
                          "twitterURL": {
                            "type": "string"
                          },
                          "volume24hUSD": {
                            "type": "string"
                          },
                          "websiteURL": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "address",
                          "symbol",
                          "name",
                          "decimals"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/tokens/resolve": {
      "get": {
        "operationId": "GET:api.resolveToken",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "chainKey": {
                            "type": "string"
                          },
                          "chainName": {
                            "type": "string"
                          },
                          "decimals": {
                            "type": "number"
                          },
                          "family": {
                            "enum": [
                              "evm",
                              "solana"
                            ],
                            "type": "string"
                          },
                          "logo": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "symbol": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "chainKey",
                          "chainName",
                          "chainId",
                          "family",
                          "address",
                          "symbol",
                          "name",
                          "decimals"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "status": {
                      "enum": [
                        "unique",
                        "ambiguous",
                        "not_found"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trade-quotes": {
      "post": {
        "operationId": "POST:api.createTradeQuote",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountRaw": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "recipient": {
                    "type": "string"
                  },
                  "sellPercentage": {
                    "enum": [
                      25,
                      50,
                      100
                    ],
                    "type": "integer"
                  },
                  "side": {
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "type": "string"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "walletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "side",
                  "chain",
                  "token",
                  "amountRaw"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountInRaw": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "expectedAmountOutRaw": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "gasReserveMicros": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "marketCapUSD": {
                      "type": "string"
                    },
                    "marketImpactPercentage": {
                      "type": "string"
                    },
                    "minimumAmountOutRaw": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "recipient": {
                      "type": "string"
                    },
                    "route": {
                      "$ref": "#/components/schemas/api.TradeRoute"
                    },
                    "routeFeePercentage": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "tokenIn": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "tokenOut": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "vaultFeeMicros": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "publicAccountId",
                    "side",
                    "chain",
                    "tokenIn",
                    "tokenOut",
                    "amountInRaw",
                    "expectedAmountOutRaw",
                    "minimumAmountOutRaw",
                    "recipient",
                    "slippagePercentage",
                    "marketImpactPercentage",
                    "routeFeePercentage",
                    "gasReserveMicros",
                    "createdAt",
                    "expiresAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trade-routes/preview": {
      "post": {
        "operationId": "POST:api.previewTradeRoute",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountRaw": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "walletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "chain",
                  "token",
                  "amountRaw"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountInRaw": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "expectedAmountOutRaw": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "marketImpactPercentage": {
                      "type": "string"
                    },
                    "minimumAmountOutRaw": {
                      "type": "string"
                    },
                    "route": {
                      "$ref": "#/components/schemas/api.TradeRoute"
                    },
                    "routeFeePercentage": {
                      "type": "string"
                    },
                    "tokenIn": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "tokenOut": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    }
                  },
                  "required": [
                    "chain",
                    "tokenIn",
                    "tokenOut",
                    "amountInRaw",
                    "expectedAmountOutRaw",
                    "minimumAmountOutRaw",
                    "marketImpactPercentage",
                    "routeFeePercentage",
                    "route",
                    "expiresAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trades": {
      "get": {
        "operationId": "GET:api.listTrades",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "walletId",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.Trade"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createTrade",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "quoteId": {
                    "type": "string"
                  }
                },
                "required": [
                  "quoteId"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountInRaw": {
                      "type": "string"
                    },
                    "broadcastAt": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "expectedAmountOutRaw": {
                      "type": "string"
                    },
                    "finalizedAt": {
                      "type": "string"
                    },
                    "gasChargedMicros": {
                      "type": "string"
                    },
                    "gasReservedMicros": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "marketCapMoment": {
                      "enum": [
                        "quote",
                        "attempt",
                        "entry",
                        "exit"
                      ],
                      "type": "string"
                    },
                    "marketCapTimestamp": {
                      "type": "string"
                    },
                    "marketCapUSD": {
                      "type": "string"
                    },
                    "minimumAmountOutRaw": {
                      "type": "string"
                    },
                    "netProceedsRaw": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "pnlUSD": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "quoteId": {
                      "type": "string"
                    },
                    "recipient": {
                      "type": "string"
                    },
                    "settledAmountOutRaw": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "queued",
                        "submitted",
                        "confirmed",
                        "failed",
                        "awaiting_ticket_refund"
                      ],
                      "type": "string"
                    },
                    "tokenIn": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "tokenOut": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "transaction": {
                      "$ref": "#/components/schemas/api.TransactionRef"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "vaultFeeMicros": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "quoteId",
                    "ownerAccountId",
                    "publicAccountId",
                    "side",
                    "chain",
                    "state",
                    "tokenIn",
                    "tokenOut",
                    "amountInRaw",
                    "expectedAmountOutRaw",
                    "minimumAmountOutRaw",
                    "recipient",
                    "gasReservedMicros",
                    "gasChargedMicros",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Trade accepted for asynchronous execution"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trades/execute": {
      "post": {
        "operationId": "POST:api.executeTrade",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountRaw": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "recipient": {
                    "type": "string"
                  },
                  "sellPercentage": {
                    "enum": [
                      25,
                      50,
                      100
                    ],
                    "type": "integer"
                  },
                  "side": {
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "type": "string"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "walletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "side",
                  "chain",
                  "token",
                  "amountRaw"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountInRaw": {
                      "type": "string"
                    },
                    "broadcastAt": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "expectedAmountOutRaw": {
                      "type": "string"
                    },
                    "finalizedAt": {
                      "type": "string"
                    },
                    "gasChargedMicros": {
                      "type": "string"
                    },
                    "gasReservedMicros": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "marketCapMoment": {
                      "enum": [
                        "quote",
                        "attempt",
                        "entry",
                        "exit"
                      ],
                      "type": "string"
                    },
                    "marketCapTimestamp": {
                      "type": "string"
                    },
                    "marketCapUSD": {
                      "type": "string"
                    },
                    "minimumAmountOutRaw": {
                      "type": "string"
                    },
                    "netProceedsRaw": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "pnlUSD": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "quoteId": {
                      "type": "string"
                    },
                    "recipient": {
                      "type": "string"
                    },
                    "settledAmountOutRaw": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "queued",
                        "submitted",
                        "confirmed",
                        "failed",
                        "awaiting_ticket_refund"
                      ],
                      "type": "string"
                    },
                    "tokenIn": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "tokenOut": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "transaction": {
                      "$ref": "#/components/schemas/api.TransactionRef"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "vaultFeeMicros": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "quoteId",
                    "ownerAccountId",
                    "publicAccountId",
                    "side",
                    "chain",
                    "state",
                    "tokenIn",
                    "tokenOut",
                    "amountInRaw",
                    "expectedAmountOutRaw",
                    "minimumAmountOutRaw",
                    "recipient",
                    "gasReservedMicros",
                    "gasChargedMicros",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Trade accepted for asynchronous execution"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trades/execute-batch": {
      "post": {
        "operationId": "POST:api.executeTrades",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "trades": {
                    "items": {
                      "properties": {
                        "amountRaw": {
                          "type": "string"
                        },
                        "chain": {
                          "type": "string"
                        },
                        "quoteId": {
                          "type": "string"
                        },
                        "recipient": {
                          "type": "string"
                        },
                        "sellPercentage": {
                          "enum": [
                            25,
                            50,
                            100
                          ],
                          "type": "integer"
                        },
                        "side": {
                          "enum": [
                            "buy",
                            "sell"
                          ],
                          "type": "string"
                        },
                        "slippagePercentage": {
                          "type": "string"
                        },
                        "token": {
                          "type": "string"
                        },
                        "walletId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "walletId",
                        "side",
                        "chain",
                        "token",
                        "amountRaw"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "trades"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "outcomes": {
                      "items": {
                        "$ref": "#/components/schemas/api.ExecuteTradeBatchOutcome"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "outcomes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Trade accepted for asynchronous execution"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trades/execute-clip": {
      "post": {
        "operationId": "POST:api.executeTradeClip",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "trades": {
                    "items": {
                      "properties": {
                        "amountRaw": {
                          "type": "string"
                        },
                        "chain": {
                          "type": "string"
                        },
                        "recipient": {
                          "type": "string"
                        },
                        "slippagePercentage": {
                          "type": "string"
                        },
                        "token": {
                          "type": "string"
                        },
                        "walletId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "walletId",
                        "chain",
                        "token",
                        "amountRaw"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "trades"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "trades": {
                      "items": {
                        "$ref": "#/components/schemas/api.Trade"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "trades"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Trade accepted for asynchronous execution"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trades/{tradeId}": {
      "get": {
        "operationId": "GET:api.getTrade",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "tradeId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountInRaw": {
                      "type": "string"
                    },
                    "broadcastAt": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "expectedAmountOutRaw": {
                      "type": "string"
                    },
                    "finalizedAt": {
                      "type": "string"
                    },
                    "gasChargedMicros": {
                      "type": "string"
                    },
                    "gasReservedMicros": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "marketCapMoment": {
                      "enum": [
                        "quote",
                        "attempt",
                        "entry",
                        "exit"
                      ],
                      "type": "string"
                    },
                    "marketCapTimestamp": {
                      "type": "string"
                    },
                    "marketCapUSD": {
                      "type": "string"
                    },
                    "minimumAmountOutRaw": {
                      "type": "string"
                    },
                    "netProceedsRaw": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "pnlUSD": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "quoteId": {
                      "type": "string"
                    },
                    "recipient": {
                      "type": "string"
                    },
                    "settledAmountOutRaw": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "queued",
                        "submitted",
                        "confirmed",
                        "failed",
                        "awaiting_ticket_refund"
                      ],
                      "type": "string"
                    },
                    "tokenIn": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "tokenOut": {
                      "$ref": "#/components/schemas/api.TradeToken"
                    },
                    "transaction": {
                      "$ref": "#/components/schemas/api.TransactionRef"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "vaultFeeMicros": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "quoteId",
                    "ownerAccountId",
                    "publicAccountId",
                    "side",
                    "chain",
                    "state",
                    "tokenIn",
                    "tokenOut",
                    "amountInRaw",
                    "expectedAmountOutRaw",
                    "minimumAmountOutRaw",
                    "recipient",
                    "gasReservedMicros",
                    "gasChargedMicros",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trading-strategies": {
      "get": {
        "operationId": "GET:api.listTradingStrategies",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "walletId",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.TradingStrategy"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createTradingStrategy",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allowanceMicros": {
                    "type": "string"
                  },
                  "amountPerCycleMicros": {
                    "type": "string"
                  },
                  "amountPerCycleRaw": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "circuitBreakerPercentage": {
                    "type": "string"
                  },
                  "intervalSeconds": {
                    "type": "number"
                  },
                  "kind": {
                    "enum": [
                      "dca",
                      "pulse"
                    ],
                    "type": "string"
                  },
                  "side": {
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "type": "string"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  },
                  "stepPercentage": {
                    "type": "string"
                  },
                  "token": {
                    "$ref": "#/components/schemas/api.TradingStrategyToken"
                  },
                  "walletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "kind",
                  "chain",
                  "token",
                  "allowanceMicros",
                  "intervalSeconds"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allowanceMicros": {
                      "type": "string"
                    },
                    "amountPerCycleMicros": {
                      "type": "string"
                    },
                    "amountPerCycleRaw": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "circuitBreakerBps": {
                      "type": "number"
                    },
                    "consecutiveFailures": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "cycle": {
                      "type": "number"
                    },
                    "id": {
                      "type": "string"
                    },
                    "intervalSeconds": {
                      "type": "number"
                    },
                    "kind": {
                      "enum": [
                        "dca",
                        "pulse"
                      ],
                      "type": "string"
                    },
                    "lastAction": {
                      "$ref": "#/components/schemas/api.TradingStrategyAction"
                    },
                    "lastRunAt": {
                      "type": "string"
                    },
                    "lastSampleAt": {
                      "type": "string"
                    },
                    "lastSamplePriceUSD": {
                      "type": "string"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "pauseReason": {
                      "enum": [
                        "user",
                        "circuit_breaker",
                        "failures"
                      ],
                      "type": "string"
                    },
                    "pendingSpendMicros": {
                      "type": "string"
                    },
                    "pendingTradeId": {
                      "type": "string"
                    },
                    "proceedsMicros": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "spentMicros": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "paused",
                        "completed",
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "stepBps": {
                      "type": "number"
                    },
                    "token": {
                      "$ref": "#/components/schemas/api.TradingStrategyToken"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "publicAccountId",
                    "kind",
                    "chain",
                    "token",
                    "allowanceMicros",
                    "spentMicros",
                    "intervalSeconds",
                    "slippagePercentage",
                    "state",
                    "cycle",
                    "nextRunAt",
                    "consecutiveFailures",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trading-strategies/dca/batch": {
      "post": {
        "operationId": "POST:api.createDcaTradingStrategies",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allowanceMicros": {
                    "type": "string"
                  },
                  "amountPerCycleMicros": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "intervalSeconds": {
                    "type": "number"
                  },
                  "slippagePercentage": {
                    "type": "string"
                  },
                  "token": {
                    "$ref": "#/components/schemas/api.TradingStrategyToken"
                  },
                  "walletIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "walletIds",
                  "chain",
                  "token",
                  "allowanceMicros",
                  "amountPerCycleMicros",
                  "intervalSeconds"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "outcomes": {
                      "items": {
                        "$ref": "#/components/schemas/api.CreateDcaTradingStrategyOutcome"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "outcomes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trading-strategies/{strategyId}/pause": {
      "post": {
        "operationId": "POST:api.pauseTradingStrategy",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "strategyId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allowanceMicros": {
                      "type": "string"
                    },
                    "amountPerCycleMicros": {
                      "type": "string"
                    },
                    "amountPerCycleRaw": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "circuitBreakerBps": {
                      "type": "number"
                    },
                    "consecutiveFailures": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "cycle": {
                      "type": "number"
                    },
                    "id": {
                      "type": "string"
                    },
                    "intervalSeconds": {
                      "type": "number"
                    },
                    "kind": {
                      "enum": [
                        "dca",
                        "pulse"
                      ],
                      "type": "string"
                    },
                    "lastAction": {
                      "$ref": "#/components/schemas/api.TradingStrategyAction"
                    },
                    "lastRunAt": {
                      "type": "string"
                    },
                    "lastSampleAt": {
                      "type": "string"
                    },
                    "lastSamplePriceUSD": {
                      "type": "string"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "pauseReason": {
                      "enum": [
                        "user",
                        "circuit_breaker",
                        "failures"
                      ],
                      "type": "string"
                    },
                    "pendingSpendMicros": {
                      "type": "string"
                    },
                    "pendingTradeId": {
                      "type": "string"
                    },
                    "proceedsMicros": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "spentMicros": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "paused",
                        "completed",
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "stepBps": {
                      "type": "number"
                    },
                    "token": {
                      "$ref": "#/components/schemas/api.TradingStrategyToken"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "publicAccountId",
                    "kind",
                    "chain",
                    "token",
                    "allowanceMicros",
                    "spentMicros",
                    "intervalSeconds",
                    "slippagePercentage",
                    "state",
                    "cycle",
                    "nextRunAt",
                    "consecutiveFailures",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trading-strategies/{strategyId}/resume": {
      "post": {
        "operationId": "POST:api.resumeTradingStrategy",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "strategyId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allowanceMicros": {
                      "type": "string"
                    },
                    "amountPerCycleMicros": {
                      "type": "string"
                    },
                    "amountPerCycleRaw": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "circuitBreakerBps": {
                      "type": "number"
                    },
                    "consecutiveFailures": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "cycle": {
                      "type": "number"
                    },
                    "id": {
                      "type": "string"
                    },
                    "intervalSeconds": {
                      "type": "number"
                    },
                    "kind": {
                      "enum": [
                        "dca",
                        "pulse"
                      ],
                      "type": "string"
                    },
                    "lastAction": {
                      "$ref": "#/components/schemas/api.TradingStrategyAction"
                    },
                    "lastRunAt": {
                      "type": "string"
                    },
                    "lastSampleAt": {
                      "type": "string"
                    },
                    "lastSamplePriceUSD": {
                      "type": "string"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "pauseReason": {
                      "enum": [
                        "user",
                        "circuit_breaker",
                        "failures"
                      ],
                      "type": "string"
                    },
                    "pendingSpendMicros": {
                      "type": "string"
                    },
                    "pendingTradeId": {
                      "type": "string"
                    },
                    "proceedsMicros": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "spentMicros": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "paused",
                        "completed",
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "stepBps": {
                      "type": "number"
                    },
                    "token": {
                      "$ref": "#/components/schemas/api.TradingStrategyToken"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "publicAccountId",
                    "kind",
                    "chain",
                    "token",
                    "allowanceMicros",
                    "spentMicros",
                    "intervalSeconds",
                    "slippagePercentage",
                    "state",
                    "cycle",
                    "nextRunAt",
                    "consecutiveFailures",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/trading-strategies/{strategyId}/stop": {
      "post": {
        "operationId": "POST:api.stopTradingStrategy",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "strategyId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allowanceMicros": {
                      "type": "string"
                    },
                    "amountPerCycleMicros": {
                      "type": "string"
                    },
                    "amountPerCycleRaw": {
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "circuitBreakerBps": {
                      "type": "number"
                    },
                    "consecutiveFailures": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "cycle": {
                      "type": "number"
                    },
                    "id": {
                      "type": "string"
                    },
                    "intervalSeconds": {
                      "type": "number"
                    },
                    "kind": {
                      "enum": [
                        "dca",
                        "pulse"
                      ],
                      "type": "string"
                    },
                    "lastAction": {
                      "$ref": "#/components/schemas/api.TradingStrategyAction"
                    },
                    "lastRunAt": {
                      "type": "string"
                    },
                    "lastSampleAt": {
                      "type": "string"
                    },
                    "lastSamplePriceUSD": {
                      "type": "string"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "pauseReason": {
                      "enum": [
                        "user",
                        "circuit_breaker",
                        "failures"
                      ],
                      "type": "string"
                    },
                    "pendingSpendMicros": {
                      "type": "string"
                    },
                    "pendingTradeId": {
                      "type": "string"
                    },
                    "proceedsMicros": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "side": {
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "type": "string"
                    },
                    "slippagePercentage": {
                      "type": "string"
                    },
                    "spentMicros": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "paused",
                        "completed",
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "stepBps": {
                      "type": "number"
                    },
                    "token": {
                      "$ref": "#/components/schemas/api.TradingStrategyToken"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "publicAccountId",
                    "kind",
                    "chain",
                    "token",
                    "allowanceMicros",
                    "spentMicros",
                    "intervalSeconds",
                    "slippagePercentage",
                    "state",
                    "cycle",
                    "nextRunAt",
                    "consecutiveFailures",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-portfolios/batch": {
      "post": {
        "operationId": "POST:api.batchWalletPortfolios",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "chain": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "walletIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "walletIds"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletPortfolioBatchItem"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers": {
      "delete": {
        "operationId": "DELETE:api.deleteAllWalletTrackers",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "removed": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "removed"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "get": {
        "operationId": "GET:api.listWalletTrackers",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletTracker"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    },
                    "settings": {
                      "$ref": "#/components/schemas/api.WalletTrackerSettings"
                    },
                    "total": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "settings"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createWalletTracker",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "sound": {
                    "$ref": "#/components/schemas/api.WalletTrackerSound"
                  }
                },
                "required": [
                  "label",
                  "address"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "emoji": {
                      "type": "string"
                    },
                    "family": {
                      "$ref": "#/components/schemas/api.NetworkFamily"
                    },
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "lastSyncedAt": {
                      "type": "string"
                    },
                    "sound": {
                      "$ref": "#/components/schemas/api.WalletTrackerSound"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "family",
                    "address",
                    "label",
                    "emoji",
                    "sound",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers/export": {
      "get": {
        "operationId": "GET:api.exportWalletTrackers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletTrackerFileItem"
                      },
                      "type": "array"
                    },
                    "settings": {
                      "$ref": "#/components/schemas/api.WalletTrackerSettings"
                    },
                    "version": {
                      "enum": [
                        2
                      ],
                      "format": "int64",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "version",
                    "settings",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers/feed": {
      "get": {
        "operationId": "GET:api.getWalletTrackerFeed",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletTrackerTrade"
                      },
                      "type": "array"
                    },
                    "pendingWalletCount": {
                      "type": "number"
                    },
                    "revision": {
                      "type": "string"
                    },
                    "trackedWalletCount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "revision",
                    "items",
                    "trackedWalletCount",
                    "pendingWalletCount"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers/import": {
      "post": {
        "operationId": "POST:api.importWalletTrackers",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "eventTypes": {
                    "items": {
                      "$ref": "#/components/schemas/api.WalletTrackerEventType"
                    },
                    "type": "array"
                  },
                  "items": {
                    "items": {
                      "$ref": "#/components/schemas/api.WalletTrackerFileItem"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "alreadyTracked": {
                      "type": "number"
                    },
                    "ignoredSettings": {
                      "type": "number"
                    },
                    "imported": {
                      "type": "number"
                    },
                    "legacyEventFilterRows": {
                      "type": "number"
                    },
                    "received": {
                      "type": "number"
                    },
                    "repeatedInFile": {
                      "type": "number"
                    },
                    "settingsUpdated": {
                      "type": "boolean"
                    },
                    "updated": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "received",
                    "imported",
                    "alreadyTracked",
                    "updated",
                    "repeatedInFile",
                    "ignoredSettings",
                    "legacyEventFilterRows",
                    "settingsUpdated"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers/market": {
      "get": {
        "operationId": "GET:api.getWalletTrackerMarket",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "entries": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletTrackerPositionEntry"
                      },
                      "type": "array"
                    },
                    "revision": {
                      "type": "string"
                    },
                    "trades": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletTrackerMarketTrade"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "revision",
                    "trades",
                    "entries"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers/settings": {
      "patch": {
        "operationId": "PATCH:api.updateWalletTrackerSettings",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "eventTypes": {
                    "items": {
                      "$ref": "#/components/schemas/api.WalletTrackerEventType"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "eventTypes"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "eventTypes": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletTrackerEventType"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "eventTypes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-trackers/{trackerId}": {
      "delete": {
        "operationId": "DELETE:api.deleteWalletTracker",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "trackerId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "patch": {
        "operationId": "PATCH:api.updateWalletTracker",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "trackerId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "emoji": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "sound": {
                    "$ref": "#/components/schemas/api.WalletTrackerSound"
                  }
                },
                "required": [
                  "label"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "emoji": {
                      "type": "string"
                    },
                    "family": {
                      "$ref": "#/components/schemas/api.NetworkFamily"
                    },
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "lastSyncedAt": {
                      "type": "string"
                    },
                    "sound": {
                      "$ref": "#/components/schemas/api.WalletTrackerSound"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "family",
                    "address",
                    "label",
                    "emoji",
                    "sound",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-transfers": {
      "post": {
        "operationId": "POST:api.transferWalletBalance",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountMicros": {
                    "type": "string"
                  },
                  "fromWalletId": {
                    "type": "string"
                  },
                  "toWalletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "fromWalletId",
                  "toWalletId",
                  "amountMicros"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountMicros": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "fromWalletId": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "toWalletId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ownerAccountId",
                    "fromWalletId",
                    "toWalletId",
                    "amountMicros",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallet-transfers/bulk": {
      "post": {
        "operationId": "POST:api.bulkTransferWalletBalance",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "destinations": {
                    "items": {
                      "$ref": "#/components/schemas/api.BulkTransferDestination"
                    },
                    "type": "array"
                  },
                  "sources": {
                    "items": {
                      "$ref": "#/components/schemas/api.BulkTransferSource"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "sources",
                  "destinations"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "type": "string"
                    },
                    "destinations": {
                      "items": {
                        "$ref": "#/components/schemas/api.BulkTransferDestinationResult"
                      },
                      "type": "array"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "sources": {
                      "items": {
                        "$ref": "#/components/schemas/api.BulkTransferSource"
                      },
                      "type": "array"
                    },
                    "totalMicros": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ownerAccountId",
                    "sources",
                    "destinations",
                    "totalMicros",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets": {
      "get": {
        "operationId": "GET:api.listWallets",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletSummary"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "balance": {
                      "properties": {
                        "availableMicros": {
                          "type": "string"
                        },
                        "gasReservedMicros": {
                          "type": "string"
                        },
                        "pendingSettlementMicros": {
                          "type": "string"
                        },
                        "reservedMicros": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "availableMicros",
                        "reservedMicros",
                        "gasReservedMicros",
                        "pendingSettlementMicros"
                      ],
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "depositRecipientId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imported": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "depositRecipientId",
                    "kind",
                    "name",
                    "state",
                    "addresses",
                    "balance",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/export-all": {
      "post": {
        "operationId": "POST:api.exportAllWallets",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expiresAt": {
                      "type": "string"
                    },
                    "wallets": {
                      "items": {
                        "$ref": "#/components/schemas/api.ExportedWalletMaterial"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "wallets",
                    "expiresAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/import": {
      "post": {
        "operationId": "POST:api.importWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expectedAddresses": {
                    "items": {
                      "$ref": "#/components/schemas/api.WalletAddress"
                    },
                    "type": "array"
                  },
                  "kind": {
                    "enum": [
                      "mnemonic",
                      "private_key"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "secret": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "kind",
                  "secret",
                  "expectedAddresses"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "balance": {
                      "properties": {
                        "availableMicros": {
                          "type": "string"
                        },
                        "gasReservedMicros": {
                          "type": "string"
                        },
                        "pendingSettlementMicros": {
                          "type": "string"
                        },
                        "reservedMicros": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "availableMicros",
                        "reservedMicros",
                        "gasReservedMicros",
                        "pendingSettlementMicros"
                      ],
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "depositRecipientId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imported": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "depositRecipientId",
                    "kind",
                    "name",
                    "state",
                    "addresses",
                    "balance",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/import/preview": {
      "post": {
        "operationId": "POST:api.previewWalletImport",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "addresses": {
                    "items": {
                      "$ref": "#/components/schemas/api.WalletAddress"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "addresses"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletImportPreviewItem"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}": {
      "get": {
        "operationId": "GET:api.getWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "balance": {
                      "properties": {
                        "availableMicros": {
                          "type": "string"
                        },
                        "gasReservedMicros": {
                          "type": "string"
                        },
                        "pendingSettlementMicros": {
                          "type": "string"
                        },
                        "reservedMicros": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "availableMicros",
                        "reservedMicros",
                        "gasReservedMicros",
                        "pendingSettlementMicros"
                      ],
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "depositRecipientId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imported": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "depositRecipientId",
                    "kind",
                    "name",
                    "state",
                    "addresses",
                    "balance",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "patch": {
        "operationId": "PATCH:api.renameWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "balance": {
                      "properties": {
                        "availableMicros": {
                          "type": "string"
                        },
                        "gasReservedMicros": {
                          "type": "string"
                        },
                        "pendingSettlementMicros": {
                          "type": "string"
                        },
                        "reservedMicros": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "availableMicros",
                        "reservedMicros",
                        "gasReservedMicros",
                        "pendingSettlementMicros"
                      ],
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "depositRecipientId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imported": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "depositRecipientId",
                    "kind",
                    "name",
                    "state",
                    "addresses",
                    "balance",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}/archive": {
      "post": {
        "operationId": "POST:api.archiveWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "balance": {
                      "properties": {
                        "availableMicros": {
                          "type": "string"
                        },
                        "gasReservedMicros": {
                          "type": "string"
                        },
                        "pendingSettlementMicros": {
                          "type": "string"
                        },
                        "reservedMicros": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "availableMicros",
                        "reservedMicros",
                        "gasReservedMicros",
                        "pendingSettlementMicros"
                      ],
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "depositRecipientId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imported": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "depositRecipientId",
                    "kind",
                    "name",
                    "state",
                    "addresses",
                    "balance",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}/export": {
      "post": {
        "operationId": "POST:api.exportWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "mnemonic": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secrets": {
                      "items": {
                        "$ref": "#/components/schemas/api.ExportedSecret"
                      },
                      "type": "array"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    },
                    "walletId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "expiresAt",
                    "walletId",
                    "name",
                    "kind",
                    "state",
                    "addresses",
                    "secrets"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response",
            "headers": {
              "cache-control": {
                "allowEmptyValue": true,
                "explode": true,
                "required": true,
                "schema": {
                  "type": "string"
                },
                "style": "simple"
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}/portfolio": {
      "get": {
        "operationId": "GET:api.walletPortfolio",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "address": {
                      "$ref": "#/components/schemas/api.WalletAddress"
                    },
                    "canonicalBalanceRaw": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "nullable": true,
                          "type": "boolean"
                        }
                      ],
                      "nullable": true
                    },
                    "chain": {
                      "type": "string"
                    },
                    "portfolio": {
                      "anyOf": [
                        {
                          "properties": {
                            "address": {
                              "type": "string"
                            },
                            "balance": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/api.PortfolioBalance"
                                },
                                {
                                  "nullable": true,
                                  "type": "boolean"
                                }
                              ],
                              "nullable": true
                            },
                            "error": {
                              "type": "string"
                            },
                            "positions": {
                              "items": {
                                "$ref": "#/components/schemas/api.PortfolioPosition"
                              },
                              "type": "array"
                            },
                            "totalValueUSD": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "address",
                            "balance",
                            "positions"
                          ],
                          "type": "object"
                        },
                        {
                          "nullable": true,
                          "type": "boolean"
                        }
                      ],
                      "nullable": true
                    },
                    "rpcError": {
                      "type": "string"
                    },
                    "walletId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "walletId",
                    "chain",
                    "address",
                    "canonicalBalanceRaw",
                    "portfolio"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}/portfolio-history": {
      "get": {
        "operationId": "GET:api.walletPortfolioHistory",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "range",
            "schema": {
              "$ref": "#/components/schemas/api.PortfolioHistoryRange"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "capturedAt": {
                      "type": "string"
                    },
                    "currentPositionsValueUSD": {
                      "type": "string"
                    },
                    "currentStarswapBalanceUSD": {
                      "type": "string"
                    },
                    "currentValueUSD": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.PortfolioHistoryPoint"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items",
                    "currentValueUSD",
                    "currentPositionsValueUSD",
                    "currentStarswapBalanceUSD",
                    "capturedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}/portfolios": {
      "get": {
        "operationId": "GET:api.walletPortfolios",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "family",
            "schema": {
              "enum": [
                "evm",
                "solana"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "chain",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletPortfolioResponse"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/wallets/{walletId}/restore": {
      "post": {
        "operationId": "POST:api.restoreWallet",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "walletId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "balance": {
                      "properties": {
                        "availableMicros": {
                          "type": "string"
                        },
                        "gasReservedMicros": {
                          "type": "string"
                        },
                        "pendingSettlementMicros": {
                          "type": "string"
                        },
                        "reservedMicros": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "availableMicros",
                        "reservedMicros",
                        "gasReservedMicros",
                        "pendingSettlementMicros"
                      ],
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "depositRecipientId": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imported": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "kind": {
                      "enum": [
                        "main",
                        "subwallet"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "active",
                        "archived"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "depositRecipientId",
                    "kind",
                    "name",
                    "state",
                    "addresses",
                    "balance",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/withdrawal-requests/{requestKey}": {
      "get": {
        "operationId": "GET:api.getWithdrawalRequest",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "requestKey",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "requestKey": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "unknown",
                        "closed",
                        "accepted"
                      ],
                      "type": "string"
                    },
                    "withdrawal": {
                      "$ref": "#/components/schemas/api.WithdrawalEntry"
                    }
                  },
                  "required": [
                    "ownerAccountId",
                    "state",
                    "requestKey"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/withdrawal-requests/{requestKey}/close": {
      "post": {
        "operationId": "POST:api.closeWithdrawalRequest",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "requestKey",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "requestKey": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "unknown",
                        "closed",
                        "accepted"
                      ],
                      "type": "string"
                    },
                    "withdrawal": {
                      "$ref": "#/components/schemas/api.WithdrawalEntry"
                    }
                  },
                  "required": [
                    "ownerAccountId",
                    "state",
                    "requestKey"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/withdrawals": {
      "get": {
        "operationId": "GET:api.listWithdrawals",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "walletId",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            },
            "style": "form"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/api.WithdrawalEntry"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      },
      "post": {
        "operationId": "POST:api.createWithdrawal",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "x-csrf-token",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "allowEmptyValue": true,
            "explode": true,
            "in": "header",
            "name": "idempotency-key",
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amountRaw": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "string"
                  },
                  "recipient": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "walletId": {
                    "type": "string"
                  }
                },
                "required": [
                  "walletId",
                  "chain",
                  "token",
                  "amountRaw",
                  "recipient"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountRaw": {
                      "type": "string"
                    },
                    "assetKind": {
                      "enum": [
                        "settlement",
                        "native",
                        "erc20",
                        "spl",
                        "token2022"
                      ],
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "finalizedAt": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "recipient": {
                      "type": "string"
                    },
                    "recipientKind": {
                      "enum": [
                        "address",
                        "email"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "$ref": "#/components/schemas/api.WithdrawalState"
                    },
                    "ticketId": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "tokenDecimals": {
                      "type": "number"
                    },
                    "transaction": {
                      "$ref": "#/components/schemas/api.TransactionRef"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "publicAccountId",
                    "chain",
                    "state",
                    "assetKind",
                    "token",
                    "tokenDecimals",
                    "amountRaw",
                    "recipient",
                    "recipientKind",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/v1/withdrawals/{withdrawalId}": {
      "get": {
        "operationId": "GET:api.getWithdrawal",
        "parameters": [
          {
            "allowEmptyValue": true,
            "explode": false,
            "in": "path",
            "name": "withdrawalId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "amountRaw": {
                      "type": "string"
                    },
                    "assetKind": {
                      "enum": [
                        "settlement",
                        "native",
                        "erc20",
                        "spl",
                        "token2022"
                      ],
                      "type": "string"
                    },
                    "chain": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "finalizedAt": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "ownerAccountId": {
                      "type": "string"
                    },
                    "publicAccountId": {
                      "type": "string"
                    },
                    "recipient": {
                      "type": "string"
                    },
                    "recipientKind": {
                      "enum": [
                        "address",
                        "email"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "$ref": "#/components/schemas/api.WithdrawalState"
                    },
                    "ticketId": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "tokenDecimals": {
                      "type": "number"
                    },
                    "transaction": {
                      "$ref": "#/components/schemas/api.TransactionRef"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "ownerAccountId",
                    "publicAccountId",
                    "chain",
                    "state",
                    "assetKind",
                    "token",
                    "tokenDecimals",
                    "amountRaw",
                    "recipient",
                    "recipientKind",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    },
    "/wallets": {
      "get": {
        "operationId": "GET:api.wallets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "addresses": {
                      "items": {
                        "$ref": "#/components/schemas/api.WalletAddress"
                      },
                      "type": "array"
                    },
                    "directBalances": {
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "nullable": true,
                            "type": "boolean"
                          }
                        ],
                        "nullable": true
                      },
                      "type": "object"
                    },
                    "portfolioHints": {
                      "additionalProperties": {
                        "properties": {
                          "balanceRaw": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "nullable": true,
                                "type": "boolean"
                              }
                            ],
                            "nullable": true
                          },
                          "error": {
                            "type": "string"
                          },
                          "provider": {
                            "enum": [
                              "mobula"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "provider",
                          "balanceRaw"
                        ],
                        "type": "object"
                      },
                      "type": "object"
                    },
                    "rpcErrors": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "stableSwapInputs": {
                      "additionalProperties": {
                        "items": {
                          "properties": {
                            "symbol": {
                              "type": "string"
                            },
                            "token": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "symbol",
                            "token"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "addresses",
                    "directBalances",
                    "rpcErrors",
                    "portfolioHints",
                    "stableSwapInputs"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success response"
          },
          "default": {
            "$ref": "#/components/responses/APIError"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://starswap.cc/api",
      "description": "Production"
    }
  ]
}
