@codex-data/sdk 1.0.22 → 1.0.23

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.
Files changed (51) hide show
  1. package/dist/resources/graphql.d.ts +63 -17
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +4 -0
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/sdk/Mutation.d.ts +2 -1
  6. package/dist/sdk/Mutation.d.ts.map +1 -1
  7. package/dist/sdk/Mutation.js +1 -0
  8. package/dist/sdk/Mutation.js.map +1 -1
  9. package/dist/sdk/Query.d.ts +2 -1
  10. package/dist/sdk/Query.d.ts.map +1 -1
  11. package/dist/sdk/Query.js +1 -0
  12. package/dist/sdk/Query.js.map +1 -1
  13. package/dist/sdk/Subscribe.js +4 -4
  14. package/dist/sdk/generated/gql.d.ts +52 -38
  15. package/dist/sdk/generated/gql.d.ts.map +1 -1
  16. package/dist/sdk/generated/gql.js +21 -19
  17. package/dist/sdk/generated/gql.js.map +1 -1
  18. package/dist/sdk/generated/graphql.d.ts +415 -17
  19. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  20. package/dist/sdk/generated/graphql.js +28 -22
  21. package/dist/sdk/generated/graphql.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/resources/generated_mutations/BackfillWalletAggregates.graphql +6 -0
  24. package/src/resources/generated_queries/Balances.graphql +2 -0
  25. package/src/resources/generated_queries/FilterPairs.graphql +18 -0
  26. package/src/resources/generated_queries/FilterTokenWallets.graphql +2 -0
  27. package/src/resources/generated_queries/FilterTokens.graphql +198 -0
  28. package/src/resources/generated_queries/GetBars.graphql +14 -0
  29. package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  30. package/src/resources/generated_queries/GetDetailedPairStats.graphql +14 -0
  31. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +14 -0
  32. package/src/resources/generated_queries/Holders.graphql +2 -0
  33. package/src/resources/generated_queries/ListPairsForToken.graphql +14 -0
  34. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +18 -0
  35. package/src/resources/generated_queries/PairMetadata.graphql +4 -0
  36. package/src/resources/generated_queries/PrimeHolders.graphql +2 -0
  37. package/src/resources/generated_queries/Token.graphql +2 -0
  38. package/src/resources/generated_queries/Tokens.graphql +2 -0
  39. package/src/resources/generated_queries/WalletAggregateBackfillState.graphql +6 -0
  40. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +2 -0
  41. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +2 -0
  42. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +4 -0
  43. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
  44. package/src/resources/graphql.schema.json +231 -27
  45. package/src/resources/graphql.ts +63 -17
  46. package/src/resources/schema.graphql +45 -17
  47. package/src/sdk/Mutation.ts +5 -0
  48. package/src/sdk/Query.ts +5 -0
  49. package/src/sdk/Subscribe.ts +4 -4
  50. package/src/sdk/generated/gql.ts +48 -38
  51. package/src/sdk/generated/graphql.ts +117 -55
