mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
@@ -3,12 +3,14 @@
|
|||||||
query getCopilotRecentSessions(
|
query getCopilotRecentSessions(
|
||||||
$workspaceId: String!
|
$workspaceId: String!
|
||||||
$limit: Int = 10
|
$limit: Int = 10
|
||||||
|
$offset: Int = 0
|
||||||
) {
|
) {
|
||||||
currentUser {
|
currentUser {
|
||||||
copilot(workspaceId: $workspaceId) {
|
copilot(workspaceId: $workspaceId) {
|
||||||
chats(
|
chats(
|
||||||
pagination: { first: $limit }
|
pagination: { first: $limit, offset: $offset }
|
||||||
options: {
|
options: {
|
||||||
|
action: false
|
||||||
fork: false
|
fork: false
|
||||||
sessionOrder: desc
|
sessionOrder: desc
|
||||||
withMessages: false
|
withMessages: false
|
||||||
|
|||||||
@@ -1068,12 +1068,12 @@ ${paginatedCopilotChatsFragment}`,
|
|||||||
export const getCopilotRecentSessionsQuery = {
|
export const getCopilotRecentSessionsQuery = {
|
||||||
id: 'getCopilotRecentSessionsQuery' as const,
|
id: 'getCopilotRecentSessionsQuery' as const,
|
||||||
op: 'getCopilotRecentSessions',
|
op: 'getCopilotRecentSessions',
|
||||||
query: `query getCopilotRecentSessions($workspaceId: String!, $limit: Int = 10) {
|
query: `query getCopilotRecentSessions($workspaceId: String!, $limit: Int = 10, $offset: Int = 0) {
|
||||||
currentUser {
|
currentUser {
|
||||||
copilot(workspaceId: $workspaceId) {
|
copilot(workspaceId: $workspaceId) {
|
||||||
chats(
|
chats(
|
||||||
pagination: {first: $limit}
|
pagination: {first: $limit, offset: $offset}
|
||||||
options: {fork: false, sessionOrder: desc, withMessages: false}
|
options: {action: false, fork: false, sessionOrder: desc, withMessages: false}
|
||||||
) {
|
) {
|
||||||
...PaginatedCopilotChats
|
...PaginatedCopilotChats
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4365,6 +4365,7 @@ export type GetCopilotSessionQuery = {
|
|||||||
export type GetCopilotRecentSessionsQueryVariables = Exact<{
|
export type GetCopilotRecentSessionsQueryVariables = Exact<{
|
||||||
workspaceId: Scalars['String']['input'];
|
workspaceId: Scalars['String']['input'];
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetCopilotRecentSessionsQuery = {
|
export type GetCopilotRecentSessionsQuery = {
|
||||||
|
|||||||
Reference in New Issue
Block a user