mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
@@ -0,0 +1,3 @@
|
||||
mutation createCopilotSession($options: CreateChatSessionInput!) {
|
||||
createCopilotSession(options: $options)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
query getCopilotAnonymousHistories(
|
||||
$workspaceId: String!
|
||||
$docId: String
|
||||
$options: QueryChatHistoriesInput
|
||||
) {
|
||||
copilotAnonymous(workspaceId: $workspaceId) {
|
||||
histories(docId: $docId, options: $options) {
|
||||
sessionId
|
||||
tokens
|
||||
messages {
|
||||
role
|
||||
content
|
||||
attachments
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
query getCopilotAnonymousSessions($workspaceId: String!) {
|
||||
copilotAnonymous(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
query getCopilotHistories(
|
||||
$workspaceId: String!
|
||||
$docId: String
|
||||
$options: QueryChatHistoriesInput
|
||||
) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
histories(docId: $docId, options: $options) {
|
||||
sessionId
|
||||
tokens
|
||||
messages {
|
||||
role
|
||||
content
|
||||
attachments
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
query getCopilotSessions($workspaceId: String!) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,6 +144,17 @@ mutation createCheckoutSession($input: CreateCheckoutSessionInput!) {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createCopilotSessionMutation = {
|
||||
id: 'createCopilotSessionMutation' as const,
|
||||
operationName: 'createCopilotSession',
|
||||
definitionName: 'createCopilotSession',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation createCopilotSession($options: CreateChatSessionInput!) {
|
||||
createCopilotSession(options: $options)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createCustomerPortalMutation = {
|
||||
id: 'createCustomerPortalMutation' as const,
|
||||
operationName: 'createCustomerPortal',
|
||||
@@ -240,6 +251,80 @@ 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',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCopilotHistories($workspaceId: String!, $docId: String, $options: QueryChatHistoriesInput) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
histories(docId: $docId, options: $options) {
|
||||
sessionId
|
||||
tokens
|
||||
messages {
|
||||
role
|
||||
content
|
||||
attachments
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotSessionsQuery = {
|
||||
id: 'getCopilotSessionsQuery' as const,
|
||||
operationName: 'getCopilotSessions',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCopilotSessions($workspaceId: String!) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
chats
|
||||
actions
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCurrentUserQuery = {
|
||||
id: 'getCurrentUserQuery' as const,
|
||||
operationName: 'getCurrentUser',
|
||||
|
||||
Reference in New Issue
Block a user