@@ -471,7 +471,10 @@ export type CreateMarketCapWebhookArgs = {
471
471
  conditions: MarketCapEventWebhookConditionInput;
472
472
  /** 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. */
473
473
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
474
- /** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
474
+ /**
475
+ * A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook.
476
+ * @deprecated GroupId is deprecated and will be removed in the future. Messages will be grouped by webhookId
477
+ */
475
478
  groupId?: InputMaybe<Scalars['String']['input']>;
476
479
  /** The name of the webhook (max 128 characters). */
477
480
  name: Scalars['String']['input'];
@@ -501,7 +504,10 @@ export type CreateNftEventWebhookArgs = {
501
504
  conditions: NftEventWebhookConditionInput;
502
505
  /** 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. */
503
506
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
504
- /** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
507
+ /**
508
+ * A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook.
509
+ * @deprecated GroupId is deprecated and will be removed in the future. Messages will be grouped by webhookId
510
+ */
505
511
  groupId?: InputMaybe<Scalars['String']['input']>;
506
512
  /** The name of the webhook (max 128 characters). */
507
513
  name: Scalars['String']['input'];
@@ -531,7 +537,10 @@ export type CreatePriceWebhookArgs = {
531
537
  conditions: PriceEventWebhookConditionInput;
532
538
  /** 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. */
533
539
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
534
- /** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
540
+ /**
541
+ * A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook.
542
+ * @deprecated GroupId is deprecated and will be removed in the future. Messages will be grouped by webhookId
543
+ */
535
544
  groupId?: InputMaybe<Scalars['String']['input']>;
536
545
  /** The name of the webhook (max 128 characters). */
537
546
  name: Scalars['String']['input'];
@@ -561,7 +570,10 @@ export type CreateRawTransactionWebhookArgs = {
561
570
  conditions: RawTransactionWebhookConditionInput;
562
571
  /** 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. */
563
572
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
564
- /** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
573
+ /**
574
+ * A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook.
575
+ * @deprecated GroupId is deprecated and will be removed in the future. Messages will be grouped by webhookId
576
+ */
565
577
  groupId?: InputMaybe<Scalars['String']['input']>;
566
578
  /** The name of the webhook (max 128 characters). */
567
579
  name: Scalars['String']['input'];
@@ -591,7 +603,10 @@ export type CreateTokenPairEventWebhookArgs = {
591
603
  conditions: TokenPairEventWebhookConditionInput;
592
604
  /** 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. */
593
605
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
594
- /** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
606
+ /**
607
+ * A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook.
608
+ * @deprecated GroupId is deprecated and will be removed in the future. Messages will be grouped by webhookId
609
+ */
595
610
  groupId?: InputMaybe<Scalars['String']['input']>;
596
611
  /** The name of the webhook (max 128 characters). */
597
612
  name: Scalars['String']['input'];
@@ -1773,7 +1788,7 @@ export type LaunchpadData = {
1773
1788
  graduationPercent?: Maybe<Scalars['Float']['output']>;
1774
1789
  /** The icon URL of the launchpad. */
1775
1790
  launchpadIconUrl?: Maybe<Scalars['String']['output']>;
1776
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
1791
+ /** The name of the launchpad. */
1777
1792
  launchpadName?: Maybe<Scalars['String']['output']>;
1778
1793
  /** The launchpad protocol. */
1779
1794
  launchpadProtocol?: Maybe<Scalars['String']['output']>;
@@ -1804,7 +1819,7 @@ export type LaunchpadTokenEventOutput = {
1804
1819
  eventType: LaunchpadTokenEventType;
1805
1820
  /** The number of holders. */
1806
1821
  holders?: Maybe<Scalars['Int']['output']>;
1807
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
1822
+ /** The name of the launchpad. */
1808
1823
  launchpadName: Scalars['String']['output'];
1809
1824
  /** The liquidity of the token's top pair. */
1810
1825
  liquidity?: Maybe<Scalars['String']['output']>;
@@ -1850,6 +1865,8 @@ export declare enum LaunchpadTokenProtocol {
1850
1865
  Baseapp = "Baseapp",
1851
1866
  /** Protocol name for boop.fun. */
1852
1867
  BoopFun = "BoopFun",
1868
+ /** Protocol name for Clanker. */
1869
+ Clanker = "Clanker",
1853
1870
  /** Protocol name for EgoTech. */
1854
1871
  EgoTech = "EgoTech",
1855
1872
  /** Protocol name for Four.meme. */
@@ -1866,6 +1883,8 @@ export declare enum LaunchpadTokenProtocol {
1866
1883
  RaydiumLaunchpad = "RaydiumLaunchpad",
1867
1884
  /** Protocol name for Vertigo. */
1868
1885
  Vertigo = "Vertigo",
1886
+ /** Protocol name for Virtuals. */
1887
+ Virtuals = "Virtuals",
1869
1888
  /** Protocol name for ZoraCreator. */
1870
1889
  ZoraCreatorV4 = "ZoraCreatorV4",
1871
1890
  /** Protocol name for Zora. */
@@ -2061,12 +2080,16 @@ export type MarketCapEventWebhookCondition = {
2061
2080
  circulatingMarketCapUsd?: Maybe<ComparisonOperator>;
2062
2081
  /** The market cap condition that must be met in order for the webhook to send. */
2063
2082
  fdvMarketCapUsd?: Maybe<ComparisonOperator>;
2083
+ /** The liquidity condition (for the source pair) that must be met in order for the webhook to send. */
2084
+ liquidityUsd?: Maybe<ComparisonOperator>;
2064
2085
  /** The network ID the webhook is listening on. */
2065
2086
  networkId: IntEqualsCondition;
2066
2087
  /** The pair contract address the webhook is listening for. */
2067
2088
  pairAddress?: Maybe<StringEqualsCondition>;
2068
2089
  /** The token contract address the webhook is listening for. */
2069
2090
  tokenAddress: StringEqualsCondition;
2091
+ /** The volume condition (for the source pair) that must be met in order for the webhook to send. */
2092
+ volumeUsd?: Maybe<ComparisonOperator>;
2070
2093
  };
2071
2094
  /** Input conditions for a market cap event webhook. */
2072
2095
  export type MarketCapEventWebhookConditionInput = {
@@ -2074,12 +2097,16 @@ export type MarketCapEventWebhookConditionInput = {
2074
2097
  circulatingMarketCapUsd?: InputMaybe<ComparisonOperatorInput>;
2075
2098
  /** The price conditions to listen for. */
2076
2099
  fdvMarketCapUsd?: InputMaybe<ComparisonOperatorInput>;
2100
+ /** The liquidity conditions to listen for. */
2101
+ liquidityUsd?: InputMaybe<ComparisonOperatorInput>;
2077
2102
  /** The network ID to listen on. */
2078
2103
  networkId: IntEqualsConditionInput;
2079
2104
  /** The contract address of the pair to listen for. */
2080
2105
  pairAddress?: InputMaybe<StringEqualsConditionInput>;
2081
2106
  /** The contract address of the token to listen for. */
2082
2107
  tokenAddress: StringEqualsConditionInput;
2108
+ /** The volume conditions to listen for. */
2109
+ volumeUsd?: InputMaybe<ComparisonOperatorInput>;
2083
2110
  };
2084
2111
  /** The status for a network supported on Defined. */
2085
2112
  export type MetadataResponse = {
@@ -4819,12 +4846,16 @@ export type OnEventsCreatedByMakerInput = {
4819
4846
  export type OnLaunchpadTokenEventBatchInput = {
4820
4847
  /** The type of event. */
4821
4848
  eventType?: InputMaybe<LaunchpadTokenEventType>;
4822
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4849
+ /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4823
4850
  launchpadName?: InputMaybe<Scalars['String']['input']>;
4851
+ /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4852
+ launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
4824
4853
  /** The network ID that the token is deployed on. */
4825
4854
  networkId?: InputMaybe<Scalars['Int']['input']>;
4826
- /** The protocol of the token. */
4855
+ /** The launchpad protocol. */
4827
4856
  protocol?: InputMaybe<LaunchpadTokenProtocol>;
4857
+ /** A list of launchpad protocols. */
4858
+ protocols?: InputMaybe<Array<LaunchpadTokenProtocol>>;
4828
4859
  };
4829
4860
  /** Input for `onLaunchpadTokenEvent`. */
4830
4861
  export type OnLaunchpadTokenEventInput = {
@@ -4832,12 +4863,16 @@ export type OnLaunchpadTokenEventInput = {
4832
4863
  address?: InputMaybe<Scalars['String']['input']>;
4833
4864
  /** The type of event. */
4834
4865
  eventType?: InputMaybe<LaunchpadTokenEventType>;
4835
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4866
+ /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4836
4867
  launchpadName?: InputMaybe<Scalars['String']['input']>;
4868
+ /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
4869
+ launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
4837
4870
  /** The network ID that the token is deployed on. */
4838
4871
  networkId?: InputMaybe<Scalars['Int']['input']>;
4839
- /** The protocol of the token. */
4872
+ /** The launchpad protocol. */
4840
4873
  protocol?: InputMaybe<LaunchpadTokenProtocol>;
4874
+ /** A list of launchpad protocols. */
4875
+ protocols?: InputMaybe<Array<LaunchpadTokenProtocol>>;
4841
4876
  };
4842
4877
  export type OnPricesUpdatedInput = {
4843
4878
  address: Scalars['String']['input'];
@@ -5749,6 +5784,8 @@ export type Price = {
5749
5784
  /** Webhook conditions for a price event. */
5750
5785
  export type PriceEventWebhookCondition = {
5751
5786
  __typename?: 'PriceEventWebhookCondition';
5787
+ /** The liquidity condition (for the source pair) that must be met in order for the webhook to send. */
5788
+ liquidityUsd?: Maybe<ComparisonOperator>;
5752
5789
  /** The network ID the webhook is listening on. */
5753
5790
  networkId: IntEqualsCondition;
5754
5791
  /** The pair contract address the webhook is listening for. */
@@ -5757,9 +5794,13 @@ export type PriceEventWebhookCondition = {
5757
5794
  priceUsd: ComparisonOperator;
5758
5795
  /** The token contract address the webhook is listening for. */
5759
5796
  tokenAddress: StringEqualsCondition;
5797
+ /** The volume condition (for the source pair) that must be met in order for the webhook to send. */
5798
+ volumeUsd?: Maybe<ComparisonOperator>;
5760
5799
  };
5761
5800
  /** Input conditions for a price event webhook. */
5762
5801
  export type PriceEventWebhookConditionInput = {
5802
+ /** The liquidity conditions to listen for. */
5803
+ liquidityUsd?: InputMaybe<ComparisonOperatorInput>;
5763
5804
  /** The network ID to listen on. */
5764
5805
  networkId: IntEqualsConditionInput;
5765
5806
  /** The contract address of the pair to listen for. */
@@ -5768,6 +5809,8 @@ export type PriceEventWebhookConditionInput = {
5768
5809
  priceUsd: ComparisonOperatorInput;
5769
5810
  /** The contract address of the token to listen for. */
5770
5811
  tokenAddress: StringEqualsConditionInput;
5812
+ /** The volume conditions to listen for. */
5813
+ volumeUsd?: InputMaybe<ComparisonOperatorInput>;
5771
5814
  };
5772
5815
  /** Response returned by `primeHolders`. */
5773
5816
  export type PrimeHolders = {
@@ -7549,7 +7592,7 @@ export type TokenFilters = {
7549
7592
  circulatingMarketCap?: InputMaybe<NumberFilter>;
7550
7593
  /** The unix timestamp for the creation of the token's first pair. */
7551
7594
  createdAt?: InputMaybe<NumberFilter>;
7552
- /** The address of the creator of the token */
7595
+ /** The address of the creator of the token. */
7553
7596
  creatorAddress?: InputMaybe<Scalars['String']['input']>;
7554
7597
  /** The list of exchange contract addresses to filter by. */
7555
7598
  exchangeAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
@@ -7589,10 +7632,10 @@ export type TokenFilters = {
7589
7632
  launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
7590
7633
  /** The timestamp when the launchpad was migrated */
7591
7634
  launchpadMigratedAt?: InputMaybe<NumberFilter>;
7592
- /** The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
7593
- launchpadName?: InputMaybe<Scalars['String']['input']>;
7594
- /** The launchpad protocol */
7595
- launchpadProtocol?: InputMaybe<Scalars['String']['input']>;
7635
+ /** A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults. */
7636
+ launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
7637
+ /** A list of launchpad protocols. */
7638
+ launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
7596
7639
  /** The amount of liquidity in the token's top pair. */
7597
7640
  liquidity?: InputMaybe<NumberFilter>;
7598
7641
  /** The lowest price in USD in the past hour. */
@@ -9220,7 +9263,10 @@ export type Webhook = {
9220
9263
  conditions: WebhookCondition;
9221
9264
  /** The unix timestamp for the time the webhook was created. */
9222
9265
  created: Scalars['Int']['output'];
9223
- /** The webhook group ID used to group webhooks together for ordered message sending. */
9266
+ /**
9267
+ * The webhook group ID used to group webhooks together for ordered message sending.
9268
+ * @deprecated GroupId is deprecated and will be removed in the future. Messages will be grouped by webhookId
9269
+ */
9224
9270
  groupId?: Maybe<Scalars['String']['output']>;
9225
9271
  /** The ID of the webhook. */
9226
9272
  id: Scalars['String']['output'];