@codex-data/sdk 2.3.40 → 2.3.42
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/dist/sdk/Subscribe.js +3 -3
- package/dist/sdk/Subscribe.mjs +3 -3
- package/dist/sdk/generated/gql.d.ts +10 -10
- package/dist/sdk/generated/gql.js +5 -5
- package/dist/sdk/generated/gql.mjs +5 -5
- package/dist/sdk/generated/graphql.d.ts +109 -1
- package/dist/sdk/generated/graphql.js +6 -5
- package/dist/sdk/generated/graphql.mjs +6 -5
- package/package.json +1 -1
- package/schema.graphql +80 -1
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -9671,6 +9671,7 @@ enum WebhookType {
|
|
|
9671
9671
|
TOKEN_TRANSFER_EVENT
|
|
9672
9672
|
PREDICTION_TRADE
|
|
9673
9673
|
PREDICTION_MARKET_METRICS_EVENT
|
|
9674
|
+
TOKEN_LAUNCH_EVENT
|
|
9674
9675
|
}
|
|
9675
9676
|
|
|
9676
9677
|
"""Input for deleting webhooks."""
|
|
@@ -9703,6 +9704,8 @@ input CreateWebhooksInput {
|
|
|
9703
9704
|
predictionTradeWebhooksInput: CreatePredictionTradeWebhooksInput
|
|
9704
9705
|
"""Input for creating prediction market metrics event webhooks."""
|
|
9705
9706
|
predictionMarketMetricsEventWebhooksInput: CreatePredictionMarketMetricsEventWebhooksInput
|
|
9707
|
+
"""Input for creating token launch event webhooks."""
|
|
9708
|
+
tokenLaunchEventWebhooksInput: CreateTokenLaunchEventWebhooksInput
|
|
9706
9709
|
}
|
|
9707
9710
|
|
|
9708
9711
|
"""A bucket identifier for grouping and querying webhooks. Provide both fields together so bucket-based queries work correctly."""
|
|
@@ -9919,6 +9922,52 @@ input OneOfTokenTransferDirectionConditionInput {
|
|
|
9919
9922
|
oneOf: [TokenTransferDirection!]!
|
|
9920
9923
|
}
|
|
9921
9924
|
|
|
9925
|
+
"""Input for a string list condition."""
|
|
9926
|
+
input OneOfStringConditionInput {
|
|
9927
|
+
"""The list of strings to match."""
|
|
9928
|
+
oneOf: [String!]!
|
|
9929
|
+
}
|
|
9930
|
+
|
|
9931
|
+
"""Input for creating token launch event webhooks."""
|
|
9932
|
+
input CreateTokenLaunchEventWebhooksInput {
|
|
9933
|
+
"""A list of token launch event webhooks to create."""
|
|
9934
|
+
webhooks: [CreateTokenLaunchEventWebhookArgs!]!
|
|
9935
|
+
}
|
|
9936
|
+
|
|
9937
|
+
"""Input for creating a token launch event webhook."""
|
|
9938
|
+
input CreateTokenLaunchEventWebhookArgs {
|
|
9939
|
+
"""The name of the webhook (max 128 characters)."""
|
|
9940
|
+
name: String!
|
|
9941
|
+
"""The url to which the webhook message should be sent."""
|
|
9942
|
+
callbackUrl: String!
|
|
9943
|
+
"""A string value to hash along with `deduplicationId` using SHA-256. Included in the webhook message for added security."""
|
|
9944
|
+
securityToken: String!
|
|
9945
|
+
"""The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`."""
|
|
9946
|
+
alertRecurrence: AlertRecurrence!
|
|
9947
|
+
"""The conditions which must be met in order for the webhook to send a message."""
|
|
9948
|
+
conditions: TokenLaunchEventWebhookConditionInput!
|
|
9949
|
+
"""The settings for retrying failed webhook messages."""
|
|
9950
|
+
retrySettings: RetrySettingsInput
|
|
9951
|
+
"""An optional bucket key for grouping and querying webhooks."""
|
|
9952
|
+
bucketKey: BucketKeyInput
|
|
9953
|
+
"""The type of publishing for the webhook. If not set, it defaults to `SINGLE`."""
|
|
9954
|
+
publishingType: PublishingType
|
|
9955
|
+
"""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."""
|
|
9956
|
+
deduplicate: Boolean
|
|
9957
|
+
}
|
|
9958
|
+
|
|
9959
|
+
"""Input conditions for a token launch event webhook. Exactly one of `creatorAddress` or `launchpadName` is required — the webhook is indexed by whichever you provide."""
|
|
9960
|
+
input TokenLaunchEventWebhookConditionInput {
|
|
9961
|
+
"""The wallet address of the token creator to listen for. Provide this or `launchpadName`."""
|
|
9962
|
+
creatorAddress: StringEqualsConditionInput
|
|
9963
|
+
"""The launchpad to listen for, e.g. `Pump.fun`. Must contain exactly one supported launchpad name; matching is case-insensitive and unknown names are rejected. Provide this or `creatorAddress`."""
|
|
9964
|
+
launchpadName: OneOfStringConditionInput
|
|
9965
|
+
"""The list of network IDs to listen on. Narrows the match; cannot be used on its own."""
|
|
9966
|
+
networkId: OneOfNumberConditionInput
|
|
9967
|
+
"""The contract address of the launched token. Narrows the match; cannot be used on its own."""
|
|
9968
|
+
tokenAddress: StringEqualsConditionInput
|
|
9969
|
+
}
|
|
9970
|
+
|
|
9922
9971
|
"""Input for creating prediction trade webhooks."""
|
|
9923
9972
|
input CreatePredictionTradeWebhooksInput {
|
|
9924
9973
|
"""A list of prediction trade webhooks to create."""
|
|
@@ -10260,6 +10309,8 @@ type CreateWebhooksOutput {
|
|
|
10260
10309
|
predictionTradeWebhooks: [Webhook]!
|
|
10261
10310
|
"""The list of prediction market metrics event webhooks that were created."""
|
|
10262
10311
|
predictionMarketMetricsEventWebhooks: [Webhook]!
|
|
10312
|
+
"""The list of token launch event webhooks that were created."""
|
|
10313
|
+
tokenLaunchEventWebhooks: [Webhook]!
|
|
10263
10314
|
}
|
|
10264
10315
|
|
|
10265
10316
|
"""Metadata for a webhook."""
|
|
@@ -10313,7 +10364,7 @@ type RetrySettings {
|
|
|
10313
10364
|
}
|
|
10314
10365
|
|
|
10315
10366
|
"""Webhook conditions that must be met for each webhook type."""
|
|
10316
|
-
union WebhookCondition = PriceEventWebhookCondition | MarketCapEventWebhookCondition | TokenPairEventWebhookCondition | RawTransactionWebhookCondition | TokenPriceEventWebhookCondition | TokenTransferEventWebhookCondition | PredictionTradeWebhookCondition | PredictionMarketMetricsEventWebhookCondition
|
|
10367
|
+
union WebhookCondition = PriceEventWebhookCondition | MarketCapEventWebhookCondition | TokenPairEventWebhookCondition | RawTransactionWebhookCondition | TokenPriceEventWebhookCondition | TokenTransferEventWebhookCondition | PredictionTradeWebhookCondition | PredictionMarketMetricsEventWebhookCondition | TokenLaunchEventWebhookCondition
|
|
10317
10368
|
|
|
10318
10369
|
"""Webhook conditions for a price event."""
|
|
10319
10370
|
type PriceEventWebhookCondition {
|
|
@@ -10377,6 +10428,24 @@ type OneOfTokenTransferDirectionCondition {
|
|
|
10377
10428
|
oneOf: [TokenTransferDirection!]!
|
|
10378
10429
|
}
|
|
10379
10430
|
|
|
10431
|
+
"""A string list condition."""
|
|
10432
|
+
type OneOfStringCondition {
|
|
10433
|
+
"""The list of strings."""
|
|
10434
|
+
oneOf: [String!]!
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
"""Webhook conditions for a token launch event."""
|
|
10438
|
+
type TokenLaunchEventWebhookCondition {
|
|
10439
|
+
"""The creator wallet address the webhook is listening for."""
|
|
10440
|
+
creatorAddress: StringEqualsCondition
|
|
10441
|
+
"""The launchpad names the webhook is listening for."""
|
|
10442
|
+
launchpadName: OneOfStringCondition
|
|
10443
|
+
"""The list of network IDs the webhook is listening on."""
|
|
10444
|
+
networkId: OneOfNumberCondition
|
|
10445
|
+
"""The token contract address the webhook is listening for."""
|
|
10446
|
+
tokenAddress: StringEqualsCondition
|
|
10447
|
+
}
|
|
10448
|
+
|
|
10380
10449
|
"""Webhook conditions for a prediction trade event."""
|
|
10381
10450
|
type PredictionTradeWebhookCondition {
|
|
10382
10451
|
"""The trader ID the webhook is listening for."""
|
|
@@ -12465,6 +12534,14 @@ type PairFilterResult {
|
|
|
12465
12534
|
potentialScamReasons: [PotentialScamReason]
|
|
12466
12535
|
}
|
|
12467
12536
|
|
|
12537
|
+
"""The app a trade was placed through — a trading terminal, wallet, or interface — as distinct from the exchange it settled on."""
|
|
12538
|
+
type TradeSource {
|
|
12539
|
+
"""Stable identifier for the app, e.g. `axiom`. Safe to key on."""
|
|
12540
|
+
id: String!
|
|
12541
|
+
"""Human-readable name for the app, e.g. `Axiom`. Null if the identifier has no registry entry yet."""
|
|
12542
|
+
displayName: String
|
|
12543
|
+
}
|
|
12544
|
+
|
|
12468
12545
|
union UnconfirmedEventData = UnconfirmedSwapEventData | UnconfirmedLiquidityChangeEventData
|
|
12469
12546
|
|
|
12470
12547
|
"""An unconfirmed token transaction."""
|
|
@@ -16660,5 +16737,7 @@ type Event {
|
|
|
16660
16737
|
walletAge: Int
|
|
16661
16738
|
"""Labels attributed to the wallet."""
|
|
16662
16739
|
walletLabels: [String!]
|
|
16740
|
+
"""The app the trade was placed through, when it could be determined. Null for the majority of events — most on-chain trades carry no identifying signal. Currently populated for Solana swaps only."""
|
|
16741
|
+
tradeSource: TradeSource
|
|
16663
16742
|
}
|
|
16664
16743
|
|