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