feat(ios): implement chat function (#9482)

Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
Lakr
2025-01-02 17:35:07 +08:00
committed by GitHub
parent 72e343c379
commit 094cb1d71c
220 changed files with 7695 additions and 164 deletions

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and can be edited to
// implement advanced custom scalar functionality.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
/// A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
public typealias DateTime = String

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and can be edited to
// implement advanced custom scalar functionality.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
/// The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.
public typealias ID = String

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and can be edited to
// implement advanced custom scalar functionality.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
/// The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
public typealias JSON = String

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and can be edited to
// implement advanced custom scalar functionality.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
/// The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
public typealias JSONObject = String

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and can be edited to
// implement advanced custom scalar functionality.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
/// The `SafeInt` scalar type represents non-fractional signed whole numeric values that are considered safe as defined by the ECMAScript specification.
public typealias SafeInt = String

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and can be edited to
// implement advanced custom scalar functionality.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
/// The `Upload` scalar type represents a file upload.
public typealias Upload = String

View File

@@ -0,0 +1,9 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum ChatHistoryOrder: String, EnumType {
case asc = "asc"
case desc = "desc"
}

View File

@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum CopilotPromptMessageRole: String, EnumType {
case assistant = "assistant"
case system = "system"
case user = "user"
}

View File

@@ -0,0 +1,14 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// The type of workspace feature
public enum FeatureType: String, EnumType {
case aIEarlyAccess = "AIEarlyAccess"
case admin = "Admin"
case copilot = "Copilot"
case earlyAccess = "EarlyAccess"
case unlimitedCopilot = "UnlimitedCopilot"
case unlimitedWorkspace = "UnlimitedWorkspace"
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum InvoiceStatus: String, EnumType {
case draft = "Draft"
case open = "Open"
case paid = "Paid"
case uncollectible = "Uncollectible"
case void = "Void"
}

View File

@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum OAuthProviderType: String, EnumType {
case gitHub = "GitHub"
case google = "Google"
case oidc = "OIDC"
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// User permission in workspace
public enum Permission: String, EnumType {
case admin = "Admin"
case owner = "Owner"
case read = "Read"
case write = "Write"
}

View File

@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// The mode which the public page default in
public enum PublicPageMode: String, EnumType {
case edgeless = "Edgeless"
case page = "Page"
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum RuntimeConfigType: String, EnumType {
case array = "Array"
case boolean = "Boolean"
case number = "Number"
case object = "Object"
case string = "String"
}

View File

@@ -0,0 +1,9 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum ServerDeploymentType: String, EnumType {
case affine = "Affine"
case selfhosted = "Selfhosted"
}

View File

@@ -0,0 +1,11 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum ServerFeature: String, EnumType {
case captcha = "Captcha"
case copilot = "Copilot"
case oAuth = "OAuth"
case payment = "Payment"
}

View File

@@ -0,0 +1,13 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum SubscriptionPlan: String, EnumType {
case ai = "AI"
case enterprise = "Enterprise"
case free = "Free"
case pro = "Pro"
case selfHosted = "SelfHosted"
case team = "Team"
}

View File

@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum SubscriptionRecurring: String, EnumType {
case lifetime = "Lifetime"
case monthly = "Monthly"
case yearly = "Yearly"
}

View File

@@ -0,0 +1,15 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum SubscriptionStatus: String, EnumType {
case active = "Active"
case canceled = "Canceled"
case incomplete = "Incomplete"
case incompleteExpired = "IncompleteExpired"
case pastDue = "PastDue"
case paused = "Paused"
case trialing = "Trialing"
case unpaid = "Unpaid"
}

View File

@@ -0,0 +1,9 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum SubscriptionVariant: String, EnumType {
case ea = "EA"
case onetime = "Onetime"
}

View File

@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// Workspace invite link expire time
public enum WorkspaceInviteLinkExpireTime: String, EnumType {
case oneDay = "OneDay"
case oneMonth = "OneMonth"
case oneWeek = "OneWeek"
case threeDays = "ThreeDays"
}

View File

@@ -0,0 +1,13 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
/// Member invite status in workspace
public enum WorkspaceMemberStatus: String, EnumType {
case accepted = "Accepted"
case needMoreSeat = "NeedMoreSeat"
case needMoreSeatAndReview = "NeedMoreSeatAndReview"
case pending = "Pending"
case underReview = "UnderReview"
}

View File

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

View File

@@ -0,0 +1,53 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CreateChatMessageInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
attachments: GraphQLNullable<[String]> = nil,
blobs: GraphQLNullable<[Upload]> = nil,
content: GraphQLNullable<String> = nil,
params: GraphQLNullable<JSON> = nil,
sessionId: String
) {
__data = InputDict([
"attachments": attachments,
"blobs": blobs,
"content": content,
"params": params,
"sessionId": sessionId
])
}
public var attachments: GraphQLNullable<[String]> {
get { __data["attachments"] }
set { __data["attachments"] = newValue }
}
public var blobs: GraphQLNullable<[Upload]> {
get { __data["blobs"] }
set { __data["blobs"] = newValue }
}
public var content: GraphQLNullable<String> {
get { __data["content"] }
set { __data["content"] = newValue }
}
public var params: GraphQLNullable<JSON> {
get { __data["params"] }
set { __data["params"] = newValue }
}
public var sessionId: String {
get { __data["sessionId"] }
set { __data["sessionId"] = newValue }
}
}

View File

@@ -0,0 +1,40 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CreateChatSessionInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
docId: String,
promptName: String,
workspaceId: String
) {
__data = InputDict([
"docId": docId,
"promptName": promptName,
"workspaceId": workspaceId
])
}
public var docId: String {
get { __data["docId"] }
set { __data["docId"] = newValue }
}
/// The prompt name to use for the session
public var promptName: String {
get { __data["promptName"] }
set { __data["promptName"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
}
}

View File

@@ -0,0 +1,67 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CreateCheckoutSessionInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
args: GraphQLNullable<JSONObject> = nil,
coupon: GraphQLNullable<String> = nil,
idempotencyKey: GraphQLNullable<String> = nil,
plan: GraphQLNullable<GraphQLEnum<SubscriptionPlan>> = nil,
recurring: GraphQLNullable<GraphQLEnum<SubscriptionRecurring>> = nil,
successCallbackLink: String,
variant: GraphQLNullable<GraphQLEnum<SubscriptionVariant>> = nil
) {
__data = InputDict([
"args": args,
"coupon": coupon,
"idempotencyKey": idempotencyKey,
"plan": plan,
"recurring": recurring,
"successCallbackLink": successCallbackLink,
"variant": variant
])
}
public var args: GraphQLNullable<JSONObject> {
get { __data["args"] }
set { __data["args"] = newValue }
}
public var coupon: GraphQLNullable<String> {
get { __data["coupon"] }
set { __data["coupon"] = newValue }
}
public var idempotencyKey: GraphQLNullable<String> {
get { __data["idempotencyKey"] }
set { __data["idempotencyKey"] = newValue }
}
public var plan: GraphQLNullable<GraphQLEnum<SubscriptionPlan>> {
get { __data["plan"] }
set { __data["plan"] = newValue }
}
public var recurring: GraphQLNullable<GraphQLEnum<SubscriptionRecurring>> {
get { __data["recurring"] }
set { __data["recurring"] = newValue }
}
public var successCallbackLink: String {
get { __data["successCallbackLink"] }
set { __data["successCallbackLink"] = newValue }
}
public var variant: GraphQLNullable<GraphQLEnum<SubscriptionVariant>> {
get { __data["variant"] }
set { __data["variant"] = newValue }
}
}

