snapshot of https://github.com/toeverything/AFFiNE.git (canary, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build & Test / Analyze (javascript, affine) (push) Failing after 4s
Build & Test / Analyze (typescript, affine) (push) Failing after 3s
Build & Test / Rust test filter (push) Failing after 4s
Build & Test / Check yarn binary (push) Failing after 3s
Build & Test / E2E BlockSuite Test (3) (push) Failing after 3s
Build & Test / Analyze (javascript, blocksuite) (push) Failing after 3s
Build & Test / Analyze (typescript, blocksuite) (push) Failing after 3s
Build & Test / Mobile native build filter (push) Failing after 3s
Build & Test / E2E BlockSuite Test (1) (push) Failing after 4s
Build & Test / E2E BlockSuite Test (2) (push) Failing after 4s
Build & Test / E2E Mobile Test (1) (push) Failing after 3s
Build & Test / Unit Test (1) (push) Has been skipped
Build & Test / Unit Test (2) (push) Has been skipped
Build & Test / Unit Test (3) (push) Has been skipped
Build & Test / Unit Test (4) (push) Has been skipped
Build & Test / Unit Test (5) (push) Has been skipped
Build & Test / Native Unit Test (push) Has been skipped
Build & Test / E2E BlockSuite Test (4) (push) Failing after 3s
Build & Test / E2E BlockSuite Test (5) (push) Failing after 3s
Build & Test / E2E BlockSuite Cross Browser Test (push) Failing after 3s
Build & Test / E2E Mobile Test (2) (push) Failing after 3s
Build & Test / Build AFFiNE native (x86_64-unknown-linux-gnu) (push) Failing after 3s
Build & Test / Build Server native (push) Failing after 3s
Build & Test / Check Git Status (push) Has been skipped
Build & Test / Server Test (0, 4) (push) Has been skipped
Build & Test / Server Test (1, 4) (push) Has been skipped
Build & Test / Server Test (2, 4) (push) Has been skipped
Build & Test / Server Test (3, 4) (push) Has been skipped
Build & Test / Server Test with Elasticsearch (push) Has been skipped
Build & Test / Build @affine/electron renderer (push) Failing after 3s
Build & Test / Copilot test filter (push) Failing after 4s
Build & Test / Lint Rust (push) Has been skipped
Build & Test / Server Test with Embedded Search (push) Has been skipped
Build & Test / Server Test with Manticore Search (push) Has been skipped
Build & Test / Server E2E Test (push) Has been skipped
Build & Test / Cloud Desktop E2E Test (push) Has been skipped
Build & Test / Cloud E2E Test 1/2 (push) Has been skipped
Build & Test / Cloud E2E Test 2/2 (push) Has been skipped
Build & Test / Build Android app (push) Has been skipped
Build & Test / Test Android app (push) Has been skipped
Build & Test / Run native tests (push) Has been skipped
Build & Test / Server Copilot Api Test (push) Has been skipped
Build & Test / Frontend Copilot E2E Test (1, 5) (push) Has been skipped
Build & Test / Frontend Copilot E2E Test (2, 5) (push) Has been skipped
Build & Test / Frontend Copilot E2E Test (3, 5) (push) Has been skipped
Build & Test / Frontend Copilot E2E Test (4, 5) (push) Has been skipped
Build & Test / Frontend Copilot E2E Test (5, 5) (push) Has been skipped
Release / Canary Gate (push) Has been skipped
Build & Test / Build AFFiNE native (aarch64-apple-darwin) (push) Has been cancelled
Build & Test / Lint (push) Has been cancelled
Build & Test / Typecheck (push) Has been cancelled
Build & Test / Build AFFiNE native (x86_64-apple-darwin) (push) Has been cancelled
Build & Test / Desktop Test (ubuntu-latest, linux, x64, x86_64-unknown-linux-gnu, true) (push) Has been cancelled
Build & Test / Desktop Test (windows-latest, windows, x64, x86_64-pc-windows-msvc, true) (push) Has been cancelled
Build & Test / E2E Test (1) (push) Has been cancelled
Build & Test / E2E Test (2) (push) Has been cancelled
Build & Test / E2E Test (3) (push) Has been cancelled
Build & Test / E2E Test (4) (push) Has been cancelled
Build & Test / E2E Test (5) (push) Has been cancelled
Build & Test / Build AFFiNE native (aarch64-pc-windows-msvc) (push) Has been cancelled
Build & Test / Build AFFiNE native (x86_64-pc-windows-msvc) (push) Has been cancelled
Build & Test / Desktop Test (macos-latest, macos, arm64, aarch64-apple-darwin, true) (push) Has been cancelled
Build & Test / Desktop Test (macos-latest, macos, x64, x86_64-apple-darwin, false) (push) Has been cancelled
Build & Test / 3, 2, 1 Launch (push) Has been cancelled
Build & Test / Build iOS app (push) Has been cancelled
Copilot Test Automatically / Setup Test (push) Failing after 1s
Release / Prepare (push) Failing after 2s
Release / Release Cloud (push) Has been skipped
Release / Release Desktop (push) Has been skipped
Release / Release Docker Image (push) Has been skipped
Release / Release Mobile (push) Has been skipped

This commit is contained in:
upstream-mirror
2026-09-16 04:01:20 +05:00
commit 702cc698a7
9990 changed files with 1073618 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
.build
apollo-ios-cli

View File

@@ -0,0 +1,28 @@
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "AffineGraphQL",
platforms: [
.iOS(.v12),
.macOS(.v10_14),
.tvOS(.v12),
.watchOS(.v5),
],
products: [
.library(name: "AffineGraphQL", targets: ["AffineGraphQL"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.25.7"),
],
targets: [
.target(
name: "AffineGraphQL",
dependencies: [
.product(name: "ApolloAPI", package: "apollo-ios"),
],
path: "./Sources"
),
]
)

View File

@@ -0,0 +1,69 @@
import Foundation
public final class AuthAccessTokenCache: @unchecked Sendable {
public static let shared = AuthAccessTokenCache()
private struct Entry {
let token: String
let expiresAt: Date
}
private let lock = NSLock()
private var entries: [String: Entry] = [:]
private init() {}
public func set(_ token: String, expiresAt: Date, for endpoint: String) {
guard let key = Self.canonicalOrigin(endpoint) else { return }
lock.lock()
entries[key] = Entry(token: token, expiresAt: expiresAt)
lock.unlock()
}
public func token(for endpoint: URL, minimumValidity: TimeInterval = 0) -> String? {
token(for: endpoint, matching: nil, minimumValidity: minimumValidity)
}
public func token(
for endpoint: URL,
matching origin: URL?,
minimumValidity: TimeInterval = 0
) -> String? {
guard let key = Self.canonicalOrigin(endpoint) else { return nil }
if let origin, Self.canonicalOrigin(origin) != key { return nil }
lock.lock()
defer { lock.unlock() }
guard let entry = entries[key], entry.expiresAt.timeIntervalSinceNow > minimumValidity else {
return nil
}
return entry.token
}
public func remove(for endpoint: String) {
guard let key = Self.canonicalOrigin(endpoint) else { return }
lock.lock()
entries[key] = nil
lock.unlock()
}
private static func canonicalOrigin(_ endpoint: String) -> String? {
guard let url = URL(string: endpoint) else { return nil }
return canonicalOrigin(url)
}
private static func canonicalOrigin(_ url: URL) -> String? {
guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
let scheme = components.scheme?.lowercased(),
let host = components.host?.lowercased()
else {
return nil
}
let defaultPort = scheme == "https" ? 443 : (scheme == "http" ? 80 : nil)
if let port = components.port, port != defaultPort {
return "\(scheme)://\(host):\(port)"
}
return "\(scheme)://\(host)"
}
}

View File

@@ -0,0 +1,105 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString {
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName action pinned title messages { __typename id role content attachments scopeSnapshot streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
}
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotHistories }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("sessionId", String.self),
.field("workspaceId", String.self),
.field("docId", String?.self),
.field("parentSessionId", String?.self),
.field("promptName", String.self),
.field("action", String?.self),
.field("pinned", Bool.self),
.field("title", String?.self),
.field("messages", [Message].self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("updatedAt", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CopilotChatHistory.self
] }
public var sessionId: String { __data["sessionId"] }
public var workspaceId: String { __data["workspaceId"] }
public var docId: String? { __data["docId"] }
public var parentSessionId: String? { __data["parentSessionId"] }
public var promptName: String { __data["promptName"] }
/// An mark identifying which view to use to display the session
public var action: String? { __data["action"] }
public var pinned: Bool { __data["pinned"] }
public var title: String? { __data["title"] }
public var messages: [Message] { __data["messages"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
/// Message
///
/// Parent Type: `ChatMessage`
public struct Message: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ChatMessage }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID?.self),
.field("role", String.self),
.field("content", String.self),
.field("attachments", [String]?.self),
.field("scopeSnapshot", AffineGraphQL.JSON?.self),
.field("streamObjects", [StreamObject]?.self),
.field("createdAt", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CopilotChatHistory.Message.self
] }
public var id: AffineGraphQL.ID? { __data["id"] }
public var role: String { __data["role"] }
public var content: String { __data["content"] }
public var attachments: [String]? { __data["attachments"] }
public var scopeSnapshot: AffineGraphQL.JSON? { __data["scopeSnapshot"] }
public var streamObjects: [StreamObject]? { __data["streamObjects"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
/// Message.StreamObject
///
/// Parent Type: `StreamObject`
public struct StreamObject: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.StreamObject }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("type", String.self),
.field("textDelta", String?.self),
.field("toolCallId", String?.self),
.field("toolName", String?.self),
.field("args", AffineGraphQL.JSON?.self),
.field("result", AffineGraphQL.JSON?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CopilotChatHistory.Message.StreamObject.self
] }
public var type: String { __data["type"] }
public var textDelta: String? { __data["textDelta"] }
public var toolCallId: String? { __data["toolCallId"] }
public var toolName: String? { __data["toolName"] }
public var args: AffineGraphQL.JSON? { __data["args"] }
public var result: AffineGraphQL.JSON? { __data["result"] }
}
}
}

View File

@@ -0,0 +1,52 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public struct CredentialsRequirements: AffineGraphQL.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString {
#"fragment CredentialsRequirements on CredentialsRequirementType { __typename password { __typename ...PasswordLimits } }"#
}
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CredentialsRequirementType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("password", Password.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CredentialsRequirements.self
] }
public var password: Password { __data["password"] }
/// Password
///
/// Parent Type: `PasswordLimitsType`
public struct Password: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PasswordLimitsType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.fragment(PasswordLimits.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CredentialsRequirements.Password.self,
PasswordLimits.self
] }
public var minLength: Int { __data["minLength"] }
public var maxLength: Int { __data["maxLength"] }
public struct Fragments: FragmentContainer {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public var passwordLimits: PasswordLimits { _toFragment() }
}
}
}

View File

@@ -0,0 +1,34 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public struct LicenseBody: AffineGraphQL.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString {
#"fragment licenseBody on License { __typename expiredAt installedAt quantity recurring validatedAt variant }"#
}
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.License }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("expiredAt", AffineGraphQL.DateTime?.self),
.field("installedAt", AffineGraphQL.DateTime.self),
.field("quantity", Int.self),
.field("recurring", GraphQLEnum<AffineGraphQL.SubscriptionRecurring>.self),
.field("validatedAt", AffineGraphQL.DateTime.self),
.field("variant", GraphQLEnum<AffineGraphQL.SubscriptionVariant>?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
LicenseBody.self
] }
public var expiredAt: AffineGraphQL.DateTime? { __data["expiredAt"] }
public var installedAt: AffineGraphQL.DateTime { __data["installedAt"] }
public var quantity: Int { __data["quantity"] }
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
public var validatedAt: AffineGraphQL.DateTime { __data["validatedAt"] }
public var variant: GraphQLEnum<AffineGraphQL.SubscriptionVariant>? { __data["variant"] }
}

View File

@@ -0,0 +1,112 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public struct PaginatedCopilotChats: AffineGraphQL.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString {
#"fragment PaginatedCopilotChats on PaginatedCopilotHistoriesType { __typename pageInfo { __typename hasNextPage hasPreviousPage startCursor endCursor } edges { __typename cursor node { __typename ...CopilotChatHistory } } }"#
}
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedCopilotHistoriesType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("pageInfo", PageInfo.self),
.field("edges", [Edge].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PaginatedCopilotChats.self
] }
public var pageInfo: PageInfo { __data["pageInfo"] }
public var edges: [Edge] { __data["edges"] }
/// PageInfo
///
/// Parent Type: `PageInfo`
public struct PageInfo: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PageInfo }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("hasNextPage", Bool.self),
.field("hasPreviousPage", Bool.self),
.field("startCursor", String?.self),
.field("endCursor", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PaginatedCopilotChats.PageInfo.self
] }
public var hasNextPage: Bool { __data["hasNextPage"] }
public var hasPreviousPage: Bool { __data["hasPreviousPage"] }
public var startCursor: String? { __data["startCursor"] }
public var endCursor: String? { __data["endCursor"] }
}
/// Edge
///
/// Parent Type: `CopilotHistoriesTypeEdge`
public struct Edge: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotHistoriesTypeEdge }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("cursor", String.self),
.field("node", Node.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PaginatedCopilotChats.Edge.self
] }
public var cursor: String { __data["cursor"] }
public var node: Node { __data["node"] }
/// Edge.Node
///
/// Parent Type: `CopilotHistories`
public struct Node: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotHistories }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.fragment(CopilotChatHistory.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PaginatedCopilotChats.Edge.Node.self,
CopilotChatHistory.self
] }
public var sessionId: String { __data["sessionId"] }
public var workspaceId: String { __data["workspaceId"] }
public var docId: String? { __data["docId"] }
public var parentSessionId: String? { __data["parentSessionId"] }
public var promptName: String { __data["promptName"] }
/// An mark identifying which view to use to display the session
public var action: String? { __data["action"] }
public var pinned: Bool { __data["pinned"] }
public var title: String? { __data["title"] }
public var messages: [Message] { __data["messages"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
public struct Fragments: FragmentContainer {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public var copilotChatHistory: CopilotChatHistory { _toFragment() }
}
public typealias Message = CopilotChatHistory.Message
}
}
}

View File

@@ -0,0 +1,26 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public struct PasswordLimits: AffineGraphQL.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString {
#"fragment PasswordLimits on PasswordLimitsType { __typename minLength maxLength }"#
}
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PasswordLimitsType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("minLength", Int.self),
.field("maxLength", Int.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PasswordLimits.self
] }
public var minLength: Int { __data["minLength"] }
public var maxLength: Int { __data["maxLength"] }
}

View File

