chore(ios): update gql schema (#12825)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced advanced search and aggregation capabilities, including
support for new search query types, options, and pagination.
- Added new GraphQL mutations and queries for managing workspace
embedding files and ignored documents.
- Extended user and workspace management with new fields and
configuration options.
- Added support for sending test emails and validating app
configuration.

- **Improvements**
- Enhanced license management with updated fragments and additional
fields.
- Improved invitation and member management workflows, including removal
of deprecated arguments and streamlined APIs.
- Expanded support for audio transcription actions and retry
functionality.
- Added new enum values for OAuth providers, server features, and
workspace member status.

- **Removals**
- Deprecated and removed legacy queries and mutations related to user
roles and invitations.

- **Bug Fixes**
- Corrected field types and documentation comments for improved
consistency and clarity.

- **Other**
- Numerous schema and type updates to support new features and enhance
data modeling.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2025-06-16 16:35:15 +08:00
committed by GitHub
parent c0c813edfd
commit e118db4387
87 changed files with 2325 additions and 322 deletions

View File

@@ -4,6 +4,7 @@
import ApolloAPI
public enum OAuthProviderType: String, EnumType {
case apple = "Apple"
case gitHub = "GitHub"
case google = "Google"
case oidc = "OIDC"

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// Search query occur
public enum SearchQueryOccur: String, EnumType {
case must = "must"
case mustNot = "must_not"
case should = "should"
}

View File

@@ -0,0 +1,13 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// Search query type
public enum SearchQueryType: String, EnumType {
case all = "all"
case boolean = "boolean"
case boost = "boost"
case exists = "exists"
case match = "match"
}

View File

@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// Search table
public enum SearchTable: String, EnumType {
case block = "block"
case doc = "doc"
}

View File

@@ -6,6 +6,8 @@ import ApolloAPI
public enum ServerFeature: String, EnumType {
case captcha = "Captcha"
case copilot = "Copilot"
case copilotEmbedding = "CopilotEmbedding"
case indexer = "Indexer"
case oAuth = "OAuth"
case payment = "Payment"
}

View File

@@ -6,6 +6,7 @@ import ApolloAPI
/// Member invite status in workspace
public enum WorkspaceMemberStatus: String, EnumType {
case accepted = "Accepted"
case allocatingSeat = "AllocatingSeat"
case needMoreSeat = "NeedMoreSeat"
case needMoreSeatAndReview = "NeedMoreSeatAndReview"
case pending = "Pending"

View File

@@ -0,0 +1,39 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct AggregateHitsOptions: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
fields: [String],
highlights: GraphQLNullable<[SearchHighlight]> = nil,
pagination: GraphQLNullable<AggregateHitsPagination> = nil
) {
__data = InputDict([
"fields": fields,
"highlights": highlights,
"pagination": pagination
])
}
public var fields: [String] {
get { __data["fields"] }
set { __data["fields"] = newValue }
}
public var highlights: GraphQLNullable<[SearchHighlight]> {
get { __data["highlights"] }
set { __data["highlights"] = newValue }
}
public var pagination: GraphQLNullable<AggregateHitsPagination> {
get { __data["pagination"] }
set { __data["pagination"] = newValue }
}
}

View File

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

View File

@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct AggregateInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
field: String,
options: AggregateOptions,
query: SearchQuery,
table: GraphQLEnum<SearchTable>
) {
__data = InputDict([
"field": field,
"options": options,
"query": query,
"table": table
])
}
public var field: String {
get { __data["field"] }
set { __data["field"] = newValue }
}
public var options: AggregateOptions {
get { __data["options"] }
set { __data["options"] = newValue }
}
public var query: SearchQuery {
get { __data["query"] }
set { __data["query"] = newValue }
}
public var table: GraphQLEnum<SearchTable> {
get { __data["table"] }
set { __data["table"] = newValue }
}
}

View File

@@ -0,0 +1,32 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct AggregateOptions: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
hits: AggregateHitsOptions,
pagination: GraphQLNullable<SearchPagination> = nil
) {
__data = InputDict([
"hits": hits,
"pagination": pagination
])
}
public var hits: AggregateHitsOptions {
get { __data["hits"] }
set { __data["hits"] = newValue }
}
public var pagination: GraphQLNullable<SearchPagination> {
get { __data["pagination"] }
set { __data["pagination"] = newValue }
}
}

View File

@@ -12,11 +12,13 @@ public struct CreateUserInput: InputObject {
public init(
email: String,
name: GraphQLNullable<String> = nil
name: GraphQLNullable<String> = nil,
password: GraphQLNullable<String> = nil
) {
__data = InputDict([
"email": email,
"name": name
"name": name,
"password": password
])
}
@@ -29,4 +31,9 @@ public struct CreateUserInput: InputObject {
get { __data["name"] }
set { __data["name"] = newValue }
}
public var password: GraphQLNullable<String> {
get { __data["password"] }
set { __data["password"] = newValue }
}
}

View File

