@codex-data/sdk 1.0.0 → 1.0.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.
Files changed (55) hide show
  1. package/README.md +6 -0
  2. package/dist/resources/generated_queries/FilterPairs.graphql +8 -0
  3. package/dist/resources/generated_queries/FilterTokens.graphql +6 -0
  4. package/dist/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  5. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
  6. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
  7. package/dist/resources/generated_queries/ListPairsForToken.graphql +4 -0
  8. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
  9. package/dist/resources/generated_queries/Token.graphql +2 -0
  10. package/dist/resources/generated_queries/Tokens.graphql +2 -0
  11. package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +10 -2
  12. package/dist/resources/graphql.d.ts +229 -0
  13. package/dist/resources/graphql.d.ts.map +1 -1
  14. package/dist/resources/graphql.js +5 -0
  15. package/dist/resources/graphql.js.map +1 -1
  16. package/dist/resources/graphql.schema.json +383 -215
  17. package/dist/resources/graphql.ts +231 -0
  18. package/dist/resources/schema.graphql +483 -3
  19. package/dist/sdk/Mutation.d.ts +2 -2
  20. package/dist/sdk/Mutation.js +2 -2
  21. package/dist/sdk/Query.d.ts +53 -53
  22. package/dist/sdk/Query.d.ts.map +1 -1
  23. package/dist/sdk/Query.js +53 -53
  24. package/dist/sdk/Query.js.map +1 -1
  25. package/dist/sdk/Subscribe.d.ts +12 -12
  26. package/dist/sdk/Subscribe.d.ts.map +1 -1
  27. package/dist/sdk/Subscribe.js +60 -60
  28. package/dist/sdk/Subscribe.js.map +1 -1
  29. package/dist/sdk/generated/gql.d.ts +21 -20
  30. package/dist/sdk/generated/gql.d.ts.map +1 -1
  31. package/dist/sdk/generated/gql.js +10 -10
  32. package/dist/sdk/generated/gql.js.map +1 -1
  33. package/dist/sdk/generated/graphql.d.ts +271 -0
  34. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  35. package/dist/sdk/generated/graphql.js +15 -10
  36. package/dist/sdk/generated/graphql.js.map +1 -1
  37. package/package.json +2 -2
  38. package/src/resources/generated_queries/FilterPairs.graphql +8 -0
  39. package/src/resources/generated_queries/FilterTokens.graphql +6 -0
  40. package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  41. package/src/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
  42. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
  43. package/src/resources/generated_queries/ListPairsForToken.graphql +4 -0
  44. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
  45. package/src/resources/generated_queries/Token.graphql +2 -0
  46. package/src/resources/generated_queries/Tokens.graphql +2 -0
  47. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +10 -2
  48. package/src/resources/graphql.schema.json +383 -215
  49. package/src/resources/graphql.ts +231 -0
  50. package/src/resources/schema.graphql +483 -3
  51. package/src/sdk/Mutation.ts +4 -4
  52. package/src/sdk/Query.ts +111 -111
  53. package/src/sdk/Subscribe.ts +97 -97
  54. package/src/sdk/generated/gql.ts +20 -20
  55. package/src/sdk/generated/graphql.ts +251 -19
@@ -92,6 +92,12 @@ type AddUnconfirmedEventsOutput {
92
92
  events: [UnconfirmedEvent]!
93
93
  }
94
94
 
