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:
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user