fix: 🚑 compiler issue (#13114)

This commit is contained in:
Lakr
2025-07-09 18:18:04 +08:00
committed by GitHub
parent d10e5ee92f
commit ecea7bd825
52 changed files with 2006 additions and 282 deletions

View File

@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// Comment change action
public enum CommentChangeAction: String, EnumType {
case delete = "delete"
case update = "update"
}

View File

@@ -5,6 +5,7 @@ import ApolloAPI
/// User permission in doc
public enum DocRole: String, EnumType {
case commenter = "Commenter"
case editor = "Editor"
case external = "External"
case manager = "Manager"

View File

@@ -5,6 +5,8 @@ import ApolloAPI
/// Notification type
public enum NotificationType: String, EnumType {
case comment = "Comment"
case commentMention = "CommentMention"
case invitation = "Invitation"
case invitationAccepted = "InvitationAccepted"
case invitationBlocked = "InvitationBlocked"

View File

@@ -5,9 +5,11 @@ import ApolloAPI
public enum ServerFeature: String, EnumType {
case captcha = "Captcha"
case comment = "Comment"
case copilot = "Copilot"
case copilotEmbedding = "CopilotEmbedding"
case indexer = "Indexer"
case localWorkspace = "LocalWorkspace"
case oAuth = "OAuth"
case payment = "Payment"
}

View File

@@ -11,7 +11,7 @@ public struct AddContextFileInput: InputObject {
}
public init(
blobId: String,
blobId: GraphQLNullable<String> = nil,
contextId: String
) {
__data = InputDict([
@@ -20,7 +20,7 @@ public struct AddContextFileInput: InputObject {
])
}
public var blobId: String {
public var blobId: GraphQLNullable<String> {
get { __data["blobId"] }
set { __data["blobId"] = newValue }
}

View File

@@ -0,0 +1,61 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CommentCreateInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
content: JSONObject,
docId: ID,
docMode: GraphQLEnum<DocMode>,
docTitle: String,
mentions: GraphQLNullable<[String]> = nil,
workspaceId: ID
) {
__data = InputDict([
"content": content,
"docId": docId,
"docMode": docMode,
"docTitle": docTitle,
"mentions": mentions,
"workspaceId": workspaceId
])
}
public var content: JSONObject {
get { __data["content"] }
set { __data["content"] = newValue }
}
public var docId: ID {
get { __data["docId"] }
set { __data["docId"] = newValue }
}
public var docMode: GraphQLEnum<DocMode> {
get { __data["docMode"] }
set { __data["docMode"] = newValue }
}
public var docTitle: String {
get { __data["docTitle"] }
set { __data["docTitle"] = newValue }
}
/// The mention user ids, if not provided, the comment will not be mentioned
public var mentions: GraphQLNullable<[String]> {
get { __data["mentions"] }
set { __data["mentions"] = newValue }
}
public var workspaceId: ID {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
}
}

View File

@@ -0,0 +1,33 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CommentResolveInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
id: ID,
resolved: Bool
) {
__data = InputDict([
"id": id,
"resolved": resolved
])
}
public var id: ID {
get { __data["id"] }
set { __data["id"] = newValue }
}
/// Whether the comment is resolved
public var resolved: Bool {
get { __data["resolved"] }
set { __data["resolved"] = newValue }
}
}

View File

@@ -0,0 +1,32 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CommentUpdateInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
content: JSONObject,
id: ID
) {
__data = InputDict([
"content": content,
"id": id
])
}
public var content: JSONObject {
get { __data["content"] }
set { __data["content"] = newValue }
}
public var id: ID {
get { __data["id"] }
set { __data["id"] = newValue }
}
}

View File