@@ -0,0 +1,51 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AbortBlobUploadMutation: GraphQLMutation {
public static let operationName: String = "abortBlobUpload"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation abortBlobUpload($workspaceId: String!, $key: String!, $uploadId: String!) { abortBlobUpload(workspaceId: $workspaceId, key: $key, uploadId: $uploadId) }"#
))
public var workspaceId: String
public var key: String
public var uploadId: String
public init(
workspaceId: String,
key: String,
uploadId: String
) {
self.workspaceId = workspaceId
self.key = key
self.uploadId = uploadId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"key": key,
"uploadId": uploadId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("abortBlobUpload", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"key": .variable("key"),
"uploadId": .variable("uploadId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AbortBlobUploadMutation.Data.self
] }
public var abortBlobUpload: Bool { __data["abortBlobUpload"] }
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AcceptInviteByInviteIdMutation: GraphQLMutation {
public static let operationName: String = "acceptInviteByInviteId"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!) { acceptInviteById(workspaceId: $workspaceId, inviteId: $inviteId) }"#
))
public var workspaceId: String
public var inviteId: String
public init(
workspaceId: String,
inviteId: String
) {
self.workspaceId = workspaceId
self.inviteId = inviteId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"inviteId": inviteId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
#warning("Argument 'workspaceId' of field 'acceptInviteById' is deprecated. Reason: 'never used'")
public static var __selections: [ApolloAPI.Selection] { [
.field("acceptInviteById", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"inviteId": .variable("inviteId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AcceptInviteByInviteIdMutation.Data.self
] }
public var acceptInviteById: Bool { __data["acceptInviteById"] }
}
}

View File

@@ -0,0 +1,79 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ActivateLicenseMutation: GraphQLMutation {
public static let operationName: String = "activateLicense"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation activateLicense($workspaceId: String!, $license: String!) { activateLicense(workspaceId: $workspaceId, license: $license) { __typename ...licenseBody } }"#,
fragments: [LicenseBody.self]
))
public var workspaceId: String
public var license: String
public init(
workspaceId: String,
license: String
) {
self.workspaceId = workspaceId
self.license = license
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"license": license
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("activateLicense", ActivateLicense.self, arguments: [
"workspaceId": .variable("workspaceId"),
"license": .variable("license")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ActivateLicenseMutation.Data.self
] }
public var activateLicense: ActivateLicense { __data["activateLicense"] }
/// ActivateLicense
///
/// Parent Type: `License`
public struct ActivateLicense: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.License }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.fragment(LicenseBody.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ActivateLicenseMutation.Data.ActivateLicense.self,
LicenseBody.self
] }
public var expiredAt: AffineGraphQL.DateTime? { __data["expiredAt"] }
public var installedAt: AffineGraphQL.DateTime { __data["installedAt"] }
public var quantity: Int { __data["quantity"] }
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
public var validatedAt: AffineGraphQL.DateTime { __data["validatedAt"] }
public var variant: GraphQLEnum<AffineGraphQL.SubscriptionVariant>? { __data["variant"] }
public struct Fragments: FragmentContainer {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public var licenseBody: LicenseBody { _toFragment() }
}
}
}
}

View File

@@ -0,0 +1,74 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AddWorkspaceArtifactMutation: GraphQLMutation {
public static let operationName: String = "addWorkspaceArtifact"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation addWorkspaceArtifact($workspaceId: String!, $blob: Upload!) { addWorkspaceArtifact(workspaceId: $workspaceId, blob: $blob) { __typename artifactId contentHash mediaType size createdAt } }"#
))
public var workspaceId: String
public var blob: Upload
public init(
workspaceId: String,
blob: Upload
) {
self.workspaceId = workspaceId
self.blob = blob
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"blob": blob
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("addWorkspaceArtifact", AddWorkspaceArtifact.self, arguments: [
"workspaceId": .variable("workspaceId"),
"blob": .variable("blob")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AddWorkspaceArtifactMutation.Data.self
] }
/// Add a workspace artifact
public var addWorkspaceArtifact: AddWorkspaceArtifact { __data["addWorkspaceArtifact"] }
/// AddWorkspaceArtifact
///
/// Parent Type: `CopilotWorkspaceArtifact`
public struct AddWorkspaceArtifact: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifact }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("artifactId", String.self),
.field("contentHash", String.self),
.field("mediaType", String.self),
.field("size", AffineGraphQL.SafeInt.self),
.field("createdAt", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AddWorkspaceArtifactMutation.Data.AddWorkspaceArtifact.self
] }
public var artifactId: String { __data["artifactId"] }
public var contentHash: String { __data["contentHash"] }
public var mediaType: String { __data["mediaType"] }
public var size: AffineGraphQL.SafeInt { __data["size"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
}
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AddWorkspaceEmbeddingIgnoredDocsMutation: GraphQLMutation {
public static let operationName: String = "addWorkspaceEmbeddingIgnoredDocs"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation addWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $add: [String!]!) { updateWorkspaceEmbeddingIgnoredDocs(workspaceId: $workspaceId, add: $add) }"#
))
public var workspaceId: String
public var add: [String]
public init(
workspaceId: String,
add: [String]
) {
self.workspaceId = workspaceId
self.add = add
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"add": add
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspaceEmbeddingIgnoredDocs", Int.self, arguments: [
"workspaceId": .variable("workspaceId"),
"add": .variable("add")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AddWorkspaceEmbeddingIgnoredDocsMutation.Data.self
] }
/// Update ignored docs
public var updateWorkspaceEmbeddingIgnoredDocs: Int { __data["updateWorkspaceEmbeddingIgnoredDocs"] }
}
}

View File

@@ -0,0 +1,110 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AdminUpdateWorkspaceMutation: GraphQLMutation {
public static let operationName: String = "adminUpdateWorkspace"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation adminUpdateWorkspace($input: AdminUpdateWorkspaceInput!) { adminUpdateWorkspace(input: $input) { __typename id public createdAt name avatarKey enableAi enableSharing enableUrlPreview enableDocEmbedding owner { __typename id name email avatarUrl } memberCount publicPageCount snapshotCount snapshotSize blobCount blobSize } }"#
))
public var input: AdminUpdateWorkspaceInput
public init(input: AdminUpdateWorkspaceInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("adminUpdateWorkspace", AdminUpdateWorkspace?.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminUpdateWorkspaceMutation.Data.self
] }
/// Update workspace flags for admin
public var adminUpdateWorkspace: AdminUpdateWorkspace? { __data["adminUpdateWorkspace"] }
/// AdminUpdateWorkspace
///
/// Parent Type: `AdminWorkspace`
public struct AdminUpdateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminWorkspace }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("public", Bool.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("name", String?.self),
.field("avatarKey", String?.self),
.field("enableAi", Bool.self),
.field("enableSharing", Bool.self),
.field("enableUrlPreview", Bool.self),
.field("enableDocEmbedding", Bool.self),
.field("owner", Owner?.self),
.field("memberCount", Int.self),
.field("publicPageCount", Int.self),
.field("snapshotCount", Int.self),
.field("snapshotSize", AffineGraphQL.SafeInt.self),
.field("blobCount", Int.self),
.field("blobSize", AffineGraphQL.SafeInt.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminUpdateWorkspaceMutation.Data.AdminUpdateWorkspace.self
] }
public var id: String { __data["id"] }
public var `public`: Bool { __data["public"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var name: String? { __data["name"] }
public var avatarKey: String? { __data["avatarKey"] }
public var enableAi: Bool { __data["enableAi"] }
public var enableSharing: Bool { __data["enableSharing"] }
public var enableUrlPreview: Bool { __data["enableUrlPreview"] }
public var enableDocEmbedding: Bool { __data["enableDocEmbedding"] }
public var owner: Owner? { __data["owner"] }
public var memberCount: Int { __data["memberCount"] }
public var publicPageCount: Int { __data["publicPageCount"] }
public var snapshotCount: Int { __data["snapshotCount"] }
public var snapshotSize: AffineGraphQL.SafeInt { __data["snapshotSize"] }
public var blobCount: Int { __data["blobCount"] }
public var blobSize: AffineGraphQL.SafeInt { __data["blobSize"] }
/// AdminUpdateWorkspace.Owner
///
/// Parent Type: `WorkspaceUserType`
public struct Owner: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceUserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
.field("email", String.self),
.field("avatarUrl", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminUpdateWorkspaceMutation.Data.AdminUpdateWorkspace.Owner.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
public var email: String { __data["email"] }
public var avatarUrl: String? { __data["avatarUrl"] }
}
}
}
}

View File

@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ApproveWorkspaceTeamMemberMutation: GraphQLMutation {
public static let operationName: String = "approveWorkspaceTeamMember"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation approveWorkspaceTeamMember($workspaceId: String!, $userId: String!) { approveMember(workspaceId: $workspaceId, userId: $userId) }"#
))
public var workspaceId: String
public var userId: String
public init(
workspaceId: String,
userId: String
) {
self.workspaceId = workspaceId
self.userId = userId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"userId": userId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("approveMember", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"userId": .variable("userId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ApproveWorkspaceTeamMemberMutation.Data.self
] }
public var approveMember: Bool { __data["approveMember"] }
}
}

View File

@@ -0,0 +1,72 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CancelSubscriptionMutation: GraphQLMutation {
public static let operationName: String = "cancelSubscription"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation cancelSubscription($plan: SubscriptionPlan = Pro, $workspaceId: String) { cancelSubscription(plan: $plan, workspaceId: $workspaceId) { __typename id status nextBillAt canceledAt } }"#
))
public var plan: GraphQLNullable<GraphQLEnum<SubscriptionPlan>>
public var workspaceId: GraphQLNullable<String>
public init(
plan: GraphQLNullable<GraphQLEnum<SubscriptionPlan>> = .init(.pro),
workspaceId: GraphQLNullable<String>
) {
self.plan = plan
self.workspaceId = workspaceId
}
public var __variables: Variables? { [
"plan": plan,
"workspaceId": workspaceId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("cancelSubscription", CancelSubscription.self, arguments: [
"plan": .variable("plan"),
"workspaceId": .variable("workspaceId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CancelSubscriptionMutation.Data.self
] }
public var cancelSubscription: CancelSubscription { __data["cancelSubscription"] }
/// CancelSubscription
///
/// Parent Type: `SubscriptionType`
public struct CancelSubscription: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.SubscriptionType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String?.self),
.field("status", GraphQLEnum<AffineGraphQL.SubscriptionStatus>.self),
.field("nextBillAt", AffineGraphQL.DateTime?.self),
.field("canceledAt", AffineGraphQL.DateTime?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CancelSubscriptionMutation.Data.CancelSubscription.self
] }
@available(*, deprecated, message: "removed")
public var id: String? { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.SubscriptionStatus> { __data["status"] }
public var nextBillAt: AffineGraphQL.DateTime? { __data["nextBillAt"] }
public var canceledAt: AffineGraphQL.DateTime? { __data["canceledAt"] }
}
}
}

View File

@@ -0,0 +1,68 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ChangeEmailMutation: GraphQLMutation {
public static let operationName: String = "changeEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation changeEmail($token: String!, $email: String!) { changeEmail(token: $token, email: $email) { __typename id email } }"#
))
public var token: String
public var email: String
public init(
token: String,
email: String
) {
self.token = token
self.email = email
}
public var __variables: Variables? { [
"token": token,
"email": email
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("changeEmail", ChangeEmail.self, arguments: [
"token": .variable("token"),
"email": .variable("email")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ChangeEmailMutation.Data.self
] }
public var changeEmail: ChangeEmail { __data["changeEmail"] }
/// ChangeEmail
///
/// Parent Type: `UserType`
public struct ChangeEmail: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("email", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ChangeEmailMutation.Data.ChangeEmail.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
/// User email
public var email: String { __data["email"] }
}
}
}

View File

@@ -0,0 +1,51 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ChangePasswordMutation: GraphQLMutation {
public static let operationName: String = "changePassword"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation changePassword($token: String!, $userId: String!, $newPassword: String!) { changePassword(token: $token, userId: $userId, newPassword: $newPassword) }"#
))
public var token: String
public var userId: String
public var newPassword: String
public init(
token: String,
userId: String,
newPassword: String
) {
self.token = token
self.userId = userId
self.newPassword = newPassword
}
public var __variables: Variables? { [
"token": token,
"userId": userId,
"newPassword": newPassword
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("changePassword", Bool.self, arguments: [
"token": .variable("token"),
"userId": .variable("userId"),
"newPassword": .variable("newPassword")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ChangePasswordMutation.Data.self
] }
public var changePassword: Bool { __data["changePassword"] }
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CleanupCopilotSessionMutation: GraphQLMutation {
public static let operationName: String = "cleanupCopilotSession"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation cleanupCopilotSession($input: DeleteSessionInput!) { cleanupCopilotSession(options: $input) }"#
))
public var input: DeleteSessionInput
public init(input: DeleteSessionInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("cleanupCopilotSession", [String].self, arguments: ["options": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CleanupCopilotSessionMutation.Data.self
] }
/// Cleanup sessions
public var cleanupCopilotSession: [String] { __data["cleanupCopilotSession"] }
}
}

View File

@@ -0,0 +1,56 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CompleteBlobUploadMutation: GraphQLMutation {
public static let operationName: String = "completeBlobUpload"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation completeBlobUpload($workspaceId: String!, $key: String!, $uploadId: String, $parts: [BlobUploadPartInput!]) { completeBlobUpload( workspaceId: $workspaceId key: $key uploadId: $uploadId parts: $parts ) }"#
))
public var workspaceId: String
public var key: String
public var uploadId: GraphQLNullable<String>
public var parts: GraphQLNullable<[BlobUploadPartInput]>
public init(
workspaceId: String,
key: String,
uploadId: GraphQLNullable<String>,
parts: GraphQLNullable<[BlobUploadPartInput]>
) {
self.workspaceId = workspaceId
self.key = key
self.uploadId = uploadId
self.parts = parts
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"key": key,
"uploadId": uploadId,
"parts": parts
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("completeBlobUpload", String.self, arguments: [
"workspaceId": .variable("workspaceId"),
"key": .variable("key"),
"uploadId": .variable("uploadId"),
"parts": .variable("parts")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CompleteBlobUploadMutation.Data.self
] }
public var completeBlobUpload: String { __data["completeBlobUpload"] }
}
}

View File

