mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
@@ -0,0 +1,22 @@
|
||||
query getWorkspaceEmbeddingFiles($workspaceId: String!, $pagination: PaginationInput!) {
|
||||
workspace(id: $workspaceId) {
|
||||
embedding {
|
||||
files(pagination: $pagination) {
|
||||
totalCount
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
fileId
|
||||
fileName
|
||||
mimeType
|
||||
size
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
query getWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $pagination: PaginationInput!) {
|
||||
workspace(id: $workspaceId) {
|
||||
embedding {
|
||||
ignoredDocs(pagination: $pagination) {
|
||||
totalCount
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
docId
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
query getWorkspaceEmbeddingConfig($workspaceId: String!) {
|
||||
workspace(id: $workspaceId) {
|
||||
embedding {
|
||||
files {
|
||||
fileId
|
||||
fileName
|
||||
mimeType
|
||||
size
|
||||
createdAt
|
||||
}
|
||||
ignoredDocs
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -764,20 +764,52 @@ export const removeWorkspaceEmbeddingFilesMutation = {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getWorkspaceEmbeddingConfigQuery = {
|
||||
id: 'getWorkspaceEmbeddingConfigQuery' as const,
|
||||
op: 'getWorkspaceEmbeddingConfig',
|
||||
query: `query getWorkspaceEmbeddingConfig($workspaceId: String!) {
|
||||
export const getWorkspaceEmbeddingFilesQuery = {
|
||||
id: 'getWorkspaceEmbeddingFilesQuery' as const,
|
||||
op: 'getWorkspaceEmbeddingFiles',
|
||||
query: `query getWorkspaceEmbeddingFiles($workspaceId: String!, $pagination: PaginationInput!) {
|
||||
workspace(id: $workspaceId) {
|
||||
embedding {
|
||||
files {
|
||||
fileId
|
||||
fileName
|
||||
mimeType
|
||||
size
|
||||
createdAt
|
||||
files(pagination: $pagination) {
|
||||
totalCount
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
fileId
|
||||
fileName
|
||||
mimeType
|
||||
size
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getWorkspaceEmbeddingIgnoredDocsQuery = {
|
||||
id: 'getWorkspaceEmbeddingIgnoredDocsQuery' as const,
|
||||
op: 'getWorkspaceEmbeddingIgnoredDocs',
|
||||
query: `query getWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $pagination: PaginationInput!) {
|
||||
workspace(id: $workspaceId) {
|
||||
embedding {
|
||||
ignoredDocs(pagination: $pagination) {
|
||||
totalCount
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
docId
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
}
|
||||
ignoredDocs
|
||||
}
|
||||
}
|
||||
}`,
|
||||
|
||||
@@ -366,11 +366,19 @@ export interface CopilotSessionType {
|
||||
|
||||
export interface CopilotWorkspaceConfig {
|
||||
__typename?: 'CopilotWorkspaceConfig';
|
||||
files: Array<CopilotWorkspaceFile>;
|
||||
ignoredDocs: Array<Scalars['String']['output']>;
|
||||
files: PaginatedCopilotWorkspaceFileType;
|
||||
ignoredDocs: PaginatedIgnoredDocsType;
|
||||
workspaceId: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface CopilotWorkspaceConfigFilesArgs {
|
||||
pagination: PaginationInput;
|
||||
}
|
||||
|
||||
export interface CopilotWorkspaceConfigIgnoredDocsArgs {
|
||||
pagination: PaginationInput;
|
||||
}
|
||||
|
||||
export interface CopilotWorkspaceFile {
|
||||
__typename?: 'CopilotWorkspaceFile';
|
||||
createdAt: Scalars['DateTime']['output'];
|
||||
@@ -381,6 +389,24 @@ export interface CopilotWorkspaceFile {
|
||||
workspaceId: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface CopilotWorkspaceFileTypeEdge {
|
||||
__typename?: 'CopilotWorkspaceFileTypeEdge';
|
||||
cursor: Scalars['String']['output'];
|
||||
node: CopilotWorkspaceFile;
|
||||
}
|
||||
|
||||
export interface CopilotWorkspaceIgnoredDoc {
|
||||
__typename?: 'CopilotWorkspaceIgnoredDoc';
|
||||
createdAt: Scalars['DateTime']['output'];
|
||||
docId: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface CopilotWorkspaceIgnoredDocTypeEdge {
|
||||
__typename?: 'CopilotWorkspaceIgnoredDocTypeEdge';
|
||||
cursor: Scalars['String']['output'];
|
||||
node: CopilotWorkspaceIgnoredDoc;
|
||||
}
|
||||
|
||||
export interface CreateChatMessageInput {
|
||||
attachments?: InputMaybe<Array<Scalars['String']['input']>>;
|
||||
blobs?: InputMaybe<Array<Scalars['Upload']['input']>>;
|
||||
@@ -1622,6 +1648,13 @@ export interface PageInfo {
|
||||
startCursor: Maybe<Scalars['String']['output']>;
|
||||
}
|
||||
|
||||
export interface PaginatedCopilotWorkspaceFileType {
|
||||
__typename?: 'PaginatedCopilotWorkspaceFileType';
|
||||
edges: Array<CopilotWorkspaceFileTypeEdge>;
|
||||
pageInfo: PageInfo;
|
||||
totalCount: Scalars['Int']['output'];
|
||||
}
|
||||
|
||||
export interface PaginatedGrantedDocUserType {
|
||||
__typename?: 'PaginatedGrantedDocUserType';
|
||||
edges: Array<GrantedDocUserTypeEdge>;
|
||||
@@ -1629,6 +1662,13 @@ export interface PaginatedGrantedDocUserType {
|
||||
totalCount: Scalars['Int']['output'];
|
||||
}
|
||||
|
||||
export interface PaginatedIgnoredDocsType {
|
||||
__typename?: 'PaginatedIgnoredDocsType';
|
||||
edges: Array<CopilotWorkspaceIgnoredDocTypeEdge>;
|
||||
pageInfo: PageInfo;
|
||||
totalCount: Scalars['Int']['output'];
|
||||
}
|
||||
|
||||
export interface PaginatedNotificationObjectType {
|
||||
__typename?: 'PaginatedNotificationObjectType';
|
||||
edges: Array<NotificationObjectTypeEdge>;
|
||||
@@ -3243,25 +3283,69 @@ export type RemoveWorkspaceEmbeddingFilesMutation = {
|
||||
removeWorkspaceEmbeddingFiles: boolean;
|
||||
};
|
||||
|
||||
export type GetWorkspaceEmbeddingConfigQueryVariables = Exact<{
|
||||
export type GetWorkspaceEmbeddingFilesQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
pagination: PaginationInput;
|
||||
}>;
|
||||
|
||||
export type GetWorkspaceEmbeddingConfigQuery = {
|
||||
export type GetWorkspaceEmbeddingFilesQuery = {
|
||||
__typename?: 'Query';
|
||||
workspace: {
|
||||
__typename?: 'WorkspaceType';
|
||||
embedding: {
|
||||
__typename?: 'CopilotWorkspaceConfig';
|
||||
ignoredDocs: Array<string>;
|
||||
files: Array<{
|
||||
__typename?: 'CopilotWorkspaceFile';
|
||||
fileId: string;
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
createdAt: string;
|
||||
}>;
|
||||
files: {
|
||||
__typename?: 'PaginatedCopilotWorkspaceFileType';
|
||||
totalCount: number;
|
||||
pageInfo: {
|
||||
__typename?: 'PageInfo';
|
||||
endCursor: string | null;
|
||||
hasNextPage: boolean;
|
||||
};
|
||||
edges: Array<{
|
||||
__typename?: 'CopilotWorkspaceFileTypeEdge';
|
||||
node: {
|
||||
__typename?: 'CopilotWorkspaceFile';
|
||||
fileId: string;
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
createdAt: string;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type GetWorkspaceEmbeddingIgnoredDocsQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
pagination: PaginationInput;
|
||||
}>;
|
||||
|
||||
export type GetWorkspaceEmbeddingIgnoredDocsQuery = {
|
||||
__typename?: 'Query';
|
||||
workspace: {
|
||||
__typename?: 'WorkspaceType';
|
||||
embedding: {
|
||||
__typename?: 'CopilotWorkspaceConfig';
|
||||
ignoredDocs: {
|
||||
__typename?: 'PaginatedIgnoredDocsType';
|
||||
totalCount: number;
|
||||
pageInfo: {
|
||||
__typename?: 'PageInfo';
|
||||
endCursor: string | null;
|
||||
hasNextPage: boolean;
|
||||
};
|
||||
edges: Array<{
|
||||
__typename?: 'CopilotWorkspaceIgnoredDocTypeEdge';
|
||||
node: {
|
||||
__typename?: 'CopilotWorkspaceIgnoredDoc';
|
||||
docId: string;
|
||||
createdAt: string;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -4540,9 +4624,14 @@ export type Queries =
|
||||
response: GetCopilotSessionsQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getWorkspaceEmbeddingConfigQuery';
|
||||
variables: GetWorkspaceEmbeddingConfigQueryVariables;
|
||||
response: GetWorkspaceEmbeddingConfigQuery;
|
||||
name: 'getWorkspaceEmbeddingFilesQuery';
|
||||
variables: GetWorkspaceEmbeddingFilesQueryVariables;
|
||||
response: GetWorkspaceEmbeddingFilesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getWorkspaceEmbeddingIgnoredDocsQuery';
|
||||
variables: GetWorkspaceEmbeddingIgnoredDocsQueryVariables;
|
||||
response: GetWorkspaceEmbeddingIgnoredDocsQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getDocRolePermissionsQuery';
|
||||
|
||||
Reference in New Issue
Block a user