@codex-data/sdk 2.3.40 → 2.3.42

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.
@@ -846,6 +846,32 @@ export type CreateRawTransactionWebhooksInput = {
846
846
  /** A list of Raw Transaction webhooks to create. */
847
847
  webhooks: Array<CreateRawTransactionWebhookArgs>;
848
848
  };
849
+ /** Input for creating a token launch event webhook. */
850
+ export type CreateTokenLaunchEventWebhookArgs = {
851
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
852
+ alertRecurrence: AlertRecurrence;
853
+ /** An optional bucket key for grouping and querying webhooks. */
854
+ bucketKey?: InputMaybe<BucketKeyInput>;
855
+ /** The url to which the webhook message should be sent. */
856
+ callbackUrl: Scalars['String']['input'];
857
+ /** The conditions which must be met in order for the webhook to send a message. */
858
+ conditions: TokenLaunchEventWebhookConditionInput;
859
+ /** If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook. */
860
+ deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
861
+ /** The name of the webhook (max 128 characters). */
862
+ name: Scalars['String']['input'];
863
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
864
+ publishingType?: InputMaybe<PublishingType>;
865
+ /** The settings for retrying failed webhook messages. */
866
+ retrySettings?: InputMaybe<RetrySettingsInput>;
867
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
868
+ securityToken: Scalars['String']['input'];
869
+ };
870
+ /** Input for creating token launch event webhooks. */
871
+ export type CreateTokenLaunchEventWebhooksInput = {
872
+ /** A list of token launch event webhooks to create. */
873
+ webhooks: Array<CreateTokenLaunchEventWebhookArgs>;
874
+ };
849
875
  /** Input for creating a token pair event webhook. */
