{
  "openapi": "3.1.0",
  "info": {
    "title": "Nova Wallet API",
    "version": "0.1.0",
    "description": "Nova Wallet backend API. The only active agentic contract is the thin LLM gateway at POST /v1/ai/respond. iOS supplies the active local tool manifest and owns tool execution, confirmation, signing, and broadcast; legacy server agentic surfaces are disabled.",
    "x-generatedAt": "2026-04-18"
  },
  "servers": [
    {
      "url": "https://releasing-soon.com",
      "description": "Release placeholder"
    }
  ],
  "tags": [
    {
      "name": "System"
    },
    {
      "name": "Solana"
    },
    {
      "name": "Rewards"
    },
    {
      "name": "Graph"
    },
    {
      "name": "Launch"
    },
    {
      "name": "Notifications"
    },
    {
      "name": "WalletConnect"
    },
    {
      "name": "EVM Compatibility"
    },
    {
      "name": "KOLs",
      "description": "Cached KOL leaderboards, live-ish trade feeds, and lightweight update events for Nova clients."
    },
    {
      "name": "Social",
      "description": "Wallet tracking state and notification-revocation lifecycle."
    },
    {
      "name": "AI",
      "description": "Thin LLM gateway. The client sends history and the active local tool manifest; the server returns assistant text plus structured local tool calls."
    },
    {
      "name": "Actions",
      "description": "Optional unsigned protocol-builder envelopes for iOS-local review, simulation, signing, and broadcast. These routes do not sign or broadcast."
    },
    {
      "name": "Portfolio",
      "description": "Nova-native multichain portfolio and balance surfaces backed by upstream mirror."
    },
    {
      "name": "Transfers",
      "description": "Nova-native transfer history surfaces backed by upstream mirror."
    },
    {
      "name": "Tokens",
      "description": "Nova-native token metadata, balances, prices, and allowances backed by upstream mirror."
    },
    {
      "name": "NFTs",
      "description": "Nova-native NFT ownership, metadata, and collection surfaces backed by upstream mirror."
    },
    {
      "name": "RPC",
      "description": "Nova-scoped raw provider passthroughs backed by upstream mirror endpoints."
    },
    {
      "name": "Simulation",
      "description": "Execution analysis, trace, and debug routes backed by upstream mirror."
    },
    {
      "name": "Webhooks",
      "description": "Notify and webhook-management routes backed by upstream mirror and gated by dedicated credentials."
    },
    {
      "name": "Apps",
      "description": "App-management routes backed by upstream admin APIs and gated by dedicated credentials."
    },
    {
      "name": "Data V2",
      "description": "Nova-owned mobile data contracts with a shared v2 envelope and decimal-string wire values."
    },
    {
      "name": "Data V4",
      "description": "Opt-in enriched mobile contracts. Earlier data API versions remain wire-compatible and unchanged."
    },
    {
      "name": "Multichain Assets",
      "description": "Relay-authoritative asset discovery plus normalized read-only market data for Nova-supported non-Solana networks."
    },
    {
      "name": "Wallet-native Solana Orders",
      "description": "Owner-authenticated, wallet-native Solana limit, take-profit, stop-loss, and OCO records. Nova verifies finalized owner-signed transactions and canonical chain state, but never signs or broadcasts user transactions."
    },
    {
      "name": "Hyperliquid Perpetuals",
      "description": "Globally enabled product availability with request-country telemetry, account summaries, and device-scoped position monitoring for client-managed Hyperliquid perpetuals. Nova never signs or broadcasts Hyperliquid trades."
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Health check",
        "responses": {
          "200": {
            "description": "Service healthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Service metadata",
        "responses": {
          "200": {
            "description": "Service info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponse"
                }
              }
            }
          }
        }
      }
    },
    "/assets/search": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Search assets",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "assets": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AssetSearchItem"
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AssetSearchItem"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/assets/top-trending": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Top trending assets",
        "responses": {
          "200": {
            "description": "Trending assets payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/top-traded": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Top traded assets",
        "responses": {
          "200": {
            "description": "Top traded payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/pools": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Pool data for assets",
        "parameters": [
          {
            "name": "assetIds",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated mint addresses"
          }
        ],
        "responses": {
          "200": {
            "description": "Pools payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/content": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Jupiter token content for mints",
        "parameters": [
          {
            "name": "mints",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated mint addresses, up to 50"
          }
        ],
        "responses": {
          "200": {
            "description": "Token content payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/content/summaries": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Jupiter token content summaries for mints",
        "parameters": [
          {
            "name": "mints",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated mint addresses, up to 50"
          }
        ],
        "responses": {
          "200": {
            "description": "Token content summary payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/content/feed": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Jupiter token content feed",
        "parameters": [
          {
            "name": "mint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Token content feed payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/content/cooking": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Jupiter trending token content",
        "responses": {
          "200": {
            "description": "Trending token content payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/assets/{assetId}": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Get single asset",
        "parameters": [
          {
            "name": "assetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Asset payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AssetSearchItem"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Asset not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/prices": {
      "post": {
        "tags": [
          "Solana"
        ],
        "summary": "Get prices",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "assetIds"
                ],
                "properties": {
                  "assetIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Price map",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/charts/{assetId}": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Get chart points",
        "parameters": [
          {
            "name": "assetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1H",
                "1D",
                "1W",
                "1M",
                "3M",
                "1Y",
                "ALL"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Chart payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "timestamp": {
                            "type": "number"
                          },
                          "value": {
                            "type": "number"
                          },
                          "volume": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "timestamp",
                          "value"
                        ]
                      }
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/swap/quote": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Legacy Solana swap quote route (disabled)",
        "deprecated": true,
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "inputMint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputMint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slippageBps",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "410": {
            "description": "Legacy route disabled; use /v1/swap/solana/build",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/swap": {
      "post": {
        "tags": [
          "Solana"
        ],
        "summary": "Legacy Solana swap transaction route (disabled)",
        "deprecated": true,
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "userPublicKey",
                  "quoteResponse"
                ],
                "properties": {
                  "userPublicKey": {
                    "type": "string"
                  },
                  "quoteResponse": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "410": {
            "description": "Legacy route disabled; use /v1/swap/solana/build",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/swap/ultra/order": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Legacy Jupiter Ultra order route (disabled)",
        "deprecated": true,
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "inputMint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputMint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "taker",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "410": {
            "description": "Legacy route disabled; use /v1/swap/solana/build",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/transactions": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "List wallet transactions",
        "parameters": [
          {
            "name": "deviceId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "walletIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromTimestamp",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/price-alerts/{deviceId}": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Get price alerts for device",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Alert list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alerts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Solana"
        ],
        "summary": "Create price alert",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "assetId",
                  "targetPrice",
                  "direction"
                ],
                "properties": {
                  "assetId": {
                    "type": "string"
                  },
                  "targetPrice": {
                    "type": "number"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "above",
                      "below"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created alert",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/price-alerts/{deviceId}/{alertId}": {
      "delete": {
        "tags": [
          "Solana"
        ],
        "summary": "Delete price alert",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "alertId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Delete result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/nft/{deviceId}/{walletIndex}": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Get NFTs",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "walletIndex",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "NFT list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "nfts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/tokens/verified": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "Get verified token list",
        "responses": {
          "200": {
            "description": "Verified token array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssetSearchItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/metadata/token-list/rainbow-token-list.json": {
      "get": {
        "tags": [
          "Solana"
        ],
        "summary": "iOS widget token list compatibility",
        "responses": {
          "200": {
            "description": "Token list",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AssetSearchItem"
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "tokens": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/AssetSearchItem"
                          }
                        }
                      },
                      "required": [
                        "tokens"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/social/tracking/{walletAddress}": {
      "delete": {
        "tags": [
          "Social"
        ],
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "summary": "Unfollow a wallet and durably revoke notifications",
        "description": "Idempotently persists an active notification-revocation generation and removes the social edge before returning 200. Legacy Firebase mirror cleanup is queued on a leased, retryable worker. A 503 response means durable alias coverage or revocation persistence was unavailable and the client should retry; it never claims notificationRevoked without the durable guard.",
        "parameters": [
          {
            "name": "walletAddress",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nova-Device-Install-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The social edge is absent and notification delivery is durably revoked. Repeated deletes return the same effective state.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "walletAddress",
                    "isTracking",
                    "alertsEnabled",
                    "registry",
                    "cleanup"
                  ],
                  "properties": {
                    "walletAddress": { "type": "string" },
                    "isTracking": { "type": "boolean", "const": false },
                    "alertsEnabled": { "type": "boolean", "const": false },
                    "registry": { "type": "object", "additionalProperties": true },
                    "cleanup": {
                      "type": "object",
                      "required": ["notificationRevoked", "legacyFirebase"],
                      "properties": {
                        "notificationRevoked": { "type": "boolean", "const": true },
                        "legacyFirebase": {
                          "type": "string",
                          "enum": ["queued", "not_configured"]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid viewer or wallet address.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          },
          "503": {
            "description": "Durable notification revocation is temporarily unavailable. Retry without assuming the unfollow completed.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          }
        }
      }
    },
    "/v1/graph": {
      "post": {
        "tags": [
          "Graph"
        ],
        "summary": "Metadata GraphQL gateway",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "query"
                ],
                "properties": {
                  "query": {
                    "type": "string"
                  },
                  "variables": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "GraphQL response envelope",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/config": {
      "get": {
        "tags": [
          "Launch"
        ],
        "summary": "Launch config",
        "responses": {
          "200": {
            "description": "Launch config",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "network",
                    "dbcConfig",
                    "quoteMint",
                    "feeClaimer"
                  ],
                  "properties": {
                    "network": {
                      "type": "string"
                    },
                    "dbcConfig": {
                      "type": "string"
                    },
                    "quoteMint": {
                      "type": "string"
                    },
                    "feeClaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/create": {
      "post": {
        "tags": [
          "Launch"
        ],
        "summary": "Build token launch transaction",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "creator",
                  "name",
                  "symbol",
                  "mint"
                ],
                "properties": {
                  "creator": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "symbol": {
                    "type": "string"
                  },
                  "mint": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "image": {
                    "type": "string"
                  },
                  "twitter": {
                    "type": "string"
                  },
                  "telegram": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "devBuyAmount": {
                    "type": "number"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unsigned create transaction",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "tx",
                    "mint",
                    "metadata"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "tx": {
                      "type": "string"
                    },
                    "mint": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "string"
                    },
                    "pool": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/submit": {
      "post": {
        "tags": [
          "Launch"
        ],
        "summary": "Submit signed launch/claim transaction",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "tx"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "tx": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submit response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "signature": {
                      "type": "string"
                    },
                    "mint": {
                      "type": "string"
                    },
                    "pool": {
                      "type": "string"
                    },
                    "explorer": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid signature or bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/simulate": {
      "post": {
        "tags": [
          "Launch"
        ],
        "summary": "Estimate launch transaction fees",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Fee estimate",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "baseFee",
                    "priorityFee",
                    "rentFee",
                    "totalFee",
                    "computeUnits"
                  ],
                  "properties": {
                    "baseFee": {
                      "type": "number"
                    },
                    "priorityFee": {
                      "type": "number"
                    },
                    "rentFee": {
                      "type": "number"
                    },
                    "totalFee": {
                      "type": "number"
                    },
                    "computeUnits": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/pools/{creatorAddress}": {
      "get": {
        "tags": [
          "Launch"
        ],
        "summary": "Get created token pools",
        "parameters": [
          {
            "name": "creatorAddress",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Pools by creator",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "creator",
                    "count",
                    "totalClaimableFeeSol",
                    "pools"
                  ],
                  "properties": {
                    "creator": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    },
                    "totalClaimableFeeSol": {
                      "type": "string"
                    },
                    "pools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/claim": {
      "post": {
        "tags": [
          "Launch"
        ],
        "summary": "Build claim transaction",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pool"
                ],
                "properties": {
                  "creator": {
                    "type": "string"
                  },
                  "pool": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unsigned claim tx",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "tx": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Upstream claim failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/notifications/v1/subscriptions": {
      "put": {
        "tags": [
          "Notifications"
        ],
        "summary": "Register notification subscriptions",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "firebase_token",
                  "wallets"
                ],
                "properties": {
                  "firebase_token": {
                    "type": "string"
                  },
                  "marketing_topics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "wallets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "address"
                      ],
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "address": {
                          "type": "string"
                        },
                        "transaction_action_types": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Registered",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Missing/invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/notifications/v2/subscriptions": {
      "put": {
        "tags": [
          "Notifications"
        ],
        "summary": "Register the current mobile notification subscription",
        "description": "Registers or clears the current app installation's FCM subscription. This mobile contract uses Firebase App Check and does not require a shared bearer secret.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Required unique key for safe subscription registration retries."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "firebase_token",
                  "wallets"
                ],
                "properties": {
                  "firebase_token": {
                    "type": "string"
                  },
                  "deviceInstallId": {
                    "type": "string",
                    "description": "Stable identifier for this app installation."
                  },
                  "appState": {
                    "type": "string",
                    "enum": [
                      "active",
                      "background",
                      "inactive"
                    ]
                  },
                  "isAppActive": {
                    "type": "boolean"
                  },
                  "marketing_topics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "wallets": {
                    "type": "array",
                    "description": "The current app-associated wallets. Send an empty array to clear stale wallet associations.",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "address"
                      ],
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "address": {
                          "type": "string"
                        },
                        "transaction_action_types": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Registered",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing firebase_token or wallets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/wcpush/clients": {
      "post": {
        "tags": [
          "WalletConnect"
        ],
        "summary": "Register WalletConnect push client",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type",
                  "client_id",
                  "token"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "example": "FCM"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Registration result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/meteorology/v1/gas/{chainName}": {
      "get": {
        "tags": [
          "EVM Compatibility"
        ],
        "summary": "EVM gas compatibility endpoint",
        "parameters": [
          {
            "name": "chainName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Gas estimate envelope",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "legacy": {
                              "type": "object",
                              "properties": {
                                "fastGasPrice": {
                                  "type": "string"
                                },
                                "proposeGasPrice": {
                                  "type": "string"
                                },
                                "safeGasPrice": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet/auth/challenge": {
      "post": {
        "tags": [
          "Wallet Auth"
        ],
        "summary": "Create a wallet-session auth challenge for owner-authenticated product APIs",
        "description": "Creates a short-lived message challenge that proves wallet control. The client signs the returned message locally and submits it to /v1/wallet/auth/verify to obtain a bearer token.\n\nThis is NOT agentic tool execution — it is only wallet-session authentication used by other product features.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletSessionChallengeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Challenge record containing the message to sign",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletSessionChallenge"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet/auth/verify": {
      "post": {
        "tags": [
          "Wallet Auth"
        ],
        "summary": "Verify a wallet-session auth challenge and obtain a bearer token",
        "description": "Verifies the locally-signed challenge message and returns a short-lived bearer token plus the wallet session record.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletSessionVerifyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Bearer token and wallet session record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletSessionVerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/multichain/capabilities": {
      "get": {
        "tags": ["Multichain Assets"],
        "summary": "List Nova's normalized chain capabilities",
        "security": [{"FirebaseAppCheck": []}],
        "responses": {
          "200": {
            "description": "Current provider-backed capability snapshot",
            "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MultichainCapabilitySnapshot"}}}
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}
          }
        }
      }
    },
    "/v2/multichain/{chain}/assets/search": {
      "get": {
        "tags": ["Multichain Assets"],
        "summary": "Discover or search Relay-routeable assets on one network",
        "description": "Relay is the eligibility authority. Optional market metadata enrichment never hides an otherwise routeable Relay asset. Solana remains on Nova's existing Solana-first search contract.",
        "security": [{"FirebaseAppCheck": []}],
        "parameters": [
          {"name": "chain", "in": "path", "required": true, "schema": {"$ref": "#/components/schemas/MultichainFoundationChain"}},
          {"name": "query", "in": "query", "required": false, "schema": {"type": "string", "maxLength": 120}},
          {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer", "minimum": 1, "maximum": 25, "default": 20}}
        ],
        "responses": {
          "200": {
            "description": "Normalized Relay asset results",
            "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MultichainAssetSearchResponse"}}}
          },
          "400": {"description": "Invalid query", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "401": {"description": "Missing or invalid Firebase App Check token", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "404": {"description": "Unsupported chain", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "503": {"description": "Relay discovery unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}}
        }
      }
    },
    "/v2/multichain/{chain}/assets/{address}/chart": {
      "get": {
        "tags": ["Multichain Assets"],
        "summary": "Fetch normalized OHLC history for a non-Solana asset",
        "security": [{"FirebaseAppCheck": []}],
        "parameters": [
          {"name": "chain", "in": "path", "required": true, "schema": {"$ref": "#/components/schemas/MultichainFoundationChain"}},
          {"name": "address", "in": "path", "required": true, "description": "Token contract/address or the native alias.", "schema": {"type": "string", "minLength": 1, "maxLength": 256}},
          {"name": "interval", "in": "query", "required": false, "schema": {"type": "string", "enum": ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "8h", "12h", "1d", "3d", "1w", "1mo"], "default": "1h"}},
          {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer", "minimum": 1, "maximum": 500, "default": 200}}
        ],
        "responses": {
          "200": {"description": "Normalized OHLC candles", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MultichainChartResponse"}}}},
          "400": {"description": "Invalid asset or interval", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "401": {"description": "Missing or invalid Firebase App Check token", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "503": {"description": "Market provider unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}}
        }
      }
    },
    "/v2/multichain/{chain}/assets/{address}/holders": {
      "get": {
        "tags": ["Multichain Assets"],
        "summary": "Fetch normalized holders for a non-Solana asset",
        "security": [{"FirebaseAppCheck": []}],
        "parameters": [
          {"name": "chain", "in": "path", "required": true, "schema": {"$ref": "#/components/schemas/MultichainFoundationChain"}},
          {"name": "address", "in": "path", "required": true, "schema": {"type": "string", "minLength": 1, "maxLength": 256}},
          {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 20}}
        ],
        "responses": {
          "200": {"description": "Normalized holder rows", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MultichainHoldersResponse"}}}},
          "401": {"description": "Missing or invalid Firebase App Check token", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "503": {"description": "Holder provider unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}}
        }
      }
    },
    "/v2/multichain/{chain}/assets/{address}/transactions": {
      "get": {
        "tags": ["Multichain Assets"],
        "summary": "Fetch normalized live token transactions for a non-Solana asset",
        "security": [{"FirebaseAppCheck": []}],
        "parameters": [
          {"name": "chain", "in": "path", "required": true, "schema": {"$ref": "#/components/schemas/MultichainFoundationChain"}},
          {"name": "address", "in": "path", "required": true, "schema": {"type": "string", "minLength": 1, "maxLength": 256}},
          {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}}
        ],
        "responses": {
          "200": {"description": "Normalized token transaction rows", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MultichainTransactionsResponse"}}}},
          "401": {"description": "Missing or invalid Firebase App Check token", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
          "503": {"description": "Transaction provider unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}}
        }
      }
    },
    "/v1/ai/respond": {
      "post": {
        "tags": [
          "AI"
        ],
        "summary": "Call Nova's thin Responses API gateway and receive assistant text plus structured local tool calls",
        "description": "Stateless agentic gateway. The client sends its own message history, optional capped public wallet/app context, and the active local tool manifest. The server validates App Check, rate limits the request, calls the LLM, and returns assistant text plus structured tool calls. The server never executes tools, never accepts wallet secrets, never signs transactions, and never broadcasts on behalf of the user.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiRespondRequest"
              },
              "examples": {
                "simpleToolCall": {
                  "value": {
                    "client": {
                      "deviceInstallId": "device-install-1",
                      "appVersion": "1.2.3",
                      "locale": "en-US",
                      "timezone": "America/Chicago"
                    },
                    "toolManifestVersion": "2026-06-24.local-tools.v1",
                    "runtimeCapabilitiesVersion": "2026-06-24.runtime.v1",
                    "minServerContractVersion": "2026-06-24.llm-gateway.v1",
                    "context": {
                      "activeWallet": {
                        "address": "9xQeWvG816bUx9EPfQ5D9b8fRGyJitf8F6f4fH6QJjAo",
                        "chain": "solana",
                        "label": "Main",
                        "snsDomains": [
                          "nova.sol"
                        ]
                      },
                      "currentScreen": "wallet.home",
                      "featureFlags": [
                        "swap_v2",
                        "wallet_native_orders_v1"
                      ]
                    },
                    "messages": [
                      {
                        "role": "user",
                        "content": "Make 2 wallets."
                      }
                    ],
                    "tools": [
                      {
                        "name": "nova.wallet.create",
                        "description": "Create one or more new wallets locally on this device.",
                        "inputSchema": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 5
                            }
                          },
                          "required": [
                            "count"
                          ],
                          "additionalProperties": false
                        },
                        "risk": "high",
                        "requiresConfirmation": true,
                        "display": {
                          "category": "wallet",
                          "title": "Create wallet",
                          "activity": {
                            "thinking": "Creating new wallet",
                            "running": "Creating new wallet",
                            "review": "Review wallet creation",
                            "signing": "Waiting for wallet signature...",
                            "success": "Wallet created",
                            "failure": "Wallet creation needs attention"
                          }
                        }
                      }
                    ],
                    "maxToolCalls": 1
                  }
                },
                "followUpWithToolResult": {
                  "value": {
                    "client": {
                      "deviceInstallId": "device-install-1",
                      "appVersion": "1.2.3",
                      "locale": "en-US",
                      "timezone": "America/Chicago"
                    },
                    "toolManifestVersion": "2026-06-24.local-tools.v1",
                    "runtimeCapabilitiesVersion": "2026-06-24.runtime.v1",
                    "minServerContractVersion": "2026-06-24.llm-gateway.v1",
                    "messages": [
                      {
                        "role": "user",
                        "content": "Make 1 wallet."
                      },
                      {
                        "role": "assistant",
                        "content": "I can do that now.",
                        "toolCalls": [
                          {
                            "toolCallId": "tc_123",
                            "name": "nova.wallet.create",
                            "arguments": {
                              "count": 1
                            }
                          }
                        ]
                      },
                      {
                        "role": "tool",
                        "tool_call_id": "tc_123",
                        "content": "{\"ok\":true,\"created\":1}"
                      }
                    ],
                    "tools": [
                      {
                        "name": "nova.wallet.create",
                        "description": "Create one or more new wallets locally on this device.",
                        "inputSchema": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 5
                            }
                          },
                          "required": [
                            "count"
                          ],
                          "additionalProperties": false
                        },
                        "risk": "high",
                        "requiresConfirmation": true,
                        "display": {
                          "category": "wallet",
                          "title": "Create wallet",
                          "activity": {
                            "thinking": "Creating new wallet",
                            "running": "Creating new wallet",
                            "review": "Review wallet creation",
                            "signing": "Waiting for wallet signature...",
                            "success": "Wallet created",
                            "failure": "Wallet creation needs attention"
                          }
                        }
                      }
                    ],
                    "maxToolCalls": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Assistant text and structured tool calls",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiRespondResponse"
                },
                "examples": {
                  "toolCall": {
                    "value": {
                      "requestId": "req_123",
                      "model": "gpt-5.4-mini",
                      "assistant": {
                        "content": "I can create those wallets for you."
                      },
                      "toolCalls": [
                        {
                          "toolCallId": "tc_123",
                          "name": "nova.wallet.create",
                          "arguments": {
                            "count": 2
                          },
                          "risk": "high",
                          "requiresConfirmation": true,
                          "display": {
                            "category": "wallet",
                            "title": "Create wallet",
                            "activity": {
                              "thinking": "Creating new wallet",
                              "running": "Creating new wallet",
                              "review": "Review wallet creation",
                              "signing": "Waiting for wallet signature...",
                              "success": "Wallet created",
                              "failure": "Wallet creation needs attention"
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "SSE stream emitting assistant.delta, tool.call, done, and error events. The client still executes all tools locally."
                },
                "example": "event: assistant.delta\\ndata: {\"requestId\":\"req_123\",\"contentDelta\":\"I can create those wallets for you.\"}\\n\\nevent: tool.call\\ndata: {\"requestId\":\"req_123\",\"toolCallId\":\"tc_123\",\"name\":\"wallet.create\",\"arguments\":{\"count\":2},\"risk\":\"high\",\"requiresConfirmation\":true,\"display\":{\"category\":\"wallet\",\"title\":\"Create wallet\",\"activity\":{\"thinking\":\"Creating new wallet\",\"running\":\"Creating new wallet\",\"review\":\"Review wallet creation\",\"signing\":\"Waiting for wallet signature...\",\"success\":\"Wallet created\",\"failure\":\"Wallet creation needs attention\"}}}\\n\\nevent: done\\ndata: {\"requestId\":\"req_123\",\"model\":\"gpt-5.4-mini\",\"toolCallCount\":1}\\n\\n"
              }
            }
          },
          "400": {
            "description": "Invalid gateway request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds gateway size limits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Gateway request rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Upstream model returned an invalid response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Gateway is not configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Gateway request timed out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/solscan/accounts/{address}/defi-activities": {
      "get": {
        "tags": [
          "Solscan"
        ],
        "summary": "Read public Solscan account DeFi activity",
        "description": "Returns normalized read-only Solscan DeFi activity for a public Solana wallet. Used by iOS-owned Nyomi tools for public wallet and KOL trade follow-ups. This route never signs, broadcasts, accepts wallet secrets, or accepts raw transactions.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 32,
              "maxLength": 44
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "swapsOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "activity_type",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized Solscan account DeFi activity",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid Solana address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Solscan is not configured or unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portfolio/tokens/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Fetch multichain token portfolio rows by wallet address",
        "description": "Deprecated compatibility alias. Migrate to `/data/v1/assets/tokens/by-address`. Nova-native wrapper over upstream mirror portfolio token data.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/portfolio/tokens/balances/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Fetch multichain token balance rows by wallet address",
        "description": "Deprecated compatibility alias. Migrate to `/data/v1/assets/tokens/balances/by-address`. Nova-native wrapper over upstream mirror portfolio token balances.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/portfolio/nfts/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Fetch NFT holdings by wallet address",
        "description": "Deprecated compatibility alias. Migrate to `/data/v1/assets/nfts/by-address`. Nova-native wrapper over upstream mirror portfolio NFT holdings.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/portfolio/nfts/contracts/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Fetch NFT collections by wallet address",
        "description": "Deprecated compatibility alias. Migrate to `/data/v1/assets/nfts/contracts/by-address`. Nova-native wrapper over upstream mirror portfolio NFT collections.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/portfolio/transactions/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Fetch transaction history by wallet address",
        "description": "Deprecated compatibility alias. Migrate to `/data/v1/transactions/history/by-address`. Nova-native wrapper over upstream mirror transaction history data.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/transfers/history": {
      "post": {
        "tags": [
          "Transfers"
        ],
        "summary": "Fetch indexed asset transfers",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/v2`. Nova-native compatibility wrapper for asset transfer lookups.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/tokens/balances": {
      "post": {
        "tags": [
          "Tokens"
        ],
        "summary": "Fetch token balances",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/v2`. Nova-native compatibility wrapper for token balance lookups.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/tokens/metadata": {
      "get": {
        "tags": [
          "Tokens"
        ],
        "summary": "Fetch token metadata",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/v2`. Nova-native compatibility wrapper for token metadata lookups.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "contractAddress",
            "in": "query",
            "required": true,
            "description": "Token contract address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/tokens/allowance": {
      "get": {
        "tags": [
          "Tokens"
        ],
        "summary": "Fetch token allowance",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/v2`. Nova-native compatibility wrapper for token allowance lookups.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": true,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "spender",
            "in": "query",
            "required": true,
            "description": "Spender address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contractAddress",
            "in": "query",
            "required": true,
            "description": "Token contract address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/tokens/prices/by-symbol": {
      "get": {
        "tags": [
          "Tokens"
        ],
        "summary": "Fetch token prices by symbol",
        "description": "Deprecated compatibility alias. Migrate to `/prices/v1/tokens/by-symbol`. Nova-native wrapper over upstream mirror Prices by symbol.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "symbols",
            "in": "query",
            "required": true,
            "description": "Comma-separated token symbols.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/tokens/prices/by-address": {
      "post": {
        "tags": [
          "Tokens"
        ],
        "summary": "Fetch token prices by address",
        "description": "Deprecated compatibility alias. Migrate to `/prices/v1/tokens/by-address`. Nova-native wrapper over upstream mirror Prices by address.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/tokens/prices/historical": {
      "post": {
        "tags": [
          "Tokens"
        ],
        "summary": "Fetch historical token prices",
        "description": "Deprecated compatibility alias. Migrate to `/prices/v1/tokens/historical`. Nova-native wrapper over upstream mirror historical prices.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/nfts/owner": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch NFTs owned by an address",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/nft/v3/getNFTsForOwner`. Nova-native wrapper over upstream mirror NFT ownership endpoints.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": true,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/nfts/metadata": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch NFT metadata",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/nft/v3/getNFTMetadata`. Nova-native wrapper over upstream mirror NFT metadata endpoints.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "contractAddress",
            "in": "query",
            "required": true,
            "description": "NFT contract address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tokenId",
            "in": "query",
            "required": true,
            "description": "NFT token id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/nfts/contracts": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch NFT collections for an owner",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/nft/v3/getContractsForOwner`. Nova-native wrapper over upstream mirror collection ownership endpoints.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": true,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/nfts/owners": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch owners for a specific NFT",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/nft/v3/getOwnersForNFT`. Nova-native wrapper over upstream mirror owner enumeration endpoints.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "contractAddress",
            "in": "query",
            "required": true,
            "description": "NFT contract address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tokenId",
            "in": "query",
            "required": true,
            "description": "NFT token id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/nfts/contract/search": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Search NFT contract metadata",
        "description": "Deprecated compatibility alias. Migrate to `/{network}/nft/v3/searchContractMetadata`. Nova-native wrapper over upstream mirror contract search endpoints.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Search query string.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Optional EVM chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Optional upstream mirror network slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/solana/assets/by-owner": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch Solana assets by owner",
        "description": "Deprecated compatibility alias. Migrate to `/solana-mainnet/v2`. Nova-native wrapper over upstream mirror Solana DAS getAssetsByOwner.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "ownerAddress",
            "in": "query",
            "required": true,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Optional page number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Optional page size.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/solana/assets/by-id": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch a Solana asset by id",
        "description": "Deprecated compatibility alias. Migrate to `/solana-mainnet/v2`. Nova-native wrapper over upstream mirror Solana DAS getAsset.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "Asset id or mint.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/solana/assets/by-group": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Fetch Solana assets by grouping key",
        "description": "Deprecated compatibility alias. Migrate to `/solana-mainnet/v2`. Nova-native wrapper over upstream mirror Solana DAS getAssetsByGroup.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "groupKey",
            "in": "query",
            "required": true,
            "description": "Grouping key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupValue",
            "in": "query",
            "required": true,
            "description": "Grouping value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Optional page number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Optional page size.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/rpc/evm": {
      "post": {
        "tags": [
          "RPC"
        ],
        "summary": "Execute a scoped EVM rpc call",
        "description": "Public, rate-limited read-only RPC and bounded Solana transaction simulation. Generic reads share 600/minute and 10000/hour across all IPs/replicas and fail closed if Redis coordination is unavailable; typed product routes are unaffected. Broadcast, administrative and provider-specific execution methods are disabled. Requests are limited to 16 KiB and responses to 2 MiB.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/rpc/solana": {
      "post": {
        "tags": [
          "RPC"
        ],
        "summary": "Execute a scoped Solana rpc call",
        "description": "Public, rate-limited read-only RPC and bounded Solana transaction simulation. Generic reads share 600/minute and 10000/hour across all IPs/replicas and fail closed if Redis coordination is unavailable; typed product routes are unaffected. Broadcast, administrative and provider-specific execution methods are disabled. Requests are limited to 16 KiB and responses to 2 MiB.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/simulate/evm": {
      "post": {
        "tags": [
          "Simulation"
        ],
        "summary": "Retired EVM simulation proxy",
        "description": "Disabled compatibility route. Transaction payload proxying is no longer available; use Nova's typed simulation APIs.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "410": {
            "description": "Generic transaction simulation proxying is disabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/simulate/solana": {
      "post": {
        "tags": [
          "Simulation"
        ],
        "summary": "Simulate a Solana transaction",
        "description": "Public, rate-limited read-only RPC and bounded Solana transaction simulation. Generic reads share 600/minute and 10000/hour across all IPs/replicas and fail closed if Redis coordination is unavailable; typed product routes are unaffected. Broadcast, administrative and provider-specific execution methods are disabled. Requests are limited to 16 KiB and responses to 2 MiB.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/trace/evm": {
      "post": {
        "tags": [
          "Simulation"
        ],
        "summary": "Retired EVM trace proxy",
        "description": "Disabled compatibility route. Caller-selected trace proxying is no longer available; use Nova's typed read-only APIs.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "410": {
            "description": "Generic EVM trace proxying is disabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/debug/evm": {
      "post": {
        "tags": [
          "Simulation"
        ],
        "summary": "Retired EVM debug proxy",
        "description": "Disabled compatibility route. Caller-selected debug proxying is no longer available; use Nova's typed read-only APIs.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "410": {
            "description": "Generic EVM debug proxying is disabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/webhooks": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "List configured webhooks",
        "description": "Deprecated compatibility alias. Migrate to `/dashboard/api/team-webhooks`. Lists upstream mirror webhooks using the dedicated notify token.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Create a webhook",
        "description": "Deprecated compatibility alias. Migrate to `/dashboard/api/create-webhook`. Creates an upstream mirror webhook using the dedicated notify token.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      },
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Update a webhook",
        "description": "Deprecated compatibility alias. Migrate to `/dashboard/api/update-webhook`. Updates an upstream mirror webhook using the dedicated notify token.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/webhooks/{webhookId}": {
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Delete a webhook",
        "description": "Deprecated compatibility alias. Migrate to `/dashboard/api/delete-webhook`. Deletes an upstream mirror webhook using the dedicated notify token.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "description": "Webhook identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/webhooks/addresses": {
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Replace webhook addresses",
        "description": "Deprecated compatibility alias. Migrate to `/dashboard/api/update-webhook-addresses`. Replaces the address set for an address activity webhook.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/webhooks/{webhookId}/nft-filters": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Fetch nft filters for a webhook",
        "description": "Deprecated compatibility alias. Migrate to `/dashboard/api/webhook-nft-filters`. Lists NFT filters configured on a webhook.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "description": "Webhook identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/data/v1/assets/tokens/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Proxy upstream mirror portfolio tokens by address",
        "description": "Thin pass-through mirror of upstream mirror POST /data/v1/assets/tokens/by-address. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/assets/tokens/balances/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Proxy upstream mirror portfolio token balances by address",
        "description": "Thin pass-through mirror of upstream mirror POST /data/v1/assets/tokens/balances/by-address. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/assets/nfts/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Proxy upstream mirror portfolio NFTs by address",
        "description": "Thin pass-through mirror of upstream mirror POST /data/v1/assets/nfts/by-address. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/assets/nfts/contracts/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Proxy upstream mirror portfolio NFT contracts by address",
        "description": "Thin pass-through mirror of upstream mirror POST /data/v1/assets/nfts/contracts/by-address. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/transactions/history/by-address": {
      "post": {
        "tags": [
          "Portfolio"
        ],
        "summary": "Proxy upstream mirror transactions history by address",
        "description": "Thin pass-through mirror of upstream mirror POST /data/v1/transactions/history/by-address. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/prices/v1/tokens/by-symbol": {
      "get": {
        "tags": [
          "Tokens"
        ],
        "summary": "Proxy upstream mirror prices by symbol",
        "description": "Thin pass-through mirror of upstream mirror GET /prices/v1/tokens/by-symbol. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "symbols",
            "in": "query",
            "required": true,
            "description": "Comma-separated token symbols.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/prices/v1/tokens/by-address": {
      "post": {
        "tags": [
          "Tokens"
        ],
        "summary": "Proxy upstream mirror prices by address",
        "description": "Thin pass-through mirror of upstream mirror POST /prices/v1/tokens/by-address. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/prices/v1/tokens/historical": {
      "post": {
        "tags": [
          "Tokens"
        ],
        "summary": "Proxy upstream mirror historical token prices",
        "description": "Thin pass-through mirror of upstream mirror POST /prices/v1/tokens/historical. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/{network}/v2": {
      "post": {
        "tags": [
          "RPC"
        ],
        "summary": "Proxy raw upstream mirror JSON-RPC",
        "description": "Public, rate-limited read-only RPC and bounded Solana transaction simulation. Generic reads share 600/minute and 10000/hour across all IPs/replicas and fail closed if Redis coordination is unavailable; typed product routes are unaffected. Administrative and provider-specific execution methods are disabled. Legacy mainnet sendTransaction accepts only fully signed canonical Solana packets and forwards once to public Nova Dynode, with dedicated 60/minute and 1000/hour IP limits plus coordinated all-IP limits of 240/minute and 3600/hour. Submission is unavailable if its shared Redis budget cannot be coordinated; transport uncertainty requires signature reconciliation, never a blind retry. Requests are limited to 16 KiB and responses to 2 MiB.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "description": "Canonical upstream mirror network slug. Use exact values like eth-mainnet, base-mainnet, or solana-mainnet. Legacy sol-mainnet is accepted as a compatibility shim.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/{network}/nft/v3/getNFTsForOwner": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Proxy upstream mirror NFTs for owner",
        "description": "Thin pass-through mirror of upstream mirror GET /{network}/nft/v3/getNFTsForOwner. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "description": "Canonical upstream mirror network slug. Use exact values like eth-mainnet, base-mainnet, or solana-mainnet. Legacy sol-mainnet is accepted as a compatibility shim.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "owner",
            "in": "query",
            "required": true,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/{network}/nft/v3/getNFTMetadata": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Proxy upstream mirror NFT metadata",
        "description": "Thin pass-through mirror of upstream mirror GET /{network}/nft/v3/getNFTMetadata. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "description": "Canonical upstream mirror network slug. Use exact values like eth-mainnet, base-mainnet, or solana-mainnet. Legacy sol-mainnet is accepted as a compatibility shim.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contractAddress",
            "in": "query",
            "required": true,
            "description": "NFT contract address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tokenId",
            "in": "query",
            "required": true,
            "description": "NFT token id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/{network}/nft/v3/getContractsForOwner": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Proxy upstream mirror NFT contracts for owner",
        "description": "Thin pass-through mirror of upstream mirror GET /{network}/nft/v3/getContractsForOwner. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "description": "Canonical upstream mirror network slug. Use exact values like eth-mainnet, base-mainnet, or solana-mainnet. Legacy sol-mainnet is accepted as a compatibility shim.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "owner",
            "in": "query",
            "required": true,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/{network}/nft/v3/getOwnersForNFT": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Proxy upstream mirror NFT owners",
        "description": "Thin pass-through mirror of upstream mirror GET /{network}/nft/v3/getOwnersForNFT. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "description": "Canonical upstream mirror network slug. Use exact values like eth-mainnet, base-mainnet, or solana-mainnet. Legacy sol-mainnet is accepted as a compatibility shim.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contractAddress",
            "in": "query",
            "required": true,
            "description": "NFT contract address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tokenId",
            "in": "query",
            "required": true,
            "description": "NFT token id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/{network}/nft/v3/searchContractMetadata": {
      "get": {
        "tags": [
          "NFTs"
        ],
        "summary": "Proxy upstream mirror contract metadata search",
        "description": "Thin pass-through mirror of upstream mirror GET /{network}/nft/v3/searchContractMetadata. Nova injects the API key and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "description": "Canonical upstream mirror network slug. Use exact values like eth-mainnet, base-mainnet, or solana-mainnet. Legacy sol-mainnet is accepted as a compatibility shim.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Search query string.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/api/team-webhooks": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Proxy upstream mirror team webhooks",
        "description": "Thin pass-through mirror of upstream mirror GET /dashboard/api/team-webhooks. Nova injects the notify token and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/api/create-webhook": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Proxy upstream mirror create webhook",
        "description": "Thin pass-through mirror of upstream mirror POST /dashboard/api/create-webhook. Nova injects the notify token and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/api/update-webhook": {
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Proxy upstream mirror update webhook",
        "description": "Thin pass-through mirror of upstream mirror PUT /dashboard/api/update-webhook. Nova injects the notify token and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/api/delete-webhook": {
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Proxy upstream mirror delete webhook",
        "description": "Thin pass-through mirror of upstream mirror DELETE /dashboard/api/delete-webhook. Provide the upstream webhook_id query parameter; Nova injects the notify token and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "query",
            "required": true,
            "description": "upstream mirror webhook identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/api/update-webhook-addresses": {
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Proxy upstream mirror update webhook addresses",
        "description": "Thin pass-through mirror of upstream mirror PUT /dashboard/api/update-webhook-addresses. Nova injects the notify token and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/api/webhook-nft-filters": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Proxy upstream mirror webhook NFT filters",
        "description": "Thin pass-through mirror of upstream mirror GET /dashboard/api/webhook-nft-filters. Provide the upstream webhook_id query parameter; Nova injects the notify token and returns the upstream status/body unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "query",
            "required": true,
            "description": "upstream mirror webhook identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaFlexibleResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "403": {
            "description": "App Check rejected or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          },
          "503": {
            "description": "Required upstream mirror capability is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMirrorRouteError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/directory": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "Paginated KOL directory",
        "description": "Returns the full Firestore-backed Nova KOL directory sorted by imported rank/profit. Use nextCursor for pages after the first page.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 250,
              "default": 100
            },
            "description": "Maximum KOL profiles to return."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Cursor returned by the previous page."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KolDirectoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/directory/resolve/{query}": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "Resolve a KOL directory profile",
        "description": "Resolves one KOL by wallet address, display name, X handle, or Telegram handle without returning the full directory.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "query",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "KOL wallet address, name, or social handle."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KolDirectoryItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "KOL profile not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/leaderboard/top": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "Top KOL leaderboard entries",
        "description": "Returns the top cached KOLs ranked by realized 24h gain. Fiat defaults to USD.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 3
            },
            "description": "Maximum KOLs to return."
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "USD",
              "example": "USD"
            },
            "description": "3-letter fiat currency code."
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "24h"
              ],
              "default": "24h"
            },
            "description": "Leaderboard period."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KolLeaderboardTopResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/leaderboard": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "Paginated KOL leaderboard",
        "description": "Returns cached KOL leaderboard rows. Use nextCursor for pages after the first page.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "24h"
              ],
              "default": "24h"
            },
            "description": "Leaderboard period."
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "gain"
              ],
              "default": "gain"
            },
            "description": "Sort mode."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            },
            "description": "First page may use page=1; later pages require cursor."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            },
            "description": "Maximum rows to return."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Cursor returned by the previous page."
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "USD",
              "example": "USD"
            },
            "description": "3-letter fiat currency code."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KolLeaderboardResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/trades/feed": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "Recent KOL trade feed",
        "description": "Returns recent normalized trades from tracked KOL wallets. Cursor pagination is stable across new inserts.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            },
            "description": "Maximum trades to return."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Cursor returned by the previous page."
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "USD",
              "example": "USD"
            },
            "description": "3-letter fiat currency code."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KolTradeFeedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/trades/top": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "Largest KOL trades",
        "description": "Returns the largest cached KOL trades in the 24h period by fiat/SOL value.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "24h"
              ],
              "default": "24h"
            },
            "description": "Trade window."
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "amount"
              ],
              "default": "amount"
            },
            "description": "Sort mode."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            },
            "description": "Maximum trades to return."
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "USD",
              "example": "USD"
            },
            "description": "3-letter fiat currency code."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KolTradeTopResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/kols/events": {
      "get": {
        "tags": [
          "KOLs"
        ],
        "summary": "KOL live update events",
        "description": "Server-sent events that notify active clients when new trades or leaderboard snapshots are available. Clients should refetch the snapshot/feed APIs; SSE payloads are intentionally small.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "responses": {
          "200": {
            "description": "SSE stream",
            "content": {
              "text/event-stream": {
                "schema": {
                  "$ref": "#/components/schemas/KolEvent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Firebase App Check token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "KOL data unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v4/wallet-profiles/{address}/positions": {
      "get": {
        "tags": [
          "Data V4"
        ],
        "summary": "Load enriched public-wallet positions without changing legacy contracts.",
        "description": "Returns Solana position cost basis, entry, PnL, timing, and server-side classification. Existing v1-v3 routes are unchanged.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "excludeSpam",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeDust",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeUnpriced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "positionsOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "minValueUsd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "pnlMode",
            "in": "query",
            "required": false,
            "description": "Defaults to blocking for installed-client compatibility. nonblocking reads only cached PnL for the returned page, reports cached, partial, or unavailable enrichment, and performs no provider, RPC, accounting-verification, write, or background-refresh work.",
            "schema": {
              "type": "string",
              "enum": [
                "blocking",
                "nonblocking"
              ],
              "default": "blocking"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova wallet positions v4 response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaWalletPositionsV4Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet profile provider unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v4/wallet-profiles/{address}/activity": {
      "get": {
        "tags": [
          "Data V4"
        ],
        "summary": "Load enriched public-wallet activity without changing legacy contracts.",
        "description": "Tracker-only indexed trade executions. Returns stable event IDs, API-normalized action, direction, tokens and movement legs. Cursor pagination preserves multiple executions in a transaction. Transfer-only history and exact per-fill realized PnL remain explicitly unavailable.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque wallet/filter-scoped cursor from nextCursor. Do not combine with offset.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "trade",
                "transfer",
                "reward",
                "protocol",
                "spam",
                "unknown"
              ]
            }
          },
          {
            "name": "excludeSpam",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeDust",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeFailed",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "groupExecutions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "minValueUsd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova wallet activity v4 response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaWalletActivityV4Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet profile provider unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "ACTIVITY_PAGE_CHANGED: reload from the first page rather than append to a changed snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/wallet-profiles/{address}/other-user": {
      "get": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load a Nova-owned other-user wallet profile contract.",
        "description": "Returns a shared v2 envelope. Provider payloads are normalized server-side and money, amount, price, percentage, PnL, and chart values are decimal strings.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeChart",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova v2 data envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaWalletOtherUserProfileV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/wallet-profiles/{address}/portfolio-chart": {
      "get": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load a Nova-owned wallet portfolio chart contract.",
        "description": "Canonical range-aware chart contract with decimal-string values. The 5m and 1h ranges use Nova's cached minute observations of authoritative wallet totals; longer ranges use the cached Solana Tracker wallet portfolio chart. Optional provider outage returns an unavailable envelope instead of leaking upstream errors.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fiat",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "live",
                "5m",
                "1h",
                "4h",
                "1d",
                "3d",
                "7d",
                "1w",
                "30d",
                "1y",
                "Full"
              ]
            }
          },
          {
            "name": "resolution",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "live",
                "5m",
                "1h",
                "4h",
                "1d",
                "3d",
                "7d",
                "1w",
                "30d",
                "1y",
                "Full"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova v2 data envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaWalletPortfolioChartV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/wallet-profiles/{address}/trades": {
      "get": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load Nova-owned wallet trade rows.",
        "description": "Solana trade activity normalized to Nova DTOs. The response excludes signing, raw transaction, and provider-specific router fields.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova v2 data envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaWalletTradesV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/data/solana/tokens/{mint}/trades": {
      "get": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load normalized Solana token transactions.",
        "description": "Returns Nova-owned transaction rows with normalized wallet entity metadata. Requests that omit events retain the released swap-only behavior. Set events=all to include liquidity events for clients that support them. Raw identity fields remain additive for compatibility while entity and entityContext provide the stable cross-surface contract.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "mint",
            "in": "path",
            "required": true,
            "description": "Canonical Solana token mint address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1024
            }
          },
          {
            "name": "events",
            "in": "query",
            "required": false,
            "description": "Opt in to swaps and liquidity events. Omission preserves swap-only responses for released clients.",
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ]
            }
          },
          {
            "name": "entities",
            "in": "query",
            "required": false,
            "description": "Opt in to token-scoped KOL trades for chart markers. Omission preserves the released transaction feed.",
            "schema": {
              "type": "string",
              "enum": [
                "kols"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova v2 token transaction envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaSolanaTokenTradesV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/data/solana/tokens/{mint}/holders": {
      "get": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load normalized Solana token holders.",
        "description": "Returns holder rows with the same normalized wallet entity and token-scoped entity context used by token transactions. Enrichment is resolved and cached server-side.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "mint",
            "in": "path",
            "required": true,
            "description": "Canonical Solana token mint address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova v2 token holder envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaSolanaTokenHoldersV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/home/portfolio": {
      "post": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load the Home portfolio v2 envelope.",
        "description": "Wraps the Nova-owned Home portfolio read model in the shared v2 envelope and normalizes decimal wire values for mobile decoding.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Nova v2 data envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaHomePortfolioV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/mobile/wallet-sync": {
      "post": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load the compact native mobile wallet-sync v2 envelope.",
        "description": "Returns the compact native Home projection in the shared v2 envelope. It keeps canonical top-level holdings and tokenAccounts, the portfolio summary, and tokenRows while omitting duplicate payload.tokens and portfolio token aliases. Use /data/v2/mobile/sync when the full compatibility projection is required.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Nova compact mobile wallet-sync v2 envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaMobileWalletSyncCompactV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/mobile/sync": {
      "post": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load the full compatibility mobile sync v2 envelope.",
        "description": "Returns section-oriented mobile sync data in the shared v2 envelope while retaining legacy duplicate Home token aliases for compatibility. The compact /data/v2/mobile/wallet-sync operation has the same sync semantics but a deliberately smaller response projection.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Nova v2 data envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaMobileSyncV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/v2/social/feed": {
      "get": {
        "tags": [
          "Data V2"
        ],
        "summary": "Load the social feed v2 envelope.",
        "description": "Returns feed rows in the shared v2 envelope with amount fields encoded as decimal strings.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "deviceInstallId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "viewerId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mixed",
                "tracking",
                "discovery"
              ],
              "default": "mixed"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "for_you",
                "newest",
                "top_traders"
              ],
              "default": "for_you"
            },
            "description": "Feed sort preset. Use newest for chronological For You, top_traders for ranked discovery, and newest with tracking mode for tracked users."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nova v2 data envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NovaSocialFeedV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "App Check required or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/points/public/total": {
      "get": {
        "tags": [
          "Rewards"
        ],
        "summary": "Fetch total NOV points rewarded",
        "description": "Public read-only aggregate of completed compressed NOV reward distributions. Does not require Firebase App Check.",
        "responses": {
          "200": {
            "description": "Total compressed NOV reward points distributed so far",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RewardPointsPublicTotalResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Reward points unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/points/{walletAddress}": {
      "get": {
        "tags": [
          "Rewards"
        ],
        "summary": "Fetch compressed NOV reward points",
        "parameters": [
          {
            "name": "walletAddress",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Reward mint. Defaults to configured NOV mint."
          }
        ],
        "responses": {
          "200": {
            "description": "Compressed NOV reward point balance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RewardPointsBalanceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Firebase App Check required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Reward points unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/points/decompress/build": {
      "post": {
        "tags": [
          "Rewards"
        ],
        "summary": "Build unsigned compressed NOV decompress transaction",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RewardPointsDecompressBuildRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unsigned decompress transaction for local signing and broadcast",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RewardPointsDecompressBuildResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or no compressed rewards",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Firebase App Check required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Reward points unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/solana/orders/policy": {
      "get": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Read the current Nova order client policy",
        "description": "Returns versioned product policy that compatible released clients can refresh without an App Store update. On-chain program, allowance, signing, and fee safety checks remain authoritative and independent.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current versioned client policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderClientPolicyV1"
                }
              }
            }
          },
          "401": {
            "description": "Firebase App Check required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/solana/orders/prepare": {
      "post": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Validate an owner-authored unsigned order proposal",
        "description": "Normalizes and validates the exact client-authored terms, salt, canonical PDAs, mint policy, decimals, and token-account derivations. Missing canonical ATAs are allowed so iOS can create them in the same locally signed transaction. This endpoint never creates or replaces order terms, signs, or broadcasts.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletNativeOrderPrepareRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Normalized unsigned proposal and resolved canonical accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderPrepareResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed order payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated wallet does not own this order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "An edit proposal references no registered live order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Finalized chain evidence or canonical account state conflicts with the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "The bounded owner history or request limit was exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/solana/orders": {
      "post": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Register a finalized owner-signed order",
        "description": "Registers readable encrypted intent metadata only after finalized RPC proof validates the owner-signed create, exact Order PDA, Fixed Delegation, Subscription Authority, source allowance, temp account, destination account, and salted intent commitments.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletNativeOrderRecordRequestV1"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Registered canonical order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderReadV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed order payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated wallet does not own this order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Finalized chain evidence or canonical account state conflicts with the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "The bounded owner history or request limit was exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "List the authenticated wallet's orders",
        "description": "The owner is taken only from the bearer wallet session. The API returns bounded, paginated readable metadata merged with fail-closed canonical chain state.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "history",
                "all"
              ],
              "default": "active"
            }
          },
          {
            "name": "mint",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CanonicalSolanaAddress"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated owner orders.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderListResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed order payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated wallet does not own this order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Finalized chain evidence or canonical account state conflicts with the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "The bounded owner history or request limit was exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/solana/orders/{orderPda}": {
      "get": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Get one canonical owner order",
        "description": "Reads one order owned by the authenticated bearer wallet and refreshes it against finalized canonical chain state. The response never exposes encrypted storage metadata, internal session identifiers, keeper credentials, or signing authority.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "orderPda",
            "in": "path",
            "required": true,
            "description": "Canonical Nova Order PDA.",
            "schema": {
              "$ref": "#/components/schemas/CanonicalSolanaAddress"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Canonical owner order.",
            "headers": {
              "ETag": {
                "description": "Quoted owner revision entity tag.",
                "schema": {
                  "type": "string",
                  "pattern": "^\"[1-9][0-9]*\"$",
                  "example": "\"3\""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderReadV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed order payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated wallet does not own this order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Order not found for the authenticated wallet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Finalized chain evidence or canonical account state conflicts with the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "The bounded owner history or request limit was exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Reconcile a finalized owner-signed order edit",
        "description": "The replacement record revision must equal the prior owner revision plus one. The API verifies the finalized owner-signed edit and complete canonical allowance state; it does not build, sign, or submit the transaction.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "orderPda",
            "in": "path",
            "required": true,
            "description": "Canonical Nova Order PDA.",
            "schema": {
              "$ref": "#/components/schemas/CanonicalSolanaAddress"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "description": "Strong quoted ETag containing the prior positive owner revision, for example `\"3\"`. Weak or unquoted values are rejected.",
            "schema": {
              "type": "string",
              "pattern": "^\"[1-9][0-9]*\"$",
              "example": "\"3\""
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletNativeOrderRecordRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Edited canonical order.",
            "headers": {
              "ETag": {
                "description": "Quoted owner revision entity tag.",
                "schema": {
                  "type": "string",
                  "pattern": "^\"[1-9][0-9]*\"$",
                  "example": "\"3\""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderReadV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed order payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated wallet does not own this order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Order not found for the authenticated wallet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Finalized chain evidence or canonical account state conflicts with the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "412": {
            "description": "If-Match is stale.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "The bounded owner history or request limit was exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "428": {
            "description": "If-Match is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Reconcile owner-signed cancellation or post-fill cleanup",
        "description": "For an active order, verifies finalized owner cancellation with close-temp before cancel and revoke after cancel whenever those resources remain present, then proves all order resources absent. For a filled order, verifies the same owner cleanup, preserves filled history and fill signature, and marks only the chain resources closed. The API does not sign or broadcast.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "orderPda",
            "in": "path",
            "required": true,
            "description": "Canonical Nova Order PDA.",
            "schema": {
              "$ref": "#/components/schemas/CanonicalSolanaAddress"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "description": "Strong quoted ETag containing the prior positive owner revision, for example `\"3\"`. Weak or unquoted values are rejected.",
            "schema": {
              "type": "string",
              "pattern": "^\"[1-9][0-9]*\"$",
              "example": "\"3\""
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletNativeOrderCancellationRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cancelled order or filled order with verified cleanup.",
            "headers": {
              "ETag": {
                "description": "Quoted owner revision entity tag.",
                "schema": {
                  "type": "string",
                  "pattern": "^\"[1-9][0-9]*\"$",
                  "example": "\"3\""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderReadV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed order payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The authenticated wallet does not own this order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Order not found for the authenticated wallet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Finalized chain evidence or canonical account state conflicts with the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "412": {
            "description": "If-Match is stale.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "The bounded owner history or request limit was exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "428": {
            "description": "If-Match is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/perps/hyperliquid/availability": {
      "get": {
        "tags": [
          "Hyperliquid Perpetuals"
        ],
        "summary": "Fetch Hyperliquid product availability",
        "description": "Returns globally enabled swap and perpetual product availability. Request-country data is telemetry only and must not be used by clients to block products. The endpoint remains available without App Check so clients can load market classification before authentication.",
        "security": [],
        "responses": {
          "200": {
            "description": "Current product availability and stock-market category snapshot.",
            "headers": {
              "Cache-Control": {
                "description": "Short public cache policy for the global availability snapshot.",
                "schema": {
                  "type": "string",
                  "example": "public, max-age=30, s-maxage=60, stale-while-revalidate=300"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HyperliquidAvailabilityResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/perps/hyperliquid/watches": {
      "put": {
        "tags": [
          "Hyperliquid Perpetuals"
        ],
        "summary": "Register Hyperliquid position monitoring",
        "description": "Creates or updates one device-scoped watch, or atomically validates and registers up to 100 wallet addresses. This stores notification metadata only and grants no trading or signing authority. Private state is scoped to the proven wallet and installation label. Legacy ID-only access is refused; knowledge of an old identifier does not claim or migrate its data.",
        "security": [
          {
            "DeviceWalletSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HyperliquidPerpsWatchUpsertRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The single or batch watch registration result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HyperliquidPerpsWatchUpsertResponse"
                }
              }
            }
          },
          "400": {
            "description": "The watch request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "DEVICE_OWNERSHIP_REQUIRED: a valid wallet-proof session is required for private installation state."
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/perps/hyperliquid/watches/{deviceId}": {
      "get": {
        "tags": [
          "Hyperliquid Perpetuals"
        ],
        "summary": "List Hyperliquid watches for a device",
        "description": "Returns the notification watches registered for the supplied device identifier. Private state is scoped to the proven wallet and installation label. Legacy ID-only access is refused; knowledge of an old identifier does not claim or migrate its data.",
        "security": [
          {
            "DeviceWalletSession": []
          }
        ],
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "description": "Stable Nova device installation identifier.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The device's current watch registrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HyperliquidPerpsWatchListResponse"
                }
              }
            }
          },
          "401": {
            "description": "DEVICE_OWNERSHIP_REQUIRED: a valid wallet-proof session is required for private installation state."
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/perps/hyperliquid/watches/{deviceId}/{walletAddress}": {
      "delete": {
        "tags": [
          "Hyperliquid Perpetuals"
        ],
        "summary": "Delete a Hyperliquid watch",
        "description": "Removes one device-scoped notification watch. It does not change the Hyperliquid account. Private state is scoped to the proven wallet and installation label. Legacy ID-only access is refused; knowledge of an old identifier does not claim or migrate its data.",
        "security": [
          {
            "DeviceWalletSession": []
          }
        ],
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "description": "Stable Nova device installation identifier.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "walletAddress",
            "in": "path",
            "required": true,
            "description": "Hyperliquid EVM-format account address.",
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The watch was removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "DEVICE_OWNERSHIP_REQUIRED: a valid wallet-proof session is required for private installation state."
          },
          "404": {
            "description": "No matching watch registration exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/perps/hyperliquid/accounts/{walletAddress}/summary": {
      "get": {
        "tags": [
          "Hyperliquid Perpetuals"
        ],
        "summary": "Fetch a Hyperliquid account summary",
        "description": "Returns normalized open positions and orders from Hyperliquid. This read-only endpoint accepts no secret, signature, or transaction payload.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "walletAddress",
            "in": "path",
            "required": true,
            "description": "Hyperliquid EVM-format account address.",
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized positions and open orders for the account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HyperliquidPerpsAccountSummaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Firebase App Check is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Hyperliquid could not complete the read-only account request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/solana/orders/{orderPda}/cleanup": {
      "put": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "Reconcile owner-signed cleanup after finalized expiry",
        "description": "For an already finalized expired and closed order, verifies a later owner-only finalized transaction containing exactly the canonical temporary-account close. It proves the Order and temporary account absent afterward, preserves the original expired history, and never cancels the Order or revokes the shared source delegate. The API does not sign or broadcast.",
        "security": [
          {
            "BearerAuth": [],
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "orderPda",
            "in": "path",
            "required": true,
            "description": "Canonical Nova Order PDA.",
            "schema": {
              "$ref": "#/components/schemas/CanonicalSolanaAddress"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "description": "Strong quoted ETag containing the prior positive owner revision, for example `\"3\"`.",
            "schema": {
              "type": "string",
              "pattern": "^\"[1-9][0-9]*\"$",
              "example": "\"3\""
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletNativeOrderCleanupRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Expired history with verified private per-order cleanup evidence.",
            "headers": {
              "ETag": {
                "description": "Quoted owner revision entity tag.",
                "schema": {
                  "type": "string",
                  "pattern": "^\"[1-9][0-9]*\"$",
                  "example": "\"3\""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderReadV1"
                }
              }
            }
          },
          "400": {
            "description": "Malformed cleanup payload or conditional header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid wallet bearer session or App Check token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Order not found for the authenticated wallet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The order is not canonically expired and closed, or finalized cleanup proof conflicts with the order binding.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "412": {
            "description": "If-Match is stale.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "428": {
            "description": "If-Match is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order APIs or canonical providers are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/internal/v1/solana/orders/eligible": {
      "get": {
        "tags": [
          "Wallet-native Solana Orders"
        ],
        "summary": "List bounded keeper candidates",
        "description": "Internal read-only feed for the isolated keeper. The API never holds the keeper signing key. Permissionless records remain candidates for an external full-size Jupiter route check; advisory price evaluation alone is never execution authority.",
        "security": [
          {
            "WalletNativeKeeperAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 250,
              "default": 100
            }
          },
          {
            "name": "afterOrderPda",
            "in": "query",
            "required": false,
            "description": "Canonical order PDA returned by the prior page cursor header.",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded eligible or route-check candidate orders.",
            "headers": {
              "X-Nova-Eligible-Next-Cursor": {
                "description": "Last raw monitorable order PDA scanned when another page remains. Omitted at the end of a scan.",
                "schema": {
                  "type": "string",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletNativeOrderEligibleResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Invalid candidate limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid isolated keeper bearer credential.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Wallet-native order monitor is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/users/search": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Search collected public wallet profiles",
        "description": "Search Nova’s passive public Solana Tracker identity directory. Captures existing REST/Datastream traffic without extra provider requests. These are provider-reported wallet identities, not registered Nova users or verified ownership. Historical aliases remain searchable; coverage is incomplete. No upstream search fallback or model inference.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 128
            },
            "description": "Name, public handle (optional @), domain, platform account ID or case-sensitive Solana address. Exact/prefix search."
          },
          {
            "name": "platform",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 32,
              "pattern": "^[a-z0-9_-]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching observed identities",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletDirectorySearchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query"
          },
          "401": {
            "description": "App Check required"
          },
          "429": {
            "description": "Rate limited"
          },
          "503": {
            "description": "Directory unavailable"
          }
        }
      }
    },
    "/data/v1/solana/users/search": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Search collected public wallet profiles",
        "description": "Search Nova’s passive public Solana Tracker identity directory. Captures existing REST/Datastream traffic without extra provider requests. These are provider-reported wallet identities, not registered Nova users or verified ownership. Historical aliases remain searchable; coverage is incomplete. No upstream search fallback or model inference.",
        "security": [
          {
            "FirebaseAppCheck": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 128
            },
            "description": "Name, public handle (optional @), domain, platform account ID or case-sensitive Solana address. Exact/prefix search."
          },
          {
            "name": "platform",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 32,
              "pattern": "^[a-z0-9_-]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching observed identities",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletDirectorySearchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query"
          },
          "401": {
            "description": "App Check required"
          },
          "429": {
            "description": "Rate limited"
          },
          "503": {
            "description": "Directory unavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "FirebaseAppCheck": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Firebase-AppCheck",
        "description": "Firebase App Check token required on protected app-facing routes such as /v1/ai/respond."
      },
      "WalletNativeKeeperAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Dedicated credential for the isolated, non-custodial wallet-native keeper read feed. This credential is not a Solana signing key."
      },
      "DeviceWalletSession": {
        "type": "http",
        "scheme": "bearer",
        "description": "Wallet-proof session for private installation state. Supports existing wallet bearer sessions and native access sessions where enabled. App Check or knowledge of an installation ID does not prove ownership."
      }
    },
    "schemas": {
      "MultichainFoundationChain": {
        "type": "string",
        "enum": ["solana", "bitcoin", "ethereum", "smartchain", "robinhood", "polygon", "arbitrum", "base", "tron", "hyperliquid", "hypercore"]
      },
      "MultichainResponseMeta": {
        "type": "object",
        "required": ["cached", "retrievedAt"],
        "properties": {
          "cached": {"type": "boolean"},
          "retrievedAt": {"type": "string", "format": "date-time"}
        },
        "additionalProperties": false
      },
      "MultichainCapabilitySnapshot": {
        "type": "object",
        "required": ["schemaVersion", "generatedAt", "chains"],
        "properties": {
          "schemaVersion": {"type": "string", "const": "1"},
          "generatedAt": {"type": "string", "format": "date-time"},
          "chains": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["chain", "networkId", "providerNetworkName", "capabilities"],
              "properties": {
                "chain": {"$ref": "#/components/schemas/MultichainFoundationChain"},
                "networkId": {"type": ["integer", "null"]},
                "providerNetworkName": {"type": ["string", "null"]},
                "capabilities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": ["feature", "provider", "providerSupported", "routeStatus", "mode", "route", "reason"],
                    "properties": {
                      "feature": {"type": "string"},
                      "provider": {"type": ["string", "null"]},
                      "providerSupported": {"type": "boolean"},
                      "routeStatus": {"type": "string"},
                      "mode": {"type": "string"},
                      "route": {"type": ["object", "null"]},
                      "reason": {"type": ["string", "null"]}
                    }
                  }
                }
              }
            }
          }
        },
        "additionalProperties": false
      },
      "MultichainAssetSearchItem": {
        "type": "object",
        "required": ["id", "chain", "networkId", "address", "name", "symbol", "decimals", "logoUrl", "logoUrls", "verified", "isNative", "isScam", "potentialScamReasons", "priceUsd", "liquidityUsd", "volume24hUsd", "marketCapUsd", "priceChange24h"],
        "properties": {
          "id": {"type": "string"},
          "chain": {"$ref": "#/components/schemas/MultichainFoundationChain"},
          "networkId": {"type": "integer"},
          "address": {"type": "string"},
          "name": {"type": ["string", "null"]},
          "symbol": {"type": ["string", "null"]},
          "decimals": {"type": ["integer", "null"]},
          "logoUrl": {"type": ["string", "null"], "format": "uri"},
          "logoUrls": {"type": "array", "items": {"type": "string", "format": "uri"}},
          "verified": {"type": "boolean"},
          "isNative": {"type": "boolean"},
          "isScam": {"type": ["boolean", "null"]},
          "potentialScamReasons": {"type": "array", "items": {"type": "string"}},
          "priceUsd": {"type": ["string", "null"]},
          "liquidityUsd": {"type": ["string", "null"]},
          "volume24hUsd": {"type": ["string", "null"]},
          "marketCapUsd": {"type": ["string", "null"]},
          "priceChange24h": {"type": ["string", "null"]}
        },
        "additionalProperties": false
      },
      "MultichainAssetSearchResponse": {
        "type": "object",
        "required": ["schemaVersion", "chain", "networkId", "provider", "capability", "data", "meta"],
        "properties": {
          "schemaVersion": {"type": "string", "const": "1"},
          "chain": {"$ref": "#/components/schemas/MultichainFoundationChain"},
          "networkId": {"type": "integer"},
          "provider": {"type": "string", "const": "relay"},
          "capability": {"type": "string", "const": "asset_search"},
          "data": {
            "type": "object",
            "required": ["items"],
            "properties": {"items": {"type": "array", "items": {"$ref": "#/components/schemas/MultichainAssetSearchItem"}}},
            "additionalProperties": false
          },
          "meta": {"$ref": "#/components/schemas/MultichainResponseMeta"}
        },
        "additionalProperties": false
      },
      "MultichainCandle": {
        "type": "object",
        "required": ["timestamp", "open", "high", "low", "close", "volume"],
        "properties": {
          "timestamp": {"type": "integer", "minimum": 1},
          "open": {"type": "string"},
          "high": {"type": "string"},
          "low": {"type": "string"},
          "close": {"type": "string"},
          "volume": {"type": ["string", "null"]}
        },
        "additionalProperties": false
      },
      "MultichainChartResponse": {
        "type": "object",
        "required": ["schemaVersion", "chain", "networkId", "address", "provider", "data", "meta"],
        "properties": {
          "schemaVersion": {"type": "string", "const": "1"},
          "chain": {"$ref": "#/components/schemas/MultichainFoundationChain"},
          "networkId": {"type": "integer"},
          "address": {"type": "string"},
          "provider": {"type": "string", "const": "relay"},
          "data": {
            "type": "object",
            "required": ["candles"],
            "properties": {"candles": {"type": "array", "items": {"$ref": "#/components/schemas/MultichainCandle"}}},
            "additionalProperties": false
          },
          "meta": {"$ref": "#/components/schemas/MultichainResponseMeta"}
        },
        "additionalProperties": false
      },
      "MultichainHolder": {
        "type": "object",
        "required": ["rank", "address", "balance", "balanceUsd", "decimals"],
        "properties": {
          "rank": {"type": "integer", "minimum": 1},
          "address": {"type": "string"},
          "balance": {"type": "string"},
          "balanceUsd": {"type": ["string", "null"]},
          "decimals": {"type": ["integer", "null"]}
        },
        "additionalProperties": false
      },
      "MultichainHoldersResponse": {
        "type": "object",
        "required": ["schemaVersion", "chain", "networkId", "address", "provider", "data", "meta"],
        "properties": {
          "schemaVersion": {"type": "string", "const": "1"},
          "chain": {"$ref": "#/components/schemas/MultichainFoundationChain"},
          "networkId": {"type": "integer"},
          "address": {"type": "string"},
          "provider": {"type": "string", "const": "relay"},
          "data": {
            "type": "object",
            "required": ["holderCount", "items"],
            "properties": {
              "holderCount": {"type": "integer", "minimum": 0},
              "items": {"type": "array", "items": {"$ref": "#/components/schemas/MultichainHolder"}}
            },
            "additionalProperties": false
          },
          "meta": {"$ref": "#/components/schemas/MultichainResponseMeta"}
        },
        "additionalProperties": false
      },
      "MultichainTransaction": {
        "type": "object",
        "required": ["hash", "timestamp", "side", "maker", "poolAddress", "priceUsd", "totalUsd", "amount"],
        "properties": {
          "hash": {"type": "string"},
          "timestamp": {"type": "integer", "minimum": 1},
          "side": {"type": "string", "enum": ["buy", "sell", "unknown"]},
          "maker": {"type": ["string", "null"]},
          "poolAddress": {"type": ["string", "null"]},
          "priceUsd": {"type": ["string", "null"]},
          "totalUsd": {"type": ["string", "null"]},
          "amount": {"type": ["string", "null"]}
        },
        "additionalProperties": false
      },
      "MultichainTransactionsResponse": {
        "type": "object",
        "required": ["schemaVersion", "chain", "networkId", "address", "provider", "data", "meta"],
        "properties": {
          "schemaVersion": {"type": "string", "const": "1"},
          "chain": {"$ref": "#/components/schemas/MultichainFoundationChain"},
          "networkId": {"type": "integer"},
          "address": {"type": "string"},
          "provider": {"type": "string", "const": "relay"},
          "data": {
            "type": "object",
            "required": ["items"],
            "properties": {"items": {"type": "array", "items": {"$ref": "#/components/schemas/MultichainTransaction"}}},
            "additionalProperties": false
          },
          "meta": {"$ref": "#/components/schemas/MultichainResponseMeta"}
        },
        "additionalProperties": false
      },
      "HealthResponse": {
        "type": "object",
        "required": [
          "ok",
          "chain",
          "timestamp"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "chain": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ServiceResponse": {
        "type": "object",
        "required": [
          "service",
          "version",
          "focus"
        ],
        "properties": {
          "service": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "focus": {
            "type": "string"
          }
        }
      },
      "AssetSearchItem": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "iconUrl": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        },
        "additionalProperties": true
      },
      "HyperliquidProductAvailability": {
        "type": "object",
        "description": "Global availability decision for one product family. Request-country telemetry does not change this decision.",
        "required": [
          "available",
          "reason"
        ],
        "properties": {
          "available": {
            "type": "boolean"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Machine-readable unavailability reason, or null when available."
          }
        },
        "additionalProperties": false
      },
      "HyperliquidAvailabilityResponse": {
        "type": "object",
        "description": "Server-owned global availability snapshot. Country data is telemetry only; clients must not add country-level product blocks.",
        "required": [
          "version",
          "jurisdiction",
          "products",
          "stockMarketIds",
          "marketCategoriesUpdatedAt"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "const": 1
          },
          "jurisdiction": {
            "type": "object",
            "required": [
              "source",
              "countryCode"
            ],
            "properties": {
              "source": {
                "type": "string",
                "const": "request_ip"
              },
              "countryCode": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[A-Z]{2}$",
                "description": "ISO 3166-1 alpha-2 country inferred from the request edge, when available."
              }
            },
            "additionalProperties": false
          },
          "products": {
            "type": "object",
            "required": [
              "swaps",
              "cryptoPerpetuals",
              "stockPerpetuals"
            ],
            "properties": {
              "swaps": {
                "$ref": "#/components/schemas/HyperliquidProductAvailability"
              },
              "cryptoPerpetuals": {
                "$ref": "#/components/schemas/HyperliquidProductAvailability"
              },
              "stockPerpetuals": {
                "$ref": "#/components/schemas/HyperliquidProductAvailability"
              }
            },
            "additionalProperties": false
          },
          "stockMarketIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "marketCategoriesUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsPosition": {
        "type": "object",
        "description": "Read-only normalized Hyperliquid perpetual position snapshot.",
        "required": [
          "coin",
          "side",
          "size",
          "markPrice",
          "liquidationPrice"
        ],
        "properties": {
          "coin": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ]
          },
          "size": {
            "type": "string",
            "description": "Position size as a decimal string."
          },
          "markPrice": {
            "type": [
              "string",
              "null"
            ],
            "description": "Mark price as a decimal string."
          },
          "liquidationPrice": {
            "type": [
              "string",
              "null"
            ],
            "description": "Liquidation price as a decimal string when supplied by Hyperliquid."
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsOrder": {
        "type": "object",
        "description": "Read-only normalized open-order snapshot.",
        "required": [
          "orderId",
          "coin",
          "kind",
          "triggerPrice",
          "limitPrice"
        ],
        "properties": {
          "orderId": {
            "type": "string"
          },
          "coin": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "take_profit",
              "stop_loss",
              "limit",
              "unknown"
            ]
          },
          "triggerPrice": {
            "type": [
              "string",
              "null"
            ],
            "description": "Trigger price as a decimal string."
          },
          "limitPrice": {
            "type": [
              "string",
              "null"
            ],
            "description": "Limit price as a decimal string."
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsWatch": {
        "type": "object",
        "description": "Device-scoped notification registration and its last observed account state.",
        "required": [
          "id",
          "deviceId",
          "walletAddress",
          "isEnabled",
          "nearLiquidationThresholdPct",
          "positions",
          "orders",
          "lastCheckedAt",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "deviceId": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "nearLiquidationThresholdPct": {
            "type": "number",
            "minimum": 0.5,
            "maximum": 5
          },
          "positions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HyperliquidPerpsPosition"
            }
          },
          "orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HyperliquidPerpsOrder"
            }
          },
          "lastCheckedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsWatchUpsertRequest": {
        "type": "object",
        "description": "Canonical request for one wallet or an exact replacement set of wallet registrations. An empty walletAddresses array clears the device's Hyperliquid watches.",
        "required": [
          "deviceId",
          "fcmToken"
        ],
        "anyOf": [
          {
            "required": [
              "walletAddress"
            ]
          },
          {
            "required": [
              "walletAddresses"
            ]
          }
        ],
        "properties": {
          "deviceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "walletAddresses": {
            "type": "array",
            "minItems": 0,
            "maxItems": 100,
            "items": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            }
          },
          "fcmToken": {
            "type": "string",
            "minLength": 1,
            "writeOnly": true
          },
          "enabled": {
            "type": "boolean"
          },
          "nearLiquidationThresholdPct": {
            "type": "number",
            "minimum": 0.5,
            "maximum": 5
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsWatchUpsertResponse": {
        "type": "object",
        "description": "Single- or batch-registration result matching the submitted request shape.",
        "required": [
          "ok"
        ],
        "anyOf": [
          {
            "required": [
              "watch"
            ]
          },
          {
            "required": [
              "registered",
              "removed",
              "watches"
            ]
          }
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "watch": {
            "$ref": "#/components/schemas/HyperliquidPerpsWatch"
          },
          "registered": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "removed": {
            "type": "integer",
            "minimum": 0
          },
          "watches": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/HyperliquidPerpsWatch"
            }
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsWatchListResponse": {
        "type": "object",
        "required": [
          "watches"
        ],
        "properties": {
          "watches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HyperliquidPerpsWatch"
            }
          }
        },
        "additionalProperties": false
      },
      "HyperliquidPerpsAccountSummaryResponse": {
        "type": "object",
        "description": "Read-only normalized Hyperliquid account state. No signing or trading authority is accepted.",
        "required": [
          "provider",
          "account"
        ],
        "properties": {
          "provider": {
            "type": "string",
            "const": "hyperliquid"
          },
          "account": {
            "type": "object",
            "required": [
              "walletAddress",
              "positions",
              "orders"
            ],
            "properties": {
              "walletAddress": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              },
              "positions": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/HyperliquidPerpsPosition"
                }
              },
              "orders": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/HyperliquidPerpsOrder"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ErrorDetail": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "APP_CHECK_FAILED"
          },
          "message": {
            "type": "string",
            "example": "X-Firebase-AppCheck header is required"
          }
        },
        "additionalProperties": true
      },
      "AiClientContext": {
        "type": "object",
        "required": [
          "deviceInstallId",
          "appVersion",
          "locale",
          "timezone"
        ],
        "properties": {
          "deviceInstallId": {
            "type": "string",
            "description": "Stable install identifier owned by the client."
          },
          "appVersion": {
            "type": "string",
            "description": "Client app version used for observability and model context."
          },
          "locale": {
            "type": "string",
            "description": "Client locale such as en-US."
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone such as America/Chicago."
          }
        },
        "additionalProperties": false
      },
      "AiAssistantToolCall": {
        "type": "object",
        "description": "Assistant tool call replayed back to the gateway on a follow-up request.",
        "required": [
          "toolCallId",
          "name",
          "arguments"
        ],
        "properties": {
          "toolCallId": {
            "type": "string",
            "description": "Client-preserved tool call id originally returned by the gateway."
          },
          "name": {
            "type": "string",
            "pattern": "^(?:nova\\.)?[a-z0-9]+(?:[._-][a-z0-9]+)+$",
            "description": "Local tool name. The gateway accepts dotted client-owned capability names such as wallet.create or nova.wallet.create."
          },
          "arguments": {
            "type": "object",
            "description": "Structured arguments that were originally returned by the gateway.",
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      },
      "AiMessage": {
        "type": "object",
        "description": "One message in the stateless client-owned history sent to the gateway.",
        "required": [
          "role",
          "content"
        ],
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "user",
              "assistant",
              "tool"
            ]
          },
          "content": {
            "type": "string",
            "description": "Plain text content. Tool results must be serialized into this string field."
          },
          "name": {
            "type": "string",
            "description": "Optional name field; usually omitted for current client usage."
          },
          "tool_call_id": {
            "type": "string",
            "description": "Required on role=tool messages. Must reference a tool call from the most recent assistant toolCalls."
          },
          "toolCalls": {
            "type": "array",
            "description": "Used only on assistant replay messages when sending a follow-up turn after local tool execution.",
            "items": {
              "$ref": "#/components/schemas/AiAssistantToolCall"
            }
          },
          "responseItems": {
            "type": "array",
            "description": "Machine-only replay-safe OpenAI Responses output items from the previous assistant turn. Supported items are function_call and encrypted reasoning only.",
            "maxItems": 32,
            "items": {
              "$ref": "#/components/schemas/AiResponseItem"
            }
          }
        },
        "additionalProperties": false
      },
      "AiResponseItem": {
        "type": "object",
        "description": "Machine-only OpenAI Responses item preserved for stateless tool-loop replay. UI must not display or log this content.",
        "oneOf": [
          {
            "type": "object",
            "required": [
              "type",
              "call_id",
              "name",
              "arguments"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "function_call"
              },
              "id": {
                "type": "string"
              },
              "call_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "arguments": {
                "type": "string",
                "description": "JSON string arguments exactly as returned by OpenAI."
              },
              "status": {
                "type": "string"
              },
              "phase": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "encrypted_content"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "reasoning"
              },
              "id": {
                "type": "string"
              },
              "encrypted_content": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "phase": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "AiToolDefinition": {
        "type": "object",
        "required": [
          "name",
          "description",
          "inputSchema"
        ],
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^(?:nova\\.)?[a-z0-9]+(?:[._-][a-z0-9]+)+$",
            "description": "Local tool name advertised by the client. Use dotted capability names such as wallet.create or nova.wallet.create."
          },
          "description": {
            "type": "string",
            "description": "Short natural-language description shown to the model."
          },
          "inputSchema": {
            "type": "object",
            "description": "JSON Schema object for validating tool arguments. Secret-shaped fields such as seed or privateKey are rejected.",
            "additionalProperties": true
          },
          "risk": {
            "type": "string",
            "description": "Optional client-supplied risk label echoed back on tool calls."
          },
          "requiresConfirmation": {
            "type": "boolean",
            "description": "Whether the client wants the model's tool call echoed with a confirmation hint."
          },
          "display": {
            "$ref": "#/components/schemas/AiToolDisplay",
            "description": "Optional user-facing display metadata. The server normalizes unsafe or missing copy before returning tool calls."
          }
        },
        "additionalProperties": false
      },
      "AiToolDisplayActivity": {
        "type": "object",
        "required": [
          "thinking",
          "running",
          "review",
          "signing",
          "success",
          "failure"
        ],
        "properties": {
          "thinking": {
            "type": "string"
          },
          "running": {
            "type": "string"
          },
          "review": {
            "type": "string"
          },
          "signing": {
            "type": "string"
          },
          "success": {
            "type": "string"
          },
          "failure": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AiToolDisplay": {
        "type": "object",
        "required": [
          "category",
          "title",
          "activity"
        ],
        "properties": {
          "category": {
            "type": "string",
            "description": "Short product category such as wallet, privacy, tokens, or liquidity."
          },
          "title": {
            "type": "string",
            "description": "User-facing title. Must not contain internal tool, capability, adapter, action, or build identifiers."
          },
          "activity": {
            "$ref": "#/components/schemas/AiToolDisplayActivity"
          }
        },
        "additionalProperties": false
      },
      "AiRespondRequest": {
        "type": "object",
        "description": "Stateless gateway request. The client sends full message history, optional public runtime context, and the active local tool catalog.",
        "required": [
          "client",
          "messages"
        ],
        "properties": {
          "client": {
            "$ref": "#/components/schemas/AiClientContext"
          },
          "context": {
            "$ref": "#/components/schemas/AiRuntimeContext"
          },
          "toolManifestVersion": {
            "type": "string",
            "description": "Optional version of the iOS-local tool manifest. Unknown future versions are rejected.",
            "example": "2026-06-24.local-tools.v1"
          },
          "runtimeCapabilitiesVersion": {
            "type": "string",
            "description": "Optional version of the iOS runtime capability contract. Unknown future versions are rejected.",
            "example": "2026-06-24.runtime.v1"
          },
          "minServerContractVersion": {
            "type": "string",
            "description": "Optional minimum AI gateway contract required by the client. Unknown or unsupported versions are rejected.",
            "example": "2026-06-24.llm-gateway.v1"
          },
          "messages": {
            "type": "array",
            "minItems": 1,
            "maxItems": 64,
            "items": {
              "$ref": "#/components/schemas/AiMessage"
            }
          },
          "tools": {
            "type": "array",
            "maxItems": 64,
            "items": {
              "$ref": "#/components/schemas/AiToolDefinition"
            }
          },
          "maxToolCalls": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "description": "Maximum number of tool calls the model may return in a single response."
          }
        },
        "additionalProperties": false
      },
      "AiRuntimeContext": {
        "type": "object",
        "description": "Optional capped public wallet/app context supplied by iOS, such as active wallet public address, chain, labels, SNS domains, holdings summaries, current app screen, and enabled feature flags. Do not include seeds, mnemonics, private keys, backup patterns, passcodes, raw transactions, unsigned/signed transaction blobs, or signing payloads.",
        "additionalProperties": true,
        "properties": {
          "activeWallet": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "address": {
                "type": "string"
              },
              "chain": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "snsDomains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "holdings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "currentScreen": {
            "type": "string"
          },
          "featureFlags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AiToolCall": {
        "type": "object",
        "description": "Structured local tool call returned by the gateway.",
        "required": [
          "toolCallId",
          "name",
          "arguments",
          "risk",
          "requiresConfirmation"
        ],
        "properties": {
          "toolCallId": {
            "type": "string",
            "description": "Stable tool call id to replay in the next request."
          },
          "name": {
            "type": "string",
            "pattern": "^(?:nova\\.)?[a-z0-9]+(?:[._-][a-z0-9]+)+$",
            "description": "Local tool name previously advertised by the client."
          },
          "arguments": {
            "type": "object",
            "description": "Arguments validated against the advertised tools[].inputSchema.",
            "additionalProperties": true
          },
          "risk": {
            "type": [
              "string",
              "null"
            ],
            "description": "Echoed client-supplied risk label."
          },
          "requiresConfirmation": {
            "type": "boolean",
            "description": "Echoed client-supplied confirmation hint."
          },
          "display": {
            "$ref": "#/components/schemas/AiToolDisplay",
            "description": "Sanitized user-facing copy for UI activity and review surfaces. Internal ids are still present for dispatch only."
          }
        },
        "additionalProperties": false
      },
      "AiRespondResponse": {
        "type": "object",
        "description": "Gateway response in JSON mode.",
        "required": [
          "requestId",
          "model",
          "assistant",
          "toolCalls"
        ],
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Server-generated request id for correlation."
          },
          "model": {
            "type": "string",
            "description": "Resolved model identifier used by the gateway."
          },
          "assistant": {
            "type": "object",
            "required": [
              "content"
            ],
            "properties": {
              "content": {
                "type": "string",
                "description": "Assistant text returned before or alongside tool calls."
              }
            },
            "additionalProperties": false
          },
          "toolCalls": {
            "type": "array",
            "description": "Structured local tool calls for the client to execute on-device.",
            "items": {
              "$ref": "#/components/schemas/AiToolCall"
            }
          },
          "responseItems": {
            "type": "array",
            "description": "Machine-only replay-safe OpenAI Responses output items for the next client-owned turn.",
            "items": {
              "$ref": "#/components/schemas/AiResponseItem"
            }
          }
        },
        "additionalProperties": false
      },
      "WalletSession": {
        "type": "object",
        "required": [
          "sessionId",
          "walletAddress",
          "challengeId",
          "chain",
          "createdAt",
          "updatedAt",
          "expiresAt"
        ],
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          },
          "challengeId": {
            "type": "string"
          },
          "chain": {
            "type": "string",
            "enum": [
              "solana"
            ]
          },
          "deviceId": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSeenAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WalletSessionChallengeRequest": {
        "type": "object",
        "required": [
          "walletAddress"
        ],
        "properties": {
          "walletAddress": {
            "type": "string"
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "deviceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WalletSessionChallenge": {
        "type": "object",
        "required": [
          "challengeId",
          "walletAddress",
          "nonce",
          "message",
          "domain",
          "chain",
          "createdAt",
          "expiresAt"
        ],
        "properties": {
          "challengeId": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          },
          "nonce": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "chain": {
            "type": "string",
            "enum": [
              "solana"
            ]
          },
          "deviceId": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WalletSessionVerifyRequest": {
        "type": "object",
        "required": [
          "challengeId",
          "signature"
        ],
        "properties": {
          "challengeId": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "WalletSessionVerifyResponse": {
        "type": "object",
        "required": [
          "token",
          "session"
        ],
        "properties": {
          "token": {
            "type": "string"
          },
          "session": {
            "$ref": "#/components/schemas/WalletSession"
          }
        },
        "additionalProperties": false
      },
      "LegalAcceptance": {
        "type": "object",
        "required": [
          "acceptanceId",
          "walletAddress",
          "acceptedAt",
          "termsVersion",
          "riskVersion"
        ],
        "properties": {
          "acceptanceId": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          },
          "acceptedAt": {
            "type": "string",
            "format": "date-time"
          },
          "termsVersion": {
            "type": "string"
          },
          "riskVersion": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "IdempotencyErrorDetail": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "IDEMPOTENCY_KEY_REQUIRED"
          },
          "message": {
            "type": "string",
            "example": "Idempotency-Key header is required"
          }
        },
        "additionalProperties": true
      },
      "IdempotencyErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/IdempotencyErrorDetail"
          }
        },
        "additionalProperties": true
      },
      "NovaFlexibleObject": {
        "type": "object",
        "additionalProperties": true
      },
      "NovaFlexibleArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/NovaFlexibleObject"
        }
      },
      "NovaFlexibleResponseBody": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/NovaFlexibleObject"
          },
          {
            "$ref": "#/components/schemas/NovaFlexibleArray"
          }
        ]
      },
      "UpstreamMirrorRouteError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "KolFiat": {
        "type": "object",
        "required": [
          "base",
          "code",
          "rate",
          "source",
          "updatedAt"
        ],
        "properties": {
          "base": {
            "type": "string",
            "enum": [
              "USD"
            ]
          },
          "code": {
            "type": "string",
            "example": "USD"
          },
          "rate": {
            "type": "number"
          },
          "source": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "KolDirectoryItem": {
        "type": "object",
        "required": [
          "kolId",
          "walletAddress",
          "displayName",
          "avatarUrl",
          "xHandle",
          "telegramHandle",
          "rank",
          "kolSource",
          "profit",
          "wins",
          "losses",
          "updatedAt"
        ],
        "properties": {
          "kolId": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "xHandle": {
            "type": "string",
            "nullable": true
          },
          "telegramHandle": {
            "type": "string",
            "nullable": true
          },
          "rank": {
            "type": "integer",
            "minimum": 1,
            "nullable": true
          },
          "kolSource": {
            "type": "string",
            "nullable": true
          },
          "profit": {
            "type": "number",
            "nullable": true
          },
          "wins": {
            "type": "number",
            "nullable": true
          },
          "losses": {
            "type": "number",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "KolDirectoryResponse": {
        "type": "object",
        "required": [
          "limit",
          "count",
          "total",
          "hasMore",
          "nextCursor",
          "items"
        ],
        "properties": {
          "limit": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "hasMore": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "maxItems": 250,
            "items": {
              "$ref": "#/components/schemas/KolDirectoryItem"
            }
          }
        }
      },
      "KolLeaderboardItem": {
        "type": "object",
        "required": [
          "kolId",
          "username",
          "displayName",
          "avatarUrl",
          "source",
          "gainSol24h",
          "gainFiat24h",
          "fiatCurrency",
          "rank"
        ],
        "properties": {
          "kolId": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "enum": [
              "x",
              "telegram",
              "both"
            ]
          },
          "xHandle": {
            "type": "string",
            "nullable": true
          },
          "telegramHandle": {
            "type": "string",
            "nullable": true
          },
          "gainSol24h": {
            "type": "number"
          },
          "gainFiat24h": {
            "type": "number"
          },
          "fiatCurrency": {
            "type": "string",
            "example": "USD"
          },
          "rank": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "KolLeaderboardItemWithStats": {
        "allOf": [
          {
            "$ref": "#/components/schemas/KolLeaderboardItem"
          },
          {
            "type": "object",
            "properties": {
              "tradeCount24h": {
                "type": "integer",
                "nullable": true
              },
              "winRate24h": {
                "type": "number",
                "nullable": true
              },
              "volumeSol24h": {
                "type": "number",
                "nullable": true
              },
              "volumeFiat24h": {
                "type": "number",
                "nullable": true
              },
              "lastTradeAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          }
        ]
      },
      "KolLeaderboardTopResponse": {
        "type": "object",
        "required": [
          "period",
          "limit",
          "fiat",
          "items"
        ],
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "24h"
            ]
          },
          "limit": {
            "type": "integer"
          },
          "fiat": {
            "$ref": "#/components/schemas/KolFiat"
          },
          "items": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/KolLeaderboardItem"
            }
          }
        }
      },
      "KolLeaderboardResponse": {
        "type": "object",
        "required": [
          "period",
          "sort",
          "page",
          "limit",
          "hasMore",
          "nextCursor",
          "fiat",
          "items"
        ],
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "24h"
            ]
          },
          "sort": {
            "type": "string",
            "enum": [
              "gain"
            ]
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "limit": {
            "type": "integer"
          },
          "hasMore": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": "string",
            "nullable": true
          },
          "fiat": {
            "$ref": "#/components/schemas/KolFiat"
          },
          "items": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/KolLeaderboardItemWithStats"
            }
          }
        }
      },
      "KolTradeItem": {
        "type": "object",
        "required": [
          "tradeId",
          "kolId",
          "username",
          "avatarUrl",
          "source",
          "action",
          "tokenSymbol",
          "tokenName",
          "tokenMint",
          "tokenImageUrl",
          "amountSol",
          "amountFiat",
          "marketCapFiatAtTrade",
          "txSignature",
          "timestamp"
        ],
        "properties": {
          "tradeId": {
            "type": "string"
          },
          "kolId": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "enum": [
              "x",
              "telegram",
              "both"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "buy",
              "sell"
            ]
          },
          "tokenSymbol": {
            "type": "string",
            "nullable": true
          },
          "tokenName": {
            "type": "string",
            "nullable": true
          },
          "tokenMint": {
            "type": "string"
          },
          "tokenImageUrl": {
            "type": "string",
            "nullable": true
          },
          "amountSol": {
            "type": "number"
          },
          "amountFiat": {
            "type": "number"
          },
          "marketCapFiatAtTrade": {
            "type": "number",
            "nullable": true
          },
          "txSignature": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "KolTradeFeedResponse": {
        "type": "object",
        "required": [
          "limit",
          "hasMore",
          "nextCursor",
          "fiat",
          "items"
        ],
        "properties": {
          "limit": {
            "type": "integer"
          },
          "hasMore": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": "string",
            "nullable": true
          },
          "fiat": {
            "$ref": "#/components/schemas/KolFiat"
          },
          "items": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/KolTradeItem"
            }
          }
        }
      },
      "KolTradeTopResponse": {
        "type": "object",
        "required": [
          "period",
          "sort",
          "limit",
          "fiat",
          "items"
        ],
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "24h"
            ]
          },
          "sort": {
            "type": "string",
            "enum": [
              "amount"
            ]
          },
          "limit": {
            "type": "integer"
          },
          "fiat": {
            "$ref": "#/components/schemas/KolFiat"
          },
          "items": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/KolTradeItem"
            }
          }
        }
      },
      "KolEvent": {
        "type": "object",
        "required": [
          "event",
          "data"
        ],
        "properties": {
          "event": {
            "type": "string",
            "enum": [
              "kol.trade.created",
              "kol.leaderboard.updated",
              "heartbeat"
            ]
          },
          "data": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "NovaDataV2Status": {
        "type": "string",
        "enum": [
          "fresh",
          "partial",
          "cached",
          "stale",
          "indexing",
          "unavailable"
        ]
      },
      "NovaDataV2Issue": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "path": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaDataV2Envelope": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "requestId",
          "status",
          "serverTime",
          "data",
          "warnings",
          "errors",
          "diagnostics"
        ],
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "enum": [
              2
            ]
          },
          "requestId": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "serverTime": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "additionalProperties": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaDataV2Issue"
            }
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaDataV2Issue"
            }
          },
          "diagnostics": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "NovaDataV2Fiat": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "base",
          "code",
          "rate"
        ],
        "properties": {
          "base": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "rate": {
            "type": "string",
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletProfileIdentityV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "displayName",
          "isKol"
        ],
        "properties": {
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatarUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "twitterUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "telegramUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "isKol": {
            "type": "boolean"
          },
          "rank": {
            "type": [
              "number",
              "null"
            ]
          },
          "primarySolDomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletSnsV2": {
        "type": [
          "object",
          "null"
        ],
        "additionalProperties": false,
        "properties": {
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "owner": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolvedAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "stale": {
            "type": "boolean"
          }
        }
      },
      "NovaPortfolioSummaryV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency": {
            "type": "string"
          },
          "totalValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "totalValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "tokenValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "tokenValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "lpValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "lpValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "lpFeeValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "lpFeeValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "positionValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "positionValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "stableValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "stableValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "nativeValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "unpricedValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "positionCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "rawPositionCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaPnlMetricValuesV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "totalGainUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "realizedGainUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "unrealizedGainUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "relativeTotalGainPercentage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "relativeRealizedGainPercentage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "relativeUnrealizedGainPercentage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "totalFeeUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "totalInvestedUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "realizedCostBasisUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "netInvestedUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "averageBuyPriceUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "averageSellPriceUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          }
        }
      },
      "NovaPnlV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "status",
          "summary",
          "tokenMetrics"
        ],
        "properties": {
          "status": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "resolution": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NovaPnlMetricValuesV2"
              },
              {
                "type": "null"
              }
            ]
          },
          "tokenMetrics": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "mintAddress": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tokenSymbol": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "metrics": {
                  "$ref": "#/components/schemas/NovaPnlMetricValuesV2"
                }
              }
            }
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaChartV2": {
        "type": [
          "object",
          "null"
        ],
        "additionalProperties": false,
        "properties": {
          "status": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "resolution": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "value": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "valueUsd": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "minValue": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "minValueUsd": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "maxValue": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "maxValueUsd": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "changeValue": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "changeValueUsd": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "changePercentage": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "pointCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "windowSeconds": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "intervalSeconds": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "performanceReady": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "timestamp": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "value": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                },
                "valueUsd": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                },
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletPositionV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "chain": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "tokenAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "mintAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "ca": {
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "price": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "priceUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "value": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "valueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "priceChange24hPercent": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "priceChangePercentage24h": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "priceChange1dPercent": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "verified": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "pnl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NovaPnlMetricValuesV2"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "NovaWalletPositionsV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "status": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "totalValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "totalValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "rawTotalValueUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "rawPositionCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "excluded": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "stableCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "spamCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "stableValueUsd": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "spamValueUsd": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaWalletPositionV2"
            }
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletProfileSyncV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "provider": {
            "type": [
              "string",
              "null"
            ]
          },
          "positions": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "pnl": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "portfolioChart": {
            "$ref": "#/components/schemas/NovaDataV2Status"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletOtherUserProfileV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "address",
          "chain",
          "network",
          "profile",
          "portfolio",
          "positions",
          "pnl",
          "chart",
          "sync"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "chain": {
            "type": "string",
            "enum": [
              "solana"
            ]
          },
          "network": {
            "type": "string",
            "enum": [
              "solana-mainnet"
            ]
          },
          "profile": {
            "$ref": "#/components/schemas/NovaWalletProfileIdentityV2"
          },
          "identity": {
            "$ref": "#/components/schemas/NovaWalletProfileIdentityV2"
          },
          "sns": {
            "$ref": "#/components/schemas/NovaWalletSnsV2"
          },
          "fiat": {
            "$ref": "#/components/schemas/NovaDataV2Fiat"
          },
          "portfolio": {
            "$ref": "#/components/schemas/NovaPortfolioSummaryV2"
          },
          "positions": {
            "$ref": "#/components/schemas/NovaWalletPositionsV2"
          },
          "pnl": {
            "$ref": "#/components/schemas/NovaPnlV2"
          },
          "chart": {
            "$ref": "#/components/schemas/NovaChartV2"
          },
          "sync": {
            "$ref": "#/components/schemas/NovaWalletProfileSyncV2"
          }
        }
      },
      "NovaTradeTokenV2": {
        "type": [
          "object",
          "null"
        ],
        "additionalProperties": false,
        "properties": {
          "mintAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "ca": {
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "decimals": {
            "type": [
              "number",
              "null"
            ]
          },
          "amountRaw": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "priceUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal value encoded as a base-10 string for mobile-safe decoding."
          }
        }
      },
      "NovaWalletTradeV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "signature": {
            "type": "string"
          },
          "timestamp": {
            "type": [
              "number",
              "null"
            ]
          },
          "blockId": {
            "type": [
              "number",
              "null"
            ]
          },
          "time": {
            "type": [
              "string",
              "null"
            ]
          },
          "action": {
            "type": "string"
          },
          "activityType": {
            "type": [
              "string",
              "null"
            ]
          },
          "platform": {
            "type": [
              "string",
              "null"
            ]
          },
          "baseToken": {
            "$ref": "#/components/schemas/NovaTradeTokenV2"
          },
          "quoteToken": {
            "$ref": "#/components/schemas/NovaTradeTokenV2"
          },
          "tokens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaTradeTokenV2"
            }
          },
          "explorerUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletTradesV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "address",
          "chain",
          "page",
          "limit",
          "items"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "chain": {
            "type": "string",
            "enum": [
              "solana"
            ]
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaWalletTradeV2"
            }
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletEntityPlatformProfile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "userId": {
            "type": [
              "string",
              "null"
            ]
          },
          "handle": {
            "type": [
              "string",
              "null"
            ]
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatarUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "xHandle": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletEntityMetadata": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "address",
          "classifications",
          "platforms",
          "source"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatarUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "xHandle": {
            "type": [
              "string",
              "null"
            ]
          },
          "snsDomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "primaryKind": {
            "type": [
              "string",
              "null"
            ]
          },
          "classifications": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaWalletEntityPlatformProfile"
            }
          },
          "source": {
            "type": "string",
            "const": "solana-tracker"
          }
        }
      },
      "NovaWalletEntityRole": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "developer",
              "market_maker",
              "pool"
            ]
          },
          "token": {
            "type": [
              "string",
              "null"
            ]
          },
          "via": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "poolAddresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "creationTransaction": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": [
              "number",
              "null"
            ]
          },
          "program": {
            "type": [
              "string",
              "null"
            ]
          },
          "poolAddress": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "NovaWalletEntityContext": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "mint",
          "roles"
        ],
        "properties": {
          "mint": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaWalletEntityRole"
            }
          }
        }
      },
      "NovaSolanaTokenTradeV2": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "tokens"
        ],
        "properties": {
          "signature": {
            "type": [
              "string",
              "null"
            ]
          },
          "actionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockTime": {
            "type": [
              "integer",
              "null"
            ]
          },
          "time": {
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "type": [
              "string",
              "null"
            ]
          },
          "fromAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "priceUsd": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "totalUsd": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "nativeVolume": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "poolId": {
            "type": [
              "string",
              "null"
            ]
          },
          "pools": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tokens": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "identity": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "identityStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "entity": {
            "$ref": "#/components/schemas/NovaWalletEntityMetadata"
          },
          "entityContext": {
            "$ref": "#/components/schemas/NovaWalletEntityContext"
          }
        }
      },
      "NovaSolanaTokenHolderV2": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "wallet"
        ],
        "properties": {
          "wallet": {
            "type": "string"
          },
          "amount": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "percentage": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "valueUsd": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "identity": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "identityStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "entity": {
            "$ref": "#/components/schemas/NovaWalletEntityMetadata"
          },
          "entityContext": {
            "$ref": "#/components/schemas/NovaWalletEntityContext"
          }
        }
      },
      "NovaSolanaTokenTradesV2": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "trades"
        ],
        "properties": {
          "mint": {
            "type": [
              "string",
              "null"
            ]
          },
          "entityScope": {
            "type": "string",
            "enum": [
              "kols"
            ]
          },
          "page": {
            "type": [
              "integer",
              "null"
            ]
          },
          "limit": {
            "type": [
              "integer",
              "null"
            ]
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "hasMore": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "trades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaSolanaTokenTradeV2"
            }
          }
        }
      },
      "NovaSolanaTokenHoldersV2": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "accounts"
        ],
        "properties": {
          "total": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "enrich": {
            "type": [
              "string",
              "null"
            ]
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaSolanaTokenHolderV2"
            }
          }
        }
      },
      "NovaSolanaTokenTradesV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaSolanaTokenTradesV2"
              }
            }
          }
        ]
      },
      "NovaSolanaTokenHoldersV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaSolanaTokenHoldersV2"
              }
            }
          }
        ]
      },
      "NovaWalletOtherUserProfileV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaWalletOtherUserProfileV2"
              }
            }
          }
        ]
      },
      "NovaWalletPortfolioChartV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaChartV2"
              }
            }
          }
        ]
      },
      "NovaWalletTradesV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaWalletTradesV2"
              }
            }
          }
        ]
      },
      "NovaDecimalStringOrNullV2": {
        "type": [
          "string",
          "null"
        ],
        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$",
        "description": "A finite decimal value encoded as a base-10 string, or null when unavailable."
      },
      "NovaMobileWalletTokenRowsCurrencyV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "requested",
          "resolved",
          "usdRate",
          "asOf"
        ],
        "properties": {
          "requested": {
            "type": [
              "string",
              "null"
            ],
            "description": "The normalized caller input, retained for diagnostics even when it is unsupported and resolves to USD."
          },
          "resolved": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "usdRate": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "NovaMobileWalletTokenBalanceV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "raw",
          "decimals",
          "formatted"
        ],
        "properties": {
          "raw": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "decimals": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 255
          },
          "formatted": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          }
        }
      },
      "NovaMobileWalletTokenValuationV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "priceUsd",
          "valueUsd",
          "priceFiat",
          "valueFiat",
          "fiatCurrency",
          "status",
          "asOf"
        ],
        "properties": {
          "priceUsd": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "valueUsd": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "priceFiat": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "valueFiat": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "fiatCurrency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "partial",
              "stale",
              "unavailable"
            ]
          },
          "reason": {
            "type": "string"
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "NovaMobileWalletTokenChange24hV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "amountUsd",
          "amountFiat",
          "fiatCurrency",
          "percent",
          "currentValueUsd",
          "basis",
          "status",
          "asOf"
        ],
        "properties": {
          "amountUsd": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "amountFiat": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "fiatCurrency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "percent": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "currentValueUsd": {
            "$ref": "#/components/schemas/NovaDecimalStringOrNullV2"
          },
          "basis": {
            "type": "string",
            "enum": [
              "current_quantity_mark_to_market"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "unavailable"
            ]
          },
          "reason": {
            "type": "string"
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "NovaMobileWalletTokenMediaSourceV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "url"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "animation",
              "image"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "NovaMobileWalletTokenMediaV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "version",
          "sources",
          "status"
        ],
        "properties": {
          "version": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{24}$"
          },
          "sources": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/NovaMobileWalletTokenMediaSourceV2"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "partial",
              "unavailable"
            ]
          }
        }
      },
      "NovaMobileWalletTokenRowV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "chain",
          "mint",
          "name",
          "symbol",
          "ticker",
          "metadataUri",
          "ownershipKind",
          "balance",
          "valuation",
          "change24h",
          "media"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 3
          },
          "chain": {
            "type": "string",
            "minLength": 1
          },
          "mint": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "ticker": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadataUri": {
            "type": [
              "string",
              "null"
            ]
          },
          "ownershipKind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "sns-domain",
              "meteora-position",
              null
            ]
          },
          "balance": {
            "$ref": "#/components/schemas/NovaMobileWalletTokenBalanceV2"
          },
          "valuation": {
            "$ref": "#/components/schemas/NovaMobileWalletTokenValuationV2"
          },
          "change24h": {
            "$ref": "#/components/schemas/NovaMobileWalletTokenChange24hV2"
          },
          "media": {
            "$ref": "#/components/schemas/NovaMobileWalletTokenMediaV2"
          }
        }
      },
      "NovaMobileWalletTokenRowsV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "currency",
          "items"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "enum": [
              "2026-08-05.mobile-wallet-token-rows.v2"
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/NovaMobileWalletTokenRowsCurrencyV2"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaMobileWalletTokenRowV2"
            }
          }
        }
      },
      "NovaMobileWalletSyncCompactPortfolioV2": {
        "type": "object",
        "additionalProperties": true,
        "not": {
          "anyOf": [
            {
              "required": [
                "tokens"
              ]
            },
            {
              "required": [
                "holdings"
              ]
            },
            {
              "required": [
                "tokenAccounts"
              ]
            }
          ]
        }
      },
      "NovaMobileWalletSyncCompactHomePayloadV2": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "tokenRows"
        ],
        "not": {
          "required": [
            "tokens"
          ]
        },
        "properties": {
          "portfolio": {
            "$ref": "#/components/schemas/NovaMobileWalletSyncCompactPortfolioV2"
          },
          "holdings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaFlexibleObject"
            }
          },
          "tokenAccounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaFlexibleObject"
            }
          },
          "tokenRows": {
            "$ref": "#/components/schemas/NovaMobileWalletTokenRowsV2"
          }
        }
      },
      "NovaMobileWalletSyncCompactHomeSectionV2": {
        "type": [
          "object",
          "null"
        ],
        "additionalProperties": true,
        "required": [
          "payload"
        ],
        "properties": {
          "payload": {
            "$ref": "#/components/schemas/NovaMobileWalletSyncCompactHomePayloadV2"
          }
        }
      },
      "NovaMobileWalletSyncCompactDataV2": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "enum": [
              2
            ]
          },
          "homePortfolio": {
            "$ref": "#/components/schemas/NovaMobileWalletSyncCompactHomeSectionV2"
          }
        }
      },
      "NovaHomePortfolioV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        ]
      },
      "NovaMobileWalletSyncCompactV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaMobileWalletSyncCompactDataV2"
              }
            }
          }
        ]
      },
      "NovaMobileSyncV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        ]
      },
      "NovaSocialFeedV2Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NovaDataV2Envelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NovaFlexibleObject"
              }
            }
          }
        ]
      },
      "RewardPointsPublicTotalResponse": {
        "type": "object",
        "required": [
          "totalAmount"
        ],
        "properties": {
          "totalAmount": {
            "type": "string"
          },
          "totalAmountRaw": {
            "type": "string"
          },
          "completedAmount": {
            "type": "string"
          },
          "completedAmountRaw": {
            "type": "string"
          },
          "pendingAmount": {
            "type": "string"
          },
          "pendingAmountRaw": {
            "type": "string"
          },
          "pendingBucketCount": {
            "type": "number"
          },
          "pendingEventCount": {
            "type": "number"
          },
          "pendingStatuses": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "pendingReasons": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "completedJobCount": {
            "type": "number"
          },
          "compressedJobCount": {
            "type": "number"
          },
          "uniqueWalletCount": {
            "type": "number"
          },
          "completedUniqueWalletCount": {
            "type": "number"
          },
          "pendingUniqueWalletCount": {
            "type": "number"
          },
          "lastRewardedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastPendingUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "RewardPointsBalanceData": {
        "type": "object",
        "properties": {
          "walletAddress": {
            "type": "string"
          },
          "mintAddress": {
            "type": "string"
          },
          "rewardKind": {
            "type": "string",
            "enum": [
              "compressed_nov"
            ]
          },
          "amountRaw": {
            "type": "string"
          },
          "amountUi": {
            "type": [
              "string",
              "null"
            ]
          },
          "decimals": {
            "type": [
              "number",
              "null"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true
          },
          "priceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "valueUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "valueCurrency": {
            "type": "string"
          },
          "compressedAccountCount": {
            "type": "number"
          },
          "decompressable": {
            "type": "boolean"
          },
          "claimMode": {
            "type": "string",
            "enum": [
              "decompress"
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "RewardPointsBalanceResponse": {
        "type": "object",
        "required": [
          "ok",
          "data"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/RewardPointsBalanceData"
          }
        },
        "additionalProperties": true
      },
      "RewardPointsDecompressBuildRequest": {
        "type": "object",
        "required": [
          "walletAddress"
        ],
        "properties": {
          "walletAddress": {
            "type": "string"
          },
          "mintAddress": {
            "type": "string"
          },
          "amountRaw": {
            "type": "string",
            "pattern": "^\\d+$"
          }
        },
        "additionalProperties": false
      },
      "RewardPointsDecompressBuildData": {
        "type": "object",
        "properties": {
          "walletAddress": {
            "type": "string"
          },
          "mintAddress": {
            "type": "string"
          },
          "amountRaw": {
            "type": "string"
          },
          "destinationTokenAccount": {
            "type": "string"
          },
          "destinationTokenAccountCreated": {
            "type": "boolean"
          },
          "unsignedTransactionBase64": {
            "type": "string"
          },
          "recentBlockhash": {
            "type": "string"
          },
          "lastValidBlockHeight": {
            "type": "number"
          },
          "compressedAccountCount": {
            "type": "number"
          },
          "instructionCount": {
            "type": "number"
          }
        },
        "additionalProperties": true
      },
      "NovaWalletPositionV4": {
        "type": "object",
        "required": [
          "positionStatus",
          "isSpam",
          "isDust"
        ],
        "properties": {
          "mintAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "priceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "costBasisUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "averageEntryPriceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "currentValueUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "unrealizedPnlUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "unrealizedPnlPercent": {
            "type": [
              "number",
              "null"
            ]
          },
          "realizedPnlUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "totalPnlUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "totalBoughtUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "totalSoldUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "openedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastTradeAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "liquidityUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "positionStatus": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ]
          },
          "isSpam": {
            "type": "boolean"
          },
          "isDust": {
            "type": "boolean"
          },
          "isVerified": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "positionId": {
            "type": "string"
          },
          "historySemantics": {
            "type": "string",
            "enum": [
              "token_lifetime_aggregate"
            ]
          },
          "firstBoughtAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastSoldAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "additionalProperties": true
      },
      "NovaWalletPositionsV4Response": {
        "type": "object",
        "required": [
          "schemaVersion",
          "source",
          "provider",
          "status",
          "address",
          "accountingMethod",
          "items"
        ],
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "const": 4
          },
          "source": {
            "type": "string",
            "const": "nova"
          },
          "provider": {
            "type": "string",
            "const": "solana_tracker"
          },
          "pnlMode": {
            "type": "string",
            "enum": [
              "nonblocking"
            ],
            "description": "Present only when the caller opts into nonblocking enrichment."
          },
          "pnlStatus": {
            "type": "string",
            "enum": [
              "cached",
              "partial",
              "unavailable"
            ],
            "description": "Immediate page-level PnL availability for nonblocking requests."
          },
          "hasMore": {
            "type": "boolean"
          },
          "totalIsExact": {
            "type": "boolean",
            "description": "For nonblocking requests, true only when the bounded provider scan was exhausted."
          },
          "status": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "accountingMethod": {
            "type": "string",
            "enum": [
              "provider_adjusted",
              "provider_reported"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaWalletPositionV4"
            }
          },
          "historySemantics": {
            "type": "string",
            "enum": [
              "token_lifetime_aggregate"
            ]
          },
          "episodeHistoryCoverage": {
            "const": "unavailable"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "NovaWalletActivityItemV4": {
        "type": "object",
        "required": [
          "activityCategory",
          "executionCount",
          "isSpam",
          "isDust",
          "isFailed"
        ],
        "properties": {
          "activityCategory": {
            "type": "string",
            "enum": [
              "trade",
              "transfer",
              "reward",
              "protocol",
              "spam",
              "unknown"
            ]
          },
          "side": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "buy",
              "sell",
              null
            ]
          },
          "tradeValueUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "spentUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "proceedsUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "costBasisUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "realizedPnlUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "realizedPnlPercent": {
            "type": [
              "number",
              "null"
            ]
          },
          "baseAmount": {
            "type": [
              "number",
              "null"
            ]
          },
          "quoteAmount": {
            "type": [
              "number",
              "null"
            ]
          },
          "executionGroupId": {
            "type": [
              "string",
              "null"
            ]
          },
          "executionCount": {
            "type": "integer",
            "minimum": 1
          },
          "isSpam": {
            "type": "boolean"
          },
          "isDust": {
            "type": "boolean"
          },
          "isFailed": {
            "type": "boolean"
          },
          "normalizationVersion": {
            "const": 1
          },
          "action": {
            "type": "string",
            "enum": [
              "buy",
              "sell",
              "swap",
              "send",
              "receive",
              "mint",
              "burn",
              "unknown"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "in",
              "out",
              "mixed",
              "unknown"
            ]
          },
          "primaryToken": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "secondaryToken": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "signedAmount": {
            "type": [
              "number",
              "null"
            ]
          },
          "legs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "direction": {
                  "type": "string",
                  "enum": [
                    "in",
                    "out"
                  ]
                },
                "token": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "additionalProperties": true
      },
      "NovaWalletActivityV4Response": {
        "type": "object",
        "required": [
          "schemaVersion",
          "source",
          "provider",
          "status",
          "address",
          "items"
        ],
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "const": 4
          },
          "source": {
            "type": "string",
            "const": "nova"
          },
          "provider": {
            "type": "string",
            "const": "solana_tracker"
          },
          "status": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NovaWalletActivityItemV4"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "hasMore": {
            "type": "boolean"
          },
          "totalIsExact": {
            "const": false
          },
          "coverage": {
            "const": "partial"
          },
          "transferHistoryCoverage": {
            "const": "unavailable"
          },
          "historySemantics": {
            "const": "indexed_trade_executions"
          }
        },
        "additionalProperties": true
      },
      "RewardPointsDecompressBuildResponse": {
        "type": "object",
        "required": [
          "ok",
          "data"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/RewardPointsDecompressBuildData"
          }
        },
        "additionalProperties": true
      },
      "CanonicalSolanaAddress": {
        "type": "string",
        "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
        "description": "Canonical base58 Solana public key. Runtime validation decodes and re-encodes the 32-byte key."
      },
      "CanonicalSolanaSignature": {
        "type": "string",
        "description": "Canonical base58 encoding that decodes to exactly 64 signature bytes; the pattern is a preliminary wire check and runtime performs exact decoding.",
        "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,88}$"
      },
      "ExactUnsignedIntegerString": {
        "type": "string",
        "pattern": "^(?:0|[1-9][0-9]*)$",
        "description": "Canonical unsigned decimal integer string; never a JSON number."
      },
      "ExactSignedIntegerString": {
        "type": "string",
        "pattern": "^-?(?:0|[1-9][0-9]*)$",
        "description": "Canonical signed decimal integer string; never a JSON number."
      },
      "WalletNativeOrderQuoteCurrencyV1": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "kind",
              "mint"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "mint"
              },
              "mint": {
                "$ref": "#/components/schemas/CanonicalSolanaAddress"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "code"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "fiat"
              },
              "code": {
                "type": "string",
                "const": "USD"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "WalletNativeOrderExactChartPriceV1": {
        "type": "object",
        "required": [
          "coefficient",
          "exponent",
          "baseMint",
          "quoteCurrency"
        ],
        "properties": {
          "coefficient": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "exponent": {
            "type": "integer",
            "minimum": -30,
            "maximum": 30
          },
          "baseMint": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "quoteCurrency": {
            "$ref": "#/components/schemas/WalletNativeOrderQuoteCurrencyV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderTriggerV1": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "kind"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "permissionless"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "authority"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "keeperAuthorized"
              },
              "authority": {
                "$ref": "#/components/schemas/CanonicalSolanaAddress"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "feedIdHex",
              "threshold",
              "exponent",
              "comparison",
              "maximumAgeSeconds",
              "maximumConfidenceBps"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "pyth"
              },
              "feedIdHex": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "threshold": {
                "type": "string",
                "pattern": "^[1-9][0-9]*$"
              },
              "exponent": {
                "type": "integer",
                "minimum": -2147483648,
                "maximum": 2147483647
              },
              "comparison": {
                "type": "string",
                "enum": [
                  "atOrAbove",
                  "atOrBelow"
                ]
              },
              "maximumAgeSeconds": {
                "type": "string",
                "pattern": "^(?:[1-9]|[1-9][0-9]|[12][0-9]{2}|300)$"
              },
              "maximumConfidenceBps": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "WalletNativeOrderIntentV1": {
        "type": "object",
        "required": [
          "version",
          "orderId",
          "inputMint",
          "outputMint",
          "sourceTokenAccount",
          "destinationTokenAccount",
          "maximumInputAtoms",
          "minimumOutputNumerator",
          "minimumOutputDenominator",
          "expiryUnixSeconds",
          "trigger",
          "routerProgram",
          "saltBase64"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "const": 1
          },
          "orderId": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "inputMint": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "outputMint": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "sourceTokenAccount": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "destinationTokenAccount": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "maximumInputAtoms": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "minimumOutputNumerator": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "minimumOutputDenominator": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "expiryUnixSeconds": {
            "$ref": "#/components/schemas/ExactSignedIntegerString"
          },
          "trigger": {
            "$ref": "#/components/schemas/WalletNativeOrderTriggerV1"
          },
          "routerProgram": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "saltBase64": {
            "type": "string",
            "pattern": "^[A-Za-z0-9+/]{43}=$"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderChartConditionV1": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "kind",
              "inputMint",
              "outputMint",
              "numerator",
              "denominator"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "minimumOutputRatio"
              },
              "inputMint": {
                "$ref": "#/components/schemas/CanonicalSolanaAddress"
              },
              "outputMint": {
                "$ref": "#/components/schemas/CanonicalSolanaAddress"
              },
              "numerator": {
                "type": "string",
                "pattern": "^[1-9][0-9]*$"
              },
              "denominator": {
                "type": "string",
                "pattern": "^[1-9][0-9]*$"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "feedIdHex",
              "threshold",
              "exponent",
              "comparison",
              "baseMint",
              "quoteCurrency"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "pythThreshold"
              },
              "feedIdHex": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "threshold": {
                "type": "string",
                "pattern": "^[1-9][0-9]*$"
              },
              "exponent": {
                "type": "integer",
                "minimum": -2147483648,
                "maximum": 2147483647
              },
              "comparison": {
                "type": "string",
                "enum": [
                  "atOrAbove",
                  "atOrBelow"
                ]
              },
              "baseMint": {
                "$ref": "#/components/schemas/CanonicalSolanaAddress"
              },
              "quoteCurrency": {
                "$ref": "#/components/schemas/WalletNativeOrderQuoteCurrencyV1"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "comparison",
              "price",
              "bindingNonceBase64"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "keeperPrice"
              },
              "comparison": {
                "type": "string",
                "enum": [
                  "atOrAbove",
                  "atOrBelow"
                ]
              },
              "price": {
                "$ref": "#/components/schemas/WalletNativeOrderExactChartPriceV1"
              },
              "bindingNonceBase64": {
                "type": "string",
                "pattern": "^[A-Za-z0-9+/]{43}=$"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "WalletNativeOrderChartLineV1": {
        "type": "object",
        "required": [
          "legIndex",
          "role",
          "condition"
        ],
        "properties": {
          "legIndex": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1
          },
          "role": {
            "type": "string",
            "enum": [
              "limit",
              "takeProfit",
              "stopLoss"
            ]
          },
          "condition": {
            "$ref": "#/components/schemas/WalletNativeOrderChartConditionV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderPresentationV1": {
        "type": "object",
        "required": [
          "kind",
          "inputDecimals",
          "outputDecimals",
          "chartLines"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "limit",
              "takeProfit",
              "stopLoss",
              "oco"
            ]
          },
          "inputDecimals": {
            "type": "integer",
            "minimum": 0,
            "maximum": 255
          },
          "outputDecimals": {
            "type": "integer",
            "minimum": 0,
            "maximum": 255
          },
          "chartLines": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
              "$ref": "#/components/schemas/WalletNativeOrderChartLineV1"
            }
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderProposalV1": {
        "type": "object",
        "required": [
          "schema",
          "cluster",
          "programId",
          "orderPda",
          "owner",
          "orderId",
          "lifecycleSequence",
          "revision",
          "intents",
          "presentation"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "nova.solana.order-proposal.v2"
          },
          "cluster": {
            "type": "string",
            "enum": [
              "mainnet-beta",
              "devnet"
            ]
          },
          "programId": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "orderPda": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "owner": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "orderId": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "lifecycleSequence": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "revision": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "intents": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
              "$ref": "#/components/schemas/WalletNativeOrderIntentV1"
            }
          },
          "presentation": {
            "$ref": "#/components/schemas/WalletNativeOrderPresentationV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderLatestMutationV1": {
        "type": "object",
        "required": [
          "kind",
          "signature",
          "finalizedSlot"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "create",
              "edit"
            ]
          },
          "signature": {
            "$ref": "#/components/schemas/CanonicalSolanaSignature"
          },
          "finalizedSlot": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderRecordV1": {
        "type": "object",
        "required": [
          "schema",
          "cluster",
          "programId",
          "orderPda",
          "owner",
          "orderId",
          "lifecycleSequence",
          "revision",
          "intents",
          "presentation",
          "latestMutation"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "nova.solana.order.v2"
          },
          "cluster": {
            "type": "string",
            "enum": [
              "mainnet-beta",
              "devnet"
            ]
          },
          "programId": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "orderPda": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "owner": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "orderId": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "lifecycleSequence": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "revision": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "intents": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
              "$ref": "#/components/schemas/WalletNativeOrderIntentV1"
            }
          },
          "presentation": {
            "$ref": "#/components/schemas/WalletNativeOrderPresentationV1"
          },
          "latestMutation": {
            "$ref": "#/components/schemas/WalletNativeOrderLatestMutationV1"
          }
        },
        "additionalProperties": false,
        "description": "Finalized record with owner-signed finalized mutation proof metadata."
      },
      "WalletNativeOrderCancellationV1": {
        "type": "object",
        "required": [
          "signature",
          "finalizedSlot",
          "revision"
        ],
        "properties": {
          "signature": {
            "$ref": "#/components/schemas/CanonicalSolanaSignature"
          },
          "finalizedSlot": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "revision": {
            "type": "integer",
            "minimum": 2
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderCleanupV1": {
        "type": "object",
        "required": [
          "signature",
          "finalizedSlot",
          "revision"
        ],
        "properties": {
          "signature": {
            "$ref": "#/components/schemas/CanonicalSolanaSignature"
          },
          "finalizedSlot": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "revision": {
            "type": "integer",
            "minimum": 2
          }
        },
        "additionalProperties": false,
        "description": "Owner-only finalized proof for per-order resources after canonical expiry. It never authorizes shared delegate revocation."
      },
      "WalletNativeOrderConditionEvaluationV1": {
        "type": "object",
        "required": [
          "status",
          "metLegIndex",
          "observedPrice",
          "observedAt",
          "source",
          "errorCode",
          "timingTrust"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "notEvaluated",
              "notMet",
              "met",
              "unavailable",
              "expired"
            ]
          },
          "metLegIndex": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "observedPrice": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WalletNativeOrderExactChartPriceV1"
              },
              {
                "type": "null"
              }
            ]
          },
          "observedAt": {
            "oneOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "errorCode": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timingTrust": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "onChain",
                  "permissionlessRoute",
                  "keeperAdvisory"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderCanonicalStateV1": {
        "type": "object",
        "required": [
          "state",
          "chainStatus",
          "activeLeg",
          "initialInputAtoms",
          "remainingInputAtoms",
          "cancellation",
          "fillSignature",
          "chainSlot",
          "createdAt",
          "updatedAt",
          "filledAt",
          "cancelledAt"
        ],
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "active",
              "eligible",
              "filled",
              "cancelled",
              "expired",
              "incident"
            ]
          },
          "chainStatus": {
            "type": "string",
            "enum": [
              "active",
              "partiallyFilled",
              "filled",
              "executing",
              "closed"
            ]
          },
          "activeLeg": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "initialInputAtoms": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "remainingInputAtoms": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "cancellation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WalletNativeOrderCancellationV1"
              },
              {
                "type": "null"
              }
            ]
          },
          "fillSignature": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CanonicalSolanaSignature"
              },
              {
                "type": "null"
              }
            ]
          },
          "chainSlot": {
            "$ref": "#/components/schemas/ExactUnsignedIntegerString"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "filledAt": {
            "oneOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancelledAt": {
            "oneOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderReadV1": {
        "type": "object",
        "required": [
          "record",
          "canonicalState",
          "evaluation"
        ],
        "properties": {
          "record": {
            "$ref": "#/components/schemas/WalletNativeOrderRecordV1"
          },
          "canonicalState": {
            "$ref": "#/components/schemas/WalletNativeOrderCanonicalStateV1"
          },
          "evaluation": {
            "$ref": "#/components/schemas/WalletNativeOrderConditionEvaluationV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderPrepareRequestV1": {
        "type": "object",
        "required": [
          "proposal"
        ],
        "properties": {
          "proposal": {
            "$ref": "#/components/schemas/WalletNativeOrderProposalV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderClientPolicyV1": {
        "type": "object",
        "required": [
          "schema",
          "minimumInputValueUsd"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "nova.solana.order-client-policy.v1"
          },
          "minimumInputValueUsd": {
            "type": "string",
            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderSourceAllowanceV1": {
        "type": "object",
        "required": [
          "schema",
          "status"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "nova.solana.order-source-allowance.v1"
          },
          "status": {
            "type": "string",
            "enum": [
              "notDelegated",
              "canonical",
              "legacyNovaMigrationRequired"
            ]
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderResolvedAccountsV1": {
        "type": "object",
        "required": [
          "programId",
          "orderPda",
          "executionAuthority",
          "allowanceGroup",
          "ownerOrderSequence",
          "pythPriceUpdateAccount"
        ],
        "properties": {
          "programId": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "orderPda": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "executionAuthority": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "allowanceGroup": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "ownerOrderSequence": {
            "$ref": "#/components/schemas/CanonicalSolanaAddress"
          },
          "pythPriceUpdateAccount": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CanonicalSolanaAddress"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderExistingStateV1": {
        "type": "object",
        "required": [
          "exists",
          "ownerRevision",
          "canonicalState"
        ],
        "properties": {
          "exists": {
            "type": "boolean"
          },
          "ownerRevision": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "canonicalState": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WalletNativeOrderCanonicalStateV1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderPrepareResponseV1": {
        "type": "object",
        "required": [
          "proposal",
          "resolvedAccounts",
          "existingOrder",
          "sourceAllowance",
          "localExecutionRequired"
        ],
        "properties": {
          "proposal": {
            "$ref": "#/components/schemas/WalletNativeOrderProposalV1"
          },
          "resolvedAccounts": {
            "$ref": "#/components/schemas/WalletNativeOrderResolvedAccountsV1"
          },
          "existingOrder": {
            "$ref": "#/components/schemas/WalletNativeOrderExistingStateV1"
          },
          "sourceAllowance": {
            "$ref": "#/components/schemas/WalletNativeOrderSourceAllowanceV1"
          },
          "localExecutionRequired": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderRecordRequestV1": {
        "type": "object",
        "required": [
          "record"
        ],
        "properties": {
          "record": {
            "$ref": "#/components/schemas/WalletNativeOrderRecordV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderCancellationRequestV1": {
        "type": "object",
        "required": [
          "cancellation"
        ],
        "properties": {
          "cancellation": {
            "$ref": "#/components/schemas/WalletNativeOrderCancellationV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderCleanupRequestV1": {
        "type": "object",
        "required": [
          "cleanup"
        ],
        "properties": {
          "cleanup": {
            "$ref": "#/components/schemas/WalletNativeOrderCleanupV1"
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderListResponseV1": {
        "type": "object",
        "required": [
          "orders",
          "total",
          "limit",
          "offset"
        ],
        "properties": {
          "orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletNativeOrderReadV1"
            }
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false
      },
      "WalletNativeOrderEligibleResponseV1": {
        "type": "object",
        "required": [
          "orders",
          "generatedAt"
        ],
        "properties": {
          "orders": {
            "type": "array",
            "maxItems": 250,
            "items": {
              "$ref": "#/components/schemas/WalletNativeOrderReadV1"
            }
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WalletDirectoryProfile": {
        "type": "object",
        "required": [
          "walletAddress",
          "displayName",
          "avatarUrl",
          "xHandle",
          "snsDomain",
          "classifications",
          "platforms",
          "aliases",
          "sources",
          "firstSeenAt",
          "lastSeenAt",
          "claimsTruncated"
        ],
        "properties": {
          "walletAddress": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "xHandle": {
            "type": "string",
            "nullable": true
          },
          "snsDomain": {
            "type": "string",
            "nullable": true
          },
          "classifications": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "userId": {
                  "type": "string"
                },
                "handle": {
                  "type": "string"
                },
                "displayName": {
                  "type": "string"
                },
                "xHandle": {
                  "type": "string"
                },
                "avatarUrl": {
                  "type": "string"
                }
              }
            }
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "value",
                "sources",
                "firstSeenAt",
                "lastSeenAt"
              ],
              "properties": {
                "kind": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "platform": {
                  "type": "string"
                },
                "alias": {
                  "type": "string"
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "firstSeenAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "lastSeenAt": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "solana-tracker:rest",
                "solana-tracker:datastream"
              ]
            }
          },
          "firstSeenAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastSeenAt": {
            "type": "string",
            "format": "date-time"
          },
          "claimsTruncated": {
            "type": "boolean",
            "description": "Older identity claims were omitted from this bounded response."
          }
        }
      },
      "WalletDirectorySearchResponse": {
        "type": "object",
        "required": [
          "source",
          "identityStatus",
          "data"
        ],
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "nova-wallet-directory"
            ]
          },
          "identityStatus": {
            "type": "string",
            "enum": [
              "provider_reported"
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletDirectoryProfile"
            }
          }
        }
      }
    }
  }
}