@@ -12,7 +12,7 @@ public struct ForkChatSessionInput: InputObject {
public init(
docId: String,
latestMessageId: String,
latestMessageId: GraphQLNullable<String> = nil,
sessionId: String,
workspaceId: String
) {
@@ -30,7 +30,7 @@ public struct ForkChatSessionInput: InputObject {
}
/// Identify a message in the array and keep it with all previous messages into a forked session.
public var latestMessageId: String {
public var latestMessageId: GraphQLNullable<String> {
get { __data["latestMessageId"] }
set { __data["latestMessageId"] = newValue }
}

View File

@@ -0,0 +1,39 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct SearchHighlight: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
before: String,
end: String,
field: String
) {
__data = InputDict([
"before": before,
"end": end,
"field": field
])
}
public var before: String {
get { __data["before"] }
set { __data["before"] = newValue }
}
public var end: String {
get { __data["end"] }
set { __data["end"] = newValue }
}
public var field: String {
get { __data["field"] }
set { __data["field"] = newValue }
}
}

View File

@@ -0,0 +1,39 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct SearchInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
options: SearchOptions,
query: SearchQuery,
table: GraphQLEnum<SearchTable>
) {
__data = InputDict([
"options": options,
"query": query,
"table": table
])
}
public var options: SearchOptions {
get { __data["options"] }
set { __data["options"] = newValue }
}
public var query: SearchQuery {
get { __data["query"] }
set { __data["query"] = newValue }
}
public var table: GraphQLEnum<SearchTable> {
get { __data["table"] }
set { __data["table"] = newValue }
}
}

View File

@@ -0,0 +1,39 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct SearchOptions: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
fields: [String],
highlights: GraphQLNullable<[SearchHighlight]> = nil,
pagination: GraphQLNullable<SearchPagination> = nil
) {
__data = InputDict([
"fields": fields,
"highlights": highlights,
"pagination": pagination
])
}
public var fields: [String] {
get { __data["fields"] }
set { __data["fields"] = newValue }
}
public var highlights: GraphQLNullable<[SearchHighlight]> {
get { __data["highlights"] }
set { __data["highlights"] = newValue }
}
public var pagination: GraphQLNullable<SearchPagination> {
get { __data["pagination"] }
set { __data["pagination"] = newValue }
}
}

View File

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

View File

