mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 03:19:52 +08:00
@@ -1,17 +0,0 @@
|
||||
query getCopilotAnonymousHistories(
|
||||
$workspaceId: String!
|
||||
$docId: String
|
||||
$options: QueryChatHistoriesInput
|
||||
) {
|
||||
copilotAnonymous(workspaceId: $workspaceId) {
|
||||
histories(docId: $docId, options: $options) {
|
||||
sessionId
|
||||
tokens
|
||||
messages {
|
||||
role
|
||||
content
|
||||
attachments
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
query getCopilotAnonymousSessions($workspaceId: String!) {
|
||||
copilotAnonymous(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ query getCopilotHistories(
|
||||
role
|
||||
content
|
||||
attachments
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
query getCopilotQuota($workspaceId: String!, $docId: String!) {
|
||||
currentUser {
|
||||
copilot {
|
||||
quota {
|
||||
limit
|
||||
used
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
query getCopilotSessions($workspaceId: String!) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
chats
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,41 +251,6 @@ mutation removeEarlyAccess($email: String!) {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotAnonymousHistoriesQuery = {
|
||||
id: 'getCopilotAnonymousHistoriesQuery' as const,
|
||||
operationName: 'getCopilotAnonymousHistories',
|
||||
definitionName: 'copilotAnonymous',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCopilotAnonymousHistories($workspaceId: String!, $docId: String, $options: QueryChatHistoriesInput) {
|
||||
copilotAnonymous(workspaceId: $workspaceId) {
|
||||
histories(docId: $docId, options: $options) {
|
||||
sessionId
|
||||
tokens
|
||||
messages {
|
||||
role
|
||||
content
|
||||
attachments
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotAnonymousSessionsQuery = {
|
||||
id: 'getCopilotAnonymousSessionsQuery' as const,
|
||||
operationName: 'getCopilotAnonymousSessions',
|
||||
definitionName: 'copilotAnonymous',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCopilotAnonymousSessions($workspaceId: String!) {
|
||||
copilotAnonymous(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotHistoriesQuery = {
|
||||
id: 'getCopilotHistoriesQuery' as const,
|
||||
operationName: 'getCopilotHistories',
|
||||
@@ -302,6 +267,7 @@ query getCopilotHistories($workspaceId: String!, $docId: String, $options: Query
|
||||
role
|
||||
content
|
||||
attachments
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -309,6 +275,24 @@ query getCopilotHistories($workspaceId: String!, $docId: String, $options: Query
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotQuotaQuery = {
|
||||
id: 'getCopilotQuotaQuery' as const,
|
||||
operationName: 'getCopilotQuota',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCopilotQuota($workspaceId: String!, $docId: String!) {
|
||||
currentUser {
|
||||
copilot {
|
||||
quota {
|
||||
limit
|
||||
used
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotSessionsQuery = {
|
||||
id: 'getCopilotSessionsQuery' as const,
|
||||
operationName: 'getCopilotSessions',
|
||||
@@ -318,8 +302,8 @@ export const getCopilotSessionsQuery = {
|
||||
query getCopilotSessions($workspaceId: String!) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
chats
|
||||
}
|
||||
}
|
||||
}`,
|
||||
|
||||
Reference in New Issue
Block a user