@agg-build/hooks 2.1.2 → 2.2.0

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/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-5VDUIUJB.mjs";
4
+ } from "./chunk-SN4AO5D7.mjs";
5
5
  import {
6
6
  __async,
7
7
  useAggAuthState,
@@ -9,8 +9,9 @@ import {
9
9
  useAggClient,
10
10
  useAggUiConfig,
11
11
  useDepositAddresses,
12
+ useOptionalAggClient,
12
13
  useSyncBalances
13
- } from "./chunk-7UDYSDKQ.mjs";
14
+ } from "./chunk-56RISN73.mjs";
14
15
 
15
16
  // src/deposit/normalize-wallet-error.ts
16
17
  function normalizeWalletError(error, supportedChains) {
@@ -35,17 +36,18 @@ function normalizeWalletError(error, supportedChains) {
35
36
 
36
37
  // src/deposit/use-wallet-token-balance.ts
37
38
  import { PublicKey } from "@solana/web3.js";
38
- import { useQuery } from "@tanstack/react-query";
39
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
39
40
  import { formatUnits } from "viem";
40
41
  import { useAccount, useReadContract } from "wagmi";
41
42
 
42
43
  // src/deposit/constants.ts
43
44
  var DEFAULT_SOLANA_RPC_ENDPOINTS = [
45
+ "https://solana-mainnet.g.alchemy.com/v2",
44
46
  "https://solana-rpc.publicnode.com",
45
47
  "https://api.mainnet.solana.com",
46
48
  "https://rpc.ankr.com/solana"
47
49
  ];
48
- var DEFAULT_SOLANA_RPC_ENDPOINT = DEFAULT_SOLANA_RPC_ENDPOINTS[0];
50
+ var DEFAULT_SOLANA_RPC_ENDPOINT = "https://solana-rpc.publicnode.com";
49
51
  var SVM_CHAIN_IDS = /* @__PURE__ */ new Set([792703809]);
50
52
  var MULTI_CHAIN_SOLANA_WALLET_NAMES = /* @__PURE__ */ new Set(["Phantom"]);
51
53
 
@@ -80,6 +82,7 @@ function useSvmAddress() {
80
82
  // src/deposit/svm-connections.ts
81
83
  import { Connection } from "@solana/web3.js";
82
84
  import { useMemo } from "react";
85
+ import { useQuery } from "@tanstack/react-query";
83
86
  function resolveSvmRpcEndpoints(partnerUrl) {
84
87
  const seen = /* @__PURE__ */ new Set();
85
88
  const out = [];
@@ -94,10 +97,28 @@ function resolveSvmRpcEndpoints(partnerUrl) {
94
97
  }
95
98
  function useSvmConnections(commitment) {
96
99
  const { solanaRpcUrl } = useAggUiConfig();
100
+ const client = useOptionalAggClient();
101
+ const { data: tokenData } = useQuery({
102
+ queryKey: ["alchemy-rpc-token"],
103
+ queryFn: () => client ? client.getRpcToken() : Promise.resolve({ token: "", expiresAt: 0 }),
104
+ enabled: !!client,
105
+ staleTime: 50 * 60 * 1e3
106
+ // 50 minutes cache (token is valid for 1h)
107
+ });
108
+ const token = tokenData == null ? void 0 : tokenData.token;
97
109
  return useMemo(() => {
98
110
  const endpoints = resolveSvmRpcEndpoints(solanaRpcUrl);
99
- return endpoints.map((url) => new Connection(url, commitment));
100
- }, [solanaRpcUrl, commitment]);
111
+ return endpoints.map((url) => {
112
+ const headers = {};
113
+ if (url.includes("alchemy.com") && token) {
114
+ headers["Authorization"] = `Bearer ${token}`;
115
+ }
116
+ return new Connection(url, {
117
+ commitment,
118
+ httpHeaders: Object.keys(headers).length > 0 ? headers : void 0
119
+ });
120
+ });
121
+ }, [solanaRpcUrl, commitment, token]);
101
122
  }
102
123
  function withSvmFailover(connections, operation) {
103
124
  return __async(this, null, function* () {
@@ -192,7 +213,7 @@ function useWalletTokenBalance({
192
213
  const resolvedSvmAddress = detectedSvmAddress != null ? detectedSvmAddress : svmAddress;
193
214
  const svmEnabled = isOpen && isSvm && !!resolvedSvmAddress && !!tokenAddress;
194
215
  const svmConnections = useSvmConnections();
195
- const svmQuery = useQuery({
216
+ const svmQuery = useQuery2({
196
217
  queryKey: ["svm-token-balance", resolvedSvmAddress != null ? resolvedSvmAddress : null, tokenAddress != null ? tokenAddress : null, isOpen],
197
218
  enabled: svmEnabled,
198
219
  staleTime: SVM_BALANCE_STALE_TIME_MS,
@@ -414,7 +435,7 @@ function useWalletSendToken() {
414
435
  }
415
436
 
416
437
  // src/deposit/use-wallet-transaction-status.ts
417
- import { useQuery as useQuery2 } from "@tanstack/react-query";
438
+ import { useQuery as useQuery3 } from "@tanstack/react-query";
418
439
  import { formatEther } from "viem";
419
440
  import { useWaitForTransactionReceipt } from "wagmi";
420
441
  function useWalletTransactionStatus({
@@ -433,7 +454,7 @@ function useWalletTransactionStatus({
433
454
  }
434
455
  });
435
456
  const svmConnections = useSvmConnections("confirmed");
436
- const svmQuery = useQuery2({
457
+ const svmQuery = useQuery3({
437
458
  queryKey: ["wallet-transaction-status", chainId != null ? chainId : null, txId != null ? txId : null],
438
459
  enabled: isSvm && !!txId,
439
460
  refetchInterval: (query) => query.state.data === "settled" || query.state.data === "error" ? false : 2e3,
package/dist/index.d.mts CHANGED
@@ -118,6 +118,7 @@ type UnifiedBalanceResponse = {
118
118
  chains: {
119
119
  chainId: number;
120
120
  tokenAddress: string;
121
+ tokenSymbol?: string | undefined;
121
122
  balanceRaw: string;
122
123
  heldRaw?: string | undefined;
123
124
  availableRaw?: string | undefined;
@@ -236,7 +237,8 @@ type VenueMarket = {
236
237
  question: string;
237
238
  venueMarketOutcomes: {
238
239
  id: string;
239
- price: number;
240
+ /** REMOVED — no longer returned; use GET /midpoints for live prices. */
241
+ price?: number | undefined;
240
242
  venueMarketId: string;
241
243
  label: string;
242
244
  title?: string | null | undefined;
@@ -275,6 +277,10 @@ type VenueMarket = {
275
277
  period?: string | null | undefined;
276
278
  /** Normalized subject category for prop-tab grouping (e.g., game_lines, exact_score, etc.). */
277
279
  marketCategory?: string | null | undefined;
280
+ /** Section/tab grouping key for sports markets (e.g. "player_props", "totals"). */
281
+ marketGroup?: string | null | undefined;
282
+ /** Fine-grained sub-classification within a marketGroup (e.g. "moneyline", "rushing_yards"). */
283
+ marketSubtype?: string | null | undefined;
278
284
  /** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
279
285
  lineValue?: number | null | undefined;
280
286
  matchedVenueMarkets?: {
@@ -286,7 +292,8 @@ type VenueMarket = {
286
292
  conditionId?: string | null | undefined;
287
293
  venueMarketOutcomes?: {
288
294
  id: string;
289
- price: number;
295
+ /** REMOVED — no longer returned; use GET /midpoints for live prices. */
296
+ price?: number | undefined;
290
297
  venueMarketId: string;
291
298
  label: string;
292
299
  winner?: boolean | null | undefined;
@@ -350,8 +357,12 @@ type VenueEvent = {
350
357
  * enum values.
351
358
  */
352
359
  recurrence?: string | null | undefined;
360
+ /** Deterministic game-level canonical key for cross-venue sports detail loading. */
361
+ aggKey?: string | null | undefined;
353
362
  /** Type-aware structure classification used to sort markets under this event. */
354
363
  structureType?: "candidate" | "sport" | "axis" | "dates" | null | undefined;
364
+ /** Canonical sport slug for sports events (e.g. "basketball", "soccer"); null for non-sports. */
365
+ sport?: string | null | undefined;
355
366
  };
356
367
  type Orderbook = {
357
368
  bids: {
@@ -374,7 +385,12 @@ type MatchedVenueMarketOutcomeRef = {
374
385
  };
375
386
  type VenueMarketOutcome = {
376
387
  id: string;
377
- price: number;
388
+ /**
389
+ * REMOVED — /venue-events and /venue-markets no longer return outcome
390
+ * prices. Fetch live prices from GET /midpoints (or the live-price hooks),
391
+ * keyed by this outcome's `id`.
392
+ */
393
+ price?: number | undefined;
378
394
  venueMarketId: string;
379
395
  label: string;
380
396
  title?: string | null | undefined;
@@ -892,6 +908,8 @@ interface AggUiLabels {
892
908
  showOutcomeAria: (label: string) => string;
893
909
  viewResolved: string;
894
910
  hideResolved: string;
911
+ resolvingTitle: string;
912
+ resolvingDescription: string;
895
913
  volumeUnavailable: string;
896
914
  tabs: {
897
915
  orderBook: string;
@@ -1233,6 +1251,50 @@ interface AggUiLabels {
1233
1251
  resolvedOutcome: (label: string) => string;
1234
1252
  marketDetailsAriaByDate: (dateLabel: string) => string;
1235
1253
  marketDetailsAriaByQuestion: (question: string) => string;
1254
+ sports: {
1255
+ summaryAria: string;
1256
+ sectionTabsAria: string;
1257
+ lineSelectorAria: (marketTitle: string) => string;
1258
+ previousLineAria: (marketTitle: string) => string;
1259
+ nextLineAria: (marketTitle: string) => string;
1260
+ comparisonToggleAria: (marketTitle: string, expanded: boolean) => string;
1261
+ comparisonTitle: string;
1262
+ compareVenues: (count: number) => string;
1263
+ marketCount: (count: number) => string;
1264
+ venueCount: (count: number) => string;
1265
+ volumeShort: string;
1266
+ totalVolumeShort: string;
1267
+ gameStarts: string;
1268
+ moreMarketsTitle: string;
1269
+ gameLinesTab: string;
1270
+ halvesTab: string;
1271
+ exactScoreTab: string;
1272
+ cornersTab: string;
1273
+ goalsTab: string;
1274
+ assistsTab: string;
1275
+ shotsTab: string;
1276
+ otherTab: string;
1277
+ moneylineTitle: string;
1278
+ spreadTitle: string;
1279
+ totalTitle: string;
1280
+ fullPeriod: string;
1281
+ firstHalfPeriod: string;
1282
+ secondHalfPeriod: string;
1283
+ quarterOnePeriod: string;
1284
+ quarterTwoPeriod: string;
1285
+ quarterThreePeriod: string;
1286
+ quarterFourPeriod: string;
1287
+ overtimePeriod: string;
1288
+ otherPeriod: string;
1289
+ loadingTitle: string;
1290
+ loadingDescription: string;
1291
+ emptyTitle: string;
1292
+ emptyDescription: (sectionLabel: string) => string;
1293
+ loadMore: string;
1294
+ loadingMore: string;
1295
+ bestPriceBadge: string;
1296
+ selectOutcomeAria: (marketTitle: string, outcomeLabel: string, priceLabel: string) => string;
1297
+ };
1236
1298
  };
1237
1299
  header: {
1238
1300
  bannerAria: string;
@@ -1347,6 +1409,14 @@ interface AggUiFeatureFlagsConfig {
1347
1409
  * for ad-hoc partner-fired toasts).
1348
1410
  */
1349
1411
  enableNotifications: boolean;
1412
+ /**
1413
+ * Enable the experimental sports event-details view. When `true` and the
1414
+ * event's `structureType === "sport"`, the event page renders the sports
1415
+ * market browser; otherwise the default event-details page is used. Defaults
1416
+ * to `false` (feature-flagged). Driven by `NEXT_PUBLIC_AGG_SHOW_SPORT_MARKETS`
1417
+ * in the demo app / Storybook, threaded through this config.
1418
+ */
1419
+ showSportsMarkets: boolean;
1350
1420
  }
1351
1421
  type AggUiFeatureFlagsConfigInput = Partial<AggUiFeatureFlagsConfig>;
1352
1422
  interface AggUiMarketConfig {
@@ -2057,6 +2127,7 @@ interface ExecutionTerminalOrderEvent {
2057
2127
  }
2058
2128
  interface UseExecutionProgressOptions {
2059
2129
  orderIds: string[] | null;
2130
+ quoteId?: string | null;
2060
2131
  enabled: boolean;
2061
2132
  mode?: "live" | "paper";
2062
2133
  }
@@ -2067,7 +2138,7 @@ interface UseExecutionProgressResult {
2067
2138
  dagProgress: DagStepProgress | null;
2068
2139
  terminalOrderEvents: ExecutionTerminalOrderEvent[];
2069
2140
  }
2070
- declare function useExecutionProgress({ orderIds, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
2141
+ declare function useExecutionProgress({ orderIds, quoteId, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
2071
2142
 
2072
2143
  interface ClosedPositionTotals {
2073
2144
  totalTraded: number;
@@ -3352,9 +3423,6 @@ declare function useLiveMarketStores(venueMarketIds: string[]): CandleBuilder[];
3352
3423
  * on `agg.orderbook.outcome`). The midpoint from each outcome's book is its
3353
3424
  * price — no complement derivation needed.
3354
3425
  *
3355
- * Falls back to the static `outcome.price` from the event payload when no
3356
- * live data is available.
3357
- *
3358
3426
  * Returns a stable Map<outcomeId, price> that updates only when cache entries
3359
3427
  * change.
3360
3428
  */
@@ -3530,41 +3598,6 @@ interface UseMidpointsResult {
3530
3598
  */
3531
3599
  declare function useMidpoints(venueMarkets: VenueMarket[] | null | undefined, options?: UseMidpointsOptions): UseMidpointsResult;
3532
3600
 
3533
- interface UseTradableVenuesResult {
3534
- /**
3535
- * Set of venue strings that have at least one outcome with a non-null
3536
- * midpoint from the engine. When non-null, this is the authoritative
3537
- * set of venues that have a live orderbook for the given cluster.
3538
- *
3539
- * `null` while midpoints are still loading — callers should treat this
3540
- * as "unknown, don't filter yet" and show all venues optimistically.
3541
- */
3542
- tradableVenues: ReadonlySet<string> | null;
3543
- /** True while the underlying midpoints fetch is in flight. */
3544
- isLoading: boolean;
3545
- }
3546
- /**
3547
- * Dynamic venue-orderbook availability check.
3548
- *
3549
- * Walks the cluster's midpoints (already fetched via /midpoints by the
3550
- * surrounding component, or fetched fresh here if not) and returns the
3551
- * set of venues that have at least one outcome with a non-null midpoint.
3552
- * A venue with NO non-null midpoints across all its outcomes is treated
3553
- * as "no live orderbook" — it appeared in matching/discovery but the
3554
- * engine isn't quoting it (e.g. opinion).
3555
- *
3556
- * The signal is purely runtime: no hardcoded venue allowlist. New
3557
- * venues that join without orderbook support get filtered automatically;
3558
- * venues whose orderbook stream temporarily drops also get filtered
3559
- * until midpoints come back. This keeps the FE in lockstep with what the
3560
- * engine is actually able to quote, without coordinating constants
3561
- * across BE/FE on every venue addition.
3562
- *
3563
- * Use this in surfaces that need to show "X tradeable venues" or filter
3564
- * a venue logo strip — see `getVenueSummary`'s `tradableVenues` option.
3565
- */
3566
- declare function useTradableVenues(venueMarkets: VenueMarket[] | null | undefined): UseTradableVenuesResult;
3567
-
3568
3601
  interface UseMarketChartOptions {
3569
3602
  /** VenueMarketOutcome.id */
3570
3603
  marketId: string | null;
@@ -4164,6 +4197,21 @@ interface UseSmartRouteOptions {
4164
4197
  enabled?: boolean;
4165
4198
  /** Cache freshness and polling interval in milliseconds. Defaults to SMART_ROUTE_STALE_TIME_MS. */
4166
4199
  staleTimeMs?: number;
4200
+ /**
4201
+ * UI activity hints used by the centralized refresh policy. These do not
4202
+ * affect the fetched payload, only whether quote polling should stay active
4203
+ * and whether thin-liquidity quotes should refresh more aggressively.
4204
+ */
4205
+ refreshContext?: {
4206
+ /** True when the quote panel is the visible/active surface. Defaults to true. */
4207
+ isPanelActive?: boolean;
4208
+ /** True while the user is actively editing the quote inputs. Defaults to false. */
4209
+ isEditing?: boolean;
4210
+ /** True when the market is open for trading. Defaults to true. */
4211
+ isMarketOpen?: boolean;
4212
+ /** True while the trade is being submitted or executed. Defaults to false. */
4213
+ isSubmitting?: boolean;
4214
+ };
4167
4215
  }
4168
4216
  /**
4169
4217
  * Why the smart route query is currently loading.
@@ -4812,6 +4860,11 @@ interface UseVenueEventsOptions {
4812
4860
  maxYesPrice?: number;
4813
4861
  /** ISO-8601 timestamp. When set, hides events with endDate <= value; NULL-endDate events are kept. */
4814
4862
  endDateFrom?: string;
4863
+ /**
4864
+ * When true, fold same-venue companion events into one tile per game
4865
+ * (`groupParentId IS NULL`). Default (omitted/false) = ungrouped.
4866
+ */
4867
+ grouped?: boolean;
4815
4868
  /**
4816
4869
  * When restoring from a navigation snapshot, eagerly fetch this many pages
4817
4870
  * on mount (pages are likely cached by React Query from the prior visit).
@@ -5060,6 +5113,16 @@ interface UseVenueMarketsOptions {
5060
5113
  matchStatus?: MatchStatus;
5061
5114
  /** Filter by category IDs. */
5062
5115
  categoryIds?: string[];
5116
+ /** Canonical game or market key filter. */
5117
+ aggKey?: string[];
5118
+ /** Sports section filter: moneyline, spread, total, prop, ... */
5119
+ sportsMarketType?: string[];
5120
+ /** Sports period filter: full, 1h, 2h, q1, ... */
5121
+ period?: string[];
5122
+ /** Sports prop-category filter: corners, goals, assists, ... */
5123
+ marketCategory?: string[];
5124
+ /** Sports section/tab grouping filter: game_lines, spreads, totals, player_props, ... */
5125
+ marketGroup?: string[];
5063
5126
  /** Page size when using cursor pagination. Default 20. */
5064
5127
  limit?: number;
5065
5128
  /** Enable/disable the query. Default true. */
@@ -5068,6 +5131,9 @@ interface UseVenueMarketsOptions {
5068
5131
  sortBy?: "volume" | "volume24hr" | "createdAt" | "yesPrice" | "updatedAt";
5069
5132
  /** Sort direction: "asc" or "desc". */
5070
5133
  sortDir?: "asc" | "desc";
5134
+ /** Sort surface. "list" makes axis/dates events sort by volume (matches the
5135
+ * tile top-3); omit or "detail" on the detail page to keep structured order. */
5136
+ context?: "list" | "detail";
5071
5137
  }
5072
5138
  /**
5073
5139
  * Fetch venue markets with cursor-based pagination.
@@ -5580,4 +5646,4 @@ declare function useAppConfig(): UseAppConfigResult;
5580
5646
  */
5581
5647
  declare function useCachedAppConfig(): UseAppConfigResult;
5582
5648
 
5583
- export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseTradableVenuesResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useTradableVenues, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
5649
+ export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };