2023-03-29 20:10:42 +00:00
|
|
|
query ChatListPaginationQuery(
|
|
|
|
$count: Int = 5
|
|
|
|
$cursor: String
|
|
|
|
$id: ID!
|
|
|
|
) {
|
|
|
|
node(id: $id) {
|
|
|
|
__typename
|
|
|
|
...ChatPageMain_chat_1G22uz
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment BotImage_bot on Bot {
|
2023-04-06 19:24:04 +00:00
|
|
|
displayName
|
|
|
|
...botHelpers_useDeletion_bot
|
|
|
|
...BotImage_useProfileImage_bot
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment BotImage_useProfileImage_bot on Bot {
|
2023-03-29 20:10:42 +00:00
|
|
|
image {
|
|
|
|
__typename
|
|
|
|
... on LocalBotImage {
|
|
|
|
localName
|
|
|
|
}
|
|
|
|
... on UrlBotImage {
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
2023-04-06 19:24:04 +00:00
|
|
|
...botHelpers_useDeletion_bot
|
2023-03-29 20:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageDownvotedButton_message on Message {
|
|
|
|
...MessageFeedbackReasonModal_message
|
|
|
|
...MessageFeedbackOtherModal_message
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageDropdownMenu_message on Message {
|
|
|
|
id
|
|
|
|
messageId
|
|
|
|
vote
|
|
|
|
text
|
2023-04-06 19:24:04 +00:00
|
|
|
author
|
2023-03-29 20:10:42 +00:00
|
|
|
...chatHelpers_isBotMessage
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageFeedbackButtons_message on Message {
|
|
|
|
id
|
|
|
|
messageId
|
|
|
|
vote
|
|
|
|
voteReason
|
|
|
|
...ChatMessageDownvotedButton_message
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageInputView_chat on Chat {
|
|
|
|
id
|
|
|
|
chatId
|
|
|
|
defaultBotObject {
|
|
|
|
nickname
|
|
|
|
messageLimit {
|
|
|
|
dailyBalance
|
|
|
|
shouldShowRemainingMessageCount
|
|
|
|
}
|
2023-04-06 19:24:04 +00:00
|
|
|
hasClearContext
|
|
|
|
isDown
|
|
|
|
...botHelpers_useDeletion_bot
|
2023-03-29 20:10:42 +00:00
|
|
|
id
|
|
|
|
}
|
|
|
|
shouldShowDisclaimer
|
|
|
|
...chatHelpers_useSendMessage_chat
|
|
|
|
...chatHelpers_useSendChatBreak_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageInputView_edges on MessageEdge {
|
|
|
|
node {
|
|
|
|
...chatHelpers_isChatBreak
|
|
|
|
...chatHelpers_isHumanMessage
|
|
|
|
state
|
|
|
|
text
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageOverflowButton_message on Message {
|
|
|
|
text
|
|
|
|
...ChatMessageDropdownMenu_message
|
|
|
|
...chatHelpers_isBotMessage
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageSuggestedReplies_SuggestedReplyButton_chat on Chat {
|
|
|
|
...chatHelpers_useSendMessage_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageSuggestedReplies_SuggestedReplyButton_message on Message {
|
|
|
|
messageId
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageSuggestedReplies_chat on Chat {
|
|
|
|
...ChatWelcomeView_chat
|
|
|
|
...ChatMessageSuggestedReplies_SuggestedReplyButton_chat
|
2023-04-06 19:24:04 +00:00
|
|
|
defaultBotObject {
|
|
|
|
hasWelcomeTopics
|
|
|
|
id
|
|
|
|
}
|
2023-03-29 20:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessageSuggestedReplies_message on Message {
|
|
|
|
suggestedReplies
|
|
|
|
...ChatMessageSuggestedReplies_SuggestedReplyButton_message
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessage_chat on Chat {
|
|
|
|
defaultBotObject {
|
2023-04-06 19:24:04 +00:00
|
|
|
hasWelcomeTopics
|
|
|
|
hasSuggestedReplies
|
|
|
|
disclaimerText
|
2023-03-29 20:10:42 +00:00
|
|
|
messageLimit {
|
|
|
|
...ChatPageRateLimitedBanner_messageLimit
|
|
|
|
}
|
2023-04-06 19:24:04 +00:00
|
|
|
...ChatPageDisclaimer_bot
|
2023-03-29 20:10:42 +00:00
|
|
|
id
|
|
|
|
}
|
|
|
|
...ChatMessageSuggestedReplies_chat
|
|
|
|
...ChatWelcomeView_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessage_message on Message {
|
|
|
|
id
|
|
|
|
messageId
|
|
|
|
text
|
|
|
|
author
|
|
|
|
linkifiedText
|
|
|
|
state
|
2023-04-06 19:24:04 +00:00
|
|
|
contentType
|
2023-03-29 20:10:42 +00:00
|
|
|
...ChatMessageSuggestedReplies_message
|
|
|
|
...ChatMessageFeedbackButtons_message
|
|
|
|
...ChatMessageOverflowButton_message
|
|
|
|
...chatHelpers_isHumanMessage
|
|
|
|
...chatHelpers_isBotMessage
|
|
|
|
...chatHelpers_isChatBreak
|
|
|
|
...chatHelpers_useTimeoutLevel
|
|
|
|
...MarkdownLinkInner_message
|
2023-04-06 19:24:04 +00:00
|
|
|
...IdAnnotation_node
|
2023-03-29 20:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessagesView_chat on Chat {
|
|
|
|
...ChatMessage_chat
|
|
|
|
...ChatWelcomeView_chat
|
2023-04-06 19:24:04 +00:00
|
|
|
...IdAnnotation_node
|
2023-03-29 20:10:42 +00:00
|
|
|
defaultBotObject {
|
2023-04-06 19:24:04 +00:00
|
|
|
hasWelcomeTopics
|
2023-03-29 20:10:42 +00:00
|
|
|
messageLimit {
|
|
|
|
...ChatPageRateLimitedBanner_messageLimit
|
|
|
|
}
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatMessagesView_edges on MessageEdge {
|
|
|
|
node {
|
|
|
|
id
|
|
|
|
messageId
|
|
|
|
creationTime
|
|
|
|
...ChatMessage_message
|
|
|
|
...chatHelpers_isBotMessage
|
|
|
|
...chatHelpers_isHumanMessage
|
|
|
|
...chatHelpers_isChatBreak
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageDeleteFooter_chat on Chat {
|
|
|
|
...MessageDeleteConfirmationModal_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageDisclaimer_bot on Bot {
|
2023-04-06 19:24:04 +00:00
|
|
|
disclaimerText
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageMainFooter_chat on Chat {
|
|
|
|
defaultBotObject {
|
|
|
|
...ChatPageMainFooter_useAccessMessage_bot
|
|
|
|
id
|
|
|
|
}
|
|
|
|
...ChatMessageInputView_chat
|
|
|
|
...ChatPageShareFooter_chat
|
|
|
|
...ChatPageDeleteFooter_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageMainFooter_edges on MessageEdge {
|
|
|
|
...ChatMessageInputView_edges
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageMainFooter_useAccessMessage_bot on Bot {
|
|
|
|
...botHelpers_useDeletion_bot
|
|
|
|
...botHelpers_useViewerCanAccessPrivateBot
|
2023-03-29 20:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageMain_chat_1G22uz on Chat {
|
|
|
|
id
|
|
|
|
chatId
|
|
|
|
...ChatPageShareFooter_chat
|
|
|
|
...ChatPageDeleteFooter_chat
|
|
|
|
...ChatMessagesView_chat
|
|
|
|
...MarkdownLinkInner_chat
|
|
|
|
...chatHelpers_useUpdateStaleChat_chat
|
|
|
|
...ChatSubscriptionPaywallContextWrapper_chat
|
2023-04-06 19:24:04 +00:00
|
|
|
...ChatPageMainFooter_chat
|
2023-03-29 20:10:42 +00:00
|
|
|
messagesConnection(last: $count, before: $cursor) {
|
|
|
|
edges {
|
|
|
|
...ChatMessagesView_edges
|
2023-04-06 19:24:04 +00:00
|
|
|
...ChatPageMainFooter_edges
|
2023-03-29 20:10:42 +00:00
|
|
|
...MarkdownLinkInner_edges
|
|
|
|
node {
|
|
|
|
...chatHelpers_useUpdateStaleChat_message
|
|
|
|
id
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
cursor
|
|
|
|
id
|
|
|
|
}
|
|
|
|
pageInfo {
|
|
|
|
hasPreviousPage
|
|
|
|
startCursor
|
|
|
|
}
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageRateLimitedBanner_messageLimit on MessageLimit {
|
|
|
|
numMessagesRemaining
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatPageShareFooter_chat on Chat {
|
|
|
|
chatId
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatSubscriptionPaywallContextWrapper_chat on Chat {
|
|
|
|
defaultBotObject {
|
|
|
|
messageLimit {
|
|
|
|
numMessagesRemaining
|
|
|
|
shouldShowRemainingMessageCount
|
|
|
|
}
|
|
|
|
...SubscriptionPaywallModal_bot
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatWelcomeView_ChatWelcomeButton_chat on Chat {
|
|
|
|
...chatHelpers_useSendMessage_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChatWelcomeView_chat on Chat {
|
|
|
|
...ChatWelcomeView_ChatWelcomeButton_chat
|
|
|
|
defaultBotObject {
|
|
|
|
displayName
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-06 19:24:04 +00:00
|
|
|
fragment IdAnnotation_node on Node {
|
|
|
|
__isNode: __typename
|
|
|
|
id
|
|
|
|
}
|
|
|
|
|
2023-03-29 20:10:42 +00:00
|
|
|
fragment MarkdownLinkInner_chat on Chat {
|
|
|
|
id
|
|
|
|
chatId
|
|
|
|
defaultBotObject {
|
|
|
|
nickname
|
|
|
|
id
|
|
|
|
}
|
|
|
|
...chatHelpers_useSendMessage_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment MarkdownLinkInner_edges on MessageEdge {
|
|
|
|
node {
|
|
|
|
state
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment MarkdownLinkInner_message on Message {
|
|
|
|
messageId
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment MessageDeleteConfirmationModal_chat on Chat {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment MessageFeedbackOtherModal_message on Message {
|
|
|
|
id
|
|
|
|
messageId
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment MessageFeedbackReasonModal_message on Message {
|
|
|
|
id
|
|
|
|
messageId
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment SubscriptionPaywallModal_bot on Bot {
|
|
|
|
displayName
|
|
|
|
messageLimit {
|
|
|
|
dailyLimit
|
|
|
|
numMessagesRemaining
|
|
|
|
shouldShowRemainingMessageCount
|
|
|
|
resetTime
|
|
|
|
}
|
|
|
|
...BotImage_bot
|
|
|
|
}
|
|
|
|
|
2023-04-06 19:24:04 +00:00
|
|
|
fragment botHelpers_useDeletion_bot on Bot {
|
|
|
|
deletionState
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment botHelpers_useViewerCanAccessPrivateBot on Bot {
|
|
|
|
isPrivateBot
|
|
|
|
viewerIsCreator
|
|
|
|
}
|
|
|
|
|
2023-03-29 20:10:42 +00:00
|
|
|
fragment chatHelpers_isBotMessage on Message {
|
|
|
|
...chatHelpers_isHumanMessage
|
|
|
|
...chatHelpers_isChatBreak
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_isChatBreak on Message {
|
|
|
|
author
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_isHumanMessage on Message {
|
|
|
|
author
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_useSendChatBreak_chat on Chat {
|
|
|
|
id
|
|
|
|
chatId
|
|
|
|
defaultBotObject {
|
|
|
|
nickname
|
|
|
|
introduction
|
|
|
|
model
|
|
|
|
id
|
|
|
|
}
|
|
|
|
shouldShowDisclaimer
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_useSendMessage_chat on Chat {
|
|
|
|
id
|
|
|
|
chatId
|
|
|
|
defaultBotObject {
|
|
|
|
id
|
2023-04-06 19:24:04 +00:00
|
|
|
nickname
|
2023-03-29 20:10:42 +00:00
|
|
|
}
|
|
|
|
shouldShowDisclaimer
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_useTimeoutLevel on Message {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
text
|
|
|
|
messageId
|
2023-04-06 19:24:04 +00:00
|
|
|
chat {
|
|
|
|
chatId
|
|
|
|
defaultBotNickname
|
|
|
|
id
|
|
|
|
}
|
2023-03-29 20:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_useUpdateStaleChat_chat on Chat {
|
|
|
|
chatId
|
2023-04-06 19:24:04 +00:00
|
|
|
defaultBotObject {
|
|
|
|
contextClearWindowSecs
|
|
|
|
id
|
|
|
|
}
|
2023-03-29 20:10:42 +00:00
|
|
|
...chatHelpers_useSendChatBreak_chat
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment chatHelpers_useUpdateStaleChat_message on Message {
|
|
|
|
creationTime
|
|
|
|
...chatHelpers_isChatBreak
|
|
|
|
}
|