chore: bump oxlint & enable more supported rules (#14769)

This commit is contained in:
DarkSky
2026-04-03 03:36:52 +08:00
committed by GitHub
parent cdadf8588a
commit 233004f867
285 changed files with 937 additions and 1983 deletions
@@ -6,4 +6,4 @@ mutation generateUserAccessToken($input: GenerateAccessTokenInput!) {
createdAt
expiresAt
}
}
}
@@ -1,3 +1,3 @@
mutation revokeUserAccessToken($id: String!) {
revokeUserAccessToken(id: $id)
}
}
@@ -1,3 +1,3 @@
query appConfig {
appConfig
}
}
@@ -11,4 +11,4 @@ mutation ImportUsers($input: ImportUsersInput!) {
error
}
}
}
}
@@ -1,10 +1,19 @@
mutation sendTestEmail($host: String!, $port: Int!, $sender: String!, $username: String!, $password: String!, $ignoreTLS: Boolean!) {
sendTestEmail(config: {
host: $host,
port: $port,
sender: $sender,
username: $username,
password: $password,
ignoreTLS: $ignoreTLS,
})
}
mutation sendTestEmail(
$host: String!
$port: Int!
$sender: String!
$username: String!
$password: String!
$ignoreTLS: Boolean!
) {
sendTestEmail(
config: {
host: $host
port: $port
sender: $sender
username: $username
password: $password
ignoreTLS: $ignoreTLS
}
)
}
@@ -1,3 +1,3 @@
mutation updateAppConfig($updates: [UpdateAppConfigInput!]!) {
updateAppConfig(updates: $updates)
}
}
@@ -1,3 +1,7 @@
mutation abortBlobUpload($workspaceId: String!, $key: String!, $uploadId: String!) {
mutation abortBlobUpload(
$workspaceId: String!
$key: String!
$uploadId: String!
) {
abortBlobUpload(workspaceId: $workspaceId, key: $key, uploadId: $uploadId)
}
@@ -1,3 +1,13 @@
mutation completeBlobUpload($workspaceId: String!, $key: String!, $uploadId: String, $parts: [BlobUploadPartInput!]) {
completeBlobUpload(workspaceId: $workspaceId, key: $key, uploadId: $uploadId, parts: $parts)
mutation completeBlobUpload(
$workspaceId: String!
$key: String!
$uploadId: String
$parts: [BlobUploadPartInput!]
) {
completeBlobUpload(
workspaceId: $workspaceId
key: $key
uploadId: $uploadId
parts: $parts
)
}
@@ -1,5 +1,15 @@
mutation createBlobUpload($workspaceId: String!, $key: String!, $size: Int!, $mime: String!) {
createBlobUpload(workspaceId: $workspaceId, key: $key, size: $size, mime: $mime) {
mutation createBlobUpload(
$workspaceId: String!
$key: String!
$size: Int!
$mime: String!
) {
createBlobUpload(
workspaceId: $workspaceId
key: $key
size: $size
mime: $mime
) {
method
blobKey
alreadyUploaded
@@ -1,4 +1,9 @@
query getBlobUploadPartUrl($workspaceId: String!, $key: String!, $uploadId: String!, $partNumber: Int!) {
query getBlobUploadPartUrl(
$workspaceId: String!
$key: String!
$uploadId: String!
$partNumber: Int!
) {
workspace(id: $workspaceId) {
blobUploadPartUrl(key: $key, uploadId: $uploadId, partNumber: $partNumber) {
uploadUrl
@@ -1,5 +1,11 @@
mutation updateCalendarAccount($accountId: String!, $refreshIntervalMinutes: Int!) {
updateCalendarAccount(accountId: $accountId, refreshIntervalMinutes: $refreshIntervalMinutes) {
mutation updateCalendarAccount(
$accountId: String!
$refreshIntervalMinutes: Int!
) {
updateCalendarAccount(
accountId: $accountId
refreshIntervalMinutes: $refreshIntervalMinutes
) {
id
provider
providerAccountId
@@ -1,4 +1,8 @@
query listCommentChanges($workspaceId: String!, $docId: String!, $pagination: PaginationInput!) {
query listCommentChanges(
$workspaceId: String!
$docId: String!
$pagination: PaginationInput!
) {
workspace(id: $workspaceId) {
commentChanges(docId: $docId, pagination: $pagination) {
totalCount
@@ -1,4 +1,8 @@
query listComments($workspaceId: String!, $docId: String!, $pagination: PaginationInput) {
query listComments(
$workspaceId: String!
$docId: String!
$pagination: PaginationInput
) {
workspace(id: $workspaceId) {
comments(docId: $docId, pagination: $pagination) {
totalCount
@@ -1,3 +1,11 @@
mutation uploadCommentAttachment($workspaceId: String!, $docId: String!, $attachment: Upload!) {
uploadCommentAttachment(workspaceId: $workspaceId, docId: $docId, attachment: $attachment)
mutation uploadCommentAttachment(
$workspaceId: String!
$docId: String!
$attachment: Upload!
) {
uploadCommentAttachment(
workspaceId: $workspaceId
docId: $docId
attachment: $attachment
)
}
@@ -1,3 +1,13 @@
mutation applyDocUpdates($workspaceId: String!, $docId: String!, $op: String!, $updates: String!) {
applyDocUpdates(workspaceId: $workspaceId, docId: $docId, op: $op, updates: $updates)
}
mutation applyDocUpdates(
$workspaceId: String!
$docId: String!
$op: String!
$updates: String!
) {
applyDocUpdates(
workspaceId: $workspaceId
docId: $docId
op: $op
updates: $updates
)
}
@@ -1,8 +1,20 @@
query matchContext($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) {
query matchContext(
$contextId: String
$workspaceId: String
$content: String!
$limit: SafeInt
$scopedThreshold: Float
$threshold: Float
) {
currentUser {
copilot(workspaceId: $workspaceId) {
contexts(contextId: $contextId) {
matchFiles(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) {
matchFiles(
content: $content
limit: $limit
scopedThreshold: $scopedThreshold
threshold: $threshold
) {
fileId
blobId
name
@@ -11,7 +23,12 @@ query matchContext($contextId: String, $workspaceId: String, $content: String!,
content
distance
}
matchWorkspaceDocs(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) {
matchWorkspaceDocs(
content: $content
limit: $limit
scopedThreshold: $scopedThreshold
threshold: $threshold
) {
docId
chunk
content
@@ -1,8 +1,20 @@
query matchWorkspaceDocs($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) {
query matchWorkspaceDocs(
$contextId: String
$workspaceId: String
$content: String!
$limit: SafeInt
$scopedThreshold: Float
$threshold: Float
) {
currentUser {
copilot(workspaceId: $workspaceId) {
contexts(contextId: $contextId) {
matchWorkspaceDocs(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) {
matchWorkspaceDocs(
content: $content
limit: $limit
scopedThreshold: $scopedThreshold
threshold: $threshold
) {
docId
chunk
content
@@ -11,4 +23,4 @@ query matchWorkspaceDocs($contextId: String, $workspaceId: String, $content: Str
}
}
}
}
}
@@ -1,8 +1,20 @@
query matchFiles($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) {
query matchFiles(
$contextId: String
$workspaceId: String
$content: String!
$limit: SafeInt
$scopedThreshold: Float
$threshold: Float
) {
currentUser {
copilot(workspaceId: $workspaceId) {
contexts(contextId: $contextId) {
matchFiles(content: $content, limit: $limit, scopedThreshold: $scopedThreshold, threshold: $threshold) {
matchFiles(
content: $content
limit: $limit
scopedThreshold: $scopedThreshold
threshold: $threshold
) {
fileId
blobId
chunk
@@ -8,11 +8,15 @@ query getCopilotPinnedSessions(
) {
currentUser {
copilot(workspaceId: $workspaceId) {
chats(pagination: { first: 1 }, docId: $docId, options: {
pinned: true,
messageOrder: $messageOrder,
withPrompt: $withPrompt
}) {
chats(
pagination: { first: 1 }
docId: $docId
options: {
pinned: true
messageOrder: $messageOrder
withPrompt: $withPrompt
}
) {
...PaginatedCopilotChats
}
}
@@ -1,5 +1,17 @@
mutation submitAudioTranscription($workspaceId: String!, $blobId: String!, $blob: Upload, $blobs: [Upload!], $input: SubmitAudioTranscriptionInput) {
submitAudioTranscription(blob: $blob, blobs: $blobs, blobId: $blobId, workspaceId: $workspaceId, input: $input) {
mutation submitAudioTranscription(
$workspaceId: String!
$blobId: String!
$blob: Upload
$blobs: [Upload!]
$input: SubmitAudioTranscriptionInput
) {
submitAudioTranscription(
blob: $blob
blobs: $blobs
blobId: $blobId
workspaceId: $workspaceId
input: $input
) {
id
status
}
@@ -1,9 +1,6 @@
#import "./fragments/paginated-copilot-chats.gql"
query getCopilotLatestDocSession(
$workspaceId: String!
$docId: String!
) {
query getCopilotLatestDocSession($workspaceId: String!, $docId: String!) {
currentUser {
copilot(workspaceId: $workspaceId) {
chats(
@@ -1,15 +1,9 @@
#import "./fragments/paginated-copilot-chats.gql"
query getCopilotSession(
$workspaceId: String!
$sessionId: String!
) {
query getCopilotSession($workspaceId: String!, $sessionId: String!) {
currentUser {
copilot(workspaceId: $workspaceId) {
chats(
pagination: { first: 1 }
options: { sessionId: $sessionId }
) {
chats(pagination: { first: 1 }, options: { sessionId: $sessionId }) {
...PaginatedCopilotChats
}
}
@@ -1,4 +1,7 @@
query getWorkspaceEmbeddingFiles($workspaceId: String!, $pagination: PaginationInput!) {
query getWorkspaceEmbeddingFiles(
$workspaceId: String!
$pagination: PaginationInput!
) {
workspace(id: $workspaceId) {
embedding {
files(pagination: $pagination) {
@@ -1,3 +1,6 @@
mutation removeWorkspaceEmbeddingFiles($workspaceId: String!, $fileId: String!) {
mutation removeWorkspaceEmbeddingFiles(
$workspaceId: String!
$fileId: String!
) {
removeWorkspaceEmbeddingFiles(workspaceId: $workspaceId, fileId: $fileId)
}
@@ -1,3 +1,6 @@
mutation addWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $add: [String!]!) {
mutation addWorkspaceEmbeddingIgnoredDocs(
$workspaceId: String!
$add: [String!]!
) {
updateWorkspaceEmbeddingIgnoredDocs(workspaceId: $workspaceId, add: $add)
}
@@ -1,4 +1,7 @@
query getWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $pagination: PaginationInput!) {
query getWorkspaceEmbeddingIgnoredDocs(
$workspaceId: String!
$pagination: PaginationInput!
) {
workspace(id: $workspaceId) {
embedding {
ignoredDocs(pagination: $pagination) {
@@ -1,3 +1,9 @@
mutation removeWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $remove: [String!]!) {
updateWorkspaceEmbeddingIgnoredDocs(workspaceId: $workspaceId, remove: $remove)
mutation removeWorkspaceEmbeddingIgnoredDocs(
$workspaceId: String!
$remove: [String!]!
) {
updateWorkspaceEmbeddingIgnoredDocs(
workspaceId: $workspaceId
remove: $remove
)
}
@@ -1,3 +1,3 @@
mutation createSelfhostCustomerPortal ($workspaceId: String!) {
mutation createSelfhostCustomerPortal($workspaceId: String!) {
createSelfhostWorkspaceCustomerPortal(workspaceId: $workspaceId)
}
@@ -1,9 +1,12 @@
query getDocCreatedByUpdatedByList($workspaceId: String!, $pagination: PaginationInput!) {
query getDocCreatedByUpdatedByList(
$workspaceId: String!
$pagination: PaginationInput!
) {
workspace(id: $workspaceId) {
docs(pagination: $pagination) {
totalCount
pageInfo {
endCursor
endCursor
hasNextPage
}
edges {
@@ -15,4 +18,4 @@ query getDocCreatedByUpdatedByList($workspaceId: String!, $pagination: Paginatio
}
}
}
}
}
@@ -4,4 +4,4 @@ query getDocDefaultRole($workspaceId: String!, $docId: String!) {
defaultRole
}
}
}
}
@@ -4,4 +4,4 @@ query getDocSummary($workspaceId: String!, $docId: String!) {
summary
}
}
}
}
@@ -1,4 +1,9 @@
query getMembersByWorkspaceId($workspaceId: String!, $skip: Int, $take: Int, $query: String) {
query getMembersByWorkspaceId(
$workspaceId: String!
$skip: Int
$take: Int
$query: String
) {
workspace(id: $workspaceId) {
memberCount
members(skip: $skip, take: $take, query: $query) {
@@ -1,4 +1,8 @@
query getPageGrantedUsersList($pagination: PaginationInput!, $docId: String!, $workspaceId: String!) {
query getPageGrantedUsersList(
$pagination: PaginationInput!
$docId: String!
$workspaceId: String!
) {
workspace(id: $workspaceId) {
doc(docId: $docId) {
grantedUsersList(pagination: $pagination) {
@@ -21,4 +25,4 @@ query getPageGrantedUsersList($pagination: PaginationInput!, $docId: String!, $w
}
}
}
}
}
@@ -1,7 +1,7 @@
query getPublicUserById($id: String!) {
publicUserById(id: $id) {
id
avatarUrl
name
}
}
publicUserById(id: $id) {
id
avatarUrl
name
}
}
@@ -1,4 +1,7 @@
query getRecentlyUpdatedDocs($workspaceId: String!, $pagination: PaginationInput!) {
query getRecentlyUpdatedDocs(
$workspaceId: String!
$pagination: PaginationInput!
) {
workspace(id: $workspaceId) {
recentlyUpdatedDocs(pagination: $pagination) {
totalCount
@@ -1,3 +1,3 @@
mutation grantDocUserRoles($input: GrantDocUserRolesInput!) {
grantDocUserRoles(input: $input)
}
}
@@ -4,4 +4,4 @@ mutation activateLicense($workspaceId: String!, $license: String!) {
activateLicense(workspaceId: $workspaceId, license: $license) {
...licenseBody
}
}
}
@@ -1,3 +1,3 @@
mutation deactivateLicense($workspaceId: String!) {
deactivateLicense(workspaceId: $workspaceId)
}
}
@@ -4,4 +4,4 @@ mutation installLicense($workspaceId: String!, $license: Upload!) {
installLicense(workspaceId: $workspaceId, license: $license) {
...licenseBody
}
}
}
@@ -5,4 +5,4 @@ fragment licenseBody on License {
recurring
validatedAt
variant
}
}
@@ -22,4 +22,4 @@ query listNotifications($pagination: PaginationInput!) {
}
}
}
}
}
@@ -1,3 +1,3 @@
mutation mentionUser($input: MentionInput!) {
mentionUser(input: $input)
}
}
@@ -1,3 +1,3 @@
mutation readNotification($id: String!) {
readNotification(id: $id)
}
}
@@ -1,3 +1,3 @@
mutation revokeDocUserRoles($input: RevokeDocUserRoleInput!) {
revokeDocUserRoles(input: $input)
}
}
@@ -1,3 +1,3 @@
mutation updateDocDefaultRole($input: UpdateDocDefaultRoleInput!) {
updateDocDefaultRole(input: $input)
}
}
@@ -1,3 +1,3 @@
mutation updateDocUserRole($input: UpdateDocUserRoleInput!) {
updateDocUserRole(input: $input)
}
}
@@ -1,11 +1,5 @@
mutation inviteByEmails(
$workspaceId: String!
$emails: [String!]!
) {
inviteMembers(
workspaceId: $workspaceId
emails: $emails
) {
mutation inviteByEmails($workspaceId: String!, $emails: [String!]!) {
inviteMembers(workspaceId: $workspaceId, emails: $emails) {
email
inviteId
sentSuccess
@@ -1,9 +1,3 @@
mutation acceptInviteByInviteId(
$workspaceId: String!
$inviteId: String!
) {
acceptInviteById(
workspaceId: $workspaceId
inviteId: $inviteId
)
mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!) {
acceptInviteById(workspaceId: $workspaceId, inviteId: $inviteId)
}