@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
@@ -121,6 +121,11 @@ export type AddUnconfirmedEventsOutput = {
121
121
  /** The token of interest within the pair. Can be `token0` or `token1`. */
122
122
  quoteToken?: Maybe<QuoteToken>;
123
123
  };
124
+ export type AddUserAchievementInput = {
125
+ quantity: Scalars['Int']['input'];
126
+ userId: Scalars['String']['input'];
127
+ };
128
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
124
129
  export declare enum AlertRecurrence {
125
130
  Indefinite = "INDEFINITE",
126
131
  Once = "ONCE"
@@ -157,6 +162,8 @@ export type BalancesInput = {
157
162
  cursor?: InputMaybe<Scalars['String']['input']>;
158
163
  /** Optional token specifically request the balance for */
159
164
  filterToken?: InputMaybe<Scalars['String']['input']>;
165
+ /** If set to true, native tokens in the response, they will have the id: native:<networkId> */
166
+ includeNative?: InputMaybe<Scalars['Boolean']['input']>;
160
167
  /** The ID of the wallet (`walletAddress:networkId`). */
161
168
  walletId: Scalars['String']['input'];
162
169
  };
@@ -328,19 +335,31 @@ export type CommunityNotesResponse = {
328
335
  /** The list of community notes matching the filter parameters. */
329
336
  items: Array<CommunityNote>;
330
337
  };
338
+ /** Comparison operators. */
331
339
  export type ComparisonOperator = {
332
340
  __typename?: 'ComparisonOperator';
341
+ /** Equal to. */
333
342
  eq?: Maybe<Scalars['String']['output']>;
343
+ /** Greater than. */
334
344
  gt?: Maybe<Scalars['String']['output']>;
345
+ /** Greater than or equal to. */
335
346
  gte?: Maybe<Scalars['String']['output']>;
347
+ /** Less than. */
336
348
  lt?: Maybe<Scalars['String']['output']>;
349
+ /** Less than or equal to. */
337
350
  lte?: Maybe<Scalars['String']['output']>;
338
351
  };
352
+ /** Input for comparison operators. */
339
353
  export type ComparisonOperatorInput = {
354
+ /** Equal to. */
340
355
  eq?: InputMaybe<Scalars['String']['input']>;
356
+ /** Greater than. */
341
357
  gt?: InputMaybe<Scalars['String']['input']>;
358
+ /** Greater than or equal. */
342
359
  gte?: InputMaybe<Scalars['String']['input']>;
360
+ /** Less than. */
343
361
  lt?: InputMaybe<Scalars['String']['input']>;
362
+ /** Less than or equal. */
344
363
  lte?: InputMaybe<Scalars['String']['input']>;
345
364
  };
346
365
  /** Metadata for a contract label. */
@@ -380,81 +399,147 @@ export type CreateApiTokensInput = {
380
399
  /** Number of requests allowed per token, represented as a string, default is 5000 */
381
400
  requestLimit?: InputMaybe<Scalars['String']['input']>;
382
401
  };
402
+ /** Input for creating an NFT event webhook. */
383
403
  export type CreateNftEventWebhookArgs = {
404
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
384
405
  alertRecurrence: AlertRecurrence;
406
+ /** 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). */
385
407
  bucketId?: InputMaybe<Scalars['String']['input']>;
408
+ /** 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). */
386
409
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
410
+ /** The url to which the webhook message should be sent. */
387
411
  callbackUrl: Scalars['String']['input'];
412
+ /** The conditions which must be met in order for the webhook to send a message. */
388
413
  conditions: NftEventWebhookConditionInput;
414
+ /** 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. */
389
415
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
416
+ /** 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. */
390
417
  groupId?: InputMaybe<Scalars['String']['input']>;
418
+ /** The name of the webhook (max 128 characters). */
391
419
  name: Scalars['String']['input'];
420
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
392
421
  publishingType?: InputMaybe<PublishingType>;
422
+ /** The settings for retrying failed webhook messages. */
393
423
  retrySettings?: InputMaybe<RetrySettingsInput>;
424
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
394
425
  securityToken: Scalars['String']['input'];
395
426
  };
427
+ /** Input for creating NFT event webhooks. */
396
428
  export type CreateNftEventWebhooksInput = {
429
+ /** A list of NFT event webhooks to create. */
397
430
  webhooks: Array<CreateNftEventWebhookArgs>;
398
431
  };
432
+ /** Input for creating a price webhook. */
399
433
  export type CreatePriceWebhookArgs = {
434
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
400
435
  alertRecurrence: AlertRecurrence;
436
+ /** 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). */
401
437
  bucketId?: InputMaybe<Scalars['String']['input']>;
438
+ /** 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). */
402
439
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
440
+ /** The url to which the webhook message should be sent. */
403
441
  callbackUrl: Scalars['String']['input'];
442
+ /** The conditions which must be met in order for the webhook to send a message. */
404
443
  conditions: PriceEventWebhookConditionInput;
444
+ /** 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. */
405
445
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
446
+ /** 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. */
406
447
  groupId?: InputMaybe<Scalars['String']['input']>;
448
+ /** The name of the webhook (max 128 characters). */
407
449
  name: Scalars['String']['input'];
450
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
408
451
  publishingType?: InputMaybe<PublishingType>;
452
+ /** The settings for retrying failed webhook messages. */
409
453
  retrySettings?: InputMaybe<RetrySettingsInput>;
454
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
410
455
  securityToken: Scalars['String']['input'];
411
456
  };
457
+ /** Input for creating price webhooks. */
412
458
  export type CreatePriceWebhooksInput = {
459
+ /** A list of price webhooks to create. */
413
460
  webhooks: Array<CreatePriceWebhookArgs>;
414
461
  };
462
+ /** Input for creating a Raw Transaction webhook. */
415
463
  export type CreateRawTransactionWebhookArgs = {
464
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
416
465
  alertRecurrence: AlertRecurrence;
466
+ /** 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). */
417
467
  bucketId?: InputMaybe<Scalars['String']['input']>;
468
+ /** 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). */
418
469
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
470
+ /** The url to which the webhook message should be sent. */
419
471
  callbackUrl: Scalars['String']['input'];
472
+ /** The conditions which must be met in order for the webhook to send a message. */
420
473
  conditions: RawTransactionWebhookConditionInput;
474
+ /** 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. */
421
475
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
476
+ /** 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. */
422
477
  groupId?: InputMaybe<Scalars['String']['input']>;
478
+ /** The name of the webhook (max 128 characters). */
423
479
  name: Scalars['String']['input'];
480
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
424
481
  publishingType?: InputMaybe<PublishingType>;
482
+ /** The settings for retrying failed webhook messages. */
425
483
  retrySettings?: InputMaybe<RetrySettingsInput>;
484
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
426
485
  securityToken: Scalars['String']['input'];
427
486
  };
487
+ /** Input for creating Raw Transaction webhooks. */
428
488
  export type CreateRawTransactionWebhooksInput = {
489
+ /** A list of Raw Transaction webhooks to create. */
429
490
  webhooks: Array<CreateRawTransactionWebhookArgs>;
430
491
  };
492
+ /** Input for creating a token pair event webhook. */
431
493
  export type CreateTokenPairEventWebhookArgs = {
494
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
432
495
  alertRecurrence: AlertRecurrence;
496
+ /** 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). */
433
497
  bucketId?: InputMaybe<Scalars['String']['input']>;
498
+ /** 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). */
434
499
  bucketSortkey?: InputMaybe<Scalars['String']['input']>;
500
+ /** The url to which the webhook message should be sent. */
435
501
  callbackUrl: Scalars['String']['input'];
502
+ /** The conditions which must be met in order for the webhook to send a message. */
436
503
  conditions: TokenPairEventWebhookConditionInput;
504
+ /** 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. */
437
505
  deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
506
+ /** 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. */
438
507
  groupId?: InputMaybe<Scalars['String']['input']>;
508
+ /** The name of the webhook (max 128 characters). */
439
509
  name: Scalars['String']['input'];
510
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
440
511
  publishingType?: InputMaybe<PublishingType>;
512
+ /** The settings for retrying failed webhook messages. */
441
513
  retrySettings?: InputMaybe<RetrySettingsInput>;
514
+ /** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
442
515
  securityToken: Scalars['String']['input'];
443
516
  };
517
+ /** Input for creating token pair event webhooks. */
444
518
  export type CreateTokenPairEventWebhooksInput = {
519
+ /** A list of token pair event webhooks to create. */
445
520
  webhooks: Array<CreateTokenPairEventWebhookArgs>;
446
521
  };
522
+ /** Input for creating webhooks. */
447
523
  export type CreateWebhooksInput = {
524
+ /** Input for creating NFT event webhooks. */
448
525
  nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
526
+ /** Input for creating price webhooks. */
449
527
  priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
528
+ /** Input for creating raw transaction webhooks. */
450
529
  rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
530
+ /** Input for creating token pair event webhooks. */
451
531
  tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
452
532
  };
533
+ /** Result returned by `createWebhooks`. */
453
534
  export type CreateWebhooksOutput = {
454
535
  __typename?: 'CreateWebhooksOutput';
536
+ /** The list of NFT event webhooks that were created. */
455
537
  nftEventWebhooks: Array<Maybe<Webhook>>;
538
+ /** The list of price webhooks that were created. */
456
539
  priceWebhooks: Array<Maybe<Webhook>>;
540
+ /** The list of raw transaction webhooks that were created. */
457
541
  rawTransactionWebhooks: Array<Maybe<Webhook>>;
542
+ /** The list of token pair event webhooks that were created. */
458
543
  tokenPairEventWebhooks: Array<Maybe<Webhook>>;
459
544
  };
460
545
  export declare enum CreationContext {
@@ -472,11 +557,15 @@ export type CurrencyBarData = {
472
557
  /** Bar chart data in USD. */
473
558
  usd: IndividualBarData;
474
559
  };
560
+ /** Input for deleting webhooks. */
475
561
  export type DeleteWebhooksInput = {
562
+ /** A list of webhook IDs to delete. */
476
563
  webhookIds: Array<Scalars['String']['input']>;
477
564
  };
565
+ /** Result returned by `deleteWebhooks`. */
478
566
  export type DeleteWebhooksOutput = {
479
567
  __typename?: 'DeleteWebhooksOutput';
568
+ /** The list of webhook IDs that were deleted. */
480
569
  deletedIds?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
481
570
  };
482
571
  /** Detailed stats for an NFT collection. */
@@ -741,6 +830,8 @@ export type EnhancedToken = {
741
830
  * @deprecated Use the TokenInfo type
742
831
  */
743
832
  explorerData?: Maybe<ExplorerTokenData>;
833
+ /** Whether or not the token is freezable */
834
+ freezable?: Maybe<Scalars['String']['output']>;
744
835
  /** The ID of the token (`address:networkId`). */
745
836
  id: Scalars['String']['output'];
746
837
  /**
@@ -762,6 +853,8 @@ export type EnhancedToken = {
762
853
  info?: Maybe<TokenInfo>;
763
854
  /** Whether the token has been flagged as a scam. */
764
855
  isScam?: Maybe<Scalars['Boolean']['output']>;
856
+ /** Whether or not the token is mintable */
857
+ mintable?: Maybe<Scalars['String']['output']>;
765
858
  /** The token name. For example, `ApeCoin`. */
766
859
  name?: Maybe<Scalars['String']['output']>;
767
860
  /** The network ID the token is deployed on. */
@@ -1236,9 +1329,12 @@ export type GetTokensInfoInput = {
1236
1329
  /** The network ID the token is deployed on. */
1237
1330
  networkId: Scalars['Int']['input'];
1238
1331
  };
1332
+ /** Response returned by `getWebhooks`. */
1239
1333
  export type GetWebhooksResponse = {
1240
1334
  __typename?: 'GetWebhooksResponse';
1335
+ /** A cursor for use in pagination. */
1241
1336
  cursor?: Maybe<Scalars['String']['output']>;
1337
+ /** A list of webhooks belonging to a user. */
1242
1338
  items?: Maybe<Array<Maybe<Webhook>>>;
1243
1339
  };
1244
1340
  /** The pool variant. */
@@ -1317,11 +1413,15 @@ export type IndividualBarData = {
1317
1413
  /** The volume in the network's base token */
1318
1414
  volumeNativeToken: Scalars['String']['output'];
1319
1415
  };
1416
+ /** Integer equals condition. */
1320
1417
  export type IntEqualsCondition = {
1321
1418
  __typename?: 'IntEqualsCondition';
1419
+ /** The integer to equal. */
1322
1420
  eq: Scalars['Int']['output'];
1323
1421
  };
1422
+ /** Input for integer equals condition. */
1324
1423
  export type IntEqualsConditionInput = {
1424
+ /** The integer to equal. */
1325
1425
  eq: Scalars['Int']['input'];
1326
1426
  };
1327
1427
  /** Event labels. Can be `sandwich` or `washtrade`. */
@@ -1643,9 +1743,11 @@ export type Mutation = {
1643
1743
  __typename?: 'Mutation';
1644
1744
  /** Create a new set of short-lived api access tokens */
1645
1745
  createApiTokens: Array<ApiToken>;
1746
+ /** Create price, raw transaction, token/pair event, and NFT event webhooks. */
1646
1747
  createWebhooks: CreateWebhooksOutput;
1647
1748
  /** Delete a single short-lived api access token by id */
1648
1749
  deleteApiToken: Scalars['String']['output'];
1750
+ /** Delete multiple webhooks. */
1649
1751
  deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
1650
1752
  };
1651
1753
  export type MutationCreateApiTokensArgs = {
@@ -2757,11 +2859,15 @@ export type NftEvent = {
2757
2859
  /** The index of the transaction within the block. */
2758
2860
  transactionIndex: Scalars['Int']['output'];
2759
2861
  };
2862
+ /** NFT marketplaces for a webhook to listen on. */
2760
2863
  export type NftEventFillSourceCondition = {
2761
2864
  __typename?: 'NftEventFillSourceCondition';
2865
+ /** The list of NFT marketplaces. */
2762
2866
  oneOf: Array<WebhookNftEventFillSource>;
2763
2867
  };
2868
+ /** Input for NFT event fill source condition. */
2764
2869
  export type NftEventFillSourceConditionInput = {
2870
+ /** The list of NFT marketplace to equal. */
2765
2871
  oneOf: Array<WebhookNftEventFillSource>;
2766
2872
  };
2767
2873
  /** Details for an NFT offered or received as part of an nft trade. */
@@ -2830,34 +2936,58 @@ export declare enum NftEventTradeItemType {
2830
2936
  Nft = "NFT",
2831
2937
  Token = "TOKEN"
2832
2938
  }
2939
+ /** An NFT event type for a webhook to listen for. */
2833
2940
  export type NftEventTypeCondition = {
2834
2941
  __typename?: 'NftEventTypeCondition';
2942
+ /** The NFT event type. */
2835
2943
  eq: WebhookNftEventType;
2836
2944
  };
2945
+ /** Input for NFT event type. */
2837
2946
  export type NftEventTypeConditionInput = {
2947
+ /** The NFT event type to equal. */
2838
2948
  eq: WebhookNftEventType;
2839
2949
  };
2950
+ /** Webhook conditions for an NFT event. */
2840
2951
  export type NftEventWebhookCondition = {
2841
2952
  __typename?: 'NftEventWebhookCondition';
2953
+ /** The NFT collection contract address the webhook is listening for. */
2842
2954
  contractAddress?: Maybe<StringEqualsCondition>;
2955
+ /** The NFT event type the webhook is listening for. */
2843
2956
  eventType?: Maybe<NftEventTypeCondition>;
2957
+ /** The exchange contract address the webhook is listening for. */
2844
2958
  exchangeAddress?: Maybe<StringEqualsCondition>;
2959
+ /** The NFT marketplaces the webhook is listening on. */
2845
2960
  fillSource?: Maybe<NftEventFillSourceCondition>;
2961
+ /** Option to ignore all nft transfer events */
2846
2962
  ignoreTransfers?: Maybe<Scalars['Boolean']['output']>;
2963
+ /** The base token price the webhook is listening for. */
2847
2964
  individualBaseTokenPrice?: Maybe<ComparisonOperator>;
2965
+ /** The maker wallet address the webhook is listening for. */
2848
2966
  maker?: Maybe<StringEqualsCondition>;
2967
+ /** The list of network IDs the webhook is listening on. */
2849
2968
  networkId?: Maybe<OneOfNumberCondition>;
2969
+ /** The token contract address the webhook is listening for. */
2850
2970
  tokenAddress?: Maybe<StringEqualsCondition>;
2971
+ /** The token ID the webhook is listening for. */
2851
2972
  tokenId?: Maybe<StringEqualsCondition>;
2852
2973
  };
2974
+ /** Input conditions for an NFT event webhook. */
2853
2975
  export type NftEventWebhookConditionInput = {
2976
+ /** The NFT collection contract address to listen for. */
2854
2977
  contractAddress?: InputMaybe<StringEqualsConditionInput>;
2978
+ /** The NFT event type to listen for. */
2855
2979
  eventType?: InputMaybe<NftEventTypeConditionInput>;
2980
+ /** The exchange contract address to listen for. */
2856
2981
  exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
2982
+ /** The NFT marketplaces to listen for. */
2857
2983
  fillSource?: InputMaybe<NftEventFillSourceConditionInput>;
2984
+ /** Option to ignore all nft transfer events */
2858
2985
  ignoreTransfers?: InputMaybe<Scalars['Boolean']['input']>;
2986
+ /** The maker wallet address to listen for. */
2859
2987
  maker?: InputMaybe<StringEqualsConditionInput>;
2988
+ /** A list of network IDs to listen on. */
2860
2989
  networkId?: InputMaybe<OneOfNumberConditionInput>;
2990
+ /** The token ID to listen for. */
2861
2991
  tokenId?: InputMaybe<StringEqualsConditionInput>;
2862
2992
  };
2863
2993
  /** Response returned by `getNftEvents`. */
@@ -4171,6 +4301,7 @@ export type OnBarsUpdatedResponse = {
4171
4301
  export type OnPricesUpdatedInput = {
4172
4302
  address: Scalars['String']['input'];
4173
4303
  networkId: Scalars['Int']['input'];
4304
+ sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
4174
4305
  };
4175
4306
  /** Response returned by `onBarsUpdated`. */
4176
4307
  export type OnTokenBarsUpdatedResponse = {
@@ -4226,11 +4357,15 @@ export type OnUnconfirmedBarsUpdated = {
4226
4357
  /** The unix timestamp for the new bar. */
4227
4358
  timestamp: Scalars['Int']['output'];
4228
4359
  };
4360
+ /** Integer list condition. */
4229
4361
  export type OneOfNumberCondition = {
4230
4362
  __typename?: 'OneOfNumberCondition';
4363
+ /** The list of integers. */
4231
4364
  oneOf: Array<Scalars['Int']['output']>;
4232
4365
  };
4366
+ /** Input for integer list condition. */
4233
4367
  export type OneOfNumberConditionInput = {
4368
+ /** The list of integers. */
4234
4369
  oneOf: Array<Scalars['Int']['input']>;
4235
4370
  };
4236
4371
  export declare enum OrderState {
@@ -4995,15 +5130,27 @@ export type Price = {
4995
5130
  /** The unix timestamp for the price. */
4996
5131
  timestamp: Scalars['Int']['output'];
4997
5132
  };
5133
+ /** Webhook conditions for a price event. */
4998
5134
  export type PriceEventWebhookCondition = {
4999
5135
  __typename?: 'PriceEventWebhookCondition';
5136
+ /** The network ID the webhook is listening on. */
5000
5137
  networkId: IntEqualsCondition;
5138
+ /** The pair contract address the webhook is listening for. */
5139
+ pairAddress?: Maybe<StringEqualsCondition>;
5140
+ /** The price condition that must be met in order for the webhook to send. */
5001
5141
  priceUsd: ComparisonOperator;
5142
+ /** The token contract address the webhook is listening for. */
5002
5143
  tokenAddress: StringEqualsCondition;
5003
5144
  };
5145
+ /** Input conditions for a price event webhook. */
5004
5146
  export type PriceEventWebhookConditionInput = {
5147
+ /** The network ID to listen on. */
5005
5148
  networkId: IntEqualsConditionInput;
5149
+ /** The contract address of the pair to listen for. */
5150
+ pairAddress?: InputMaybe<StringEqualsConditionInput>;
5151
+ /** The price conditions to listen for. */
5006
5152
  priceUsd: ComparisonOperatorInput;
5153
+ /** The contract address of the token to listen for. */
5007
5154
  tokenAddress: StringEqualsConditionInput;
5008
5155
  };
5009
5156
  /** Response returned by `primeHolders`. */
@@ -5572,6 +5719,7 @@ export type Query = {
5572
5719
  getTokensInfo?: Maybe<Array<Maybe<TokenInfo>>>;
5573
5720
  /** Returns tick data for a given Uniswap V3-style pool. */
5574
5721
  getUniV3Ticks?: Maybe<UniV3TickConnection>;
5722
+ /** Returns a user's list of webhooks. */
5575
5723
  getWebhooks?: Maybe<GetWebhooksResponse>;
5576
5724
  /** Returns list of wallets that hold a given token, ordered by holdings descending. Also has the unique count of holders for that token */
5577
5725
  holders: HoldersResponse;
@@ -6039,23 +6187,39 @@ export type RawNftAssetData = {
6039
6187
  /** An optional image field that may or may not be present on the requested NFT asset smart contract. */
6040
6188
  imageUrl?: Maybe<Scalars['String']['output']>;
6041
6189
  };
6190
+ /** Webhook conditions for a raw transaction. */
6042
6191
  export type RawTransactionWebhookCondition = {
6043
6192
  __typename?: 'RawTransactionWebhookCondition';
6193
+ /** The from address to listen for. */
6044
6194
  from?: Maybe<StringEqualsCondition>;
6195
+ /** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
6045
6196
  ignoreNftEvents?: Maybe<Scalars['Boolean']['output']>;
6197
+ /** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
6046
6198
  ignoreTokenPairEvents?: Maybe<Scalars['Boolean']['output']>;
6199
+ /** Trigger the webhook if the contains or doesn't contain the specified string. */
6047
6200
  input?: Maybe<StringContainsCondition>;
6201
+ /** A list of network IDs to listen on. */
6048
6202
  networkId?: Maybe<OneOfNumberCondition>;
6203
+ /** The to address to listen for. */
6049
6204
  to?: Maybe<StringEqualsCondition>;
6205
+ /** Trigger the webhook if either the to or the from address matches. */
6050
6206
  toOrFrom?: Maybe<StringEqualsCondition>;
6051
6207
  };
6208
+ /** Input conditions for a Raw Transaction webhook. */
6052
6209
  export type RawTransactionWebhookConditionInput = {
6210
+ /** The from address to listen for. */
6053
6211
  from?: InputMaybe<StringEqualsConditionInput>;
6212
+ /** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
6054
6213
  ignoreNftEvents?: InputMaybe<Scalars['Boolean']['input']>;
6214
+ /** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
6055
6215
  ignoreTokenPairEvents?: InputMaybe<Scalars['Boolean']['input']>;
6216
+ /** Trigger the webhook if the input contains or doesn't contain the specified string. */
6056
6217
  input?: InputMaybe<StringContainsConditionInput>;
6218
+ /** A list of network IDs to listen on. */
6057
6219
  networkId?: InputMaybe<OneOfNumberConditionInput>;
6220
+ /** The to address to listen for. */
6058
6221
  to?: InputMaybe<StringEqualsConditionInput>;
6222
+ /** Trigger the webhook if either the to or the from address matches. */
6059
6223
  toOrFrom?: InputMaybe<StringEqualsConditionInput>;
6060
6224
  };
6061
6225
  export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
@@ -6082,6 +6246,9 @@ export type ReferralsPayoutData = {
6082
6246
  tokenAddressNetworkIdPaid: Scalars['String']['output'];
6083
6247
  tokenAmountPaid: Scalars['String']['output'];
6084
6248
  };
6249
+ export type RemoveUserAchievementInput = {
6250
+ userId: Scalars['String']['input'];
6251
+ };
6085
6252
  /** Price data for each supported resolution. */
6086
6253
  export type ResolutionBarData = {
6087
6254
  __typename?: 'ResolutionBarData';
@@ -6112,17 +6279,27 @@ export type ResolutionBarData = {
6112
6279
  /** 12 hour resolution. */
6113
6280
  r720?: Maybe<CurrencyBarData>;
6114
6281
  };
6282
+ /** Config for retrying failed webhook messages */
6115
6283
  export type RetrySettings = {
6116
6284
  __typename?: 'RetrySettings';
6285
+ /** The maximum number of times the webhook will retry sending a message */
6117
6286
  maxRetries?: Maybe<Scalars['Int']['output']>;
6287
+ /** The maximum time in seconds that the webhook will wait before retrying a failed message */
6118
6288
  maxRetryDelay?: Maybe<Scalars['Int']['output']>;
6289
+ /** The maximum time in seconds that the webhook will retry sending a message */
6119
6290
  maxTimeElapsed?: Maybe<Scalars['Int']['output']>;
6291
+ /** The minimum time in seconds that the webhook will wait before retrying a failed message */
6120
6292
  minRetryDelay?: Maybe<Scalars['Int']['output']>;
6121
6293
  };
6294
+ /** Config input for retrying failed webhook messages */
6122
6295
  export type RetrySettingsInput = {
6296
+ /** The maximum number of times the webhook will retry sending a message */
6123
6297
  maxRetries?: InputMaybe<Scalars['Int']['input']>;
6298
+ /** The maximum time in seconds that the webhook will wait before retrying a failed message */
6124
6299
  maxRetryDelay?: InputMaybe<Scalars['Int']['input']>;
6300
+ /** The maximum time in seconds that the webhook will retry sending a message */
6125
6301
  maxTimeElapsed?: InputMaybe<Scalars['Int']['input']>;
6302
+ /** The minimum time in seconds that the webhook will wait before retrying a failed message */
6126
6303
  minRetryDelay?: InputMaybe<Scalars['Int']['input']>;
6127
6304
  };
6128
6305
  /** Metadata for a sandwich label. */
@@ -6393,20 +6570,30 @@ export type StatsFilter = {
6393
6570
  /** The total value for the previous window. */
6394
6571
  previous?: InputMaybe<NumberFilter>;
6395
6572
  };
6573
+ /** String contains condition. */
6396
6574
  export type StringContainsCondition = {
6397
6575
  __typename?: 'StringContainsCondition';
6576
+ /** A list of substrings included within the string. */
6398
6577
  contains?: Maybe<Array<Scalars['String']['output']>>;
6578
+ /** A list of substrings not included within the string. */
6399
6579
  notContains?: Maybe<Array<Scalars['String']['output']>>;
6400
6580
  };
6581
+ /** Input for string contains condition. */
6401
6582
  export type StringContainsConditionInput = {
6583
+ /** A list of substrings to be included within the string. */
6402
6584
  contains?: InputMaybe<Array<Scalars['String']['input']>>;
6585
+ /** A list of substrings not to be included within the string. */
6403
6586
  notContains?: InputMaybe<Array<Scalars['String']['input']>>;
6404
6587
  };
6588
+ /** String equals condition. */
6405
6589
  export type StringEqualsCondition = {
6406
6590
  __typename?: 'StringEqualsCondition';
6591
+ /** The string to equal. */
6407
6592
  eq: Scalars['String']['output'];
6408
6593
  };
6594
+ /** Input for string equals condition. */
6409
6595
  export type StringEqualsConditionInput = {
6596
+ /** The string to equal. */
6410
6597
  eq: Scalars['String']['input'];
6411
6598
  };
6412
6599
  /** Input type of `StringFilter`. */
@@ -6507,6 +6694,7 @@ export type SubscriptionOnPairMetadataUpdatedArgs = {
6507
6694
  export type SubscriptionOnPriceUpdatedArgs = {
6508
6695
  address?: InputMaybe<Scalars['String']['input']>;
6509
6696
  networkId?: InputMaybe<Scalars['Int']['input']>;
6697
+ sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
6510
6698
  };
6511
6699
  export type SubscriptionOnPricesUpdatedArgs = {
6512
6700
  input: Array<OnPricesUpdatedInput>;
@@ -6872,6 +7060,8 @@ export type TokenFilters = {
6872
7060
  change24?: InputMaybe<NumberFilter>;
6873
7061
  /** The unix timestamp for the creation of the token's first pair. */
6874
7062
  createdAt?: InputMaybe<NumberFilter>;
7063
+ /** The address of the creator of the token */
7064
+ creatorAddress?: InputMaybe<Scalars['String']['input']>;
6875
7065
  /** The list of exchange contract addresses to filter by. */
6876
7066
  exchangeAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
6877
7067
  /** The list of exchange contract IDs to filter by. Applied in conjunction with `network` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
@@ -7073,6 +7263,7 @@ export declare enum TokenOfInterest {
7073
7263
  Token0 = "token0",
7074
7264
  Token1 = "token1"
7075
7265
  }
7266
+ /** Token pair event types. */
7076
7267
  export declare enum TokenPairEventType {
7077
7268
  Burn = "BURN",
7078
7269
  Buy = "BUY",
@@ -7083,30 +7274,50 @@ export declare enum TokenPairEventType {
7083
7274
  Swap = "SWAP",
7084
7275
  Sync = "SYNC"
7085
7276
  }
7277
+ /** Webhook condition for token pair event type. */
7086
7278
  export type TokenPairEventTypeCondition = {
7087
7279
  __typename?: 'TokenPairEventTypeCondition';
7280
+ /** The list of token pair event types. */
7088
7281
  oneOf: Array<TokenPairEventType>;
7089
7282
  };
7283
+ /** Input for token pair event type condition. */
7090
7284
  export type TokenPairEventTypeConditionInput = {
7285
+ /** The list of token event types to equal. */
7091
7286
  oneOf: Array<TokenPairEventType>;
7092
7287
  };
7288
+ /** Webhook conditions for a token pair event. */
7093
7289
  export type TokenPairEventWebhookCondition = {
7094
7290
  __typename?: 'TokenPairEventWebhookCondition';
7291
+ /** The event type the webhook is listening for. */
7095
7292
  eventType?: Maybe<TokenPairEventTypeCondition>;
7293
+ /** The exchange contract address the webhook is listening for. */
7096
7294
  exchangeAddress?: Maybe<StringEqualsCondition>;
7295
+ /** The maker wallet address the webhook is listening for. */
7097
7296
  maker?: Maybe<StringEqualsCondition>;
7297
+ /** The list of network IDs the webhook is listening on. */
7098
7298
  networkId?: Maybe<OneOfNumberCondition>;
7299
+ /** The pair contract address the webhook is listening for. */
7099
7300
  pairAddress?: Maybe<StringEqualsCondition>;
7301
+ /** The swap values the webhook is listening for. */
7100
7302
  swapValue?: Maybe<ComparisonOperator>;
7303
+ /** The token contract address the webhook is listening for. */
7101
7304
  tokenAddress?: Maybe<StringEqualsCondition>;
7102
7305
  };
7306
+ /** Input conditions for a token pair event webhook. */
7103
7307
  export type TokenPairEventWebhookConditionInput = {
7308
+ /** The token event type to listen for. */
7104
7309
  eventType?: InputMaybe<TokenPairEventTypeConditionInput>;
7310
+ /** The exchange contract address to listen for. */
7105
7311
  exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
7312
+ /** The maker wallet address to listen for. */
7106
7313
  maker?: InputMaybe<StringEqualsConditionInput>;
7314
+ /** A list of network IDs to listen on. */
7107
7315
  networkId?: InputMaybe<OneOfNumberConditionInput>;
7316
+ /** The pair contract address to listen for. */
7108
7317
  pairAddress?: InputMaybe<StringEqualsConditionInput>;
7318
+ /** The swap values to listen for. */
7109
7319
  swapValue?: InputMaybe<ComparisonOperatorInput>;
7320
+ /** The token contract address to listen for. */
7110
7321
  tokenAddress?: InputMaybe<StringEqualsConditionInput>;
7111
7322
  };
7112
7323
  /** The type of statistics returned. Can be `FILTERED` or `UNFILTERED` */
@@ -7452,23 +7663,39 @@ export type WashtradeLabelForEvent = {
7452
7663
  /** The label type, 'washtrade' */
7453
7664
  label: Scalars['String']['output'];
7454
7665
  };
7666
+ /** Metadata for a webhook. */
7455
7667
  export type Webhook = {
7456
7668
  __typename?: 'Webhook';
7669
+ /** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
7457
7670
  alertRecurrence: AlertRecurrence;
7671
+ /** 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). */
7458
7672
  bucketId?: Maybe<Scalars['String']['output']>;
7673
+ /** 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). */
7459
7674
  bucketSortkey?: Maybe<Scalars['String']['output']>;
7675
+ /** The url to which the webhook message should be sent. */
7460
7676
  callbackUrl: Scalars['String']['output'];
7677
+ /** The conditions which must be met in order for the webhook to send a message. */
7461
7678
  conditions: WebhookCondition;
7679
+ /** The unix timestamp for the time the webhook was created. */
7462
7680
  created: Scalars['Int']['output'];
7681
+ /** The webhook group ID used to group webhooks together for ordered message sending. */
7463
7682
  groupId?: Maybe<Scalars['String']['output']>;
7683
+ /** The ID of the webhook. */
7464
7684
  id: Scalars['String']['output'];
7685
+ /** The given name of the webhook. */
7465
7686
  name: Scalars['String']['output'];
7687
+ /** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
7466
7688
  publishingType?: Maybe<PublishingType>;
7689
+ /** The settings for retrying failed webhook messages. */
7467
7690
  retrySettings?: Maybe<RetrySettings>;
7691
+ /** The status of the webhook. Can be `ACTIVE` or `INACTIVE`. */
7468
7692
  status: Scalars['String']['output'];
7693
+ /** The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`. */
7469
7694
  webhookType: WebhookType;
7470
7695
  };
7696
+ /** Webhook conditions that must be met for each webhook type. */
7471
7697
  export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
7698
+ /** NFT marketplace names. */
7472
7699
  export declare enum WebhookNftEventFillSource {
7473
7700
  Blur = "BLUR",
7474
7701
  Coinbase = "COINBASE",
@@ -7486,11 +7713,13 @@ export declare enum WebhookNftEventFillSource {
7486
7713
  Reservoirtools = "RESERVOIRTOOLS",
7487
7714
  Soundxyz = "SOUNDXYZ"
7488
7715
  }
7716
+ /** NFT event types. */
7489
7717
  export declare enum WebhookNftEventType {
7490
7718
  Mint = "MINT",
7491
7719
  Sale = "SALE",
7492
7720
  Transfer = "TRANSFER"
7493
7721
  }
7722
+ /** The type of webhook. */
7494
7723
  export declare enum WebhookType {
7495
7724
  NftEvent = "NFT_EVENT",
7496
7725
  PriceEvent = "PRICE_EVENT",