@@ -0,0 +1,112 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateBlobUploadMutation: GraphQLMutation {
public static let operationName: String = "createBlobUpload"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createBlobUpload($workspaceId: String!, $key: String!, $size: Int!, $mime: String!) { createBlobUpload(workspaceId: $workspaceId, key: $key, size: $size, mime: $mime) { __typename method blobKey alreadyUploaded uploadUrl headers expiresAt uploadId partSize uploadedParts { __typename partNumber etag } } }"#
))
public var workspaceId: String
public var key: String
public var size: Int
public var mime: String
public init(
workspaceId: String,
key: String,
size: Int,
mime: String
) {
self.workspaceId = workspaceId
self.key = key
self.size = size
self.mime = mime
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"key": key,
"size": size,
"mime": mime
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createBlobUpload", CreateBlobUpload.self, arguments: [
"workspaceId": .variable("workspaceId"),
"key": .variable("key"),
"size": .variable("size"),
"mime": .variable("mime")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateBlobUploadMutation.Data.self
] }
public var createBlobUpload: CreateBlobUpload { __data["createBlobUpload"] }
/// CreateBlobUpload
///
/// Parent Type: `BlobUploadInit`
public struct CreateBlobUpload: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.BlobUploadInit }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("method", GraphQLEnum<AffineGraphQL.BlobUploadMethod>.self),
.field("blobKey", String.self),
.field("alreadyUploaded", Bool?.self),
.field("uploadUrl", String?.self),
.field("headers", AffineGraphQL.JSONObject?.self),
.field("expiresAt", AffineGraphQL.DateTime?.self),
.field("uploadId", String?.self),
.field("partSize", Int?.self),
.field("uploadedParts", [UploadedPart]?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateBlobUploadMutation.Data.CreateBlobUpload.self
] }
public var method: GraphQLEnum<AffineGraphQL.BlobUploadMethod> { __data["method"] }
public var blobKey: String { __data["blobKey"] }
public var alreadyUploaded: Bool? { __data["alreadyUploaded"] }
public var uploadUrl: String? { __data["uploadUrl"] }
public var headers: AffineGraphQL.JSONObject? { __data["headers"] }
public var expiresAt: AffineGraphQL.DateTime? { __data["expiresAt"] }
public var uploadId: String? { __data["uploadId"] }
public var partSize: Int? { __data["partSize"] }
public var uploadedParts: [UploadedPart]? { __data["uploadedParts"] }
/// CreateBlobUpload.UploadedPart
///
/// Parent Type: `BlobUploadedPart`
public struct UploadedPart: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.BlobUploadedPart }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("partNumber", Int.self),
.field("etag", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateBlobUploadMutation.Data.CreateBlobUpload.UploadedPart.self
] }
public var partNumber: Int { __data["partNumber"] }
public var etag: String { __data["etag"] }
}
}
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateChangePasswordUrlMutation: GraphQLMutation {
public static let operationName: String = "createChangePasswordUrl"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createChangePasswordUrl($callbackUrl: String!, $userId: String!) { createChangePasswordUrl(callbackUrl: $callbackUrl, userId: $userId) }"#
))
public var callbackUrl: String
public var userId: String
public init(
callbackUrl: String,
userId: String
) {
self.callbackUrl = callbackUrl
self.userId = userId
}
public var __variables: Variables? { [
"callbackUrl": callbackUrl,
"userId": userId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createChangePasswordUrl", String.self, arguments: [
"callbackUrl": .variable("callbackUrl"),
"userId": .variable("userId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateChangePasswordUrlMutation.Data.self
] }
/// Create change password url
public var createChangePasswordUrl: String { __data["createChangePasswordUrl"] }
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateCheckoutSessionMutation: GraphQLMutation {
public static let operationName: String = "createCheckoutSession"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createCheckoutSession($input: CreateCheckoutSessionInput!) { createCheckoutSession(input: $input) }"#
))
public var input: CreateCheckoutSessionInput
public init(input: CreateCheckoutSessionInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createCheckoutSession", String.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCheckoutSessionMutation.Data.self
] }
/// Create a subscription checkout link of stripe
public var createCheckoutSession: String { __data["createCheckoutSession"] }
}
}

View File

@@ -0,0 +1,151 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateCommentMutation: GraphQLMutation {
public static let operationName: String = "createComment"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createComment($input: CommentCreateInput!) { createComment(input: $input) { __typename id content resolved createdAt updatedAt user { __typename id name avatarUrl } replies { __typename commentId id content createdAt updatedAt user { __typename id name avatarUrl } } } }"#
))
public var input: CommentCreateInput
public init(input: CommentCreateInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createComment", CreateComment.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCommentMutation.Data.self
] }
public var createComment: CreateComment { __data["createComment"] }
/// CreateComment
///
/// Parent Type: `CommentObjectType`
public struct CreateComment: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CommentObjectType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("content", AffineGraphQL.JSONObject.self),
.field("resolved", Bool.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("updatedAt", AffineGraphQL.DateTime.self),
.field("user", User.self),
.field("replies", [Reply].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCommentMutation.Data.CreateComment.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
/// The content of the comment
public var content: AffineGraphQL.JSONObject { __data["content"] }
/// Whether the comment is resolved
public var resolved: Bool { __data["resolved"] }
/// The created at time of the comment
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
/// The updated at time of the comment
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
/// The user who created the comment
public var user: User { __data["user"] }
/// The replies of the comment
public var replies: [Reply] { __data["replies"] }
/// CreateComment.User
///
/// Parent Type: `PublicUserType`
public struct User: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PublicUserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
.field("avatarUrl", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCommentMutation.Data.CreateComment.User.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
public var avatarUrl: String? { __data["avatarUrl"] }
}
/// CreateComment.Reply
///
/// Parent Type: `ReplyObjectType`
public struct Reply: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ReplyObjectType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("commentId", AffineGraphQL.ID.self),
.field("id", AffineGraphQL.ID.self),
.field("content", AffineGraphQL.JSONObject.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("updatedAt", AffineGraphQL.DateTime.self),
.field("user", User.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCommentMutation.Data.CreateComment.Reply.self
] }
public var commentId: AffineGraphQL.ID { __data["commentId"] }
public var id: AffineGraphQL.ID { __data["id"] }
/// The content of the reply
public var content: AffineGraphQL.JSONObject { __data["content"] }
/// The created at time of the reply
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
/// The updated at time of the reply
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
/// The user who created the reply
public var user: User { __data["user"] }
/// CreateComment.Reply.User
///
/// Parent Type: `PublicUserType`
public struct User: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PublicUserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
.field("avatarUrl", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCommentMutation.Data.CreateComment.Reply.User.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
public var avatarUrl: String? { __data["avatarUrl"] }
}
}
}
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateCopilotMessageMutation: GraphQLMutation {
public static let operationName: String = "createCopilotMessage"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createCopilotMessage($options: CreateChatMessageInput!) { createCopilotMessage(options: $options) }"#
))
public var options: CreateChatMessageInput
public init(options: CreateChatMessageInput) {
self.options = options
}
public var __variables: Variables? { ["options": options] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createCopilotMessage", String.self, arguments: ["options": .variable("options")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCopilotMessageMutation.Data.self
] }
/// Create a chat message
public var createCopilotMessage: String { __data["createCopilotMessage"] }
}
}

View File

@@ -0,0 +1,37 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateCopilotSessionMutation: GraphQLMutation {
public static let operationName: String = "createCopilotSession"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createCopilotSession($options: CreateChatSessionInput!) { createCopilotSession(options: $options) }"#
))
public var options: CreateChatSessionInput
public init(options: CreateChatSessionInput) {
self.options = options
}
public var __variables: Variables? { ["options": options] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createCopilotSession", String.self, arguments: ["options": .variable("options")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCopilotSessionMutation.Data.self
] }
/// Create a chat session
@available(*, deprecated, message: "use `createCopilotSessionWithHistory` instead")
public var createCopilotSession: String { __data["createCopilotSession"] }
}
}

View File

@@ -0,0 +1,77 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateCopilotSessionWithHistoryMutation: GraphQLMutation {
public static let operationName: String = "createCopilotSessionWithHistory"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createCopilotSessionWithHistory($options: CreateChatSessionInput!) { createCopilotSessionWithHistory(options: $options) { __typename ...CopilotChatHistory } }"#,
fragments: [CopilotChatHistory.self]
))
public var options: CreateChatSessionInput
public init(options: CreateChatSessionInput) {
self.options = options
}
public var __variables: Variables? { ["options": options] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createCopilotSessionWithHistory", CreateCopilotSessionWithHistory.self, arguments: ["options": .variable("options")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCopilotSessionWithHistoryMutation.Data.self
] }
/// Create a chat session and return full session payload
public var createCopilotSessionWithHistory: CreateCopilotSessionWithHistory { __data["createCopilotSessionWithHistory"] }
/// CreateCopilotSessionWithHistory
///
/// Parent Type: `CopilotHistories`
public struct CreateCopilotSessionWithHistory: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotHistories }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.fragment(CopilotChatHistory.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCopilotSessionWithHistoryMutation.Data.CreateCopilotSessionWithHistory.self,
CopilotChatHistory.self
] }
public var sessionId: String { __data["sessionId"] }
public var workspaceId: String { __data["workspaceId"] }
public var docId: String? { __data["docId"] }
public var parentSessionId: String? { __data["parentSessionId"] }
public var promptName: String { __data["promptName"] }
/// An mark identifying which view to use to display the session
public var action: String? { __data["action"] }
public var pinned: Bool { __data["pinned"] }
public var title: String? { __data["title"] }
public var messages: [Message] { __data["messages"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
public struct Fragments: FragmentContainer {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public var copilotChatHistory: CopilotChatHistory { _toFragment() }
}
public typealias Message = CopilotChatHistory.Message
}
}
}

View File

@@ -0,0 +1,30 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateCustomerPortalMutation: GraphQLMutation {
public static let operationName: String = "createCustomerPortal"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createCustomerPortal { createCustomerPortal }"#
))
public init() {}
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createCustomerPortal", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateCustomerPortalMutation.Data.self
] }
/// Create a stripe customer portal to manage payment methods
public var createCustomerPortal: String { __data["createCustomerPortal"] }
}
}

View File

@@ -0,0 +1,69 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateInviteLinkMutation: GraphQLMutation {
public static let operationName: String = "createInviteLink"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createInviteLink($workspaceId: String!, $expireTime: WorkspaceInviteLinkExpireTime!) { createInviteLink(workspaceId: $workspaceId, expireTime: $expireTime) { __typename link expireTime } }"#
))
public var workspaceId: String
public var expireTime: GraphQLEnum<WorkspaceInviteLinkExpireTime>
public init(
workspaceId: String,
expireTime: GraphQLEnum<WorkspaceInviteLinkExpireTime>
) {
self.workspaceId = workspaceId
self.expireTime = expireTime
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"expireTime": expireTime
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createInviteLink", CreateInviteLink.self, arguments: [
"workspaceId": .variable("workspaceId"),
"expireTime": .variable("expireTime")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateInviteLinkMutation.Data.self
] }
public var createInviteLink: CreateInviteLink { __data["createInviteLink"] }
/// CreateInviteLink
///
/// Parent Type: `InviteLink`
public struct CreateInviteLink: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.InviteLink }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("link", String.self),
.field("expireTime", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateInviteLinkMutation.Data.CreateInviteLink.self
] }
/// Invite link
public var link: String { __data["link"] }
/// Invite link expire time
public var expireTime: AffineGraphQL.DateTime { __data["expireTime"] }
}
}
}

View File

@@ -0,0 +1,95 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateMcpCredentialMutation: GraphQLMutation {
public static let operationName: String = "createMcpCredential"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createMcpCredential($input: CreateMcpCredentialInput!) { createMcpCredential(input: $input) { __typename credential { __typename id name workspaceId accessMode fingerprint createdAt expiresAt lastUsedAt revokedAt graceEndsAt status } token } }"#
))
public var input: CreateMcpCredentialInput
public init(input: CreateMcpCredentialInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createMcpCredential", CreateMcpCredential.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateMcpCredentialMutation.Data.self
] }
public var createMcpCredential: CreateMcpCredential { __data["createMcpCredential"] }
/// CreateMcpCredential
///
/// Parent Type: `RevealedMcpCredentialType`
public struct CreateMcpCredential: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.RevealedMcpCredentialType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("credential", Credential.self),
.field("token", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateMcpCredentialMutation.Data.CreateMcpCredential.self
] }
public var credential: Credential { __data["credential"] }
public var token: String { __data["token"] }
/// CreateMcpCredential.Credential
///
/// Parent Type: `McpCredentialType`
public struct Credential: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.McpCredentialType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("name", String.self),
.field("workspaceId", String.self),
.field("accessMode", GraphQLEnum<AffineGraphQL.McpAccessMode>.self),
.field("fingerprint", String.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("expiresAt", AffineGraphQL.DateTime.self),
.field("lastUsedAt", AffineGraphQL.DateTime?.self),
.field("revokedAt", AffineGraphQL.DateTime?.self),
.field("graceEndsAt", AffineGraphQL.DateTime?.self),
.field("status", GraphQLEnum<AffineGraphQL.McpCredentialStatus>.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateMcpCredentialMutation.Data.CreateMcpCredential.Credential.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var name: String { __data["name"] }
public var workspaceId: String { __data["workspaceId"] }
public var accessMode: GraphQLEnum<AffineGraphQL.McpAccessMode> { __data["accessMode"] }
public var fingerprint: String { __data["fingerprint"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var expiresAt: AffineGraphQL.DateTime { __data["expiresAt"] }
public var lastUsedAt: AffineGraphQL.DateTime? { __data["lastUsedAt"] }
public var revokedAt: AffineGraphQL.DateTime? { __data["revokedAt"] }
public var graceEndsAt: AffineGraphQL.DateTime? { __data["graceEndsAt"] }
public var status: GraphQLEnum<AffineGraphQL.McpCredentialStatus> { __data["status"] }
}
}
}
}

View File

@@ -0,0 +1,91 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateReplyMutation: GraphQLMutation {
public static let operationName: String = "createReply"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createReply($input: ReplyCreateInput!) { createReply(input: $input) { __typename commentId id content createdAt updatedAt user { __typename id name avatarUrl } } }"#
))
public var input: ReplyCreateInput
public init(input: ReplyCreateInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createReply", CreateReply.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateReplyMutation.Data.self
] }
public var createReply: CreateReply { __data["createReply"] }
/// CreateReply
///
/// Parent Type: `ReplyObjectType`
public struct CreateReply: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ReplyObjectType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("commentId", AffineGraphQL.ID.self),
.field("id", AffineGraphQL.ID.self),
.field("content", AffineGraphQL.JSONObject.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("updatedAt", AffineGraphQL.DateTime.self),
.field("user", User.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateReplyMutation.Data.CreateReply.self
] }
public var commentId: AffineGraphQL.ID { __data["commentId"] }
public var id: AffineGraphQL.ID { __data["id"] }
/// The content of the reply
public var content: AffineGraphQL.JSONObject { __data["content"] }
/// The created at time of the reply
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
/// The updated at time of the reply
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
/// The user who created the reply
public var user: User { __data["user"] }
/// CreateReply.User
///
/// Parent Type: `PublicUserType`
public struct User: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PublicUserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
.field("avatarUrl", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateReplyMutation.Data.CreateReply.User.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
public var avatarUrl: String? { __data["avatarUrl"] }
}
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateSelfhostCustomerPortalMutation: GraphQLMutation {
public static let operationName: String = "createSelfhostCustomerPortal"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createSelfhostCustomerPortal($workspaceId: String!) { createSelfhostWorkspaceCustomerPortal(workspaceId: $workspaceId) }"#
))
public var workspaceId: String
public init(workspaceId: String) {
self.workspaceId = workspaceId
}
public var __variables: Variables? { ["workspaceId": workspaceId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createSelfhostWorkspaceCustomerPortal", String.self, arguments: ["workspaceId": .variable("workspaceId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateSelfhostCustomerPortalMutation.Data.self
] }
public var createSelfhostWorkspaceCustomerPortal: String { __data["createSelfhostWorkspaceCustomerPortal"] }
}
}

View File

