mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 07:17:00 +08:00
chore(ios): optimize build workflow (#11132)
This commit is contained in:
@@ -35,6 +35,7 @@ public class AcceptInviteByInviteIdMutation: GraphQLMutation {
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
#warning("Argument 'sendAcceptMail' of field 'acceptInviteById' is deprecated. Reason: 'never used'")
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("acceptInviteById", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ActivateLicenseMutation: GraphQLMutation {
|
||||
public static let operationName: String = "activateLicense"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation activateLicense($workspaceId: String!, $license: String!) { activateLicense(workspaceId: $workspaceId, license: $license) { __typename installedAt validatedAt } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var license: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
license: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.license = license
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"license": license
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("activateLicense", ActivateLicense.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"license": .variable("license")
|
||||
]),
|
||||
] }
|
||||
|
||||
public var activateLicense: ActivateLicense { __data["activateLicense"] }
|
||||
|
||||
/// ActivateLicense
|
||||
///
|
||||
/// Parent Type: `License`
|
||||
public struct ActivateLicense: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.License }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("installedAt", AffineGraphQL.DateTime.self),
|
||||
.field("validatedAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
|
||||
public var installedAt: AffineGraphQL.DateTime { __data["installedAt"] }
|
||||
public var validatedAt: AffineGraphQL.DateTime { __data["validatedAt"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextCategoryMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextCategory"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextCategory($options: AddContextCategoryInput!) { addContextCategory(options: $options) { __typename id createdAt type docs { __typename id createdAt status } } }"#
|
||||
))
|
||||
|
||||
public var options: AddContextCategoryInput
|
||||
|
||||
public init(options: AddContextCategoryInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextCategory", AddContextCategory.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
|
||||
/// add a category to context
|
||||
public var addContextCategory: AddContextCategory { __data["addContextCategory"] }
|
||||
|
||||
/// AddContextCategory
|
||||
///
|
||||
/// Parent Type: `CopilotContextCategory`
|
||||
public struct AddContextCategory: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextCategory }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ContextCategories>.self),
|
||||
.field("docs", [Doc].self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var type: GraphQLEnum<AffineGraphQL.ContextCategories> { __data["type"] }
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
|
||||
/// AddContextCategory.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotDocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotDocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextDocMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextDoc"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextDoc($options: AddContextDocInput!) { addContextDoc(options: $options) { __typename id createdAt status error } }"#
|
||||
))
|
||||
|
||||
public var options: AddContextDocInput
|
||||
|
||||
public init(options: AddContextDocInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextDoc", AddContextDoc.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
|
||||
/// add a doc to context
|
||||
public var addContextDoc: AddContextDoc { __data["addContextDoc"] }
|
||||
|
||||
/// AddContextDoc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct AddContextDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("error", String?.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var error: String? { __data["error"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextFileMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextFile"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextFile($content: Upload!, $options: AddContextFileInput!) { addContextFile(content: $content, options: $options) { __typename id createdAt name chunkSize error status blobId } }"#
|
||||
))
|
||||
|
||||
public var content: Upload
|
||||
public var options: AddContextFileInput
|
||||
|
||||
public init(
|
||||
content: Upload,
|
||||
options: AddContextFileInput
|
||||
) {
|
||||
self.content = content
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"content": content,
|
||||
"options": options
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextFile", AddContextFile.self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"options": .variable("options")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// add a file to context
|
||||
public var addContextFile: AddContextFile { __data["addContextFile"] }
|
||||
|
||||
/// AddContextFile
|
||||
///
|
||||
/// Parent Type: `CopilotContextFile`
|
||||
public struct AddContextFile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextFile }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("name", String.self),
|
||||
.field("chunkSize", AffineGraphQL.SafeInt.self),
|
||||
.field("error", String?.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>.self),
|
||||
.field("blobId", String.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var chunkSize: AffineGraphQL.SafeInt { __data["chunkSize"] }
|
||||
public var error: String? { __data["error"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus> { __data["status"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,12 +32,12 @@ public class ApproveWorkspaceTeamMemberMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("approveMember", String.self, arguments: [
|
||||
.field("approveMember", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"userId": .variable("userId")
|
||||
]),
|
||||
] }
|
||||
|
||||
public var approveMember: String { __data["approveMember"] }
|
||||
public var approveMember: Bool { __data["approveMember"] }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ClaimAudioTranscriptionMutation: GraphQLMutation {
|
||||
public static let operationName: String = "claimAudioTranscription"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation claimAudioTranscription($jobId: String!) { claimAudioTranscription(jobId: $jobId) { __typename id status transcription { __typename speaker start end transcription } summary } }"#
|
||||
))
|
||||
|
||||
public var jobId: String
|
||||
|
||||
public init(jobId: String) {
|
||||
self.jobId = jobId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["jobId": jobId] }
|
||||
|
||||
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("claimAudioTranscription", ClaimAudioTranscription?.self, arguments: ["jobId": .variable("jobId")]),
|
||||
] }
|
||||
|
||||
public var claimAudioTranscription: ClaimAudioTranscription? { __data["claimAudioTranscription"] }
|
||||
|
||||
/// ClaimAudioTranscription
|
||||
///
|
||||
/// Parent Type: `TranscriptionResultType`
|
||||
public struct ClaimAudioTranscription: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.AiJobStatus>.self),
|
||||
.field("transcription", [Transcription]?.self),
|
||||
.field("summary", String?.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.AiJobStatus> { __data["status"] }
|
||||
public var transcription: [Transcription]? { __data["transcription"] }
|
||||
public var summary: String? { __data["summary"] }
|
||||
|
||||
/// ClaimAudioTranscription.Transcription
|
||||
///
|
||||
/// Parent Type: `TranscriptionItemType`
|
||||
public struct Transcription: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionItemType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("speaker", String.self),
|
||||
.field("start", String.self),
|
||||
.field("end", String.self),
|
||||
.field("transcription", String.self),
|
||||
] }
|
||||
|
||||
public var speaker: String { __data["speaker"] }
|
||||
public var start: String { __data["start"] }
|
||||
public var end: String { __data["end"] }
|
||||
public var transcription: String { __data["transcription"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class CreateCopilotContextMutation: GraphQLMutation {
|
||||
public static let operationName: String = "createCopilotContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation createCopilotContext($workspaceId: String!, $sessionId: String!) { createCopilotContext(workspaceId: $workspaceId, sessionId: $sessionId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var sessionId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
sessionId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.sessionId = sessionId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"sessionId": sessionId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("createCopilotContext", String.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"sessionId": .variable("sessionId")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// Create a context session
|
||||
public var createCopilotContext: String { __data["createCopilotContext"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class CreateSelfhostCustomerPortalMutation: GraphQLMutation {
|
||||
public static let operationName: String = "createSelfhostCustomerPortal"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation createSelfhostCustomerPortal($workspaceId: String!) { createSelfhostWorkspaceCustomerPortal(workspaceId: $workspaceId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
|
||||
public init(workspaceId: String) {
|
||||
self.workspaceId = workspaceId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["workspaceId": workspaceId] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("createSelfhostWorkspaceCustomerPortal", String.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
public var createSelfhostWorkspaceCustomerPortal: String { __data["createSelfhostWorkspaceCustomerPortal"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class DeactivateLicenseMutation: GraphQLMutation {
|
||||
public static let operationName: String = "deactivateLicense"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation deactivateLicense($workspaceId: String!) { deactivateLicense(workspaceId: $workspaceId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
|
||||
public init(workspaceId: String) {
|
||||
self.workspaceId = workspaceId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["workspaceId": workspaceId] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("deactivateLicense", Bool.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
public var deactivateLicense: Bool { __data["deactivateLicense"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class DisableUserMutation: GraphQLMutation {
|
||||
public static let operationName: String = "disableUser"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation disableUser($id: String!) { banUser(id: $id) { __typename email disabled } }"#
|
||||
))
|
||||
|
||||
public var id: String
|
||||
|
||||
public init(id: String) {
|
||||
self.id = id
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["id": id] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("banUser", BanUser.self, arguments: ["id": .variable("id")]),
|
||||
] }
|
||||
|
||||
/// Ban an user
|
||||
public var banUser: BanUser { __data["banUser"] }
|
||||
|
||||
/// BanUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct BanUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("email", String.self),
|
||||
.field("disabled", Bool.self),
|
||||
] }
|
||||
|
||||
/// User email
|
||||
public var email: String { __data["email"] }
|
||||
/// User is disabled
|
||||
public var disabled: Bool { __data["disabled"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class EnableUserMutation: GraphQLMutation {
|
||||
public static let operationName: String = "enableUser"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation enableUser($id: String!) { enableUser(id: $id) { __typename email disabled } }"#
|
||||
))
|
||||
|
||||
public var id: String
|
||||
|
||||
public init(id: String) {
|
||||
self.id = id
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["id": id] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("enableUser", EnableUser.self, arguments: ["id": .variable("id")]),
|
||||
] }
|
||||
|
||||
/// Reenable an banned user
|
||||
public var enableUser: EnableUser { __data["enableUser"] }
|
||||
|
||||
/// EnableUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct EnableUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("email", String.self),
|
||||
.field("disabled", Bool.self),
|
||||
] }
|
||||
|
||||
/// User email
|
||||
public var email: String { __data["email"] }
|
||||
/// User is disabled
|
||||
public var disabled: Bool { __data["disabled"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GenerateLicenseKeyMutation: GraphQLMutation {
|
||||
public static let operationName: String = "generateLicenseKey"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation generateLicenseKey($sessionId: String!) { generateLicenseKey(sessionId: $sessionId) }"#
|
||||
))
|
||||
|
||||
public var sessionId: String
|
||||
|
||||
public init(sessionId: String) {
|
||||
self.sessionId = sessionId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["sessionId": sessionId] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("generateLicenseKey", String.self, arguments: ["sessionId": .variable("sessionId")]),
|
||||
] }
|
||||
|
||||
public var generateLicenseKey: String { __data["generateLicenseKey"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GrantDocUserRolesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "grantDocUserRoles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation grantDocUserRoles($input: GrantDocUserRolesInput!) { grantDocUserRoles(input: $input) }"#
|
||||
))
|
||||
|
||||
public var input: GrantDocUserRolesInput
|
||||
|
||||
public init(input: GrantDocUserRolesInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("grantDocUserRoles", Bool.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
public var grantDocUserRoles: Bool { __data["grantDocUserRoles"] }
|
||||
}
|
||||
}
|
||||
@@ -36,13 +36,13 @@ public class GrantWorkspaceTeamMemberMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("grantMember", String.self, arguments: [
|
||||
.field("grantMember", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"userId": .variable("userId"),
|
||||
"permission": .variable("permission")
|
||||
]),
|
||||
] }
|
||||
|
||||
public var grantMember: String { __data["grantMember"] }
|
||||
public var grantMember: Bool { __data["grantMember"] }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ImportUsersMutation: GraphQLMutation {
|
||||
public static let operationName: String = "ImportUsers"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation ImportUsers($input: ImportUsersInput!) { importUsers(input: $input) { __typename ... on UserType { id name email } ... on UserImportFailedType { email error } } }"#
|
||||
))
|
||||
|
||||
public var input: ImportUsersInput
|
||||
|
||||
public init(input: ImportUsersInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("importUsers", [ImportUser].self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
/// import users
|
||||
public var importUsers: [ImportUser] { __data["importUsers"] }
|
||||
|
||||
/// ImportUser
|
||||
///
|
||||
/// Parent Type: `UserImportResultType`
|
||||
public struct ImportUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Unions.UserImportResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.inlineFragment(AsUserType.self),
|
||||
.inlineFragment(AsUserImportFailedType.self),
|
||||
] }
|
||||
|
||||
public var asUserType: AsUserType? { _asInlineFragment() }
|
||||
public var asUserImportFailedType: AsUserImportFailedType? { _asInlineFragment() }
|
||||
|
||||
/// ImportUser.AsUserType
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct AsUserType: AffineGraphQL.InlineFragment {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public typealias RootEntityType = ImportUsersMutation.Data.ImportUser
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("name", String.self),
|
||||
.field("email", String.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
/// User name
|
||||
public var name: String { __data["name"] }
|
||||
/// User email
|
||||
public var email: String { __data["email"] }
|
||||
}
|
||||
|
||||
/// ImportUser.AsUserImportFailedType
|
||||
///
|
||||
/// Parent Type: `UserImportFailedType`
|
||||
public struct AsUserImportFailedType: AffineGraphQL.InlineFragment {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public typealias RootEntityType = ImportUsersMutation.Data.ImportUser
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserImportFailedType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("email", String.self),
|
||||
.field("error", String.self),
|
||||
] }
|
||||
|
||||
public var email: String { __data["email"] }
|
||||
public var error: String { __data["error"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,7 @@ public class InviteBatchMutation: GraphQLMutation {
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
#warning("Argument 'sendInviteMail' of field 'inviteBatch' is deprecated. Reason: 'never used'")
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("inviteBatch", [InviteBatch].self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
|
||||
@@ -35,6 +35,7 @@ public class InviteByEmailMutation: GraphQLMutation {
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
#warning("Argument 'sendInviteMail' of field 'invite' is deprecated. Reason: 'never used'")
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("invite", String.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
|
||||
@@ -35,6 +35,7 @@ public class InviteByEmailsMutation: GraphQLMutation {
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
#warning("Argument 'sendInviteMail' of field 'inviteBatch' is deprecated. Reason: 'never used'")
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("inviteBatch", [InviteBatch].self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MentionUserMutation: GraphQLMutation {
|
||||
public static let operationName: String = "mentionUser"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation mentionUser($input: MentionInput!) { mentionUser(input: $input) }"#
|
||||
))
|
||||
|
||||
public var input: MentionInput
|
||||
|
||||
public init(input: MentionInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("mentionUser", AffineGraphQL.ID.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
/// mention user in a doc
|
||||
public var mentionUser: AffineGraphQL.ID { __data["mentionUser"] }
|
||||
}
|
||||
}
|
||||
@@ -7,17 +7,17 @@ public class PublishPageMutation: GraphQLMutation {
|
||||
public static let operationName: String = "publishPage"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation publishPage($workspaceId: String!, $pageId: String!, $mode: PublicPageMode = Page) { publishPage(workspaceId: $workspaceId, pageId: $pageId, mode: $mode) { __typename id mode } }"#
|
||||
#"mutation publishPage($workspaceId: String!, $pageId: String!, $mode: PublicDocMode = Page) { publishDoc(workspaceId: $workspaceId, docId: $pageId, mode: $mode) { __typename id mode } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var pageId: String
|
||||
public var mode: GraphQLNullable<GraphQLEnum<PublicPageMode>>
|
||||
public var mode: GraphQLNullable<GraphQLEnum<PublicDocMode>>
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
pageId: String,
|
||||
mode: GraphQLNullable<GraphQLEnum<PublicPageMode>> = .init(.page)
|
||||
mode: GraphQLNullable<GraphQLEnum<PublicDocMode>> = .init(.page)
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.pageId = pageId
|
||||
@@ -36,31 +36,31 @@ public class PublishPageMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("publishPage", PublishPage.self, arguments: [
|
||||
.field("publishDoc", PublishDoc.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"pageId": .variable("pageId"),
|
||||
"docId": .variable("pageId"),
|
||||
"mode": .variable("mode")
|
||||
]),
|
||||
] }
|
||||
|
||||
public var publishPage: PublishPage { __data["publishPage"] }
|
||||
public var publishDoc: PublishDoc { __data["publishDoc"] }
|
||||
|
||||
/// PublishPage
|
||||
/// PublishDoc
|
||||
///
|
||||
/// Parent Type: `WorkspacePage`
|
||||
public struct PublishPage: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `DocType`
|
||||
public struct PublishDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspacePage }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", String.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicPageMode>.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicDocMode>.self),
|
||||
] }
|
||||
|
||||
public var id: String { __data["id"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicPageMode> { __data["mode"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicDocMode> { __data["mode"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class QueueWorkspaceEmbeddingMutation: GraphQLMutation {
|
||||
public static let operationName: String = "queueWorkspaceEmbedding"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation queueWorkspaceEmbedding($workspaceId: String!, $docId: [String!]!) { queueWorkspaceEmbedding(workspaceId: $workspaceId, docId: $docId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var docId: [String]
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
docId: [String]
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.docId = docId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"docId": docId
|
||||
] }
|
||||
|
||||
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("queueWorkspaceEmbedding", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"docId": .variable("docId")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// queue workspace doc embedding
|
||||
public var queueWorkspaceEmbedding: Bool { __data["queueWorkspaceEmbedding"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ReadNotificationMutation: GraphQLMutation {
|
||||
public static let operationName: String = "readNotification"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation readNotification($id: String!) { readNotification(id: $id) }"#
|
||||
))
|
||||
|
||||
public var id: String
|
||||
|
||||
public init(id: String) {
|
||||
self.id = id
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["id": id] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("readNotification", Bool.self, arguments: ["id": .variable("id")]),
|
||||
] }
|
||||
|
||||
/// mark notification as read
|
||||
public var readNotification: Bool { __data["readNotification"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextCategoryMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextCategory"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextCategory($options: RemoveContextCategoryInput!) { removeContextCategory(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextCategoryInput
|
||||
|
||||
public init(options: RemoveContextCategoryInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextCategory", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
|
||||
/// remove a category from context
|
||||
public var removeContextCategory: Bool { __data["removeContextCategory"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextDocMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextDoc"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextDoc($options: RemoveContextDocInput!) { removeContextDoc(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextDocInput
|
||||
|
||||
public init(options: RemoveContextDocInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextDoc", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
|
||||
/// remove a doc from context
|
||||
public var removeContextDoc: Bool { __data["removeContextDoc"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextFileMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextFile"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextFile($options: RemoveContextFileInput!) { removeContextFile(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextFileInput
|
||||
|
||||
public init(options: RemoveContextFileInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextFile", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
|
||||
/// remove a file from context
|
||||
public var removeContextFile: Bool { __data["removeContextFile"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RevokeDocUserRolesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "revokeDocUserRoles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation revokeDocUserRoles($input: RevokeDocUserRoleInput!) { revokeDocUserRoles(input: $input) }"#
|
||||
))
|
||||
|
||||
public var input: RevokeDocUserRoleInput
|
||||
|
||||
public init(input: RevokeDocUserRoleInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("revokeDocUserRoles", Bool.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
public var revokeDocUserRoles: Bool { __data["revokeDocUserRoles"] }
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public class RevokePublicPageMutation: GraphQLMutation {
|
||||
public static let operationName: String = "revokePublicPage"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation revokePublicPage($workspaceId: String!, $pageId: String!) { revokePublicPage(workspaceId: $workspaceId, pageId: $pageId) { __typename id mode public } }"#
|
||||
#"mutation revokePublicPage($workspaceId: String!, $pageId: String!) { revokePublicDoc(workspaceId: $workspaceId, docId: $pageId) { __typename id mode public } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -32,31 +32,31 @@ public class RevokePublicPageMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("revokePublicPage", RevokePublicPage.self, arguments: [
|
||||
.field("revokePublicDoc", RevokePublicDoc.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"pageId": .variable("pageId")
|
||||
"docId": .variable("pageId")
|
||||
]),
|
||||
] }
|
||||
|
||||
public var revokePublicPage: RevokePublicPage { __data["revokePublicPage"] }
|
||||
public var revokePublicDoc: RevokePublicDoc { __data["revokePublicDoc"] }
|
||||
|
||||
/// RevokePublicPage
|
||||
/// RevokePublicDoc
|
||||
///
|
||||
/// Parent Type: `WorkspacePage`
|
||||
public struct RevokePublicPage: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `DocType`
|
||||
public struct RevokePublicDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspacePage }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", String.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicPageMode>.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicDocMode>.self),
|
||||
.field("public", Bool.self),
|
||||
] }
|
||||
|
||||
public var id: String { __data["id"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicPageMode> { __data["mode"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicDocMode> { __data["mode"] }
|
||||
public var `public`: Bool { __data["public"] }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class SubmitAudioTranscriptionMutation: GraphQLMutation {
|
||||
public static let operationName: String = "submitAudioTranscription"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation submitAudioTranscription($workspaceId: String!, $blobId: String!, $blob: Upload!) { submitAudioTranscription( blob: $blob blobId: $blobId workspaceId: $workspaceId ) { __typename id status } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var blobId: String
|
||||
public var blob: Upload
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
blobId: String,
|
||||
blob: Upload
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.blobId = blobId
|
||||
self.blob = blob
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"blobId": blobId,
|
||||
"blob": blob
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("submitAudioTranscription", SubmitAudioTranscription?.self, arguments: [
|
||||
"blob": .variable("blob"),
|
||||
"blobId": .variable("blobId"),
|
||||
"workspaceId": .variable("workspaceId")
|
||||
]),
|
||||
] }
|
||||
|
||||
public var submitAudioTranscription: SubmitAudioTranscription? { __data["submitAudioTranscription"] }
|
||||
|
||||
/// SubmitAudioTranscription
|
||||
///
|
||||
/// Parent Type: `TranscriptionResultType`
|
||||
public struct SubmitAudioTranscription: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.AiJobStatus>.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.AiJobStatus> { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ public class UpdateAccountMutation: GraphQLMutation {
|
||||
]),
|
||||
] }
|
||||
|
||||
/// Update a user
|
||||
/// Update an user
|
||||
public var updateUser: UpdateUser { __data["updateUser"] }
|
||||
|
||||
/// UpdateUser
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class UpdateDocDefaultRoleMutation: GraphQLMutation {
|
||||
public static let operationName: String = "updateDocDefaultRole"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation updateDocDefaultRole($input: UpdateDocDefaultRoleInput!) { updateDocDefaultRole(input: $input) }"#
|
||||
))
|
||||
|
||||
public var input: UpdateDocDefaultRoleInput
|
||||
|
||||
public init(input: UpdateDocDefaultRoleInput) {
|
||||
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("updateDocDefaultRole", Bool.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
public var updateDocDefaultRole: Bool { __data["updateDocDefaultRole"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class UpdateDocUserRoleMutation: GraphQLMutation {
|
||||
public static let operationName: String = "updateDocUserRole"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation updateDocUserRole($input: UpdateDocUserRoleInput!) { updateDocUserRole(input: $input) }"#
|
||||
))
|
||||
|
||||
public var input: UpdateDocUserRoleInput
|
||||
|
||||
public init(input: UpdateDocUserRoleInput) {
|
||||
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("updateDocUserRole", Bool.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
public var updateDocUserRole: Bool { __data["updateDocUserRole"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class UpdateUserSettingsMutation: GraphQLMutation {
|
||||
public static let operationName: String = "updateUserSettings"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation updateUserSettings($input: UpdateSettingsInput!) { updateSettings(input: $input) }"#
|
||||
))
|
||||
|
||||
public var input: UpdateSettingsInput
|
||||
|
||||
public init(input: UpdateSettingsInput) {
|
||||
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("updateSettings", Bool.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
|
||||
/// Update user settings
|
||||
public var updateSettings: Bool { __data["updateSettings"] }
|
||||
}
|
||||
}
|
||||
@@ -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 } availableUserFeatures } }"#,
|
||||
#"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]
|
||||
))
|
||||
|
||||
@@ -42,6 +42,7 @@ public class AdminServerConfigQuery: GraphQLQuery {
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ServerDeploymentType>.self),
|
||||
.field("initialized", Bool.self),
|
||||
.field("credentialsRequirement", CredentialsRequirement.self),
|
||||
.field("availableUpgrade", AvailableUpgrade.self),
|
||||
.field("availableUserFeatures", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
|
||||
] }
|
||||
|
||||
@@ -59,6 +60,8 @@ public class AdminServerConfigQuery: GraphQLQuery {
|
||||
public var initialized: Bool { __data["initialized"] }
|
||||
/// credentials requirement
|
||||
public var credentialsRequirement: CredentialsRequirement { __data["credentialsRequirement"] }
|
||||
/// fetch latest available upgradable release of server
|
||||
public var availableUpgrade: AvailableUpgrade { __data["availableUpgrade"] }
|
||||
/// Features for user that can be configured
|
||||
public var availableUserFeatures: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["availableUserFeatures"] }
|
||||
|
||||
@@ -86,6 +89,28 @@ public class AdminServerConfigQuery: GraphQLQuery {
|
||||
|
||||
public typealias Password = CredentialsRequirements.Password
|
||||
}
|
||||
|
||||
/// ServerConfig.AvailableUpgrade
|
||||
///
|
||||
/// Parent Type: `ReleaseVersionType`
|
||||
public struct AvailableUpgrade: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ReleaseVersionType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("changelog", String.self),
|
||||
.field("version", String.self),
|
||||
.field("publishedAt", AffineGraphQL.DateTime.self),
|
||||
.field("url", String.self),
|
||||
] }
|
||||
|
||||
public var changelog: String { __data["changelog"] }
|
||||
public var version: String { __data["version"] }
|
||||
public var publishedAt: AffineGraphQL.DateTime { __data["publishedAt"] }
|
||||
public var url: String { __data["url"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetAudioTranscriptionQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getAudioTranscription"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getAudioTranscription($workspaceId: String!, $jobId: String!) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename audioTranscription(jobId: $jobId) { __typename id status transcription { __typename speaker start end transcription } summary } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var jobId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
jobId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.jobId = jobId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"jobId": jobId
|
||||
] }
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("audioTranscription", [AudioTranscription].self, arguments: ["jobId": .variable("jobId")]),
|
||||
] }
|
||||
|
||||
public var audioTranscription: [AudioTranscription] { __data["audioTranscription"] }
|
||||
|
||||
/// CurrentUser.Copilot.AudioTranscription
|
||||
///
|
||||
/// Parent Type: `TranscriptionResultType`
|
||||
public struct AudioTranscription: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.AiJobStatus>.self),
|
||||
.field("transcription", [Transcription]?.self),
|
||||
.field("summary", String?.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.AiJobStatus> { __data["status"] }
|
||||
public var transcription: [Transcription]? { __data["transcription"] }
|
||||
public var summary: String? { __data["summary"] }
|
||||
|
||||
/// CurrentUser.Copilot.AudioTranscription.Transcription
|
||||
///
|
||||
/// Parent Type: `TranscriptionItemType`
|
||||
public struct Transcription: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.TranscriptionItemType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("speaker", String.self),
|
||||
.field("start", String.self),
|
||||
.field("end", String.self),
|
||||
.field("transcription", String.self),
|
||||
] }
|
||||
|
||||
public var speaker: String { __data["speaker"] }
|
||||
public var start: String { __data["start"] }
|
||||
public var end: String { __data["end"] }
|
||||
public var transcription: String { __data["transcription"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,16 +7,28 @@ public class GetCopilotSessionsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getCopilotSessions"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getCopilotSessions($workspaceId: String!) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename actions chats } } }"#
|
||||
#"query getCopilotSessions($workspaceId: String!, $docId: String, $options: QueryChatSessionsInput) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename sessions(docId: $docId, options: $options) { __typename id parentSessionId promptName } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var docId: GraphQLNullable<String>
|
||||
public var options: GraphQLNullable<QueryChatSessionsInput>
|
||||
|
||||
public init(workspaceId: String) {
|
||||
public init(
|
||||
workspaceId: String,
|
||||
docId: GraphQLNullable<String>,
|
||||
options: GraphQLNullable<QueryChatSessionsInput>
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.docId = docId
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["workspaceId": workspaceId] }
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"docId": docId,
|
||||
"options": options
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
@@ -55,14 +67,34 @@ public class GetCopilotSessionsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("actions", [String].self),
|
||||
.field("chats", [String].self),
|
||||
.field("sessions", [Session].self, arguments: [
|
||||
"docId": .variable("docId"),
|
||||
"options": .variable("options")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// Get the session list of actions in the workspace
|
||||
public var actions: [String] { __data["actions"] }
|
||||
/// Get the session list of chats in the workspace
|
||||
public var chats: [String] { __data["chats"] }
|
||||
/// Get the session list in the workspace
|
||||
public var sessions: [Session] { __data["sessions"] }
|
||||
|
||||
/// CurrentUser.Copilot.Session
|
||||
///
|
||||
/// Parent Type: `CopilotSessionType`
|
||||
public struct Session: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotSessionType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("parentSessionId", AffineGraphQL.ID?.self),
|
||||
.field("promptName", String.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var parentSessionId: AffineGraphQL.ID? { __data["parentSessionId"] }
|
||||
public var promptName: String { __data["promptName"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetDocDefaultRoleQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getDocDefaultRole"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getDocDefaultRole($workspaceId: String!, $docId: String!) { workspace(id: $workspaceId) { __typename doc(docId: $docId) { __typename defaultRole } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var docId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
docId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.docId = docId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"docId": docId
|
||||
] }
|
||||
|
||||
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("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
/// Get workspace by id
|
||||
public var workspace: Workspace { __data["workspace"] }
|
||||
|
||||
/// Workspace
|
||||
///
|
||||
/// Parent Type: `WorkspaceType`
|
||||
public struct Workspace: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("doc", Doc.self, arguments: ["docId": .variable("docId")]),
|
||||
] }
|
||||
|
||||
/// Get get with given id
|
||||
public var doc: Doc { __data["doc"] }
|
||||
|
||||
/// Workspace.Doc
|
||||
///
|
||||
/// Parent Type: `DocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("defaultRole", GraphQLEnum<AffineGraphQL.DocRole>.self),
|
||||
] }
|
||||
|
||||
public var defaultRole: GraphQLEnum<AffineGraphQL.DocRole> { __data["defaultRole"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetDocRolePermissionsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getDocRolePermissions"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getDocRolePermissions($workspaceId: String!, $docId: String!) { workspace(id: $workspaceId) { __typename doc(docId: $docId) { __typename permissions { __typename Doc_Copy Doc_Delete Doc_Duplicate Doc_Properties_Read Doc_Properties_Update Doc_Publish Doc_Read Doc_Restore Doc_TransferOwner Doc_Trash Doc_Update Doc_Users_Manage Doc_Users_Read } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var docId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
docId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.docId = docId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"docId": docId
|
||||
] }
|
||||
|
||||
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("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
/// Get workspace by id
|
||||
public var workspace: Workspace { __data["workspace"] }
|
||||
|
||||
/// Workspace
|
||||
///
|
||||
/// Parent Type: `WorkspaceType`
|
||||
public struct Workspace: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("doc", Doc.self, arguments: ["docId": .variable("docId")]),
|
||||
] }
|
||||
|
||||
/// Get get with given id
|
||||
public var doc: Doc { __data["doc"] }
|
||||
|
||||
/// Workspace.Doc
|
||||
///
|
||||
/// Parent Type: `DocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("permissions", Permissions.self),
|
||||
] }
|
||||
|
||||
public var permissions: Permissions { __data["permissions"] }
|
||||
|
||||
/// Workspace.Doc.Permissions
|
||||
///
|
||||
/// Parent Type: `DocPermissions`
|
||||
public struct Permissions: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocPermissions }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("Doc_Copy", Bool.self),
|
||||
.field("Doc_Delete", Bool.self),
|
||||
.field("Doc_Duplicate", Bool.self),
|
||||
.field("Doc_Properties_Read", Bool.self),
|
||||
.field("Doc_Properties_Update", Bool.self),
|
||||
.field("Doc_Publish", Bool.self),
|
||||
.field("Doc_Read", Bool.self),
|
||||
.field("Doc_Restore", Bool.self),
|
||||
.field("Doc_TransferOwner", Bool.self),
|
||||
.field("Doc_Trash", Bool.self),
|
||||
.field("Doc_Update", Bool.self),
|
||||
.field("Doc_Users_Manage", Bool.self),
|
||||
.field("Doc_Users_Read", Bool.self),
|
||||
] }
|
||||
|
||||
public var doc_Copy: Bool { __data["Doc_Copy"] }
|
||||
public var doc_Delete: Bool { __data["Doc_Delete"] }
|
||||
public var doc_Duplicate: Bool { __data["Doc_Duplicate"] }
|
||||
public var doc_Properties_Read: Bool { __data["Doc_Properties_Read"] }
|
||||
public var doc_Properties_Update: Bool { __data["Doc_Properties_Update"] }
|
||||
public var doc_Publish: Bool { __data["Doc_Publish"] }
|
||||
public var doc_Read: Bool { __data["Doc_Read"] }
|
||||
public var doc_Restore: Bool { __data["Doc_Restore"] }
|
||||
public var doc_TransferOwner: Bool { __data["Doc_TransferOwner"] }
|
||||
public var doc_Trash: Bool { __data["Doc_Trash"] }
|
||||
public var doc_Update: Bool { __data["Doc_Update"] }
|
||||
public var doc_Users_Manage: Bool { __data["Doc_Users_Manage"] }
|
||||
public var doc_Users_Read: Bool { __data["Doc_Users_Read"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,7 @@ public class GetIsAdminQuery: GraphQLQuery {
|
||||
] }
|
||||
|
||||
/// Get is admin of workspace
|
||||
@available(*, deprecated, message: "use WorkspaceType[role] instead")
|
||||
public var isAdmin: Bool { __data["isAdmin"] }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ public class GetIsOwnerQuery: GraphQLQuery {
|
||||
] }
|
||||
|
||||
/// Get is owner of workspace
|
||||
@available(*, deprecated, message: "use WorkspaceType[role] instead")
|
||||
public var isOwner: Bool { __data["isOwner"] }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetLicenseQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getLicense"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getLicense($workspaceId: String!) { workspace(id: $workspaceId) { __typename license { __typename expiredAt installedAt quantity recurring validatedAt } } }"#
|
||||
))
|
||||
|
||||
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("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
/// Get workspace by id
|
||||
public var workspace: Workspace { __data["workspace"] }
|
||||
|
||||
/// Workspace
|
||||
///
|
||||
/// Parent Type: `WorkspaceType`
|
||||
public struct Workspace: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("license", License?.self),
|
||||
] }
|
||||
|
||||
/// The selfhost license of the workspace
|
||||
public var license: License? { __data["license"] }
|
||||
|
||||
/// Workspace.License
|
||||
///
|
||||
/// Parent Type: `License`
|
||||
public struct License: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.License }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("expiredAt", AffineGraphQL.DateTime?.self),
|
||||
.field("installedAt", AffineGraphQL.DateTime.self),
|
||||
.field("quantity", Int.self),
|
||||
.field("recurring", GraphQLEnum<AffineGraphQL.SubscriptionRecurring>.self),
|
||||
.field("validatedAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
|
||||
public var expiredAt: AffineGraphQL.DateTime? { __data["expiredAt"] }
|
||||
public var installedAt: AffineGraphQL.DateTime { __data["installedAt"] }
|
||||
public var quantity: Int { __data["quantity"] }
|
||||
public var recurring: GraphQLEnum<AffineGraphQL.SubscriptionRecurring> { __data["recurring"] }
|
||||
public var validatedAt: AffineGraphQL.DateTime { __data["validatedAt"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,27 +7,31 @@ public class GetMembersByWorkspaceIdQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getMembersByWorkspaceId"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getMembersByWorkspaceId($workspaceId: String!, $skip: Int!, $take: Int!) { workspace(id: $workspaceId) { __typename memberCount members(skip: $skip, take: $take) { __typename id name email avatarUrl permission inviteId emailVerified status } } }"#
|
||||
#"query getMembersByWorkspaceId($workspaceId: String!, $skip: Int, $take: Int, $query: String) { workspace(id: $workspaceId) { __typename memberCount members(skip: $skip, take: $take, query: $query) { __typename id name email avatarUrl permission inviteId emailVerified status } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var skip: Int
|
||||
public var take: Int
|
||||
public var skip: GraphQLNullable<Int>
|
||||
public var take: GraphQLNullable<Int>
|
||||
public var query: GraphQLNullable<String>
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
skip: Int,
|
||||
take: Int
|
||||
skip: GraphQLNullable<Int>,
|
||||
take: GraphQLNullable<Int>,
|
||||
query: GraphQLNullable<String>
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.skip = skip
|
||||
self.take = take
|
||||
self.query = query
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"skip": skip,
|
||||
"take": take
|
||||
"take": take,
|
||||
"query": query
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
@@ -55,7 +59,8 @@ public class GetMembersByWorkspaceIdQuery: GraphQLQuery {
|
||||
.field("memberCount", Int.self),
|
||||
.field("members", [Member].self, arguments: [
|
||||
"skip": .variable("skip"),
|
||||
"take": .variable("take")
|
||||
"take": .variable("take"),
|
||||
"query": .variable("query")
|
||||
]),
|
||||
] }
|
||||
|
||||
@@ -92,6 +97,7 @@ public class GetMembersByWorkspaceIdQuery: GraphQLQuery {
|
||||
/// User avatar url
|
||||
public var avatarUrl: String? { __data["avatarUrl"] }
|
||||
/// User permission in workspace
|
||||
@available(*, deprecated, message: "Use role instead")
|
||||
public var permission: GraphQLEnum<AffineGraphQL.Permission> { __data["permission"] }
|
||||
/// Invite id
|
||||
public var inviteId: String { __data["inviteId"] }
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetPageGrantedUsersListQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getPageGrantedUsersList"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getPageGrantedUsersList($pagination: PaginationInput!, $docId: String!, $workspaceId: String!) { workspace(id: $workspaceId) { __typename doc(docId: $docId) { __typename grantedUsersList(pagination: $pagination) { __typename totalCount pageInfo { __typename endCursor hasNextPage } edges { __typename node { __typename role user { __typename id name email avatarUrl } } } } } } }"#
|
||||
))
|
||||
|
||||
public var pagination: PaginationInput
|
||||
public var docId: String
|
||||
public var workspaceId: String
|
||||
|
||||
public init(
|
||||
pagination: PaginationInput,
|
||||
docId: String,
|
||||
workspaceId: String
|
||||
) {
|
||||
self.pagination = pagination
|
||||
self.docId = docId
|
||||
self.workspaceId = workspaceId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"pagination": pagination,
|
||||
"docId": docId,
|
||||
"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("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
/// Get workspace by id
|
||||
public var workspace: Workspace { __data["workspace"] }
|
||||
|
||||
/// Workspace
|
||||
///
|
||||
/// Parent Type: `WorkspaceType`
|
||||
public struct Workspace: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("doc", Doc.self, arguments: ["docId": .variable("docId")]),
|
||||
] }
|
||||
|
||||
/// Get get with given id
|
||||
public var doc: Doc { __data["doc"] }
|
||||
|
||||
/// Workspace.Doc
|
||||
///
|
||||
/// Parent Type: `DocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("grantedUsersList", GrantedUsersList.self, arguments: ["pagination": .variable("pagination")]),
|
||||
] }
|
||||
|
||||
/// paginated doc granted users list
|
||||
public var grantedUsersList: GrantedUsersList { __data["grantedUsersList"] }
|
||||
|
||||
/// Workspace.Doc.GrantedUsersList
|
||||
///
|
||||
/// Parent Type: `PaginatedGrantedDocUserType`
|
||||
public struct GrantedUsersList: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedGrantedDocUserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("totalCount", Int.self),
|
||||
.field("pageInfo", PageInfo.self),
|
||||
.field("edges", [Edge].self),
|
||||
] }
|
||||
|
||||
public var totalCount: Int { __data["totalCount"] }
|
||||
public var pageInfo: PageInfo { __data["pageInfo"] }
|
||||
public var edges: [Edge] { __data["edges"] }
|
||||
|
||||
/// Workspace.Doc.GrantedUsersList.PageInfo
|
||||
///
|
||||
/// Parent Type: `PageInfo`
|
||||
public struct PageInfo: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PageInfo }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("endCursor", String?.self),
|
||||
.field("hasNextPage", Bool.self),
|
||||
] }
|
||||
|
||||
public var endCursor: String? { __data["endCursor"] }
|
||||
public var hasNextPage: Bool { __data["hasNextPage"] }
|
||||
}
|
||||
|
||||
/// Workspace.Doc.GrantedUsersList.Edge
|
||||
///
|
||||
/// Parent Type: `GrantedDocUserTypeEdge`
|
||||
public struct Edge: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.GrantedDocUserTypeEdge }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("node", Node.self),
|
||||
] }
|
||||
|
||||
public var node: Node { __data["node"] }
|
||||
|
||||
/// Workspace.Doc.GrantedUsersList.Edge.Node
|
||||
///
|
||||
/// Parent Type: `GrantedDocUserType`
|
||||
public struct Node: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.GrantedDocUserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("role", GraphQLEnum<AffineGraphQL.DocRole>.self),
|
||||
.field("user", User.self),
|
||||
] }
|
||||
|
||||
public var role: GraphQLEnum<AffineGraphQL.DocRole> { __data["role"] }
|
||||
public var user: User { __data["user"] }
|
||||
|
||||
/// Workspace.Doc.GrantedUsersList.Edge.Node.User
|
||||
///
|
||||
/// Parent Type: `WorkspaceUserType`
|
||||
public struct User: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceUserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", String.self),
|
||||
.field("name", String.self),
|
||||
.field("email", String.self),
|
||||
.field("avatarUrl", String?.self),
|
||||
] }
|
||||
|
||||
public var id: String { __data["id"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var email: String { __data["email"] }
|
||||
public var avatarUrl: String? { __data["avatarUrl"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetPublicUserByIdQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getPublicUserById"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getPublicUserById($id: String!) { publicUserById(id: $id) { __typename id avatarUrl name } }"#
|
||||
))
|
||||
|
||||
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.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("publicUserById", PublicUserById?.self, arguments: ["id": .variable("id")]),
|
||||
] }
|
||||
|
||||
/// Get public user by id
|
||||
public var publicUserById: PublicUserById? { __data["publicUserById"] }
|
||||
|
||||
/// PublicUserById
|
||||
///
|
||||
/// Parent Type: `PublicUserType`
|
||||
public struct PublicUserById: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PublicUserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", String.self),
|
||||
.field("avatarUrl", String?.self),
|
||||
.field("name", String.self),
|
||||
] }
|
||||
|
||||
public var id: String { __data["id"] }
|
||||
public var avatarUrl: String? { __data["avatarUrl"] }
|
||||
public var name: String { __data["name"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetUserSettingsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getUserSettings"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getUserSettings { currentUser { __typename settings { __typename receiveInvitationEmail receiveMentionEmail } } }"#
|
||||
))
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("settings", Settings.self),
|
||||
] }
|
||||
|
||||
/// Get user settings
|
||||
public var settings: Settings { __data["settings"] }
|
||||
|
||||
/// CurrentUser.Settings
|
||||
///
|
||||
/// Parent Type: `SettingsType`
|
||||
public struct Settings: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.SettingsType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("receiveInvitationEmail", Bool.self),
|
||||
.field("receiveMentionEmail", Bool.self),
|
||||
] }
|
||||
|
||||
/// Receive invitation email
|
||||
public var receiveInvitationEmail: Bool { __data["receiveInvitationEmail"] }
|
||||
/// Receive mention email
|
||||
public var receiveMentionEmail: Bool { __data["receiveMentionEmail"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetWorkspaceEmbeddingStatusQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspaceEmbeddingStatus"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getWorkspaceEmbeddingStatus($workspaceId: String!) { queryWorkspaceEmbeddingStatus(workspaceId: $workspaceId) { __typename total embedded } }"#
|
||||
))
|
||||
|
||||
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("queryWorkspaceEmbeddingStatus", QueryWorkspaceEmbeddingStatus.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
/// query workspace embedding status
|
||||
public var queryWorkspaceEmbeddingStatus: QueryWorkspaceEmbeddingStatus { __data["queryWorkspaceEmbeddingStatus"] }
|
||||
|
||||
/// QueryWorkspaceEmbeddingStatus
|
||||
///
|
||||
/// Parent Type: `ContextWorkspaceEmbeddingStatus`
|
||||
public struct QueryWorkspaceEmbeddingStatus: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextWorkspaceEmbeddingStatus }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("total", AffineGraphQL.SafeInt.self),
|
||||
.field("embedded", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var total: AffineGraphQL.SafeInt { __data["total"] }
|
||||
public var embedded: AffineGraphQL.SafeInt { __data["embedded"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,8 +30,10 @@ public class GetWorkspaceInfoQuery: GraphQLQuery {
|
||||
] }
|
||||
|
||||
/// Get is admin of workspace
|
||||
@available(*, deprecated, message: "use WorkspaceType[role] instead")
|
||||
public var isAdmin: Bool { __data["isAdmin"] }
|
||||
/// Get is owner of workspace
|
||||
@available(*, deprecated, message: "use WorkspaceType[role] instead")
|
||||
public var isOwner: Bool { __data["isOwner"] }
|
||||
/// Get workspace by id
|
||||
public var workspace: Workspace { __data["workspace"] }
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetWorkspacePublicPageByIdQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspacePublicPageById"
|
||||
public class GetWorkspacePageByIdQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspacePageById"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getWorkspacePublicPageById($workspaceId: String!, $pageId: String!) { workspace(id: $workspaceId) { __typename publicPage(pageId: $pageId) { __typename id mode } } }"#
|
||||
#"query getWorkspacePageById($workspaceId: String!, $pageId: String!) { workspace(id: $workspaceId) { __typename doc(docId: $pageId) { __typename id mode defaultRole public } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -48,28 +48,32 @@ public class GetWorkspacePublicPageByIdQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("publicPage", PublicPage?.self, arguments: ["pageId": .variable("pageId")]),
|
||||
.field("doc", Doc.self, arguments: ["docId": .variable("pageId")]),
|
||||
] }
|
||||
|
||||
/// Get public page of a workspace by page id.
|
||||
public var publicPage: PublicPage? { __data["publicPage"] }
|
||||
/// Get get with given id
|
||||
public var doc: Doc { __data["doc"] }
|
||||
|
||||
/// Workspace.PublicPage
|
||||
/// Workspace.Doc
|
||||
///
|
||||
/// Parent Type: `WorkspacePage`
|
||||
public struct PublicPage: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `DocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspacePage }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", String.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicPageMode>.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicDocMode>.self),
|
||||
.field("defaultRole", GraphQLEnum<AffineGraphQL.DocRole>.self),
|
||||
.field("public", Bool.self),
|
||||
] }
|
||||
|
||||
public var id: String { __data["id"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicPageMode> { __data["mode"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicDocMode> { __data["mode"] }
|
||||
public var defaultRole: GraphQLEnum<AffineGraphQL.DocRole> { __data["defaultRole"] }
|
||||
public var `public`: Bool { __data["public"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public class GetWorkspacePublicPagesQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspacePublicPages"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getWorkspacePublicPages($workspaceId: String!) { workspace(id: $workspaceId) { __typename publicPages { __typename id mode } } }"#
|
||||
#"query getWorkspacePublicPages($workspaceId: String!) { workspace(id: $workspaceId) { __typename publicDocs { __typename id mode } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -40,28 +40,28 @@ public class GetWorkspacePublicPagesQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("publicPages", [PublicPage].self),
|
||||
.field("publicDocs", [PublicDoc].self),
|
||||
] }
|
||||
|
||||
/// Public pages of a workspace
|
||||
public var publicPages: [PublicPage] { __data["publicPages"] }
|
||||
/// Get public docs of a workspace
|
||||
public var publicDocs: [PublicDoc] { __data["publicDocs"] }
|
||||
|
||||
/// Workspace.PublicPage
|
||||
/// Workspace.PublicDoc
|
||||
///
|
||||
/// Parent Type: `WorkspacePage`
|
||||
public struct PublicPage: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `DocType`
|
||||
public struct PublicDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspacePage }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.DocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", String.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicPageMode>.self),
|
||||
.field("mode", GraphQLEnum<AffineGraphQL.PublicDocMode>.self),
|
||||
] }
|
||||
|
||||
public var id: String { __data["id"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicPageMode> { __data["mode"] }
|
||||
public var mode: GraphQLEnum<AffineGraphQL.PublicDocMode> { __data["mode"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetWorkspaceRolePermissionsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspaceRolePermissions"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getWorkspaceRolePermissions($id: String!) { workspaceRolePermissions(id: $id) { __typename permissions { __typename Workspace_Administrators_Manage Workspace_Blobs_List Workspace_Blobs_Read Workspace_Blobs_Write Workspace_Copilot Workspace_CreateDoc Workspace_Delete Workspace_Organize_Read Workspace_Payment_Manage Workspace_Properties_Create Workspace_Properties_Delete Workspace_Properties_Read Workspace_Properties_Update Workspace_Read Workspace_Settings_Read Workspace_Settings_Update Workspace_Sync Workspace_TransferOwner Workspace_Users_Manage Workspace_Users_Read } } }"#
|
||||
))
|
||||
|
||||
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.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("workspaceRolePermissions", WorkspaceRolePermissions.self, arguments: ["id": .variable("id")]),
|
||||
] }
|
||||
|
||||
/// Get workspace role permissions
|
||||
@available(*, deprecated, message: "use WorkspaceType[permissions] instead")
|
||||
public var workspaceRolePermissions: WorkspaceRolePermissions { __data["workspaceRolePermissions"] }
|
||||
|
||||
/// WorkspaceRolePermissions
|
||||
///
|
||||
/// Parent Type: `WorkspaceRolePermissions`
|
||||
public struct WorkspaceRolePermissions: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceRolePermissions }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("permissions", Permissions.self),
|
||||
] }
|
||||
|
||||
public var permissions: Permissions { __data["permissions"] }
|
||||
|
||||
/// WorkspaceRolePermissions.Permissions
|
||||
///
|
||||
/// Parent Type: `WorkspacePermissions`
|
||||
public struct Permissions: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspacePermissions }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("Workspace_Administrators_Manage", Bool.self),
|
||||
.field("Workspace_Blobs_List", Bool.self),
|
||||
.field("Workspace_Blobs_Read", Bool.self),
|
||||
.field("Workspace_Blobs_Write", Bool.self),
|
||||
.field("Workspace_Copilot", Bool.self),
|
||||
.field("Workspace_CreateDoc", Bool.self),
|
||||
.field("Workspace_Delete", Bool.self),
|
||||
.field("Workspace_Organize_Read", Bool.self),
|
||||
.field("Workspace_Payment_Manage", Bool.self),
|
||||
.field("Workspace_Properties_Create", Bool.self),
|
||||
.field("Workspace_Properties_Delete", Bool.self),
|
||||
.field("Workspace_Properties_Read", Bool.self),
|
||||
.field("Workspace_Properties_Update", Bool.self),
|
||||
.field("Workspace_Read", Bool.self),
|
||||
.field("Workspace_Settings_Read", Bool.self),
|
||||
.field("Workspace_Settings_Update", Bool.self),
|
||||
.field("Workspace_Sync", Bool.self),
|
||||
.field("Workspace_TransferOwner", Bool.self),
|
||||
.field("Workspace_Users_Manage", Bool.self),
|
||||
.field("Workspace_Users_Read", Bool.self),
|
||||
] }
|
||||
|
||||
public var workspace_Administrators_Manage: Bool { __data["Workspace_Administrators_Manage"] }
|
||||
public var workspace_Blobs_List: Bool { __data["Workspace_Blobs_List"] }
|
||||
public var workspace_Blobs_Read: Bool { __data["Workspace_Blobs_Read"] }
|
||||
public var workspace_Blobs_Write: Bool { __data["Workspace_Blobs_Write"] }
|
||||
public var workspace_Copilot: Bool { __data["Workspace_Copilot"] }
|
||||
public var workspace_CreateDoc: Bool { __data["Workspace_CreateDoc"] }
|
||||
public var workspace_Delete: Bool { __data["Workspace_Delete"] }
|
||||
public var workspace_Organize_Read: Bool { __data["Workspace_Organize_Read"] }
|
||||
public var workspace_Payment_Manage: Bool { __data["Workspace_Payment_Manage"] }
|
||||
public var workspace_Properties_Create: Bool { __data["Workspace_Properties_Create"] }
|
||||
public var workspace_Properties_Delete: Bool { __data["Workspace_Properties_Delete"] }
|
||||
public var workspace_Properties_Read: Bool { __data["Workspace_Properties_Read"] }
|
||||
public var workspace_Properties_Update: Bool { __data["Workspace_Properties_Update"] }
|
||||
public var workspace_Read: Bool { __data["Workspace_Read"] }
|
||||
public var workspace_Settings_Read: Bool { __data["Workspace_Settings_Read"] }
|
||||
public var workspace_Settings_Update: Bool { __data["Workspace_Settings_Update"] }
|
||||
public var workspace_Sync: Bool { __data["Workspace_Sync"] }
|
||||
public var workspace_TransferOwner: Bool { __data["Workspace_TransferOwner"] }
|
||||
public var workspace_Users_Manage: Bool { __data["Workspace_Users_Manage"] }
|
||||
public var workspace_Users_Read: Bool { __data["Workspace_Users_Read"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ListContextObjectQuery: GraphQLQuery {
|
||||
public static let operationName: String = "listContextObject"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query listContextObject($workspaceId: String!, $sessionId: String!, $contextId: String!) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(sessionId: $sessionId, contextId: $contextId) { __typename docs { __typename id status error createdAt } files { __typename id name blobId chunkSize error status createdAt } tags { __typename type id docs { __typename id status createdAt } createdAt } collections { __typename type id docs { __typename id status createdAt } createdAt } } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var sessionId: String
|
||||
public var contextId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
sessionId: String,
|
||||
contextId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.sessionId = sessionId
|
||||
self.contextId = contextId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"sessionId": sessionId,
|
||||
"contextId": contextId
|
||||
] }
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: [
|
||||
"sessionId": .variable("sessionId"),
|
||||
"contextId": .variable("contextId")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("files", [File].self),
|
||||
.field("tags", [Tag].self),
|
||||
.field("collections", [Collection].self),
|
||||
] }
|
||||
|
||||
/// list files in context
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
/// list files in context
|
||||
public var files: [File] { __data["files"] }
|
||||
/// list tags in context
|
||||
public var tags: [Tag] { __data["tags"] }
|
||||
/// list collections in context
|
||||
public var collections: [Collection] { __data["collections"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("error", String?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var error: String? { __data["error"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.File
|
||||
///
|
||||
/// Parent Type: `CopilotContextFile`
|
||||
public struct File: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextFile }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("name", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("chunkSize", AffineGraphQL.SafeInt.self),
|
||||
.field("error", String?.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var chunkSize: AffineGraphQL.SafeInt { __data["chunkSize"] }
|
||||
public var error: String? { __data["error"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus> { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.Tag
|
||||
///
|
||||
/// Parent Type: `CopilotContextCategory`
|
||||
public struct Tag: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextCategory }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ContextCategories>.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var type: GraphQLEnum<AffineGraphQL.ContextCategories> { __data["type"] }
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.Tag.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotDocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotDocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.Collection
|
||||
///
|
||||
/// Parent Type: `CopilotContextCategory`
|
||||
public struct Collection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextCategory }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ContextCategories>.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var type: GraphQLEnum<AffineGraphQL.ContextCategories> { __data["type"] }
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.Collection.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotDocType`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotDocType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ListContextQuery: GraphQLQuery {
|
||||
public static let operationName: String = "listContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query listContext($workspaceId: String!, $sessionId: String!) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(sessionId: $sessionId) { __typename id workspaceId } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var sessionId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
sessionId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.sessionId = sessionId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"sessionId": sessionId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["sessionId": .variable("sessionId")]),
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("workspaceId", String.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var workspaceId: String { __data["workspaceId"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ListNotificationsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "listNotifications"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query listNotifications($pagination: PaginationInput!) { currentUser { __typename notifications(pagination: $pagination) { __typename totalCount edges { __typename cursor node { __typename id type level read createdAt updatedAt body } } pageInfo { __typename startCursor endCursor hasNextPage hasPreviousPage } } } }"#
|
||||
))
|
||||
|
||||
public var pagination: PaginationInput
|
||||
|
||||
public init(pagination: PaginationInput) {
|
||||
self.pagination = pagination
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["pagination": pagination] }
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("notifications", Notifications.self, arguments: ["pagination": .variable("pagination")]),
|
||||
] }
|
||||
|
||||
/// Get current user notifications
|
||||
public var notifications: Notifications { __data["notifications"] }
|
||||
|
||||
/// CurrentUser.Notifications
|
||||
///
|
||||
/// Parent Type: `PaginatedNotificationObjectType`
|
||||
public struct Notifications: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedNotificationObjectType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("totalCount", Int.self),
|
||||
.field("edges", [Edge].self),
|
||||
.field("pageInfo", PageInfo.self),
|
||||
] }
|
||||
|
||||
public var totalCount: Int { __data["totalCount"] }
|
||||
public var edges: [Edge] { __data["edges"] }
|
||||
public var pageInfo: PageInfo { __data["pageInfo"] }
|
||||
|
||||
/// CurrentUser.Notifications.Edge
|
||||
///
|
||||
/// Parent Type: `NotificationObjectTypeEdge`
|
||||
public struct Edge: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.NotificationObjectTypeEdge }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("cursor", String.self),
|
||||
.field("node", Node.self),
|
||||
] }
|
||||
|
||||
public var cursor: String { __data["cursor"] }
|
||||
public var node: Node { __data["node"] }
|
||||
|
||||
/// CurrentUser.Notifications.Edge.Node
|
||||
///
|
||||
/// Parent Type: `NotificationObjectType`
|
||||
public struct Node: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.NotificationObjectType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.NotificationType>.self),
|
||||
.field("level", GraphQLEnum<AffineGraphQL.NotificationLevel>.self),
|
||||
.field("read", Bool.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
.field("updatedAt", AffineGraphQL.DateTime.self),
|
||||
.field("body", AffineGraphQL.JSONObject.self),
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
/// The type of the notification
|
||||
public var type: GraphQLEnum<AffineGraphQL.NotificationType> { __data["type"] }
|
||||
/// The level of the notification
|
||||
public var level: GraphQLEnum<AffineGraphQL.NotificationLevel> { __data["level"] }
|
||||
/// Whether the notification has been read
|
||||
public var read: Bool { __data["read"] }
|
||||
/// The created at time of the notification
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
/// The updated at time of the notification
|
||||
public var updatedAt: AffineGraphQL.DateTime { __data["updatedAt"] }
|
||||
/// The body of the notification, different types have different fields, see UnionNotificationBodyType
|
||||
public var body: AffineGraphQL.JSONObject { __data["body"] }
|
||||
}
|
||||
}
|
||||
|
||||
/// CurrentUser.Notifications.PageInfo
|
||||
///
|
||||
/// Parent Type: `PageInfo`
|
||||
public struct PageInfo: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PageInfo }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("startCursor", String?.self),
|
||||
.field("endCursor", String?.self),
|
||||
.field("hasNextPage", Bool.self),
|
||||
.field("hasPreviousPage", Bool.self),
|
||||
] }
|
||||
|
||||
public var startCursor: String? { __data["startCursor"] }
|
||||
public var endCursor: String? { __data["endCursor"] }
|
||||
public var hasNextPage: Bool { __data["hasNextPage"] }
|
||||
public var hasPreviousPage: Bool { __data["hasPreviousPage"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public class ListUsersQuery: GraphQLQuery {
|
||||
public static let operationName: String = "listUsers"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query listUsers($filter: ListUserInput!) { users(filter: $filter) { __typename id name email features hasPassword emailVerified avatarUrl } }"#
|
||||
#"query listUsers($filter: ListUserInput!) { users(filter: $filter) { __typename id name email disabled features hasPassword emailVerified avatarUrl } }"#
|
||||
))
|
||||
|
||||
public var filter: ListUserInput
|
||||
@@ -43,6 +43,7 @@ public class ListUsersQuery: GraphQLQuery {
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("name", String.self),
|
||||
.field("email", String.self),
|
||||
.field("disabled", Bool.self),
|
||||
.field("features", [GraphQLEnum<AffineGraphQL.FeatureType>].self),
|
||||
.field("hasPassword", Bool?.self),
|
||||
.field("emailVerified", Bool.self),
|
||||
@@ -54,6 +55,8 @@ public class ListUsersQuery: GraphQLQuery {
|
||||
public var name: String { __data["name"] }
|
||||
/// User email
|
||||
public var email: String { __data["email"] }
|
||||
/// User is disabled
|
||||
public var disabled: Bool { __data["disabled"] }
|
||||
/// Enabled features of a user
|
||||
public var features: [GraphQLEnum<AffineGraphQL.FeatureType>] { __data["features"] }
|
||||
/// User password has been set
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchContextQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchContext($contextId: String!, $content: String!, $limit: SafeInt) { currentUser { __typename copilot { __typename contexts(contextId: $contextId) { __typename matchContext(content: $content, limit: $limit) { __typename fileId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: String
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"content": content,
|
||||
"limit": limit
|
||||
] }
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self),
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["contextId": .variable("contextId")]),
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("matchContext", [MatchContext].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// match file context
|
||||
public var matchContext: [MatchContext] { __data["matchContext"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchContext
|
||||
///
|
||||
/// Parent Type: `ContextMatchedFileChunk`
|
||||
public struct MatchContext: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextMatchedFileChunk }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchWorkspaceContextQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchWorkspaceContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchWorkspaceContext($contextId: String!, $content: String!, $limit: SafeInt) { currentUser { __typename copilot { __typename contexts(contextId: $contextId) { __typename matchWorkspaceContext(content: $content, limit: $limit) { __typename docId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: String
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"content": content,
|
||||
"limit": limit
|
||||
] }
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self),
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["contextId": .variable("contextId")]),
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("matchWorkspaceContext", MatchWorkspaceContext.self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit")
|
||||
]),
|
||||
] }
|
||||
|
||||
/// match workspace doc content
|
||||
public var matchWorkspaceContext: MatchWorkspaceContext { __data["matchWorkspaceContext"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchWorkspaceContext
|
||||
///
|
||||
/// Parent Type: `ContextMatchedDocChunk`
|
||||
public struct MatchWorkspaceContext: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextMatchedDocChunk }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("docId", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
|
||||
public var docId: String { __data["docId"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class NotificationCountQuery: GraphQLQuery {
|
||||
public static let operationName: String = "notificationCount"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query notificationCount { currentUser { __typename notificationCount } }"#
|
||||
))
|
||||
|
||||
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("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("notificationCount", Int.self),
|
||||
] }
|
||||
|
||||
/// Get user notification count
|
||||
public var notificationCount: Int { __data["notificationCount"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum AiJobStatus: String, EnumType {
|
||||
case claimed = "claimed"
|
||||
case failed = "failed"
|
||||
case finished = "finished"
|
||||
case pending = "pending"
|
||||
case running = "running"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ContextCategories: String, EnumType {
|
||||
case collection = "Collection"
|
||||
case tag = "Tag"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ContextEmbedStatus: String, EnumType {
|
||||
case failed = "failed"
|
||||
case finished = "finished"
|
||||
case processing = "processing"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
/// Doc mode
|
||||
public enum DocMode: String, EnumType {
|
||||
case edgeless = "edgeless"
|
||||
case page = "page"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
/// User permission in doc
|
||||
public enum DocRole: String, EnumType {
|
||||
case editor = "Editor"
|
||||
case external = "External"
|
||||
case manager = "Manager"
|
||||
case none = "None"
|
||||
case owner = "Owner"
|
||||
case reader = "Reader"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
/// Notification level
|
||||
public enum NotificationLevel: String, EnumType {
|
||||
case `default` = "Default"
|
||||
case high = "High"
|
||||
case low = "Low"
|
||||
case min = "Min"
|
||||
case none = "None"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
/// Notification type
|
||||
public enum NotificationType: String, EnumType {
|
||||
case invitation = "Invitation"
|
||||
case invitationAccepted = "InvitationAccepted"
|
||||
case invitationBlocked = "InvitationBlocked"
|
||||
case invitationRejected = "InvitationRejected"
|
||||
case invitationReviewApproved = "InvitationReviewApproved"
|
||||
case invitationReviewDeclined = "InvitationReviewDeclined"
|
||||
case invitationReviewRequest = "InvitationReviewRequest"
|
||||
case mention = "Mention"
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import ApolloAPI
|
||||
/// User permission in workspace
|
||||
public enum Permission: String, EnumType {
|
||||
case admin = "Admin"
|
||||
case collaborator = "Collaborator"
|
||||
case external = "External"
|
||||
case owner = "Owner"
|
||||
case read = "Read"
|
||||
case write = "Write"
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
/// The mode which the public page default in
|
||||
public enum PublicPageMode: String, EnumType {
|
||||
/// The mode which the public doc default in
|
||||
public enum PublicDocMode: String, EnumType {
|
||||
case edgeless = "Edgeless"
|
||||
case page = "Page"
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextCategoryInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
categoryId: String,
|
||||
contextId: String,
|
||||
docs: GraphQLNullable<[String]> = nil,
|
||||
type: GraphQLEnum<ContextCategories>
|
||||
) {
|
||||
__data = InputDict([
|
||||
"categoryId": categoryId,
|
||||
"contextId": contextId,
|
||||
"docs": docs,
|
||||
"type": type
|
||||
])
|
||||
}
|
||||
|
||||
public var categoryId: String {
|
||||
get { __data["categoryId"] }
|
||||
set { __data["categoryId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var docs: GraphQLNullable<[String]> {
|
||||
get { __data["docs"] }
|
||||
set { __data["docs"] = newValue }
|
||||
}
|
||||
|
||||
public var type: GraphQLEnum<ContextCategories> {
|
||||
get { __data["type"] }
|
||||
set { __data["type"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextDocInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
docId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId,
|
||||
"docId": docId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextFileInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
blobId: String,
|
||||
contextId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"blobId": blobId,
|
||||
"contextId": contextId
|
||||
])
|
||||
}
|
||||
|
||||
public var blobId: String {
|
||||
get { __data["blobId"] }
|
||||
set { __data["blobId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct GrantDocUserRolesInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
docId: String,
|
||||
role: GraphQLEnum<DocRole>,
|
||||
userIds: [String],
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"docId": docId,
|
||||
"role": role,
|
||||
"userIds": userIds,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
|
||||
public var role: GraphQLEnum<DocRole> {
|
||||
get { __data["role"] }
|
||||
set { __data["role"] = newValue }
|
||||
}
|
||||
|
||||
public var userIds: [String] {
|
||||
get { __data["userIds"] }
|
||||
set { __data["userIds"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ImportUsersInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
users: [CreateUserInput]
|
||||
) {
|
||||
__data = InputDict([
|
||||
"users": users
|
||||
])
|
||||
}
|
||||
|
||||
public var users: [CreateUserInput] {
|
||||
get { __data["users"] }
|
||||
set { __data["users"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct MentionDocInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
blockId: GraphQLNullable<String> = nil,
|
||||
elementId: GraphQLNullable<String> = nil,
|
||||
id: String,
|
||||
mode: GraphQLEnum<DocMode>,
|
||||
title: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"blockId": blockId,
|
||||
"elementId": elementId,
|
||||
"id": id,
|
||||
"mode": mode,
|
||||
"title": title
|
||||
])
|
||||
}
|
||||
|
||||
/// The block id in the doc
|
||||
public var blockId: GraphQLNullable<String> {
|
||||
get { __data["blockId"] }
|
||||
set { __data["blockId"] = newValue }
|
||||
}
|
||||
|
||||
/// The element id in the doc
|
||||
public var elementId: GraphQLNullable<String> {
|
||||
get { __data["elementId"] }
|
||||
set { __data["elementId"] = newValue }
|
||||
}
|
||||
|
||||
public var id: String {
|
||||
get { __data["id"] }
|
||||
set { __data["id"] = newValue }
|
||||
}
|
||||
|
||||
public var mode: GraphQLEnum<DocMode> {
|
||||
get { __data["mode"] }
|
||||
set { __data["mode"] = newValue }
|
||||
}
|
||||
|
||||
public var title: String {
|
||||
get { __data["title"] }
|
||||
set { __data["title"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct MentionInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
doc: MentionDocInput,
|
||||
userId: String,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"doc": doc,
|
||||
"userId": userId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var doc: MentionDocInput {
|
||||
get { __data["doc"] }
|
||||
set { __data["doc"] = newValue }
|
||||
}
|
||||
|
||||
public var userId: String {
|
||||
get { __data["userId"] }
|
||||
set { __data["userId"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct PaginationInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
after: GraphQLNullable<String> = nil,
|
||||
first: GraphQLNullable<Int> = nil,
|
||||
offset: GraphQLNullable<Int> = nil
|
||||
) {
|
||||
__data = InputDict([
|
||||
"after": after,
|
||||
"first": first,
|
||||
"offset": offset
|
||||
])
|
||||
}
|
||||
|
||||
/// returns the elements in the list that come after the specified cursor.
|
||||
public var after: GraphQLNullable<String> {
|
||||
get { __data["after"] }
|
||||
set { __data["after"] = newValue }
|
||||
}
|
||||
|
||||
/// returns the first n elements from the list.
|
||||
public var first: GraphQLNullable<Int> {
|
||||
get { __data["first"] }
|
||||
set { __data["first"] = newValue }
|
||||
}
|
||||
|
||||
/// ignore the first n elements from the list.
|
||||
public var offset: GraphQLNullable<Int> {
|
||||
get { __data["offset"] }
|
||||
set { __data["offset"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,8 @@ public struct QueryChatHistoriesInput: InputObject {
|
||||
messageOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> = nil,
|
||||
sessionId: GraphQLNullable<String> = nil,
|
||||
sessionOrder: GraphQLNullable<GraphQLEnum<ChatHistoryOrder>> = nil,
|
||||
skip: GraphQLNullable<Int> = nil
|
||||
skip: GraphQLNullable<Int> = nil,
|
||||
withPrompt: GraphQLNullable<Bool> = nil
|
||||
) {
|
||||
__data = InputDict([
|
||||
"action": action,
|
||||
@@ -26,7 +27,8 @@ public struct QueryChatHistoriesInput: InputObject {
|
||||
"messageOrder": messageOrder,
|
||||
"sessionId": sessionId,
|
||||
"sessionOrder": sessionOrder,
|
||||
"skip": skip
|
||||
"skip": skip,
|
||||
"withPrompt": withPrompt
|
||||
])
|
||||
}
|
||||
|
||||
@@ -64,4 +66,9 @@ public struct QueryChatHistoriesInput: InputObject {
|
||||
get { __data["skip"] }
|
||||
set { __data["skip"] = newValue }
|
||||
}
|
||||
|
||||
public var withPrompt: GraphQLNullable<Bool> {
|
||||
get { __data["withPrompt"] }
|
||||
set { __data["withPrompt"] = newValue }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct QueryChatSessionsInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
action: GraphQLNullable<Bool> = nil
|
||||
) {
|
||||
__data = InputDict([
|
||||
"action": action
|
||||
])
|
||||
}
|
||||
|
||||
public var action: GraphQLNullable<Bool> {
|
||||
get { __data["action"] }
|
||||
set { __data["action"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextCategoryInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
categoryId: String,
|
||||
contextId: String,
|
||||
type: GraphQLEnum<ContextCategories>
|
||||
) {
|
||||
__data = InputDict([
|
||||
"categoryId": categoryId,
|
||||
"contextId": contextId,
|
||||
"type": type
|
||||
])
|
||||
}
|
||||
|
||||
public var categoryId: String {
|
||||
get { __data["categoryId"] }
|
||||
set { __data["categoryId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var type: GraphQLEnum<ContextCategories> {
|
||||
get { __data["type"] }
|
||||
set { __data["type"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextDocInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
docId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId,
|
||||
"docId": docId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextFileInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
fileId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId,
|
||||
"fileId": fileId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var fileId: String {
|
||||
get { __data["fileId"] }
|
||||
set { __data["fileId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RevokeDocUserRoleInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
docId: String,
|
||||
userId: String,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"docId": docId,
|
||||
"userId": userId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
|
||||
public var userId: String {
|
||||
get { __data["userId"] }
|
||||
set { __data["userId"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct UpdateDocDefaultRoleInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
docId: String,
|
||||
role: GraphQLEnum<DocRole>,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"docId": docId,
|
||||
"role": role,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
|
||||
public var role: GraphQLEnum<DocRole> {
|
||||
get { __data["role"] }
|
||||
set { __data["role"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct UpdateDocUserRoleInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
docId: String,
|
||||
role: GraphQLEnum<DocRole>,
|
||||
userId: String,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"docId": docId,
|
||||
"role": role,
|
||||
"userId": userId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
|
||||
public var role: GraphQLEnum<DocRole> {
|
||||
get { __data["role"] }
|
||||
set { __data["role"] = newValue }
|
||||
}
|
||||
|
||||
public var userId: String {
|
||||
get { __data["userId"] }
|
||||
set { __data["userId"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct UpdateSettingsInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
receiveInvitationEmail: GraphQLNullable<Bool> = nil,
|
||||
receiveMentionEmail: GraphQLNullable<Bool> = nil
|
||||
) {
|
||||
__data = InputDict([
|
||||
"receiveInvitationEmail": receiveInvitationEmail,
|
||||
"receiveMentionEmail": receiveMentionEmail
|
||||
])
|
||||
}
|
||||
|
||||
/// Receive invitation email
|
||||
public var receiveInvitationEmail: GraphQLNullable<Bool> {
|
||||
get { __data["receiveInvitationEmail"] }
|
||||
set { __data["receiveInvitationEmail"] = newValue }
|
||||
}
|
||||
|
||||
/// Receive mention email
|
||||
public var receiveMentionEmail: GraphQLNullable<Bool> {
|
||||
get { __data["receiveMentionEmail"] }
|
||||
set { __data["receiveMentionEmail"] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let ContextMatchedDocChunk = ApolloAPI.Object(
|
||||
typename: "ContextMatchedDocChunk",
|
||||
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 ContextMatchedFileChunk = ApolloAPI.Object(
|
||||
typename: "ContextMatchedFileChunk",
|
||||
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 ContextWorkspaceEmbeddingStatus = ApolloAPI.Object(
|
||||
typename: "ContextWorkspaceEmbeddingStatus",
|
||||
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 CopilotContext = ApolloAPI.Object(
|
||||
typename: "CopilotContext",
|
||||
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 CopilotContextCategory = ApolloAPI.Object(
|
||||
typename: "CopilotContextCategory",
|
||||
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 CopilotContextDoc = ApolloAPI.Object(
|
||||
typename: "CopilotContextDoc",
|
||||
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 CopilotContextFile = ApolloAPI.Object(
|
||||
typename: "CopilotContextFile",
|
||||
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 CopilotDocType = ApolloAPI.Object(
|
||||
typename: "CopilotDocType",
|
||||
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 CopilotSessionType = ApolloAPI.Object(
|
||||
typename: "CopilotSessionType",
|
||||
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 DocPermissions = ApolloAPI.Object(
|
||||
typename: "DocPermissions",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspacePage = ApolloAPI.Object(
|
||||
typename: "WorkspacePage",
|
||||
static let DocType = ApolloAPI.Object(
|
||||
typename: "DocType",
|
||||
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 GrantedDocUserType = ApolloAPI.Object(
|
||||
typename: "GrantedDocUserType",
|
||||
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 GrantedDocUserTypeEdge = ApolloAPI.Object(
|
||||
typename: "GrantedDocUserTypeEdge",
|
||||
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 License = ApolloAPI.Object(
|
||||
typename: "License",
|
||||
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 NotificationObjectType = ApolloAPI.Object(
|
||||
typename: "NotificationObjectType",
|
||||
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 NotificationObjectTypeEdge = ApolloAPI.Object(
|
||||
typename: "NotificationObjectTypeEdge",
|
||||
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 PageInfo = ApolloAPI.Object(
|
||||
typename: "PageInfo",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user