mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add query scrambled for Poe, update graphql files
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
subscription messageAdded (
|
||||
subscription subscriptions_messageAdded_Subscription(
|
||||
$chatId: BigInt!
|
||||
) {
|
||||
messageAdded(chatId: $chatId) {
|
||||
id
|
||||
messageId
|
||||
creationTime
|
||||
clientNonce
|
||||
state
|
||||
...ChatMessage_message
|
||||
...chatHelpers_isBotMessage
|
||||
@@ -21,7 +22,7 @@ fragment ChatMessageDropdownMenu_message on Message {
|
||||
messageId
|
||||
vote
|
||||
text
|
||||
linkifiedText
|
||||
author
|
||||
...chatHelpers_isBotMessage
|
||||
}
|
||||
|
||||
@@ -45,6 +46,7 @@ fragment ChatMessageSuggestedReplies_SuggestedReplyButton_message on Message {
|
||||
|
||||
fragment ChatMessageSuggestedReplies_message on Message {
|
||||
suggestedReplies
|
||||
author
|
||||
...ChatMessageSuggestedReplies_SuggestedReplyButton_message
|
||||
}
|
||||
|
||||
@@ -55,6 +57,7 @@ fragment ChatMessage_message on Message {
|
||||
author
|
||||
linkifiedText
|
||||
state
|
||||
contentType
|
||||
...ChatMessageSuggestedReplies_message
|
||||
...ChatMessageFeedbackButtons_message
|
||||
...ChatMessageOverflowButton_message
|
||||
@@ -63,6 +66,12 @@ fragment ChatMessage_message on Message {
|
||||
...chatHelpers_isChatBreak
|
||||
...chatHelpers_useTimeoutLevel
|
||||
...MarkdownLinkInner_message
|
||||
...IdAnnotation_node
|
||||
}
|
||||
|
||||
fragment IdAnnotation_node on Node {
|
||||
__isNode: __typename
|
||||
id
|
||||
}
|
||||
|
||||
fragment MarkdownLinkInner_message on Message {
|
||||
@@ -97,4 +106,10 @@ fragment chatHelpers_useTimeoutLevel on Message {
|
||||
state
|
||||
text
|
||||
messageId
|
||||
author
|
||||
chat {
|
||||
chatId
|
||||
defaultBotNickname
|
||||
id
|
||||
}
|
||||
}
|
||||
|
@@ -6,4 +6,4 @@ mutation subscriptionsMutation(
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
74
poe_graphql/ViewerMessageLimitUpdatedSubscription.graphql
Normal file
74
poe_graphql/ViewerMessageLimitUpdatedSubscription.graphql
Normal file
@@ -0,0 +1,74 @@
|
||||
subscription subscriptions_viewerMessageLimitUpdated_Subscription {
|
||||
viewerMessageLimitUpdated {
|
||||
...SettingsSubscriptionSection_viewer
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
fragment SettingsSubscriptionPaywallModal_viewer on Viewer {
|
||||
...WebSubscriptionPaywall_viewer
|
||||
}
|
||||
|
||||
fragment SettingsSubscriptionSectionNonSubscriberView_viewer on Viewer {
|
||||
...SettingsSubscriptionPaywallModal_viewer
|
||||
}
|
||||
|
||||
fragment SettingsSubscriptionSectionSubscriberView_viewer on Viewer {
|
||||
subscription {
|
||||
isActive
|
||||
expiresTime
|
||||
purchaseType
|
||||
isAnnualSubscription
|
||||
willCancelAtPeriodEnd
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
fragment SettingsSubscriptionSection_viewer on Viewer {
|
||||
availableBots {
|
||||
displayName
|
||||
messageLimit {
|
||||
canSend
|
||||
numMessagesRemaining
|
||||
resetTime
|
||||
dailyBalance
|
||||
dailyLimit
|
||||
monthlyBalance
|
||||
monthlyLimit
|
||||
monthlyBalanceRefreshTime
|
||||
shouldShowRemainingMessageCount
|
||||
}
|
||||
id
|
||||
}
|
||||
subscription {
|
||||
isActive
|
||||
id
|
||||
}
|
||||
isEligibleForWebSubscriptions
|
||||
...SettingsSubscriptionSectionNonSubscriberView_viewer
|
||||
...SettingsSubscriptionSectionSubscriberView_viewer
|
||||
...WebSubscriptionSuccessMessage_viewer
|
||||
}
|
||||
|
||||
fragment SubscriptionMessageLimitExplanation_viewer on Viewer {
|
||||
availableBots {
|
||||
displayName
|
||||
messageLimit {
|
||||
monthlyLimit
|
||||
}
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
fragment WebSubscriptionPaywall_viewer on Viewer {
|
||||
...SubscriptionMessageLimitExplanation_viewer
|
||||
}
|
||||
|
||||
fragment WebSubscriptionSuccessMessage_viewer on Viewer {
|
||||
subscription {
|
||||
isActive
|
||||
expiresTime
|
||||
willCancelAtPeriodEnd
|
||||
id
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
subscription viewerStateUpdated {
|
||||
subscription subscriptions_viewerStateUpdated_Subscription {
|
||||
viewerStateUpdated {
|
||||
id
|
||||
...ChatPageBotSwitcher_viewer
|
||||
@@ -11,9 +11,19 @@ fragment BotHeader_bot on Bot {
|
||||
dailyLimit
|
||||
}
|
||||
...BotImage_bot
|
||||
...BotLink_bot
|
||||
...IdAnnotation_node
|
||||
...botHelpers_useViewerCanAccessPrivateBot
|
||||
...botHelpers_useDeletion_bot
|
||||
}
|
||||
|
||||
fragment BotImage_bot on Bot {
|
||||
displayName
|
||||
...botHelpers_useDeletion_bot
|
||||
...BotImage_useProfileImage_bot
|
||||
}
|
||||
|
||||
fragment BotImage_useProfileImage_bot on Bot {
|
||||
image {
|
||||
__typename
|
||||
... on LocalBotImage {
|
||||
@@ -23,7 +33,7 @@ fragment BotImage_bot on Bot {
|
||||
url
|
||||
}
|
||||
}
|
||||
displayName
|
||||
...botHelpers_useDeletion_bot
|
||||
}
|
||||
|
||||
fragment BotLink_bot on Bot {
|
||||
@@ -33,11 +43,21 @@ fragment BotLink_bot on Bot {
|
||||
fragment ChatPageBotSwitcher_viewer on Viewer {
|
||||
availableBots {
|
||||
id
|
||||
messageLimit {
|
||||
dailyLimit
|
||||
}
|
||||
...BotLink_bot
|
||||
handle
|
||||
...BotHeader_bot
|
||||
}
|
||||
allowUserCreatedBots: booleanGate(gateName: "enable_user_created_bots")
|
||||
}
|
||||
|
||||
fragment IdAnnotation_node on Node {
|
||||
__isNode: __typename
|
||||
id
|
||||
}
|
||||
|
||||
fragment botHelpers_useDeletion_bot on Bot {
|
||||
deletionState
|
||||
}
|
||||
|
||||
fragment botHelpers_useViewerCanAccessPrivateBot on Bot {
|
||||
isPrivateBot
|
||||
viewerIsCreator
|
||||
}
|
||||
|
Reference in New Issue
Block a user