@@ -0,0 +1,55 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateUserMutation: GraphQLMutation {
public static let operationName: String = "createUser"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createUser($input: CreateUserInput!) { createUser(input: $input) { __typename id } }"#
))
public var input: CreateUserInput
public init(input: CreateUserInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createUser", CreateUser.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateUserMutation.Data.self
] }
/// Create a new user
public var createUser: CreateUser { __data["createUser"] }
/// CreateUser
///
/// Parent Type: `UserType`
public struct CreateUser: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateUserMutation.Data.CreateUser.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}

View File

@@ -0,0 +1,56 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateWorkspaceByokLocalLeaseMutation: GraphQLMutation {
public static let operationName: String = "createWorkspaceByokLocalLease"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createWorkspaceByokLocalLease($input: CreateWorkspaceByokLocalLeaseInput!) { createWorkspaceByokLocalLease(input: $input) { __typename leaseId expiresAt } }"#
))
public var input: CreateWorkspaceByokLocalLeaseInput
public init(input: CreateWorkspaceByokLocalLeaseInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createWorkspaceByokLocalLease", CreateWorkspaceByokLocalLease.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateWorkspaceByokLocalLeaseMutation.Data.self
] }
public var createWorkspaceByokLocalLease: CreateWorkspaceByokLocalLease { __data["createWorkspaceByokLocalLease"] }
/// CreateWorkspaceByokLocalLease
///
/// Parent Type: `CreateWorkspaceByokLocalLeaseResultType`
public struct CreateWorkspaceByokLocalLease: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CreateWorkspaceByokLocalLeaseResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("leaseId", String.self),
.field("expiresAt", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateWorkspaceByokLocalLeaseMutation.Data.CreateWorkspaceByokLocalLease.self
] }
public var leaseId: String { __data["leaseId"] }
public var expiresAt: AffineGraphQL.DateTime { __data["expiresAt"] }
}
}
}

View File

@@ -0,0 +1,54 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateWorkspaceByokProfileMutation: GraphQLMutation {
public static let operationName: String = "createWorkspaceByokProfile"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createWorkspaceByokProfile($input: CreateWorkspaceByokProfileInput!) { createWorkspaceByokProfile(input: $input) { __typename profileId } }"#
))
public var input: CreateWorkspaceByokProfileInput
public init(input: CreateWorkspaceByokProfileInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createWorkspaceByokProfile", CreateWorkspaceByokProfile.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateWorkspaceByokProfileMutation.Data.self
] }
public var createWorkspaceByokProfile: CreateWorkspaceByokProfile { __data["createWorkspaceByokProfile"] }
/// CreateWorkspaceByokProfile
///
/// Parent Type: `WorkspaceByokProfileType`
public struct CreateWorkspaceByokProfile: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("profileId", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateWorkspaceByokProfileMutation.Data.CreateWorkspaceByokProfile.self
] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
}
}
}

View File

@@ -0,0 +1,55 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class CreateWorkspaceMutation: GraphQLMutation {
public static let operationName: String = "createWorkspace"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation createWorkspace { createWorkspace { __typename id public createdAt } }"#
))
public init() {}
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("createWorkspace", CreateWorkspace.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateWorkspaceMutation.Data.self
] }
/// Create a new workspace
public var createWorkspace: CreateWorkspace { __data["createWorkspace"] }
/// CreateWorkspace
///
/// Parent Type: `WorkspaceType`
public struct CreateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("public", Bool.self),
.field("createdAt", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
CreateWorkspaceMutation.Data.CreateWorkspace.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
/// is Public workspace
public var `public`: Bool { __data["public"] }
/// Workspace created date
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeactivateLicenseMutation: GraphQLMutation {
public static let operationName: String = "deactivateLicense"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deactivateLicense($workspaceId: String!) { deactivateLicense(workspaceId: $workspaceId) }"#
))
public var workspaceId: String
public init(workspaceId: String) {
self.workspaceId = workspaceId
}
public var __variables: Variables? { ["workspaceId": workspaceId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deactivateLicense", Bool.self, arguments: ["workspaceId": .variable("workspaceId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeactivateLicenseMutation.Data.self
] }
public var deactivateLicense: Bool { __data["deactivateLicense"] }
}
}

View File

@@ -0,0 +1,48 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteAccountMutation: GraphQLMutation {
public static let operationName: String = "deleteAccount"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteAccount { deleteAccount { __typename success } }"#
))
public init() {}
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteAccount", DeleteAccount.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteAccountMutation.Data.self
] }
public var deleteAccount: DeleteAccount { __data["deleteAccount"] }
/// DeleteAccount
///
/// Parent Type: `DeleteAccount`
public struct DeleteAccount: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DeleteAccount }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("success", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteAccountMutation.Data.DeleteAccount.self
] }
public var success: Bool { __data["success"] }
}
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteAuthSigningKeyMutation: GraphQLMutation {
public static let operationName: String = "deleteAuthSigningKey"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteAuthSigningKey($id: String!) { deleteAuthSigningKey(id: $id) { __typename id status source createdAt retiredAt verifyUntil canDelete } }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteAuthSigningKey", [DeleteAuthSigningKey].self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteAuthSigningKeyMutation.Data.self
] }
public var deleteAuthSigningKey: [DeleteAuthSigningKey] { __data["deleteAuthSigningKey"] }
/// DeleteAuthSigningKey
///
/// Parent Type: `AuthSigningKeyType`
public struct DeleteAuthSigningKey: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AuthSigningKeyType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("status", String.self),
.field("source", String.self),
.field("createdAt", AffineGraphQL.DateTime?.self),
.field("retiredAt", AffineGraphQL.DateTime?.self),
.field("verifyUntil", AffineGraphQL.DateTime?.self),
.field("canDelete", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteAuthSigningKeyMutation.Data.DeleteAuthSigningKey.self
] }
public var id: String { __data["id"] }
public var status: String { __data["status"] }
public var source: String { __data["source"] }
public var createdAt: AffineGraphQL.DateTime? { __data["createdAt"] }
public var retiredAt: AffineGraphQL.DateTime? { __data["retiredAt"] }
public var verifyUntil: AffineGraphQL.DateTime? { __data["verifyUntil"] }
public var canDelete: Bool { __data["canDelete"] }
}
}
}

View File

@@ -0,0 +1,51 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteBlobMutation: GraphQLMutation {
public static let operationName: String = "deleteBlob"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteBlob($workspaceId: String!, $key: String!, $permanently: Boolean) { deleteBlob(workspaceId: $workspaceId, key: $key, permanently: $permanently) }"#
))
public var workspaceId: String
public var key: String
public var permanently: GraphQLNullable<Bool>
public init(
workspaceId: String,
key: String,
permanently: GraphQLNullable<Bool>
) {
self.workspaceId = workspaceId
self.key = key
self.permanently = permanently
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"key": key,
"permanently": permanently
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteBlob", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"key": .variable("key"),
"permanently": .variable("permanently")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteBlobMutation.Data.self
] }
public var deleteBlob: Bool { __data["deleteBlob"] }
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteCommentMutation: GraphQLMutation {
public static let operationName: String = "deleteComment"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteComment($id: String!) { deleteComment(id: $id) }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteComment", Bool.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteCommentMutation.Data.self
] }
/// Delete a comment
public var deleteComment: Bool { __data["deleteComment"] }
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteReplyMutation: GraphQLMutation {
public static let operationName: String = "deleteReply"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteReply($id: String!) { deleteReply(id: $id) }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteReply", Bool.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteReplyMutation.Data.self
] }
/// Delete a reply
public var deleteReply: Bool { __data["deleteReply"] }
}
}

View File

@@ -0,0 +1,55 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteUserMutation: GraphQLMutation {
public static let operationName: String = "deleteUser"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteUser($id: String!) { deleteUser(id: $id) { __typename success } }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteUser", DeleteUser.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteUserMutation.Data.self
] }
/// Delete a user account
public var deleteUser: DeleteUser { __data["deleteUser"] }
/// DeleteUser
///
/// Parent Type: `DeleteAccount`
public struct DeleteUser: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DeleteAccount }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("success", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteUserMutation.Data.DeleteUser.self
] }
public var success: Bool { __data["success"] }
}
}
}

View File

@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteWorkspaceByokProfileMutation: GraphQLMutation {
public static let operationName: String = "deleteWorkspaceByokProfile"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteWorkspaceByokProfile($workspaceId: String!, $profileId: ID!) { deleteWorkspaceByokProfile(workspaceId: $workspaceId, profileId: $profileId) }"#
))
public var workspaceId: String
public var profileId: ID
public init(
workspaceId: String,
profileId: ID
) {
self.workspaceId = workspaceId
self.profileId = profileId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"profileId": profileId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteWorkspaceByokProfile", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"profileId": .variable("profileId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteWorkspaceByokProfileMutation.Data.self
] }
public var deleteWorkspaceByokProfile: Bool { __data["deleteWorkspaceByokProfile"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DeleteWorkspaceMutation: GraphQLMutation {
public static let operationName: String = "deleteWorkspace"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteWorkspace($id: String!) { deleteWorkspace(id: $id) }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteWorkspace", Bool.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteWorkspaceMutation.Data.self
] }
public var deleteWorkspace: Bool { __data["deleteWorkspace"] }
}
}

View File

@@ -0,0 +1,59 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class DisableUserMutation: GraphQLMutation {
public static let operationName: String = "disableUser"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation disableUser($id: String!) { banUser(id: $id) { __typename email disabled } }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("banUser", BanUser.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DisableUserMutation.Data.self
] }
/// Ban an user
public var banUser: BanUser { __data["banUser"] }
/// BanUser
///
/// Parent Type: `UserType`
public struct BanUser: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("email", String.self),
.field("disabled", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DisableUserMutation.Data.BanUser.self
] }
/// User email
public var email: String { __data["email"] }
/// User is disabled
public var disabled: Bool { __data["disabled"] }
}
}
}

View File

@@ -0,0 +1,59 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class EnableUserMutation: GraphQLMutation {
public static let operationName: String = "enableUser"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation enableUser($id: String!) { enableUser(id: $id) { __typename email disabled } }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("enableUser", EnableUser.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
EnableUserMutation.Data.self
] }
/// Reenable an banned user
public var enableUser: EnableUser { __data["enableUser"] }
/// EnableUser
///
/// Parent Type: `UserType`
public struct EnableUser: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("email", String.self),
.field("disabled", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
EnableUserMutation.Data.EnableUser.self
] }
/// User email
public var email: String { __data["email"] }
/// User is disabled
public var disabled: Bool { __data["disabled"] }
}
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ForkCopilotSessionMutation: GraphQLMutation {
public static let operationName: String = "forkCopilotSession"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation forkCopilotSession($options: ForkChatSessionInput!) { forkCopilotSession(options: $options) }"#
))
public var options: ForkChatSessionInput
public init(options: ForkChatSessionInput) {
self.options = options
}
public var __variables: Variables? { ["options": options] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("forkCopilotSession", String.self, arguments: ["options": .variable("options")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ForkCopilotSessionMutation.Data.self
] }
/// Create a chat session
public var forkCopilotSession: String { __data["forkCopilotSession"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class GenerateLicenseKeyMutation: GraphQLMutation {
public static let operationName: String = "generateLicenseKey"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation generateLicenseKey($sessionId: String!) { generateLicenseKey(sessionId: $sessionId) }"#
))
public var sessionId: String
public init(sessionId: String) {
self.sessionId = sessionId
}
public var __variables: Variables? { ["sessionId": sessionId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("generateLicenseKey", String.self, arguments: ["sessionId": .variable("sessionId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GenerateLicenseKeyMutation.Data.self
] }
public var generateLicenseKey: String { __data["generateLicenseKey"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class GrantDocUserRolesMutation: GraphQLMutation {
public static let operationName: String = "grantDocUserRoles"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation grantDocUserRoles($input: GrantDocUserRolesInput!) { grantDocUserRoles(input: $input) }"#
))
public var input: GrantDocUserRolesInput
public init(input: GrantDocUserRolesInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("grantDocUserRoles", Bool.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GrantDocUserRolesMutation.Data.self
] }
public var grantDocUserRoles: Bool { __data["grantDocUserRoles"] }
}
}

View File

@@ -0,0 +1,51 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class GrantWorkspaceTeamMemberMutation: GraphQLMutation {
public static let operationName: String = "grantWorkspaceTeamMember"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation grantWorkspaceTeamMember($workspaceId: String!, $userId: String!, $permission: Permission!) { grantMember(workspaceId: $workspaceId, userId: $userId, permission: $permission) }"#
))
public var workspaceId: String
public var userId: String
public var permission: GraphQLEnum<Permission>
public init(
workspaceId: String,
userId: String,
permission: GraphQLEnum<Permission>
) {
self.workspaceId = workspaceId
self.userId = userId
self.permission = permission
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"userId": userId,
"permission": permission
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("grantMember", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"userId": .variable("userId"),
"permission": .variable("permission")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GrantWorkspaceTeamMemberMutation.Data.self
] }
public var grantMember: Bool { __data["grantMember"] }
}
}

View File

@@ -0,0 +1,105 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ImportUsersMutation: GraphQLMutation {
public static let operationName: String = "ImportUsers"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation ImportUsers($input: ImportUsersInput!) { importUsers(input: $input) { __typename ... on UserType { id name email } ... on UserImportFailedType { email error } } }"#
))
public var input: ImportUsersInput
public init(input: ImportUsersInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("importUsers", [ImportUser].self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ImportUsersMutation.Data.self
] }
/// import users
public var importUsers: [ImportUser] { __data["importUsers"] }
/// ImportUser
///
/// Parent Type: `UserImportResultType`
public struct ImportUser: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Unions.UserImportResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.inlineFragment(AsUserType.self),
.inlineFragment(AsUserImportFailedType.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ImportUsersMutation.Data.ImportUser.self
] }
public var asUserType: AsUserType? { _asInlineFragment() }
public var asUserImportFailedType: AsUserImportFailedType? { _asInlineFragment() }
/// ImportUser.AsUserType
///
/// Parent Type: `UserType`
public struct AsUserType: AffineGraphQL.InlineFragment {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public typealias RootEntityType = ImportUsersMutation.Data.ImportUser
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
public static var __selections: [ApolloAPI.Selection] { [
.field("id", AffineGraphQL.ID.self),
.field("name", String.self),
.field("email", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ImportUsersMutation.Data.ImportUser.self,
ImportUsersMutation.Data.ImportUser.AsUserType.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
/// User name
public var name: String { __data["name"] }
/// User email
public var email: String { __data["email"] }
}
/// ImportUser.AsUserImportFailedType
///
/// Parent Type: `UserImportFailedType`
public struct AsUserImportFailedType: AffineGraphQL.InlineFragment {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public typealias RootEntityType = ImportUsersMutation.Data.ImportUser
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserImportFailedType }
public static var __selections: [ApolloAPI.Selection] { [
.field("email", String.self),
.field("error", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ImportUsersMutation.Data.ImportUser.self,
ImportUsersMutation.Data.ImportUser.AsUserImportFailedType.self
] }
public var email: String { __data["email"] }
public var error: String { __data["error"] }
}
}
}
}

