keyring-agent-core 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1611,6 +1611,13 @@ interface AgentConfig {
1611
1611
  uniswap?: {
1612
1612
  /** Base URL for the Uniswap interface gateway (default: https://interface.gateway.uniswap.org) */
1613
1613
  baseUrl?: string;
1614
+ /**
1615
+ * Base URL for the token/pool search gateway (default:
1616
+ * https://entry-gateway.backend-prod.api.uniswap.org). Separate from
1617
+ * `baseUrl`: Uniswap moved SearchTokens to this host while ExploreStats
1618
+ * and GraphQL stayed on the interface gateway.
1619
+ */
1620
+ searchBaseUrl?: string;
1614
1621
  /** Minimum USD value the user must supply to add liquidity. Default 10. */
1615
1622
  minProvideUsd?: number;
1616
1623
  /**
@@ -7387,17 +7394,32 @@ declare class PoolFallbackAiTool extends BaseTool {
7387
7394
  }
7388
7395
 
7389
7396
  /**
7390
- * UniswapService — Uniswap Explore API (interface.gateway.uniswap.org).
7397
+ * UniswapService — Uniswap Explore API.
7398
+ *
7399
+ * Wraps the public endpoints that power https://app.uniswap.org/explore. These
7400
+ * are Connect-RPC services: ExploreStats JSON-encodes its request into a
7401
+ * `message` query parameter, search POSTs a JSON body; both answer plain JSON.
7391
7402
  *
7392
- * Wraps the public ExploreStats endpoint that powers https://app.uniswap.org/explore.
7393
- * The endpoint is a Connect-RPC service: the request payload is JSON-encoded
7394
- * inside a `message` query parameter and the response is plain JSON.
7403
+ * Two gateways, deliberately: ExploreStats + GraphQL stay on
7404
+ * `interface.gateway.uniswap.org`, while token/pool search moved to
7405
+ * `entry-gateway.backend-prod.api.uniswap.org` — see
7406
+ * {@link DEFAULT_SEARCH_BASE_URL}.
7395
7407
  *
7396
7408
  * No SDK dependencies — uses native `fetch`.
7397
7409
  */
7398
7410
  interface UniswapServiceConfig {
7399
7411
  /** Base URL for the Uniswap interface gateway (default: https://interface.gateway.uniswap.org) */
7400
7412
  baseUrl?: string;
7413
+ /**
7414
+ * Base URL for the token/pool SEARCH gateway (default:
7415
+ * https://entry-gateway.backend-prod.api.uniswap.org).
7416
+ *
7417
+ * Deliberately separate from {@link baseUrl}: Uniswap moved SearchTokens to
7418
+ * this host while ExploreStats and GraphQL stayed on the interface gateway,
7419
+ * so the two cannot share one origin. Kept configurable so the rest of the
7420
+ * migration can be followed without a code change.
7421
+ */
7422
+ searchBaseUrl?: string;
7401
7423
  }
7402
7424
  type UniswapProtocolVersion = 'V2' | 'V3' | 'V4';
7403
7425
 
@@ -7573,7 +7595,7 @@ type PoolSearchToolConfig = UniswapServiceConfig & {
7573
7595
  /**
7574
7596
  * Tool: search-pools
7575
7597
  *
7576
- * Wraps the Uniswap `Search.v1.SearchService/SearchTokens` endpoint with
7598
+ * Wraps the Uniswap `data.v1.SearchService/SearchTokens` endpoint with
7577
7599
  * `searchType: "POOL"`. Lets users discover pools by free-text query
7578
7600
  * (token symbol like "WBTC" or "USDC", token name, or pool address) on a
7579
7601
  * specific chain. Paginated.