@codex-data/sdk 2.1.0 → 2.1.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.
@@ -232,6 +232,8 @@ export type BalancesInput = {
232
232
  removeScams?: InputMaybe<Scalars['Boolean']['input']>;
233
233
  /** The attribute to sort the list on. Defaults to BALANCE (raw token amount). */
234
234
  sortBy?: InputMaybe<BalancesSortAttribute>;
235
+ /** The direction to sort the list. Defaults to DESC (highest value first). */
236
+ sortDirection?: InputMaybe<RankingDirection>;
235
237
  /** The token IDs (`address:networkId`) or addresses to request the balance for. Requires a list of `networks` if only passing addresses. Include native network balances using `native` as the token address. Only applied when using `walletAddress` (not `walletId`). Max 200 tokens. */
236
238
  tokens?: InputMaybe<Array<Scalars['String']['input']>>;
237
239
  /** The wallet address to filter by. */
@@ -992,8 +994,6 @@ export type DetailedPredictionEventStats = {
992
994
  __typename?: 'DetailedPredictionEventStats';
993
995
  /** All-time aggregate stats. */
994
996
  allTimeStats: PredictionEventAllTimeStats;
995
- /** Competitive scores across time windows. */
996
- competitiveScores: DetailedPredictionStatsScores;
997
997
  /** The ID of the prediction event. */
998
998
  eventId: Scalars['String']['output'];
999
999
  /** The timestamp of the last transaction. */
@@ -1191,8 +1191,6 @@ export type DetailedSubscriptionPredictionEventStats = {
1191
1191
  __typename?: 'DetailedSubscriptionPredictionEventStats';
1192
1192
  /** All-time aggregate stats. */
1193
1193
  allTimeStats: PredictionEventAllTimeStats;
1194
- /** Competitive scores across time windows. */
1195
- competitiveScores: DetailedPredictionStatsScores;
1196
1194
  /** The ID of the prediction event. */
1197
1195
  eventId: Scalars['String']['output'];
1198
1196
  /** The timestamp of the last transaction. */
@@ -1926,8 +1924,6 @@ export type FilterTrader = {
1926
1924
  alias?: Maybe<Scalars['String']['output']>;
1927
1925
  /** The unique identifier. */
1928
1926
  id: Scalars['String']['output'];
1929
- /** The is verified. */
1930
- isVerified?: Maybe<Scalars['Boolean']['output']>;
1931
1927
  /** Labels applied to this entity. */
1932
1928
  labels?: Maybe<Array<Scalars['String']['output']>>;
1933
1929
  /** The linked addresses. */
@@ -6698,18 +6694,6 @@ export type PredictionEventFilterResult = {
6698
6694
  categories: Array<Scalars['String']['output']>;
6699
6695
  /** The timestamp when this entity closes. */
6700
6696
  closesAt: Scalars['Int']['output'];
6701
- /** The competitive score. */
6702
- competitiveScore1h?: Maybe<Scalars['Float']['output']>;
6703
- /** The competitive score. */
6704
- competitiveScore1w?: Maybe<Scalars['Float']['output']>;
6705
- /** The competitive score. */
6706
- competitiveScore4h?: Maybe<Scalars['Float']['output']>;
6707
- /** The competitive score. */
6708
- competitiveScore5m?: Maybe<Scalars['Float']['output']>;
6709
- /** The competitive score. */
6710
- competitiveScore12h?: Maybe<Scalars['Float']['output']>;
6711
- /** The competitive score. */
6712
- competitiveScore24h?: Maybe<Scalars['Float']['output']>;
6713
6697
  /** The creation timestamp. */
6714
6698
  createdAt: Scalars['Int']['output'];
6715
6699
  /** Simplified event data from search index. Use predictionEvent for full event details. */
@@ -6895,18 +6879,6 @@ export type PredictionEventFilters = {
6895
6879
  categories?: InputMaybe<Array<Scalars['String']['input']>>;
6896
6880
  /** The timestamp when this entity closes. */
6897
6881
  closesAt?: InputMaybe<NumberFilter>;
6898
- /** The competitive score. */
6899
- competitiveScore1h?: InputMaybe<NumberFilter>;
6900
- /** The competitive score. */
6901
- competitiveScore1w?: InputMaybe<NumberFilter>;
6902
- /** The competitive score. */
6903
- competitiveScore4h?: InputMaybe<NumberFilter>;
6904
- /** The competitive score. */
6905
- competitiveScore5m?: InputMaybe<NumberFilter>;
6906
- /** The competitive score. */
6907
- competitiveScore12h?: InputMaybe<NumberFilter>;
6908
- /** The competitive score. */
6909
- competitiveScore24h?: InputMaybe<NumberFilter>;
6910
6882
  /** The creation timestamp. */
6911
6883
  createdAt?: InputMaybe<NumberFilter>;
6912
6884
  /** The exclude categories. */
@@ -7088,12 +7060,6 @@ export type PredictionEventRanking = {
7088
7060
  export declare enum PredictionEventRankingAttribute {
7089
7061
  Age = "age",
7090
7062
  ClosesAt = "closesAt",
7091
- CompetitiveScore1h = "competitiveScore1h",
7092
- CompetitiveScore1w = "competitiveScore1w",
7093
- CompetitiveScore4h = "competitiveScore4h",
7094
- CompetitiveScore5m = "competitiveScore5m",
7095
- CompetitiveScore12h = "competitiveScore12h",
7096
- CompetitiveScore24h = "competitiveScore24h",
7097
7063
  CreatedAt = "createdAt",
7098
7064
  ExpectedLifespan = "expectedLifespan",
7099
7065
  LastTransactionAt = "lastTransactionAt",
@@ -7241,8 +7207,6 @@ export type PredictionEventTopMarketsBarsResponse = {
7241
7207
  /** Trending, relevance, and competitive scores for an event window. */
7242
7208
  export type PredictionEventWindowScores = {
7243
7209
  __typename?: 'PredictionEventWindowScores';
7244
- /** The competitive. */
7245
- competitive: Scalars['Float']['output'];
7246
7210
  /** The relevance. */
7247
7211
  relevance: Scalars['Float']['output'];
7248
7212
  /** The trending. */
@@ -8550,8 +8514,6 @@ export type PredictionTrader = {
8550
8514
  firstTradeTimestamp: Scalars['Int']['output'];
8551
8515
  /** The unique identifier. */
8552
8516
  id: Scalars['String']['output'];
8553
- /** The is verified. */
8554
- isVerified?: Maybe<Scalars['Boolean']['output']>;
8555
8517
  /** Labels applied to this entity. */
8556
8518
  labels?: Maybe<Array<Scalars['String']['output']>>;
8557
8519
  /** The timestamp of the last trade. */
@@ -8632,10 +8594,10 @@ export type PredictionTraderBarsInput = {
8632
8594
  };
8633
8595
  /** The time resolution for prediction trader bar data. */
8634
8596
  export declare enum PredictionTraderBarsResolution {
8635
- Day1 = "DAY1",
8636
- Hour1 = "HOUR1",
8637
- Hour4 = "HOUR4",
8638
- Week1 = "WEEK1"
8597
+ Day1 = "day1",
8598
+ Hour1 = "hour1",
8599
+ Hour4 = "hour4",
8600
+ Week1 = "week1"
8639
8601
  }
8640
8602
  /** Response returned by `predictionTraderBars`. */
8641
8603
  export type PredictionTraderBarsResponse = {
@@ -8881,8 +8843,6 @@ export type PredictionTraderFilters = {
8881
8843
  heldTokenAcquisitionCostCT?: InputMaybe<NumberFilter>;
8882
8844
  /** Filter by held token acquisition cost USD */
8883
8845
  heldTokenAcquisitionCostUsd?: InputMaybe<NumberFilter>;
8884
- /** Filter by verified status */
8885
- isVerified?: InputMaybe<Scalars['Boolean']['input']>;
8886
8846
  /** Filter by labels */
8887
8847
  labels?: InputMaybe<Array<Scalars['String']['input']>>;
8888
8848
  /** Filter by last trade timestamp */
@@ -10339,6 +10299,7 @@ export type QueryFilterTokensArgs = {
10339
10299
  rankings?: InputMaybe<Array<InputMaybe<TokenRanking>>>;
10340
10300
  statsType?: InputMaybe<TokenPairStatisticsType>;
10341
10301
  tokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
10302
+ useAggregatedStats?: InputMaybe<Scalars['Boolean']['input']>;
10342
10303
  };
10343
10304
  /** Prediction data queries for markets, events, outcomes, traders, and analytics. */
10344
10305
  export type QueryFilterWalletsArgs = {
@@ -15214,15 +15175,6 @@ export type DetailedPredictionEventStatsQuery = {
15214
15175
  volumeCT?: string | null;
15215
15176
  volumeUsd: string;
15216
15177
  };
15217
- competitiveScores: {
15218
- __typename?: 'DetailedPredictionStatsScores';
15219
- score1?: number | null;
15220
- score1w?: number | null;
15221
- score4?: number | null;
15222
- score5m?: number | null;
15223
- score12?: number | null;
15224
- score24?: number | null;
15225
- };
15226
15178
  lifecycle: {
15227
15179
  __typename?: 'PredictionLifecycleStats';
15228
15180
  ageSeconds: number;
@@ -15348,7 +15300,6 @@ export type DetailedPredictionEventStatsQuery = {
15348
15300
  };
15349
15301
  scores: {
15350
15302
  __typename?: 'PredictionEventWindowScores';
15351
- competitive: number;
15352
15303
  relevance: number;
15353
15304
  trending: number;
15354
15305
  };
@@ -15407,7 +15358,6 @@ export type DetailedPredictionEventStatsQuery = {
15407
15358
  };
15408
15359
  scores: {
15409
15360
  __typename?: 'PredictionEventWindowScores';
15410
- competitive: number;
15411
15361
  relevance: number;
15412
15362
  trending: number;
15413
15363
  };
@@ -15466,7 +15416,6 @@ export type DetailedPredictionEventStatsQuery = {
15466
15416
  };
15467
15417
  scores: {
15468
15418
  __typename?: 'PredictionEventWindowScores';
15469
- competitive: number;
15470
15419
  relevance: number;
15471
15420
  trending: number;
15472
15421
  };
@@ -15525,7 +15474,6 @@ export type DetailedPredictionEventStatsQuery = {
15525
15474
  };
15526
15475
  scores: {
15527
15476
  __typename?: 'PredictionEventWindowScores';
15528
- competitive: number;
15529
15477
  relevance: number;
15530
15478
  trending: number;
15531
15479
  };
@@ -15584,7 +15532,6 @@ export type DetailedPredictionEventStatsQuery = {
15584
15532
  };
15585
15533
  scores: {
15586
15534
  __typename?: 'PredictionEventWindowScores';
15587
- competitive: number;
15588
15535
  relevance: number;
15589
15536
  trending: number;
15590
15537
  };
@@ -15643,7 +15590,6 @@ export type DetailedPredictionEventStatsQuery = {
15643
15590
  };
15644
15591
  scores: {
15645
15592
  __typename?: 'PredictionEventWindowScores';
15646
- competitive: number;
15647
15593
  relevance: number;
15648
15594
  trending: number;
15649
15595
  };
@@ -17393,7 +17339,6 @@ export type DetailedPredictionTraderStatsQuery = {
17393
17339
  createdAt: number;
17394
17340
  firstTradeTimestamp: number;
17395
17341
  id: string;
17396
- isVerified?: boolean | null;
17397
17342
  labels?: Array<string> | null;
17398
17343
  lastTradeTimestamp: number;
17399
17344
  linkedAddresses?: Array<string> | null;
@@ -18191,12 +18136,6 @@ export type FilterPredictionEventsQuery = {
18191
18136
  age?: number | null;
18192
18137
  categories: Array<string>;
18193
18138
  closesAt: number;
18194
- competitiveScore1h?: number | null;
18195
- competitiveScore1w?: number | null;
18196
- competitiveScore4h?: number | null;
18197
- competitiveScore5m?: number | null;
18198
- competitiveScore12h?: number | null;
18199
- competitiveScore24h?: number | null;
18200
18139
  createdAt: number;
18201
18140
  expectedLifespan?: number | null;
18202
18141
  id: string;
@@ -18923,7 +18862,6 @@ export type FilterPredictionTraderMarketsQuery = {
18923
18862
  createdAt: number;
18924
18863
  firstTradeTimestamp: number;
18925
18864
  id: string;
18926
- isVerified?: boolean | null;
18927
18865
  labels?: Array<string> | null;
18928
18866
  lastTradeTimestamp: number;
18929
18867
  linkedAddresses?: Array<string> | null;
@@ -18941,7 +18879,6 @@ export type FilterPredictionTraderMarketsQuery = {
18941
18879
  __typename?: 'FilterTrader';
18942
18880
  alias?: string | null;
18943
18881
  id: string;
18944
- isVerified?: boolean | null;
18945
18882
  labels?: Array<string> | null;
18946
18883
  linkedAddresses?: Array<string> | null;
18947
18884
  primaryAddress?: string | null;
@@ -19074,7 +19011,6 @@ export type FilterPredictionTradersQuery = {
19074
19011
  createdAt: number;
19075
19012
  firstTradeTimestamp: number;
19076
19013
  id: string;
19077
- isVerified?: boolean | null;
19078
19014
  labels?: Array<string> | null;
19079
19015
  lastTradeTimestamp: number;
19080
19016
  linkedAddresses?: Array<string> | null;
@@ -19092,7 +19028,6 @@ export type FilterPredictionTradersQuery = {
19092
19028
  __typename?: 'FilterTrader';
19093
19029
  alias?: string | null;
19094
19030
  id: string;
19095
- isVerified?: boolean | null;
19096
19031
  labels?: Array<string> | null;
19097
19032
  linkedAddresses?: Array<string> | null;
19098
19033
  primaryAddress?: string | null;
@@ -19268,6 +19203,7 @@ export type FilterTokensQueryVariables = Exact<{
19268
19203
  rankings?: InputMaybe<Array<InputMaybe<TokenRanking>> | InputMaybe<TokenRanking>>;
19269
19204
  statsType?: InputMaybe<TokenPairStatisticsType>;
19270
19205
  tokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
19206
+ useAggregatedStats?: InputMaybe<Scalars['Boolean']['input']>;
19271
19207
  }>;
19272
19208
  export type FilterTokensQuery = {
19273
19209
  __typename?: 'Query';
@@ -26022,7 +25958,6 @@ export type PredictionTokenHoldersQuery = {
26022
25958
  createdAt: number;
26023
25959
  firstTradeTimestamp: number;
26024
25960
  id: string;
26025
- isVerified?: boolean | null;
26026
25961
  labels?: Array<string> | null;
26027
25962
  lastTradeTimestamp: number;
26028
25963
  linkedAddresses?: Array<string> | null;
@@ -26080,7 +26015,6 @@ export type PredictionTraderBarsQuery = {
26080
26015
  createdAt: number;
26081
26016
  firstTradeTimestamp: number;
26082
26017
  id: string;
26083
- isVerified?: boolean | null;
26084
26018
  labels?: Array<string> | null;
26085
26019
  lastTradeTimestamp: number;
26086
26020
  linkedAddresses?: Array<string> | null;
@@ -26226,7 +26160,6 @@ export type PredictionTradersQuery = {
26226
26160
  createdAt: number;
26227
26161
  firstTradeTimestamp: number;
26228
26162
  id: string;
26229
- isVerified?: boolean | null;
26230
26163
  labels?: Array<string> | null;
26231
26164
  lastTradeTimestamp: number;
26232
26165
  linkedAddresses?: Array<string> | null;
@@ -27357,15 +27290,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27357
27290
  volumeCT?: string | null;
27358
27291
  volumeUsd: string;
27359
27292
  };
27360
- competitiveScores: {
27361
- __typename?: 'DetailedPredictionStatsScores';
27362
- score1?: number | null;
27363
- score1w?: number | null;
27364
- score4?: number | null;
27365
- score5m?: number | null;
27366
- score12?: number | null;
27367
- score24?: number | null;
27368
- };
27369
27293
  lifecycle: {
27370
27294
  __typename?: 'PredictionLifecycleStats';
27371
27295
  ageSeconds: number;
@@ -27397,7 +27321,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27397
27321
  };
27398
27322
  scores: {
27399
27323
  __typename?: 'PredictionEventWindowScores';
27400
- competitive: number;
27401
27324
  relevance: number;
27402
27325
  trending: number;
27403
27326
  };
@@ -27456,7 +27379,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27456
27379
  };
27457
27380
  scores: {
27458
27381
  __typename?: 'PredictionEventWindowScores';
27459
- competitive: number;
27460
27382
  relevance: number;
27461
27383
  trending: number;
27462
27384
  };
@@ -27515,7 +27437,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27515
27437
  };
27516
27438
  scores: {
27517
27439
  __typename?: 'PredictionEventWindowScores';
27518
- competitive: number;
27519
27440
  relevance: number;
27520
27441
  trending: number;
27521
27442
  };
@@ -27574,7 +27495,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27574
27495
  };
27575
27496
  scores: {
27576
27497
  __typename?: 'PredictionEventWindowScores';
27577
- competitive: number;
27578
27498
  relevance: number;
27579
27499
  trending: number;
27580
27500
  };
@@ -27633,7 +27553,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27633
27553
  };
27634
27554
  scores: {
27635
27555
  __typename?: 'PredictionEventWindowScores';
27636
- competitive: number;
27637
27556
  relevance: number;
27638
27557
  trending: number;
27639
27558
  };
@@ -27692,7 +27611,6 @@ export type OnDetailedPredictionEventStatsUpdatedSubscription = {
27692
27611
  };
27693
27612
  scores: {
27694
27613
  __typename?: 'PredictionEventWindowScores';
27695
- competitive: number;
27696
27614
  relevance: number;
27697
27615
  trending: number;
27698
27616
  };