View File

@@ -0,0 +1,79 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class InstallLicenseMutation: GraphQLMutation {
public static let operationName: String = "installLicense"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation installLicense($workspaceId: String!, $license: Upload!) { installLicense(workspaceId: $workspaceId, license: $license) { __typename ...licenseBody } }"#,
fragments: [LicenseBody.self]
))
public var workspaceId: String
public var license: Upload
public init(
workspaceId: String,
license: Upload
) {
self.workspaceId = workspaceId
self.license = license
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"license": license
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("installLicense", InstallLicense.self, arguments: [
"workspaceId": .variable("workspaceId"),
"license": .variable("license")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
InstallLicenseMutation.Data.self
] }
public var installLicense: InstallLicense { __data["installLicense"] }
/// InstallLicense
///
/// Parent Type: `License`
public struct InstallLicense: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.License }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.fragment(LicenseBody.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
InstallLicenseMutation.Data.InstallLicense.self,
LicenseBody.self
] }
public var expiredAt: AffineGraphQL.DateTime? { __data["expiredAt"] }
public var installedAt: AffineGraphQL.DateTime { __data["installedAt"] }
public var quantity: Int { __data["quantity"] }
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
public var validatedAt: AffineGraphQL.DateTime { __data["validatedAt"] }
public var variant: GraphQLEnum<AffineGraphQL.SubscriptionVariant>? { __data["variant"] }
public struct Fragments: FragmentContainer {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public var licenseBody: LicenseBody { _toFragment() }
}
}
}
}

View File

@@ -0,0 +1,68 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class InviteByEmailsMutation: GraphQLMutation {
public static let operationName: String = "inviteByEmails"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation inviteByEmails($workspaceId: String!, $emails: [String!]!) { inviteMembers(workspaceId: $workspaceId, emails: $emails) { __typename email inviteId } }"#
))
public var workspaceId: String
public var emails: [String]
public init(
workspaceId: String,
emails: [String]
) {
self.workspaceId = workspaceId
self.emails = emails
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"emails": emails
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("inviteMembers", [InviteMember].self, arguments: [
"workspaceId": .variable("workspaceId"),
"emails": .variable("emails")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
InviteByEmailsMutation.Data.self
] }
public var inviteMembers: [InviteMember] { __data["inviteMembers"] }
/// InviteMember
///
/// Parent Type: `InviteResult`
public struct InviteMember: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.InviteResult }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("email", String.self),
.field("inviteId", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
InviteByEmailsMutation.Data.InviteMember.self
] }
public var email: String { __data["email"] }
/// Invite id, null if invite record create failed
public var inviteId: String? { __data["inviteId"] }
}
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class LeaveWorkspaceMutation: GraphQLMutation {
public static let operationName: String = "leaveWorkspace"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation leaveWorkspace($workspaceId: String!, $sendLeaveMail: Boolean) { leaveWorkspace(workspaceId: $workspaceId, sendLeaveMail: $sendLeaveMail) }"#
))
public var workspaceId: String
public var sendLeaveMail: GraphQLNullable<Bool>
public init(
workspaceId: String,
sendLeaveMail: GraphQLNullable<Bool>
) {
self.workspaceId = workspaceId
self.sendLeaveMail = sendLeaveMail
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"sendLeaveMail": sendLeaveMail
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
#warning("Argument 'sendLeaveMail' of field 'leaveWorkspace' is deprecated. Reason: 'no used anymore'")
public static var __selections: [ApolloAPI.Selection] { [
.field("leaveWorkspace", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"sendLeaveMail": .variable("sendLeaveMail")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
LeaveWorkspaceMutation.Data.self
] }
public var leaveWorkspace: Bool { __data["leaveWorkspace"] }
}
}

View File

@@ -0,0 +1,74 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class LinkCalDavAccountMutation: GraphQLMutation {
public static let operationName: String = "linkCalDavAccount"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation linkCalDavAccount($input: LinkCalDAVAccountInput!) { linkCalDAVAccount(input: $input) { __typename id provider providerAccountId displayName email status lastError refreshIntervalMinutes calendarsCount createdAt updatedAt } }"#
))
public var input: LinkCalDAVAccountInput
public init(input: LinkCalDAVAccountInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("linkCalDAVAccount", LinkCalDAVAccount.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
LinkCalDavAccountMutation.Data.self
] }
public var linkCalDAVAccount: LinkCalDAVAccount { __data["linkCalDAVAccount"] }
/// LinkCalDAVAccount
///
/// Parent Type: `CalendarAccountObjectType`
public struct LinkCalDAVAccount: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CalendarAccountObjectType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("provider", GraphQLEnum<AffineGraphQL.CalendarProviderType>.self),
.field("providerAccountId", String.self),
.field("displayName", String?.self),
.field("email", String?.self),
.field("status", String.self),
.field("lastError", String?.self),
.field("refreshIntervalMinutes", Int.self),
.field("calendarsCount", Int.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("updatedAt", AffineGraphQL.DateTime.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
LinkCalDavAccountMutation.Data.LinkCalDAVAccount.self
] }
public var id: String { __data["id"] }
public var provider: GraphQLEnum<AffineGraphQL.CalendarProviderType> { __data["provider"] }
public var providerAccountId: String { __data["providerAccountId"] }
public var displayName: String? { __data["displayName"] }
public var email: String? { __data["email"] }
public var status: String { __data["status"] }
public var lastError: String? { __data["lastError"] }
public var refreshIntervalMinutes: Int { __data["refreshIntervalMinutes"] }
public var calendarsCount: Int { __data["calendarsCount"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class LinkCalendarAccountMutation: GraphQLMutation {
public static let operationName: String = "linkCalendarAccount"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation linkCalendarAccount($input: LinkCalendarAccountInput!) { linkCalendarAccount(input: $input) }"#
))
public var input: LinkCalendarAccountInput
public init(input: LinkCalendarAccountInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("linkCalendarAccount", String.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
LinkCalendarAccountMutation.Data.self
] }
public var linkCalendarAccount: String { __data["linkCalendarAccount"] }
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class MentionUserMutation: GraphQLMutation {
public static let operationName: String = "mentionUser"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation mentionUser($input: MentionInput!) { mentionUser(input: $input) }"#
))
public var input: MentionInput
public init(input: MentionInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("mentionUser", AffineGraphQL.ID.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
MentionUserMutation.Data.self
] }
/// mention user in a doc
public var mentionUser: AffineGraphQL.ID { __data["mentionUser"] }
}
}

View File

@@ -0,0 +1,74 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class PreviewLicenseMutation: GraphQLMutation {
public static let operationName: String = "previewLicense"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation previewLicense($license: Upload!) { previewLicense(license: $license) { __typename id workspaceId plan recurring quantity issuedAt expiresAt endAt entity issuer valid } }"#
))
public var license: Upload
public init(license: Upload) {
self.license = license
}
public var __variables: Variables? { ["license": license] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("previewLicense", PreviewLicense.self, arguments: ["license": .variable("license")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PreviewLicenseMutation.Data.self
] }
public var previewLicense: PreviewLicense { __data["previewLicense"] }
/// PreviewLicense
///
/// Parent Type: `AdminLicensePreview`
public struct PreviewLicense: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminLicensePreview }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("workspaceId", String.self),
.field("plan", GraphQLEnum<AffineGraphQL.SubscriptionPlan>.self),
.field("recurring", GraphQLEnum<AffineGraphQL.SubscriptionRecurring>.self),
.field("quantity", Int.self),
.field("issuedAt", AffineGraphQL.DateTime.self),
.field("expiresAt", AffineGraphQL.DateTime.self),
.field("endAt", AffineGraphQL.DateTime.self),
.field("entity", String.self),
.field("issuer", String.self),
.field("valid", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PreviewLicenseMutation.Data.PreviewLicense.self
] }
public var id: String { __data["id"] }
public var workspaceId: String { __data["workspaceId"] }
public var plan: GraphQLEnum<AffineGraphQL.SubscriptionPlan> { __data["plan"] }
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
public var quantity: Int { __data["quantity"] }
public var issuedAt: AffineGraphQL.DateTime { __data["issuedAt"] }
public var expiresAt: AffineGraphQL.DateTime { __data["expiresAt"] }
public var endAt: AffineGraphQL.DateTime { __data["endAt"] }
public var entity: String { __data["entity"] }
public var issuer: String { __data["issuer"] }
public var valid: Bool { __data["valid"] }
}
}
}

View File

@@ -0,0 +1,148 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ProbeWorkspaceByokDraftMutation: GraphQLMutation {
public static let operationName: String = "probeWorkspaceByokDraft"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation probeWorkspaceByokDraft($input: ProbeWorkspaceByokDraftInput!) { probeWorkspaceByokDraft(input: $input) { __typename definitionFingerprint stale connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } }"#
))
public var input: ProbeWorkspaceByokDraftInput
public init(input: ProbeWorkspaceByokDraftInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("probeWorkspaceByokDraft", ProbeWorkspaceByokDraft.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokDraftMutation.Data.self
] }
public var probeWorkspaceByokDraft: ProbeWorkspaceByokDraft { __data["probeWorkspaceByokDraft"] }
/// ProbeWorkspaceByokDraft
///
/// Parent Type: `WorkspaceByokProbeResultType`
public struct ProbeWorkspaceByokDraft: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("definitionFingerprint", String.self),
.field("stale", Bool.self),
.field("connection", Connection.self),
.field("models", [Model].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.self
] }
public var definitionFingerprint: String { __data["definitionFingerprint"] }
public var stale: Bool { __data["stale"] }
public var connection: Connection { __data["connection"] }
public var models: [Model] { __data["models"] }
/// ProbeWorkspaceByokDraft.Connection
///
/// Parent Type: `WorkspaceByokProbeStatusType`
public struct Connection: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
.field("testedAt", AffineGraphQL.DateTime?.self),
.field("errorKind", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Connection.self
] }
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
public var errorKind: String? { __data["errorKind"] }
}
/// ProbeWorkspaceByokDraft.Model
///
/// Parent Type: `WorkspaceByokModelProbeType`
public struct Model: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("modelId", String.self),
.field("checks", [Check].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.self
] }
public var modelId: String { __data["modelId"] }
public var checks: [Check] { __data["checks"] }
/// ProbeWorkspaceByokDraft.Model.Check
///
/// Parent Type: `WorkspaceByokModelProbeCheckType`
public struct Check: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
.field("status", Status.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.Check.self
] }
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
public var status: Status { __data["status"] }
/// ProbeWorkspaceByokDraft.Model.Check.Status
///
/// Parent Type: `WorkspaceByokProbeStatusType`
public struct Status: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
.field("testedAt", AffineGraphQL.DateTime?.self),
.field("errorKind", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.Check.Status.self
] }
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
public var errorKind: String? { __data["errorKind"] }
}
}
}
}
}
}

View File

@@ -0,0 +1,148 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
public static let operationName: String = "probeWorkspaceByokProfile"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation probeWorkspaceByokProfile($input: ProbeWorkspaceByokProfileInput!) { probeWorkspaceByokProfile(input: $input) { __typename definitionFingerprint stale connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } }"#
))
public var input: ProbeWorkspaceByokProfileInput
public init(input: ProbeWorkspaceByokProfileInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("probeWorkspaceByokProfile", ProbeWorkspaceByokProfile.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.self
] }
public var probeWorkspaceByokProfile: ProbeWorkspaceByokProfile { __data["probeWorkspaceByokProfile"] }
/// ProbeWorkspaceByokProfile
///
/// Parent Type: `WorkspaceByokProbeResultType`
public struct ProbeWorkspaceByokProfile: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("definitionFingerprint", String.self),
.field("stale", Bool.self),
.field("connection", Connection.self),
.field("models", [Model].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.self
] }
public var definitionFingerprint: String { __data["definitionFingerprint"] }
public var stale: Bool { __data["stale"] }
public var connection: Connection { __data["connection"] }
public var models: [Model] { __data["models"] }
/// ProbeWorkspaceByokProfile.Connection
///
/// Parent Type: `WorkspaceByokProbeStatusType`
public struct Connection: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
.field("testedAt", AffineGraphQL.DateTime?.self),
.field("errorKind", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Connection.self
] }
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
public var errorKind: String? { __data["errorKind"] }
}
/// ProbeWorkspaceByokProfile.Model
///
/// Parent Type: `WorkspaceByokModelProbeType`
public struct Model: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("modelId", String.self),
.field("checks", [Check].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.self
] }
public var modelId: String { __data["modelId"] }
public var checks: [Check] { __data["checks"] }
/// ProbeWorkspaceByokProfile.Model.Check
///
/// Parent Type: `WorkspaceByokModelProbeCheckType`
public struct Check: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
.field("status", Status.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.Check.self
] }
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
public var status: Status { __data["status"] }
/// ProbeWorkspaceByokProfile.Model.Check.Status
///
/// Parent Type: `WorkspaceByokProbeStatusType`
public struct Status: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
.field("testedAt", AffineGraphQL.DateTime?.self),
.field("errorKind", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.Check.Status.self
] }
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
public var errorKind: String? { __data["errorKind"] }
}
}
}
}
}
}

View File

@@ -0,0 +1,72 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class PublishPageMutation: GraphQLMutation {
public static let operationName: String = "publishPage"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation publishPage($workspaceId: String!, $pageId: String!, $mode: PublicDocMode = Page) { publishDoc(workspaceId: $workspaceId, docId: $pageId, mode: $mode) { __typename id mode } }"#
))
public var workspaceId: String
public var pageId: String
public var mode: GraphQLNullable<GraphQLEnum<PublicDocMode>>
public init(
workspaceId: String,
pageId: String,
mode: GraphQLNullable<GraphQLEnum<PublicDocMode>> = .init(.page)
) {
self.workspaceId = workspaceId
self.pageId = pageId
self.mode = mode
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"pageId": pageId,
"mode": mode
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("publishDoc", PublishDoc.self, arguments: [
"workspaceId": .variable("workspaceId"),
"docId": .variable("pageId"),
"mode": .variable("mode")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PublishPageMutation.Data.self
] }
public var publishDoc: PublishDoc { __data["publishDoc"] }
/// PublishDoc
///
/// Parent Type: `DocType`
public struct PublishDoc: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("mode", GraphQLEnum<AffineGraphQL.PublicDocMode>.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
PublishPageMutation.Data.PublishDoc.self
] }
public var id: String { __data["id"] }
public var mode: GraphQLEnum<AffineGraphQL.PublicDocMode> { __data["mode"] }
}
}
}

View File

@@ -0,0 +1,30 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ReadAllNotificationsMutation: GraphQLMutation {
public static let operationName: String = "readAllNotifications"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation readAllNotifications { readAllNotifications }"#
))
public init() {}
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("readAllNotifications", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReadAllNotificationsMutation.Data.self
] }
/// mark all notifications as read
public var readAllNotifications: Bool { __data["readAllNotifications"] }
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ReadNotificationMutation: GraphQLMutation {
public static let operationName: String = "readNotification"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation readNotification($id: String!) { readNotification(id: $id) }"#
))
public var id: String
public init(id: String) {
self.id = id
}
public var __variables: Variables? { ["id": id] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("readNotification", Bool.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReadNotificationMutation.Data.self
] }
/// mark notification as read
public var readNotification: Bool { __data["readNotification"] }
}
}

