@codex-data/sdk 1.0.1 → 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.
- package/README.md +6 -0
- package/dist/resources/graphql.d.ts +212 -0
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +5 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +239 -215
- package/dist/resources/graphql.ts +212 -0
- package/dist/resources/schema.graphql +456 -3
- package/dist/sdk/generated/graphql.d.ts +212 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +5 -0
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/graphql.schema.json +239 -215
- package/src/resources/graphql.ts +212 -0
- package/src/resources/schema.graphql +456 -3
- package/src/sdk/generated/graphql.ts +212 -0
|
@@ -126,6 +126,7 @@ export type AddUserAchievementInput = {
|
|
|
126
126
|
quantity: Scalars['Int']['input'];
|
|
127
127
|
userId: Scalars['String']['input'];
|
|
128
128
|
};
|
|
129
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
129
130
|
export declare enum AlertRecurrence {
|
|
130
131
|
Indefinite = "INDEFINITE",
|
|
131
132
|
Once = "ONCE"
|
|
@@ -335,19 +336,31 @@ export type CommunityNotesResponse = {
|
|
|
335
336
|
/** The list of community notes matching the filter parameters. */
|
|
336
337
|
items: Array<CommunityNote>;
|
|
337
338
|
};
|
|
339
|
+
/** Comparison operators. */
|
|
338
340
|
export type ComparisonOperator = {
|
|
339
341
|
__typename?: 'ComparisonOperator';
|
|
342
|
+
/** Equal to. */
|
|
340
343
|
eq?: Maybe<Scalars['String']['output']>;
|
|
344
|
+
/** Greater than. */
|
|
341
345
|
gt?: Maybe<Scalars['String']['output']>;
|
|
346
|
+
/** Greater than or equal to. */
|
|
342
347
|
gte?: Maybe<Scalars['String']['output']>;
|
|
348
|
+
/** Less than. */
|
|
343
349
|
lt?: Maybe<Scalars['String']['output']>;
|
|
350
|
+
/** Less than or equal to. */
|
|
344
351
|
lte?: Maybe<Scalars['String']['output']>;
|
|
345
352
|
};
|
|
353
|
+
/** Input for comparison operators. */
|
|
346
354
|
export type ComparisonOperatorInput = {
|
|
355
|
+
/** Equal to. */
|
|
347
356
|
eq?: InputMaybe<Scalars['String']['input']>;
|
|
357
|
+
/** Greater than. */
|
|
348
358
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
359
|
+
/** Greater than or equal. */
|
|
349
360
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
361
|
+
/** Less than. */
|
|
350
362
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
363
|
+
/** Less than or equal. */
|
|
351
364
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
352
365
|
};
|
|
353
366
|
/** Metadata for a contract label. */
|
|
@@ -387,81 +400,147 @@ export type CreateApiTokensInput = {
|
|
|
387
400
|
/** Number of requests allowed per token, represented as a string, default is 5000 */
|
|
388
401
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
389
402
|
};
|
|
403
|
+
/** Input for creating an NFT event webhook. */
|
|
390
404
|
export type CreateNftEventWebhookArgs = {
|
|
405
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
391
406
|
alertRecurrence: AlertRecurrence;
|
|
407
|
+
/** 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). */
|
|
392
408
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
409
|
+
/** 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). */
|
|
393
410
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
411
|
+
/** The url to which the webhook message should be sent. */
|
|
394
412
|
callbackUrl: Scalars['String']['input'];
|
|
413
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
395
414
|
conditions: NftEventWebhookConditionInput;
|
|
415
|
+
/** 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. */
|
|
396
416
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
417
|
+
/** 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. */
|
|
397
418
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
419
|
+
/** The name of the webhook (max 128 characters). */
|
|
398
420
|
name: Scalars['String']['input'];
|
|
421
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
399
422
|
publishingType?: InputMaybe<PublishingType>;
|
|
423
|
+
/** The settings for retrying failed webhook messages. */
|
|
400
424
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
425
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
401
426
|
securityToken: Scalars['String']['input'];
|
|
402
427
|
};
|
|
428
|
+
/** Input for creating NFT event webhooks. */
|
|
403
429
|
export type CreateNftEventWebhooksInput = {
|
|
430
|
+
/** A list of NFT event webhooks to create. */
|
|
404
431
|
webhooks: Array<CreateNftEventWebhookArgs>;
|
|
405
432
|
};
|
|
433
|
+
/** Input for creating a price webhook. */
|
|
406
434
|
export type CreatePriceWebhookArgs = {
|
|
435
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
407
436
|
alertRecurrence: AlertRecurrence;
|
|
437
|
+
/** 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). */
|
|
408
438
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
439
|
+
/** 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). */
|
|
409
440
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
441
|
+
/** The url to which the webhook message should be sent. */
|
|
410
442
|
callbackUrl: Scalars['String']['input'];
|
|
443
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
411
444
|
conditions: PriceEventWebhookConditionInput;
|
|
445
|
+
/** 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. */
|
|
412
446
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
447
|
+
/** 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. */
|
|
413
448
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
449
|
+
/** The name of the webhook (max 128 characters). */
|
|
414
450
|
name: Scalars['String']['input'];
|
|
451
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
415
452
|
publishingType?: InputMaybe<PublishingType>;
|
|
453
|
+
/** The settings for retrying failed webhook messages. */
|
|
416
454
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
455
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
417
456
|
securityToken: Scalars['String']['input'];
|
|
418
457
|
};
|
|
458
|
+
/** Input for creating price webhooks. */
|
|
419
459
|
export type CreatePriceWebhooksInput = {
|
|
460
|
+
/** A list of price webhooks to create. */
|
|
420
461
|
webhooks: Array<CreatePriceWebhookArgs>;
|
|
421
462
|
};
|
|
463
|
+
/** Input for creating a Raw Transaction webhook. */
|
|
422
464
|
export type CreateRawTransactionWebhookArgs = {
|
|
465
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
423
466
|
alertRecurrence: AlertRecurrence;
|
|
467
|
+
/** 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). */
|
|
424
468
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
469
|
+
/** 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). */
|
|
425
470
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
471
|
+
/** The url to which the webhook message should be sent. */
|
|
426
472
|
callbackUrl: Scalars['String']['input'];
|
|
473
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
427
474
|
conditions: RawTransactionWebhookConditionInput;
|
|
475
|
+
/** 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. */
|
|
428
476
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
477
|
+
/** 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. */
|
|
429
478
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
479
|
+
/** The name of the webhook (max 128 characters). */
|
|
430
480
|
name: Scalars['String']['input'];
|
|
481
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
431
482
|
publishingType?: InputMaybe<PublishingType>;
|
|
483
|
+
/** The settings for retrying failed webhook messages. */
|
|
432
484
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
485
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
433
486
|
securityToken: Scalars['String']['input'];
|
|
434
487
|
};
|
|
488
|
+
/** Input for creating Raw Transaction webhooks. */
|
|
435
489
|
export type CreateRawTransactionWebhooksInput = {
|
|
490
|
+
/** A list of Raw Transaction webhooks to create. */
|
|
436
491
|
webhooks: Array<CreateRawTransactionWebhookArgs>;
|
|
437
492
|
};
|
|
493
|
+
/** Input for creating a token pair event webhook. */
|
|
438
494
|
export type CreateTokenPairEventWebhookArgs = {
|
|
495
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
439
496
|
alertRecurrence: AlertRecurrence;
|
|
497
|
+
/** 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). */
|
|
440
498
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
499
|
+
/** 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). */
|
|
441
500
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
501
|
+
/** The url to which the webhook message should be sent. */
|
|
442
502
|
callbackUrl: Scalars['String']['input'];
|
|
503
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
443
504
|
conditions: TokenPairEventWebhookConditionInput;
|
|
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. */
|
|
444
506
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
507
|
+
/** 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. */
|
|
445
508
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
509
|
+
/** The name of the webhook (max 128 characters). */
|
|
446
510
|
name: Scalars['String']['input'];
|
|
511
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
447
512
|
publishingType?: InputMaybe<PublishingType>;
|
|
513
|
+
/** The settings for retrying failed webhook messages. */
|
|
448
514
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
515
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
449
516
|
securityToken: Scalars['String']['input'];
|
|
450
517
|
};
|
|
518
|
+
/** Input for creating token pair event webhooks. */
|
|
451
519
|
export type CreateTokenPairEventWebhooksInput = {
|
|
520
|
+
/** A list of token pair event webhooks to create. */
|
|
452
521
|
webhooks: Array<CreateTokenPairEventWebhookArgs>;
|
|
453
522
|
};
|
|
523
|
+
/** Input for creating webhooks. */
|
|
454
524
|
export type CreateWebhooksInput = {
|
|
525
|
+
/** Input for creating NFT event webhooks. */
|
|
455
526
|
nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
|
|
527
|
+
/** Input for creating price webhooks. */
|
|
456
528
|
priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
|
|
529
|
+
/** Input for creating raw transaction webhooks. */
|
|
457
530
|
rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
|
|
531
|
+
/** Input for creating token pair event webhooks. */
|
|
458
532
|
tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
|
|
459
533
|
};
|
|
534
|
+
/** Result returned by `createWebhooks`. */
|
|
460
535
|
export type CreateWebhooksOutput = {
|
|
461
536
|
__typename?: 'CreateWebhooksOutput';
|
|
537
|
+
/** The list of NFT event webhooks that were created. */
|
|
462
538
|
nftEventWebhooks: Array<Maybe<Webhook>>;
|
|
539
|
+
/** The list of price webhooks that were created. */
|
|
463
540
|
priceWebhooks: Array<Maybe<Webhook>>;
|
|
541
|
+
/** The list of raw transaction webhooks that were created. */
|
|
464
542
|
rawTransactionWebhooks: Array<Maybe<Webhook>>;
|
|
543
|
+
/** The list of token pair event webhooks that were created. */
|
|
465
544
|
tokenPairEventWebhooks: Array<Maybe<Webhook>>;
|
|
466
545
|
};
|
|
467
546
|
export declare enum CreationContext {
|
|
@@ -479,11 +558,15 @@ export type CurrencyBarData = {
|
|
|
479
558
|
/** Bar chart data in USD. */
|
|
480
559
|
usd: IndividualBarData;
|
|
481
560
|
};
|
|
561
|
+
/** Input for deleting webhooks. */
|
|
482
562
|
export type DeleteWebhooksInput = {
|
|
563
|
+
/** A list of webhook IDs to delete. */
|
|
483
564
|
webhookIds: Array<Scalars['String']['input']>;
|
|
484
565
|
};
|
|
566
|
+
/** Result returned by `deleteWebhooks`. */
|
|
485
567
|
export type DeleteWebhooksOutput = {
|
|
486
568
|
__typename?: 'DeleteWebhooksOutput';
|
|
569
|
+
/** The list of webhook IDs that were deleted. */
|
|
487
570
|
deletedIds?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
488
571
|
};
|
|
489
572
|
/** Detailed stats for an NFT collection. */
|
|
@@ -1247,9 +1330,12 @@ export type GetTokensInfoInput = {
|
|
|
1247
1330
|
/** The network ID the token is deployed on. */
|
|
1248
1331
|
networkId: Scalars['Int']['input'];
|
|
1249
1332
|
};
|
|
1333
|
+
/** Response returned by `getWebhooks`. */
|
|
1250
1334
|
export type GetWebhooksResponse = {
|
|
1251
1335
|
__typename?: 'GetWebhooksResponse';
|
|
1336
|
+
/** A cursor for use in pagination. */
|
|
1252
1337
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
1338
|
+
/** A list of webhooks belonging to a user. */
|
|
1253
1339
|
items?: Maybe<Array<Maybe<Webhook>>>;
|
|
1254
1340
|
};
|
|
1255
1341
|
/** The pool variant. */
|
|
@@ -1328,11 +1414,15 @@ export type IndividualBarData = {
|
|
|
1328
1414
|
/** The volume in the network's base token */
|
|
1329
1415
|
volumeNativeToken: Scalars['String']['output'];
|
|
1330
1416
|
};
|
|
1417
|
+
/** Integer equals condition. */
|
|
1331
1418
|
export type IntEqualsCondition = {
|
|
1332
1419
|
__typename?: 'IntEqualsCondition';
|
|
1420
|
+
/** The integer to equal. */
|
|
1333
1421
|
eq: Scalars['Int']['output'];
|
|
1334
1422
|
};
|
|
1423
|
+
/** Input for integer equals condition. */
|
|
1335
1424
|
export type IntEqualsConditionInput = {
|
|
1425
|
+
/** The integer to equal. */
|
|
1336
1426
|
eq: Scalars['Int']['input'];
|
|
1337
1427
|
};
|
|
1338
1428
|
/** Event labels. Can be `sandwich` or `washtrade`. */
|
|
@@ -1654,9 +1744,11 @@ export type Mutation = {
|
|
|
1654
1744
|
__typename?: 'Mutation';
|
|
1655
1745
|
/** Create a new set of short-lived api access tokens */
|
|
1656
1746
|
createApiTokens: Array<ApiToken>;
|
|
1747
|
+
/** Create price, raw transaction, token/pair event, and NFT event webhooks. */
|
|
1657
1748
|
createWebhooks: CreateWebhooksOutput;
|
|
1658
1749
|
/** Delete a single short-lived api access token by id */
|
|
1659
1750
|
deleteApiToken: Scalars['String']['output'];
|
|
1751
|
+
/** Delete multiple webhooks. */
|
|
1660
1752
|
deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
|
|
1661
1753
|
};
|
|
1662
1754
|
export type MutationCreateApiTokensArgs = {
|
|
@@ -2768,11 +2860,15 @@ export type NftEvent = {
|
|
|
2768
2860
|
/** The index of the transaction within the block. */
|
|
2769
2861
|
transactionIndex: Scalars['Int']['output'];
|
|
2770
2862
|
};
|
|
2863
|
+
/** NFT marketplaces for a webhook to listen on. */
|
|
2771
2864
|
export type NftEventFillSourceCondition = {
|
|
2772
2865
|
__typename?: 'NftEventFillSourceCondition';
|
|
2866
|
+
/** The list of NFT marketplaces. */
|
|
2773
2867
|
oneOf: Array<WebhookNftEventFillSource>;
|
|
2774
2868
|
};
|
|
2869
|
+
/** Input for NFT event fill source condition. */
|
|
2775
2870
|
export type NftEventFillSourceConditionInput = {
|
|
2871
|
+
/** The list of NFT marketplace to equal. */
|
|
2776
2872
|
oneOf: Array<WebhookNftEventFillSource>;
|
|
2777
2873
|
};
|
|
2778
2874
|
/** Details for an NFT offered or received as part of an nft trade. */
|
|
@@ -2841,34 +2937,58 @@ export declare enum NftEventTradeItemType {
|
|
|
2841
2937
|
Nft = "NFT",
|
|
2842
2938
|
Token = "TOKEN"
|
|
2843
2939
|
}
|
|
2940
|
+
/** An NFT event type for a webhook to listen for. */
|
|
2844
2941
|
export type NftEventTypeCondition = {
|
|
2845
2942
|
__typename?: 'NftEventTypeCondition';
|
|
2943
|
+
/** The NFT event type. */
|
|
2846
2944
|
eq: WebhookNftEventType;
|
|
2847
2945
|
};
|
|
2946
|
+
/** Input for NFT event type. */
|
|
2848
2947
|
export type NftEventTypeConditionInput = {
|
|
2948
|
+
/** The NFT event type to equal. */
|
|
2849
2949
|
eq: WebhookNftEventType;
|
|
2850
2950
|
};
|
|
2951
|
+
/** Webhook conditions for an NFT event. */
|
|
2851
2952
|
export type NftEventWebhookCondition = {
|
|
2852
2953
|
__typename?: 'NftEventWebhookCondition';
|
|
2954
|
+
/** The NFT collection contract address the webhook is listening for. */
|
|
2853
2955
|
contractAddress?: Maybe<StringEqualsCondition>;
|
|
2956
|
+
/** The NFT event type the webhook is listening for. */
|
|
2854
2957
|
eventType?: Maybe<NftEventTypeCondition>;
|
|
2958
|
+
/** The exchange contract address the webhook is listening for. */
|
|
2855
2959
|
exchangeAddress?: Maybe<StringEqualsCondition>;
|
|
2960
|
+
/** The NFT marketplaces the webhook is listening on. */
|
|
2856
2961
|
fillSource?: Maybe<NftEventFillSourceCondition>;
|
|
2962
|
+
/** Option to ignore all nft transfer events */
|
|
2857
2963
|
ignoreTransfers?: Maybe<Scalars['Boolean']['output']>;
|
|
2964
|
+
/** The base token price the webhook is listening for. */
|
|
2858
2965
|
individualBaseTokenPrice?: Maybe<ComparisonOperator>;
|
|
2966
|
+
/** The maker wallet address the webhook is listening for. */
|
|
2859
2967
|
maker?: Maybe<StringEqualsCondition>;
|
|
2968
|
+
/** The list of network IDs the webhook is listening on. */
|
|
2860
2969
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
2970
|
+
/** The token contract address the webhook is listening for. */
|
|
2861
2971
|
tokenAddress?: Maybe<StringEqualsCondition>;
|
|
2972
|
+
/** The token ID the webhook is listening for. */
|
|
2862
2973
|
tokenId?: Maybe<StringEqualsCondition>;
|
|
2863
2974
|
};
|
|
2975
|
+
/** Input conditions for an NFT event webhook. */
|
|
2864
2976
|
export type NftEventWebhookConditionInput = {
|
|
2977
|
+
/** The NFT collection contract address to listen for. */
|
|
2865
2978
|
contractAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
2979
|
+
/** The NFT event type to listen for. */
|
|
2866
2980
|
eventType?: InputMaybe<NftEventTypeConditionInput>;
|
|
2981
|
+
/** The exchange contract address to listen for. */
|
|
2867
2982
|
exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
2983
|
+
/** The NFT marketplaces to listen for. */
|
|
2868
2984
|
fillSource?: InputMaybe<NftEventFillSourceConditionInput>;
|
|
2985
|
+
/** Option to ignore all nft transfer events */
|
|
2869
2986
|
ignoreTransfers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2987
|
+
/** The maker wallet address to listen for. */
|
|
2870
2988
|
maker?: InputMaybe<StringEqualsConditionInput>;
|
|
2989
|
+
/** A list of network IDs to listen on. */
|
|
2871
2990
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
2991
|
+
/** The token ID to listen for. */
|
|
2872
2992
|
tokenId?: InputMaybe<StringEqualsConditionInput>;
|
|
2873
2993
|
};
|
|
2874
2994
|
/** Response returned by `getNftEvents`. */
|
|
@@ -4238,11 +4358,15 @@ export type OnUnconfirmedBarsUpdated = {
|
|
|
4238
4358
|
/** The unix timestamp for the new bar. */
|
|
4239
4359
|
timestamp: Scalars['Int']['output'];
|
|
4240
4360
|
};
|
|
4361
|
+
/** Integer list condition. */
|
|
4241
4362
|
export type OneOfNumberCondition = {
|
|
4242
4363
|
__typename?: 'OneOfNumberCondition';
|
|
4364
|
+
/** The list of integers. */
|
|
4243
4365
|
oneOf: Array<Scalars['Int']['output']>;
|
|
4244
4366
|
};
|
|
4367
|
+
/** Input for integer list condition. */
|
|
4245
4368
|
export type OneOfNumberConditionInput = {
|
|
4369
|
+
/** The list of integers. */
|
|
4246
4370
|
oneOf: Array<Scalars['Int']['input']>;
|
|
4247
4371
|
};
|
|
4248
4372
|
export declare enum OrderState {
|
|
@@ -5007,15 +5131,27 @@ export type Price = {
|
|
|
5007
5131
|
/** The unix timestamp for the price. */
|
|
5008
5132
|
timestamp: Scalars['Int']['output'];
|
|
5009
5133
|
};
|
|
5134
|
+
/** Webhook conditions for a price event. */
|
|
5010
5135
|
export type PriceEventWebhookCondition = {
|
|
5011
5136
|
__typename?: 'PriceEventWebhookCondition';
|
|
5137
|
+
/** The network ID the webhook is listening on. */
|
|
5012
5138
|
networkId: IntEqualsCondition;
|
|
5139
|
+
/** The pair contract address the webhook is listening for. */
|
|
5140
|
+
pairAddress?: Maybe<StringEqualsCondition>;
|
|
5141
|
+
/** The price condition that must be met in order for the webhook to send. */
|
|
5013
5142
|
priceUsd: ComparisonOperator;
|
|
5143
|
+
/** The token contract address the webhook is listening for. */
|
|
5014
5144
|
tokenAddress: StringEqualsCondition;
|
|
5015
5145
|
};
|
|
5146
|
+
/** Input conditions for a price event webhook. */
|
|
5016
5147
|
export type PriceEventWebhookConditionInput = {
|
|
5148
|
+
/** The network ID to listen on. */
|
|
5017
5149
|
networkId: IntEqualsConditionInput;
|
|
5150
|
+
/** The contract address of the pair to listen for. */
|
|
5151
|
+
pairAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
5152
|
+
/** The price conditions to listen for. */
|
|
5018
5153
|
priceUsd: ComparisonOperatorInput;
|
|
5154
|
+
/** The contract address of the token to listen for. */
|
|
5019
5155
|
tokenAddress: StringEqualsConditionInput;
|
|
5020
5156
|
};
|
|
5021
5157
|
/** Response returned by `primeHolders`. */
|
|
@@ -5584,6 +5720,7 @@ export type Query = {
|
|
|
5584
5720
|
getTokensInfo?: Maybe<Array<Maybe<TokenInfo>>>;
|
|
5585
5721
|
/** Returns tick data for a given Uniswap V3-style pool. */
|
|
5586
5722
|
getUniV3Ticks?: Maybe<UniV3TickConnection>;
|
|
5723
|
+
/** Returns a user's list of webhooks. */
|
|
5587
5724
|
getWebhooks?: Maybe<GetWebhooksResponse>;
|
|
5588
5725
|
/** Returns list of wallets that hold a given token, ordered by holdings descending. Also has the unique count of holders for that token */
|
|
5589
5726
|
holders: HoldersResponse;
|
|
@@ -6051,23 +6188,39 @@ export type RawNftAssetData = {
|
|
|
6051
6188
|
/** An optional image field that may or may not be present on the requested NFT asset smart contract. */
|
|
6052
6189
|
imageUrl?: Maybe<Scalars['String']['output']>;
|
|
6053
6190
|
};
|
|
6191
|
+
/** Webhook conditions for a raw transaction. */
|
|
6054
6192
|
export type RawTransactionWebhookCondition = {
|
|
6055
6193
|
__typename?: 'RawTransactionWebhookCondition';
|
|
6194
|
+
/** The from address to listen for. */
|
|
6056
6195
|
from?: Maybe<StringEqualsCondition>;
|
|
6196
|
+
/** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
|
|
6057
6197
|
ignoreNftEvents?: Maybe<Scalars['Boolean']['output']>;
|
|
6198
|
+
/** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
|
|
6058
6199
|
ignoreTokenPairEvents?: Maybe<Scalars['Boolean']['output']>;
|
|
6200
|
+
/** Trigger the webhook if the contains or doesn't contain the specified string. */
|
|
6059
6201
|
input?: Maybe<StringContainsCondition>;
|
|
6202
|
+
/** A list of network IDs to listen on. */
|
|
6060
6203
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
6204
|
+
/** The to address to listen for. */
|
|
6061
6205
|
to?: Maybe<StringEqualsCondition>;
|
|
6206
|
+
/** Trigger the webhook if either the to or the from address matches. */
|
|
6062
6207
|
toOrFrom?: Maybe<StringEqualsCondition>;
|
|
6063
6208
|
};
|
|
6209
|
+
/** Input conditions for a Raw Transaction webhook. */
|
|
6064
6210
|
export type RawTransactionWebhookConditionInput = {
|
|
6211
|
+
/** The from address to listen for. */
|
|
6065
6212
|
from?: InputMaybe<StringEqualsConditionInput>;
|
|
6213
|
+
/** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
|
|
6066
6214
|
ignoreNftEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6215
|
+
/** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
|
|
6067
6216
|
ignoreTokenPairEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6217
|
+
/** Trigger the webhook if the input contains or doesn't contain the specified string. */
|
|
6068
6218
|
input?: InputMaybe<StringContainsConditionInput>;
|
|
6219
|
+
/** A list of network IDs to listen on. */
|
|
6069
6220
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
6221
|
+
/** The to address to listen for. */
|
|
6070
6222
|
to?: InputMaybe<StringEqualsConditionInput>;
|
|
6223
|
+
/** Trigger the webhook if either the to or the from address matches. */
|
|
6071
6224
|
toOrFrom?: InputMaybe<StringEqualsConditionInput>;
|
|
6072
6225
|
};
|
|
6073
6226
|
export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
|
|
@@ -6127,17 +6280,27 @@ export type ResolutionBarData = {
|
|
|
6127
6280
|
/** 12 hour resolution. */
|
|
6128
6281
|
r720?: Maybe<CurrencyBarData>;
|
|
6129
6282
|
};
|
|
6283
|
+
/** Config for retrying failed webhook messages */
|
|
6130
6284
|
export type RetrySettings = {
|
|
6131
6285
|
__typename?: 'RetrySettings';
|
|
6286
|
+
/** The maximum number of times the webhook will retry sending a message */
|
|
6132
6287
|
maxRetries?: Maybe<Scalars['Int']['output']>;
|
|
6288
|
+
/** The maximum time in seconds that the webhook will wait before retrying a failed message */
|
|
6133
6289
|
maxRetryDelay?: Maybe<Scalars['Int']['output']>;
|
|
6290
|
+
/** The maximum time in seconds that the webhook will retry sending a message */
|
|
6134
6291
|
maxTimeElapsed?: Maybe<Scalars['Int']['output']>;
|
|
6292
|
+
/** The minimum time in seconds that the webhook will wait before retrying a failed message */
|
|
6135
6293
|
minRetryDelay?: Maybe<Scalars['Int']['output']>;
|
|
6136
6294
|
};
|
|
6295
|
+
/** Config input for retrying failed webhook messages */
|
|
6137
6296
|
export type RetrySettingsInput = {
|
|
6297
|
+
/** The maximum number of times the webhook will retry sending a message */
|
|
6138
6298
|
maxRetries?: InputMaybe<Scalars['Int']['input']>;
|
|
6299
|
+
/** The maximum time in seconds that the webhook will wait before retrying a failed message */
|
|
6139
6300
|
maxRetryDelay?: InputMaybe<Scalars['Int']['input']>;
|
|
6301
|
+
/** The maximum time in seconds that the webhook will retry sending a message */
|
|
6140
6302
|
maxTimeElapsed?: InputMaybe<Scalars['Int']['input']>;
|
|
6303
|
+
/** The minimum time in seconds that the webhook will wait before retrying a failed message */
|
|
6141
6304
|
minRetryDelay?: InputMaybe<Scalars['Int']['input']>;
|
|
6142
6305
|
};
|
|
6143
6306
|
/** Metadata for a sandwich label. */
|
|
@@ -6408,20 +6571,30 @@ export type StatsFilter = {
|
|
|
6408
6571
|
/** The total value for the previous window. */
|
|
6409
6572
|
previous?: InputMaybe<NumberFilter>;
|
|
6410
6573
|
};
|
|
6574
|
+
/** String contains condition. */
|
|
6411
6575
|
export type StringContainsCondition = {
|
|
6412
6576
|
__typename?: 'StringContainsCondition';
|
|
6577
|
+
/** A list of substrings included within the string. */
|
|
6413
6578
|
contains?: Maybe<Array<Scalars['String']['output']>>;
|
|
6579
|
+
/** A list of substrings not included within the string. */
|
|
6414
6580
|
notContains?: Maybe<Array<Scalars['String']['output']>>;
|
|
6415
6581
|
};
|
|
6582
|
+
/** Input for string contains condition. */
|
|
6416
6583
|
export type StringContainsConditionInput = {
|
|
6584
|
+
/** A list of substrings to be included within the string. */
|
|
6417
6585
|
contains?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6586
|
+
/** A list of substrings not to be included within the string. */
|
|
6418
6587
|
notContains?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6419
6588
|
};
|
|
6589
|
+
/** String equals condition. */
|
|
6420
6590
|
export type StringEqualsCondition = {
|
|
6421
6591
|
__typename?: 'StringEqualsCondition';
|
|
6592
|
+
/** The string to equal. */
|
|
6422
6593
|
eq: Scalars['String']['output'];
|
|
6423
6594
|
};
|
|
6595
|
+
/** Input for string equals condition. */
|
|
6424
6596
|
export type StringEqualsConditionInput = {
|
|
6597
|
+
/** The string to equal. */
|
|
6425
6598
|
eq: Scalars['String']['input'];
|
|
6426
6599
|
};
|
|
6427
6600
|
/** Input type of `StringFilter`. */
|
|
@@ -7091,6 +7264,7 @@ export declare enum TokenOfInterest {
|
|
|
7091
7264
|
Token0 = "token0",
|
|
7092
7265
|
Token1 = "token1"
|
|
7093
7266
|
}
|
|
7267
|
+
/** Token pair event types. */
|
|
7094
7268
|
export declare enum TokenPairEventType {
|
|
7095
7269
|
Burn = "BURN",
|
|
7096
7270
|
Buy = "BUY",
|
|
@@ -7101,30 +7275,50 @@ export declare enum TokenPairEventType {
|
|
|
7101
7275
|
Swap = "SWAP",
|
|
7102
7276
|
Sync = "SYNC"
|
|
7103
7277
|
}
|
|
7278
|
+
/** Webhook condition for token pair event type. */
|
|
7104
7279
|
export type TokenPairEventTypeCondition = {
|
|
7105
7280
|
__typename?: 'TokenPairEventTypeCondition';
|
|
7281
|
+
/** The list of token pair event types. */
|
|
7106
7282
|
oneOf: Array<TokenPairEventType>;
|
|
7107
7283
|
};
|
|
7284
|
+
/** Input for token pair event type condition. */
|
|
7108
7285
|
export type TokenPairEventTypeConditionInput = {
|
|
7286
|
+
/** The list of token event types to equal. */
|
|
7109
7287
|
oneOf: Array<TokenPairEventType>;
|
|
7110
7288
|
};
|
|
7289
|
+
/** Webhook conditions for a token pair event. */
|
|
7111
7290
|
export type TokenPairEventWebhookCondition = {
|
|
7112
7291
|
__typename?: 'TokenPairEventWebhookCondition';
|
|
7292
|
+
/** The event type the webhook is listening for. */
|
|
7113
7293
|
eventType?: Maybe<TokenPairEventTypeCondition>;
|
|
7294
|
+
/** The exchange contract address the webhook is listening for. */
|
|
7114
7295
|
exchangeAddress?: Maybe<StringEqualsCondition>;
|
|
7296
|
+
/** The maker wallet address the webhook is listening for. */
|
|
7115
7297
|
maker?: Maybe<StringEqualsCondition>;
|
|
7298
|
+
/** The list of network IDs the webhook is listening on. */
|
|
7116
7299
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
7300
|
+
/** The pair contract address the webhook is listening for. */
|
|
7117
7301
|
pairAddress?: Maybe<StringEqualsCondition>;
|
|
7302
|
+
/** The swap values the webhook is listening for. */
|
|
7118
7303
|
swapValue?: Maybe<ComparisonOperator>;
|
|
7304
|
+
/** The token contract address the webhook is listening for. */
|
|
7119
7305
|
tokenAddress?: Maybe<StringEqualsCondition>;
|
|
7120
7306
|
};
|
|
7307
|
+
/** Input conditions for a token pair event webhook. */
|
|
7121
7308
|
export type TokenPairEventWebhookConditionInput = {
|
|
7309
|
+
/** The token event type to listen for. */
|
|
7122
7310
|
eventType?: InputMaybe<TokenPairEventTypeConditionInput>;
|
|
7311
|
+
/** The exchange contract address to listen for. */
|
|
7123
7312
|
exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7313
|
+
/** The maker wallet address to listen for. */
|
|
7124
7314
|
maker?: InputMaybe<StringEqualsConditionInput>;
|
|
7315
|
+
/** A list of network IDs to listen on. */
|
|
7125
7316
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
7317
|
+
/** The pair contract address to listen for. */
|
|
7126
7318
|
pairAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7319
|
+
/** The swap values to listen for. */
|
|
7127
7320
|
swapValue?: InputMaybe<ComparisonOperatorInput>;
|
|
7321
|
+
/** The token contract address to listen for. */
|
|
7128
7322
|
tokenAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7129
7323
|
};
|
|
7130
7324
|
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED` */
|
|
@@ -7470,23 +7664,39 @@ export type WashtradeLabelForEvent = {
|
|
|
7470
7664
|
/** The label type, 'washtrade' */
|
|
7471
7665
|
label: Scalars['String']['output'];
|
|
7472
7666
|
};
|
|
7667
|
+
/** Metadata for a webhook. */
|
|
7473
7668
|
export type Webhook = {
|
|
7474
7669
|
__typename?: 'Webhook';
|
|
7670
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
7475
7671
|
alertRecurrence: AlertRecurrence;
|
|
7672
|
+
/** 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). */
|
|
7476
7673
|
bucketId?: Maybe<Scalars['String']['output']>;
|
|
7674
|
+
/** 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). */
|
|
7477
7675
|
bucketSortkey?: Maybe<Scalars['String']['output']>;
|
|
7676
|
+
/** The url to which the webhook message should be sent. */
|
|
7478
7677
|
callbackUrl: Scalars['String']['output'];
|
|
7678
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
7479
7679
|
conditions: WebhookCondition;
|
|
7680
|
+
/** The unix timestamp for the time the webhook was created. */
|
|
7480
7681
|
created: Scalars['Int']['output'];
|
|
7682
|
+
/** The webhook group ID used to group webhooks together for ordered message sending. */
|
|
7481
7683
|
groupId?: Maybe<Scalars['String']['output']>;
|
|
7684
|
+
/** The ID of the webhook. */
|
|
7482
7685
|
id: Scalars['String']['output'];
|
|
7686
|
+
/** The given name of the webhook. */
|
|
7483
7687
|
name: Scalars['String']['output'];
|
|
7688
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
7484
7689
|
publishingType?: Maybe<PublishingType>;
|
|
7690
|
+
/** The settings for retrying failed webhook messages. */
|
|
7485
7691
|
retrySettings?: Maybe<RetrySettings>;
|
|
7692
|
+
/** The status of the webhook. Can be `ACTIVE` or `INACTIVE`. */
|
|
7486
7693
|
status: Scalars['String']['output'];
|
|
7694
|
+
/** The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`. */
|
|
7487
7695
|
webhookType: WebhookType;
|
|
7488
7696
|
};
|
|
7697
|
+
/** Webhook conditions that must be met for each webhook type. */
|
|
7489
7698
|
export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
|
|
7699
|
+
/** NFT marketplace names. */
|
|
7490
7700
|
export declare enum WebhookNftEventFillSource {
|
|
7491
7701
|
Blur = "BLUR",
|
|
7492
7702
|
Coinbase = "COINBASE",
|
|
@@ -7504,11 +7714,13 @@ export declare enum WebhookNftEventFillSource {
|
|
|
7504
7714
|
Reservoirtools = "RESERVOIRTOOLS",
|
|
7505
7715
|
Soundxyz = "SOUNDXYZ"
|
|
7506
7716
|
}
|
|
7717
|
+
/** NFT event types. */
|
|
7507
7718
|
export declare enum WebhookNftEventType {
|
|
7508
7719
|
Mint = "MINT",
|
|
7509
7720
|
Sale = "SALE",
|
|
7510
7721
|
Transfer = "TRANSFER"
|
|
7511
7722
|
}
|
|
7723
|
+
/** The type of webhook. */
|
|
7512
7724
|
export declare enum WebhookType {
|
|
7513
7725
|
NftEvent = "NFT_EVENT",
|
|
7514
7726
|
PriceEvent = "PRICE_EVENT",
|