@@ -14,12 +14,14 @@ public struct CreateChatSessionInput: InputObject {
docId: GraphQLNullable<String> = nil,
pinned: GraphQLNullable<Bool> = nil,
promptName: String,
reuseLatestChat: GraphQLNullable<Bool> = nil,
workspaceId: String
) {
__data = InputDict([
"docId": docId,
"pinned": pinned,
"promptName": promptName,
"reuseLatestChat": reuseLatestChat,
"workspaceId": workspaceId
])
}
@@ -40,6 +42,12 @@ public struct CreateChatSessionInput: InputObject {
set { __data["promptName"] = newValue }
}
/// true by default, compliant for old version
public var reuseLatestChat: GraphQLNullable<Bool> {
get { __data["reuseLatestChat"] }
set { __data["reuseLatestChat"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }

View File

@@ -19,6 +19,7 @@ public struct QueryChatHistoriesInput: InputObject {
sessionId: GraphQLNullable<String> = nil,
sessionOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> = nil,
skip: GraphQLNullable<Int> = nil,
withMessages: GraphQLNullable<Bool> = nil,
withPrompt: GraphQLNullable<Bool> = nil
) {
__data = InputDict([
@@ -30,6 +31,7 @@ public struct QueryChatHistoriesInput: InputObject {
"sessionId": sessionId,
"sessionOrder": sessionOrder,
"skip": skip,
"withMessages": withMessages,
"withPrompt": withPrompt
])
}
@@ -74,6 +76,11 @@ public struct QueryChatHistoriesInput: InputObject {
set { __data["skip"] = newValue }
}
public var withMessages: GraphQLNullable<Bool> {
get { __data["withMessages"] }
set { __data["withMessages"] = newValue }
}
public var withPrompt: GraphQLNullable<Bool> {
get { __data["withPrompt"] }
set { __data["withPrompt"] = newValue }

View File

@@ -1,53 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct QueryChatSessionsInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
action: GraphQLNullable<Bool> = nil,
fork: GraphQLNullable<Bool> = nil,
limit: GraphQLNullable<Int> = nil,
pinned: GraphQLNullable<Bool> = nil,
skip: GraphQLNullable<Int> = nil
) {
__data = InputDict([
"action": action,
"fork": fork,
"limit": limit,
"pinned": pinned,
"skip": skip
])
}
public var action: GraphQLNullable<Bool> {
get { __data["action"] }
set { __data["action"] = newValue }
}
public var fork: GraphQLNullable<Bool> {
get { __data["fork"] }
set { __data["fork"] = newValue }
}
public var limit: GraphQLNullable<Int> {
get { __data["limit"] }
set { __data["limit"] = newValue }
}
public var pinned: GraphQLNullable<Bool> {
get { __data["pinned"] }
set { __data["pinned"] = newValue }
}
public var skip: GraphQLNullable<Int> {
get { __data["skip"] }
set { __data["skip"] = newValue }
}
}

View File

@@ -0,0 +1,54 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct ReplyCreateInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
commentId: ID,
content: JSONObject,
docMode: GraphQLEnum<DocMode>,
docTitle: String,
mentions: GraphQLNullable<[String]> = nil
) {
__data = InputDict([
"commentId": commentId,
"content": content,
"docMode": docMode,
"docTitle": docTitle,
"mentions": mentions
])
}
public var commentId: ID {
get { __data["commentId"] }
set { __data["commentId"] = newValue }
}
public var content: JSONObject {
get { __data["content"] }
set { __data["content"] = newValue }
}
public var docMode: GraphQLEnum<DocMode> {
get { __data["docMode"] }
set { __data["docMode"] = newValue }
}
public var docTitle: String {
get { __data["docTitle"] }
set { __data["docTitle"] = newValue }
}
/// The mention user ids, if not provided, the comment reply will not be mentioned
public var mentions: GraphQLNullable<[String]> {
get { __data["mentions"] }
set { __data["mentions"] = newValue }
}
}

View File

@@ -0,0 +1,32 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct ReplyUpdateInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
content: JSONObject,
id: ID
) {
__data = InputDict([
"content": content,
"id": id
])
}
public var content: JSONObject {
get { __data["content"] }
set { __data["content"] = newValue }
}
public var id: ID {
get { __data["id"] }
set { __data["id"] = newValue }
}
}

View File

