mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 00:41:39 +08:00
feat: update schema & bump deps (#15455)
#### PR Dependency Tree * **PR #15455** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added workspace artifact management, artifact details, and removal support. - Added workspace BYOK configuration insights, model capabilities, connection checks, and validation status. - Added profile reordering and credential revision safeguards. - **Improvements** - Improved Copilot session creation with server-provided history and metadata. - Streamlined context handling with document scope selections and selected-source synchronization. - **Bug Fixes** - Improved compatibility and reliability across web, Android, and iOS Copilot workflows. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
+3
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
|
||||
public static var fragmentDefinition: StaticString {
|
||||
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName action pinned title messages { __typename id role content attachments streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
|
||||
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName action pinned title messages { __typename id role content attachments scopeSnapshot streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
|
||||
}
|
||||
|
||||
public let __data: DataDict
|
||||
@@ -57,6 +57,7 @@ public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
|
||||
.field("role", String.self),
|
||||
.field("content", String.self),
|
||||
.field("attachments", [String]?.self),
|
||||
.field("scopeSnapshot", AffineGraphQL.JSON?.self),
|
||||
.field("streamObjects", [StreamObject]?.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
@@ -68,6 +69,7 @@ public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
|
||||
public var role: String { __data["role"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var attachments: [String]? { __data["attachments"] }
|
||||
public var scopeSnapshot: AffineGraphQL.JSON? { __data["scopeSnapshot"] }
|
||||
public var streamObjects: [StreamObject]? { __data["streamObjects"] }
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
|
||||
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextBlobMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextBlob"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextBlob($options: AddContextBlobInput!) { addContextBlob(options: $options) { __typename id createdAt status } }"#
|
||||
))
|
||||
|
||||
public var options: AddContextBlobInput
|
||||
|
||||
public init(options: AddContextBlobInput) {
|
||||
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("addContextBlob", AddContextBlob.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextBlobMutation.Data.self
|
||||
] }
|
||||
|
||||
/// add a blob to context
|
||||
public var addContextBlob: AddContextBlob { __data["addContextBlob"] }
|
||||
|
||||
/// AddContextBlob
|
||||
///
|
||||
/// Parent Type: `CopilotContextBlob`
|
||||
public struct AddContextBlob: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextBlob }
|
||||
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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextBlobMutation.Data.AddContextBlob.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
-84
@@ -1,84 +0,0 @@
|
||||
// @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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextCategoryMutation.Data.self
|
||||
] }
|
||||
|
||||
/// 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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextCategoryMutation.Data.AddContextCategory.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: `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("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextCategoryMutation.Data.AddContextCategory.Doc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
// @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 } }"#
|
||||
))
|
||||
|
||||
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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextDocMutation.Data.self
|
||||
] }
|
||||
|
||||
/// 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),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextDocMutation.Data.AddContextDoc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
-80
@@ -1,80 +0,0 @@
|
||||
// @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 mimeType 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")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextFileMutation.Data.self
|
||||
] }
|
||||
|
||||
/// 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("mimeType", String.self),
|
||||
.field("chunkSize", AffineGraphQL.SafeInt.self),
|
||||
.field("error", String?.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>.self),
|
||||
.field("blobId", String.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextFileMutation.Data.AddContextFile.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
-20
@@ -3,11 +3,11 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddWorkspaceEmbeddingFilesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addWorkspaceEmbeddingFiles"
|
||||
public class AddWorkspaceArtifactMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addWorkspaceArtifact"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addWorkspaceEmbeddingFiles($workspaceId: String!, $blob: Upload!) { addWorkspaceEmbeddingFiles(workspaceId: $workspaceId, blob: $blob) { __typename fileId fileName blobId mimeType size createdAt } }"#
|
||||
#"mutation addWorkspaceArtifact($workspaceId: String!, $blob: Upload!) { addWorkspaceArtifact(workspaceId: $workspaceId, blob: $blob) { __typename artifactId contentHash mediaType size createdAt } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -32,43 +32,41 @@ public class AddWorkspaceEmbeddingFilesMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addWorkspaceEmbeddingFiles", AddWorkspaceEmbeddingFiles.self, arguments: [
|
||||
.field("addWorkspaceArtifact", AddWorkspaceArtifact.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"blob": .variable("blob")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddWorkspaceEmbeddingFilesMutation.Data.self
|
||||
AddWorkspaceArtifactMutation.Data.self
|
||||
] }
|
||||
|
||||
/// Update workspace embedding files
|
||||
public var addWorkspaceEmbeddingFiles: AddWorkspaceEmbeddingFiles { __data["addWorkspaceEmbeddingFiles"] }
|
||||
/// Add a workspace artifact
|
||||
public var addWorkspaceArtifact: AddWorkspaceArtifact { __data["addWorkspaceArtifact"] }
|
||||
|
||||
/// AddWorkspaceEmbeddingFiles
|
||||
/// AddWorkspaceArtifact
|
||||
///
|
||||
/// Parent Type: `CopilotWorkspaceFile`
|
||||
public struct AddWorkspaceEmbeddingFiles: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `CopilotWorkspaceArtifact`
|
||||
public struct AddWorkspaceArtifact: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceFile }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifact }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("fileName", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("artifactId", String.self),
|
||||
.field("contentHash", String.self),
|
||||
.field("mediaType", String.self),
|
||||
.field("size", AffineGraphQL.SafeInt.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddWorkspaceEmbeddingFilesMutation.Data.AddWorkspaceEmbeddingFiles.self
|
||||
AddWorkspaceArtifactMutation.Data.AddWorkspaceArtifact.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var fileName: String { __data["fileName"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var artifactId: String { __data["artifactId"] }
|
||||
public var contentHash: String { __data["contentHash"] }
|
||||
public var mediaType: String { __data["mediaType"] }
|
||||
public var size: AffineGraphQL.SafeInt { __data["size"] }
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
}
|
||||
-47
@@ -1,47 +0,0 @@
|
||||
// @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")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
CreateCopilotContextMutation.Data.self
|
||||
] }
|
||||
|
||||
/// Create a context session
|
||||
public var createCopilotContext: String { __data["createCopilotContext"] }
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ProbeWorkspaceByokDraftMutation: GraphQLMutation {
|
||||
public static let operationName: String = "probeWorkspaceByokDraft"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation probeWorkspaceByokDraft($input: ProbeWorkspaceByokDraftInput!) { probeWorkspaceByokDraft(input: $input) { __typename definitionFingerprint stale connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } }"#
|
||||
))
|
||||
|
||||
public var input: ProbeWorkspaceByokDraftInput
|
||||
|
||||
public init(input: ProbeWorkspaceByokDraftInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("probeWorkspaceByokDraft", ProbeWorkspaceByokDraft.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.self
|
||||
] }
|
||||
|
||||
public var probeWorkspaceByokDraft: ProbeWorkspaceByokDraft { __data["probeWorkspaceByokDraft"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeResultType`
|
||||
public struct ProbeWorkspaceByokDraft: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("definitionFingerprint", String.self),
|
||||
.field("stale", Bool.self),
|
||||
.field("connection", Connection.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.self
|
||||
] }
|
||||
|
||||
public var definitionFingerprint: String { __data["definitionFingerprint"] }
|
||||
public var stale: Bool { __data["stale"] }
|
||||
public var connection: Connection { __data["connection"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Connection
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Connection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Connection.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("checks", [Check].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var checks: [Check] { __data["checks"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Model.Check
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeCheckType`
|
||||
public struct Check: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
|
||||
.field("status", Status.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.Check.self
|
||||
] }
|
||||
|
||||
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
|
||||
public var status: Status { __data["status"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Model.Check.Status
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Status: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.Check.Status.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+88
-30
@@ -7,24 +7,16 @@ public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
|
||||
public static let operationName: String = "probeWorkspaceByokProfile"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation probeWorkspaceByokProfile($workspaceId: String!, $profileId: ID!) { probeWorkspaceByokProfile(workspaceId: $workspaceId, profileId: $profileId) { __typename profileId probe { __typename kind testedAt errorKind } } }"#
|
||||
#"mutation probeWorkspaceByokProfile($input: ProbeWorkspaceByokProfileInput!) { probeWorkspaceByokProfile(input: $input) { __typename definitionFingerprint stale connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var profileId: ID
|
||||
public var input: ProbeWorkspaceByokProfileInput
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
profileId: ID
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.profileId = profileId
|
||||
public init(input: ProbeWorkspaceByokProfileInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"profileId": profileId
|
||||
] }
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
@@ -32,10 +24,7 @@ public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("probeWorkspaceByokProfile", ProbeWorkspaceByokProfile.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"profileId": .variable("profileId")
|
||||
]),
|
||||
.field("probeWorkspaceByokProfile", ProbeWorkspaceByokProfile.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.self
|
||||
@@ -45,46 +34,115 @@ public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
|
||||
|
||||
/// ProbeWorkspaceByokProfile
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProfileType`
|
||||
/// Parent Type: `WorkspaceByokProbeResultType`
|
||||
public struct ProbeWorkspaceByokProfile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("profileId", AffineGraphQL.ID.self),
|
||||
.field("probe", Probe.self),
|
||||
.field("definitionFingerprint", String.self),
|
||||
.field("stale", Bool.self),
|
||||
.field("connection", Connection.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.self
|
||||
] }
|
||||
|
||||
public var profileId: AffineGraphQL.ID { __data["profileId"] }
|
||||
public var probe: Probe { __data["probe"] }
|
||||
public var definitionFingerprint: String { __data["definitionFingerprint"] }
|
||||
public var stale: Bool { __data["stale"] }
|
||||
public var connection: Connection { __data["connection"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Probe
|
||||
/// ProbeWorkspaceByokProfile.Connection
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeType`
|
||||
public struct Probe: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Connection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Probe.self
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Connection.self
|
||||
] }
|
||||
|
||||
public var kind: String { __data["kind"] }
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("checks", [Check].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var checks: [Check] { __data["checks"] }
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Model.Check
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeCheckType`
|
||||
public struct Check: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
|
||||
.field("status", Status.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.Check.self
|
||||
] }
|
||||
|
||||
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
|
||||
public var status: Status { __data["status"] }
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Model.Check.Status
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Status: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.Check.Status.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextBlobMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextBlob"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextBlob($options: RemoveContextBlobInput!) { removeContextBlob(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextBlobInput
|
||||
|
||||
public init(options: RemoveContextBlobInput) {
|
||||
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("removeContextBlob", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextBlobMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a blob from context
|
||||
public var removeContextBlob: Bool { __data["removeContextBlob"] }
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextCategoryMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a category from context
|
||||
public var removeContextCategory: Bool { __data["removeContextCategory"] }
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextDocMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a doc from context
|
||||
public var removeContextDoc: Bool { __data["removeContextDoc"] }
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextFileMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a file from context
|
||||
public var removeContextFile: Bool { __data["removeContextFile"] }
|
||||
}
|
||||
}
|
||||
+12
-12
@@ -3,27 +3,27 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class QueueWorkspaceEmbeddingMutation: GraphQLMutation {
|
||||
public static let operationName: String = "queueWorkspaceEmbedding"
|
||||
public class RemoveWorkspaceArtifactMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeWorkspaceArtifact"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation queueWorkspaceEmbedding($workspaceId: String!, $docId: [String!]!) { queueWorkspaceEmbedding(workspaceId: $workspaceId, docId: $docId) }"#
|
||||
#"mutation removeWorkspaceArtifact($workspaceId: String!, $artifactId: String!) { removeWorkspaceArtifact(workspaceId: $workspaceId, artifactId: $artifactId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var docId: [String]
|
||||
public var artifactId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
docId: [String]
|
||||
artifactId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.docId = docId
|
||||
self.artifactId = artifactId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"docId": docId
|
||||
"artifactId": artifactId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
@@ -32,16 +32,16 @@ public class QueueWorkspaceEmbeddingMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("queueWorkspaceEmbedding", Bool.self, arguments: [
|
||||
.field("removeWorkspaceArtifact", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"docId": .variable("docId")
|
||||
"artifactId": .variable("artifactId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
QueueWorkspaceEmbeddingMutation.Data.self
|
||||
RemoveWorkspaceArtifactMutation.Data.self
|
||||
] }
|
||||
|
||||
/// queue workspace doc embedding
|
||||
public var queueWorkspaceEmbedding: Bool { __data["queueWorkspaceEmbedding"] }
|
||||
/// Remove a workspace artifact
|
||||
public var removeWorkspaceArtifact: Bool { __data["removeWorkspaceArtifact"] }
|
||||
}
|
||||
}
|
||||
-47
@@ -1,47 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveWorkspaceEmbeddingFilesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeWorkspaceEmbeddingFiles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeWorkspaceEmbeddingFiles($workspaceId: String!, $fileId: String!) { removeWorkspaceEmbeddingFiles(workspaceId: $workspaceId, fileId: $fileId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var fileId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
fileId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.fileId = fileId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"fileId": fileId
|
||||
] }
|
||||
|
||||
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("removeWorkspaceEmbeddingFiles", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"fileId": .variable("fileId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveWorkspaceEmbeddingFilesMutation.Data.self
|
||||
] }
|
||||
|
||||
/// Remove workspace embedding files
|
||||
public var removeWorkspaceEmbeddingFiles: Bool { __data["removeWorkspaceEmbeddingFiles"] }
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ReorderWorkspaceByokProfilesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "reorderWorkspaceByokProfiles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation reorderWorkspaceByokProfiles($input: ReorderWorkspaceByokProfilesInput!) { reorderWorkspaceByokProfiles(input: $input) { __typename profileId sortOrder revision } }"#
|
||||
))
|
||||
|
||||
public var input: ReorderWorkspaceByokProfilesInput
|
||||
|
||||
public init(input: ReorderWorkspaceByokProfilesInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("reorderWorkspaceByokProfiles", [ReorderWorkspaceByokProfile].self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ReorderWorkspaceByokProfilesMutation.Data.self
|
||||
] }
|
||||
|
||||
public var reorderWorkspaceByokProfiles: [ReorderWorkspaceByokProfile] { __data["reorderWorkspaceByokProfiles"] }
|
||||
|
||||
/// ReorderWorkspaceByokProfile
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProfileType`
|
||||
public struct ReorderWorkspaceByokProfile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("profileId", AffineGraphQL.ID.self),
|
||||
.field("sortOrder", AffineGraphQL.SafeInt.self),
|
||||
.field("revision", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ReorderWorkspaceByokProfilesMutation.Data.ReorderWorkspaceByokProfile.self
|
||||
] }
|
||||
|
||||
public var profileId: AffineGraphQL.ID { __data["profileId"] }
|
||||
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
|
||||
public var revision: AffineGraphQL.SafeInt { __data["revision"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
+31
-29
@@ -3,11 +3,11 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspaceEmbeddingFiles"
|
||||
public class GetWorkspaceArtifactsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspaceArtifacts"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getWorkspaceEmbeddingFiles($workspaceId: String!, $pagination: PaginationInput!) { workspace(id: $workspaceId) { __typename embedding { __typename files(pagination: $pagination) { __typename totalCount pageInfo { __typename endCursor hasNextPage } edges { __typename node { __typename fileId fileName blobId mimeType size createdAt } } } } } }"#
|
||||
#"query getWorkspaceArtifacts($workspaceId: String!, $pagination: PaginationInput!) { workspace(id: $workspaceId) { __typename embedding { __typename artifacts(pagination: $pagination) { __typename totalCount pageInfo { __typename endCursor hasNextPage } edges { __typename node { __typename artifactId contentHash fileName embeddingStatus mediaType size createdAt } } } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -35,7 +35,7 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.self
|
||||
GetWorkspaceArtifactsQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get workspace by id
|
||||
@@ -54,7 +54,7 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("embedding", Embedding.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.self
|
||||
] }
|
||||
|
||||
public var embedding: Embedding { __data["embedding"] }
|
||||
@@ -69,22 +69,22 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceConfig }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("files", Files.self, arguments: ["pagination": .variable("pagination")]),
|
||||
.field("artifacts", Artifacts.self, arguments: ["pagination": .variable("pagination")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.self
|
||||
] }
|
||||
|
||||
public var files: Files { __data["files"] }
|
||||
public var artifacts: Artifacts { __data["artifacts"] }
|
||||
|
||||
/// Workspace.Embedding.Files
|
||||
/// Workspace.Embedding.Artifacts
|
||||
///
|
||||
/// Parent Type: `PaginatedCopilotWorkspaceFileType`
|
||||
public struct Files: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `PaginatedCopilotWorkspaceArtifactType`
|
||||
public struct Artifacts: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedCopilotWorkspaceFileType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedCopilotWorkspaceArtifactType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("totalCount", Int.self),
|
||||
@@ -92,14 +92,14 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("edges", [Edge].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.self
|
||||
] }
|
||||
|
||||
public var totalCount: Int { __data["totalCount"] }
|
||||
public var pageInfo: PageInfo { __data["pageInfo"] }
|
||||
public var edges: [Edge] { __data["edges"] }
|
||||
|
||||
/// Workspace.Embedding.Files.PageInfo
|
||||
/// Workspace.Embedding.Artifacts.PageInfo
|
||||
///
|
||||
/// Parent Type: `PageInfo`
|
||||
public struct PageInfo: AffineGraphQL.SelectionSet {
|
||||
@@ -113,56 +113,58 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("hasNextPage", Bool.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.PageInfo.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.PageInfo.self
|
||||
] }
|
||||
|
||||
public var endCursor: String? { __data["endCursor"] }
|
||||
public var hasNextPage: Bool { __data["hasNextPage"] }
|
||||
}
|
||||
|
||||
/// Workspace.Embedding.Files.Edge
|
||||
/// Workspace.Embedding.Artifacts.Edge
|
||||
///
|
||||
/// Parent Type: `CopilotWorkspaceFileTypeEdge`
|
||||
/// Parent Type: `CopilotWorkspaceArtifactTypeEdge`
|
||||
public struct Edge: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceFileTypeEdge }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifactTypeEdge }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("node", Node.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.Edge.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.Edge.self
|
||||
] }
|
||||
|
||||
public var node: Node { __data["node"] }
|
||||
|
||||
/// Workspace.Embedding.Files.Edge.Node
|
||||
/// Workspace.Embedding.Artifacts.Edge.Node
|
||||
///
|
||||
/// Parent Type: `CopilotWorkspaceFile`
|
||||
/// Parent Type: `CopilotWorkspaceArtifact`
|
||||
public struct Node: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceFile }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifact }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("artifactId", String.self),
|
||||
.field("contentHash", String.self),
|
||||
.field("fileName", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("embeddingStatus", String.self),
|
||||
.field("mediaType", String.self),
|
||||
.field("size", AffineGraphQL.SafeInt.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.Edge.Node.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.Edge.Node.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var artifactId: String { __data["artifactId"] }
|
||||
public var contentHash: String { __data["contentHash"] }
|
||||
public var fileName: String { __data["fileName"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var embeddingStatus: String { __data["embeddingStatus"] }
|
||||
public var mediaType: String { __data["mediaType"] }
|
||||
public var size: AffineGraphQL.SafeInt { __data["size"] }
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
}
|
||||
-297
@@ -1,297 +0,0 @@
|
||||
// @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 blobs { __typename id status createdAt } docs { __typename id status createdAt } files { __typename id name mimeType 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),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.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: [
|
||||
"sessionId": .variable("sessionId"),
|
||||
"contextId": .variable("contextId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// 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("blobs", [Blob].self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("files", [File].self),
|
||||
.field("tags", [Tag].self),
|
||||
.field("collections", [Collection].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// list blobs in context
|
||||
public var blobs: [Blob] { __data["blobs"] }
|
||||
/// 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.Blob
|
||||
///
|
||||
/// Parent Type: `CopilotContextBlob`
|
||||
public struct Blob: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextBlob }
|
||||
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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Blob.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.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("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Doc.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.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("mimeType", 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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.File.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Tag.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: `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("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Tag.Doc.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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Collection.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: `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("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Collection.Doc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-104
@@ -1,104 +0,0 @@
|
||||
// @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),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.CurrentUser.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: ["sessionId": .variable("sessionId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// 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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID? { __data["id"] }
|
||||
public var workspaceId: String { __data["workspaceId"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-188
@@ -1,188 +0,0 @@
|
||||
// @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, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(contextId: $contextId) { __typename matchFiles( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename fileId blobId name mimeType chunk content distance } matchWorkspaceDocs( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename docId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: GraphQLNullable<String>
|
||||
public var workspaceId: GraphQLNullable<String>
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
public var scopedThreshold: GraphQLNullable<Double>
|
||||
public var threshold: GraphQLNullable<Double>
|
||||
|
||||
public init(
|
||||
contextId: GraphQLNullable<String>,
|
||||
workspaceId: GraphQLNullable<String>,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>,
|
||||
scopedThreshold: GraphQLNullable<Double>,
|
||||
threshold: GraphQLNullable<Double>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.workspaceId = workspaceId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
self.scopedThreshold = scopedThreshold
|
||||
self.threshold = threshold
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"workspaceId": workspaceId,
|
||||
"content": content,
|
||||
"limit": limit,
|
||||
"scopedThreshold": scopedThreshold,
|
||||
"threshold": threshold
|
||||
] }
|
||||
|
||||
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),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// 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("matchFiles", [MatchFile].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
.field("matchWorkspaceDocs", [MatchWorkspaceDoc].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// match file in context
|
||||
public var matchFiles: [MatchFile] { __data["matchFiles"] }
|
||||
/// match workspace docs
|
||||
public var matchWorkspaceDocs: [MatchWorkspaceDoc] { __data["matchWorkspaceDocs"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchFile
|
||||
///
|
||||
/// Parent Type: `ContextMatchedFileChunk`
|
||||
public struct MatchFile: 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("blobId", String.self),
|
||||
.field("name", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.Context.MatchFile.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchWorkspaceDoc
|
||||
///
|
||||
/// Parent Type: `ContextMatchedDocChunk`
|
||||
public struct MatchWorkspaceDoc: 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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.Context.MatchWorkspaceDoc.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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-151
@@ -1,151 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchFilesQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchFiles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchFiles($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(contextId: $contextId) { __typename matchFiles( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename fileId blobId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: GraphQLNullable<String>
|
||||
public var workspaceId: GraphQLNullable<String>
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
public var scopedThreshold: GraphQLNullable<Double>
|
||||
public var threshold: GraphQLNullable<Double>
|
||||
|
||||
public init(
|
||||
contextId: GraphQLNullable<String>,
|
||||
workspaceId: GraphQLNullable<String>,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>,
|
||||
scopedThreshold: GraphQLNullable<Double>,
|
||||
threshold: GraphQLNullable<Double>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.workspaceId = workspaceId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
self.scopedThreshold = scopedThreshold
|
||||
self.threshold = threshold
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"workspaceId": workspaceId,
|
||||
"content": content,
|
||||
"limit": limit,
|
||||
"scopedThreshold": scopedThreshold,
|
||||
"threshold": threshold
|
||||
] }
|
||||
|
||||
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),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// 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("matchFiles", [MatchFile].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// match file in context
|
||||
public var matchFiles: [MatchFile] { __data["matchFiles"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchFile
|
||||
///
|
||||
/// Parent Type: `ContextMatchedFileChunk`
|
||||
public struct MatchFile: 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("blobId", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.Copilot.Context.MatchFile.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-149
@@ -1,149 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchWorkspaceDocsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchWorkspaceDocs"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchWorkspaceDocs($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(contextId: $contextId) { __typename matchWorkspaceDocs( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename docId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: GraphQLNullable<String>
|
||||
public var workspaceId: GraphQLNullable<String>
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
public var scopedThreshold: GraphQLNullable<Double>
|
||||
public var threshold: GraphQLNullable<Double>
|
||||
|
||||
public init(
|
||||
contextId: GraphQLNullable<String>,
|
||||
workspaceId: GraphQLNullable<String>,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>,
|
||||
scopedThreshold: GraphQLNullable<Double>,
|
||||
threshold: GraphQLNullable<Double>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.workspaceId = workspaceId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
self.scopedThreshold = scopedThreshold
|
||||
self.threshold = threshold
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"workspaceId": workspaceId,
|
||||
"content": content,
|
||||
"limit": limit,
|
||||
"scopedThreshold": scopedThreshold,
|
||||
"threshold": threshold
|
||||
] }
|
||||
|
||||
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),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.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")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// 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("matchWorkspaceDocs", [MatchWorkspaceDoc].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// match workspace docs
|
||||
public var matchWorkspaceDocs: [MatchWorkspaceDoc] { __data["matchWorkspaceDocs"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchWorkspaceDoc
|
||||
///
|
||||
/// Parent Type: `ContextMatchedDocChunk`
|
||||
public struct MatchWorkspaceDoc: 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 static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.Copilot.Context.MatchWorkspaceDoc.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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+245
-34
@@ -7,7 +7,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "workspaceByokSettings"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query workspaceByokSettings($id: String!, $from: DateTime!, $to: DateTime!) { workspace(id: $id) { __typename id byokSettings { __typename workspaceId entitled serverEntitled localEntitled allowedProviders customEndpointSupported privateEndpointSupported profiles { __typename profileId provider name description enabled sortOrder definition { __typename version endpoint { __typename kind url } models { __typename modelId capabilities { __typename input output features attachmentKinds attachmentSources } } } probe { __typename kind testedAt errorKind } } } byokUsage(from: $from, to: $to) { __typename date featureKind totalTokens } } }"#
|
||||
#"query workspaceByokSettings($id: String!, $from: DateTime!, $to: DateTime!) { workspace(id: $id) { __typename id byokSettings { __typename workspaceId entitled serverEntitled localEntitled policy { __typename enabled allowedProviders customEndpointMode privateEndpointSupported } catalog { __typename version providers { __typename provider models { __typename modelId displayName recommended capabilities { __typename input output features attachmentKinds attachmentSources } } } } profiles { __typename profileId provider name description enabled sortOrder revision definition { __typename endpoint { __typename kind url dialect } models { __typename modelId enabled capabilities { __typename input output features attachmentKinds attachmentSources } } } validation { __typename definitionFingerprint credentialGeneration connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } } } byokUsage(from: $from, to: $to) { __typename date featureKind totalTokens } } }"#
|
||||
))
|
||||
|
||||
public var id: String
|
||||
@@ -84,9 +84,8 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
.field("entitled", Bool.self),
|
||||
.field("serverEntitled", Bool.self),
|
||||
.field("localEntitled", Bool.self),
|
||||
.field("allowedProviders", [GraphQLEnum<AffineGraphQL.ByokProvider>].self),
|
||||
.field("customEndpointSupported", Bool.self),
|
||||
.field("privateEndpointSupported", Bool.self),
|
||||
.field("policy", Policy.self),
|
||||
.field("catalog", Catalog.self),
|
||||
.field("profiles", [Profile].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
@@ -97,11 +96,129 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public var entitled: Bool { __data["entitled"] }
|
||||
public var serverEntitled: Bool { __data["serverEntitled"] }
|
||||
public var localEntitled: Bool { __data["localEntitled"] }
|
||||
public var allowedProviders: [GraphQLEnum<AffineGraphQL.ByokProvider>] { __data["allowedProviders"] }
|
||||
public var customEndpointSupported: Bool { __data["customEndpointSupported"] }
|
||||
public var privateEndpointSupported: Bool { __data["privateEndpointSupported"] }
|
||||
public var policy: Policy { __data["policy"] }
|
||||
public var catalog: Catalog { __data["catalog"] }
|
||||
public var profiles: [Profile] { __data["profiles"] }
|
||||
|
||||
/// Workspace.ByokSettings.Policy
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokPolicyType`
|
||||
public struct Policy: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokPolicyType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("enabled", Bool.self),
|
||||
.field("allowedProviders", [GraphQLEnum<AffineGraphQL.ByokProvider>].self),
|
||||
.field("customEndpointMode", GraphQLEnum<AffineGraphQL.ByokCustomEndpointMode>.self),
|
||||
.field("privateEndpointSupported", Bool.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Policy.self
|
||||
] }
|
||||
|
||||
public var enabled: Bool { __data["enabled"] }
|
||||
public var allowedProviders: [GraphQLEnum<AffineGraphQL.ByokProvider>] { __data["allowedProviders"] }
|
||||
public var customEndpointMode: GraphQLEnum<AffineGraphQL.ByokCustomEndpointMode> { __data["customEndpointMode"] }
|
||||
public var privateEndpointSupported: Bool { __data["privateEndpointSupported"] }
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Catalog
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCatalogType`
|
||||
public struct Catalog: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCatalogType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("version", String.self),
|
||||
.field("providers", [Provider].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.self
|
||||
] }
|
||||
|
||||
public var version: String { __data["version"] }
|
||||
public var providers: [Provider] { __data["providers"] }
|
||||
|
||||
/// Workspace.ByokSettings.Catalog.Provider
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCatalogProviderType`
|
||||
public struct Provider: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCatalogProviderType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("provider", GraphQLEnum<AffineGraphQL.ByokProvider>.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.Provider.self
|
||||
] }
|
||||
|
||||
public var provider: GraphQLEnum<AffineGraphQL.ByokProvider> { __data["provider"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// Workspace.ByokSettings.Catalog.Provider.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCatalogModelType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCatalogModelType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("displayName", String.self),
|
||||
.field("recommended", Bool.self),
|
||||
.field("capabilities", [Capability].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.Provider.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var displayName: String { __data["displayName"] }
|
||||
public var recommended: Bool { __data["recommended"] }
|
||||
public var capabilities: [Capability] { __data["capabilities"] }
|
||||
|
||||
/// Workspace.ByokSettings.Catalog.Provider.Model.Capability
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCapabilityType`
|
||||
public struct Capability: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCapabilityType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("input", [GraphQLEnum<AffineGraphQL.ByokModelInput>].self),
|
||||
.field("output", [GraphQLEnum<AffineGraphQL.ByokModelOutput>].self),
|
||||
.field("features", [GraphQLEnum<AffineGraphQL.ByokModelFeature>].self),
|
||||
.field("attachmentKinds", [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>].self),
|
||||
.field("attachmentSources", [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.Provider.Model.Capability.self
|
||||
] }
|
||||
|
||||
public var input: [GraphQLEnum<AffineGraphQL.ByokModelInput>] { __data["input"] }
|
||||
public var output: [GraphQLEnum<AffineGraphQL.ByokModelOutput>] { __data["output"] }
|
||||
public var features: [GraphQLEnum<AffineGraphQL.ByokModelFeature>] { __data["features"] }
|
||||
public var attachmentKinds: [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>] { __data["attachmentKinds"] }
|
||||
public var attachmentSources: [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>] { __data["attachmentSources"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProfileType`
|
||||
@@ -118,8 +235,9 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
.field("description", String?.self),
|
||||
.field("enabled", Bool.self),
|
||||
.field("sortOrder", AffineGraphQL.SafeInt.self),
|
||||
.field("revision", AffineGraphQL.SafeInt.self),
|
||||
.field("definition", Definition.self),
|
||||
.field("probe", Probe.self),
|
||||
.field("validation", Validation?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.self
|
||||
@@ -131,8 +249,9 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public var description: String? { __data["description"] }
|
||||
public var enabled: Bool { __data["enabled"] }
|
||||
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
|
||||
public var revision: AffineGraphQL.SafeInt { __data["revision"] }
|
||||
public var definition: Definition { __data["definition"] }
|
||||
public var probe: Probe { __data["probe"] }
|
||||
public var validation: Validation? { __data["validation"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Definition
|
||||
///
|
||||
@@ -144,7 +263,6 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileDefinitionType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("version", AffineGraphQL.SafeInt.self),
|
||||
.field("endpoint", Endpoint.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
@@ -152,7 +270,6 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.self
|
||||
] }
|
||||
|
||||
public var version: AffineGraphQL.SafeInt { __data["version"] }
|
||||
public var endpoint: Endpoint { __data["endpoint"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
@@ -166,15 +283,17 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokEndpointType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokEndpointKind>.self),
|
||||
.field("url", String?.self),
|
||||
.field("dialect", GraphQLEnum<AffineGraphQL.ByokOpenAiDialect>?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Endpoint.self
|
||||
] }
|
||||
|
||||
public var kind: String { __data["kind"] }
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokEndpointKind> { __data["kind"] }
|
||||
public var url: String? { __data["url"] }
|
||||
public var dialect: GraphQLEnum<AffineGraphQL.ByokOpenAiDialect>? { __data["dialect"] }
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Definition.Model
|
||||
@@ -188,6 +307,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("enabled", Bool.self),
|
||||
.field("capabilities", [Capability].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
@@ -195,6 +315,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var enabled: Bool { __data["enabled"] }
|
||||
public var capabilities: [Capability] { __data["capabilities"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Definition.Model.Capability
|
||||
@@ -207,46 +328,136 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCapabilityType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("input", [String].self),
|
||||
.field("output", [String].self),
|
||||
.field("features", [String].self),
|
||||
.field("attachmentKinds", [String].self),
|
||||
.field("attachmentSources", [String].self),
|
||||
.field("input", [GraphQLEnum<AffineGraphQL.ByokModelInput>].self),
|
||||
.field("output", [GraphQLEnum<AffineGraphQL.ByokModelOutput>].self),
|
||||
.field("features", [GraphQLEnum<AffineGraphQL.ByokModelFeature>].self),
|
||||
.field("attachmentKinds", [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>].self),
|
||||
.field("attachmentSources", [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Model.Capability.self
|
||||
] }
|
||||
|
||||
public var input: [String] { __data["input"] }
|
||||
public var output: [String] { __data["output"] }
|
||||
public var features: [String] { __data["features"] }
|
||||
public var attachmentKinds: [String] { __data["attachmentKinds"] }
|
||||
public var attachmentSources: [String] { __data["attachmentSources"] }
|
||||
public var input: [GraphQLEnum<AffineGraphQL.ByokModelInput>] { __data["input"] }
|
||||
public var output: [GraphQLEnum<AffineGraphQL.ByokModelOutput>] { __data["output"] }
|
||||
public var features: [GraphQLEnum<AffineGraphQL.ByokModelFeature>] { __data["features"] }
|
||||
public var attachmentKinds: [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>] { __data["attachmentKinds"] }
|
||||
public var attachmentSources: [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>] { __data["attachmentSources"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Probe
|
||||
/// Workspace.ByokSettings.Profile.Validation
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeType`
|
||||
public struct Probe: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `WorkspaceByokValidationType`
|
||||
public struct Validation: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokValidationType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", String.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
.field("definitionFingerprint", String.self),
|
||||
.field("credentialGeneration", AffineGraphQL.SafeInt.self),
|
||||
.field("connection", Connection.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Probe.self
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.self
|
||||
] }
|
||||
|
||||
public var kind: String { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
public var definitionFingerprint: String { __data["definitionFingerprint"] }
|
||||
public var credentialGeneration: AffineGraphQL.SafeInt { __data["credentialGeneration"] }
|
||||
public var connection: Connection { __data["connection"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Connection
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Connection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Connection.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("checks", [Check].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var checks: [Check] { __data["checks"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Model.Check
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeCheckType`
|
||||
public struct Check: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
|
||||
.field("status", Status.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Model.Check.self
|
||||
] }
|
||||
|
||||
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
|
||||
public var status: Status { __data["status"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Model.Check.Status
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Status: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Model.Check.Status.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokAttachmentKind: String, EnumType {
|
||||
case audio = "audio"
|
||||
case file = "file"
|
||||
case image = "image"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokAttachmentSource: String, EnumType {
|
||||
case bytes = "bytes"
|
||||
case data = "data"
|
||||
case fileHandle = "file_handle"
|
||||
case url = "url"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokCustomEndpointMode: String, EnumType {
|
||||
case disabled = "disabled"
|
||||
case enabled = "enabled"
|
||||
case unavailable = "unavailable"
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokEndpointKind: String, EnumType {
|
||||
case openaiCompatible = "openai_compatible"
|
||||
case providerDefault = "provider_default"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokModelFeature: String, EnumType {
|
||||
case reasoning = "reasoning"
|
||||
case toolCalling = "tool_calling"
|
||||
case webSearch = "web_search"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokModelInput: String, EnumType {
|
||||
case audio = "audio"
|
||||
case file = "file"
|
||||
case image = "image"
|
||||
case text = "text"
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokModelOutput: String, EnumType {
|
||||
case embedding = "embedding"
|
||||
case image = "image"
|
||||
case object = "object"
|
||||
case rerank = "rerank"
|
||||
case structured = "structured"
|
||||
case text = "text"
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokOpenAiDialect: String, EnumType {
|
||||
case chatCompletions = "chat_completions"
|
||||
case responses = "responses"
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokProbeOperation: String, EnumType {
|
||||
case chat = "chat"
|
||||
case embedding = "embedding"
|
||||
case image = "image"
|
||||
case rerank = "rerank"
|
||||
case structured = "structured"
|
||||
case toolCalling = "tool_calling"
|
||||
case transcript = "transcript"
|
||||
case vision = "vision"
|
||||
}
|
||||
+3
-3
@@ -3,8 +3,8 @@
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ContextEmbedStatus: String, EnumType {
|
||||
public enum ByokProbeStatusKind: String, EnumType {
|
||||
case failed = "failed"
|
||||
case finished = "finished"
|
||||
case processing = "processing"
|
||||
case notTested = "not_tested"
|
||||
case verified = "verified"
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ContextCategories: String, EnumType {
|
||||
case collection = "Collection"
|
||||
case tag = "Tag"
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextBlobInput: 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 }
|
||||
}
|
||||
}
|
||||
-46
@@ -1,46 +0,0 @@
|
||||
// @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 }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @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 }
|
||||
}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
// @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(
|
||||
contextId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ProbeWorkspaceByokDraftInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
checks: [WorkspaceByokProbeCheckInput],
|
||||
credential: GraphQLNullable<String> = nil,
|
||||
definition: WorkspaceByokProfileDefinitionInput,
|
||||
expectedRevision: GraphQLNullable<SafeInt> = nil,
|
||||
profileId: GraphQLNullable<ID> = nil,
|
||||
provider: GraphQLEnum<ByokProvider>,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"checks": checks,
|
||||
"credential": credential,
|
||||
"definition": definition,
|
||||
"expectedRevision": expectedRevision,
|
||||
"profileId": profileId,
|
||||
"provider": provider,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var checks: [WorkspaceByokProbeCheckInput] {
|
||||
get { __data["checks"] }
|
||||
set { __data["checks"] = newValue }
|
||||
}
|
||||
|
||||
public var credential: GraphQLNullable<String> {
|
||||
get { __data["credential"] }
|
||||
set { __data["credential"] = newValue }
|
||||
}
|
||||
|
||||
public var definition: WorkspaceByokProfileDefinitionInput {
|
||||
get { __data["definition"] }
|
||||
set { __data["definition"] = newValue }
|
||||
}
|
||||
|
||||
public var expectedRevision: GraphQLNullable<SafeInt> {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: GraphQLNullable<ID> {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
}
|
||||
|
||||
public var provider: GraphQLEnum<ByokProvider> {
|
||||
get { __data["provider"] }
|
||||
set { __data["provider"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ProbeWorkspaceByokProfileInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
checks: [WorkspaceByokProbeCheckInput],
|
||||
profileId: ID,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"checks": checks,
|
||||
"profileId": profileId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var checks: [WorkspaceByokProbeCheckInput] {
|
||||
get { __data["checks"] }
|
||||
set { __data["checks"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: ID {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextBlobInput: 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 }
|
||||
}
|
||||
}
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
// @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 }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @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 }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @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 }
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ReorderWorkspaceByokProfilesInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
profiles: [WorkspaceByokProfileOrderInput],
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"profiles": profiles,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var profiles: [WorkspaceByokProfileOrderInput] {
|
||||
get { __data["profiles"] }
|
||||
set { __data["profiles"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
+14
@@ -11,23 +11,32 @@ public struct ReplaceWorkspaceByokProfileInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
credential: GraphQLNullable<String> = nil,
|
||||
definition: WorkspaceByokProfileDefinitionInput,
|
||||
description: GraphQLNullable<String> = nil,
|
||||
enabled: Bool,
|
||||
expectedRevision: SafeInt,
|
||||
name: String,
|
||||
profileId: ID,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"credential": credential,
|
||||
"definition": definition,
|
||||
"description": description,
|
||||
"enabled": enabled,
|
||||
"expectedRevision": expectedRevision,
|
||||
"name": name,
|
||||
"profileId": profileId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var credential: GraphQLNullable<String> {
|
||||
get { __data["credential"] }
|
||||
set { __data["credential"] = newValue }
|
||||
}
|
||||
|
||||
public var definition: WorkspaceByokProfileDefinitionInput {
|
||||
get { __data["definition"] }
|
||||
set { __data["definition"] = newValue }
|
||||
@@ -43,6 +52,11 @@ public struct ReplaceWorkspaceByokProfileInput: InputObject {
|
||||
set { __data["enabled"] = newValue }
|
||||
}
|
||||
|
||||
public var expectedRevision: SafeInt {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var name: String {
|
||||
get { __data["name"] }
|
||||
set { __data["name"] = newValue }
|
||||
|
||||
+7
@@ -12,11 +12,13 @@ public struct RotateWorkspaceByokCredentialInput: InputObject {
|
||||
|
||||
public init(
|
||||
credential: String,
|
||||
expectedRevision: SafeInt,
|
||||
profileId: ID,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"credential": credential,
|
||||
"expectedRevision": expectedRevision,
|
||||
"profileId": profileId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
@@ -27,6 +29,11 @@ public struct RotateWorkspaceByokCredentialInput: InputObject {
|
||||
set { __data["credential"] = newValue }
|
||||
}
|
||||
|
||||
public var expectedRevision: SafeInt {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: ID {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
|
||||
+10
-10
@@ -11,11 +11,11 @@ public struct WorkspaceByokCapabilityInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
attachmentKinds: [String],
|
||||
attachmentSources: [String],
|
||||
features: [String],
|
||||
input: [String],
|
||||
output: [String]
|
||||
attachmentKinds: [GraphQLEnum<ByokAttachmentKind>],
|
||||
attachmentSources: [GraphQLEnum<ByokAttachmentSource>],
|
||||
features: [GraphQLEnum<ByokModelFeature>],
|
||||
input: [GraphQLEnum<ByokModelInput>],
|
||||
output: [GraphQLEnum<ByokModelOutput>]
|
||||
) {
|
||||
__data = InputDict([
|
||||
"attachmentKinds": attachmentKinds,
|
||||
@@ -26,27 +26,27 @@ public struct WorkspaceByokCapabilityInput: InputObject {
|
||||
])
|
||||
}
|
||||
|
||||
public var attachmentKinds: [String] {
|
||||
public var attachmentKinds: [GraphQLEnum<ByokAttachmentKind>] {
|
||||
get { __data["attachmentKinds"] }
|
||||
set { __data["attachmentKinds"] = newValue }
|
||||
}
|
||||
|
||||
public var attachmentSources: [String] {
|
||||
public var attachmentSources: [GraphQLEnum<ByokAttachmentSource>] {
|
||||
get { __data["attachmentSources"] }
|
||||
set { __data["attachmentSources"] = newValue }
|
||||
}
|
||||
|
||||
public var features: [String] {
|
||||
public var features: [GraphQLEnum<ByokModelFeature>] {
|
||||
get { __data["features"] }
|
||||
set { __data["features"] = newValue }
|
||||
}
|
||||
|
||||
public var input: [String] {
|
||||
public var input: [GraphQLEnum<ByokModelInput>] {
|
||||
get { __data["input"] }
|
||||
set { __data["input"] = newValue }
|
||||
}
|
||||
|
||||
public var output: [String] {
|
||||
public var output: [GraphQLEnum<ByokModelOutput>] {
|
||||
get { __data["output"] }
|
||||
set { __data["output"] = newValue }
|
||||
}
|
||||
|
||||
+9
-2
@@ -11,16 +11,23 @@ public struct WorkspaceByokEndpointInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
kind: String,
|
||||
dialect: GraphQLNullable<GraphQLEnum<ByokOpenAiDialect>> = nil,
|
||||
kind: GraphQLEnum<ByokEndpointKind>,
|
||||
url: GraphQLNullable<String> = nil
|
||||
) {
|
||||
__data = InputDict([
|
||||
"dialect": dialect,
|
||||
"kind": kind,
|
||||
"url": url
|
||||
])
|
||||
}
|
||||
|
||||
public var kind: String {
|
||||
public var dialect: GraphQLNullable<GraphQLEnum<ByokOpenAiDialect>> {
|
||||
get { __data["dialect"] }
|
||||
set { __data["dialect"] = newValue }
|
||||
}
|
||||
|
||||
public var kind: GraphQLEnum<ByokEndpointKind> {
|
||||
get { __data["kind"] }
|
||||
set { __data["kind"] = newValue }
|
||||
}
|
||||
|
||||
+7
@@ -12,10 +12,12 @@ public struct WorkspaceByokModelDeclarationInput: InputObject {
|
||||
|
||||
public init(
|
||||
capabilities: [WorkspaceByokCapabilityInput],
|
||||
enabled: Bool,
|
||||
modelId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"capabilities": capabilities,
|
||||
"enabled": enabled,
|
||||
"modelId": modelId
|
||||
])
|
||||
}
|
||||
@@ -25,6 +27,11 @@ public struct WorkspaceByokModelDeclarationInput: InputObject {
|
||||
set { __data["capabilities"] = newValue }
|
||||
}
|
||||
|
||||
public var enabled: Bool {
|
||||
get { __data["enabled"] }
|
||||
set { __data["enabled"] = newValue }
|
||||
}
|
||||
|
||||
public var modelId: String {
|
||||
get { __data["modelId"] }
|
||||
set { __data["modelId"] = newValue }
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct WorkspaceByokProbeCheckInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
modelId: String,
|
||||
operation: GraphQLEnum<ByokProbeOperation>
|
||||
) {
|
||||
__data = InputDict([
|
||||
"modelId": modelId,
|
||||
"operation": operation
|
||||
])
|
||||
}
|
||||
|
||||
public var modelId: String {
|
||||
get { __data["modelId"] }
|
||||
set { __data["modelId"] = newValue }
|
||||
}
|
||||
|
||||
public var operation: GraphQLEnum<ByokProbeOperation> {
|
||||
get { __data["operation"] }
|
||||
set { __data["operation"] = newValue }
|
||||
}
|
||||
}
|
||||
+2
-9
@@ -12,13 +12,11 @@ public struct WorkspaceByokProfileDefinitionInput: InputObject {
|
||||
|
||||
public init(
|
||||
endpoint: WorkspaceByokEndpointInput,
|
||||
models: [WorkspaceByokModelDeclarationInput],
|
||||
version: SafeInt
|
||||
models: [WorkspaceByokModelDeclarationInput]
|
||||
) {
|
||||
__data = InputDict([
|
||||
"endpoint": endpoint,
|
||||
"models": models,
|
||||
"version": version
|
||||
"models": models
|
||||
])
|
||||
}
|
||||
|
||||
@@ -31,9 +29,4 @@ public struct WorkspaceByokProfileDefinitionInput: InputObject {
|
||||
get { __data["models"] }
|
||||
set { __data["models"] = newValue }
|
||||
}
|
||||
|
||||
public var version: SafeInt {
|
||||
get { __data["version"] }
|
||||
set { __data["version"] = newValue }
|
||||
}
|
||||
}
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct WorkspaceByokProfileOrderInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
expectedRevision: SafeInt,
|
||||
profileId: ID
|
||||
) {
|
||||
__data = InputDict([
|
||||
"expectedRevision": expectedRevision,
|
||||
"profileId": profileId
|
||||
])
|
||||
}
|
||||
|
||||
public var expectedRevision: SafeInt {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: ID {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
}
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @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
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @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
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @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
|
||||
)
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContextBlob = ApolloAPI.Object(
|
||||
typename: "CopilotContextBlob",
|
||||
static let CopilotWorkspaceArtifact = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceArtifact",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotWorkspaceArtifactTypeEdge = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceArtifactTypeEdge",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotWorkspaceFile = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceFile",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotWorkspaceFileTypeEdge = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceFileTypeEdge",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let PaginatedCopilotWorkspaceArtifactType = ApolloAPI.Object(
|
||||
typename: "PaginatedCopilotWorkspaceArtifactType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let PaginatedCopilotWorkspaceFileType = ApolloAPI.Object(
|
||||
typename: "PaginatedCopilotWorkspaceFileType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokCatalogModelType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokCatalogModelType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokCatalogProviderType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokCatalogProviderType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let ContextMatchedFileChunk = ApolloAPI.Object(
|
||||
typename: "ContextMatchedFileChunk",
|
||||
static let WorkspaceByokCatalogType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokCatalogType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokModelProbeCheckType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokModelProbeCheckType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let ContextMatchedDocChunk = ApolloAPI.Object(
|
||||
typename: "ContextMatchedDocChunk",
|
||||
static let WorkspaceByokModelProbeType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokModelProbeType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContext = ApolloAPI.Object(
|
||||
typename: "CopilotContext",
|
||||
static let WorkspaceByokPolicyType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokPolicyType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokProbeResultType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokProbeResultType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokProbeStatusType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokProbeStatusType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokProbeType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokProbeType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokValidationType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokValidationType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
-11
@@ -51,22 +51,15 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
"CommentChangeObjectTypeEdge": AffineGraphQL.Objects.CommentChangeObjectTypeEdge,
|
||||
"CommentObjectType": AffineGraphQL.Objects.CommentObjectType,
|
||||
"CommentObjectTypeEdge": AffineGraphQL.Objects.CommentObjectTypeEdge,
|
||||
"ContextMatchedDocChunk": AffineGraphQL.Objects.ContextMatchedDocChunk,
|
||||
"ContextMatchedFileChunk": AffineGraphQL.Objects.ContextMatchedFileChunk,
|
||||
"Copilot": AffineGraphQL.Objects.Copilot,
|
||||
"CopilotContext": AffineGraphQL.Objects.CopilotContext,
|
||||
"CopilotContextBlob": AffineGraphQL.Objects.CopilotContextBlob,
|
||||
"CopilotContextCategory": AffineGraphQL.Objects.CopilotContextCategory,
|
||||
"CopilotContextDoc": AffineGraphQL.Objects.CopilotContextDoc,
|
||||
"CopilotContextFile": AffineGraphQL.Objects.CopilotContextFile,
|
||||
"CopilotHistories": AffineGraphQL.Objects.CopilotHistories,
|
||||
"CopilotHistoriesTypeEdge": AffineGraphQL.Objects.CopilotHistoriesTypeEdge,
|
||||
"CopilotQuota": AffineGraphQL.Objects.CopilotQuota,
|
||||
"CopilotRouteOptions": AffineGraphQL.Objects.CopilotRouteOptions,
|
||||
"CopilotRouteTarget": AffineGraphQL.Objects.CopilotRouteTarget,
|
||||
"CopilotWorkspaceArtifact": AffineGraphQL.Objects.CopilotWorkspaceArtifact,
|
||||
"CopilotWorkspaceArtifactTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceArtifactTypeEdge,
|
||||
"CopilotWorkspaceConfig": AffineGraphQL.Objects.CopilotWorkspaceConfig,
|
||||
"CopilotWorkspaceFile": AffineGraphQL.Objects.CopilotWorkspaceFile,
|
||||
"CopilotWorkspaceFileTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceFileTypeEdge,
|
||||
"CopilotWorkspaceIgnoredDoc": AffineGraphQL.Objects.CopilotWorkspaceIgnoredDoc,
|
||||
"CopilotWorkspaceIgnoredDocTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceIgnoredDocTypeEdge,
|
||||
"CreateWorkspaceByokLocalLeaseResultType": AffineGraphQL.Objects.CreateWorkspaceByokLocalLeaseResultType,
|
||||
@@ -102,7 +95,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
"PaginatedCommentChangeObjectType": AffineGraphQL.Objects.PaginatedCommentChangeObjectType,
|
||||
"PaginatedCommentObjectType": AffineGraphQL.Objects.PaginatedCommentObjectType,
|
||||
"PaginatedCopilotHistoriesType": AffineGraphQL.Objects.PaginatedCopilotHistoriesType,
|
||||
"PaginatedCopilotWorkspaceFileType": AffineGraphQL.Objects.PaginatedCopilotWorkspaceFileType,
|
||||
"PaginatedCopilotWorkspaceArtifactType": AffineGraphQL.Objects.PaginatedCopilotWorkspaceArtifactType,
|
||||
"PaginatedDocMemberLastAccess": AffineGraphQL.Objects.PaginatedDocMemberLastAccess,
|
||||
"PaginatedDocType": AffineGraphQL.Objects.PaginatedDocType,
|
||||
"PaginatedIgnoredDocsType": AffineGraphQL.Objects.PaginatedIgnoredDocsType,
|
||||
@@ -134,13 +127,21 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
"UserSettingsType": AffineGraphQL.Objects.UserSettingsType,
|
||||
"UserType": AffineGraphQL.Objects.UserType,
|
||||
"WorkspaceByokCapabilityType": AffineGraphQL.Objects.WorkspaceByokCapabilityType,
|
||||
"WorkspaceByokCatalogModelType": AffineGraphQL.Objects.WorkspaceByokCatalogModelType,
|
||||
"WorkspaceByokCatalogProviderType": AffineGraphQL.Objects.WorkspaceByokCatalogProviderType,
|
||||
"WorkspaceByokCatalogType": AffineGraphQL.Objects.WorkspaceByokCatalogType,
|
||||
"WorkspaceByokEndpointType": AffineGraphQL.Objects.WorkspaceByokEndpointType,
|
||||
"WorkspaceByokModelDeclarationType": AffineGraphQL.Objects.WorkspaceByokModelDeclarationType,
|
||||
"WorkspaceByokProbeType": AffineGraphQL.Objects.WorkspaceByokProbeType,
|
||||
"WorkspaceByokModelProbeCheckType": AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType,
|
||||
"WorkspaceByokModelProbeType": AffineGraphQL.Objects.WorkspaceByokModelProbeType,
|
||||
"WorkspaceByokPolicyType": AffineGraphQL.Objects.WorkspaceByokPolicyType,
|
||||
"WorkspaceByokProbeResultType": AffineGraphQL.Objects.WorkspaceByokProbeResultType,
|
||||
"WorkspaceByokProbeStatusType": AffineGraphQL.Objects.WorkspaceByokProbeStatusType,
|
||||
"WorkspaceByokProfileDefinitionType": AffineGraphQL.Objects.WorkspaceByokProfileDefinitionType,
|
||||
"WorkspaceByokProfileType": AffineGraphQL.Objects.WorkspaceByokProfileType,
|
||||
"WorkspaceByokSettingsType": AffineGraphQL.Objects.WorkspaceByokSettingsType,
|
||||
"WorkspaceByokUsagePointType": AffineGraphQL.Objects.WorkspaceByokUsagePointType,
|
||||
"WorkspaceByokValidationType": AffineGraphQL.Objects.WorkspaceByokValidationType,
|
||||
"WorkspaceCalendarItemObjectType": AffineGraphQL.Objects.WorkspaceCalendarItemObjectType,
|
||||
"WorkspaceCalendarObjectType": AffineGraphQL.Objects.WorkspaceCalendarObjectType,
|
||||
"WorkspaceDocMeta": AffineGraphQL.Objects.WorkspaceDocMeta,
|
||||
|
||||
Reference in New Issue
Block a user