@ecency/sdk 2.3.88 → 2.3.90

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.
@@ -1,7 +1,7 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { MutationKey, UseMutationOptions, QueryClient, QueryKey, InfiniteData, UseQueryOptions, UseInfiniteQueryOptions, useMutation } from '@tanstack/react-query';
3
- import { O as Operation, P as PrivateKey, B as BroadcastResult, A as APIMethods, R as ResilienceOptions, a as Authority, b as PublicKey, c as OperationName, o as operations } from './hive-DmLj3VWL.js';
4
- export { d as AccountCreateOperation, e as AssetSymbol, C as CustomJsonOperation, T as HiveTxTransaction, M as Memo, f as OperationBody, S as Signature, g as callREST, h as callRPC, i as callRPCBroadcast, j as callWithQuorum, k as hiveTxConfig, u as hiveTxUtils } from './hive-DmLj3VWL.js';
3
+ import { O as Operation, P as PrivateKey, B as BroadcastResult, A as APIMethods, R as ResilienceOptions, S as ServerRpcProxyOptions, r as rpcProxyStats, a as Authority, b as PublicKey, c as OperationName, o as operations } from './hive-BCPImNej.js';
4
+ export { d as AccountCreateOperation, e as AssetSymbol, C as CustomJsonOperation, T as HiveTxTransaction, M as Memo, f as OperationBody, g as Signature, h as callREST, i as callRPC, j as callRPCBroadcast, k as callWithQuorum, l as hiveTxConfig, u as hiveTxUtils } from './hive-BCPImNej.js';
5
5
 
6
6
  interface AiGenerationPrice {
7
7
  aspect_ratio: string;
@@ -1219,6 +1219,25 @@ declare namespace ConfigManager {
1219
1219
  * @param opts - e.g. `{ hedge: true }` to opt into hedged reads
1220
1220
  */
1221
1221
  function setResilience(opts: Partial<ResilienceOptions>): void;
1222
+ /**
1223
+ * Route allowlisted server-side RPC reads through a read-through cache in
1224
+ * front of the node pool (one cache per host, shared by every renderer
1225
+ * process). An optimization, never a dependency: any proxy failure falls
1226
+ * straight through to the node loop. No effect outside Node; null switches
1227
+ * it off. Delegates to the unified hive-tx `setServerRpcProxy`.
1228
+ * @param opts - `{ url, headers, timeoutMs, methods }` or null
1229
+ */
1230
+ function setServerRpcProxy(opts: ServerRpcProxyOptions | null): void;
1231
+ /**
1232
+ * The live counters of that proxy path: `served` (answered by the proxy),
1233
+ * `fallback` with a per-reason breakdown (the read went to the node pool
1234
+ * after a proxy failure) and `skipped` (breaker open). The same object the
1235
+ * call path increments, exposed here because the root build carries its own
1236
+ * copy of the hive-tx internals; a consumer importing `rpcProxyStats` from
1237
+ * the `/hive` entry would read a different, never-incremented instance.
1238
+ * Read-only by contract: the web tier prints it, nothing resets it.
1239
+ */
1240
+ function getServerRpcProxyStats(): Readonly<typeof rpcProxyStats>;
1222
1241
  /**
1223
1242
  * Set DMCA filtering lists
1224
1243
  * @param lists - DMCA lists object containing accounts/tags/posts arrays