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