View File

@@ -0,0 +1,51 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RecoverDocMutation: GraphQLMutation {
public static let operationName: String = "recoverDoc"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation recoverDoc($workspaceId: String!, $docId: String!, $timestamp: DateTime!) { recoverDoc(workspaceId: $workspaceId, guid: $docId, timestamp: $timestamp) }"#
))
public var workspaceId: String
public var docId: String
public var timestamp: DateTime
public init(
workspaceId: String,
docId: String,
timestamp: DateTime
) {
self.workspaceId = workspaceId
self.docId = docId
self.timestamp = timestamp
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"docId": docId,
"timestamp": timestamp
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("recoverDoc", AffineGraphQL.DateTime.self, arguments: [
"workspaceId": .variable("workspaceId"),
"guid": .variable("docId"),
"timestamp": .variable("timestamp")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RecoverDocMutation.Data.self
] }
public var recoverDoc: AffineGraphQL.DateTime { __data["recoverDoc"] }
}
}

View File

@@ -0,0 +1,68 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RefreshSubscriptionMutation: GraphQLMutation {
public static let operationName: String = "refreshSubscription"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation refreshSubscription { refreshUserSubscriptions { __typename id status plan recurring start end nextBillAt canceledAt variant } }"#
))
public init() {}
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("refreshUserSubscriptions", [RefreshUserSubscription].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RefreshSubscriptionMutation.Data.self
] }
/// Refresh current user subscriptions and return latest.
public var refreshUserSubscriptions: [RefreshUserSubscription] { __data["refreshUserSubscriptions"] }
/// RefreshUserSubscription
///
/// Parent Type: `SubscriptionType`
public struct RefreshUserSubscription: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.SubscriptionType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String?.self),
.field("status", GraphQLEnum<AffineGraphQL.SubscriptionStatus>.self),
.field("plan", GraphQLEnum<AffineGraphQL.SubscriptionPlan>.self),
.field("recurring", GraphQLEnum<AffineGraphQL.SubscriptionRecurring>.self),
.field("start", AffineGraphQL.DateTime.self),
.field("end", AffineGraphQL.DateTime?.self),
.field("nextBillAt", AffineGraphQL.DateTime?.self),
.field("canceledAt", AffineGraphQL.DateTime?.self),
.field("variant", GraphQLEnum<AffineGraphQL.SubscriptionVariant>?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RefreshSubscriptionMutation.Data.RefreshUserSubscription.self
] }
@available(*, deprecated, message: "removed")
public var id: String? { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.SubscriptionStatus> { __data["status"] }
/// The 'Free' plan just exists to be a placeholder and for the type convenience of frontend.
/// There won't actually be a subscription with plan 'Free'
public var plan: GraphQLEnum<AffineGraphQL.SubscriptionPlan> { __data["plan"] }
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
public var start: AffineGraphQL.DateTime { __data["start"] }
public var end: AffineGraphQL.DateTime? { __data["end"] }
public var nextBillAt: AffineGraphQL.DateTime? { __data["nextBillAt"] }
public var canceledAt: AffineGraphQL.DateTime? { __data["canceledAt"] }
public var variant: GraphQLEnum<AffineGraphQL.SubscriptionVariant>? { __data["variant"] }
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ReleaseDeletedBlobsMutation: GraphQLMutation {
public static let operationName: String = "releaseDeletedBlobs"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation releaseDeletedBlobs($workspaceId: String!) { releaseDeletedBlobs(workspaceId: $workspaceId) }"#
))
public var workspaceId: String
public init(workspaceId: String) {
self.workspaceId = workspaceId
}
public var __variables: Variables? { ["workspaceId": workspaceId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("releaseDeletedBlobs", Bool.self, arguments: ["workspaceId": .variable("workspaceId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReleaseDeletedBlobsMutation.Data.self
] }
public var releaseDeletedBlobs: Bool { __data["releaseDeletedBlobs"] }
}
}

View File

@@ -0,0 +1,49 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RemoveAvatarMutation: GraphQLMutation {
public static let operationName: String = "removeAvatar"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation removeAvatar { removeAvatar { __typename success } }"#
))
public init() {}
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("removeAvatar", RemoveAvatar.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RemoveAvatarMutation.Data.self
] }
/// Remove user avatar
public var removeAvatar: RemoveAvatar { __data["removeAvatar"] }
/// RemoveAvatar
///
/// Parent Type: `RemoveAvatar`
public struct RemoveAvatar: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.RemoveAvatar }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("success", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RemoveAvatarMutation.Data.RemoveAvatar.self
] }
public var success: Bool { __data["success"] }
}
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RemoveWorkspaceArtifactMutation: GraphQLMutation {
public static let operationName: String = "removeWorkspaceArtifact"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation removeWorkspaceArtifact($workspaceId: String!, $artifactId: String!) { removeWorkspaceArtifact(workspaceId: $workspaceId, artifactId: $artifactId) }"#
))
public var workspaceId: String
public var artifactId: String
public init(
workspaceId: String,
artifactId: String
) {
self.workspaceId = workspaceId
self.artifactId = artifactId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"artifactId": artifactId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("removeWorkspaceArtifact", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"artifactId": .variable("artifactId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RemoveWorkspaceArtifactMutation.Data.self
] }
/// Remove a workspace artifact
public var removeWorkspaceArtifact: Bool { __data["removeWorkspaceArtifact"] }
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RemoveWorkspaceEmbeddingIgnoredDocsMutation: GraphQLMutation {
public static let operationName: String = "removeWorkspaceEmbeddingIgnoredDocs"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation removeWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $remove: [String!]!) { updateWorkspaceEmbeddingIgnoredDocs(workspaceId: $workspaceId, remove: $remove) }"#
))
public var workspaceId: String
public var remove: [String]
public init(
workspaceId: String,
remove: [String]
) {
self.workspaceId = workspaceId
self.remove = remove
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"remove": remove
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspaceEmbeddingIgnoredDocs", Int.self, arguments: [
"workspaceId": .variable("workspaceId"),
"remove": .variable("remove")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RemoveWorkspaceEmbeddingIgnoredDocsMutation.Data.self
] }
/// Update ignored docs
public var updateWorkspaceEmbeddingIgnoredDocs: Int { __data["updateWorkspaceEmbeddingIgnoredDocs"] }
}
}

View File

@@ -0,0 +1,58 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ReorderWorkspaceByokProfilesMutation: GraphQLMutation {
public static let operationName: String = "reorderWorkspaceByokProfiles"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation reorderWorkspaceByokProfiles($input: ReorderWorkspaceByokProfilesInput!) { reorderWorkspaceByokProfiles(input: $input) { __typename profileId sortOrder revision } }"#
))
public var input: ReorderWorkspaceByokProfilesInput
public init(input: ReorderWorkspaceByokProfilesInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("reorderWorkspaceByokProfiles", [ReorderWorkspaceByokProfile].self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReorderWorkspaceByokProfilesMutation.Data.self
] }
public var reorderWorkspaceByokProfiles: [ReorderWorkspaceByokProfile] { __data["reorderWorkspaceByokProfiles"] }
/// ReorderWorkspaceByokProfile
///
/// Parent Type: `WorkspaceByokProfileType`
public struct ReorderWorkspaceByokProfile: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("profileId", AffineGraphQL.ID.self),
.field("sortOrder", AffineGraphQL.SafeInt.self),
.field("revision", AffineGraphQL.SafeInt.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReorderWorkspaceByokProfilesMutation.Data.ReorderWorkspaceByokProfile.self
] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
public var revision: AffineGraphQL.SafeInt { __data["revision"] }
}
}
}

View File

@@ -0,0 +1,54 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ReplaceWorkspaceByokProfileMutation: GraphQLMutation {
public static let operationName: String = "replaceWorkspaceByokProfile"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation replaceWorkspaceByokProfile($input: ReplaceWorkspaceByokProfileInput!) { replaceWorkspaceByokProfile(input: $input) { __typename profileId } }"#
))
public var input: ReplaceWorkspaceByokProfileInput
public init(input: ReplaceWorkspaceByokProfileInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("replaceWorkspaceByokProfile", ReplaceWorkspaceByokProfile.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReplaceWorkspaceByokProfileMutation.Data.self
] }
public var replaceWorkspaceByokProfile: ReplaceWorkspaceByokProfile { __data["replaceWorkspaceByokProfile"] }
/// ReplaceWorkspaceByokProfile
///
/// Parent Type: `WorkspaceByokProfileType`
public struct ReplaceWorkspaceByokProfile: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("profileId", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReplaceWorkspaceByokProfileMutation.Data.ReplaceWorkspaceByokProfile.self
] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
}
}
}

View File

@@ -0,0 +1,74 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RequestApplySubscriptionMutation: GraphQLMutation {
public static let operationName: String = "requestApplySubscription"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation requestApplySubscription($transactionId: String!) { requestApplySubscription(transactionId: $transactionId) { __typename id status plan recurring start end nextBillAt canceledAt variant } }"#
))
public var transactionId: String
public init(transactionId: String) {
self.transactionId = transactionId
}
public var __variables: Variables? { ["transactionId": transactionId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("requestApplySubscription", [RequestApplySubscription].self, arguments: ["transactionId": .variable("transactionId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RequestApplySubscriptionMutation.Data.self
] }
/// Request to apply the subscription in advance
public var requestApplySubscription: [RequestApplySubscription] { __data["requestApplySubscription"] }
/// RequestApplySubscription
///
/// Parent Type: `SubscriptionType`
public struct RequestApplySubscription: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.SubscriptionType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String?.self),
.field("status", GraphQLEnum<AffineGraphQL.SubscriptionStatus>.self),
.field("plan", GraphQLEnum<AffineGraphQL.SubscriptionPlan>.self),
.field("recurring", GraphQLEnum<AffineGraphQL.SubscriptionRecurring>.self),
.field("start", AffineGraphQL.DateTime.self),
.field("end", AffineGraphQL.DateTime?.self),
.field("nextBillAt", AffineGraphQL.DateTime?.self),
.field("canceledAt", AffineGraphQL.DateTime?.self),
.field("variant", GraphQLEnum<AffineGraphQL.SubscriptionVariant>?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RequestApplySubscriptionMutation.Data.RequestApplySubscription.self
] }
@available(*, deprecated, message: "removed")
public var id: String? { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.SubscriptionStatus> { __data["status"] }
/// The 'Free' plan just exists to be a placeholder and for the type convenience of frontend.
/// There won't actually be a subscription with plan 'Free'
public var plan: GraphQLEnum<AffineGraphQL.SubscriptionPlan> { __data["plan"] }
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
public var start: AffineGraphQL.DateTime { __data["start"] }
public var end: AffineGraphQL.DateTime? { __data["end"] }
public var nextBillAt: AffineGraphQL.DateTime? { __data["nextBillAt"] }
public var canceledAt: AffineGraphQL.DateTime? { __data["canceledAt"] }
public var variant: GraphQLEnum<AffineGraphQL.SubscriptionVariant>? { __data["variant"] }
}
}
}

View File

@@ -0,0 +1,36 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ResolveCommentMutation: GraphQLMutation {
public static let operationName: String = "resolveComment"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation resolveComment($input: CommentResolveInput!) { resolveComment(input: $input) }"#
))
public var input: CommentResolveInput
public init(input: CommentResolveInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("resolveComment", Bool.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ResolveCommentMutation.Data.self
] }
/// Resolve a comment or not
public var resolveComment: Bool { __data["resolveComment"] }
}
}

View File

@@ -0,0 +1,74 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ResumeSubscriptionMutation: GraphQLMutation {
public static let operationName: String = "resumeSubscription"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation resumeSubscription($plan: SubscriptionPlan = Pro, $workspaceId: String) { resumeSubscription(plan: $plan, workspaceId: $workspaceId) { __typename id status nextBillAt start end } }"#
))
public var plan: GraphQLNullable<GraphQLEnum<SubscriptionPlan>>
public var workspaceId: GraphQLNullable<String>
public init(
plan: GraphQLNullable<GraphQLEnum<SubscriptionPlan>> = .init(.pro),
workspaceId: GraphQLNullable<String>
) {
self.plan = plan
self.workspaceId = workspaceId
}
public var __variables: Variables? { [
"plan": plan,
"workspaceId": workspaceId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("resumeSubscription", ResumeSubscription.self, arguments: [
"plan": .variable("plan"),
"workspaceId": .variable("workspaceId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ResumeSubscriptionMutation.Data.self
] }
public var resumeSubscription: ResumeSubscription { __data["resumeSubscription"] }
/// ResumeSubscription
///
/// Parent Type: `SubscriptionType`
public struct ResumeSubscription: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.SubscriptionType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String?.self),
.field("status", GraphQLEnum<AffineGraphQL.SubscriptionStatus>.self),
.field("nextBillAt", AffineGraphQL.DateTime?.self),
.field("start", AffineGraphQL.DateTime.self),
.field("end", AffineGraphQL.DateTime?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ResumeSubscriptionMutation.Data.ResumeSubscription.self
] }
@available(*, deprecated, message: "removed")
public var id: String? { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.SubscriptionStatus> { __data["status"] }
public var nextBillAt: AffineGraphQL.DateTime? { __data["nextBillAt"] }
public var start: AffineGraphQL.DateTime { __data["start"] }
public var end: AffineGraphQL.DateTime? { __data["end"] }
}
}
}

View File