850
876
  export type CreateTokenPairEventWebhookArgs = {
851
877
  /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
@@ -974,6 +1000,8 @@ export type CreateWebhooksInput = {
974
1000
  priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
975
1001
  /** Input for creating raw transaction webhooks. */
976
1002
  rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
1003
+ /** Input for creating token launch event webhooks. */
1004
+ tokenLaunchEventWebhooksInput?: InputMaybe<CreateTokenLaunchEventWebhooksInput>;
977
1005
  /** Input for creating token pair event webhooks. */
978
1006
  tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
979
1007
  /** Input for creating token price event webhooks. */
@@ -994,6 +1022,8 @@ export type CreateWebhooksOutput = {
994
1022
  priceWebhooks: Array<Maybe<Webhook>>;
995
1023
  /** The list of raw transaction webhooks that were created. */
996
1024
  rawTransactionWebhooks: Array<Maybe<Webhook>>;
1025
+ /** The list of token launch event webhooks that were created. */
1026
+ tokenLaunchEventWebhooks: Array<Maybe<Webhook>>;
997
1027
  /** The list of token pair event webhooks that were created. */
998
1028
  tokenPairEventWebhooks: Array<Maybe<Webhook>>;
999
1029
  /** The list of token price event webhooks that were created. */
@@ -1814,6 +1844,8 @@ export type Event = {
1814
1844
  token1SwapValueUsd?: Maybe<Scalars['String']['output']>;
1815
1845
  /** The price of `token1` paid/received in the network's base token, including fees. */
1816
1846
  token1ValueBase?: Maybe<Scalars['String']['output']>;
1847
+ /** The app the trade was placed through, when it could be determined. Null for the majority of events — most on-chain trades carry no identifying signal. Currently populated for Solana swaps only. */
1848
+ tradeSource?: Maybe<TradeSource>;
1817
1849
  /** The unique hash for the transaction. */
1818
1850
  transactionHash: Scalars['String']['output'];
1819
1851
  /** The index of the transaction within the block. */
@@ -6662,6 +6694,17 @@ export type OneOfNumberConditionInput = {
6662
6694
  /** The list of integers. */
6663
6695
  oneOf: Array<Scalars['Int']['input']>;
6664
6696
  };
6697
+ /** A string list condition. */
6698
+ export type OneOfStringCondition = {
6699
+ __typename?: 'OneOfStringCondition';
6700
+ /** The list of strings. */
6701
+ oneOf: Array<Scalars['String']['output']>;
6702
+ };
6703
+ /** Input for a string list condition. */
6704
+ export type OneOfStringConditionInput = {
6705
+ /** The list of strings to match. */
6706
+ oneOf: Array<Scalars['String']['input']>;
6707
+ };
6665
6708
  /** Token transfer direction list condition. */
6666
6709
  export type OneOfTokenTransferDirectionCondition = {
6667
6710
  __typename?: 'OneOfTokenTransferDirectionCondition';
@@ -14069,6 +14112,29 @@ export type TokenInput = {
14069
14112
  /** The network ID the token is deployed on. */
14070
14113
  networkId: Scalars['Int']['input'];
14071
14114
  };
14115
+ /** Webhook conditions for a token launch event. */
14116
+ export type TokenLaunchEventWebhookCondition = {
14117
+ __typename?: 'TokenLaunchEventWebhookCondition';
14118
+ /** The creator wallet address the webhook is listening for. */
14119
+ creatorAddress?: Maybe<StringEqualsCondition>;
14120
+ /** The launchpad names the webhook is listening for. */
14121
+ launchpadName?: Maybe<OneOfStringCondition>;
14122
+ /** The list of network IDs the webhook is listening on. */
14123
+ networkId?: Maybe<OneOfNumberCondition>;
14124
+ /** The token contract address the webhook is listening for. */
14125
+ tokenAddress?: Maybe<StringEqualsCondition>;
14126
+ };
14127
+ /** Input conditions for a token launch event webhook. Exactly one of `creatorAddress` or `launchpadName` is required — the webhook is indexed by whichever you provide. */
14128
+ export type TokenLaunchEventWebhookConditionInput = {
14129
+ /** The wallet address of the token creator to listen for. Provide this or `launchpadName`. */
14130
+ creatorAddress?: InputMaybe<StringEqualsConditionInput>;
14131
+ /** The launchpad to listen for, e.g. `Pump.fun`. Must contain exactly one supported launchpad name; matching is case-insensitive and unknown names are rejected. Provide this or `creatorAddress`. */
14132
+ launchpadName?: InputMaybe<OneOfStringConditionInput>;
14133
+ /** The list of network IDs to listen on. Narrows the match; cannot be used on its own. */
14134
+ networkId?: InputMaybe<OneOfNumberConditionInput>;
14135
+ /** The contract address of the launched token. Narrows the match; cannot be used on its own. */
14136
+ tokenAddress?: InputMaybe<StringEqualsConditionInput>;
14137
+ };
14072
14138
  /** Events that occur during a token's lifecycle. Only Mint and Burn events right now. */
14073
14139
  export type TokenLifecycleEvent = {
14074
14140
  __typename?: 'TokenLifecycleEvent';
@@ -14748,6 +14814,14 @@ export type TokenWithMetadata = {
14748
14814
  /** The volume over the time frame requested in USD. */
14749
14815
  volume: Scalars['String']['output'];
14750
14816
  };
14817
+ /** The app a trade was placed through — a trading terminal, wallet, or interface — as distinct from the exchange it settled on. */
14818
+ export type TradeSource = {
14819
+ __typename?: 'TradeSource';
14820
+ /** Human-readable name for the app, e.g. `Axiom`. Null if the identifier has no registry entry yet. */
14821
+ displayName?: Maybe<Scalars['String']['output']>;
14822
+ /** Stable identifier for the app, e.g. `axiom`. Safe to key on. */
14823
+ id: Scalars['String']['output'];
14824
+ };
14751
14825
  /** A time period used when calculating wallet trading data. */
14752
14826
  export declare enum TradingPeriod {
14753
14827
  Day = "DAY",
@@ -16016,7 +16090,7 @@ export type Webhook = {
16016
16090
  webhookType: WebhookType;
16017
16091
  };
16018
16092
  /** Webhook conditions that must be met for each webhook type. */
16019
- export type WebhookCondition = MarketCapEventWebhookCondition | PredictionMarketMetricsEventWebhookCondition | PredictionTradeWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition | TokenPriceEventWebhookCondition | TokenTransferEventWebhookCondition;
16093
+ export type WebhookCondition = MarketCapEventWebhookCondition | PredictionMarketMetricsEventWebhookCondition | PredictionTradeWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenLaunchEventWebhookCondition | TokenPairEventWebhookCondition | TokenPriceEventWebhookCondition | TokenTransferEventWebhookCondition;
16020
16094
  /** The type of webhook. */
16021
16095
  export declare enum WebhookType {
16022
16096
  MarketCapEvent = "MARKET_CAP_EVENT",
@@ -16024,6 +16098,7 @@ export declare enum WebhookType {
16024
16098
  PredictionTrade = "PREDICTION_TRADE",
16025
16099
  PriceEvent = "PRICE_EVENT",
16026
16100
  RawTransaction = "RAW_TRANSACTION",
16101
+ TokenLaunchEvent = "TOKEN_LAUNCH_EVENT",
16027
16102
  TokenPairEvent = "TOKEN_PAIR_EVENT",
16028
16103
  TokenPriceEvent = "TOKEN_PRICE_EVENT",
16029
16104
  TokenTransferEvent = "TOKEN_TRANSFER_EVENT"
@@ -16693,6 +16768,8 @@ export type CreateWebhooksMutation = {
16693
16768
  __typename?: 'StringEqualsCondition';
16694
16769
  eq: string;
16695
16770
  } | null;
16771
+ } | {
16772
+ __typename?: 'TokenLaunchEventWebhookCondition';
16696
16773
  } | {
16697
16774
  __typename?: 'TokenPairEventWebhookCondition';
16698
16775
  eventType?: {
@@ -16801,6 +16878,8 @@ export type CreateWebhooksMutation = {
16801
16878
  __typename?: 'StringEqualsCondition';
16802
16879
  eq: string;
16803
16880
  } | null;
16881
+ } | {
16882
+ __typename?: 'TokenLaunchEventWebhookCondition';
16804
16883
  } | {
16805
16884
  __typename?: 'TokenPairEventWebhookCondition';
16806
16885
  eventType?: {
@@ -16909,6 +16988,8 @@ export type CreateWebhooksMutation = {
16909
16988
  __typename?: 'StringEqualsCondition';
16910
16989
  eq: string;
16911
16990
  } | null;
16991
+ } | {
16992
+ __typename?: 'TokenLaunchEventWebhookCondition';
16912
16993
  } | {
16913
16994
  __typename?: 'TokenPairEventWebhookCondition';
16914
16995
  eventType?: {
@@ -42699,6 +42780,11 @@ export type GetTokenEventsQuery = {
42699
42780
  label: string;
42700
42781
  } | null;
42701
42782
  } | null;
42783
+ tradeSource?: {
42784
+ __typename?: 'TradeSource';
42785
+ displayName?: string | null;
42786
+ id: string;
42787
+ } | null;
42702
42788
  } | null> | null;
42703
42789
  } | null;
42704
42790
  };
@@ -42829,6 +42915,11 @@ export type GetTokenEventsForMakerQuery = {
42829
42915
  label: string;
42830
42916
  } | null;
42831
42917
  } | null;
42918
+ tradeSource?: {
42919
+ __typename?: 'TradeSource';
42920
+ displayName?: string | null;
42921
+ id: string;
42922
+ } | null;
42832
42923
  } | null> | null;
42833
42924
  } | null;
42834
42925
  };
@@ -42921,6 +43012,8 @@ export type GetWebhooksQuery = {
42921
43012
  __typename?: 'StringEqualsCondition';
42922
43013
  eq: string;
42923
43014
  } | null;
43015
+ } | {
43016
+ __typename?: 'TokenLaunchEventWebhookCondition';
42924
43017
  } | {
42925
43018
  __typename?: 'TokenPairEventWebhookCondition';
42926
43019
  eventType?: {
@@ -60175,6 +60268,11 @@ export type OnEventsCreatedSubscription = {
60175
60268
  label: string;
60176
60269
  } | null;
60177
60270
  } | null;
60271
+ tradeSource?: {
60272
+ __typename?: 'TradeSource';
60273
+ displayName?: string | null;
60274
+ id: string;
60275
+ } | null;
60178
60276
  } | null>;
60179
60277
  } | null;
60180
60278
  };
@@ -60303,6 +60401,11 @@ export type OnEventsCreatedByMakerSubscription = {
60303
60401
  label: string;
60304
60402
  } | null;
60305
60403
  } | null;
60404
+ tradeSource?: {
60405
+ __typename?: 'TradeSource';
60406
+ displayName?: string | null;
60407
+ id: string;
60408
+ } | null;
60306
60409
  }>;
60307
60410
  } | null;
60308
60411
  };
@@ -71623,6 +71726,11 @@ export type OnTokenEventsCreatedSubscription = {
71623
71726
  label: string;
71624
71727
  } | null;
71625
71728
  } | null;
71729
+ tradeSource?: {
71730
+ __typename?: 'TradeSource';
71731
+ displayName?: string | null;
71732
+ id: string;
71733
+ } | null;
71626
71734
  }>;
71627
71735
  };
71628
71736
  };