feat(server): converge legacy compatibility (#15426)

#### PR Dependency Tree


* **PR #15426** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

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

* **New Features**
* Added workspace BYOK profiles with provider/model catalogs, capability
validation, connection probing, credential rotation, reordering, and
secure local leases.
* Added Copilot route options, selectable targets, managed tiers,
explicit profile/model overrides, and improved streaming with tool
callbacks and abort support.
* Added Copilot availability controls to prevent access when the feature
is disabled.
* **Changes**
* Simplified Copilot configuration and removed legacy provider-specific
settings.
* Removed obsolete model, token-cost, transcript strategy, and provider
metadata fields from public responses.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-08-05 00:40:13 +08:00
committed by GitHub
parent fdfb6df826
commit 965f4590ff
272 changed files with 12430 additions and 33824 deletions
@@ -14,7 +14,7 @@ let package = Package(
.library(name: "AffineGraphQL", targets: ["AffineGraphQL"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.25.7"),
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.25.4"),
],
targets: [
.target(
@@ -5,7 +5,7 @@
public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString {
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName model optionalModels action pinned title tokens messages { __typename id role content attachments streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName action pinned title messages { __typename id role content attachments streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
}
public let __data: DataDict
@@ -19,12 +19,9 @@ public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
.field("docId", String?.self),
.field("parentSessionId", String?.self),
.field("promptName", String.self),
.field("model", String.self),
.field("optionalModels", [String].self),
.field("action", String?.self),
.field("pinned", Bool.self),
.field("title", String?.self),
.field("tokens", Int.self),
.field("messages", [Message].self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("updatedAt", AffineGraphQL.DateTime.self),
@@ -38,14 +35,10 @@ public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
public var docId: String? { __data["docId"] }
public var parentSessionId: String? { __data["parentSessionId"] }
public var promptName: String { __data["promptName"] }
public var model: String { __data["model"] }
public var optionalModels: [String] { __data["optionalModels"] }
/// 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"] }
/// The number of tokens used in the session
public var tokens: Int { __data["tokens"] }
public var messages: [Message] { __data["messages"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
@@ -91,14 +91,10 @@ public struct PaginatedCopilotChats: AffineGraphQL.SelectionSet, Fragment {
public var docId: String? { __data["docId"] }
public var parentSessionId: String? { __data["parentSessionId"] }
public var promptName: String { __data["promptName"] }
public var model: String { __data["model"] }
public var optionalModels: [String] { __data["optionalModels"] }
/// 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"] }
/// The number of tokens used in the session
public var tokens: Int { __data["tokens"] }
public var messages: [Message] { __data["messages"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
@@ -7,7 +7,7 @@ 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 features owner { __typename id name email avatarUrl } memberCount publicPageCount snapshotCount snapshotSize blobCount blobSize } }"#
#"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
@@ -52,7 +52,6 @@ public class AdminUpdateWorkspaceMutation: GraphQLMutation {
.field("enableSharing", Bool.self),
.field("enableUrlPreview", Bool.self),
.field("enableDocEmbedding", Bool.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
.field("owner", Owner?.self),
.field("memberCount", Int.self),
.field("publicPageCount", Int.self),
@@ -74,7 +73,6 @@ public class AdminUpdateWorkspaceMutation: GraphQLMutation {
public var enableSharing: Bool { __data["enableSharing"] }
public var enableUrlPreview: Bool { __data["enableUrlPreview"] }
public var enableDocEmbedding: Bool { __data["enableDocEmbedding"] }
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
public var owner: Owner? { __data["owner"] }
public var memberCount: Int { __data["memberCount"] }
public var publicPageCount: Int { __data["publicPageCount"] }
@@ -1,35 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ClearWorkspaceByokConfigsMutation: GraphQLMutation {
public static let operationName: String = "clearWorkspaceByokConfigs"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation clearWorkspaceByokConfigs($workspaceId: String!) { clearWorkspaceByokConfigs(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("clearWorkspaceByokConfigs", Bool.self, arguments: ["workspaceId": .variable("workspaceId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ClearWorkspaceByokConfigsMutation.Data.self
] }
public var clearWorkspaceByokConfigs: Bool { __data["clearWorkspaceByokConfigs"] }
}
}
@@ -56,14 +56,10 @@ public class CreateCopilotSessionWithHistoryMutation: GraphQLMutation {
public var docId: String? { __data["docId"] }
public var parentSessionId: String? { __data["parentSessionId"] }
public var promptName: String { __data["promptName"] }
public var model: String { __data["model"] }
public var optionalModels: [String] { __data["optionalModels"] }
/// 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"] }
/// The number of tokens used in the session
public var tokens: Int { __data["tokens"] }
public var messages: [Message] { __data["messages"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
@@ -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"] }
}
}
}
}
@@ -3,16 +3,16 @@
@_exported import ApolloAPI
public class UpsertWorkspaceByokConfigMutation: GraphQLMutation {
public static let operationName: String = "upsertWorkspaceByokConfig"
public class CreateWorkspaceByokProfileMutation: GraphQLMutation {
public static let operationName: String = "createWorkspaceByokProfile"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation upsertWorkspaceByokConfig($input: UpsertWorkspaceByokConfigInput!) { upsertWorkspaceByokConfig(input: $input) { __typename id } }"#
#"mutation createWorkspaceByokProfile($input: CreateWorkspaceByokProfileInput!) { createWorkspaceByokProfile(input: $input) { __typename profileId } }"#
))
public var input: UpsertWorkspaceByokConfigInput
public var input: CreateWorkspaceByokProfileInput
public init(input: UpsertWorkspaceByokConfigInput) {
public init(input: CreateWorkspaceByokProfileInput) {
self.input = input
}
@@ -24,31 +24,31 @@ public class UpsertWorkspaceByokConfigMutation: GraphQLMutation {
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("upsertWorkspaceByokConfig", UpsertWorkspaceByokConfig.self, arguments: ["input": .variable("input")]),
.field("createWorkspaceByokProfile", CreateWorkspaceByokProfile.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
UpsertWorkspaceByokConfigMutation.Data.self
CreateWorkspaceByokProfileMutation.Data.self
] }
public var upsertWorkspaceByokConfig: UpsertWorkspaceByokConfig { __data["upsertWorkspaceByokConfig"] }
public var createWorkspaceByokProfile: CreateWorkspaceByokProfile { __data["createWorkspaceByokProfile"] }
/// UpsertWorkspaceByokConfig
/// CreateWorkspaceByokProfile
///
/// Parent Type: `WorkspaceByokKeyConfigType`
public struct UpsertWorkspaceByokConfig: AffineGraphQL.SelectionSet {
/// 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.WorkspaceByokKeyConfigType }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("profileId", AffineGraphQL.ID.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
UpsertWorkspaceByokConfigMutation.Data.UpsertWorkspaceByokConfig.self
CreateWorkspaceByokProfileMutation.Data.CreateWorkspaceByokProfile.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
}
}
}
@@ -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"] }
}
}
}
@@ -3,27 +3,27 @@
@_exported import ApolloAPI
public class DeleteWorkspaceByokConfigMutation: GraphQLMutation {
public static let operationName: String = "deleteWorkspaceByokConfig"
public class DeleteWorkspaceByokProfileMutation: GraphQLMutation {
public static let operationName: String = "deleteWorkspaceByokProfile"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation deleteWorkspaceByokConfig($workspaceId: String!, $id: ID!) { deleteWorkspaceByokConfig(workspaceId: $workspaceId, id: $id) }"#
#"mutation deleteWorkspaceByokProfile($workspaceId: String!, $profileId: ID!) { deleteWorkspaceByokProfile(workspaceId: $workspaceId, profileId: $profileId) }"#
))
public var workspaceId: String
public var id: ID
public var profileId: ID
public init(
workspaceId: String,
id: ID
profileId: ID
) {
self.workspaceId = workspaceId
self.id = id
self.profileId = profileId
}
public var __variables: Variables? { [
"workspaceId": workspaceId,
"id": id
"profileId": profileId
] }
public struct Data: AffineGraphQL.SelectionSet {
@@ -32,15 +32,15 @@ public class DeleteWorkspaceByokConfigMutation: GraphQLMutation {
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
public static var __selections: [ApolloAPI.Selection] { [
.field("deleteWorkspaceByokConfig", Bool.self, arguments: [
.field("deleteWorkspaceByokProfile", Bool.self, arguments: [
"workspaceId": .variable("workspaceId"),
"id": .variable("id")
"profileId": .variable("profileId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
DeleteWorkspaceByokConfigMutation.Data.self
DeleteWorkspaceByokProfileMutation.Data.self
] }
public var deleteWorkspaceByokConfig: Bool { __data["deleteWorkspaceByokConfig"] }
public var deleteWorkspaceByokProfile: Bool { __data["deleteWorkspaceByokProfile"] }
}
}
@@ -1,62 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class GenerateUserAccessTokenMutation: GraphQLMutation {
public static let operationName: String = "generateUserAccessToken"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation generateUserAccessToken($input: GenerateAccessTokenInput!) { generateUserAccessToken(input: $input) { __typename id name token createdAt expiresAt } }"#
))
public var input: GenerateAccessTokenInput
public init(input: GenerateAccessTokenInput) {
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("generateUserAccessToken", GenerateUserAccessToken.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GenerateUserAccessTokenMutation.Data.self
] }
public var generateUserAccessToken: GenerateUserAccessToken { __data["generateUserAccessToken"] }
/// GenerateUserAccessToken
///
/// Parent Type: `RevealedAccessToken`
public struct GenerateUserAccessToken: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.RevealedAccessToken }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
.field("token", String.self),
.field("createdAt", AffineGraphQL.DateTime.self),
.field("expiresAt", AffineGraphQL.DateTime?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GenerateUserAccessTokenMutation.Data.GenerateUserAccessToken.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
public var token: String { __data["token"] }
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
public var expiresAt: AffineGraphQL.DateTime? { __data["expiresAt"] }
}
}
}
@@ -0,0 +1,90 @@
// @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($workspaceId: String!, $profileId: ID!) { probeWorkspaceByokProfile(workspaceId: $workspaceId, profileId: $profileId) { __typename profileId probe { __typename kind testedAt errorKind } } }"#
))
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("probeWorkspaceByokProfile", ProbeWorkspaceByokProfile.self, arguments: [
"workspaceId": .variable("workspaceId"),
"profileId": .variable("profileId")
]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.self
] }
public var probeWorkspaceByokProfile: ProbeWorkspaceByokProfile { __data["probeWorkspaceByokProfile"] }
/// ProbeWorkspaceByokProfile
///
/// Parent Type: `WorkspaceByokProfileType`
public struct ProbeWorkspaceByokProfile: 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("probe", Probe.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.self
] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
public var probe: Probe { __data["probe"] }
/// ProbeWorkspaceByokProfile.Probe
///
/// Parent Type: `WorkspaceByokProbeType`
public struct Probe: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", String.self),
.field("testedAt", AffineGraphQL.DateTime?.self),
.field("errorKind", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Probe.self
] }
public var kind: String { __data["kind"] }
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
public var errorKind: String? { __data["errorKind"] }
}
}
}
}
@@ -1,56 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class ReorderWorkspaceByokConfigsMutation: GraphQLMutation {
public static let operationName: String = "reorderWorkspaceByokConfigs"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation reorderWorkspaceByokConfigs($input: ReorderWorkspaceByokConfigsInput!) { reorderWorkspaceByokConfigs(input: $input) { __typename id sortOrder } }"#
))
public var input: ReorderWorkspaceByokConfigsInput
public init(input: ReorderWorkspaceByokConfigsInput) {
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("reorderWorkspaceByokConfigs", [ReorderWorkspaceByokConfig].self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReorderWorkspaceByokConfigsMutation.Data.self
] }
public var reorderWorkspaceByokConfigs: [ReorderWorkspaceByokConfig] { __data["reorderWorkspaceByokConfigs"] }
/// ReorderWorkspaceByokConfig
///
/// Parent Type: `WorkspaceByokKeyConfigType`
public struct ReorderWorkspaceByokConfig: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokKeyConfigType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("sortOrder", AffineGraphQL.SafeInt.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
ReorderWorkspaceByokConfigsMutation.Data.ReorderWorkspaceByokConfig.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
}
}
}
@@ -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"] }
}
}
}
@@ -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"] }
}
}
@@ -1,35 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class RevokeUserAccessTokenMutation: GraphQLMutation {
public static let operationName: String = "revokeUserAccessToken"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation revokeUserAccessToken($id: String!) { revokeUserAccessToken(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("revokeUserAccessToken", Bool.self, arguments: ["id": .variable("id")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
RevokeUserAccessTokenMutation.Data.self
] }
public var revokeUserAccessToken: Bool { __data["revokeUserAccessToken"] }
}
}
@@ -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"] }
}
}
}
@@ -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"] }
}
}
}
}
@@ -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"] }
}
}
}
@@ -1,58 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class TestWorkspaceByokConfigMutation: GraphQLMutation {
public static let operationName: String = "testWorkspaceByokConfig"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"mutation testWorkspaceByokConfig($input: TestWorkspaceByokConfigInput!) { testWorkspaceByokConfig(input: $input) { __typename ok status message } }"#
))
public var input: TestWorkspaceByokConfigInput
public init(input: TestWorkspaceByokConfigInput) {
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("testWorkspaceByokConfig", TestWorkspaceByokConfig.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
TestWorkspaceByokConfigMutation.Data.self
] }
public var testWorkspaceByokConfig: TestWorkspaceByokConfig { __data["testWorkspaceByokConfig"] }
/// TestWorkspaceByokConfig
///
/// Parent Type: `TestWorkspaceByokConfigResultType`
public struct TestWorkspaceByokConfig: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TestWorkspaceByokConfigResultType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("ok", Bool.self),
.field("status", GraphQLEnum<AffineGraphQL.ByokKeyTestStatus>.self),
.field("message", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
TestWorkspaceByokConfigMutation.Data.TestWorkspaceByokConfig.self
] }
public var ok: Bool { __data["ok"] }
public var status: GraphQLEnum<AffineGraphQL.ByokKeyTestStatus> { __data["status"] }
public var message: String? { __data["message"] }
}
}
}
@@ -7,7 +7,7 @@ public class AdminDashboardQuery: GraphQLQuery {
public static let operationName: String = "adminDashboard"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query adminDashboard($input: AdminDashboardInput) { adminDashboard(input: $input) { __typename syncActiveUsers syncActiveUsersTimeline { __typename minute activeUsers } syncWindow { __typename from to timezone bucket requestedSize effectiveSize } copilotConversations workspaceStorageBytes blobStorageBytes workspaceStorageHistory { __typename date value } blobStorageHistory { __typename date value } storageWindow { __typename from to timezone bucket requestedSize effectiveSize } topSharedLinks { __typename workspaceId docId title shareUrl publishedAt views uniqueViews guestViews lastAccessedAt } topSharedLinksWindow { __typename from to timezone bucket requestedSize effectiveSize } generatedAt } }"#
#"query adminDashboard($input: AdminDashboardInput) { adminDashboard(input: $input) { __typename syncActiveUsers syncActiveUsersTimeline { __typename minute activeUsers } syncWindow { __typename from to timezone bucket requestedSize effectiveSize } copilotConversations copilotWindow { __typename from to timezone bucket requestedSize effectiveSize } workspaceStorageBytes blobStorageBytes workspaceStorageHistory { __typename date value } blobStorageHistory { __typename date value } storageWindow { __typename from to timezone bucket requestedSize effectiveSize } topSharedLinks { __typename workspaceId docId title shareUrl publishedAt views uniqueViews guestViews lastAccessedAt } topSharedLinksWindow { __typename from to timezone bucket requestedSize effectiveSize } generatedAt } }"#
))
public var input: GraphQLNullable<AdminDashboardInput>
@@ -47,6 +47,7 @@ public class AdminDashboardQuery: GraphQLQuery {
.field("syncActiveUsersTimeline", [SyncActiveUsersTimeline].self),
.field("syncWindow", SyncWindow.self),
.field("copilotConversations", AffineGraphQL.SafeInt.self),
.field("copilotWindow", CopilotWindow.self),
.field("workspaceStorageBytes", AffineGraphQL.SafeInt.self),
.field("blobStorageBytes", AffineGraphQL.SafeInt.self),
.field("workspaceStorageHistory", [WorkspaceStorageHistory].self),
@@ -64,6 +65,7 @@ public class AdminDashboardQuery: GraphQLQuery {
public var syncActiveUsersTimeline: [SyncActiveUsersTimeline] { __data["syncActiveUsersTimeline"] }
public var syncWindow: SyncWindow { __data["syncWindow"] }
public var copilotConversations: AffineGraphQL.SafeInt { __data["copilotConversations"] }
public var copilotWindow: CopilotWindow { __data["copilotWindow"] }
public var workspaceStorageBytes: AffineGraphQL.SafeInt { __data["workspaceStorageBytes"] }
public var blobStorageBytes: AffineGraphQL.SafeInt { __data["blobStorageBytes"] }
public var workspaceStorageHistory: [WorkspaceStorageHistory] { __data["workspaceStorageHistory"] }
@@ -123,6 +125,35 @@ public class AdminDashboardQuery: GraphQLQuery {
public var effectiveSize: Int { __data["effectiveSize"] }
}
/// AdminDashboard.CopilotWindow
///
/// Parent Type: `TimeWindow`
public struct CopilotWindow: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TimeWindow }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("from", AffineGraphQL.DateTime.self),
.field("to", AffineGraphQL.DateTime.self),
.field("timezone", String.self),
.field("bucket", GraphQLEnum<AffineGraphQL.TimeBucket>.self),
.field("requestedSize", Int.self),
.field("effectiveSize", Int.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminDashboardQuery.Data.AdminDashboard.CopilotWindow.self
] }
public var from: AffineGraphQL.DateTime { __data["from"] }
public var to: AffineGraphQL.DateTime { __data["to"] }
public var timezone: String { __data["timezone"] }
public var bucket: GraphQLEnum<AffineGraphQL.TimeBucket> { __data["bucket"] }
public var requestedSize: Int { __data["requestedSize"] }
public var effectiveSize: Int { __data["effectiveSize"] }
}
/// AdminDashboard.WorkspaceStorageHistory
///
/// Parent Type: `AdminDashboardValueDayPoint`
@@ -0,0 +1,265 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AdminMailDeliveriesQuery: GraphQLQuery {
public static let operationName: String = "adminMailDeliveries"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query adminMailDeliveries($input: AdminMailDeliveriesInput) { adminMailDeliveries(input: $input) { __typename window { __typename from to timezone bucket requestedSize effectiveSize } summary { __typename total sent failed skipped canceled queued sending retryWait successRate } byStatus { __typename key label total points { __typename bucket count } } byType { __typename key label total points { __typename bucket count } } byOutcome { __typename key label total points { __typename bucket count } } } }"#
))
public var input: GraphQLNullable<AdminMailDeliveriesInput>
public init(input: GraphQLNullable<AdminMailDeliveriesInput>) {
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.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("adminMailDeliveries", AdminMailDeliveries.self, arguments: ["input": .variable("input")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.self
] }
/// Aggregate mail delivery timeline facts for admin panel
public var adminMailDeliveries: AdminMailDeliveries { __data["adminMailDeliveries"] }
/// AdminMailDeliveries
///
/// Parent Type: `AdminMailDeliveryAnalytics`
public struct AdminMailDeliveries: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliveryAnalytics }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("window", Window.self),
.field("summary", Summary.self),
.field("byStatus", [ByStatus].self),
.field("byType", [ByType].self),
.field("byOutcome", [ByOutcome].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.self
] }
public var window: Window { __data["window"] }
public var summary: Summary { __data["summary"] }
public var byStatus: [ByStatus] { __data["byStatus"] }
public var byType: [ByType] { __data["byType"] }
public var byOutcome: [ByOutcome] { __data["byOutcome"] }
/// AdminMailDeliveries.Window
///
/// Parent Type: `TimeWindow`
public struct Window: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TimeWindow }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("from", AffineGraphQL.DateTime.self),
.field("to", AffineGraphQL.DateTime.self),
.field("timezone", String.self),
.field("bucket", GraphQLEnum<AffineGraphQL.TimeBucket>.self),
.field("requestedSize", Int.self),
.field("effectiveSize", Int.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.Window.self
] }
public var from: AffineGraphQL.DateTime { __data["from"] }
public var to: AffineGraphQL.DateTime { __data["to"] }
public var timezone: String { __data["timezone"] }
public var bucket: GraphQLEnum<AffineGraphQL.TimeBucket> { __data["bucket"] }
public var requestedSize: Int { __data["requestedSize"] }
public var effectiveSize: Int { __data["effectiveSize"] }
}
/// AdminMailDeliveries.Summary
///
/// Parent Type: `AdminMailDeliverySummary`
public struct Summary: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliverySummary }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("total", Int.self),
.field("sent", Int.self),
.field("failed", Int.self),
.field("skipped", Int.self),
.field("canceled", Int.self),
.field("queued", Int.self),
.field("sending", Int.self),
.field("retryWait", Int.self),
.field("successRate", Double.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.Summary.self
] }
public var total: Int { __data["total"] }
public var sent: Int { __data["sent"] }
public var failed: Int { __data["failed"] }
public var skipped: Int { __data["skipped"] }
public var canceled: Int { __data["canceled"] }
public var queued: Int { __data["queued"] }
public var sending: Int { __data["sending"] }
public var retryWait: Int { __data["retryWait"] }
public var successRate: Double { __data["successRate"] }
}
/// AdminMailDeliveries.ByStatus
///
/// Parent Type: `AdminMailDeliverySeries`
public struct ByStatus: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliverySeries }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("key", String.self),
.field("label", String.self),
.field("total", Int.self),
.field("points", [Point].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.ByStatus.self
] }
public var key: String { __data["key"] }
public var label: String { __data["label"] }
public var total: Int { __data["total"] }
public var points: [Point] { __data["points"] }
/// AdminMailDeliveries.ByStatus.Point
///
/// Parent Type: `AdminMailDeliveryPoint`
public struct Point: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliveryPoint }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("bucket", AffineGraphQL.DateTime.self),
.field("count", Int.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.ByStatus.Point.self
] }
public var bucket: AffineGraphQL.DateTime { __data["bucket"] }
public var count: Int { __data["count"] }
}
}
/// AdminMailDeliveries.ByType
///
/// Parent Type: `AdminMailDeliverySeries`
public struct ByType: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliverySeries }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("key", String.self),
.field("label", String.self),
.field("total", Int.self),
.field("points", [Point].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.ByType.self
] }
public var key: String { __data["key"] }
public var label: String { __data["label"] }
public var total: Int { __data["total"] }
public var points: [Point] { __data["points"] }
/// AdminMailDeliveries.ByType.Point
///
/// Parent Type: `AdminMailDeliveryPoint`
public struct Point: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliveryPoint }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("bucket", AffineGraphQL.DateTime.self),
.field("count", Int.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.ByType.Point.self
] }
public var bucket: AffineGraphQL.DateTime { __data["bucket"] }
public var count: Int { __data["count"] }
}
}
/// AdminMailDeliveries.ByOutcome
///
/// Parent Type: `AdminMailDeliverySeries`
public struct ByOutcome: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliverySeries }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("key", String.self),
.field("label", String.self),
.field("total", Int.self),
.field("points", [Point].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.ByOutcome.self
] }
public var key: String { __data["key"] }
public var label: String { __data["label"] }
public var total: Int { __data["total"] }
public var points: [Point] { __data["points"] }
/// AdminMailDeliveries.ByOutcome.Point
///
/// Parent Type: `AdminMailDeliveryPoint`
public struct Point: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.AdminMailDeliveryPoint }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("bucket", AffineGraphQL.DateTime.self),
.field("count", Int.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminMailDeliveriesQuery.Data.AdminMailDeliveries.ByOutcome.Point.self
] }
public var bucket: AffineGraphQL.DateTime { __data["bucket"] }
public var count: Int { __data["count"] }
}
}
}
}
}
@@ -7,7 +7,7 @@ public class AdminServerConfigQuery: GraphQLQuery {
public static let operationName: String = "adminServerConfig"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query adminServerConfig { serverConfig { __typename version baseUrl name features type initialized credentialsRequirement { __typename ...CredentialsRequirements } availableUpgrade { __typename changelog version publishedAt url } availableUserFeatures availableWorkspaceFeatures } }"#,
#"query adminServerConfig { serverConfig { __typename version baseUrl name features type initialized credentialsRequirement { __typename ...CredentialsRequirements } availableUpgrade { __typename changelog version publishedAt url } availableUserFeatures } }"#,
fragments: [CredentialsRequirements.self, PasswordLimits.self]
))
@@ -47,7 +47,6 @@ public class AdminServerConfigQuery: GraphQLQuery {
.field("credentialsRequirement", CredentialsRequirement.self),
.field("availableUpgrade", AvailableUpgrade?.self),
.field("availableUserFeatures", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
.field("availableWorkspaceFeatures", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AdminServerConfigQuery.Data.ServerConfig.self
@@ -71,8 +70,6 @@ public class AdminServerConfigQuery: GraphQLQuery {
public var availableUpgrade: AvailableUpgrade? { __data["availableUpgrade"] }
/// Features for user that can be configured
public var availableUserFeatures: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["availableUserFeatures"] }
/// Workspace features available for admin configuration
public var availableWorkspaceFeatures: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["availableWorkspaceFeatures"] }
/// ServerConfig.CredentialsRequirement
///
@@ -7,7 +7,7 @@ public class AdminWorkspaceQuery: GraphQLQuery {
public static let operationName: String = "adminWorkspace"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query adminWorkspace($id: String!, $memberSkip: Int, $memberTake: Int, $memberQuery: String) { adminWorkspace(id: $id) { __typename id public createdAt name avatarKey enableAi enableSharing enableUrlPreview enableDocEmbedding features owner { __typename id name email avatarUrl } memberCount publicPageCount snapshotCount snapshotSize blobCount blobSize sharedLinks { __typename docId title publishedAt } members(skip: $memberSkip, take: $memberTake, query: $memberQuery) { __typename id name email avatarUrl role status } } }"#
#"query adminWorkspace($id: String!, $memberSkip: Int, $memberTake: Int, $memberQuery: String) { adminWorkspace(id: $id) { __typename id public createdAt name avatarKey enableAi enableSharing enableUrlPreview enableDocEmbedding owner { __typename id name email avatarUrl } memberCount publicPageCount snapshotCount snapshotSize blobCount blobSize sharedLinks { __typename docId title publishedAt } members(skip: $memberSkip, take: $memberTake, query: $memberQuery) { __typename id name email avatarUrl role status } } }"#
))
public var id: String
@@ -68,7 +68,6 @@ public class AdminWorkspaceQuery: GraphQLQuery {
.field("enableSharing", Bool.self),
.field("enableUrlPreview", Bool.self),
.field("enableDocEmbedding", Bool.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
.field("owner", Owner?.self),
.field("memberCount", Int.self),
.field("publicPageCount", Int.self),
@@ -96,7 +95,6 @@ public class AdminWorkspaceQuery: GraphQLQuery {
public var enableSharing: Bool { __data["enableSharing"] }
public var enableUrlPreview: Bool { __data["enableUrlPreview"] }
public var enableDocEmbedding: Bool { __data["enableDocEmbedding"] }
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
public var owner: Owner? { __data["owner"] }
public var memberCount: Int { __data["memberCount"] }
public var publicPageCount: Int { __data["publicPageCount"] }
@@ -170,7 +168,7 @@ public class AdminWorkspaceQuery: GraphQLQuery {
.field("name", String.self),
.field("email", String.self),
.field("avatarUrl", String?.self),
.field("role", GraphQLEnum<AffineGraphQL.Permission>.self),
.field("role", GraphQLEnum<AffineGraphQL.AdminWorkspaceMemberRole>.self),
.field("status", GraphQLEnum<AffineGraphQL.WorkspaceMemberStatus>.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
@@ -181,7 +179,7 @@ public class AdminWorkspaceQuery: GraphQLQuery {
public var name: String { __data["name"] }
public var email: String { __data["email"] }
public var avatarUrl: String? { __data["avatarUrl"] }
public var role: GraphQLEnum<AffineGraphQL.Permission> { __data["role"] }
public var role: GraphQLEnum<AffineGraphQL.AdminWorkspaceMemberRole> { __data["role"] }
public var status: GraphQLEnum<AffineGraphQL.WorkspaceMemberStatus> { __data["status"] }
}
}
@@ -7,7 +7,7 @@ public class AdminWorkspacesQuery: GraphQLQuery {
public static let operationName: String = "adminWorkspaces"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query adminWorkspaces($filter: ListWorkspaceInput!) { adminWorkspaces(filter: $filter) { __typename id public createdAt name avatarKey enableAi enableSharing enableUrlPreview enableDocEmbedding features owner { __typename id name email avatarUrl } memberCount publicPageCount snapshotCount snapshotSize blobCount blobSize } }"#
#"query adminWorkspaces($filter: ListWorkspaceInput!) { adminWorkspaces(filter: $filter) { __typename id public createdAt name avatarKey enableAi enableSharing enableUrlPreview enableDocEmbedding owner { __typename id name email avatarUrl } memberCount publicPageCount snapshotCount snapshotSize blobCount blobSize } }"#
))
public var filter: ListWorkspaceInput
@@ -52,7 +52,6 @@ public class AdminWorkspacesQuery: GraphQLQuery {
.field("enableSharing", Bool.self),
.field("enableUrlPreview", Bool.self),
.field("enableDocEmbedding", Bool.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
.field("owner", Owner?.self),
.field("memberCount", Int.self),
.field("publicPageCount", Int.self),
@@ -74,7 +73,6 @@ public class AdminWorkspacesQuery: GraphQLQuery {
public var enableSharing: Bool { __data["enableSharing"] }
public var enableUrlPreview: Bool { __data["enableUrlPreview"] }
public var enableDocEmbedding: Bool { __data["enableDocEmbedding"] }
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
public var owner: Owner? { __data["owner"] }
public var memberCount: Int { __data["memberCount"] }
public var publicPageCount: Int { __data["publicPageCount"] }
@@ -0,0 +1,60 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class AuthSigningKeysQuery: GraphQLQuery {
public static let operationName: String = "authSigningKeys"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query authSigningKeys { authSigningKeys { __typename id status source createdAt retiredAt verifyUntil canDelete } }"#
))
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.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("authSigningKeys", [AuthSigningKey].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
AuthSigningKeysQuery.Data.self
] }
public var authSigningKeys: [AuthSigningKey] { __data["authSigningKeys"] }
/// AuthSigningKey
///
/// Parent Type: `AuthSigningKeyType`
public struct AuthSigningKey: 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] { [
AuthSigningKeysQuery.Data.AuthSigningKey.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"] }
}
}
}
@@ -3,11 +3,11 @@
@_exported import ApolloAPI
public class GetPromptModelsQuery: GraphQLQuery {
public static let operationName: String = "getPromptModels"
public class GetCopilotRouteOptionsQuery: GraphQLQuery {
public static let operationName: String = "getCopilotRouteOptions"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query getPromptModels($promptName: String!) { currentUser { __typename copilot { __typename models(promptName: $promptName) { __typename defaultModel optionalModels { __typename id name } proModels { __typename id name } } } } }"#
#"query getCopilotRouteOptions($promptName: String!) { currentUser { __typename copilot { __typename routeOptions(promptName: $promptName) { __typename routeId defaultTargetId choices { __typename id displayName minimumTier available } } } } }"#
))
public var promptName: String
@@ -27,7 +27,7 @@ public class GetPromptModelsQuery: GraphQLQuery {
.field("currentUser", CurrentUser?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetPromptModelsQuery.Data.self
GetCopilotRouteOptionsQuery.Data.self
] }
/// Get current user
@@ -46,7 +46,7 @@ public class GetPromptModelsQuery: GraphQLQuery {
.field("copilot", Copilot.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetPromptModelsQuery.Data.CurrentUser.self
GetCopilotRouteOptionsQuery.Data.CurrentUser.self
] }
public var copilot: Copilot { __data["copilot"] }
@@ -61,77 +61,60 @@ public class GetPromptModelsQuery: GraphQLQuery {
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("models", Models.self, arguments: ["promptName": .variable("promptName")]),
.field("routeOptions", RouteOptions?.self, arguments: ["promptName": .variable("promptName")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetPromptModelsQuery.Data.CurrentUser.Copilot.self
GetCopilotRouteOptionsQuery.Data.CurrentUser.Copilot.self
] }
/// List available models for a prompt, with human-readable names
public var models: Models { __data["models"] }
/// List native built-in route choices for a prompt
public var routeOptions: RouteOptions? { __data["routeOptions"] }
/// CurrentUser.Copilot.Models
/// CurrentUser.Copilot.RouteOptions
///
/// Parent Type: `CopilotModelsType`
public struct Models: AffineGraphQL.SelectionSet {
/// Parent Type: `CopilotRouteOptions`
public struct RouteOptions: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotModelsType }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotRouteOptions }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("defaultModel", String.self),
.field("optionalModels", [OptionalModel].self),
.field("proModels", [ProModel].self),
.field("routeId", String.self),
.field("defaultTargetId", String?.self),
.field("choices", [Choice].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetPromptModelsQuery.Data.CurrentUser.Copilot.Models.self
GetCopilotRouteOptionsQuery.Data.CurrentUser.Copilot.RouteOptions.self
] }
public var defaultModel: String { __data["defaultModel"] }
public var optionalModels: [OptionalModel] { __data["optionalModels"] }
public var proModels: [ProModel] { __data["proModels"] }
public var routeId: String { __data["routeId"] }
public var defaultTargetId: String? { __data["defaultTargetId"] }
public var choices: [Choice] { __data["choices"] }
/// CurrentUser.Copilot.Models.OptionalModel
/// CurrentUser.Copilot.RouteOptions.Choice
///
/// Parent Type: `CopilotModelType`
public struct OptionalModel: AffineGraphQL.SelectionSet {
/// Parent Type: `CopilotRouteTarget`
public struct Choice: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotModelType }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotRouteTarget }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
.field("displayName", String.self),
.field("minimumTier", String.self),
.field("available", Bool.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetPromptModelsQuery.Data.CurrentUser.Copilot.Models.OptionalModel.self
GetCopilotRouteOptionsQuery.Data.CurrentUser.Copilot.RouteOptions.Choice.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
}
/// CurrentUser.Copilot.Models.ProModel
///
/// Parent Type: `CopilotModelType`
public struct ProModel: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotModelType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", String.self),
.field("name", String.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetPromptModelsQuery.Data.CurrentUser.Copilot.Models.ProModel.self
] }
public var id: String { __data["id"] }
public var name: String { __data["name"] }
public var displayName: String { __data["displayName"] }
public var minimumTier: String { __data["minimumTier"] }
public var available: Bool { __data["available"] }
}
}
}
@@ -7,7 +7,7 @@ public class GetCurrentUserQuery: GraphQLQuery {
public static let operationName: String = "getCurrentUser"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query getCurrentUser { currentUser { __typename id name email emailVerified avatarUrl token { __typename sessionToken } } }"#
#"query getCurrentUser { currentUser { __typename id name email emailVerified avatarUrl hasPassword features } }"#
))
public init() {}
@@ -42,7 +42,8 @@ public class GetCurrentUserQuery: GraphQLQuery {
.field("email", String.self),
.field("emailVerified", Bool.self),
.field("avatarUrl", String?.self),
.field("token", Token.self),
.field("hasPassword", Bool?.self),
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetCurrentUserQuery.Data.CurrentUser.self
@@ -57,27 +58,10 @@ public class GetCurrentUserQuery: GraphQLQuery {
public var emailVerified: Bool { __data["emailVerified"] }
/// User avatar url
public var avatarUrl: String? { __data["avatarUrl"] }
@available(*, deprecated, message: "use native session exchange instead")
public var token: Token { __data["token"] }
/// CurrentUser.Token
///
/// Parent Type: `TokenType`
public struct Token: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TokenType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("sessionToken", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
GetCurrentUserQuery.Data.CurrentUser.Token.self
] }
public var sessionToken: String? { __data["sessionToken"] }
}
/// User password has been set
public var hasPassword: Bool? { __data["hasPassword"] }
/// Enabled features of a user
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
}
}
}
@@ -0,0 +1,76 @@
// @generated
// This file was automatically generated and should not be edited.
@_exported import ApolloAPI
public class McpCredentialsQuery: GraphQLQuery {
public static let operationName: String = "mcpCredentials"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query mcpCredentials($workspaceId: String!) { mcpCredentialReadWriteAvailable mcpCredentials(workspaceId: $workspaceId) { __typename id name workspaceId accessMode fingerprint createdAt expiresAt lastUsedAt revokedAt graceEndsAt status } }"#
))
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.Query }
public static var __selections: [ApolloAPI.Selection] { [
.field("mcpCredentialReadWriteAvailable", Bool.self),
.field("mcpCredentials", [McpCredential].self, arguments: ["workspaceId": .variable("workspaceId")]),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
McpCredentialsQuery.Data.self
] }
public var mcpCredentialReadWriteAvailable: Bool { __data["mcpCredentialReadWriteAvailable"] }
public var mcpCredentials: [McpCredential] { __data["mcpCredentials"] }
/// McpCredential
///
/// Parent Type: `McpCredentialType`
public struct McpCredential: 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] { [
McpCredentialsQuery.Data.McpCredential.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"] }
}
}
}
@@ -7,7 +7,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
public static let operationName: String = "workspaceByokSettings"
public static let operationDocument: ApolloAPI.OperationDocument = .init(
definition: .init(
#"query workspaceByokSettings($id: String!, $from: DateTime!, $to: DateTime!) { workspace(id: $id) { __typename id byokSettings { __typename workspaceId entitled serverEntitled localEntitled entitlementRequired allowedProviders localStorageSupported customEndpointSupported hasAiPlan keys { __typename id provider name description storage configured enabled endpoint endpointEditable sortOrder capabilities testStatus disabledReason lastTestedAt lastTestError lastUsedAt lastErrorAt lastError } warnings { __typename featureKind reason requiredProviders } } byokUsage(from: $from, to: $to) { __typename date featureKind totalTokens } } }"#
#"query workspaceByokSettings($id: String!, $from: DateTime!, $to: DateTime!) { workspace(id: $id) { __typename id byokSettings { __typename workspaceId entitled serverEntitled localEntitled allowedProviders customEndpointSupported privateEndpointSupported profiles { __typename profileId provider name description enabled sortOrder definition { __typename version endpoint { __typename kind url } models { __typename modelId capabilities { __typename input output features attachmentKinds attachmentSources } } } probe { __typename kind testedAt errorKind } } } byokUsage(from: $from, to: $to) { __typename date featureKind totalTokens } } }"#
))
public var id: String
@@ -84,13 +84,10 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
.field("entitled", Bool.self),
.field("serverEntitled", Bool.self),
.field("localEntitled", Bool.self),
.field("entitlementRequired", [String].self),
.field("allowedProviders", [GraphQLEnum<AffineGraphQL.ByokProvider>].self),
.field("localStorageSupported", Bool.self),
.field("customEndpointSupported", Bool.self),
.field("hasAiPlan", Bool.self),
.field("keys", [Key].self),
.field("warnings", [Warning].self),
.field("privateEndpointSupported", Bool.self),
.field("profiles", [Profile].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.self
@@ -100,88 +97,157 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
public var entitled: Bool { __data["entitled"] }
public var serverEntitled: Bool { __data["serverEntitled"] }
public var localEntitled: Bool { __data["localEntitled"] }
public var entitlementRequired: [String] { __data["entitlementRequired"] }
public var allowedProviders: [GraphQLEnum<AffineGraphQL.ByokProvider>] { __data["allowedProviders"] }
public var localStorageSupported: Bool { __data["localStorageSupported"] }
public var customEndpointSupported: Bool { __data["customEndpointSupported"] }
public var hasAiPlan: Bool { __data["hasAiPlan"] }
public var keys: [Key] { __data["keys"] }
public var warnings: [Warning] { __data["warnings"] }
public var privateEndpointSupported: Bool { __data["privateEndpointSupported"] }
public var profiles: [Profile] { __data["profiles"] }
/// Workspace.ByokSettings.Key
/// Workspace.ByokSettings.Profile
///
/// Parent Type: `WorkspaceByokKeyConfigType`
public struct Key: AffineGraphQL.SelectionSet {
/// Parent Type: `WorkspaceByokProfileType`
public struct Profile: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokKeyConfigType }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("id", AffineGraphQL.ID.self),
.field("profileId", AffineGraphQL.ID.self),
.field("provider", GraphQLEnum<AffineGraphQL.ByokProvider>.self),
.field("name", String.self),
.field("description", String?.self),
.field("storage", GraphQLEnum<AffineGraphQL.ByokKeyStorage>.self),
.field("configured", Bool.self),
.field("enabled", Bool.self),
.field("endpoint", String?.self),
.field("endpointEditable", Bool.self),
.field("sortOrder", AffineGraphQL.SafeInt.self),
.field("capabilities", [String].self),
.field("testStatus", GraphQLEnum<AffineGraphQL.ByokKeyTestStatus>.self),
.field("disabledReason", String?.self),
.field("lastTestedAt", AffineGraphQL.DateTime?.self),
.field("lastTestError", String?.self),
.field("lastUsedAt", AffineGraphQL.DateTime?.self),
.field("lastErrorAt", AffineGraphQL.DateTime?.self),
.field("lastError", String?.self),
.field("definition", Definition.self),
.field("probe", Probe.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Key.self
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.self
] }
public var id: AffineGraphQL.ID { __data["id"] }
public var profileId: AffineGraphQL.ID { __data["profileId"] }
public var provider: GraphQLEnum<AffineGraphQL.ByokProvider> { __data["provider"] }
public var name: String { __data["name"] }
public var description: String? { __data["description"] }
public var storage: GraphQLEnum<AffineGraphQL.ByokKeyStorage> { __data["storage"] }
public var configured: Bool { __data["configured"] }
public var enabled: Bool { __data["enabled"] }
public var endpoint: String? { __data["endpoint"] }
public var endpointEditable: Bool { __data["endpointEditable"] }
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
public var capabilities: [String] { __data["capabilities"] }
public var testStatus: GraphQLEnum<AffineGraphQL.ByokKeyTestStatus> { __data["testStatus"] }
public var disabledReason: String? { __data["disabledReason"] }
public var lastTestedAt: AffineGraphQL.DateTime? { __data["lastTestedAt"] }
public var lastTestError: String? { __data["lastTestError"] }
public var lastUsedAt: AffineGraphQL.DateTime? { __data["lastUsedAt"] }
public var lastErrorAt: AffineGraphQL.DateTime? { __data["lastErrorAt"] }
public var lastError: String? { __data["lastError"] }
}
public var definition: Definition { __data["definition"] }
public var probe: Probe { __data["probe"] }
/// Workspace.ByokSettings.Warning
///
/// Parent Type: `WorkspaceByokCapabilityWarningType`
public struct Warning: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
/// Workspace.ByokSettings.Profile.Definition
///
/// Parent Type: `WorkspaceByokProfileDefinitionType`
public struct Definition: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCapabilityWarningType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("featureKind", String.self),
.field("reason", String.self),
.field("requiredProviders", [GraphQLEnum<AffineGraphQL.ByokProvider>].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Warning.self
] }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileDefinitionType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("version", AffineGraphQL.SafeInt.self),
.field("endpoint", Endpoint.self),
.field("models", [Model].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.self
] }
public var featureKind: String { __data["featureKind"] }
public var reason: String { __data["reason"] }
public var requiredProviders: [GraphQLEnum<AffineGraphQL.ByokProvider>] { __data["requiredProviders"] }
public var version: AffineGraphQL.SafeInt { __data["version"] }
public var endpoint: Endpoint { __data["endpoint"] }
public var models: [Model] { __data["models"] }
/// Workspace.ByokSettings.Profile.Definition.Endpoint
///
/// Parent Type: `WorkspaceByokEndpointType`
public struct Endpoint: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokEndpointType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", String.self),
.field("url", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Endpoint.self
] }
public var kind: String { __data["kind"] }
public var url: String? { __data["url"] }
}
/// Workspace.ByokSettings.Profile.Definition.Model
///
/// Parent Type: `WorkspaceByokModelDeclarationType`
public struct Model: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelDeclarationType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("modelId", String.self),
.field("capabilities", [Capability].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Model.self
] }
public var modelId: String { __data["modelId"] }
public var capabilities: [Capability] { __data["capabilities"] }
/// Workspace.ByokSettings.Profile.Definition.Model.Capability
///
/// Parent Type: `WorkspaceByokCapabilityType`
public struct Capability: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCapabilityType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("input", [String].self),
.field("output", [String].self),
.field("features", [String].self),
.field("attachmentKinds", [String].self),
.field("attachmentSources", [String].self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Model.Capability.self
] }
public var input: [String] { __data["input"] }
public var output: [String] { __data["output"] }
public var features: [String] { __data["features"] }
public var attachmentKinds: [String] { __data["attachmentKinds"] }
public var attachmentSources: [String] { __data["attachmentSources"] }
}
}
}
/// Workspace.ByokSettings.Profile.Probe
///
/// Parent Type: `WorkspaceByokProbeType`
public struct Probe: AffineGraphQL.SelectionSet {
public let __data: DataDict
public init(_dataDict: DataDict) { __data = _dataDict }
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeType }
public static var __selections: [ApolloAPI.Selection] { [
.field("__typename", String.self),
.field("kind", String.self),
.field("testedAt", AffineGraphQL.DateTime?.self),
.field("errorKind", String?.self),
] }
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Probe.self
] }
public var kind: String { __data["kind"] }
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
public var errorKind: String? { __data["errorKind"] }
}
}
}
@@ -0,0 +1,10 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum AdminWorkspaceMemberRole: String, EnumType {
case admin = "Admin"
case collaborator = "Collaborator"
case owner = "Owner"
}
@@ -1,9 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum ByokKeyStorage: String, EnumType {
case local = "local"
case server = "server"
}
@@ -1,10 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum ByokKeyTestStatus: String, EnumType {
case failed = "failed"
case passed = "passed"
case untested = "untested"
}
@@ -5,11 +5,4 @@ import ApolloAPI
public enum FeatureType: String, EnumType {
case admin = "Admin"
case freePlan = "FreePlan"
case lifetimeProPlan = "LifetimeProPlan"
case proPlan = "ProPlan"
case quotaExceededReadonlyWorkspace = "QuotaExceededReadonlyWorkspace"
case teamPlan = "TeamPlan"
case unlimitedCopilot = "UnlimitedCopilot"
case unlimitedWorkspace = "UnlimitedWorkspace"
}
@@ -0,0 +1,9 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum McpAccessMode: String, EnumType {
case readOnly = "READ_ONLY"
case readWrite = "READ_WRITE"
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public enum McpCredentialStatus: String, EnumType {
case active = "ACTIVE"
case expired = "EXPIRED"
case expiring = "EXPIRING"
case revoked = "REVOKED"
case rotating = "ROTATING"
}
@@ -5,5 +5,6 @@ import ApolloAPI
public enum TimeBucket: String, EnumType {
case day = "Day"
case hour = "Hour"
case minute = "Minute"
}
@@ -11,12 +11,14 @@ public struct AdminDashboardInput: InputObject {
}
public init(
copilotWindowDays: GraphQLNullable<Int> = nil,
sharedLinkWindowDays: GraphQLNullable<Int> = nil,
storageHistoryDays: GraphQLNullable<Int> = nil,
syncHistoryHours: GraphQLNullable<Int> = nil,
timezone: GraphQLNullable<String> = nil
) {
__data = InputDict([
"copilotWindowDays": copilotWindowDays,
"sharedLinkWindowDays": sharedLinkWindowDays,
"storageHistoryDays": storageHistoryDays,
"syncHistoryHours": syncHistoryHours,
@@ -24,6 +26,11 @@ public struct AdminDashboardInput: InputObject {
])
}
public var copilotWindowDays: GraphQLNullable<Int> {
get { __data["copilotWindowDays"] }
set { __data["copilotWindowDays"] = newValue }
}
public var sharedLinkWindowDays: GraphQLNullable<Int> {
get { __data["sharedLinkWindowDays"] }
set { __data["sharedLinkWindowDays"] = newValue }
@@ -0,0 +1,25 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct AdminMailDeliveriesInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
hours: Int? = nil
) {
__data = InputDict([
"hours": hours
])
}
public var hours: Int? {
get { __data["hours"] }
set { __data["hours"] = newValue }
}
}
@@ -0,0 +1,46 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct CreateMcpCredentialInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
accessMode: GraphQLEnum<McpAccessMode>? = nil,
expirationDays: Int? = nil,
name: String,
workspaceId: String
) {
__data = InputDict([
"accessMode": accessMode,
"expirationDays": expirationDays,
"name": name,
"workspaceId": workspaceId
])
}
public var accessMode: GraphQLEnum<McpAccessMode>? {
get { __data["accessMode"] }
set { __data["accessMode"] = newValue }
}
public var expirationDays: Int? {
get { __data["expirationDays"] }
set { __data["expirationDays"] = newValue }
}
public var name: String {
get { __data["name"] }
set { __data["name"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
}
}
@@ -11,28 +11,31 @@ public struct CreateWorkspaceByokLocalLeaseProviderInput: InputObject {
}
public init(
apiKey: String,
credential: String,
definition: WorkspaceByokProfileDefinitionInput,
description: GraphQLNullable<String> = nil,
enabled: GraphQLNullable<Bool> = nil,
endpoint: GraphQLNullable<String> = nil,
enabled: Bool,
name: String,
provider: GraphQLEnum<ByokProvider>,
sortOrder: GraphQLNullable<SafeInt> = nil
provider: GraphQLEnum<ByokProvider>
) {
__data = InputDict([
"apiKey": apiKey,
"credential": credential,
"definition": definition,
"description": description,
"enabled": enabled,
"endpoint": endpoint,
"name": name,
"provider": provider,
"sortOrder": sortOrder
"provider": provider
])
}
public var apiKey: String {
get { __data["apiKey"] }
set { __data["apiKey"] = newValue }
public var credential: String {
get { __data["credential"] }
set { __data["credential"] = newValue }
}
public var definition: WorkspaceByokProfileDefinitionInput {
get { __data["definition"] }
set { __data["definition"] = newValue }
}
public var description: GraphQLNullable<String> {
@@ -40,16 +43,11 @@ public struct CreateWorkspaceByokLocalLeaseProviderInput: InputObject {
set { __data["description"] = newValue }
}
public var enabled: GraphQLNullable<Bool> {
public var enabled: Bool {
get { __data["enabled"] }
set { __data["enabled"] = newValue }
}
public var endpoint: GraphQLNullable<String> {
get { __data["endpoint"] }
set { __data["endpoint"] = newValue }
}
public var name: String {
get { __data["name"] }
set { __data["name"] = newValue }
@@ -59,9 +57,4 @@ public struct CreateWorkspaceByokLocalLeaseProviderInput: InputObject {
get { __data["provider"] }
set { __data["provider"] = newValue }
}
public var sortOrder: GraphQLNullable<SafeInt> {
get { __data["sortOrder"] }
set { __data["sortOrder"] = newValue }
}
}
@@ -3,7 +3,7 @@
import ApolloAPI
public struct UpsertWorkspaceByokConfigInput: InputObject {
public struct CreateWorkspaceByokProfileInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
@@ -11,34 +11,33 @@ public struct UpsertWorkspaceByokConfigInput: InputObject {
}
public init(
apiKey: GraphQLNullable<String> = nil,
credential: String,
definition: WorkspaceByokProfileDefinitionInput,
description: GraphQLNullable<String> = nil,
enabled: GraphQLNullable<Bool> = nil,
endpoint: GraphQLNullable<String> = nil,
id: GraphQLNullable<ID> = nil,
enabled: Bool,
name: String,
provider: GraphQLEnum<ByokProvider>,
sortOrder: GraphQLNullable<SafeInt> = nil,
storage: GraphQLEnum<ByokKeyStorage>,
workspaceId: String
) {
__data = InputDict([
"apiKey": apiKey,
"credential": credential,
"definition": definition,
"description": description,
"enabled": enabled,
"endpoint": endpoint,
"id": id,
"name": name,
"provider": provider,
"sortOrder": sortOrder,
"storage": storage,
"workspaceId": workspaceId
])
}
public var apiKey: GraphQLNullable<String> {
get { __data["apiKey"] }
set { __data["apiKey"] = newValue }
public var credential: String {
get { __data["credential"] }
set { __data["credential"] = newValue }
}
public var definition: WorkspaceByokProfileDefinitionInput {
get { __data["definition"] }
set { __data["definition"] = newValue }
}
public var description: GraphQLNullable<String> {
@@ -46,21 +45,11 @@ public struct UpsertWorkspaceByokConfigInput: InputObject {
set { __data["description"] = newValue }
}
public var enabled: GraphQLNullable<Bool> {
public var enabled: Bool {
get { __data["enabled"] }
set { __data["enabled"] = newValue }
}
public var endpoint: GraphQLNullable<String> {
get { __data["endpoint"] }
set { __data["endpoint"] = newValue }
}
public var id: GraphQLNullable<ID> {
get { __data["id"] }
set { __data["id"] = newValue }
}
public var name: String {
get { __data["name"] }
set { __data["name"] = newValue }
@@ -71,16 +60,6 @@ public struct UpsertWorkspaceByokConfigInput: InputObject {
set { __data["provider"] = newValue }
}
public var sortOrder: GraphQLNullable<SafeInt> {
get { __data["sortOrder"] }
set { __data["sortOrder"] = newValue }
}
public var storage: GraphQLEnum<ByokKeyStorage> {
get { __data["storage"] }
set { __data["storage"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
@@ -1,32 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct GenerateAccessTokenInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
expiresAt: GraphQLNullable<DateTime> = nil,
name: String
) {
__data = InputDict([
"expiresAt": expiresAt,
"name": name
])
}
public var expiresAt: GraphQLNullable<DateTime> {
get { __data["expiresAt"] }
set { __data["expiresAt"] = newValue }
}
public var name: String {
get { __data["name"] }
set { __data["name"] = newValue }
}
}
@@ -15,7 +15,6 @@ public struct ListWorkspaceInput: InputObject {
enableDocEmbedding: GraphQLNullable<Bool> = nil,
enableSharing: GraphQLNullable<Bool> = nil,
enableUrlPreview: GraphQLNullable<Bool> = nil,
features: GraphQLNullable<[GraphQLEnum<FeatureType>]> = nil,
first: Int? = nil,
keyword: GraphQLNullable<String> = nil,
orderBy: GraphQLNullable<GraphQLEnum<AdminWorkspaceSort>> = nil,
@@ -27,7 +26,6 @@ public struct ListWorkspaceInput: InputObject {
"enableDocEmbedding": enableDocEmbedding,
"enableSharing": enableSharing,
"enableUrlPreview": enableUrlPreview,
"features": features,
"first": first,
"keyword": keyword,
"orderBy": orderBy,
@@ -56,11 +54,6 @@ public struct ListWorkspaceInput: InputObject {
set { __data["enableUrlPreview"] = newValue }
}
public var features: GraphQLNullable<[GraphQLEnum<FeatureType>]> {
get { __data["features"] }
set { __data["features"] = newValue }
}
public var first: Int? {
get { __data["first"] }
set { __data["first"] = newValue }
@@ -0,0 +1,60 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct ReplaceWorkspaceByokProfileInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
definition: WorkspaceByokProfileDefinitionInput,
description: GraphQLNullable<String> = nil,
enabled: Bool,
name: String,
profileId: ID,
workspaceId: String
) {
__data = InputDict([
"definition": definition,
"description": description,
"enabled": enabled,
"name": name,
"profileId": profileId,
"workspaceId": workspaceId
])
}
public var definition: WorkspaceByokProfileDefinitionInput {
get { __data["definition"] }
set { __data["definition"] = newValue }
}
public var description: GraphQLNullable<String> {
get { __data["description"] }
set { __data["description"] = newValue }
}
public var enabled: Bool {
get { __data["enabled"] }
set { __data["enabled"] = newValue }
}
public var name: String {
get { __data["name"] }
set { __data["name"] = newValue }
}
public var profileId: ID {
get { __data["profileId"] }
set { __data["profileId"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
}
}
@@ -3,7 +3,7 @@
import ApolloAPI
public struct ReorderWorkspaceByokConfigsInput: InputObject {
public struct RotateWorkspaceByokCredentialInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
@@ -11,25 +11,25 @@ public struct ReorderWorkspaceByokConfigsInput: InputObject {
}
public init(
ids: [ID],
storage: GraphQLEnum<ByokKeyStorage>,
credential: String,
profileId: ID,
workspaceId: String
) {
__data = InputDict([
"ids": ids,
"storage": storage,
"credential": credential,
"profileId": profileId,
"workspaceId": workspaceId
])
}
public var ids: [ID] {
get { __data["ids"] }
set { __data["ids"] = newValue }
public var credential: String {
get { __data["credential"] }
set { __data["credential"] = newValue }
}
public var storage: GraphQLEnum<ByokKeyStorage> {
get { __data["storage"] }
set { __data["storage"] = newValue }
public var profileId: ID {
get { __data["profileId"] }
set { __data["profileId"] = newValue }
}
public var workspaceId: String {
@@ -13,14 +13,12 @@ public struct SubmitAudioTranscriptionInput: InputObject {
public init(
quality: GraphQLNullable<TranscriptionQualityInput> = nil,
sliceManifest: GraphQLNullable<[AudioSliceManifestItemInput]> = nil,
sourceAudio: GraphQLNullable<TranscriptionSourceAudioInput> = nil,
strategy: GraphQLNullable<String> = nil
sourceAudio: GraphQLNullable<TranscriptionSourceAudioInput> = nil
) {
__data = InputDict([
"quality": quality,
"sliceManifest": sliceManifest,
"sourceAudio": sourceAudio,
"strategy": strategy
"sourceAudio": sourceAudio
])
}
@@ -38,9 +36,4 @@ public struct SubmitAudioTranscriptionInput: InputObject {
get { __data["sourceAudio"] }
set { __data["sourceAudio"] = newValue }
}
public var strategy: GraphQLNullable<String> {
get { __data["strategy"] }
set { __data["strategy"] = newValue }
}
}
@@ -1,60 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct TestWorkspaceByokConfigInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
apiKey: GraphQLNullable<String> = nil,
configId: GraphQLNullable<ID> = nil,
endpoint: GraphQLNullable<String> = nil,
provider: GraphQLEnum<ByokProvider>,
storage: GraphQLEnum<ByokKeyStorage>,
workspaceId: String
) {
__data = InputDict([
"apiKey": apiKey,
"configId": configId,
"endpoint": endpoint,
"provider": provider,
"storage": storage,
"workspaceId": workspaceId
])
}
public var apiKey: GraphQLNullable<String> {
get { __data["apiKey"] }
set { __data["apiKey"] = newValue }
}
public var configId: GraphQLNullable<ID> {
get { __data["configId"] }
set { __data["configId"] = newValue }
}
public var endpoint: GraphQLNullable<String> {
get { __data["endpoint"] }
set { __data["endpoint"] = newValue }
}
public var provider: GraphQLEnum<ByokProvider> {
get { __data["provider"] }
set { __data["provider"] = newValue }
}
public var storage: GraphQLEnum<ByokKeyStorage> {
get { __data["storage"] }
set { __data["storage"] = newValue }
}
public var workspaceId: String {
get { __data["workspaceId"] }
set { __data["workspaceId"] = newValue }
}
}
@@ -0,0 +1,53 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct WorkspaceByokCapabilityInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
attachmentKinds: [String],
attachmentSources: [String],
features: [String],
input: [String],
output: [String]
) {
__data = InputDict([
"attachmentKinds": attachmentKinds,
"attachmentSources": attachmentSources,
"features": features,
"input": input,
"output": output
])
}
public var attachmentKinds: [String] {
get { __data["attachmentKinds"] }
set { __data["attachmentKinds"] = newValue }
}
public var attachmentSources: [String] {
get { __data["attachmentSources"] }
set { __data["attachmentSources"] = newValue }
}
public var features: [String] {
get { __data["features"] }
set { __data["features"] = newValue }
}
public var input: [String] {
get { __data["input"] }
set { __data["input"] = newValue }
}
public var output: [String] {
get { __data["output"] }
set { __data["output"] = newValue }
}
}
@@ -0,0 +1,32 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct WorkspaceByokEndpointInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
kind: String,
url: GraphQLNullable<String> = nil
) {
__data = InputDict([
"kind": kind,
"url": url
])
}
public var kind: String {
get { __data["kind"] }
set { __data["kind"] = newValue }
}
public var url: GraphQLNullable<String> {
get { __data["url"] }
set { __data["url"] = newValue }
}
}
@@ -0,0 +1,32 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct WorkspaceByokModelDeclarationInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
capabilities: [WorkspaceByokCapabilityInput],
modelId: String
) {
__data = InputDict([
"capabilities": capabilities,
"modelId": modelId
])
}
public var capabilities: [WorkspaceByokCapabilityInput] {
get { __data["capabilities"] }
set { __data["capabilities"] = newValue }
}
public var modelId: String {
get { __data["modelId"] }
set { __data["modelId"] = newValue }
}
}
@@ -0,0 +1,39 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public struct WorkspaceByokProfileDefinitionInput: InputObject {
public private(set) var __data: InputDict
public init(_ data: InputDict) {
__data = data
}
public init(
endpoint: WorkspaceByokEndpointInput,
models: [WorkspaceByokModelDeclarationInput],
version: SafeInt
) {
__data = InputDict([
"endpoint": endpoint,
"models": models,
"version": version
])
}
public var endpoint: WorkspaceByokEndpointInput {
get { __data["endpoint"] }
set { __data["endpoint"] = newValue }
}
public var models: [WorkspaceByokModelDeclarationInput] {
get { __data["models"] }
set { __data["models"] = newValue }
}
public var version: SafeInt {
get { __data["version"] }
set { __data["version"] = newValue }
}
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let AdminMailDeliveryAnalytics = ApolloAPI.Object(
typename: "AdminMailDeliveryAnalytics",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let AdminMailDeliveryPoint = ApolloAPI.Object(
typename: "AdminMailDeliveryPoint",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let AdminMailDeliverySeries = ApolloAPI.Object(
typename: "AdminMailDeliverySeries",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let AdminMailDeliverySummary = ApolloAPI.Object(
typename: "AdminMailDeliverySummary",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let CopilotModelType = ApolloAPI.Object(
typename: "CopilotModelType",
static let AuthSigningKeyType = ApolloAPI.Object(
typename: "AuthSigningKeyType",
implementedInterfaces: [],
keyFields: nil
)
@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let RevealedAccessToken = ApolloAPI.Object(
typename: "RevealedAccessToken",
static let CopilotRouteOptions = ApolloAPI.Object(
typename: "CopilotRouteOptions",
implementedInterfaces: [],
keyFields: nil
)
@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let CopilotModelsType = ApolloAPI.Object(
typename: "CopilotModelsType",
static let CopilotRouteTarget = ApolloAPI.Object(
typename: "CopilotRouteTarget",
implementedInterfaces: [],
keyFields: nil
)
@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let TokenType = ApolloAPI.Object(
typename: "tokenType",
static let McpCredentialType = ApolloAPI.Object(
typename: "McpCredentialType",
implementedInterfaces: [],
keyFields: nil
)
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let RevealedMcpCredentialType = ApolloAPI.Object(
typename: "RevealedMcpCredentialType",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let WorkspaceByokCapabilityType = ApolloAPI.Object(
typename: "WorkspaceByokCapabilityType",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let WorkspaceByokEndpointType = ApolloAPI.Object(
typename: "WorkspaceByokEndpointType",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -1,12 +0,0 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let WorkspaceByokKeyConfigType = ApolloAPI.Object(
typename: "WorkspaceByokKeyConfigType",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let TestWorkspaceByokConfigResultType = ApolloAPI.Object(
typename: "TestWorkspaceByokConfigResultType",
static let WorkspaceByokModelDeclarationType = ApolloAPI.Object(
typename: "WorkspaceByokModelDeclarationType",
implementedInterfaces: [],
keyFields: nil
)
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let WorkspaceByokProbeType = ApolloAPI.Object(
typename: "WorkspaceByokProbeType",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -4,8 +4,8 @@
import ApolloAPI
public extension Objects {
static let WorkspaceByokCapabilityWarningType = ApolloAPI.Object(
typename: "WorkspaceByokCapabilityWarningType",
static let WorkspaceByokProfileDefinitionType = ApolloAPI.Object(
typename: "WorkspaceByokProfileDefinitionType",
implementedInterfaces: [],
keyFields: nil
)
@@ -0,0 +1,12 @@
// @generated
// This file was automatically generated and should not be edited.
import ApolloAPI
public extension Objects {
static let WorkspaceByokProfileType = ApolloAPI.Object(
typename: "WorkspaceByokProfileType",
implementedInterfaces: [],
keyFields: nil
)
}
@@ -25,6 +25,10 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"AdminDashboardMinutePoint": AffineGraphQL.Objects.AdminDashboardMinutePoint,
"AdminDashboardValueDayPoint": AffineGraphQL.Objects.AdminDashboardValueDayPoint,
"AdminLicensePreview": AffineGraphQL.Objects.AdminLicensePreview,
"AdminMailDeliveryAnalytics": AffineGraphQL.Objects.AdminMailDeliveryAnalytics,
"AdminMailDeliveryPoint": AffineGraphQL.Objects.AdminMailDeliveryPoint,
"AdminMailDeliverySeries": AffineGraphQL.Objects.AdminMailDeliverySeries,
"AdminMailDeliverySummary": AffineGraphQL.Objects.AdminMailDeliverySummary,
"AdminSharedLinkTopItem": AffineGraphQL.Objects.AdminSharedLinkTopItem,
"AdminWorkspace": AffineGraphQL.Objects.AdminWorkspace,
"AdminWorkspaceMember": AffineGraphQL.Objects.AdminWorkspaceMember,
@@ -34,6 +38,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"AggregateResultObjectType": AffineGraphQL.Objects.AggregateResultObjectType,
"AppConfigValidateResult": AffineGraphQL.Objects.AppConfigValidateResult,
"AudioSliceManifestItemType": AffineGraphQL.Objects.AudioSliceManifestItemType,
"AuthSigningKeyType": AffineGraphQL.Objects.AuthSigningKeyType,
"BlobUploadInit": AffineGraphQL.Objects.BlobUploadInit,
"BlobUploadPart": AffineGraphQL.Objects.BlobUploadPart,
"BlobUploadedPart": AffineGraphQL.Objects.BlobUploadedPart,
@@ -56,9 +61,9 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"CopilotContextFile": AffineGraphQL.Objects.CopilotContextFile,
"CopilotHistories": AffineGraphQL.Objects.CopilotHistories,
"CopilotHistoriesTypeEdge": AffineGraphQL.Objects.CopilotHistoriesTypeEdge,
"CopilotModelType": AffineGraphQL.Objects.CopilotModelType,
"CopilotModelsType": AffineGraphQL.Objects.CopilotModelsType,
"CopilotQuota": AffineGraphQL.Objects.CopilotQuota,
"CopilotRouteOptions": AffineGraphQL.Objects.CopilotRouteOptions,
"CopilotRouteTarget": AffineGraphQL.Objects.CopilotRouteTarget,
"CopilotWorkspaceConfig": AffineGraphQL.Objects.CopilotWorkspaceConfig,
"CopilotWorkspaceFile": AffineGraphQL.Objects.CopilotWorkspaceFile,
"CopilotWorkspaceFileTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceFileTypeEdge,
@@ -85,6 +90,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"License": AffineGraphQL.Objects.License,
"LimitedUserType": AffineGraphQL.Objects.LimitedUserType,
"ListedBlob": AffineGraphQL.Objects.ListedBlob,
"McpCredentialType": AffineGraphQL.Objects.McpCredentialType,
"MeetingActionItemType": AffineGraphQL.Objects.MeetingActionItemType,
"MeetingSummaryV2Type": AffineGraphQL.Objects.MeetingSummaryV2Type,
"Mutation": AffineGraphQL.Objects.Mutation,
@@ -107,7 +113,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"ReleaseVersionType": AffineGraphQL.Objects.ReleaseVersionType,
"RemoveAvatar": AffineGraphQL.Objects.RemoveAvatar,
"ReplyObjectType": AffineGraphQL.Objects.ReplyObjectType,
"RevealedAccessToken": AffineGraphQL.Objects.RevealedAccessToken,
"RevealedMcpCredentialType": AffineGraphQL.Objects.RevealedMcpCredentialType,
"SearchDocObjectType": AffineGraphQL.Objects.SearchDocObjectType,
"SearchNodeObjectType": AffineGraphQL.Objects.SearchNodeObjectType,
"SearchResultObjectType": AffineGraphQL.Objects.SearchResultObjectType,
@@ -116,7 +122,6 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"StreamObject": AffineGraphQL.Objects.StreamObject,
"SubscriptionPrice": AffineGraphQL.Objects.SubscriptionPrice,
"SubscriptionType": AffineGraphQL.Objects.SubscriptionType,
"TestWorkspaceByokConfigResultType": AffineGraphQL.Objects.TestWorkspaceByokConfigResultType,
"TimeWindow": AffineGraphQL.Objects.TimeWindow,
"TranscriptionItemType": AffineGraphQL.Objects.TranscriptionItemType,
"TranscriptionQualityType": AffineGraphQL.Objects.TranscriptionQualityType,
@@ -128,8 +133,12 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"UserQuotaUsageType": AffineGraphQL.Objects.UserQuotaUsageType,
"UserSettingsType": AffineGraphQL.Objects.UserSettingsType,
"UserType": AffineGraphQL.Objects.UserType,
"WorkspaceByokCapabilityWarningType": AffineGraphQL.Objects.WorkspaceByokCapabilityWarningType,
"WorkspaceByokKeyConfigType": AffineGraphQL.Objects.WorkspaceByokKeyConfigType,
"WorkspaceByokCapabilityType": AffineGraphQL.Objects.WorkspaceByokCapabilityType,
"WorkspaceByokEndpointType": AffineGraphQL.Objects.WorkspaceByokEndpointType,
"WorkspaceByokModelDeclarationType": AffineGraphQL.Objects.WorkspaceByokModelDeclarationType,
"WorkspaceByokProbeType": AffineGraphQL.Objects.WorkspaceByokProbeType,
"WorkspaceByokProfileDefinitionType": AffineGraphQL.Objects.WorkspaceByokProfileDefinitionType,
"WorkspaceByokProfileType": AffineGraphQL.Objects.WorkspaceByokProfileType,
"WorkspaceByokSettingsType": AffineGraphQL.Objects.WorkspaceByokSettingsType,
"WorkspaceByokUsagePointType": AffineGraphQL.Objects.WorkspaceByokUsagePointType,
"WorkspaceCalendarItemObjectType": AffineGraphQL.Objects.WorkspaceCalendarItemObjectType,
@@ -140,8 +149,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
"WorkspaceQuotaType": AffineGraphQL.Objects.WorkspaceQuotaType,
"WorkspaceRolePermissions": AffineGraphQL.Objects.WorkspaceRolePermissions,
"WorkspaceType": AffineGraphQL.Objects.WorkspaceType,
"WorkspaceUserType": AffineGraphQL.Objects.WorkspaceUserType,
"tokenType": AffineGraphQL.Objects.TokenType
"WorkspaceUserType": AffineGraphQL.Objects.WorkspaceUserType
]
public static func objectType(forTypename typename: String) -> ApolloAPI.Object? {