@@ -0,0 +1,67 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RetryTranscriptTaskMutation: GraphQLMutation {
public static let operationName: String = "retryTranscriptTask"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation retryTranscriptTask($workspaceId: String!, $taskId: String!) { retryTranscriptTask(workspaceId: $workspaceId, taskId: $taskId) { __typename id status } }"#
))
public var workspaceId: String
public var taskId: String
public init(
workspaceId: String,
taskId: String
) {
self.workspaceId = workspaceId
self.taskId = taskId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"taskId": taskId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("retryTranscriptTask", RetryTranscriptTask?.self, arguments: [
"workspaceId": .variable("workspaceId"),
"taskId": .variable("taskId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RetryTranscriptTaskMutation.Data.self
] }
public var retryTranscriptTask: RetryTranscriptTask? { __data["retryTranscriptTask"] }
/// RetryTranscriptTask
///
/// Parent Type: `TranscriptionResultType`
public struct RetryTranscriptTask: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("status", GraphQLEnum<AffineGraphQL.AiJobStatus>.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RetryTranscriptTaskMutation.Data.RetryTranscriptTask.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.AiJobStatus> { __data["status"] }
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RevokeDocUserRolesMutation: GraphQLMutation {
public static let operationName: String = "revokeDocUserRoles"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation revokeDocUserRoles($input: RevokeDocUserRoleInput!) { revokeDocUserRoles(input: $input) }"#
))
public var input: RevokeDocUserRoleInput
public init(input: RevokeDocUserRoleInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("revokeDocUserRoles", Bool.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokeDocUserRolesMutation.Data.self
] }
public var revokeDocUserRoles: Bool { __data["revokeDocUserRoles"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RevokeInviteLinkMutation: GraphQLMutation {
public static let operationName: String = "revokeInviteLink"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation revokeInviteLink($workspaceId: String!) { revokeInviteLink(workspaceId: $workspaceId) }"#
))
public var workspaceId: String
public init(workspaceId: String) {
self.workspaceId = workspaceId
}
public var __variables: Variables? { ["workspaceId": workspaceId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("revokeInviteLink", Bool.self, arguments: ["workspaceId": .variable("workspaceId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokeInviteLinkMutation.Data.self
] }
public var revokeInviteLink: Bool { __data["revokeInviteLink"] }
}
}

View File

@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RevokeMcpCredentialMutation: GraphQLMutation {
public static let operationName: String = "revokeMcpCredential"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation revokeMcpCredential($id: ID!, $workspaceId: String!) { revokeMcpCredential(id: $id, workspaceId: $workspaceId) }"#
))
public var id: ID
public var workspaceId: String
public init(
id: ID,
workspaceId: String
) {
self.id = id
self.workspaceId = workspaceId
}
public var __variables: Variables? { [
"id": id,
"workspaceId": workspaceId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("revokeMcpCredential", Bool.self, arguments: [
"id": .variable("id"),
"workspaceId": .variable("workspaceId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokeMcpCredentialMutation.Data.self
] }
public var revokeMcpCredential: Bool { __data["revokeMcpCredential"] }
}
}

View File

@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RevokeMemberPermissionMutation: GraphQLMutation {
public static let operationName: String = "revokeMemberPermission"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation revokeMemberPermission($workspaceId: String!, $userId: String!) { revokeMember(workspaceId: $workspaceId, userId: $userId) }"#
))
public var workspaceId: String
public var userId: String
public init(
workspaceId: String,
userId: String
) {
self.workspaceId = workspaceId
self.userId = userId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"userId": userId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("revokeMember", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"userId": .variable("userId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokeMemberPermissionMutation.Data.self
] }
public var revokeMember: Bool { __data["revokeMember"] }
}
}

View File

@@ -0,0 +1,69 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RevokePublicPageMutation: GraphQLMutation {
public static let operationName: String = "revokePublicPage"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation revokePublicPage($workspaceId: String!, $pageId: String!) { revokePublicDoc(workspaceId: $workspaceId, docId: $pageId) { __typename id mode public } }"#
))
public var workspaceId: String
public var pageId: String
public init(
workspaceId: String,
pageId: String
) {
self.workspaceId = workspaceId
self.pageId = pageId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"pageId": pageId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("revokePublicDoc", RevokePublicDoc.self, arguments: [
"workspaceId": .variable("workspaceId"),
"docId": .variable("pageId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokePublicPageMutation.Data.self
] }
public var revokePublicDoc: RevokePublicDoc { __data["revokePublicDoc"] }
/// RevokePublicDoc
///
/// Parent Type: `DocType`
public struct RevokePublicDoc: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("mode", GraphQLEnum<AffineGraphQL.PublicDocMode>.self),
.field("public", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokePublicPageMutation.Data.RevokePublicDoc.self
] }
public var id: String { __data["id"] }
public var mode: GraphQLEnum<AffineGraphQL.PublicDocMode> { __data["mode"] }
public var `public`: Bool { __data["public"] }
}
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RotateAuthSigningKeyMutation: GraphQLMutation {
public static let operationName: String = "rotateAuthSigningKey"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation rotateAuthSigningKey($expectedActiveKeyId: String!) { rotateAuthSigningKey(expectedActiveKeyId: $expectedActiveKeyId) { __typename id status source createdAt retiredAt verifyUntil canDelete } }"#
))
public var expectedActiveKeyId: String
public init(expectedActiveKeyId: String) {
self.expectedActiveKeyId = expectedActiveKeyId
}
public var __variables: Variables? { ["expectedActiveKeyId": expectedActiveKeyId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("rotateAuthSigningKey", [RotateAuthSigningKey].self, arguments: ["expectedActiveKeyId": .variable("expectedActiveKeyId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateAuthSigningKeyMutation.Data.self
] }
public var rotateAuthSigningKey: [RotateAuthSigningKey] { __data["rotateAuthSigningKey"] }
/// RotateAuthSigningKey
///
/// Parent Type: `AuthSigningKeyType`
public struct RotateAuthSigningKey: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AuthSigningKeyType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("status", String.self),
.field("source", String.self),
.field("createdAt", AffineGraphQL.DateTime?.self),
.field("retiredAt", AffineGraphQL.DateTime?.self),
.field("verifyUntil", AffineGraphQL.DateTime?.self),
.field("canDelete", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateAuthSigningKeyMutation.Data.RotateAuthSigningKey.self
] }
public var id: String { __data["id"] }
public var status: String { __data["status"] }
public var source: String { __data["source"] }
public var createdAt: AffineGraphQL.DateTime? { __data["createdAt"] }
public var retiredAt: AffineGraphQL.DateTime? { __data["retiredAt"] }
public var verifyUntil: AffineGraphQL.DateTime? { __data["verifyUntil"] }
public var canDelete: Bool { __data["canDelete"] }
}
}
}

View File

@@ -0,0 +1,111 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RotateMcpCredentialMutation: GraphQLMutation {
public static let operationName: String = "rotateMcpCredential"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation rotateMcpCredential($id: ID!, $workspaceId: String!, $expirationDays: Int!) { rotateMcpCredential( id: $id workspaceId: $workspaceId expirationDays: $expirationDays ) { __typename credential { __typename id name workspaceId accessMode fingerprint createdAt expiresAt lastUsedAt revokedAt graceEndsAt status } token } }"#
))
public var id: ID
public var workspaceId: String
public var expirationDays: Int
public init(
id: ID,
workspaceId: String,
expirationDays: Int
) {
self.id = id
self.workspaceId = workspaceId
self.expirationDays = expirationDays
}
public var __variables: Variables? { [
"id": id,
"workspaceId": workspaceId,
"expirationDays": expirationDays
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("rotateMcpCredential", RotateMcpCredential.self, arguments: [
"id": .variable("id"),
"workspaceId": .variable("workspaceId"),
"expirationDays": .variable("expirationDays")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateMcpCredentialMutation.Data.self
] }
public var rotateMcpCredential: RotateMcpCredential { __data["rotateMcpCredential"] }
/// RotateMcpCredential
///
/// Parent Type: `RevealedMcpCredentialType`
public struct RotateMcpCredential: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.RevealedMcpCredentialType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("credential", Credential.self),
.field("token", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateMcpCredentialMutation.Data.RotateMcpCredential.self
] }
public var credential: Credential { __data["credential"] }
public var token: String { __data["token"] }
/// RotateMcpCredential.Credential
///
/// Parent Type: `McpCredentialType`
public struct Credential: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.McpCredentialType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("name", String.self),
.field("workspaceId", String.self),
.field("accessMode", GraphQLEnum<AffineGraphQL.McpAccessMode>.self),
.field("fingerprint", String.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("expiresAt", AffineGraphQL.DateTime.self),
.field("lastUsedAt", AffineGraphQL.DateTime?.self),
.field("revokedAt", AffineGraphQL.DateTime?.self),
.field("graceEndsAt", AffineGraphQL.DateTime?.self),
.field("status", GraphQLEnum<AffineGraphQL.McpCredentialStatus>.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateMcpCredentialMutation.Data.RotateMcpCredential.Credential.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var name: String { __data["name"] }
public var workspaceId: String { __data["workspaceId"] }
public var accessMode: GraphQLEnum<AffineGraphQL.McpAccessMode> { __data["accessMode"] }
public var fingerprint: String { __data["fingerprint"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var expiresAt: AffineGraphQL.DateTime { __data["expiresAt"] }
public var lastUsedAt: AffineGraphQL.DateTime? { __data["lastUsedAt"] }
public var revokedAt: AffineGraphQL.DateTime? { __data["revokedAt"] }
public var graceEndsAt: AffineGraphQL.DateTime? { __data["graceEndsAt"] }
public var status: GraphQLEnum<AffineGraphQL.McpCredentialStatus> { __data["status"] }
}
}
}
}

View File

@@ -0,0 +1,54 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RotateWorkspaceByokCredentialMutation: GraphQLMutation {
public static let operationName: String = "rotateWorkspaceByokCredential"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation rotateWorkspaceByokCredential($input: RotateWorkspaceByokCredentialInput!) { rotateWorkspaceByokCredential(input: $input) { __typename profileId } }"#
))
public var input: RotateWorkspaceByokCredentialInput
public init(input: RotateWorkspaceByokCredentialInput) {
self.input = input
}
public var __variables: Variables? { ["input": input] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("rotateWorkspaceByokCredential", RotateWorkspaceByokCredential.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateWorkspaceByokCredentialMutation.Data.self
] }
public var rotateWorkspaceByokCredential: RotateWorkspaceByokCredential { __data["rotateWorkspaceByokCredential"] }
/// RotateWorkspaceByokCredential
///
/// Parent Type: `WorkspaceByokProfileType`
public struct RotateWorkspaceByokCredential: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("profileId", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RotateWorkspaceByokCredentialMutation.Data.RotateWorkspaceByokCredential.self
] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SendChangeEmailMutation: GraphQLMutation {
public static let operationName: String = "sendChangeEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation sendChangeEmail($callbackUrl: String!) { sendChangeEmail(callbackUrl: $callbackUrl) }"#
))
public var callbackUrl: String
public init(callbackUrl: String) {
self.callbackUrl = callbackUrl
}
public var __variables: Variables? { ["callbackUrl": callbackUrl] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("sendChangeEmail", Bool.self, arguments: ["callbackUrl": .variable("callbackUrl")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SendChangeEmailMutation.Data.self
] }
public var sendChangeEmail: Bool { __data["sendChangeEmail"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SendChangePasswordEmailMutation: GraphQLMutation {
public static let operationName: String = "sendChangePasswordEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation sendChangePasswordEmail($callbackUrl: String!) { sendChangePasswordEmail(callbackUrl: $callbackUrl) }"#
))
public var callbackUrl: String
public init(callbackUrl: String) {
self.callbackUrl = callbackUrl
}
public var __variables: Variables? { ["callbackUrl": callbackUrl] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("sendChangePasswordEmail", Bool.self, arguments: ["callbackUrl": .variable("callbackUrl")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SendChangePasswordEmailMutation.Data.self
] }
public var sendChangePasswordEmail: Bool { __data["sendChangePasswordEmail"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SendSetPasswordEmailMutation: GraphQLMutation {
public static let operationName: String = "sendSetPasswordEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation sendSetPasswordEmail($callbackUrl: String!) { sendSetPasswordEmail(callbackUrl: $callbackUrl) }"#
))
public var callbackUrl: String
public init(callbackUrl: String) {
self.callbackUrl = callbackUrl
}
public var __variables: Variables? { ["callbackUrl": callbackUrl] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("sendSetPasswordEmail", Bool.self, arguments: ["callbackUrl": .variable("callbackUrl")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SendSetPasswordEmailMutation.Data.self
] }
public var sendSetPasswordEmail: Bool { __data["sendSetPasswordEmail"] }
}
}

View File

@@ -0,0 +1,71 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SendTestEmailMutation: GraphQLMutation {
public static let operationName: String = "sendTestEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation sendTestEmail($name: String!, $host: String!, $port: Int!, $sender: String!, $username: String!, $password: String!, $ignoreTLS: Boolean!) { sendTestEmail( config: { name: $name host: $host port: $port sender: $sender username: $username password: $password ignoreTLS: $ignoreTLS } ) }"#
))
public var name: String
public var host: String
public var port: Int
public var sender: String
public var username: String
public var password: String
public var ignoreTLS: Bool
public init(
name: String,
host: String,
port: Int,
sender: String,
username: String,
password: String,
ignoreTLS: Bool
) {
self.name = name
self.host = host
self.port = port
self.sender = sender
self.username = username
self.password = password
self.ignoreTLS = ignoreTLS
}
public var __variables: Variables? { [
"name": name,
"host": host,
"port": port,
"sender": sender,
"username": username,
"password": password,
"ignoreTLS": ignoreTLS
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("sendTestEmail", Bool.self, arguments: ["config": [
"name": .variable("name"),
"host": .variable("host"),
"port": .variable("port"),
"sender": .variable("sender"),
"username": .variable("username"),
"password": .variable("password"),
"ignoreTLS": .variable("ignoreTLS")
]]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SendTestEmailMutation.Data.self
] }
public var sendTestEmail: Bool { __data["sendTestEmail"] }
}
}

View File

@@ -0,0 +1,51 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SendVerifyChangeEmailMutation: GraphQLMutation {
public static let operationName: String = "sendVerifyChangeEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation sendVerifyChangeEmail($token: String!, $email: String!, $callbackUrl: String!) { sendVerifyChangeEmail(token: $token, email: $email, callbackUrl: $callbackUrl) }"#
))
public var token: String
public var email: String
public var callbackUrl: String
public init(
token: String,
email: String,
callbackUrl: String
) {
self.token = token
self.email = email
self.callbackUrl = callbackUrl
}
public var __variables: Variables? { [
"token": token,
"email": email,
"callbackUrl": callbackUrl
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("sendVerifyChangeEmail", Bool.self, arguments: [
"token": .variable("token"),
"email": .variable("email"),
"callbackUrl": .variable("callbackUrl")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SendVerifyChangeEmailMutation.Data.self
] }
public var sendVerifyChangeEmail: Bool { __data["sendVerifyChangeEmail"] }
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SendVerifyEmailMutation: GraphQLMutation {
public static let operationName: String = "sendVerifyEmail"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation sendVerifyEmail($callbackUrl: String!) { sendVerifyEmail(callbackUrl: $callbackUrl) }"#
))
public var callbackUrl: String
public init(callbackUrl: String) {
self.callbackUrl = callbackUrl
}
public var __variables: Variables? { ["callbackUrl": callbackUrl] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("sendVerifyEmail", Bool.self, arguments: ["callbackUrl": .variable("callbackUrl")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SendVerifyEmailMutation.Data.self
] }
public var sendVerifyEmail: Bool { __data["sendVerifyEmail"] }
}
}

View File

