@blockrun/llm 3.14.1 → 3.14.2

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.cjs CHANGED
@@ -4600,7 +4600,7 @@ function getCostSummary() {
4600
4600
  }
4601
4601
 
4602
4602
  // src/version.ts
4603
- var SDK_VERSION = "3.14.1";
4603
+ var SDK_VERSION = "3.14.2";
4604
4604
  var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
4605
4605
 
4606
4606
  // src/client.ts
@@ -5710,7 +5710,7 @@ var LLMClient = class _LLMClient {
5710
5710
  }
5711
5711
  /**
5712
5712
  * Neural web search via Exa. Returns semantically relevant URLs and metadata.
5713
- * Understands meaning, not just keywords. $0.01/call.
5713
+ * Understands meaning, not just keywords.
5714
5714
  *
5715
5715
  * @param query - Natural language search query
5716
5716
  * @param options - Optional filters (numResults, category, date range, domains)
@@ -5728,7 +5728,7 @@ var LLMClient = class _LLMClient {
5728
5728
  }
5729
5729
  /**
5730
5730
  * Ask a question and get a cited, synthesized answer grounded in real web sources.
5731
- * No hallucinations — every claim is backed by a citation. $0.01/call.
5731
+ * No hallucinations — every claim is backed by a citation.
5732
5732
  *
5733
5733
  * @param query - The question to answer
5734
5734
  */
@@ -5737,7 +5737,7 @@ var LLMClient = class _LLMClient {
5737
5737
  return data.data;
5738
5738
  }
5739
5739
  /**
5740
- * Fetch full Markdown text content from a list of URLs. $0.002 per URL.
5740
+ * Fetch full Markdown text content from a list of URLs. Billed per URL.
5741
5741
  * Returns clean text ready to feed into an LLM context window.
5742
5742
  *
5743
5743
  * @param urls - Array of URLs to fetch (up to 100)
@@ -5747,7 +5747,7 @@ var LLMClient = class _LLMClient {
5747
5747
  return data.data;
5748
5748
  }
5749
5749
  /**
5750
- * Find pages semantically similar to a given URL. $0.01/call.
5750
+ * Find pages semantically similar to a given URL.
5751
5751
  * Useful for discovering competitors, alternatives, and related resources.
5752
5752
  *
5753
5753
  * @param url - Reference URL
@@ -5844,7 +5844,7 @@ var LLMClient = class _LLMClient {
5844
5844
  * Query Predexon prediction market data (GET endpoints).
5845
5845
  *
5846
5846
  * Access real-time data from Polymarket, Kalshi, dFlow, and Binance Futures.
5847
- * Powered by Predexon. $0.001 per request.
5847
+ * Powered by Predexon. Billed per request.
5848
5848
  *
5849
5849
  * @param path - Endpoint path, e.g. "polymarket/events", "kalshi/markets/12345"
5850
5850
  * @param params - Query parameters passed to the endpoint
@@ -5861,7 +5861,7 @@ var LLMClient = class _LLMClient {
5861
5861
  * Structured query for Predexon prediction market data (POST endpoints).
5862
5862
  *
5863
5863
  * For endpoints that require a JSON body, e.g. bulk wallet identity lookup.
5864
- * Tier 1 = $0.001/call, Tier 2 = $0.005/call.
5864
+ * Tier 1 =, Tier 2 =
5865
5865
  *
5866
5866
  * @param path - Endpoint path, e.g. "polymarket/wallet/identities"
5867
5867
  * @param query - JSON body for the structured query
@@ -5910,16 +5910,16 @@ var LLMClient = class _LLMClient {
5910
5910
  );
5911
5911
  }
5912
5912
  /** Polymarket markets with cursor-based keyset pagination (use pagination_key).
5913
- * Tier 1 ($0.001/call). */
5913
+ * Tier 1. */
5914
5914
  async pmPolymarketMarketsKeyset(params) {
5915
5915
  return this.pm("polymarket/markets/keyset", params);
5916
5916
  }
5917
5917
  /** Polymarket events with cursor-based keyset pagination (use pagination_key).
5918
- * Tier 1 ($0.001/call). */
5918
+ * Tier 1. */
5919
5919
  async pmPolymarketEventsKeyset(params) {
5920
5920
  return this.pm("polymarket/events/keyset", params);
5921
5921
  }