View File

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

View File

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

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct ForkChatSessionInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
docId: String,
latestMessageId: String,
sessionId: String,
workspaceId: String
) {
__data = InputDict([
"docId": docId,
"latestMessageId": latestMessageId,
"sessionId": sessionId,
"workspaceId": workspaceId
])
}
public var docId: String {
get { __data["docId"] }
set { __data["docId"] = newValue }
}
/// Identify a message in the array and keep it with all previous messages into a forked session.
public var latestMessageId: String {
get { __data["latestMessageId"] }
set { __data["latestMessageId"] = newValue }
}
public var sessionId: String {
get { __data["sessionId"] }
set { __data["sessionId"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
}
}

View File

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

View File

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

View File

@@ -0,0 +1,67 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct QueryChatHistoriesInput: 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,
messageOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> = nil,
sessionId: GraphQLNullable<String> = nil,
sessionOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> = nil,
skip: GraphQLNullable<Int> = nil
) {
__data = InputDict([
"action": action,
"fork": fork,
"limit": limit,
"messageOrder": messageOrder,
"sessionId": sessionId,
"sessionOrder": sessionOrder,
"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 messageOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> {
get { __data["messageOrder"] }
set { __data["messageOrder"] = newValue }
}
public var sessionId: GraphQLNullable<String> {
get { __data["sessionId"] }
set { __data["sessionId"] = newValue }
}
public var sessionOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> {
get { __data["sessionOrder"] }
set { __data["sessionOrder"] = newValue }
}
public var skip: GraphQLNullable<Int> {
get { __data["skip"] }
set { __data["skip"] = newValue }
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,15 @@
// @generated
// This file was automatically generated and can be edited to
// provide custom configuration for a generated GraphQL schema.
//
// Any changes to this file will not be overwritten by future
// code generation execution.
import ApolloAPI
public enum SchemaConfiguration: ApolloAPI.SchemaConfiguration {
public static func cacheKeyInfo(for _: ApolloAPI.Object, object _: ApolloAPI.ObjectData) -> CacheKeyInfo? {
// Implement this function to configure cache key resolution for your schema types.
nil
}
}

View File

@@ -0,0 +1,68 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public protocol SelectionSet: ApolloAPI.SelectionSet & ApolloAPI.RootSelectionSet
where Schema == AffineGraphQL.SchemaMetadata {}
public protocol InlineFragment: ApolloAPI.SelectionSet & ApolloAPI.InlineFragment
where Schema == AffineGraphQL.SchemaMetadata {}
public protocol MutableSelectionSet: ApolloAPI.MutableRootSelectionSet
where Schema == AffineGraphQL.SchemaMetadata {}
public protocol MutableInlineFragment: ApolloAPI.MutableSelectionSet & ApolloAPI.InlineFragment
where Schema == AffineGraphQL.SchemaMetadata {}
public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
public static let configuration: any ApolloAPI.SchemaConfiguration.Type = SchemaConfiguration.self
public static func objectType(forTypename typename: String) -> ApolloAPI.Object? {
switch typename {
case "ChatMessage": return AffineGraphQL.Objects.ChatMessage
case "Copilot": return AffineGraphQL.Objects.Copilot
case "CopilotHistories": return AffineGraphQL.Objects.CopilotHistories
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 "CredentialsRequirementType": return AffineGraphQL.Objects.CredentialsRequirementType
case "DeleteAccount": return AffineGraphQL.Objects.DeleteAccount
case "DocHistoryType": return AffineGraphQL.Objects.DocHistoryType
case "EditorType": return AffineGraphQL.Objects.EditorType
case "HumanReadableQuotaType": return AffineGraphQL.Objects.HumanReadableQuotaType
case "InvitationType": return AffineGraphQL.Objects.InvitationType
case "InvitationWorkspaceType": return AffineGraphQL.Objects.InvitationWorkspaceType
case "InviteLink": return AffineGraphQL.Objects.InviteLink
case "InviteResult": return AffineGraphQL.Objects.InviteResult
case "InviteUserType": return AffineGraphQL.Objects.InviteUserType
case "InvoiceType": return AffineGraphQL.Objects.InvoiceType
case "LimitedUserType": return AffineGraphQL.Objects.LimitedUserType
case "ListedBlob": return AffineGraphQL.Objects.ListedBlob
case "Mutation": return AffineGraphQL.Objects.Mutation
case "PasswordLimitsType": return AffineGraphQL.Objects.PasswordLimitsType
case "Query": return AffineGraphQL.Objects.Query
case "QuotaQueryType": return AffineGraphQL.Objects.QuotaQueryType
case "RemoveAvatar": return AffineGraphQL.Objects.RemoveAvatar
case "ServerConfigType": return AffineGraphQL.Objects.ServerConfigType
case "ServerRuntimeConfigType": return AffineGraphQL.Objects.ServerRuntimeConfigType
case "ServerServiceConfig": return AffineGraphQL.Objects.ServerServiceConfig
case "SubscriptionPrice": return AffineGraphQL.Objects.SubscriptionPrice
case "SubscriptionType": return AffineGraphQL.Objects.SubscriptionType
case "UserQuota": return AffineGraphQL.Objects.UserQuota
case "UserQuotaHumanReadable": return AffineGraphQL.Objects.UserQuotaHumanReadable
case "UserQuotaUsage": return AffineGraphQL.Objects.UserQuotaUsage
case "UserType": return AffineGraphQL.Objects.UserType
case "WorkspacePage": return AffineGraphQL.Objects.WorkspacePage
case "WorkspacePageMeta": return AffineGraphQL.Objects.WorkspacePageMeta
case "WorkspaceType": return AffineGraphQL.Objects.WorkspaceType
case "tokenType": return AffineGraphQL.Objects.TokenType
default: return nil
}
}
}
public enum Objects {}
public enum Interfaces {}
public enum Unions {}

View File

@@ -0,0 +1,14 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Unions {
static let UserOrLimitedUser = Union(
name: "UserOrLimitedUser",
possibleTypes: [
Objects.LimitedUserType.self,
Objects.UserType.self
]
)
}