@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetBlobMutation: GraphQLMutation {
public static let operationName: String = "setBlob"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setBlob($workspaceId: String!, $blob: Upload!) { setBlob(workspaceId: $workspaceId, blob: $blob) }"#
))
public var workspaceId: String
public var blob: Upload
public init(
workspaceId: String,
blob: Upload
) {
self.workspaceId = workspaceId
self.blob = blob
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"blob": blob
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("setBlob", String.self, arguments: [
"workspaceId": .variable("workspaceId"),
"blob": .variable("blob")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetBlobMutation.Data.self
] }
public var setBlob: String { __data["setBlob"] }
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetEnableAiMutation: GraphQLMutation {
public static let operationName: String = "setEnableAi"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setEnableAi($id: ID!, $enableAi: Boolean!) { updateWorkspace(input: { id: $id, enableAi: $enableAi }) { __typename id } }"#
))
public var id: ID
public var enableAi: Bool
public init(
id: ID,
enableAi: Bool
) {
self.id = id
self.enableAi = enableAi
}
public var __variables: Variables? { [
"id": id,
"enableAi": enableAi
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspace", UpdateWorkspace.self, arguments: ["input": [
"id": .variable("id"),
"enableAi": .variable("enableAi")
]]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableAiMutation.Data.self
] }
/// Update workspace
public var updateWorkspace: UpdateWorkspace { __data["updateWorkspace"] }
/// UpdateWorkspace
///
/// Parent Type: `WorkspaceType`
public struct UpdateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableAiMutation.Data.UpdateWorkspace.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetEnableDocEmbeddingMutation: GraphQLMutation {
public static let operationName: String = "setEnableDocEmbedding"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setEnableDocEmbedding($id: ID!, $enableDocEmbedding: Boolean!) { updateWorkspace(input: { id: $id, enableDocEmbedding: $enableDocEmbedding }) { __typename id } }"#
))
public var id: ID
public var enableDocEmbedding: Bool
public init(
id: ID,
enableDocEmbedding: Bool
) {
self.id = id
self.enableDocEmbedding = enableDocEmbedding
}
public var __variables: Variables? { [
"id": id,
"enableDocEmbedding": enableDocEmbedding
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspace", UpdateWorkspace.self, arguments: ["input": [
"id": .variable("id"),
"enableDocEmbedding": .variable("enableDocEmbedding")
]]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableDocEmbeddingMutation.Data.self
] }
/// Update workspace
public var updateWorkspace: UpdateWorkspace { __data["updateWorkspace"] }
/// UpdateWorkspace
///
/// Parent Type: `WorkspaceType`
public struct UpdateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableDocEmbeddingMutation.Data.UpdateWorkspace.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetEnableSharingMutation: GraphQLMutation {
public static let operationName: String = "setEnableSharing"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setEnableSharing($id: ID!, $enableSharing: Boolean!) { updateWorkspace(input: { id: $id, enableSharing: $enableSharing }) { __typename id } }"#
))
public var id: ID
public var enableSharing: Bool
public init(
id: ID,
enableSharing: Bool
) {
self.id = id
self.enableSharing = enableSharing
}
public var __variables: Variables? { [
"id": id,
"enableSharing": enableSharing
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspace", UpdateWorkspace.self, arguments: ["input": [
"id": .variable("id"),
"enableSharing": .variable("enableSharing")
]]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableSharingMutation.Data.self
] }
/// Update workspace
public var updateWorkspace: UpdateWorkspace { __data["updateWorkspace"] }
/// UpdateWorkspace
///
/// Parent Type: `WorkspaceType`
public struct UpdateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableSharingMutation.Data.UpdateWorkspace.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetEnableUrlPreviewMutation: GraphQLMutation {
public static let operationName: String = "setEnableUrlPreview"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setEnableUrlPreview($id: ID!, $enableUrlPreview: Boolean!) { updateWorkspace(input: { id: $id, enableUrlPreview: $enableUrlPreview }) { __typename id } }"#
))
public var id: ID
public var enableUrlPreview: Bool
public init(
id: ID,
enableUrlPreview: Bool
) {
self.id = id
self.enableUrlPreview = enableUrlPreview
}
public var __variables: Variables? { [
"id": id,
"enableUrlPreview": enableUrlPreview
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspace", UpdateWorkspace.self, arguments: ["input": [
"id": .variable("id"),
"enableUrlPreview": .variable("enableUrlPreview")
]]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableUrlPreviewMutation.Data.self
] }
/// Update workspace
public var updateWorkspace: UpdateWorkspace { __data["updateWorkspace"] }
/// UpdateWorkspace
///
/// Parent Type: `WorkspaceType`
public struct UpdateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetEnableUrlPreviewMutation.Data.UpdateWorkspace.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}

View File

@@ -0,0 +1,66 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SetWorkspacePublicByIdMutation: GraphQLMutation {
public static let operationName: String = "setWorkspacePublicById"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation setWorkspacePublicById($id: ID!, $public: Boolean!) { updateWorkspace(input: { id: $id, public: $public }) { __typename id } }"#
))
public var id: ID
public var `public`: Bool
public init(
id: ID,
`public`: Bool
) {
self.id = id
self.`public` = `public`
}
public var __variables: Variables? { [
"id": id,
"public": `public`
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateWorkspace", UpdateWorkspace.self, arguments: ["input": [
"id": .variable("id"),
"public": .variable("public")
]]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetWorkspacePublicByIdMutation.Data.self
] }
/// Update workspace
public var updateWorkspace: UpdateWorkspace { __data["updateWorkspace"] }
/// UpdateWorkspace
///
/// Parent Type: `WorkspaceType`
public struct UpdateWorkspace: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SetWorkspacePublicByIdMutation.Data.UpdateWorkspace.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
}
}
}

View File

@@ -0,0 +1,274 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SettleTranscriptTaskMutation: GraphQLMutation {
public static let operationName: String = "settleTranscriptTask"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation settleTranscriptTask($workspaceId: String!, $taskId: String!) { settleTranscriptTask(workspaceId: $workspaceId, taskId: $taskId) { __typename id status title summary actions sourceAudio { __typename blobId mimeType durationMs sampleRate channels } quality { __typename degraded overflowCount } sliceManifest { __typename index fileName mimeType startSec durationSec byteSize } normalizedSegments { __typename speaker startSec endSec start end text } normalizedTranscript summaryJson { __typename title durationMinutes attendees keyPoints actionItems { __typename description owner deadline } decisions openQuestions blockers } transcription { __typename speaker start end transcription } } }"#
))
public var workspaceId: String
public var taskId: String
public init(
workspaceId: String,
taskId: String
) {
self.workspaceId = workspaceId
self.taskId = taskId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"taskId": taskId
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("settleTranscriptTask", SettleTranscriptTask?.self, arguments: [
"workspaceId": .variable("workspaceId"),
"taskId": .variable("taskId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.self
] }
public var settleTranscriptTask: SettleTranscriptTask? { __data["settleTranscriptTask"] }
/// SettleTranscriptTask
///
/// Parent Type: `TranscriptionResultType`
public struct SettleTranscriptTask: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("status", GraphQLEnum<AffineGraphQL.AiJobStatus>.self),
.field("title", String?.self),
.field("summary", String?.self),
.field("actions", String?.self),
.field("sourceAudio", SourceAudio?.self),
.field("quality", Quality?.self),
.field("sliceManifest", [SliceManifest]?.self),
.field("normalizedSegments", [NormalizedSegment]?.self),
.field("normalizedTranscript", String?.self),
.field("summaryJson", SummaryJson?.self),
.field("transcription", [Transcription]?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.AiJobStatus> { __data["status"] }
public var title: String? { __data["title"] }
public var summary: String? { __data["summary"] }
public var actions: String? { __data["actions"] }
public var sourceAudio: SourceAudio? { __data["sourceAudio"] }
public var quality: Quality? { __data["quality"] }
public var sliceManifest: [SliceManifest]? { __data["sliceManifest"] }
public var normalizedSegments: [NormalizedSegment]? { __data["normalizedSegments"] }
public var normalizedTranscript: String? { __data["normalizedTranscript"] }
public var summaryJson: SummaryJson? { __data["summaryJson"] }
public var transcription: [Transcription]? { __data["transcription"] }
/// SettleTranscriptTask.SourceAudio
///
/// Parent Type: `TranscriptionSourceAudioType`
public struct SourceAudio: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionSourceAudioType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("blobId", String?.self),
.field("mimeType", String?.self),
.field("durationMs", Int?.self),
.field("sampleRate", Int?.self),
.field("channels", Int?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.SourceAudio.self
] }
public var blobId: String? { __data["blobId"] }
public var mimeType: String? { __data["mimeType"] }
public var durationMs: Int? { __data["durationMs"] }
public var sampleRate: Int? { __data["sampleRate"] }
public var channels: Int? { __data["channels"] }
}
/// SettleTranscriptTask.Quality
///
/// Parent Type: `TranscriptionQualityType`
public struct Quality: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionQualityType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("degraded", Bool?.self),
.field("overflowCount", Int?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.Quality.self
] }
public var degraded: Bool? { __data["degraded"] }
public var overflowCount: Int? { __data["overflowCount"] }
}
/// SettleTranscriptTask.SliceManifest
///
/// Parent Type: `AudioSliceManifestItemType`
public struct SliceManifest: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AudioSliceManifestItemType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("index", Int.self),
.field("fileName", String.self),
.field("mimeType", String.self),
.field("startSec", Double.self),
.field("durationSec", Double.self),
.field("byteSize", Int?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.SliceManifest.self
] }
public var index: Int { __data["index"] }
public var fileName: String { __data["fileName"] }
public var mimeType: String { __data["mimeType"] }
public var startSec: Double { __data["startSec"] }
public var durationSec: Double { __data["durationSec"] }
public var byteSize: Int? { __data["byteSize"] }
}
/// SettleTranscriptTask.NormalizedSegment
///
/// Parent Type: `NormalizedTranscriptSegmentType`
public struct NormalizedSegment: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.NormalizedTranscriptSegmentType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("speaker", String.self),
.field("startSec", Double.self),
.field("endSec", Double.self),
.field("start", String.self),
.field("end", String.self),
.field("text", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.NormalizedSegment.self
] }
public var speaker: String { __data["speaker"] }
public var startSec: Double { __data["startSec"] }
public var endSec: Double { __data["endSec"] }
public var start: String { __data["start"] }
public var end: String { __data["end"] }
public var text: String { __data["text"] }
}
/// SettleTranscriptTask.SummaryJson
///
/// Parent Type: `MeetingSummaryV2Type`
public struct SummaryJson: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.MeetingSummaryV2Type }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("title", String.self),
.field("durationMinutes", Double.self),
.field("attendees", [String].self),
.field("keyPoints", [String].self),
.field("actionItems", [ActionItem].self),
.field("decisions", [String].self),
.field("openQuestions", [String].self),
.field("blockers", [String].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.SummaryJson.self
] }
public var title: String { __data["title"] }
public var durationMinutes: Double { __data["durationMinutes"] }
public var attendees: [String] { __data["attendees"] }
public var keyPoints: [String] { __data["keyPoints"] }
public var actionItems: [ActionItem] { __data["actionItems"] }
public var decisions: [String] { __data["decisions"] }
public var openQuestions: [String] { __data["openQuestions"] }
public var blockers: [String] { __data["blockers"] }
/// SettleTranscriptTask.SummaryJson.ActionItem
///
/// Parent Type: `MeetingActionItemType`
public struct ActionItem: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.MeetingActionItemType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("description", String.self),
.field("owner", String?.self),
.field("deadline", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.SummaryJson.ActionItem.self
] }
public var description: String { __data["description"] }
public var owner: String? { __data["owner"] }
public var deadline: String? { __data["deadline"] }
}
}
/// SettleTranscriptTask.Transcription
///
/// Parent Type: `TranscriptionItemType`
public struct Transcription: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionItemType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("speaker", String.self),
.field("start", String.self),
.field("end", String.self),
.field("transcription", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SettleTranscriptTaskMutation.Data.SettleTranscriptTask.Transcription.self
] }
public var speaker: String { __data["speaker"] }
public var start: String { __data["start"] }
public var end: String { __data["end"] }
public var transcription: String { __data["transcription"] }
}
}
}
}

View File

@@ -0,0 +1,82 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class SubmitTranscriptTaskMutation: GraphQLMutation {
public static let operationName: String = "submitTranscriptTask"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation submitTranscriptTask($workspaceId: String!, $blobId: String!, $blob: Upload, $blobs: [Upload!], $input: SubmitAudioTranscriptionInput) { submitTranscriptTask( blob: $blob blobs: $blobs blobId: $blobId workspaceId: $workspaceId input: $input ) { __typename id status } }"#
))
public var workspaceId: String
public var blobId: String
public var blob: GraphQLNullable<Upload>
public var blobs: GraphQLNullable<[Upload]>
public var input: GraphQLNullable<SubmitAudioTranscriptionInput>
public init(
workspaceId: String,
blobId: String,
blob: GraphQLNullable<Upload>,
blobs: GraphQLNullable<[Upload]>,
input: GraphQLNullable<SubmitAudioTranscriptionInput>
) {
self.workspaceId = workspaceId
self.blobId = blobId
self.blob = blob
self.blobs = blobs
self.input = input
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"blobId": blobId,
"blob": blob,
"blobs": blobs,
"input": input
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("submitTranscriptTask", SubmitTranscriptTask?.self, arguments: [
"blob": .variable("blob"),
"blobs": .variable("blobs"),
"blobId": .variable("blobId"),
"workspaceId": .variable("workspaceId"),
"input": .variable("input")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SubmitTranscriptTaskMutation.Data.self
] }
public var submitTranscriptTask: SubmitTranscriptTask? { __data["submitTranscriptTask"] }
/// SubmitTranscriptTask
///
/// Parent Type: `TranscriptionResultType`
public struct SubmitTranscriptTask: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("status", GraphQLEnum<AffineGraphQL.AiJobStatus>.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
SubmitTranscriptTaskMutation.Data.SubmitTranscriptTask.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var status: GraphQLEnum<AffineGraphQL.AiJobStatus> { __data["status"] }
}
}
}

View File

@@ -0,0 +1,35 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class UnlinkCalendarAccountMutation: GraphQLMutation {
public static let operationName: String = "unlinkCalendarAccount"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation unlinkCalendarAccount($accountId: String!) { unlinkCalendarAccount(accountId: $accountId) }"#
))
public var accountId: String
public init(accountId: String) {
self.accountId = accountId
}
public var __variables: Variables? { ["accountId": accountId] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("unlinkCalendarAccount", Bool.self, arguments: ["accountId": .variable("accountId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
UnlinkCalendarAccountMutation.Data.self
] }
public var unlinkCalendarAccount: Bool { __data["unlinkCalendarAccount"] }
}
}

View File

@@ -0,0 +1,47 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class UpdateAccountFeaturesMutation: GraphQLMutation {
public static let operationName: String = "updateAccountFeatures"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation updateAccountFeatures($userId: String!, $features: [FeatureType!]!) { updateUserFeatures(id: $userId, features: $features) }"#
))
public var userId: String
public var features: [GraphQLEnum<FeatureType>]
public init(
userId: String,
features: [GraphQLEnum<FeatureType>]
) {
self.userId = userId
self.features = features
}
public var __variables: Variables? { [
"userId": userId,
"features": features
] }
public struct Data: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("updateUserFeatures", [GraphQLEnum<AffineGraphQL.FeatureType>].self, arguments: [
"id": .variable("userId"),
"features": .variable("features")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
UpdateAccountFeaturesMutation.Data.self
] }
/// update user enabled feature
public var updateUserFeatures: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["updateUserFeatures"] }
}
}

Some files were not shown because too many files have changed in this diff Show More