@@ -0,0 +1,67 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct SearchQuery: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
boost: GraphQLNullable<Double> = nil,
field: GraphQLNullable<String> = nil,
match: GraphQLNullable<String> = nil,
occur: GraphQLNullable<GraphQLEnum<SearchQueryOccur>> = nil,
queries: GraphQLNullable<[SearchQuery]> = nil,
query: GraphQLNullable<SearchQuery> = nil,
type: GraphQLEnum<SearchQueryType>
) {
__data = InputDict([
"boost": boost,
"field": field,
"match": match,
"occur": occur,
"queries": queries,
"query": query,
"type": type
])
}
public var boost: GraphQLNullable<Double> {
get { __data["boost"] }
set { __data["boost"] = newValue }
}
public var field: GraphQLNullable<String> {
get { __data["field"] }
set { __data["field"] = newValue }
}
public var match: GraphQLNullable<String> {
get { __data["match"] }
set { __data["match"] = newValue }
}
public var occur: GraphQLNullable<GraphQLEnum<SearchQueryOccur>> {
get { __data["occur"] }
set { __data["occur"] = newValue }
}
public var queries: GraphQLNullable<[SearchQuery]> {
get { __data["queries"] }
set { __data["queries"] = newValue }
}
public var query: GraphQLNullable<SearchQuery> {
get { __data["query"] }
set { __data["query"] = newValue }
}
public var type: GraphQLEnum<SearchQueryType> {
get { __data["type"] }
set { __data["type"] = newValue }
}
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let AggregateBucketHitsObjectType = ApolloAPI.Object(
typename: "AggregateBucketHitsObjectType",
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 AggregateBucketObjectType = ApolloAPI.Object(
typename: "AggregateBucketObjectType",
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 AggregateResultObjectType = ApolloAPI.Object(
typename: "AggregateResultObjectType",
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 AppConfigValidateResult = ApolloAPI.Object(
typename: "AppConfigValidateResult",
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 CopilotWorkspaceConfig = ApolloAPI.Object(
typename: "CopilotWorkspaceConfig",
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 CopilotWorkspaceFile = ApolloAPI.Object(
typename: "CopilotWorkspaceFile",
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 CopilotWorkspaceFileTypeEdge = ApolloAPI.Object(
typename: "CopilotWorkspaceFileTypeEdge",
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 CopilotWorkspaceIgnoredDoc = ApolloAPI.Object(
typename: "CopilotWorkspaceIgnoredDoc",
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 CopilotWorkspaceIgnoredDocTypeEdge = ApolloAPI.Object(
typename: "CopilotWorkspaceIgnoredDocTypeEdge",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let WorkspacePageMeta = ApolloAPI.Object(
typename: "WorkspacePageMeta",
static let DocTypeEdge = ApolloAPI.Object(
typename: "DocTypeEdge",
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 PaginatedCopilotWorkspaceFileType = ApolloAPI.Object(
typename: "PaginatedCopilotWorkspaceFileType",
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 PaginatedDocType = ApolloAPI.Object(
typename: "PaginatedDocType",
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 PaginatedIgnoredDocsType = ApolloAPI.Object(
typename: "PaginatedIgnoredDocsType",
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 SearchNodeObjectType = ApolloAPI.Object(
typename: "SearchNodeObjectType",
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 SearchResultObjectType = ApolloAPI.Object(
typename: "SearchResultObjectType",
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 SearchResultPagination = ApolloAPI.Object(
typename: "SearchResultPagination",
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 WorkspaceDocMeta = ApolloAPI.Object(
typename: "WorkspaceDocMeta",
implementedInterfaces: [],
keyFields: nil
)
}

View File

@@ -20,6 +20,10 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
public static func objectType(forTypename typename: String) -> ApolloAPI.Object? {
switch typename {
case "AggregateBucketHitsObjectType": return AffineGraphQL.Objects.AggregateBucketHitsObjectType
case "AggregateBucketObjectType": return AffineGraphQL.Objects.AggregateBucketObjectType
case "AggregateResultObjectType": return AffineGraphQL.Objects.AggregateResultObjectType
case "AppConfigValidateResult": return AffineGraphQL.Objects.AppConfigValidateResult
case "ChatMessage": return AffineGraphQL.Objects.ChatMessage
case "ContextMatchedDocChunk": return AffineGraphQL.Objects.ContextMatchedDocChunk
case "ContextMatchedFileChunk": return AffineGraphQL.Objects.ContextMatchedFileChunk
@@ -36,11 +40,17 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
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
case "CopilotWorkspaceIgnoredDoc": return AffineGraphQL.Objects.CopilotWorkspaceIgnoredDoc
case "CopilotWorkspaceIgnoredDocTypeEdge": return AffineGraphQL.Objects.CopilotWorkspaceIgnoredDocTypeEdge
case "CredentialsRequirementType": return AffineGraphQL.Objects.CredentialsRequirementType
case "DeleteAccount": return AffineGraphQL.Objects.DeleteAccount
case "DocHistoryType": return AffineGraphQL.Objects.DocHistoryType
case "DocPermissions": return AffineGraphQL.Objects.DocPermissions
case "DocType": return AffineGraphQL.Objects.DocType
case "DocTypeEdge": return AffineGraphQL.Objects.DocTypeEdge
case "EditorType": return AffineGraphQL.Objects.EditorType
case "GrantedDocUserType": return AffineGraphQL.Objects.GrantedDocUserType
case "GrantedDocUserTypeEdge": return AffineGraphQL.Objects.GrantedDocUserTypeEdge
@@ -57,13 +67,19 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
case "NotificationObjectType": return AffineGraphQL.Objects.NotificationObjectType
case "NotificationObjectTypeEdge": return AffineGraphQL.Objects.NotificationObjectTypeEdge
case "PageInfo": return AffineGraphQL.Objects.PageInfo
case "PaginatedCopilotWorkspaceFileType": return AffineGraphQL.Objects.PaginatedCopilotWorkspaceFileType
case "PaginatedDocType": return AffineGraphQL.Objects.PaginatedDocType
case "PaginatedGrantedDocUserType": return AffineGraphQL.Objects.PaginatedGrantedDocUserType
case "PaginatedIgnoredDocsType": return AffineGraphQL.Objects.PaginatedIgnoredDocsType
case "PaginatedNotificationObjectType": return AffineGraphQL.Objects.PaginatedNotificationObjectType
case "PasswordLimitsType": return AffineGraphQL.Objects.PasswordLimitsType
case "PublicUserType": return AffineGraphQL.Objects.PublicUserType
case "Query": return AffineGraphQL.Objects.Query
case "ReleaseVersionType": return AffineGraphQL.Objects.ReleaseVersionType
case "RemoveAvatar": return AffineGraphQL.Objects.RemoveAvatar
case "SearchNodeObjectType": return AffineGraphQL.Objects.SearchNodeObjectType
case "SearchResultObjectType": return AffineGraphQL.Objects.SearchResultObjectType
case "SearchResultPagination": return AffineGraphQL.Objects.SearchResultPagination
case "ServerConfigType": return AffineGraphQL.Objects.ServerConfigType
case "SubscriptionPrice": return AffineGraphQL.Objects.SubscriptionPrice
case "SubscriptionType": return AffineGraphQL.Objects.SubscriptionType
@@ -75,7 +91,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
case "UserQuotaUsageType": return AffineGraphQL.Objects.UserQuotaUsageType
case "UserSettingsType": return AffineGraphQL.Objects.UserSettingsType
case "UserType": return AffineGraphQL.Objects.UserType
case "WorkspacePageMeta": return AffineGraphQL.Objects.WorkspacePageMeta
case "WorkspaceDocMeta": return AffineGraphQL.Objects.WorkspaceDocMeta
case "WorkspacePermissions": return AffineGraphQL.Objects.WorkspacePermissions
case "WorkspaceQuotaHumanReadableType": return AffineGraphQL.Objects.WorkspaceQuotaHumanReadableType
case "WorkspaceQuotaType": return AffineGraphQL.Objects.WorkspaceQuotaType