5922
- /** List available sports categories. Tier 1 ($0.001/call).
5922
+ /** List available sports categories. Tier 1.
5923
5923
  *
5924
5924
  * NOTE: upstream returns 500 for every `sports/*` path as of 2026-08-04.
5925
5925
  * The route still resolves, so this works again the moment Predexon restores
@@ -5928,23 +5928,23 @@ var LLMClient = class _LLMClient {
5928
5928
  return this.pm("sports/categories");
5929
5929
  }
5930
5930
  /** List sports markets grouped by game. Filter with league, sport_type,
5931
- * status, venue. Tier 1 ($0.001/call).
5931
+ * status, venue. Tier 1.
5932
5932
  *
5933
5933
  * NOTE: upstream returns 500 for every `sports/*` path as of 2026-08-04. */
5934
5934
  async pmSportsMarkets(params) {
5935
5935
  return this.pm("sports/markets", params);
5936
5936
  }
5937
5937
  /** Fetch identity + profile metadata for one wallet (ENS, Twitter, portfolio,
5938
- * etc.). Tier 2 ($0.005/call). */
5938
+ * etc.). Tier 2. */
5939
5939
  async pmWalletIdentity(wallet) {
5940
5940
  return this.pm(`polymarket/wallet/identity/${wallet}`);
5941
5941
  }
5942
- /** Bulk identity lookup for up to 200 wallet addresses (POST). Tier 2 ($0.005/call). */
5942
+ /** Bulk identity lookup for up to 200 wallet addresses (POST). Tier 2. */
5943
5943
  async pmWalletIdentities(addresses) {
5944
5944
  return this.pmQuery("polymarket/wallet/identities", { addresses });
5945
5945
  }
5946
5946
  /** Discover wallets connected to a seed address via on-chain transfers and
5947
- * identity proofs. Tier 2 ($0.005/call). */
5947
+ * identity proofs. Tier 2. */
5948
5948
  async pmWalletCluster(address) {
5949
5949
  return this.pm(`polymarket/wallet/${address}/cluster`);
5950
5950
  }