95
+ input AddUserAchievementInput {
96
+ userId: String!
97
+ quantity: Int!
98
+ }
99
+
100
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
95
101
  enum AlertRecurrence {
96
102
  INDEFINITE
97
103
  ONCE
@@ -147,6 +153,11 @@ input BalancesInput {
147
153
 
148
154
  """Optional token specifically request the balance for"""
149
155
  filterToken: String
156
+
157
+ """
158
+ If set to true, native tokens in the response, they will have the id: native:<networkId>
159
+ """
160
+ includeNative: Boolean
150
161
  }
151
162
 
152
163
  type BalancesResponse {
@@ -381,19 +392,39 @@ enum CommunityNoteType {
381
392
  LOGO
382
393
  }
383
394
 
395
+ """Comparison operators."""
384
396
  type ComparisonOperator {
397
+ """Greater than."""
385
398
  gt: String
399
+
400
+ """Greater than or equal to."""
386
401
  gte: String
402
+
403
+ """Less than."""
387
404
  lt: String
405
+
406
+ """Less than or equal to."""
388
407
  lte: String
408
+
409
+ """Equal to."""
389
410
  eq: String
390
411
  }
391
412
 
413
+ """Input for comparison operators."""
392
414
  input ComparisonOperatorInput {
415
+ """Greater than."""
393
416
  gt: String
417
+
418
+ """Greater than or equal."""
394
419
  gte: String
420
+
421
+ """Less than."""
395
422
  lt: String
423
+
424
+ """Less than or equal."""
396
425
  lte: String
426
+
427
+ """Equal to."""
397
428
  eq: String
398
429
  }
399
430
 
@@ -447,89 +478,257 @@ input CreateApiTokensInput {
447
478
  expiresIn: Int
448
479
  }
449
480
 
481
+ """Input for creating an NFT event webhook."""
450
482
  input CreateNftEventWebhookArgs {
483
+ """The name of the webhook (max 128 characters)."""
451
484
  name: String!
485
+
486
+ """The url to which the webhook message should be sent."""
452
487
  callbackUrl: String!
488
+
489
+ """
490
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
491
+ """
453
492
  securityToken: String!
493
+
494
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
454
495
  alertRecurrence: AlertRecurrence!
496
+
497
+ """
498
+ 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.
499
+ """
455
500
  groupId: String
501
+
502
+ """
503
+ The conditions which must be met in order for the webhook to send a message.
504
+ """
456
505
  conditions: NftEventWebhookConditionInput!
506
+
507
+ """The settings for retrying failed webhook messages."""
457
508
  retrySettings: RetrySettingsInput
509
+
510
+ """
511
+ An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
512
+ """
458
513
  bucketId: String
514
+
515
+ """
516
+ An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
517
+ """
459
518
  bucketSortkey: String
519
+
520
+ """
521
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
522
+ """
460
523
  publishingType: PublishingType
524
+
525
+ """
526
+ 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.
527
+ """
461
528
  deduplicate: Boolean
462
529
  }
463
530
 
531
+ """Input for creating NFT event webhooks."""
464
532
  input CreateNftEventWebhooksInput {
533
+ """A list of NFT event webhooks to create."""
465
534
  webhooks: [CreateNftEventWebhookArgs!]!
466
535
  }
467
536
 
537
+ """Input for creating a price webhook."""
468
538
  input CreatePriceWebhookArgs {
539
+ """The name of the webhook (max 128 characters)."""
469
540
  name: String!
541
+
542
+ """The url to which the webhook message should be sent."""
470
543
  callbackUrl: String!
544
+
545
+ """
546
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
547
+ """
471
548
  securityToken: String!
549
+
550
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
472
551
  alertRecurrence: AlertRecurrence!
552
+
553
+ """
554
+ 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.
555
+ """
473
556
  groupId: String
557
+
558
+ """
559
+ The conditions which must be met in order for the webhook to send a message.
560
+ """
474
561
  conditions: PriceEventWebhookConditionInput!
562
+
563
+ """The settings for retrying failed webhook messages."""
475
564
  retrySettings: RetrySettingsInput
565
+
566
+ """
567
+ An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
568
+ """
476
569
  bucketId: String
570
+
571
+ """
572
+ An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
573
+ """
477
574
  bucketSortkey: String
575
+
576
+ """
577
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
578
+ """
478
579
  publishingType: PublishingType
580
+
581
+ """
582
+ 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.
583
+ """
479
584
  deduplicate: Boolean
480
585
  }
481
586
 
587
+ """Input for creating price webhooks."""
482
588
  input CreatePriceWebhooksInput {
589
+ """A list of price webhooks to create."""
483
590
  webhooks: [CreatePriceWebhookArgs!]!
484
591
  }
485
592
 
593
+ """Input for creating a Raw Transaction webhook."""
486
594
  input CreateRawTransactionWebhookArgs {
595
+ """The name of the webhook (max 128 characters)."""
487
596
  name: String!
597
+
598
+ """The url to which the webhook message should be sent."""
488
599
  callbackUrl: String!
600
+
601
+ """
602
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
603
+ """
489
604
  securityToken: String!
605
+
606
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
490
607
  alertRecurrence: AlertRecurrence!
608
+
609
+ """
610
+ 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.
611
+ """
491
612
  groupId: String
613
+
614
+ """
615
+ The conditions which must be met in order for the webhook to send a message.
616
+ """
492
617
  conditions: RawTransactionWebhookConditionInput!
618
+
619
+ """The settings for retrying failed webhook messages."""
493
620
  retrySettings: RetrySettingsInput
621
+
622
+ """
623
+ An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
624
+ """
494
625
  bucketId: String
626
+
627
+ """
628
+ An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
629
+ """
495
630
  bucketSortkey: String
631
+
632
+ """
633
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
634
+ """
496
635
  publishingType: PublishingType
636
+
637
+ """
638
+ 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.
639
+ """
497
640
  deduplicate: Boolean
498
641
  }
499
642
 
643
+ """Input for creating Raw Transaction webhooks."""
500
644
  input CreateRawTransactionWebhooksInput {
645
+ """A list of Raw Transaction webhooks to create."""
501
646
  webhooks: [CreateRawTransactionWebhookArgs!]!
502
647
  }
503
648
 
649
+ """Input for creating a token pair event webhook."""
504
650
  input CreateTokenPairEventWebhookArgs {
651
+ """The name of the webhook (max 128 characters)."""
505
652
  name: String!
653
+
654
+ """The url to which the webhook message should be sent."""
506
655
  callbackUrl: String!
656
+
657
+ """
658
+ A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security.
659
+ """
507
660
  securityToken: String!
661
+
662
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
508
663
  alertRecurrence: AlertRecurrence!
664
+
665
+ """
666
+ 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.
667
+ """
509
668
  groupId: String
669
+
670
+ """
671
+ The conditions which must be met in order for the webhook to send a message.
672
+ """
510
673
  conditions: TokenPairEventWebhookConditionInput!
674
+
675
+ """The settings for retrying failed webhook messages."""
511
676
  retrySettings: RetrySettingsInput
677
+
678
+ """
679
+ An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
680
+ """
512
681
  bucketId: String
682
+
683
+ """
684
+ An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
685
+ """
513
686
  bucketSortkey: String
687
+
688
+ """
689
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
690
+ """
514
691
  publishingType: PublishingType
692
+
693
+ """
694
+ 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.
695
+ """
515
696
  deduplicate: Boolean
516
697
  }
517
698
 
699
+ """Input for creating token pair event webhooks."""
518
700
  input CreateTokenPairEventWebhooksInput {
701
+ """A list of token pair event webhooks to create."""
519
702
  webhooks: [CreateTokenPairEventWebhookArgs!]!
520
703
  }
521
704
 
705
+ """Input for creating webhooks."""
522
706
  input CreateWebhooksInput {
707
+ """Input for creating price webhooks."""
523
708
  priceWebhooksInput: CreatePriceWebhooksInput
709
+
710
+ """Input for creating token pair event webhooks."""
524
711
  tokenPairEventWebhooksInput: CreateTokenPairEventWebhooksInput
712
+
713
+ """Input for creating NFT event webhooks."""
525
714
  nftEventWebhooksInput: CreateNftEventWebhooksInput
715
+
716
+ """Input for creating raw transaction webhooks."""
526
717
  rawTransactionWebhooksInput: CreateRawTransactionWebhooksInput
527
718
  }
528
719
 
720
+ """Result returned by `createWebhooks`."""
529
721
  type CreateWebhooksOutput {
722
+ """The list of price webhooks that were created."""
530
723
  priceWebhooks: [Webhook]!
724
+
725
+ """The list of token pair event webhooks that were created."""
531
726
  tokenPairEventWebhooks: [Webhook]!
727
+
728
+ """The list of NFT event webhooks that were created."""
532
729
  nftEventWebhooks: [Webhook]!
730
+
731
+ """The list of raw transaction webhooks that were created."""
533
732
  rawTransactionWebhooks: [Webhook]!
534
733
  }
535
734
 
@@ -551,11 +750,15 @@ type CurrencyBarData {
551
750
  token: IndividualBarData!
552
751
  }
553
752
 
753
+ """Input for deleting webhooks."""
554
754
  input DeleteWebhooksInput {
755
+ """A list of webhook IDs to delete."""
555
756
  webhookIds: [String!]!
556
757
  }
557
758
 
759
+ """Result returned by `deleteWebhooks`."""
558
760
  type DeleteWebhooksOutput {
761
+ """The list of webhook IDs that were deleted."""
559
762
  deletedIds: [String]
560
763
  }
561
764
 
@@ -937,6 +1140,12 @@ type EnhancedToken {
937
1140
 
938
1141
  """The unix timestamp for the creation of the token."""
939
1142
  createdAt: Int
1143
+
1144
+ """Whether or not the token is mintable"""
1145
+ mintable: String
1146
+
1147
+ """Whether or not the token is freezable"""
1148
+ freezable: String
940
1149
  }
941
1150
 
942
1151
  """A token transaction."""
@@ -1557,8 +1766,12 @@ input GetTokensInfoInput {
1557
1766
  networkId: Int!
1558
1767
  }
1559
1768
 
1769
+ """Response returned by `getWebhooks`."""
1560
1770
  type GetWebhooksResponse {
1771
+ """A list of webhooks belonging to a user."""
1561
1772
  items: [Webhook]
1773
+
1774
+ """A cursor for use in pagination."""
1562
1775
  cursor: String
1563
1776
  }
1564
1777
 
@@ -1667,11 +1880,15 @@ type IndividualBarData {
1667
1880
  transactions: Int!
1668
1881
  }
1669
1882
 
1883
+ """Integer equals condition."""
1670
1884
  type IntEqualsCondition {
1885
+ """The integer to equal."""
1671
1886
  eq: Int!
1672
1887
  }
1673
1888
 
1889
+ """Input for integer equals condition."""
1674
1890
  input IntEqualsConditionInput {
1891
+ """The integer to equal."""
1675
1892
  eq: Int!
1676
1893
  }
1677
1894
 
@@ -2151,8 +2368,20 @@ type Mutation {
2151
2368
 
2152
2369
  """Delete a single short-lived api access token by id"""
2153
2370
  deleteApiToken(id: String!): String!
2154
- createWebhooks(input: CreateWebhooksInput!): CreateWebhooksOutput!
2155
- deleteWebhooks(input: DeleteWebhooksInput!): DeleteWebhooksOutput
2371
+
2372
+ """
2373
+ Create price, raw transaction, token/pair event, and NFT event webhooks.
2374
+ """
2375
+ createWebhooks(
2376
+ """input: Input for creating webhooks."""
2377
+ input: CreateWebhooksInput!
2378
+ ): CreateWebhooksOutput!
2379
+
2380
+ """Delete multiple webhooks."""
2381
+ deleteWebhooks(
2382
+ """input: Input for deleting webhooks."""
2383
+ input: DeleteWebhooksInput!
2384
+ ): DeleteWebhooksOutput
2156
2385
  }
2157
2386
 
2158
2387
  """A network supported on Defined."""
@@ -3495,11 +3724,15 @@ type NftEvent {
3495
3724
  orderDirection: NftEventOrderDirection
3496
3725
  }
3497
3726
 
3727
+ """NFT marketplaces for a webhook to listen on."""
3498
3728
  type NftEventFillSourceCondition {
3729
+ """The list of NFT marketplaces."""
3499
3730
  oneOf: [WebhookNftEventFillSource!]!
3500
3731
  }
3501
3732
 
3733
+ """Input for NFT event fill source condition."""
3502
3734
  input NftEventFillSourceConditionInput {
3735
+ """The list of NFT marketplace to equal."""
3503
3736
  oneOf: [WebhookNftEventFillSource!]!
3504
3737
  }
3505
3738
 
@@ -3612,35 +3845,75 @@ enum NftEventTradeItemType {
3612
3845
  TOKEN
3613
3846
  }
3614
3847
 
3848
+ """An NFT event type for a webhook to listen for."""
3615
3849
  type NftEventTypeCondition {
3850
+ """The NFT event type."""
3616
3851
  eq: WebhookNftEventType!
3617
3852
  }
3618
3853
 
3854
+ """Input for NFT event type."""
3619
3855
  input NftEventTypeConditionInput {
3856
+ """The NFT event type to equal."""
3620
3857
  eq: WebhookNftEventType!
3621
3858
  }
3622
3859
 
3860
+ """Webhook conditions for an NFT event."""
3623
3861
  type NftEventWebhookCondition {
3862
+ """The list of network IDs the webhook is listening on."""
3624
3863
  networkId: OneOfNumberCondition
3864
+
3865
+ """The maker wallet address the webhook is listening for."""
3625
3866
  maker: StringEqualsCondition
3867
+
3868
+ """The NFT collection contract address the webhook is listening for."""
3626
3869
  contractAddress: StringEqualsCondition
3870
+
3871
+ """The exchange contract address the webhook is listening for."""
3627
3872
  exchangeAddress: StringEqualsCondition
3873
+
3874
+ """The token ID the webhook is listening for."""
3628
3875
  tokenId: StringEqualsCondition
3876
+
3877
+ """The token contract address the webhook is listening for."""
3629
3878
  tokenAddress: StringEqualsCondition
3879
+
3880
+ """The base token price the webhook is listening for."""
3630
3881
  individualBaseTokenPrice: ComparisonOperator
3882
+
3883
+ """The NFT event type the webhook is listening for."""
3631
3884
  eventType: NftEventTypeCondition
3885
+
3886
+ """The NFT marketplaces the webhook is listening on."""
3632
3887
  fillSource: NftEventFillSourceCondition
3888
+
3889
+ """Option to ignore all nft transfer events"""
3633
3890
  ignoreTransfers: Boolean
3634
3891
  }
3635
3892
 
3893
+ """Input conditions for an NFT event webhook."""
3636
3894
  input NftEventWebhookConditionInput {
3895
+ """A list of network IDs to listen on."""
3637
3896
  networkId: OneOfNumberConditionInput
3897
+
3898
+ """The maker wallet address to listen for."""
3638
3899
  maker: StringEqualsConditionInput
3900
+
3901
+ """The NFT collection contract address to listen for."""
3639
3902
  contractAddress: StringEqualsConditionInput
3903
+
3904
+ """The exchange contract address to listen for."""
3640
3905
  exchangeAddress: StringEqualsConditionInput
3906
+
3907
+ """The token ID to listen for."""
3641
3908
  tokenId: StringEqualsConditionInput
3909
+
3910
+ """The NFT event type to listen for."""
3642
3911
  eventType: NftEventTypeConditionInput
3912
+
3913
+ """The NFT marketplaces to listen for."""
3643
3914
  fillSource: NftEventFillSourceConditionInput
3915
+
3916
+ """Option to ignore all nft transfer events"""
3644
3917
  ignoreTransfers: Boolean
3645
3918
  }
3646
3919
 
@@ -5679,17 +5952,22 @@ type OnBarsUpdatedResponse {
5679
5952
  quoteTokenAddress: String!
5680
5953
  }
5681
5954
 
5955
+ """Integer list condition."""
5682
5956
  type OneOfNumberCondition {
5957
+ """The list of integers."""
5683
5958
  oneOf: [Int!]!
5684
5959
  }
5685
5960
 
5961
+ """Input for integer list condition."""
5686
5962
  input OneOfNumberConditionInput {
5963
+ """The list of integers."""
5687
5964
  oneOf: [Int!]!
5688
5965
  }
5689
5966
 
5690
5967
  input OnPricesUpdatedInput {
5691
5968
  address: String!
5692
5969
  networkId: Int!
5970
+ sourcePairAddress: String
5693
5971
  }
5694
5972
 
5695
5973
  """Response returned by `onBarsUpdated`."""
@@ -6809,16 +7087,34 @@ type Price {
6809
7087
  confidence: Float
6810
7088
  }
6811
7089
 
7090
+ """Webhook conditions for a price event."""
6812
7091
  type PriceEventWebhookCondition {
7092
+ """The token contract address the webhook is listening for."""
6813
7093
  tokenAddress: StringEqualsCondition!
7094
+
7095
+ """The network ID the webhook is listening on."""
6814
7096
  networkId: IntEqualsCondition!
7097
+
7098
+ """The price condition that must be met in order for the webhook to send."""
6815
7099
  priceUsd: ComparisonOperator!
7100
+
7101
+ """The pair contract address the webhook is listening for."""
7102
+ pairAddress: StringEqualsCondition
6816
7103
  }
6817
7104
 
7105
+ """Input conditions for a price event webhook."""
6818
7106
  input PriceEventWebhookConditionInput {
7107
+ """The contract address of the token to listen for."""
6819
7108
  tokenAddress: StringEqualsConditionInput!
7109
+
7110
+ """The network ID to listen on."""
6820
7111
  networkId: IntEqualsConditionInput!
7112
+
7113
+ """The price conditions to listen for."""
6821
7114
  priceUsd: ComparisonOperatorInput!
7115
+
7116
+ """The contract address of the pair to listen for."""
7117
+ pairAddress: StringEqualsConditionInput
6822
7118
  }
6823
7119
 
6824
7120
  """Response returned by `primeHolders`."""
@@ -7511,7 +7807,26 @@ type Query {
7511
7807
  """The list of network IDs."""
7512
7808
  networkIds: [Int!]!
7513
7809
  ): [MetadataResponse!]
7514
- getWebhooks(cursor: String, webhookId: String, bucketId: String, bucketSortkey: String, limit: Int): GetWebhooksResponse
7810
+
7811
+ """Returns a user's list of webhooks."""
7812
+ getWebhooks(
7813
+ """The cursor to use for pagination."""
7814
+ cursor: String
7815
+
7816
+ """webhookId: The id of the webhook you want to retrieve."""
7817
+ webhookId: String
7818
+
7819
+ """
7820
+ bucketId: The bucketId of the webhooks you want to retrieve. Note that bucketId and webhookId are mutually exclusive, do not send both.
7821
+ """
7822
+ bucketId: String
7823
+
7824
+ """bucketSortkey: The bucketSortkey of the webhooks you want to retrieve."""
7825
+ bucketSortkey: String
7826
+
7827
+ """limit: The maximum number of webhooks to return."""
7828
+ limit: Int
7829
+ ): GetWebhooksResponse
7515
7830
 
7516
7831
  """Returns an NFT pool."""
7517
7832
  getNftPool(
@@ -8528,23 +8843,63 @@ type RawNftAssetData {
8528
8843
  externalUrl: String
8529
8844
  }
8530
8845
 
8846
+ """Webhook conditions for a raw transaction."""
8531
8847
  type RawTransactionWebhookCondition {
8848
+ """A list of network IDs to listen on."""
8532
8849
  networkId: OneOfNumberCondition
8850
+
8851
+ """The to address to listen for."""
8533
8852
  to: StringEqualsCondition
8853
+
8854
+ """The from address to listen for."""
8534
8855
  from: StringEqualsCondition
8856
+
8857
+ """Trigger the webhook if either the to or the from address matches."""
8535
8858
  toOrFrom: StringEqualsCondition
8859
+
8860
+ """
8861
+ Trigger the webhook if the contains or doesn't contain the specified string.
8862
+ """
8536
8863
  input: StringContainsCondition
8864
+
8865
+ """
8866
+ Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook.
8867
+ """
8537
8868
  ignoreTokenPairEvents: Boolean
8869
+
8870
+ """
8871
+ Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook.
8872
+ """
8538
8873
  ignoreNftEvents: Boolean
8539
8874
  }
8540
8875
 
8876
+ """Input conditions for a Raw Transaction webhook."""
8541
8877
  input RawTransactionWebhookConditionInput {
8878
+ """A list of network IDs to listen on."""
8542
8879
  networkId: OneOfNumberConditionInput
8880
+
8881
+ """The to address to listen for."""
8543
8882
  to: StringEqualsConditionInput
8883
+
8884
+ """The from address to listen for."""
8544
8885
  from: StringEqualsConditionInput
8886
+
8887
+ """Trigger the webhook if either the to or the from address matches."""
8545
8888
  toOrFrom: StringEqualsConditionInput
8889
+
8890
+ """
8891
+ Trigger the webhook if the input contains or doesn't contain the specified string.
8892
+ """
8546
8893
  input: StringContainsConditionInput
8894
+
8895
+ """
8896
+ Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook.
8897
+ """
8547
8898
  ignoreTokenPairEvents: Boolean
8899
+
8900
+ """
8901
+ Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook.
8902
+ """
8548
8903
  ignoreNftEvents: Boolean
8549
8904
  }
8550
8905
 
@@ -8573,6 +8928,10 @@ type ReferralsPayoutData {
8573
8928
  tokenAddressNetworkIdPaid: String!
8574
8929
  }
8575
8930
 
8931
+ input RemoveUserAchievementInput {
8932
+ userId: String!
8933
+ }
8934
+
8576
8935
  """Price data for each supported resolution."""
8577
8936
  type ResolutionBarData {
8578
8937
  """1 second resolution."""
@@ -8615,17 +8974,45 @@ type ResolutionBarData {
8615
8974
  r7D: CurrencyBarData
8616
8975
  }
8617
8976
 
8977
+ """Config for retrying failed webhook messages"""
8618
8978
  type RetrySettings {
8979
+ """
8980
+ The maximum time in seconds that the webhook will retry sending a message
8981
+ """
8619
8982
  maxTimeElapsed: Int
8983
+
8984
+ """
8985
+ The minimum time in seconds that the webhook will wait before retrying a failed message
8986
+ """
8620
8987
  minRetryDelay: Int
8988
+
8989
+ """
8990
+ The maximum time in seconds that the webhook will wait before retrying a failed message
8991
+ """
8621
8992
  maxRetryDelay: Int
8993
+
8994
+ """The maximum number of times the webhook will retry sending a message"""
8622
8995
  maxRetries: Int
8623
8996
  }
8624
8997
 
8998
+ """Config input for retrying failed webhook messages"""
8625
8999
  input RetrySettingsInput {
9000
+ """
9001
+ The maximum time in seconds that the webhook will retry sending a message
9002
+ """
8626
9003
  maxTimeElapsed: Int
9004
+
9005
+ """
9006
+ The minimum time in seconds that the webhook will wait before retrying a failed message
9007
+ """
8627
9008
  minRetryDelay: Int
9009
+
9010
+ """
9011
+ The maximum time in seconds that the webhook will wait before retrying a failed message
9012
+ """
8628
9013
  maxRetryDelay: Int
9014
+
9015
+ """The maximum number of times the webhook will retry sending a message"""
8629
9016
  maxRetries: Int
8630
9017
  }
8631
9018
 
@@ -8983,21 +9370,33 @@ input statsNonCurrency {
8983
9370
  uniqueMinters: StatsFilter
8984
9371
  }
8985
9372
 
9373
+ """String contains condition."""
8986
9374
  type StringContainsCondition {
9375
+ """A list of substrings included within the string."""
8987
9376
  contains: [String!]
9377
+
9378
+ """A list of substrings not included within the string."""
8988
9379
  notContains: [String!]
8989
9380
  }
8990
9381
 
9382
+ """Input for string contains condition."""
8991
9383
  input StringContainsConditionInput {
9384
+ """A list of substrings to be included within the string."""
8992
9385
  contains: [String!]
9386
+
9387
+ """A list of substrings not to be included within the string."""
8993
9388
  notContains: [String!]
8994
9389
  }
8995
9390
 
9391
+ """String equals condition."""
8996
9392
  type StringEqualsCondition {
9393
+ """The string to equal."""
8997
9394
  eq: String!
8998
9395
  }
8999
9396
 
9397
+ """Input for string equals condition."""
9000
9398
  input StringEqualsConditionInput {
9399
+ """The string to equal."""
9001
9400
  eq: String!
9002
9401
  }
9003
9402
 
@@ -9108,6 +9507,9 @@ type Subscription {
9108
9507
 
9109
9508
  """The network ID the token is deployed on."""
9110
9509
  networkId: Int
9510
+
9511
+ """The pair contract address from which to get pricing"""
9512
+ sourcePairAddress: String
9111
9513
  ): Price
9112
9514
 
9113
9515
  """Live-streamed price updates for multiple tokens."""
@@ -9864,6 +10266,9 @@ input TokenFilters {
9864
10266
 
9865
10267
  """Whether to ignore pairs/tokens not relevant to trending"""
9866
10268
  trendingIgnored: Boolean
10269
+
10270
+ """The address of the creator of the token"""
10271
+ creatorAddress: String
9867
10272
  }
9868
10273
 
9869
10274
  """Metadata for a token."""
@@ -10005,6 +10410,7 @@ enum TokenOfInterest {
10005
10410
  token1
10006
10411
  }
10007
10412
 
10413
+ """Token pair event types."""
10008
10414
  enum TokenPairEventType {
10009
10415
  SWAP
10010
10416
  MINT
@@ -10016,31 +10422,63 @@ enum TokenPairEventType {
10016
10422
  COLLECT_PROTOCOL
10017
10423
  }
10018
10424
 
10425
+ """Webhook condition for token pair event type."""
10019
10426
  type TokenPairEventTypeCondition {
10427
+ """The list of token pair event types."""
10020
10428
  oneOf: [TokenPairEventType!]!
10021
10429
  }
10022
10430
 
10431
+ """Input for token pair event type condition."""
10023
10432
  input TokenPairEventTypeConditionInput {
10433
+ """The list of token event types to equal."""
10024
10434
  oneOf: [TokenPairEventType!]!
10025
10435
  }
10026
10436
 
10437
+ """Webhook conditions for a token pair event."""
10027
10438
  type TokenPairEventWebhookCondition {
10439
+ """The token contract address the webhook is listening for."""
10028
10440
  tokenAddress: StringEqualsCondition
10441
+
10442
+ """The list of network IDs the webhook is listening on."""
10029
10443
  networkId: OneOfNumberCondition
10444
+
10445
+ """The swap values the webhook is listening for."""
10030
10446
  swapValue: ComparisonOperator
10447
+
10448
+ """The maker wallet address the webhook is listening for."""
10031
10449
  maker: StringEqualsCondition
10450
+
10451
+ """The pair contract address the webhook is listening for."""
10032
10452
  pairAddress: StringEqualsCondition
10453
+
10454
+ """The exchange contract address the webhook is listening for."""
10033
10455
  exchangeAddress: StringEqualsCondition
10456
+
10457
+ """The event type the webhook is listening for."""
10034
10458
  eventType: TokenPairEventTypeCondition
10035
10459
  }
10036
10460
 
10461
+ """Input conditions for a token pair event webhook."""
10037
10462
  input TokenPairEventWebhookConditionInput {
10463
+ """A list of network IDs to listen on."""
10038
10464
  networkId: OneOfNumberConditionInput
10465
+
10466
+ """The maker wallet address to listen for."""
10039
10467
  maker: StringEqualsConditionInput
10468
+
10469
+ """The pair contract address to listen for."""
10040
10470
  pairAddress: StringEqualsConditionInput
10471
+
10472
+ """The exchange contract address to listen for."""
10041
10473
  exchangeAddress: StringEqualsConditionInput
10474
+
10475
+ """The token contract address to listen for."""
10042
10476
  tokenAddress: StringEqualsConditionInput
10477
+
10478
+ """The swap values to listen for."""
10043
10479
  swapValue: ComparisonOperatorInput
10480
+
10481
+ """The token event type to listen for."""
10044
10482
  eventType: TokenPairEventTypeConditionInput
10045
10483
  }
10046
10484
 
@@ -10519,24 +10957,64 @@ type WashtradeLabelForEvent {
10519
10957
  label: String!
10520
10958
  }
10521
10959
 
10960
+ """Metadata for a webhook."""
10522
10961
  type Webhook {
10962
+ """The ID of the webhook."""
10523
10963
  id: String!
10964
+
10965
+ """
10966
+ The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`.
10967
+ """
10524
10968
  webhookType: WebhookType!
10969
+
10970
+ """The given name of the webhook."""
10525
10971
  name: String!
10972
+
10973
+ """The unix timestamp for the time the webhook was created."""
10526
10974
  created: Int!
10975
+
10976
+ """The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
10527
10977
  alertRecurrence: AlertRecurrence!
10978
+
10979
+ """The url to which the webhook message should be sent."""
10528
10980
  callbackUrl: String!
10981
+
10982
+ """The status of the webhook. Can be `ACTIVE` or `INACTIVE`."""
10529
10983
  status: String!
10984
+
10985
+ """
10986
+ The webhook group ID used to group webhooks together for ordered message sending.
10987
+ """
10530
10988
  groupId: String
10989
+
10990
+ """
10991
+ The conditions which must be met in order for the webhook to send a message.
10992
+ """
10531
10993
  conditions: WebhookCondition!
10994
+
10995
+ """The settings for retrying failed webhook messages."""
10532
10996
  retrySettings: RetrySettings
10997
+
10998
+ """
10999
+ An optional bucket ID (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
11000
+ """
10533
11001
  bucketId: String
11002
+
11003
+ """
11004
+ An optional bucket sort key (max 64 characters). Can be used to query for subgroups of webhooks (useful if you have a large number of webhooks).
11005
+ """
10534
11006
  bucketSortkey: String
11007
+
11008
+ """
11009
+ The type of publishing for the webhook. If not set, it defaults to `SINGLE`.
11010
+ """
10535
11011
  publishingType: PublishingType
10536
11012
  }
10537
11013
 
11014
+ """Webhook conditions that must be met for each webhook type."""
10538
11015
  union WebhookCondition = PriceEventWebhookCondition | TokenPairEventWebhookCondition | NftEventWebhookCondition | RawTransactionWebhookCondition
10539
11016
 
11017
+ """NFT marketplace names."""
10540
11018
  enum WebhookNftEventFillSource {
10541
11019
  GEM
10542
11020
  ENSVISION
@@ -10555,12 +11033,14 @@ enum WebhookNftEventFillSource {
10555
11033
  GENIE
10556
11034
  }
10557
11035
 
11036
+ """NFT event types."""
10558
11037
  enum WebhookNftEventType {
10559
11038
  MINT
10560
11039
  SALE
10561
11040
  TRANSFER
10562
11041
  }
10563
11042
 
11043
+ """The type of webhook."""
10564
11044
  enum WebhookType {
10565
11045
  PRICE_EVENT
10566
11046
  NFT_EVENT