@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/src/resources/graphql.ts
CHANGED
|
@@ -93,6 +93,7 @@ export type AddUserAchievementInput = {
|
|
|
93
93
|
userId: Scalars['String']['input'];
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
96
97
|
export enum AlertRecurrence {
|
|
97
98
|
Indefinite = 'INDEFINITE',
|
|
98
99
|
Once = 'ONCE'
|
|
@@ -320,20 +321,32 @@ export type CommunityNotesResponse = {
|
|
|
320
321
|
items: Array<CommunityNote>;
|
|
321
322
|
};
|
|
322
323
|
|
|
324
|
+
/** Comparison operators. */
|
|
323
325
|
export type ComparisonOperator = {
|
|
324
326
|
__typename?: 'ComparisonOperator';
|
|
327
|
+
/** Equal to. */
|
|
325
328
|
eq?: Maybe<Scalars['String']['output']>;
|
|
329
|
+
/** Greater than. */
|
|
326
330
|
gt?: Maybe<Scalars['String']['output']>;
|
|
331
|
+
/** Greater than or equal to. */
|
|
327
332
|
gte?: Maybe<Scalars['String']['output']>;
|
|
333
|
+
/** Less than. */
|
|
328
334
|
lt?: Maybe<Scalars['String']['output']>;
|
|
335
|
+
/** Less than or equal to. */
|
|
329
336
|
lte?: Maybe<Scalars['String']['output']>;
|
|
330
337
|
};
|
|
331
338
|
|
|
339
|
+
/** Input for comparison operators. */
|
|
332
340
|
export type ComparisonOperatorInput = {
|
|
341
|
+
/** Equal to. */
|
|
333
342
|
eq?: InputMaybe<Scalars['String']['input']>;
|
|
343
|
+
/** Greater than. */
|
|
334
344
|
gt?: InputMaybe<Scalars['String']['input']>;
|
|
345
|
+
/** Greater than or equal. */
|
|
335
346
|
gte?: InputMaybe<Scalars['String']['input']>;
|
|
347
|
+
/** Less than. */
|
|
336
348
|
lt?: InputMaybe<Scalars['String']['input']>;
|
|
349
|
+
/** Less than or equal. */
|
|
337
350
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
338
351
|
};
|
|
339
352
|
|
|
@@ -380,90 +393,156 @@ export type CreateApiTokensInput = {
|
|
|
380
393
|
requestLimit?: InputMaybe<Scalars['String']['input']>;
|
|
381
394
|
};
|
|
382
395
|
|
|
396
|
+
/** Input for creating an NFT event webhook. */
|
|
383
397
|
export type CreateNftEventWebhookArgs = {
|
|
398
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
384
399
|
alertRecurrence: AlertRecurrence;
|
|
400
|
+
/** 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
401
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
402
|
+
/** 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
403
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
404
|
+
/** The url to which the webhook message should be sent. */
|
|
387
405
|
callbackUrl: Scalars['String']['input'];
|
|
406
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
388
407
|
conditions: NftEventWebhookConditionInput;
|
|
408
|
+
/** 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
409
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
410
|
+
/** 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
411
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
412
|
+
/** The name of the webhook (max 128 characters). */
|
|
391
413
|
name: Scalars['String']['input'];
|
|
414
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
392
415
|
publishingType?: InputMaybe<PublishingType>;
|
|
416
|
+
/** The settings for retrying failed webhook messages. */
|
|
393
417
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
418
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
394
419
|
securityToken: Scalars['String']['input'];
|
|
395
420
|
};
|
|
396
421
|
|
|
422
|
+
/** Input for creating NFT event webhooks. */
|
|
397
423
|
export type CreateNftEventWebhooksInput = {
|
|
424
|
+
/** A list of NFT event webhooks to create. */
|
|
398
425
|
webhooks: Array<CreateNftEventWebhookArgs>;
|
|
399
426
|
};
|
|
400
427
|
|
|
428
|
+
/** Input for creating a price webhook. */
|
|
401
429
|
export type CreatePriceWebhookArgs = {
|
|
430
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
402
431
|
alertRecurrence: AlertRecurrence;
|
|
432
|
+
/** 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). */
|
|
403
433
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
434
|
+
/** 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). */
|
|
404
435
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
436
|
+
/** The url to which the webhook message should be sent. */
|
|
405
437
|
callbackUrl: Scalars['String']['input'];
|
|
438
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
406
439
|
conditions: PriceEventWebhookConditionInput;
|
|
440
|
+
/** 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. */
|
|
407
441
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
442
|
+
/** 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. */
|
|
408
443
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
444
|
+
/** The name of the webhook (max 128 characters). */
|
|
409
445
|
name: Scalars['String']['input'];
|
|
446
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
410
447
|
publishingType?: InputMaybe<PublishingType>;
|
|
448
|
+
/** The settings for retrying failed webhook messages. */
|
|
411
449
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
450
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
412
451
|
securityToken: Scalars['String']['input'];
|
|
413
452
|
};
|
|
414
453
|
|
|
454
|
+
/** Input for creating price webhooks. */
|
|
415
455
|
export type CreatePriceWebhooksInput = {
|
|
456
|
+
/** A list of price webhooks to create. */
|
|
416
457
|
webhooks: Array<CreatePriceWebhookArgs>;
|
|
417
458
|
};
|
|
418
459
|
|
|
460
|
+
/** Input for creating a Raw Transaction webhook. */
|
|
419
461
|
export type CreateRawTransactionWebhookArgs = {
|
|
462
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
420
463
|
alertRecurrence: AlertRecurrence;
|
|
464
|
+
/** 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). */
|
|
421
465
|
bucketId?: InputMaybe<Scalars['String']['input']>;
|
|
466
|
+
/** 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). */
|
|
422
467
|
bucketSortkey?: InputMaybe<Scalars['String']['input']>;
|
|
468
|
+
/** The url to which the webhook message should be sent. */
|
|
423
469
|
callbackUrl: Scalars['String']['input'];
|
|
470
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
424
471
|
conditions: RawTransactionWebhookConditionInput;
|
|
472
|
+
/** If enabled, new webhooks won't be created if a webhook with the same parameters already exists. If callbackUrl, conditions, publishingType, and alertRecurrence all match, then we return the existing webhook. */
|
|
425
473
|
deduplicate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
474
|
+
/** A webhook group ID (max 64 characters). Can be used to group webhooks so that their messages are kept in order as a group rather than by individual webhook. */
|
|
426
475
|
groupId?: InputMaybe<Scalars['String']['input']>;
|
|
476
|
+
/** The name of the webhook (max 128 characters). */
|
|
427
477
|
name: Scalars['String']['input'];
|
|
478
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
428
479
|
publishingType?: InputMaybe<PublishingType>;
|
|
480
|
+
/** The settings for retrying failed webhook messages. */
|
|
429
481
|
retrySettings?: InputMaybe<RetrySettingsInput>;
|
|
482
|
+
/** A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security. */
|
|
430
483
|
securityToken: Scalars['String']['input'];
|
|
431
484
|
};
|
|
432
485
|
|
|
486
|
+
/** Input for creating Raw Transaction webhooks. */
|
|
433
487
|
export type CreateRawTransactionWebhooksInput = {
|
|
488
|
+
/** A list of Raw Transaction webhooks to create. */
|
|
434
489
|
webhooks: Array<CreateRawTransactionWebhookArgs>;
|
|
435
490
|
};
|
|
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
|
};
|
|
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
|
};
|
|
454
523
|
|
|
524
|
+
/** Input for creating webhooks. */
|
|
455
525
|
export type CreateWebhooksInput = {
|
|
526
|
+
/** Input for creating NFT event webhooks. */
|
|
456
527
|
nftEventWebhooksInput?: InputMaybe<CreateNftEventWebhooksInput>;
|
|
528
|
+
/** Input for creating price webhooks. */
|
|
457
529
|
priceWebhooksInput?: InputMaybe<CreatePriceWebhooksInput>;
|
|
530
|
+
/** Input for creating raw transaction webhooks. */
|
|
458
531
|
rawTransactionWebhooksInput?: InputMaybe<CreateRawTransactionWebhooksInput>;
|
|
532
|
+
/** Input for creating token pair event webhooks. */
|
|
459
533
|
tokenPairEventWebhooksInput?: InputMaybe<CreateTokenPairEventWebhooksInput>;
|
|
460
534
|
};
|
|
461
535
|
|
|
536
|
+
/** Result returned by `createWebhooks`. */
|
|
462
537
|
export type CreateWebhooksOutput = {
|
|
463
538
|
__typename?: 'CreateWebhooksOutput';
|
|
539
|
+
/** The list of NFT event webhooks that were created. */
|
|
464
540
|
nftEventWebhooks: Array<Maybe<Webhook>>;
|
|
541
|
+
/** The list of price webhooks that were created. */
|
|
465
542
|
priceWebhooks: Array<Maybe<Webhook>>;
|
|
543
|
+
/** The list of raw transaction webhooks that were created. */
|
|
466
544
|
rawTransactionWebhooks: Array<Maybe<Webhook>>;
|
|
545
|
+
/** The list of token pair event webhooks that were created. */
|
|
467
546
|
tokenPairEventWebhooks: Array<Maybe<Webhook>>;
|
|
468
547
|
};
|
|
469
548
|
|
|
@@ -484,12 +563,16 @@ export type CurrencyBarData = {
|
|
|
484
563
|
usd: IndividualBarData;
|
|
485
564
|
};
|
|
486
565
|
|
|
566
|
+
/** Input for deleting webhooks. */
|
|
487
567
|
export type DeleteWebhooksInput = {
|
|
568
|
+
/** A list of webhook IDs to delete. */
|
|
488
569
|
webhookIds: Array<Scalars['String']['input']>;
|
|
489
570
|
};
|
|
490
571
|
|
|
572
|
+
/** Result returned by `deleteWebhooks`. */
|
|
491
573
|
export type DeleteWebhooksOutput = {
|
|
492
574
|
__typename?: 'DeleteWebhooksOutput';
|
|
575
|
+
/** The list of webhook IDs that were deleted. */
|
|
493
576
|
deletedIds?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
494
577
|
};
|
|
495
578
|
|
|
@@ -1307,9 +1390,12 @@ export type GetTokensInfoInput = {
|
|
|
1307
1390
|
networkId: Scalars['Int']['input'];
|
|
1308
1391
|
};
|
|
1309
1392
|
|
|
1393
|
+
/** Response returned by `getWebhooks`. */
|
|
1310
1394
|
export type GetWebhooksResponse = {
|
|
1311
1395
|
__typename?: 'GetWebhooksResponse';
|
|
1396
|
+
/** A cursor for use in pagination. */
|
|
1312
1397
|
cursor?: Maybe<Scalars['String']['output']>;
|
|
1398
|
+
/** A list of webhooks belonging to a user. */
|
|
1313
1399
|
items?: Maybe<Array<Maybe<Webhook>>>;
|
|
1314
1400
|
};
|
|
1315
1401
|
|
|
@@ -1396,12 +1482,16 @@ export type IndividualBarData = {
|
|
|
1396
1482
|
volumeNativeToken: Scalars['String']['output'];
|
|
1397
1483
|
};
|
|
1398
1484
|
|
|
1485
|
+
/** Integer equals condition. */
|
|
1399
1486
|
export type IntEqualsCondition = {
|
|
1400
1487
|
__typename?: 'IntEqualsCondition';
|
|
1488
|
+
/** The integer to equal. */
|
|
1401
1489
|
eq: Scalars['Int']['output'];
|
|
1402
1490
|
};
|
|
1403
1491
|
|
|
1492
|
+
/** Input for integer equals condition. */
|
|
1404
1493
|
export type IntEqualsConditionInput = {
|
|
1494
|
+
/** The integer to equal. */
|
|
1405
1495
|
eq: Scalars['Int']['input'];
|
|
1406
1496
|
};
|
|
1407
1497
|
|
|
@@ -1748,9 +1838,11 @@ export type Mutation = {
|
|
|
1748
1838
|
__typename?: 'Mutation';
|
|
1749
1839
|
/** Create a new set of short-lived api access tokens */
|
|
1750
1840
|
createApiTokens: Array<ApiToken>;
|
|
1841
|
+
/** Create price, raw transaction, token/pair event, and NFT event webhooks. */
|
|
1751
1842
|
createWebhooks: CreateWebhooksOutput;
|
|
1752
1843
|
/** Delete a single short-lived api access token by id */
|
|
1753
1844
|
deleteApiToken: Scalars['String']['output'];
|
|
1845
|
+
/** Delete multiple webhooks. */
|
|
1754
1846
|
deleteWebhooks?: Maybe<DeleteWebhooksOutput>;
|
|
1755
1847
|
};
|
|
1756
1848
|
|
|
@@ -2901,12 +2993,16 @@ export type NftEvent = {
|
|
|
2901
2993
|
transactionIndex: Scalars['Int']['output'];
|
|
2902
2994
|
};
|
|
2903
2995
|
|
|
2996
|
+
/** NFT marketplaces for a webhook to listen on. */
|
|
2904
2997
|
export type NftEventFillSourceCondition = {
|
|
2905
2998
|
__typename?: 'NftEventFillSourceCondition';
|
|
2999
|
+
/** The list of NFT marketplaces. */
|
|
2906
3000
|
oneOf: Array<WebhookNftEventFillSource>;
|
|
2907
3001
|
};
|
|
2908
3002
|
|
|
3003
|
+
/** Input for NFT event fill source condition. */
|
|
2909
3004
|
export type NftEventFillSourceConditionInput = {
|
|
3005
|
+
/** The list of NFT marketplace to equal. */
|
|
2910
3006
|
oneOf: Array<WebhookNftEventFillSource>;
|
|
2911
3007
|
};
|
|
2912
3008
|
|
|
@@ -2982,37 +3078,61 @@ export enum NftEventTradeItemType {
|
|
|
2982
3078
|
Token = 'TOKEN'
|
|
2983
3079
|
}
|
|
2984
3080
|
|
|
3081
|
+
/** An NFT event type for a webhook to listen for. */
|
|
2985
3082
|
export type NftEventTypeCondition = {
|
|
2986
3083
|
__typename?: 'NftEventTypeCondition';
|
|
3084
|
+
/** The NFT event type. */
|
|
2987
3085
|
eq: WebhookNftEventType;
|
|
2988
3086
|
};
|
|
2989
3087
|
|
|
3088
|
+
/** Input for NFT event type. */
|
|
2990
3089
|
export type NftEventTypeConditionInput = {
|
|
3090
|
+
/** The NFT event type to equal. */
|
|
2991
3091
|
eq: WebhookNftEventType;
|
|
2992
3092
|
};
|
|
2993
3093
|
|
|
3094
|
+
/** Webhook conditions for an NFT event. */
|
|
2994
3095
|
export type NftEventWebhookCondition = {
|
|
2995
3096
|
__typename?: 'NftEventWebhookCondition';
|
|
3097
|
+
/** The NFT collection contract address the webhook is listening for. */
|
|
2996
3098
|
contractAddress?: Maybe<StringEqualsCondition>;
|
|
3099
|
+
/** The NFT event type the webhook is listening for. */
|
|
2997
3100
|
eventType?: Maybe<NftEventTypeCondition>;
|
|
3101
|
+
/** The exchange contract address the webhook is listening for. */
|
|
2998
3102
|
exchangeAddress?: Maybe<StringEqualsCondition>;
|
|
3103
|
+
/** The NFT marketplaces the webhook is listening on. */
|
|
2999
3104
|
fillSource?: Maybe<NftEventFillSourceCondition>;
|
|
3105
|
+
/** Option to ignore all nft transfer events */
|
|
3000
3106
|
ignoreTransfers?: Maybe<Scalars['Boolean']['output']>;
|
|
3107
|
+
/** The base token price the webhook is listening for. */
|
|
3001
3108
|
individualBaseTokenPrice?: Maybe<ComparisonOperator>;
|
|
3109
|
+
/** The maker wallet address the webhook is listening for. */
|
|
3002
3110
|
maker?: Maybe<StringEqualsCondition>;
|
|
3111
|
+
/** The list of network IDs the webhook is listening on. */
|
|
3003
3112
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
3113
|
+
/** The token contract address the webhook is listening for. */
|
|
3004
3114
|
tokenAddress?: Maybe<StringEqualsCondition>;
|
|
3115
|
+
/** The token ID the webhook is listening for. */
|
|
3005
3116
|
tokenId?: Maybe<StringEqualsCondition>;
|
|
3006
3117
|
};
|
|
3007
3118
|
|
|
3119
|
+
/** Input conditions for an NFT event webhook. */
|
|
3008
3120
|
export type NftEventWebhookConditionInput = {
|
|
3121
|
+
/** The NFT collection contract address to listen for. */
|
|
3009
3122
|
contractAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
3123
|
+
/** The NFT event type to listen for. */
|
|
3010
3124
|
eventType?: InputMaybe<NftEventTypeConditionInput>;
|
|
3125
|
+
/** The exchange contract address to listen for. */
|
|
3011
3126
|
exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
3127
|
+
/** The NFT marketplaces to listen for. */
|
|
3012
3128
|
fillSource?: InputMaybe<NftEventFillSourceConditionInput>;
|
|
3129
|
+
/** Option to ignore all nft transfer events */
|
|
3013
3130
|
ignoreTransfers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3131
|
+
/** The maker wallet address to listen for. */
|
|
3014
3132
|
maker?: InputMaybe<StringEqualsConditionInput>;
|
|
3133
|
+
/** A list of network IDs to listen on. */
|
|
3015
3134
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
3135
|
+
/** The token ID to listen for. */
|
|
3016
3136
|
tokenId?: InputMaybe<StringEqualsConditionInput>;
|
|
3017
3137
|
};
|
|
3018
3138
|
|
|
@@ -4439,12 +4559,16 @@ export type OnUnconfirmedBarsUpdated = {
|
|
|
4439
4559
|
timestamp: Scalars['Int']['output'];
|
|
4440
4560
|
};
|
|
4441
4561
|
|
|
4562
|
+
/** Integer list condition. */
|
|
4442
4563
|
export type OneOfNumberCondition = {
|
|
4443
4564
|
__typename?: 'OneOfNumberCondition';
|
|
4565
|
+
/** The list of integers. */
|
|
4444
4566
|
oneOf: Array<Scalars['Int']['output']>;
|
|
4445
4567
|
};
|
|
4446
4568
|
|
|
4569
|
+
/** Input for integer list condition. */
|
|
4447
4570
|
export type OneOfNumberConditionInput = {
|
|
4571
|
+
/** The list of integers. */
|
|
4448
4572
|
oneOf: Array<Scalars['Int']['input']>;
|
|
4449
4573
|
};
|
|
4450
4574
|
|
|
@@ -5248,16 +5372,28 @@ export type Price = {
|
|
|
5248
5372
|
timestamp: Scalars['Int']['output'];
|
|
5249
5373
|
};
|
|
5250
5374
|
|
|
5375
|
+
/** Webhook conditions for a price event. */
|
|
5251
5376
|
export type PriceEventWebhookCondition = {
|
|
5252
5377
|
__typename?: 'PriceEventWebhookCondition';
|
|
5378
|
+
/** The network ID the webhook is listening on. */
|
|
5253
5379
|
networkId: IntEqualsCondition;
|
|
5380
|
+
/** The pair contract address the webhook is listening for. */
|
|
5381
|
+
pairAddress?: Maybe<StringEqualsCondition>;
|
|
5382
|
+
/** The price condition that must be met in order for the webhook to send. */
|
|
5254
5383
|
priceUsd: ComparisonOperator;
|
|
5384
|
+
/** The token contract address the webhook is listening for. */
|
|
5255
5385
|
tokenAddress: StringEqualsCondition;
|
|
5256
5386
|
};
|
|
5257
5387
|
|
|
5388
|
+
/** Input conditions for a price event webhook. */
|
|
5258
5389
|
export type PriceEventWebhookConditionInput = {
|
|
5390
|
+
/** The network ID to listen on. */
|
|
5259
5391
|
networkId: IntEqualsConditionInput;
|
|
5392
|
+
/** The contract address of the pair to listen for. */
|
|
5393
|
+
pairAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
5394
|
+
/** The price conditions to listen for. */
|
|
5260
5395
|
priceUsd: ComparisonOperatorInput;
|
|
5396
|
+
/** The contract address of the token to listen for. */
|
|
5261
5397
|
tokenAddress: StringEqualsConditionInput;
|
|
5262
5398
|
};
|
|
5263
5399
|
|
|
@@ -5859,6 +5995,7 @@ export type Query = {
|
|
|
5859
5995
|
getTokensInfo?: Maybe<Array<Maybe<TokenInfo>>>;
|
|
5860
5996
|
/** Returns tick data for a given Uniswap V3-style pool. */
|
|
5861
5997
|
getUniV3Ticks?: Maybe<UniV3TickConnection>;
|
|
5998
|
+
/** Returns a user's list of webhooks. */
|
|
5862
5999
|
getWebhooks?: Maybe<GetWebhooksResponse>;
|
|
5863
6000
|
/** Returns list of wallets that hold a given token, ordered by holdings descending. Also has the unique count of holders for that token */
|
|
5864
6001
|
holders: HoldersResponse;
|
|
@@ -6466,24 +6603,40 @@ export type RawNftAssetData = {
|
|
|
6466
6603
|
imageUrl?: Maybe<Scalars['String']['output']>;
|
|
6467
6604
|
};
|
|
6468
6605
|
|
|
6606
|
+
/** Webhook conditions for a raw transaction. */
|
|
6469
6607
|
export type RawTransactionWebhookCondition = {
|
|
6470
6608
|
__typename?: 'RawTransactionWebhookCondition';
|
|
6609
|
+
/** The from address to listen for. */
|
|
6471
6610
|
from?: Maybe<StringEqualsCondition>;
|
|
6611
|
+
/** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
|
|
6472
6612
|
ignoreNftEvents?: Maybe<Scalars['Boolean']['output']>;
|
|
6613
|
+
/** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
|
|
6473
6614
|
ignoreTokenPairEvents?: Maybe<Scalars['Boolean']['output']>;
|
|
6615
|
+
/** Trigger the webhook if the contains or doesn't contain the specified string. */
|
|
6474
6616
|
input?: Maybe<StringContainsCondition>;
|
|
6617
|
+
/** A list of network IDs to listen on. */
|
|
6475
6618
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
6619
|
+
/** The to address to listen for. */
|
|
6476
6620
|
to?: Maybe<StringEqualsCondition>;
|
|
6621
|
+
/** Trigger the webhook if either the to or the from address matches. */
|
|
6477
6622
|
toOrFrom?: Maybe<StringEqualsCondition>;
|
|
6478
6623
|
};
|
|
6479
6624
|
|
|
6625
|
+
/** Input conditions for a Raw Transaction webhook. */
|
|
6480
6626
|
export type RawTransactionWebhookConditionInput = {
|
|
6627
|
+
/** The from address to listen for. */
|
|
6481
6628
|
from?: InputMaybe<StringEqualsConditionInput>;
|
|
6629
|
+
/** Do not trigger the webhook if the raw transaction is handled by the NftEvent webhook. */
|
|
6482
6630
|
ignoreNftEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6631
|
+
/** Do not trigger the webhook if the raw transaction is handled by the TokenPairEvent webhook. */
|
|
6483
6632
|
ignoreTokenPairEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6633
|
+
/** Trigger the webhook if the input contains or doesn't contain the specified string. */
|
|
6484
6634
|
input?: InputMaybe<StringContainsConditionInput>;
|
|
6635
|
+
/** A list of network IDs to listen on. */
|
|
6485
6636
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
6637
|
+
/** The to address to listen for. */
|
|
6486
6638
|
to?: InputMaybe<StringEqualsConditionInput>;
|
|
6639
|
+
/** Trigger the webhook if either the to or the from address matches. */
|
|
6487
6640
|
toOrFrom?: InputMaybe<StringEqualsConditionInput>;
|
|
6488
6641
|
};
|
|
6489
6642
|
|
|
@@ -6550,18 +6703,28 @@ export type ResolutionBarData = {
|
|
|
6550
6703
|
r720?: Maybe<CurrencyBarData>;
|
|
6551
6704
|
};
|
|
6552
6705
|
|
|
6706
|
+
/** Config for retrying failed webhook messages */
|
|
6553
6707
|
export type RetrySettings = {
|
|
6554
6708
|
__typename?: 'RetrySettings';
|
|
6709
|
+
/** The maximum number of times the webhook will retry sending a message */
|
|
6555
6710
|
maxRetries?: Maybe<Scalars['Int']['output']>;
|
|
6711
|
+
/** The maximum time in seconds that the webhook will wait before retrying a failed message */
|
|
6556
6712
|
maxRetryDelay?: Maybe<Scalars['Int']['output']>;
|
|
6713
|
+
/** The maximum time in seconds that the webhook will retry sending a message */
|
|
6557
6714
|
maxTimeElapsed?: Maybe<Scalars['Int']['output']>;
|
|
6715
|
+
/** The minimum time in seconds that the webhook will wait before retrying a failed message */
|
|
6558
6716
|
minRetryDelay?: Maybe<Scalars['Int']['output']>;
|
|
6559
6717
|
};
|
|
6560
6718
|
|
|
6719
|
+
/** Config input for retrying failed webhook messages */
|
|
6561
6720
|
export type RetrySettingsInput = {
|
|
6721
|
+
/** The maximum number of times the webhook will retry sending a message */
|
|
6562
6722
|
maxRetries?: InputMaybe<Scalars['Int']['input']>;
|
|
6723
|
+
/** The maximum time in seconds that the webhook will wait before retrying a failed message */
|
|
6563
6724
|
maxRetryDelay?: InputMaybe<Scalars['Int']['input']>;
|
|
6725
|
+
/** The maximum time in seconds that the webhook will retry sending a message */
|
|
6564
6726
|
maxTimeElapsed?: InputMaybe<Scalars['Int']['input']>;
|
|
6727
|
+
/** The minimum time in seconds that the webhook will wait before retrying a failed message */
|
|
6565
6728
|
minRetryDelay?: InputMaybe<Scalars['Int']['input']>;
|
|
6566
6729
|
};
|
|
6567
6730
|
|
|
@@ -6866,23 +7029,33 @@ export type StatsFilter = {
|
|
|
6866
7029
|
previous?: InputMaybe<NumberFilter>;
|
|
6867
7030
|
};
|
|
6868
7031
|
|
|
7032
|
+
/** String contains condition. */
|
|
6869
7033
|
export type StringContainsCondition = {
|
|
6870
7034
|
__typename?: 'StringContainsCondition';
|
|
7035
|
+
/** A list of substrings included within the string. */
|
|
6871
7036
|
contains?: Maybe<Array<Scalars['String']['output']>>;
|
|
7037
|
+
/** A list of substrings not included within the string. */
|
|
6872
7038
|
notContains?: Maybe<Array<Scalars['String']['output']>>;
|
|
6873
7039
|
};
|
|
6874
7040
|
|
|
7041
|
+
/** Input for string contains condition. */
|
|
6875
7042
|
export type StringContainsConditionInput = {
|
|
7043
|
+
/** A list of substrings to be included within the string. */
|
|
6876
7044
|
contains?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
7045
|
+
/** A list of substrings not to be included within the string. */
|
|
6877
7046
|
notContains?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6878
7047
|
};
|
|
6879
7048
|
|
|
7049
|
+
/** String equals condition. */
|
|
6880
7050
|
export type StringEqualsCondition = {
|
|
6881
7051
|
__typename?: 'StringEqualsCondition';
|
|
7052
|
+
/** The string to equal. */
|
|
6882
7053
|
eq: Scalars['String']['output'];
|
|
6883
7054
|
};
|
|
6884
7055
|
|
|
7056
|
+
/** Input for string equals condition. */
|
|
6885
7057
|
export type StringEqualsConditionInput = {
|
|
7058
|
+
/** The string to equal. */
|
|
6886
7059
|
eq: Scalars['String']['input'];
|
|
6887
7060
|
};
|
|
6888
7061
|
|
|
@@ -7610,6 +7783,7 @@ export enum TokenOfInterest {
|
|
|
7610
7783
|
Token1 = 'token1'
|
|
7611
7784
|
}
|
|
7612
7785
|
|
|
7786
|
+
/** Token pair event types. */
|
|
7613
7787
|
export enum TokenPairEventType {
|
|
7614
7788
|
Burn = 'BURN',
|
|
7615
7789
|
Buy = 'BUY',
|
|
@@ -7621,33 +7795,53 @@ export enum TokenPairEventType {
|
|
|
7621
7795
|
Sync = 'SYNC'
|
|
7622
7796
|
}
|
|
7623
7797
|
|
|
7798
|
+
/** Webhook condition for token pair event type. */
|
|
7624
7799
|
export type TokenPairEventTypeCondition = {
|
|
7625
7800
|
__typename?: 'TokenPairEventTypeCondition';
|
|
7801
|
+
/** The list of token pair event types. */
|
|
7626
7802
|
oneOf: Array<TokenPairEventType>;
|
|
7627
7803
|
};
|
|
7628
7804
|
|
|
7805
|
+
/** Input for token pair event type condition. */
|
|
7629
7806
|
export type TokenPairEventTypeConditionInput = {
|
|
7807
|
+
/** The list of token event types to equal. */
|
|
7630
7808
|
oneOf: Array<TokenPairEventType>;
|
|
7631
7809
|
};
|
|
7632
7810
|
|
|
7811
|
+
/** Webhook conditions for a token pair event. */
|
|
7633
7812
|
export type TokenPairEventWebhookCondition = {
|
|
7634
7813
|
__typename?: 'TokenPairEventWebhookCondition';
|
|
7814
|
+
/** The event type the webhook is listening for. */
|
|
7635
7815
|
eventType?: Maybe<TokenPairEventTypeCondition>;
|
|
7816
|
+
/** The exchange contract address the webhook is listening for. */
|
|
7636
7817
|
exchangeAddress?: Maybe<StringEqualsCondition>;
|
|
7818
|
+
/** The maker wallet address the webhook is listening for. */
|
|
7637
7819
|
maker?: Maybe<StringEqualsCondition>;
|
|
7820
|
+
/** The list of network IDs the webhook is listening on. */
|
|
7638
7821
|
networkId?: Maybe<OneOfNumberCondition>;
|
|
7822
|
+
/** The pair contract address the webhook is listening for. */
|
|
7639
7823
|
pairAddress?: Maybe<StringEqualsCondition>;
|
|
7824
|
+
/** The swap values the webhook is listening for. */
|
|
7640
7825
|
swapValue?: Maybe<ComparisonOperator>;
|
|
7826
|
+
/** The token contract address the webhook is listening for. */
|
|
7641
7827
|
tokenAddress?: Maybe<StringEqualsCondition>;
|
|
7642
7828
|
};
|
|
7643
7829
|
|
|
7830
|
+
/** Input conditions for a token pair event webhook. */
|
|
7644
7831
|
export type TokenPairEventWebhookConditionInput = {
|
|
7832
|
+
/** The token event type to listen for. */
|
|
7645
7833
|
eventType?: InputMaybe<TokenPairEventTypeConditionInput>;
|
|
7834
|
+
/** The exchange contract address to listen for. */
|
|
7646
7835
|
exchangeAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7836
|
+
/** The maker wallet address to listen for. */
|
|
7647
7837
|
maker?: InputMaybe<StringEqualsConditionInput>;
|
|
7838
|
+
/** A list of network IDs to listen on. */
|
|
7648
7839
|
networkId?: InputMaybe<OneOfNumberConditionInput>;
|
|
7840
|
+
/** The pair contract address to listen for. */
|
|
7649
7841
|
pairAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7842
|
+
/** The swap values to listen for. */
|
|
7650
7843
|
swapValue?: InputMaybe<ComparisonOperatorInput>;
|
|
7844
|
+
/** The token contract address to listen for. */
|
|
7651
7845
|
tokenAddress?: InputMaybe<StringEqualsConditionInput>;
|
|
7652
7846
|
};
|
|
7653
7847
|
|
|
@@ -8016,25 +8210,41 @@ export type WashtradeLabelForEvent = {
|
|
|
8016
8210
|
label: Scalars['String']['output'];
|
|
8017
8211
|
};
|
|
8018
8212
|
|
|
8213
|
+
/** Metadata for a webhook. */
|
|
8019
8214
|
export type Webhook = {
|
|
8020
8215
|
__typename?: 'Webhook';
|
|
8216
|
+
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
8021
8217
|
alertRecurrence: AlertRecurrence;
|
|
8218
|
+
/** 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). */
|
|
8022
8219
|
bucketId?: Maybe<Scalars['String']['output']>;
|
|
8220
|
+
/** 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). */
|
|
8023
8221
|
bucketSortkey?: Maybe<Scalars['String']['output']>;
|
|
8222
|
+
/** The url to which the webhook message should be sent. */
|
|
8024
8223
|
callbackUrl: Scalars['String']['output'];
|
|
8224
|
+
/** The conditions which must be met in order for the webhook to send a message. */
|
|
8025
8225
|
conditions: WebhookCondition;
|
|
8226
|
+
/** The unix timestamp for the time the webhook was created. */
|
|
8026
8227
|
created: Scalars['Int']['output'];
|
|
8228
|
+
/** The webhook group ID used to group webhooks together for ordered message sending. */
|
|
8027
8229
|
groupId?: Maybe<Scalars['String']['output']>;
|
|
8230
|
+
/** The ID of the webhook. */
|
|
8028
8231
|
id: Scalars['String']['output'];
|
|
8232
|
+
/** The given name of the webhook. */
|
|
8029
8233
|
name: Scalars['String']['output'];
|
|
8234
|
+
/** The type of publishing for the webhook. If not set, it defaults to `SINGLE`. */
|
|
8030
8235
|
publishingType?: Maybe<PublishingType>;
|
|
8236
|
+
/** The settings for retrying failed webhook messages. */
|
|
8031
8237
|
retrySettings?: Maybe<RetrySettings>;
|
|
8238
|
+
/** The status of the webhook. Can be `ACTIVE` or `INACTIVE`. */
|
|
8032
8239
|
status: Scalars['String']['output'];
|
|
8240
|
+
/** The type of webhook. Can be `PRICE_EVENT`, `NFT_EVENT`, or `TOKEN_PAIR_EVENT`. */
|
|
8033
8241
|
webhookType: WebhookType;
|
|
8034
8242
|
};
|
|
8035
8243
|
|
|
8244
|
+
/** Webhook conditions that must be met for each webhook type. */
|
|
8036
8245
|
export type WebhookCondition = NftEventWebhookCondition | PriceEventWebhookCondition | RawTransactionWebhookCondition | TokenPairEventWebhookCondition;
|
|
8037
8246
|
|
|
8247
|
+
/** NFT marketplace names. */
|
|
8038
8248
|
export enum WebhookNftEventFillSource {
|
|
8039
8249
|
Blur = 'BLUR',
|
|
8040
8250
|
Coinbase = 'COINBASE',
|
|
@@ -8053,12 +8263,14 @@ export enum WebhookNftEventFillSource {
|
|
|
8053
8263
|
Soundxyz = 'SOUNDXYZ'
|
|
8054
8264
|
}
|
|
8055
8265
|
|
|
8266
|
+
/** NFT event types. */
|
|
8056
8267
|
export enum WebhookNftEventType {
|
|
8057
8268
|
Mint = 'MINT',
|
|
8058
8269
|
Sale = 'SALE',
|
|
8059
8270
|
Transfer = 'TRANSFER'
|
|
8060
8271
|
}
|
|
8061
8272
|
|
|
8273
|
+
/** The type of webhook. */
|
|
8062
8274
|
export enum WebhookType {
|
|
8063
8275
|
NftEvent = 'NFT_EVENT',
|
|
8064
8276
|
PriceEvent = 'PRICE_EVENT',
|