@@ -11,15 +11,23 @@ public struct UpdateUserSettingsInput: InputObject {
}
public init(
receiveCommentEmail: GraphQLNullable<Bool> = nil,
receiveInvitationEmail: GraphQLNullable<Bool> = nil,
receiveMentionEmail: GraphQLNullable<Bool> = nil
) {
__data = InputDict([
"receiveCommentEmail": receiveCommentEmail,
"receiveInvitationEmail": receiveInvitationEmail,
"receiveMentionEmail": receiveMentionEmail
])
}
/// Receive comment email
public var receiveCommentEmail: GraphQLNullable<Bool> {
get { __data["receiveCommentEmail"] }
set { __data["receiveCommentEmail"] = newValue }
}
/// Receive invitation email
public var receiveInvitationEmail: GraphQLNullable<Bool> {
get { __data["receiveInvitationEmail"] }

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let CommentChangeObjectType = ApolloAPI.Object(
typename: "CommentChangeObjectType",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let CommentChangeObjectTypeEdge = ApolloAPI.Object(
typename: "CommentChangeObjectTypeEdge",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let CopilotSessionType = ApolloAPI.Object(
typename: "CopilotSessionType",
static let CommentObjectType = ApolloAPI.Object(
typename: "CommentObjectType",
implementedInterfaces: [],
keyFields: nil
)

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let CommentObjectTypeEdge = ApolloAPI.Object(
typename: "CommentObjectTypeEdge",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let CopilotHistoriesTypeEdge = ApolloAPI.Object(
typename: "CopilotHistoriesTypeEdge",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let PaginatedCommentChangeObjectType = ApolloAPI.Object(
typename: "PaginatedCommentChangeObjectType",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let PaginatedCommentObjectType = ApolloAPI.Object(
typename: "PaginatedCommentObjectType",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let PaginatedCopilotHistoriesType = ApolloAPI.Object(
typename: "PaginatedCopilotHistoriesType",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let ReplyObjectType = ApolloAPI.Object(
typename: "ReplyObjectType",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -25,6 +25,10 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
case "AggregateResultObjectType": return AffineGraphQL.Objects.AggregateResultObjectType
case "AppConfigValidateResult": return AffineGraphQL.Objects.AppConfigValidateResult
case "ChatMessage": return AffineGraphQL.Objects.ChatMessage
case "CommentChangeObjectType": return AffineGraphQL.Objects.CommentChangeObjectType
case "CommentChangeObjectTypeEdge": return AffineGraphQL.Objects.CommentChangeObjectTypeEdge
case "CommentObjectType": return AffineGraphQL.Objects.CommentObjectType
case "CommentObjectTypeEdge": return AffineGraphQL.Objects.CommentObjectTypeEdge
case "ContextMatchedDocChunk": return AffineGraphQL.Objects.ContextMatchedDocChunk
case "ContextMatchedFileChunk": return AffineGraphQL.Objects.ContextMatchedFileChunk
case "ContextWorkspaceEmbeddingStatus": return AffineGraphQL.Objects.ContextWorkspaceEmbeddingStatus
@@ -35,11 +39,11 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
case "CopilotContextFile": return AffineGraphQL.Objects.CopilotContextFile
case "CopilotDocType": return AffineGraphQL.Objects.CopilotDocType
case "CopilotHistories": return AffineGraphQL.Objects.CopilotHistories
case "CopilotHistoriesTypeEdge": return AffineGraphQL.Objects.CopilotHistoriesTypeEdge
case "CopilotPromptConfigType": return AffineGraphQL.Objects.CopilotPromptConfigType
case "CopilotPromptMessageType": return AffineGraphQL.Objects.CopilotPromptMessageType
case "CopilotPromptType": return AffineGraphQL.Objects.CopilotPromptType
case "CopilotQuota": return AffineGraphQL.Objects.CopilotQuota
case "CopilotSessionType": return AffineGraphQL.Objects.CopilotSessionType
case "CopilotWorkspaceConfig": return AffineGraphQL.Objects.CopilotWorkspaceConfig
case "CopilotWorkspaceFile": return AffineGraphQL.Objects.CopilotWorkspaceFile
case "CopilotWorkspaceFileTypeEdge": return AffineGraphQL.Objects.CopilotWorkspaceFileTypeEdge
@@ -67,6 +71,9 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
case "NotificationObjectType": return AffineGraphQL.Objects.NotificationObjectType
case "NotificationObjectTypeEdge": return AffineGraphQL.Objects.NotificationObjectTypeEdge
case "PageInfo": return AffineGraphQL.Objects.PageInfo
case "PaginatedCommentChangeObjectType": return AffineGraphQL.Objects.PaginatedCommentChangeObjectType
case "PaginatedCommentObjectType": return AffineGraphQL.Objects.PaginatedCommentObjectType
case "PaginatedCopilotHistoriesType": return AffineGraphQL.Objects.PaginatedCopilotHistoriesType
case "PaginatedCopilotWorkspaceFileType": return AffineGraphQL.Objects.PaginatedCopilotWorkspaceFileType
case "PaginatedDocType": return AffineGraphQL.Objects.PaginatedDocType
case "PaginatedGrantedDocUserType": return AffineGraphQL.Objects.PaginatedGrantedDocUserType
@@ -77,6 +84,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
case "Query": return AffineGraphQL.Objects.Query
case "ReleaseVersionType": return AffineGraphQL.Objects.ReleaseVersionType
case "RemoveAvatar": return AffineGraphQL.Objects.RemoveAvatar
case "ReplyObjectType": return AffineGraphQL.Objects.ReplyObjectType
case "SearchDocObjectType": return AffineGraphQL.Objects.SearchDocObjectType
case "SearchNodeObjectType": return AffineGraphQL.Objects.SearchNodeObjectType
case "SearchResultObjectType": return AffineGraphQL.Objects.SearchResultObjectType