@@ -5953,8 +5953,8 @@ var LLMClient = class _LLMClient {
5953
5953
  // ============================================================
5954
5954
  /**
5955
5955
  * Query DefiLlama DeFi data (GET passthrough). Powered by DefiLlama.
5956
- * $0.005/call for protocols / protocol/{slug} / chains / yields;
5957
- * $0.001/call for prices/{coins}.
5956
+ * for protocols / protocol/{slug} / chains / yields;
5957
+ * for prices/{coins}.
5958
5958
  *
5959
5959
  * @param path - e.g. "protocols", "protocol/aave", "chains", "yields",
5960
5960
  * "prices/coingecko:bitcoin,base:0x..."
@@ -5963,23 +5963,23 @@ var LLMClient = class _LLMClient {
5963
5963
  async defi(path6, params) {
5964
5964
  return this.getWithPaymentRaw(`/v1/defillama/${path6}`, params);
5965
5965
  }
5966
- /** All DeFi protocols with TVL ($0.005/call). */
5966
+ /** All DeFi protocols with TVL. */
5967
5967
  async defiProtocols() {
5968
5968
  return this.defi("protocols");
5969
5969
  }
5970
- /** Single protocol details + historical TVL ($0.005/call). */
5970
+ /** Single protocol details + historical TVL. */
5971
5971
  async defiProtocol(slug) {
5972
5972
  return this.defi(`protocol/${slug}`);
5973
5973
  }
5974
- /** Current TVL of every chain ($0.005/call). */
5974
+ /** Current TVL of every chain. */
5975
5975
  async defiChains() {
5976
5976
  return this.defi("chains");
5977
5977
  }
5978
- /** Yield pools with APY/TVL ($0.005/call). */
5978
+ /** Yield pools with APY/TVL. */
5979
5979
  async defiYields(params) {
5980
5980
  return this.defi("yields", params);
5981
5981
  }
5982
- /** Token price lookup ($0.001/call). Coins like "coingecko:bitcoin" or "{chain}:{address}". */
5982
+ /** Token price lookup. Coins like "coingecko:bitcoin" or "{chain}:{address}". */
5983
5983
  async defiPrices(coins) {
5984
5984
  const joined = Array.isArray(coins) ? coins.join(",") : coins;
5985
5985
  return this.defi(`prices/${joined}`);
@@ -6039,26 +6039,26 @@ var LLMClient = class _LLMClient {
6039
6039
  /**
6040
6040
  * Call the Modal sandbox compute API (POST passthrough).
6041
6041
  *
6042
- * @param path - "sandbox/create" ($0.01 CPU / $0.05 GPU), "sandbox/exec",
6043
- * "sandbox/status", "sandbox/terminate" ($0.001 each)
6042
+ * @param path - "sandbox/create" (CPU / GPU tiers), "sandbox/exec",
6043
+ * "sandbox/status", "sandbox/terminate"
6044
6044
  * @param body - JSON body for the endpoint
6045
6045
  */
6046
6046
  async modal(path6, body) {
6047
6047
  return this.requestWithPaymentRaw(`/v1/modal/${path6}`, body ?? {});
6048
6048
  }
6049
- /** Create a sandboxed compute environment ($0.01 CPU / $0.05 GPU). */
6049
+ /** Create a sandboxed compute environment (CPU / GPU tiers). */
6050
6050
  async modalSandboxCreate(body) {
6051
6051
  return this.modal("sandbox/create", body);
6052
6052
  }
6053
- /** Execute a command in a sandbox; returns stdout/stderr ($0.001). */
6053
+ /** Execute a command in a sandbox; returns stdout/stderr. */
6054
6054
  async modalSandboxExec(sandboxId, command, extra) {
6055
6055
  return this.modal("sandbox/exec", { sandbox_id: sandboxId, command, ...extra });
6056
6056
  }
6057
- /** Check a sandbox's status ($0.001). */
6057
+ /** Check a sandbox's status. */
6058
6058
  async modalSandboxStatus(sandboxId) {
6059
6059
  return this.modal("sandbox/status", { sandbox_id: sandboxId });
6060
6060
  }
6061
- /** Terminate a sandbox ($0.001). */
6061
+ /** Terminate a sandbox. */
6062
6062
  async modalSandboxTerminate(sandboxId) {
6063
6063
  return this.modal("sandbox/terminate", { sandbox_id: sandboxId });
6064
6064
  }
@@ -6642,7 +6642,7 @@ var SpeechClient = class {
6642
6642
  * Synthesize speech from text (OpenAI-compatible TTS).
6643
6643
  *
6644
6644
  * Price scales with character count: (chars / 1000) x model rate,
6645
- * minimum $0.001/request. Synthesis is synchronous.
6645
+ * minimum Synthesis is synchronous.
6646
6646
  *
6647
6647
  * @param input - Text to synthesize. Per-model character caps apply
6648
6648
  * (flash/turbo 40k, multilingual-v2 10k, v3 5k).
@@ -6670,7 +6670,7 @@ var SpeechClient = class {
6670
6670
  /**
6671
6671
  * Generate a cinematic sound effect from a text prompt.
6672
6672
  *
6673
- * Flat $0.05/generation, up to 22 seconds of audio.
6673
+ *, up to 22 seconds of audio.
6674
6674
  *
6675
6675
  * @param text - Sound effect description (max 1000 chars).
6676
6676
  * E.g. 'rain on a tin roof', 'sci-fi door whoosh'
@@ -7184,7 +7184,7 @@ var VoiceClient = class {
7184
7184
  /**
7185
7185
  * Initiate an AI-powered outbound phone call.
7186
7186
  *
7187
- * Pricing: $0.54 per call. Returns immediately once the call is queued —
7187
+ * Pricing: per call. Returns immediately once the call is queued —
7188
7188
  * poll getStatus() for transcript and recording.
7189
7189
  *
7190
7190
  * @example
@@ -7426,7 +7426,7 @@ var PhoneClient = class {
7426
7426
  }
7427
7427
  // ─── Lookup ────────────────────────────────────────────────────────────
7428
7428
  /**
7429
- * Carrier + line-type lookup. ~$0.01.
7429
+ * Carrier + line-type lookup.
7430
7430
  *
7431
7431
  * @param phoneNumber E.164 number (e.g. "+14155552671").
7432
7432
  */
@@ -7435,7 +7435,7 @@ var PhoneClient = class {
7435
7435
  return this.request("lookup", { phoneNumber: num });
7436
7436
  }
7437
7437
  /**
7438
- * Lookup + fraud signals (SIM swap, call forwarding). ~$0.05.
7438
+ * Lookup + fraud signals (SIM swap, call forwarding).
7439
7439
  *
7440
7440
  * @param phoneNumber E.164 number.
7441
7441
  */
@@ -7445,7 +7445,7 @@ var PhoneClient = class {
7445
7445
  }
7446
7446
  // ─── Provisioning ──────────────────────────────────────────────────────
7447
7447
  /**
7448
- * Provision a dedicated phone number for 30 days. $5.00.
7448
+ * Provision a dedicated phone number for 30 days.
7449
7449
  *
7450
7450
  * Payment is settled only after Twilio confirms the purchase, so failed
7451
7451
  * buys never charge your wallet.
@@ -7472,7 +7472,7 @@ var PhoneClient = class {
7472
7472
  return data;
7473
7473
  }
7474
7474
  /**
7475
- * Extend an existing provisioned number by 30 days. $5.00.
7475
+ * Extend an existing provisioned number by 30 days.
7476
7476
  *
7477
7477
  * @throws {APIError} 403 when the wallet doesn't own the number or it has expired.
7478
7478
  */
@@ -7483,7 +7483,7 @@ var PhoneClient = class {
7483
7483
  });
7484
7484
  return data;
7485
7485
  }
7486
- /** List the wallet's active phone numbers. ~$0.001. */
7486
+ /** List the wallet's active phone numbers. */
7487
7487
  async listNumbers() {
7488
7488
  const data = await this.request("numbers/list", {});
7489
7489
  return data;
@@ -7640,7 +7640,7 @@ var PortraitClient = class {
7640
7640
  return { totalUsd: this.sessionTotalUsd, calls: this.sessionCalls };
7641
7641
  }
7642
7642
  /**
7643
- * Enroll a Virtual Portrait from a face image URL. $0.01 (promo).
7643
+ * Enroll a Virtual Portrait from a face image URL. (promo).
7644
7644
  *
7645
7645
  * Payment is settled only after Token360 confirms the enrollment, so failed
7646
7646
  * enrollments never charge your wallet.
@@ -8401,7 +8401,7 @@ var RpcClient = class {
8401
8401
  this.timeout = options.timeout || DEFAULT_TIMEOUT12;
8402
8402
  }
8403
8403
  /**
8404
- * Make a single JSON-RPC 2.0 call. Flat $0.002.
8404
+ * Make a single JSON-RPC 2.0 call. Flat per-call rate.
8405
8405
  *
8406
8406
  * @param network - Chain name (e.g. "ethereum", "base", "solana") or a
8407
8407
  * common alias ("eth", "sol", "matic", ...). See
@@ -8424,7 +8424,7 @@ var RpcClient = class {
8424
8424
  return this.toResponse(data, headers);
8425
8425
  }
8426
8426
  /**
8427
- * Make a JSON-RPC 2.0 batch call. Priced per element ($0.002 x N).
8427
+ * Make a JSON-RPC 2.0 batch call. Priced per element (rate x N).
8428
8428
  *
8429
8429
  * @param network - Chain name or alias (see {@link call}).
8430
8430
  * @param requests - Requests, each with a `method` and optional
@@ -9802,7 +9802,7 @@ var SolanaLLMClient = class {
9802
9802
  return this.requestWithPaymentRaw(`/v1/exa/${path6}`, body);
9803
9803
  }
9804
9804
  /**
9805
- * Neural and keyword web search via Exa (Solana payment, $0.01/request).
9805
+ * Neural and keyword web search via Exa (Solana payment).
9806
9806
  *
9807
9807
  * @example
9808
9808
  * const results = await client.exaSearch("latest AI papers", { numResults: 5 });
@@ -9811,7 +9811,7 @@ var SolanaLLMClient = class {
9811
9811
  return this.requestWithPaymentRaw("/v1/exa/search", { query, ...options });
9812
9812
  }
9813
9813
  /**
9814
- * Find pages semantically similar to a given URL via Exa (Solana payment, $0.01/request).
9814
+ * Find pages semantically similar to a given URL via Exa (Solana payment).
9815
9815
  *
9816
9816
  * @example
9817
9817
  * const results = await client.exaFindSimilar("https://openai.com/research/gpt-4", { numResults: 5 });
@@ -9820,7 +9820,7 @@ var SolanaLLMClient = class {
9820
9820
  return this.requestWithPaymentRaw("/v1/exa/find-similar", { url, ...options });
9821
9821
  }
9822
9822
  /**
9823
- * Extract full text content from URLs via Exa (Solana payment, $0.002/URL).
9823
+ * Extract full text content from URLs via Exa (Solana payment).
9824
9824
  *
9825
9825
  * @example
9826
9826
  * const data = await client.exaContents(["https://arxiv.org/abs/2303.08774"]);
@@ -9829,7 +9829,7 @@ var SolanaLLMClient = class {
9829
9829
  return this.requestWithPaymentRaw("/v1/exa/contents", { urls, ...options });
9830
9830
  }
9831
9831
  /**
9832
- * AI-generated answer grounded in live web search via Exa (Solana payment, $0.01/request).
9832
+ * AI-generated answer grounded in live web search via Exa (Solana payment).
9833
9833
  *
9834
9834
  * @example
9835
9835
  * const answer = await client.exaAnswer("What is the current state of AI safety research?");
@@ -9842,8 +9842,8 @@ var SolanaLLMClient = class {
9842
9842
  // ============================================================
9843
9843
  /**
9844
9844
  * Query DefiLlama DeFi data (GET passthrough). Powered by DefiLlama.
9845
- * $0.005/call for protocols / protocol/{slug} / chains / yields;
9846
- * $0.001/call for prices/{coins}.
9845
+ * for protocols / protocol/{slug} / chains / yields;
9846
+ * for prices/{coins}.
9847
9847
  *
9848
9848
  * @param path - e.g. "protocols", "protocol/aave", "chains", "yields",
9849
9849
  * "prices/coingecko:bitcoin,base:0x..."
@@ -9852,23 +9852,23 @@ var SolanaLLMClient = class {
9852
9852
  async defi(path6, params) {
9853
9853
  return this.getWithPaymentRaw(`/v1/defillama/${path6}`, params);
9854
9854
  }
9855
- /** All DeFi protocols with TVL ($0.005/call). */
9855
+ /** All DeFi protocols with TVL. */
9856
9856
  async defiProtocols() {
9857
9857
  return this.defi("protocols");
9858
9858
  }
9859
- /** Single protocol details + historical TVL ($0.005/call). */
9859
+ /** Single protocol details + historical TVL. */
9860
9860
  async defiProtocol(slug) {
9861
9861
  return this.defi(`protocol/${slug}`);
9862
9862
  }
9863
- /** Current TVL of every chain ($0.005/call). */
9863
+ /** Current TVL of every chain. */
9864
9864
  async defiChains() {
9865
9865
  return this.defi("chains");
9866
9866
  }
9867
- /** Yield pools with APY/TVL ($0.005/call). */
9867
+ /** Yield pools with APY/TVL. */
9868
9868
  async defiYields(params) {
9869
9869
  return this.defi("yields", params);
9870
9870
  }
9871
- /** Token price lookup ($0.001/call). Coins like "coingecko:bitcoin" or "{chain}:{address}". */
9871
+ /** Token price lookup. Coins like "coingecko:bitcoin" or "{chain}:{address}". */
9872
9872
  async defiPrices(coins) {
9873
9873
  const joined = Array.isArray(coins) ? coins.join(",") : coins;
9874
9874
  return this.defi(`prices/${joined}`);
@@ -9928,26 +9928,26 @@ var SolanaLLMClient = class {
9928
9928
  /**
9929
9929
  * Call the Modal sandbox compute API (POST passthrough).
9930
9930
  *
9931
- * @param path - "sandbox/create" ($0.01 CPU / $0.05 GPU), "sandbox/exec",
9932
- * "sandbox/status", "sandbox/terminate" ($0.001 each)
9931
+ * @param path - "sandbox/create" (CPU / GPU tiers), "sandbox/exec",
9932
+ * "sandbox/status", "sandbox/terminate"
9933
9933
  * @param body - JSON body for the endpoint
9934
9934
  */
9935
9935
  async modal(path6, body) {
9936
9936
  return this.requestWithPaymentRaw(`/v1/modal/${path6}`, body ?? {});
9937
9937
  }
9938
- /** Create a sandboxed compute environment ($0.01 CPU / $0.05 GPU). */
9938
+ /** Create a sandboxed compute environment (CPU / GPU tiers). */
9939
9939
  async modalSandboxCreate(body) {
9940
9940
  return this.modal("sandbox/create", body);
9941
9941
  }
9942
- /** Execute a command in a sandbox; returns stdout/stderr ($0.001). */
9942
+ /** Execute a command in a sandbox; returns stdout/stderr. */
9943
9943
  async modalSandboxExec(sandboxId, command, extra) {
9944
9944
  return this.modal("sandbox/exec", { sandbox_id: sandboxId, command, ...extra });
9945
9945
  }
9946
- /** Check a sandbox's status ($0.001). */
9946
+ /** Check a sandbox's status. */
9947
9947
  async modalSandboxStatus(sandboxId) {
9948
9948
  return this.modal("sandbox/status", { sandbox_id: sandboxId });
9949
9949
  }
9950
- /** Terminate a sandbox ($0.001). */
9950
+ /** Terminate a sandbox. */
9951
9951
  async modalSandboxTerminate(sandboxId) {
9952
9952
  return this.modal("sandbox/terminate", { sandbox_id: sandboxId });
9953
9953
  }