mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 22:18:54 +08:00
feat: update schema & bump deps (#15455)
#### PR Dependency Tree * **PR #15455** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added workspace artifact management, artifact details, and removal support. - Added workspace BYOK configuration insights, model capabilities, connection checks, and validation status. - Added profile reordering and credential revision safeguards. - **Improvements** - Improved Copilot session creation with server-provided history and metadata. - Streamlined context handling with document scope selections and selected-source synchronization. - **Bug Fixes** - Improved compatibility and reliability across web, Android, and iOS Copilot workflows. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -169,8 +169,11 @@
|
||||
"fs-xattr": "npm:@napi-rs/xattr@latest",
|
||||
"@opentelemetry/core": "^2.10.0",
|
||||
"ioredis": "^5.11.1",
|
||||
"js-yaml@npm:^3.13.1": "^3.15.1",
|
||||
"js-yaml@npm:^3.14.1": "^3.15.1",
|
||||
"js-yaml@npm:^4.1.0": "^5.0.0",
|
||||
"js-yaml@npm:4.1.1": "^5.0.0",
|
||||
"js-yaml@npm:5.2.1": "^5.2.3",
|
||||
"multer": "^2.2.0",
|
||||
"protobufjs": "^7.6.4",
|
||||
"tar": "^7.5.21",
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
"react-dom": "^19.2.1",
|
||||
"react-hook-form": "^7.54.1",
|
||||
"react-resizable-panels": "^3.0.6",
|
||||
"react-router-dom": "^7.18.1",
|
||||
"react-router-dom": "^7.18.2",
|
||||
"recharts": "^2.15.4",
|
||||
"sonner": "^2.0.7",
|
||||
"swr": "^2.3.7",
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@ package app.affine.pro.service
|
||||
import app.affine.pro.Prompt
|
||||
import app.affine.pro.utils.getCurrentServerBaseUrl
|
||||
import com.affine.pro.graphql.CreateCopilotMessageMutation
|
||||
import com.affine.pro.graphql.CreateCopilotSessionMutation
|
||||
import com.affine.pro.graphql.CreateCopilotSessionWithHistoryMutation
|
||||
import com.affine.pro.graphql.GetCopilotHistoriesQuery
|
||||
import com.affine.pro.graphql.GetCopilotHistoryIdsQuery
|
||||
import com.affine.pro.graphql.GetCopilotSessionsQuery
|
||||
@@ -46,7 +46,7 @@ class GraphQLService @Inject constructor() {
|
||||
docId: String,
|
||||
prompt: Prompt = Prompt.ChatWithAFFiNEAI
|
||||
) = mutation(
|
||||
CreateCopilotSessionMutation(
|
||||
CreateCopilotSessionWithHistoryMutation(
|
||||
CreateChatSessionInput(
|
||||
docId = Optional.present(docId),
|
||||
workspaceId = workspaceId,
|
||||
@@ -54,7 +54,7 @@ class GraphQLService @Inject constructor() {
|
||||
)
|
||||
)
|
||||
).mapCatching { data ->
|
||||
data.createCopilotSession
|
||||
data.createCopilotSessionWithHistory.copilotChatHistory.sessionId
|
||||
}
|
||||
|
||||
suspend fun getCopilotHistories(
|
||||
|
||||
@@ -14,7 +14,7 @@ let package = Package(
|
||||
.library(name: "AffineGraphQL", targets: ["AffineGraphQL"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.25.4"),
|
||||
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.25.7"),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
|
||||
+3
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
|
||||
public static var fragmentDefinition: StaticString {
|
||||
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName action pinned title messages { __typename id role content attachments streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
|
||||
#"fragment CopilotChatHistory on CopilotHistories { __typename sessionId workspaceId docId parentSessionId promptName action pinned title messages { __typename id role content attachments scopeSnapshot streamObjects { __typename type textDelta toolCallId toolName args result } createdAt } createdAt updatedAt }"#
|
||||
}
|
||||
|
||||
public let __data: DataDict
|
||||
@@ -57,6 +57,7 @@ public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
|
||||
.field("role", String.self),
|
||||
.field("content", String.self),
|
||||
.field("attachments", [String]?.self),
|
||||
.field("scopeSnapshot", AffineGraphQL.JSON?.self),
|
||||
.field("streamObjects", [StreamObject]?.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
@@ -68,6 +69,7 @@ public struct CopilotChatHistory: AffineGraphQL.SelectionSet, Fragment {
|
||||
public var role: String { __data["role"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var attachments: [String]? { __data["attachments"] }
|
||||
public var scopeSnapshot: AffineGraphQL.JSON? { __data["scopeSnapshot"] }
|
||||
public var streamObjects: [StreamObject]? { __data["streamObjects"] }
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
|
||||
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextBlobMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextBlob"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextBlob($options: AddContextBlobInput!) { addContextBlob(options: $options) { __typename id createdAt status } }"#
|
||||
))
|
||||
|
||||
public var options: AddContextBlobInput
|
||||
|
||||
public init(options: AddContextBlobInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextBlob", AddContextBlob.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextBlobMutation.Data.self
|
||||
] }
|
||||
|
||||
/// add a blob to context
|
||||
public var addContextBlob: AddContextBlob { __data["addContextBlob"] }
|
||||
|
||||
/// AddContextBlob
|
||||
///
|
||||
/// Parent Type: `CopilotContextBlob`
|
||||
public struct AddContextBlob: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextBlob }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextBlobMutation.Data.AddContextBlob.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
-84
@@ -1,84 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextCategoryMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextCategory"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextCategory($options: AddContextCategoryInput!) { addContextCategory(options: $options) { __typename id createdAt type docs { __typename id createdAt status } } }"#
|
||||
))
|
||||
|
||||
public var options: AddContextCategoryInput
|
||||
|
||||
public init(options: AddContextCategoryInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextCategory", AddContextCategory.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextCategoryMutation.Data.self
|
||||
] }
|
||||
|
||||
/// add a category to context
|
||||
public var addContextCategory: AddContextCategory { __data["addContextCategory"] }
|
||||
|
||||
/// AddContextCategory
|
||||
///
|
||||
/// Parent Type: `CopilotContextCategory`
|
||||
public struct AddContextCategory: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextCategory }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ContextCategories>.self),
|
||||
.field("docs", [Doc].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextCategoryMutation.Data.AddContextCategory.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var type: GraphQLEnum<AffineGraphQL.ContextCategories> { __data["type"] }
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
|
||||
/// AddContextCategory.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextCategoryMutation.Data.AddContextCategory.Doc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextDocMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextDoc"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextDoc($options: AddContextDocInput!) { addContextDoc(options: $options) { __typename id createdAt status } }"#
|
||||
))
|
||||
|
||||
public var options: AddContextDocInput
|
||||
|
||||
public init(options: AddContextDocInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextDoc", AddContextDoc.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextDocMutation.Data.self
|
||||
] }
|
||||
|
||||
/// add a doc to context
|
||||
public var addContextDoc: AddContextDoc { __data["addContextDoc"] }
|
||||
|
||||
/// AddContextDoc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct AddContextDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextDocMutation.Data.AddContextDoc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
-80
@@ -1,80 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddContextFileMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addContextFile"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addContextFile($content: Upload!, $options: AddContextFileInput!) { addContextFile(content: $content, options: $options) { __typename id createdAt name mimeType chunkSize error status blobId } }"#
|
||||
))
|
||||
|
||||
public var content: Upload
|
||||
public var options: AddContextFileInput
|
||||
|
||||
public init(
|
||||
content: Upload,
|
||||
options: AddContextFileInput
|
||||
) {
|
||||
self.content = content
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"content": content,
|
||||
"options": options
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addContextFile", AddContextFile.self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"options": .variable("options")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextFileMutation.Data.self
|
||||
] }
|
||||
|
||||
/// add a file to context
|
||||
public var addContextFile: AddContextFile { __data["addContextFile"] }
|
||||
|
||||
/// AddContextFile
|
||||
///
|
||||
/// Parent Type: `CopilotContextFile`
|
||||
public struct AddContextFile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextFile }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
.field("name", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("chunkSize", AffineGraphQL.SafeInt.self),
|
||||
.field("error", String?.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>.self),
|
||||
.field("blobId", String.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddContextFileMutation.Data.AddContextFile.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var chunkSize: AffineGraphQL.SafeInt { __data["chunkSize"] }
|
||||
public var error: String? { __data["error"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus> { __data["status"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
-20
@@ -3,11 +3,11 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class AddWorkspaceEmbeddingFilesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addWorkspaceEmbeddingFiles"
|
||||
public class AddWorkspaceArtifactMutation: GraphQLMutation {
|
||||
public static let operationName: String = "addWorkspaceArtifact"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation addWorkspaceEmbeddingFiles($workspaceId: String!, $blob: Upload!) { addWorkspaceEmbeddingFiles(workspaceId: $workspaceId, blob: $blob) { __typename fileId fileName blobId mimeType size createdAt } }"#
|
||||
#"mutation addWorkspaceArtifact($workspaceId: String!, $blob: Upload!) { addWorkspaceArtifact(workspaceId: $workspaceId, blob: $blob) { __typename artifactId contentHash mediaType size createdAt } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -32,43 +32,41 @@ public class AddWorkspaceEmbeddingFilesMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("addWorkspaceEmbeddingFiles", AddWorkspaceEmbeddingFiles.self, arguments: [
|
||||
.field("addWorkspaceArtifact", AddWorkspaceArtifact.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"blob": .variable("blob")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddWorkspaceEmbeddingFilesMutation.Data.self
|
||||
AddWorkspaceArtifactMutation.Data.self
|
||||
] }
|
||||
|
||||
/// Update workspace embedding files
|
||||
public var addWorkspaceEmbeddingFiles: AddWorkspaceEmbeddingFiles { __data["addWorkspaceEmbeddingFiles"] }
|
||||
/// Add a workspace artifact
|
||||
public var addWorkspaceArtifact: AddWorkspaceArtifact { __data["addWorkspaceArtifact"] }
|
||||
|
||||
/// AddWorkspaceEmbeddingFiles
|
||||
/// AddWorkspaceArtifact
|
||||
///
|
||||
/// Parent Type: `CopilotWorkspaceFile`
|
||||
public struct AddWorkspaceEmbeddingFiles: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `CopilotWorkspaceArtifact`
|
||||
public struct AddWorkspaceArtifact: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceFile }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifact }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("fileName", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("artifactId", String.self),
|
||||
.field("contentHash", String.self),
|
||||
.field("mediaType", String.self),
|
||||
.field("size", AffineGraphQL.SafeInt.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
AddWorkspaceEmbeddingFilesMutation.Data.AddWorkspaceEmbeddingFiles.self
|
||||
AddWorkspaceArtifactMutation.Data.AddWorkspaceArtifact.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var fileName: String { __data["fileName"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var artifactId: String { __data["artifactId"] }
|
||||
public var contentHash: String { __data["contentHash"] }
|
||||
public var mediaType: String { __data["mediaType"] }
|
||||
public var size: AffineGraphQL.SafeInt { __data["size"] }
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
}
|
||||
-47
@@ -1,47 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class CreateCopilotContextMutation: GraphQLMutation {
|
||||
public static let operationName: String = "createCopilotContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation createCopilotContext($workspaceId: String!, $sessionId: String!) { createCopilotContext(workspaceId: $workspaceId, sessionId: $sessionId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var sessionId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
sessionId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.sessionId = sessionId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"sessionId": sessionId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("createCopilotContext", String.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"sessionId": .variable("sessionId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
CreateCopilotContextMutation.Data.self
|
||||
] }
|
||||
|
||||
/// Create a context session
|
||||
public var createCopilotContext: String { __data["createCopilotContext"] }
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ProbeWorkspaceByokDraftMutation: GraphQLMutation {
|
||||
public static let operationName: String = "probeWorkspaceByokDraft"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation probeWorkspaceByokDraft($input: ProbeWorkspaceByokDraftInput!) { probeWorkspaceByokDraft(input: $input) { __typename definitionFingerprint stale connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } }"#
|
||||
))
|
||||
|
||||
public var input: ProbeWorkspaceByokDraftInput
|
||||
|
||||
public init(input: ProbeWorkspaceByokDraftInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("probeWorkspaceByokDraft", ProbeWorkspaceByokDraft.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.self
|
||||
] }
|
||||
|
||||
public var probeWorkspaceByokDraft: ProbeWorkspaceByokDraft { __data["probeWorkspaceByokDraft"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeResultType`
|
||||
public struct ProbeWorkspaceByokDraft: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("definitionFingerprint", String.self),
|
||||
.field("stale", Bool.self),
|
||||
.field("connection", Connection.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.self
|
||||
] }
|
||||
|
||||
public var definitionFingerprint: String { __data["definitionFingerprint"] }
|
||||
public var stale: Bool { __data["stale"] }
|
||||
public var connection: Connection { __data["connection"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Connection
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Connection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Connection.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("checks", [Check].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var checks: [Check] { __data["checks"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Model.Check
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeCheckType`
|
||||
public struct Check: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
|
||||
.field("status", Status.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.Check.self
|
||||
] }
|
||||
|
||||
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
|
||||
public var status: Status { __data["status"] }
|
||||
|
||||
/// ProbeWorkspaceByokDraft.Model.Check.Status
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Status: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokDraftMutation.Data.ProbeWorkspaceByokDraft.Model.Check.Status.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+88
-30
@@ -7,24 +7,16 @@ public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
|
||||
public static let operationName: String = "probeWorkspaceByokProfile"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation probeWorkspaceByokProfile($workspaceId: String!, $profileId: ID!) { probeWorkspaceByokProfile(workspaceId: $workspaceId, profileId: $profileId) { __typename profileId probe { __typename kind testedAt errorKind } } }"#
|
||||
#"mutation probeWorkspaceByokProfile($input: ProbeWorkspaceByokProfileInput!) { probeWorkspaceByokProfile(input: $input) { __typename definitionFingerprint stale connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var profileId: ID
|
||||
public var input: ProbeWorkspaceByokProfileInput
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
profileId: ID
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.profileId = profileId
|
||||
public init(input: ProbeWorkspaceByokProfileInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"profileId": profileId
|
||||
] }
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
@@ -32,10 +24,7 @@ public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("probeWorkspaceByokProfile", ProbeWorkspaceByokProfile.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"profileId": .variable("profileId")
|
||||
]),
|
||||
.field("probeWorkspaceByokProfile", ProbeWorkspaceByokProfile.self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.self
|
||||
@@ -45,46 +34,115 @@ public class ProbeWorkspaceByokProfileMutation: GraphQLMutation {
|
||||
|
||||
/// ProbeWorkspaceByokProfile
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProfileType`
|
||||
/// Parent Type: `WorkspaceByokProbeResultType`
|
||||
public struct ProbeWorkspaceByokProfile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeResultType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("profileId", AffineGraphQL.ID.self),
|
||||
.field("probe", Probe.self),
|
||||
.field("definitionFingerprint", String.self),
|
||||
.field("stale", Bool.self),
|
||||
.field("connection", Connection.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.self
|
||||
] }
|
||||
|
||||
public var profileId: AffineGraphQL.ID { __data["profileId"] }
|
||||
public var probe: Probe { __data["probe"] }
|
||||
public var definitionFingerprint: String { __data["definitionFingerprint"] }
|
||||
public var stale: Bool { __data["stale"] }
|
||||
public var connection: Connection { __data["connection"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Probe
|
||||
/// ProbeWorkspaceByokProfile.Connection
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeType`
|
||||
public struct Probe: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Connection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Probe.self
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Connection.self
|
||||
] }
|
||||
|
||||
public var kind: String { __data["kind"] }
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("checks", [Check].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var checks: [Check] { __data["checks"] }
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Model.Check
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeCheckType`
|
||||
public struct Check: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
|
||||
.field("status", Status.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.Check.self
|
||||
] }
|
||||
|
||||
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
|
||||
public var status: Status { __data["status"] }
|
||||
|
||||
/// ProbeWorkspaceByokProfile.Model.Check.Status
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Status: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ProbeWorkspaceByokProfileMutation.Data.ProbeWorkspaceByokProfile.Model.Check.Status.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextBlobMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextBlob"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextBlob($options: RemoveContextBlobInput!) { removeContextBlob(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextBlobInput
|
||||
|
||||
public init(options: RemoveContextBlobInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextBlob", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextBlobMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a blob from context
|
||||
public var removeContextBlob: Bool { __data["removeContextBlob"] }
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextCategoryMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextCategory"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextCategory($options: RemoveContextCategoryInput!) { removeContextCategory(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextCategoryInput
|
||||
|
||||
public init(options: RemoveContextCategoryInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextCategory", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextCategoryMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a category from context
|
||||
public var removeContextCategory: Bool { __data["removeContextCategory"] }
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextDocMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextDoc"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextDoc($options: RemoveContextDocInput!) { removeContextDoc(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextDocInput
|
||||
|
||||
public init(options: RemoveContextDocInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextDoc", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextDocMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a doc from context
|
||||
public var removeContextDoc: Bool { __data["removeContextDoc"] }
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveContextFileMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeContextFile"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeContextFile($options: RemoveContextFileInput!) { removeContextFile(options: $options) }"#
|
||||
))
|
||||
|
||||
public var options: RemoveContextFileInput
|
||||
|
||||
public init(options: RemoveContextFileInput) {
|
||||
self.options = options
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["options": options] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeContextFile", Bool.self, arguments: ["options": .variable("options")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveContextFileMutation.Data.self
|
||||
] }
|
||||
|
||||
/// remove a file from context
|
||||
public var removeContextFile: Bool { __data["removeContextFile"] }
|
||||
}
|
||||
}
|
||||
+12
-12
@@ -3,27 +3,27 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class QueueWorkspaceEmbeddingMutation: GraphQLMutation {
|
||||
public static let operationName: String = "queueWorkspaceEmbedding"
|
||||
public class RemoveWorkspaceArtifactMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeWorkspaceArtifact"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation queueWorkspaceEmbedding($workspaceId: String!, $docId: [String!]!) { queueWorkspaceEmbedding(workspaceId: $workspaceId, docId: $docId) }"#
|
||||
#"mutation removeWorkspaceArtifact($workspaceId: String!, $artifactId: String!) { removeWorkspaceArtifact(workspaceId: $workspaceId, artifactId: $artifactId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var docId: [String]
|
||||
public var artifactId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
docId: [String]
|
||||
artifactId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.docId = docId
|
||||
self.artifactId = artifactId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"docId": docId
|
||||
"artifactId": artifactId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
@@ -32,16 +32,16 @@ public class QueueWorkspaceEmbeddingMutation: GraphQLMutation {
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("queueWorkspaceEmbedding", Bool.self, arguments: [
|
||||
.field("removeWorkspaceArtifact", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"docId": .variable("docId")
|
||||
"artifactId": .variable("artifactId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
QueueWorkspaceEmbeddingMutation.Data.self
|
||||
RemoveWorkspaceArtifactMutation.Data.self
|
||||
] }
|
||||
|
||||
/// queue workspace doc embedding
|
||||
public var queueWorkspaceEmbedding: Bool { __data["queueWorkspaceEmbedding"] }
|
||||
/// Remove a workspace artifact
|
||||
public var removeWorkspaceArtifact: Bool { __data["removeWorkspaceArtifact"] }
|
||||
}
|
||||
}
|
||||
-47
@@ -1,47 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class RemoveWorkspaceEmbeddingFilesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "removeWorkspaceEmbeddingFiles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation removeWorkspaceEmbeddingFiles($workspaceId: String!, $fileId: String!) { removeWorkspaceEmbeddingFiles(workspaceId: $workspaceId, fileId: $fileId) }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var fileId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
fileId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.fileId = fileId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"fileId": fileId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("removeWorkspaceEmbeddingFiles", Bool.self, arguments: [
|
||||
"workspaceId": .variable("workspaceId"),
|
||||
"fileId": .variable("fileId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
RemoveWorkspaceEmbeddingFilesMutation.Data.self
|
||||
] }
|
||||
|
||||
/// Remove workspace embedding files
|
||||
public var removeWorkspaceEmbeddingFiles: Bool { __data["removeWorkspaceEmbeddingFiles"] }
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ReorderWorkspaceByokProfilesMutation: GraphQLMutation {
|
||||
public static let operationName: String = "reorderWorkspaceByokProfiles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"mutation reorderWorkspaceByokProfiles($input: ReorderWorkspaceByokProfilesInput!) { reorderWorkspaceByokProfiles(input: $input) { __typename profileId sortOrder revision } }"#
|
||||
))
|
||||
|
||||
public var input: ReorderWorkspaceByokProfilesInput
|
||||
|
||||
public init(input: ReorderWorkspaceByokProfilesInput) {
|
||||
self.input = input
|
||||
}
|
||||
|
||||
public var __variables: Variables? { ["input": input] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Mutation }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("reorderWorkspaceByokProfiles", [ReorderWorkspaceByokProfile].self, arguments: ["input": .variable("input")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ReorderWorkspaceByokProfilesMutation.Data.self
|
||||
] }
|
||||
|
||||
public var reorderWorkspaceByokProfiles: [ReorderWorkspaceByokProfile] { __data["reorderWorkspaceByokProfiles"] }
|
||||
|
||||
/// ReorderWorkspaceByokProfile
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProfileType`
|
||||
public struct ReorderWorkspaceByokProfile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("profileId", AffineGraphQL.ID.self),
|
||||
.field("sortOrder", AffineGraphQL.SafeInt.self),
|
||||
.field("revision", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ReorderWorkspaceByokProfilesMutation.Data.ReorderWorkspaceByokProfile.self
|
||||
] }
|
||||
|
||||
public var profileId: AffineGraphQL.ID { __data["profileId"] }
|
||||
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
|
||||
public var revision: AffineGraphQL.SafeInt { __data["revision"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
+31
-29
@@ -3,11 +3,11 @@
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspaceEmbeddingFiles"
|
||||
public class GetWorkspaceArtifactsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "getWorkspaceArtifacts"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query getWorkspaceEmbeddingFiles($workspaceId: String!, $pagination: PaginationInput!) { workspace(id: $workspaceId) { __typename embedding { __typename files(pagination: $pagination) { __typename totalCount pageInfo { __typename endCursor hasNextPage } edges { __typename node { __typename fileId fileName blobId mimeType size createdAt } } } } } }"#
|
||||
#"query getWorkspaceArtifacts($workspaceId: String!, $pagination: PaginationInput!) { workspace(id: $workspaceId) { __typename embedding { __typename artifacts(pagination: $pagination) { __typename totalCount pageInfo { __typename endCursor hasNextPage } edges { __typename node { __typename artifactId contentHash fileName embeddingStatus mediaType size createdAt } } } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
@@ -35,7 +35,7 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("workspace", Workspace.self, arguments: ["id": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.self
|
||||
GetWorkspaceArtifactsQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get workspace by id
|
||||
@@ -54,7 +54,7 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("embedding", Embedding.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.self
|
||||
] }
|
||||
|
||||
public var embedding: Embedding { __data["embedding"] }
|
||||
@@ -69,22 +69,22 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceConfig }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("files", Files.self, arguments: ["pagination": .variable("pagination")]),
|
||||
.field("artifacts", Artifacts.self, arguments: ["pagination": .variable("pagination")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.self
|
||||
] }
|
||||
|
||||
public var files: Files { __data["files"] }
|
||||
public var artifacts: Artifacts { __data["artifacts"] }
|
||||
|
||||
/// Workspace.Embedding.Files
|
||||
/// Workspace.Embedding.Artifacts
|
||||
///
|
||||
/// Parent Type: `PaginatedCopilotWorkspaceFileType`
|
||||
public struct Files: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `PaginatedCopilotWorkspaceArtifactType`
|
||||
public struct Artifacts: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedCopilotWorkspaceFileType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.PaginatedCopilotWorkspaceArtifactType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("totalCount", Int.self),
|
||||
@@ -92,14 +92,14 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("edges", [Edge].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.self
|
||||
] }
|
||||
|
||||
public var totalCount: Int { __data["totalCount"] }
|
||||
public var pageInfo: PageInfo { __data["pageInfo"] }
|
||||
public var edges: [Edge] { __data["edges"] }
|
||||
|
||||
/// Workspace.Embedding.Files.PageInfo
|
||||
/// Workspace.Embedding.Artifacts.PageInfo
|
||||
///
|
||||
/// Parent Type: `PageInfo`
|
||||
public struct PageInfo: AffineGraphQL.SelectionSet {
|
||||
@@ -113,56 +113,58 @@ public class GetWorkspaceEmbeddingFilesQuery: GraphQLQuery {
|
||||
.field("hasNextPage", Bool.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.PageInfo.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.PageInfo.self
|
||||
] }
|
||||
|
||||
public var endCursor: String? { __data["endCursor"] }
|
||||
public var hasNextPage: Bool { __data["hasNextPage"] }
|
||||
}
|
||||
|
||||
/// Workspace.Embedding.Files.Edge
|
||||
/// Workspace.Embedding.Artifacts.Edge
|
||||
///
|
||||
/// Parent Type: `CopilotWorkspaceFileTypeEdge`
|
||||
/// Parent Type: `CopilotWorkspaceArtifactTypeEdge`
|
||||
public struct Edge: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceFileTypeEdge }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifactTypeEdge }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("node", Node.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.Edge.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.Edge.self
|
||||
] }
|
||||
|
||||
public var node: Node { __data["node"] }
|
||||
|
||||
/// Workspace.Embedding.Files.Edge.Node
|
||||
/// Workspace.Embedding.Artifacts.Edge.Node
|
||||
///
|
||||
/// Parent Type: `CopilotWorkspaceFile`
|
||||
/// Parent Type: `CopilotWorkspaceArtifact`
|
||||
public struct Node: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceFile }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotWorkspaceArtifact }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("artifactId", String.self),
|
||||
.field("contentHash", String.self),
|
||||
.field("fileName", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("embeddingStatus", String.self),
|
||||
.field("mediaType", String.self),
|
||||
.field("size", AffineGraphQL.SafeInt.self),
|
||||
.field("createdAt", AffineGraphQL.DateTime.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
GetWorkspaceEmbeddingFilesQuery.Data.Workspace.Embedding.Files.Edge.Node.self
|
||||
GetWorkspaceArtifactsQuery.Data.Workspace.Embedding.Artifacts.Edge.Node.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var artifactId: String { __data["artifactId"] }
|
||||
public var contentHash: String { __data["contentHash"] }
|
||||
public var fileName: String { __data["fileName"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var embeddingStatus: String { __data["embeddingStatus"] }
|
||||
public var mediaType: String { __data["mediaType"] }
|
||||
public var size: AffineGraphQL.SafeInt { __data["size"] }
|
||||
public var createdAt: AffineGraphQL.DateTime { __data["createdAt"] }
|
||||
}
|
||||
-297
@@ -1,297 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ListContextObjectQuery: GraphQLQuery {
|
||||
public static let operationName: String = "listContextObject"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query listContextObject($workspaceId: String!, $sessionId: String!, $contextId: String!) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(sessionId: $sessionId, contextId: $contextId) { __typename blobs { __typename id status createdAt } docs { __typename id status createdAt } files { __typename id name mimeType blobId chunkSize error status createdAt } tags { __typename type id docs { __typename id status createdAt } createdAt } collections { __typename type id docs { __typename id status createdAt } createdAt } } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var sessionId: String
|
||||
public var contextId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
sessionId: String,
|
||||
contextId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.sessionId = sessionId
|
||||
self.contextId = contextId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"sessionId": sessionId,
|
||||
"contextId": contextId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.self
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: [
|
||||
"sessionId": .variable("sessionId"),
|
||||
"contextId": .variable("contextId")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("blobs", [Blob].self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("files", [File].self),
|
||||
.field("tags", [Tag].self),
|
||||
.field("collections", [Collection].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// list blobs in context
|
||||
public var blobs: [Blob] { __data["blobs"] }
|
||||
/// list files in context
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
/// list files in context
|
||||
public var files: [File] { __data["files"] }
|
||||
/// list tags in context
|
||||
public var tags: [Tag] { __data["tags"] }
|
||||
/// list collections in context
|
||||
public var collections: [Collection] { __data["collections"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.Blob
|
||||
///
|
||||
/// Parent Type: `CopilotContextBlob`
|
||||
public struct Blob: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextBlob }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Blob.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Doc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.File
|
||||
///
|
||||
/// Parent Type: `CopilotContextFile`
|
||||
public struct File: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextFile }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("name", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("chunkSize", AffineGraphQL.SafeInt.self),
|
||||
.field("error", String?.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.File.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var chunkSize: AffineGraphQL.SafeInt { __data["chunkSize"] }
|
||||
public var error: String? { __data["error"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus> { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.Tag
|
||||
///
|
||||
/// Parent Type: `CopilotContextCategory`
|
||||
public struct Tag: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextCategory }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ContextCategories>.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Tag.self
|
||||
] }
|
||||
|
||||
public var type: GraphQLEnum<AffineGraphQL.ContextCategories> { __data["type"] }
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.Tag.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Tag.Doc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.Collection
|
||||
///
|
||||
/// Parent Type: `CopilotContextCategory`
|
||||
public struct Collection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextCategory }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("type", GraphQLEnum<AffineGraphQL.ContextCategories>.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("docs", [Doc].self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Collection.self
|
||||
] }
|
||||
|
||||
public var type: GraphQLEnum<AffineGraphQL.ContextCategories> { __data["type"] }
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var docs: [Doc] { __data["docs"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.Collection.Doc
|
||||
///
|
||||
/// Parent Type: `CopilotContextDoc`
|
||||
public struct Doc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContextDoc }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID.self),
|
||||
.field("status", GraphQLEnum<AffineGraphQL.ContextEmbedStatus>?.self),
|
||||
.field("createdAt", AffineGraphQL.SafeInt.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextObjectQuery.Data.CurrentUser.Copilot.Context.Collection.Doc.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID { __data["id"] }
|
||||
public var status: GraphQLEnum<AffineGraphQL.ContextEmbedStatus>? { __data["status"] }
|
||||
public var createdAt: AffineGraphQL.SafeInt { __data["createdAt"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-104
@@ -1,104 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class ListContextQuery: GraphQLQuery {
|
||||
public static let operationName: String = "listContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query listContext($workspaceId: String!, $sessionId: String!) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(sessionId: $sessionId) { __typename id workspaceId } } } }"#
|
||||
))
|
||||
|
||||
public var workspaceId: String
|
||||
public var sessionId: String
|
||||
|
||||
public init(
|
||||
workspaceId: String,
|
||||
sessionId: String
|
||||
) {
|
||||
self.workspaceId = workspaceId
|
||||
self.sessionId = sessionId
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"workspaceId": workspaceId,
|
||||
"sessionId": sessionId
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.CurrentUser.self
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["sessionId": .variable("sessionId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("id", AffineGraphQL.ID?.self),
|
||||
.field("workspaceId", String.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
ListContextQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
public var id: AffineGraphQL.ID? { __data["id"] }
|
||||
public var workspaceId: String { __data["workspaceId"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-188
@@ -1,188 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchContextQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchContext"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchContext($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(contextId: $contextId) { __typename matchFiles( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename fileId blobId name mimeType chunk content distance } matchWorkspaceDocs( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename docId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: GraphQLNullable<String>
|
||||
public var workspaceId: GraphQLNullable<String>
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
public var scopedThreshold: GraphQLNullable<Double>
|
||||
public var threshold: GraphQLNullable<Double>
|
||||
|
||||
public init(
|
||||
contextId: GraphQLNullable<String>,
|
||||
workspaceId: GraphQLNullable<String>,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>,
|
||||
scopedThreshold: GraphQLNullable<Double>,
|
||||
threshold: GraphQLNullable<Double>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.workspaceId = workspaceId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
self.scopedThreshold = scopedThreshold
|
||||
self.threshold = threshold
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"workspaceId": workspaceId,
|
||||
"content": content,
|
||||
"limit": limit,
|
||||
"scopedThreshold": scopedThreshold,
|
||||
"threshold": threshold
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.self
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["contextId": .variable("contextId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("matchFiles", [MatchFile].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
.field("matchWorkspaceDocs", [MatchWorkspaceDoc].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// match file in context
|
||||
public var matchFiles: [MatchFile] { __data["matchFiles"] }
|
||||
/// match workspace docs
|
||||
public var matchWorkspaceDocs: [MatchWorkspaceDoc] { __data["matchWorkspaceDocs"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchFile
|
||||
///
|
||||
/// Parent Type: `ContextMatchedFileChunk`
|
||||
public struct MatchFile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextMatchedFileChunk }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("name", String.self),
|
||||
.field("mimeType", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.Context.MatchFile.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var name: String { __data["name"] }
|
||||
public var mimeType: String { __data["mimeType"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchWorkspaceDoc
|
||||
///
|
||||
/// Parent Type: `ContextMatchedDocChunk`
|
||||
public struct MatchWorkspaceDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextMatchedDocChunk }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("docId", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchContextQuery.Data.CurrentUser.Copilot.Context.MatchWorkspaceDoc.self
|
||||
] }
|
||||
|
||||
public var docId: String { __data["docId"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-151
@@ -1,151 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchFilesQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchFiles"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchFiles($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(contextId: $contextId) { __typename matchFiles( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename fileId blobId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: GraphQLNullable<String>
|
||||
public var workspaceId: GraphQLNullable<String>
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
public var scopedThreshold: GraphQLNullable<Double>
|
||||
public var threshold: GraphQLNullable<Double>
|
||||
|
||||
public init(
|
||||
contextId: GraphQLNullable<String>,
|
||||
workspaceId: GraphQLNullable<String>,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>,
|
||||
scopedThreshold: GraphQLNullable<Double>,
|
||||
threshold: GraphQLNullable<Double>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.workspaceId = workspaceId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
self.scopedThreshold = scopedThreshold
|
||||
self.threshold = threshold
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"workspaceId": workspaceId,
|
||||
"content": content,
|
||||
"limit": limit,
|
||||
"scopedThreshold": scopedThreshold,
|
||||
"threshold": threshold
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.self
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["contextId": .variable("contextId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("matchFiles", [MatchFile].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// match file in context
|
||||
public var matchFiles: [MatchFile] { __data["matchFiles"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchFile
|
||||
///
|
||||
/// Parent Type: `ContextMatchedFileChunk`
|
||||
public struct MatchFile: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextMatchedFileChunk }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("fileId", String.self),
|
||||
.field("blobId", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchFilesQuery.Data.CurrentUser.Copilot.Context.MatchFile.self
|
||||
] }
|
||||
|
||||
public var fileId: String { __data["fileId"] }
|
||||
public var blobId: String { __data["blobId"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-149
@@ -1,149 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
@_exported import ApolloAPI
|
||||
|
||||
public class MatchWorkspaceDocsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "matchWorkspaceDocs"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query matchWorkspaceDocs($contextId: String, $workspaceId: String, $content: String!, $limit: SafeInt, $scopedThreshold: Float, $threshold: Float) { currentUser { __typename copilot(workspaceId: $workspaceId) { __typename contexts(contextId: $contextId) { __typename matchWorkspaceDocs( content: $content limit: $limit scopedThreshold: $scopedThreshold threshold: $threshold ) { __typename docId chunk content distance } } } } }"#
|
||||
))
|
||||
|
||||
public var contextId: GraphQLNullable<String>
|
||||
public var workspaceId: GraphQLNullable<String>
|
||||
public var content: String
|
||||
public var limit: GraphQLNullable<SafeInt>
|
||||
public var scopedThreshold: GraphQLNullable<Double>
|
||||
public var threshold: GraphQLNullable<Double>
|
||||
|
||||
public init(
|
||||
contextId: GraphQLNullable<String>,
|
||||
workspaceId: GraphQLNullable<String>,
|
||||
content: String,
|
||||
limit: GraphQLNullable<SafeInt>,
|
||||
scopedThreshold: GraphQLNullable<Double>,
|
||||
threshold: GraphQLNullable<Double>
|
||||
) {
|
||||
self.contextId = contextId
|
||||
self.workspaceId = workspaceId
|
||||
self.content = content
|
||||
self.limit = limit
|
||||
self.scopedThreshold = scopedThreshold
|
||||
self.threshold = threshold
|
||||
}
|
||||
|
||||
public var __variables: Variables? { [
|
||||
"contextId": contextId,
|
||||
"workspaceId": workspaceId,
|
||||
"content": content,
|
||||
"limit": limit,
|
||||
"scopedThreshold": scopedThreshold,
|
||||
"threshold": threshold
|
||||
] }
|
||||
|
||||
public struct Data: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Query }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("currentUser", CurrentUser?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.self
|
||||
] }
|
||||
|
||||
/// Get current user
|
||||
public var currentUser: CurrentUser? { __data["currentUser"] }
|
||||
|
||||
/// CurrentUser
|
||||
///
|
||||
/// Parent Type: `UserType`
|
||||
public struct CurrentUser: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.UserType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("copilot", Copilot.self, arguments: ["workspaceId": .variable("workspaceId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.self
|
||||
] }
|
||||
|
||||
public var copilot: Copilot { __data["copilot"] }
|
||||
|
||||
/// CurrentUser.Copilot
|
||||
///
|
||||
/// Parent Type: `Copilot`
|
||||
public struct Copilot: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.Copilot }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("contexts", [Context].self, arguments: ["contextId": .variable("contextId")]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.Copilot.self
|
||||
] }
|
||||
|
||||
/// Get the context list of a session
|
||||
public var contexts: [Context] { __data["contexts"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context
|
||||
///
|
||||
/// Parent Type: `CopilotContext`
|
||||
public struct Context: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.CopilotContext }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("matchWorkspaceDocs", [MatchWorkspaceDoc].self, arguments: [
|
||||
"content": .variable("content"),
|
||||
"limit": .variable("limit"),
|
||||
"scopedThreshold": .variable("scopedThreshold"),
|
||||
"threshold": .variable("threshold")
|
||||
]),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.Copilot.Context.self
|
||||
] }
|
||||
|
||||
/// match workspace docs
|
||||
public var matchWorkspaceDocs: [MatchWorkspaceDoc] { __data["matchWorkspaceDocs"] }
|
||||
|
||||
/// CurrentUser.Copilot.Context.MatchWorkspaceDoc
|
||||
///
|
||||
/// Parent Type: `ContextMatchedDocChunk`
|
||||
public struct MatchWorkspaceDoc: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.ContextMatchedDocChunk }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("docId", String.self),
|
||||
.field("chunk", AffineGraphQL.SafeInt.self),
|
||||
.field("content", String.self),
|
||||
.field("distance", Double?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
MatchWorkspaceDocsQuery.Data.CurrentUser.Copilot.Context.MatchWorkspaceDoc.self
|
||||
] }
|
||||
|
||||
public var docId: String { __data["docId"] }
|
||||
public var chunk: AffineGraphQL.SafeInt { __data["chunk"] }
|
||||
public var content: String { __data["content"] }
|
||||
public var distance: Double? { __data["distance"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+245
-34
@@ -7,7 +7,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static let operationName: String = "workspaceByokSettings"
|
||||
public static let operationDocument: ApolloAPI.OperationDocument = .init(
|
||||
definition: .init(
|
||||
#"query workspaceByokSettings($id: String!, $from: DateTime!, $to: DateTime!) { workspace(id: $id) { __typename id byokSettings { __typename workspaceId entitled serverEntitled localEntitled allowedProviders customEndpointSupported privateEndpointSupported profiles { __typename profileId provider name description enabled sortOrder definition { __typename version endpoint { __typename kind url } models { __typename modelId capabilities { __typename input output features attachmentKinds attachmentSources } } } probe { __typename kind testedAt errorKind } } } byokUsage(from: $from, to: $to) { __typename date featureKind totalTokens } } }"#
|
||||
#"query workspaceByokSettings($id: String!, $from: DateTime!, $to: DateTime!) { workspace(id: $id) { __typename id byokSettings { __typename workspaceId entitled serverEntitled localEntitled policy { __typename enabled allowedProviders customEndpointMode privateEndpointSupported } catalog { __typename version providers { __typename provider models { __typename modelId displayName recommended capabilities { __typename input output features attachmentKinds attachmentSources } } } } profiles { __typename profileId provider name description enabled sortOrder revision definition { __typename endpoint { __typename kind url dialect } models { __typename modelId enabled capabilities { __typename input output features attachmentKinds attachmentSources } } } validation { __typename definitionFingerprint credentialGeneration connection { __typename kind testedAt errorKind } models { __typename modelId checks { __typename operation status { __typename kind testedAt errorKind } } } } } } byokUsage(from: $from, to: $to) { __typename date featureKind totalTokens } } }"#
|
||||
))
|
||||
|
||||
public var id: String
|
||||
@@ -84,9 +84,8 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
.field("entitled", Bool.self),
|
||||
.field("serverEntitled", Bool.self),
|
||||
.field("localEntitled", Bool.self),
|
||||
.field("allowedProviders", [GraphQLEnum<AffineGraphQL.ByokProvider>].self),
|
||||
.field("customEndpointSupported", Bool.self),
|
||||
.field("privateEndpointSupported", Bool.self),
|
||||
.field("policy", Policy.self),
|
||||
.field("catalog", Catalog.self),
|
||||
.field("profiles", [Profile].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
@@ -97,11 +96,129 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public var entitled: Bool { __data["entitled"] }
|
||||
public var serverEntitled: Bool { __data["serverEntitled"] }
|
||||
public var localEntitled: Bool { __data["localEntitled"] }
|
||||
public var allowedProviders: [GraphQLEnum<AffineGraphQL.ByokProvider>] { __data["allowedProviders"] }
|
||||
public var customEndpointSupported: Bool { __data["customEndpointSupported"] }
|
||||
public var privateEndpointSupported: Bool { __data["privateEndpointSupported"] }
|
||||
public var policy: Policy { __data["policy"] }
|
||||
public var catalog: Catalog { __data["catalog"] }
|
||||
public var profiles: [Profile] { __data["profiles"] }
|
||||
|
||||
/// Workspace.ByokSettings.Policy
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokPolicyType`
|
||||
public struct Policy: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokPolicyType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("enabled", Bool.self),
|
||||
.field("allowedProviders", [GraphQLEnum<AffineGraphQL.ByokProvider>].self),
|
||||
.field("customEndpointMode", GraphQLEnum<AffineGraphQL.ByokCustomEndpointMode>.self),
|
||||
.field("privateEndpointSupported", Bool.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Policy.self
|
||||
] }
|
||||
|
||||
public var enabled: Bool { __data["enabled"] }
|
||||
public var allowedProviders: [GraphQLEnum<AffineGraphQL.ByokProvider>] { __data["allowedProviders"] }
|
||||
public var customEndpointMode: GraphQLEnum<AffineGraphQL.ByokCustomEndpointMode> { __data["customEndpointMode"] }
|
||||
public var privateEndpointSupported: Bool { __data["privateEndpointSupported"] }
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Catalog
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCatalogType`
|
||||
public struct Catalog: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCatalogType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("version", String.self),
|
||||
.field("providers", [Provider].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.self
|
||||
] }
|
||||
|
||||
public var version: String { __data["version"] }
|
||||
public var providers: [Provider] { __data["providers"] }
|
||||
|
||||
/// Workspace.ByokSettings.Catalog.Provider
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCatalogProviderType`
|
||||
public struct Provider: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCatalogProviderType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("provider", GraphQLEnum<AffineGraphQL.ByokProvider>.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.Provider.self
|
||||
] }
|
||||
|
||||
public var provider: GraphQLEnum<AffineGraphQL.ByokProvider> { __data["provider"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// Workspace.ByokSettings.Catalog.Provider.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCatalogModelType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCatalogModelType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("displayName", String.self),
|
||||
.field("recommended", Bool.self),
|
||||
.field("capabilities", [Capability].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.Provider.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var displayName: String { __data["displayName"] }
|
||||
public var recommended: Bool { __data["recommended"] }
|
||||
public var capabilities: [Capability] { __data["capabilities"] }
|
||||
|
||||
/// Workspace.ByokSettings.Catalog.Provider.Model.Capability
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokCapabilityType`
|
||||
public struct Capability: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCapabilityType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("input", [GraphQLEnum<AffineGraphQL.ByokModelInput>].self),
|
||||
.field("output", [GraphQLEnum<AffineGraphQL.ByokModelOutput>].self),
|
||||
.field("features", [GraphQLEnum<AffineGraphQL.ByokModelFeature>].self),
|
||||
.field("attachmentKinds", [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>].self),
|
||||
.field("attachmentSources", [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Catalog.Provider.Model.Capability.self
|
||||
] }
|
||||
|
||||
public var input: [GraphQLEnum<AffineGraphQL.ByokModelInput>] { __data["input"] }
|
||||
public var output: [GraphQLEnum<AffineGraphQL.ByokModelOutput>] { __data["output"] }
|
||||
public var features: [GraphQLEnum<AffineGraphQL.ByokModelFeature>] { __data["features"] }
|
||||
public var attachmentKinds: [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>] { __data["attachmentKinds"] }
|
||||
public var attachmentSources: [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>] { __data["attachmentSources"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProfileType`
|
||||
@@ -118,8 +235,9 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
.field("description", String?.self),
|
||||
.field("enabled", Bool.self),
|
||||
.field("sortOrder", AffineGraphQL.SafeInt.self),
|
||||
.field("revision", AffineGraphQL.SafeInt.self),
|
||||
.field("definition", Definition.self),
|
||||
.field("probe", Probe.self),
|
||||
.field("validation", Validation?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.self
|
||||
@@ -131,8 +249,9 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public var description: String? { __data["description"] }
|
||||
public var enabled: Bool { __data["enabled"] }
|
||||
public var sortOrder: AffineGraphQL.SafeInt { __data["sortOrder"] }
|
||||
public var revision: AffineGraphQL.SafeInt { __data["revision"] }
|
||||
public var definition: Definition { __data["definition"] }
|
||||
public var probe: Probe { __data["probe"] }
|
||||
public var validation: Validation? { __data["validation"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Definition
|
||||
///
|
||||
@@ -144,7 +263,6 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProfileDefinitionType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("version", AffineGraphQL.SafeInt.self),
|
||||
.field("endpoint", Endpoint.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
@@ -152,7 +270,6 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.self
|
||||
] }
|
||||
|
||||
public var version: AffineGraphQL.SafeInt { __data["version"] }
|
||||
public var endpoint: Endpoint { __data["endpoint"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
@@ -166,15 +283,17 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokEndpointType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokEndpointKind>.self),
|
||||
.field("url", String?.self),
|
||||
.field("dialect", GraphQLEnum<AffineGraphQL.ByokOpenAiDialect>?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Endpoint.self
|
||||
] }
|
||||
|
||||
public var kind: String { __data["kind"] }
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokEndpointKind> { __data["kind"] }
|
||||
public var url: String? { __data["url"] }
|
||||
public var dialect: GraphQLEnum<AffineGraphQL.ByokOpenAiDialect>? { __data["dialect"] }
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Definition.Model
|
||||
@@ -188,6 +307,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("enabled", Bool.self),
|
||||
.field("capabilities", [Capability].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
@@ -195,6 +315,7 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var enabled: Bool { __data["enabled"] }
|
||||
public var capabilities: [Capability] { __data["capabilities"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Definition.Model.Capability
|
||||
@@ -207,46 +328,136 @@ public class WorkspaceByokSettingsQuery: GraphQLQuery {
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokCapabilityType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("input", [String].self),
|
||||
.field("output", [String].self),
|
||||
.field("features", [String].self),
|
||||
.field("attachmentKinds", [String].self),
|
||||
.field("attachmentSources", [String].self),
|
||||
.field("input", [GraphQLEnum<AffineGraphQL.ByokModelInput>].self),
|
||||
.field("output", [GraphQLEnum<AffineGraphQL.ByokModelOutput>].self),
|
||||
.field("features", [GraphQLEnum<AffineGraphQL.ByokModelFeature>].self),
|
||||
.field("attachmentKinds", [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>].self),
|
||||
.field("attachmentSources", [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Definition.Model.Capability.self
|
||||
] }
|
||||
|
||||
public var input: [String] { __data["input"] }
|
||||
public var output: [String] { __data["output"] }
|
||||
public var features: [String] { __data["features"] }
|
||||
public var attachmentKinds: [String] { __data["attachmentKinds"] }
|
||||
public var attachmentSources: [String] { __data["attachmentSources"] }
|
||||
public var input: [GraphQLEnum<AffineGraphQL.ByokModelInput>] { __data["input"] }
|
||||
public var output: [GraphQLEnum<AffineGraphQL.ByokModelOutput>] { __data["output"] }
|
||||
public var features: [GraphQLEnum<AffineGraphQL.ByokModelFeature>] { __data["features"] }
|
||||
public var attachmentKinds: [GraphQLEnum<AffineGraphQL.ByokAttachmentKind>] { __data["attachmentKinds"] }
|
||||
public var attachmentSources: [GraphQLEnum<AffineGraphQL.ByokAttachmentSource>] { __data["attachmentSources"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Probe
|
||||
/// Workspace.ByokSettings.Profile.Validation
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeType`
|
||||
public struct Probe: AffineGraphQL.SelectionSet {
|
||||
/// Parent Type: `WorkspaceByokValidationType`
|
||||
public struct Validation: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeType }
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokValidationType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", String.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
.field("definitionFingerprint", String.self),
|
||||
.field("credentialGeneration", AffineGraphQL.SafeInt.self),
|
||||
.field("connection", Connection.self),
|
||||
.field("models", [Model].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Probe.self
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.self
|
||||
] }
|
||||
|
||||
public var kind: String { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
public var definitionFingerprint: String { __data["definitionFingerprint"] }
|
||||
public var credentialGeneration: AffineGraphQL.SafeInt { __data["credentialGeneration"] }
|
||||
public var connection: Connection { __data["connection"] }
|
||||
public var models: [Model] { __data["models"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Connection
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Connection: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Connection.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Model
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeType`
|
||||
public struct Model: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("modelId", String.self),
|
||||
.field("checks", [Check].self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Model.self
|
||||
] }
|
||||
|
||||
public var modelId: String { __data["modelId"] }
|
||||
public var checks: [Check] { __data["checks"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Model.Check
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokModelProbeCheckType`
|
||||
public struct Check: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("operation", GraphQLEnum<AffineGraphQL.ByokProbeOperation>.self),
|
||||
.field("status", Status.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Model.Check.self
|
||||
] }
|
||||
|
||||
public var operation: GraphQLEnum<AffineGraphQL.ByokProbeOperation> { __data["operation"] }
|
||||
public var status: Status { __data["status"] }
|
||||
|
||||
/// Workspace.ByokSettings.Profile.Validation.Model.Check.Status
|
||||
///
|
||||
/// Parent Type: `WorkspaceByokProbeStatusType`
|
||||
public struct Status: AffineGraphQL.SelectionSet {
|
||||
public let __data: DataDict
|
||||
public init(_dataDict: DataDict) { __data = _dataDict }
|
||||
|
||||
public static var __parentType: any ApolloAPI.ParentType { AffineGraphQL.Objects.WorkspaceByokProbeStatusType }
|
||||
public static var __selections: [ApolloAPI.Selection] { [
|
||||
.field("__typename", String.self),
|
||||
.field("kind", GraphQLEnum<AffineGraphQL.ByokProbeStatusKind>.self),
|
||||
.field("testedAt", AffineGraphQL.DateTime?.self),
|
||||
.field("errorKind", String?.self),
|
||||
] }
|
||||
public static var __fulfilledFragments: [any ApolloAPI.SelectionSet.Type] { [
|
||||
WorkspaceByokSettingsQuery.Data.Workspace.ByokSettings.Profile.Validation.Model.Check.Status.self
|
||||
] }
|
||||
|
||||
public var kind: GraphQLEnum<AffineGraphQL.ByokProbeStatusKind> { __data["kind"] }
|
||||
public var testedAt: AffineGraphQL.DateTime? { __data["testedAt"] }
|
||||
public var errorKind: String? { __data["errorKind"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokAttachmentKind: String, EnumType {
|
||||
case audio = "audio"
|
||||
case file = "file"
|
||||
case image = "image"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokAttachmentSource: String, EnumType {
|
||||
case bytes = "bytes"
|
||||
case data = "data"
|
||||
case fileHandle = "file_handle"
|
||||
case url = "url"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokCustomEndpointMode: String, EnumType {
|
||||
case disabled = "disabled"
|
||||
case enabled = "enabled"
|
||||
case unavailable = "unavailable"
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokEndpointKind: String, EnumType {
|
||||
case openaiCompatible = "openai_compatible"
|
||||
case providerDefault = "provider_default"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokModelFeature: String, EnumType {
|
||||
case reasoning = "reasoning"
|
||||
case toolCalling = "tool_calling"
|
||||
case webSearch = "web_search"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokModelInput: String, EnumType {
|
||||
case audio = "audio"
|
||||
case file = "file"
|
||||
case image = "image"
|
||||
case text = "text"
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokModelOutput: String, EnumType {
|
||||
case embedding = "embedding"
|
||||
case image = "image"
|
||||
case object = "object"
|
||||
case rerank = "rerank"
|
||||
case structured = "structured"
|
||||
case text = "text"
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokOpenAiDialect: String, EnumType {
|
||||
case chatCompletions = "chat_completions"
|
||||
case responses = "responses"
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ByokProbeOperation: String, EnumType {
|
||||
case chat = "chat"
|
||||
case embedding = "embedding"
|
||||
case image = "image"
|
||||
case rerank = "rerank"
|
||||
case structured = "structured"
|
||||
case toolCalling = "tool_calling"
|
||||
case transcript = "transcript"
|
||||
case vision = "vision"
|
||||
}
|
||||
+3
-3
@@ -3,8 +3,8 @@
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ContextEmbedStatus: String, EnumType {
|
||||
public enum ByokProbeStatusKind: String, EnumType {
|
||||
case failed = "failed"
|
||||
case finished = "finished"
|
||||
case processing = "processing"
|
||||
case notTested = "not_tested"
|
||||
case verified = "verified"
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public enum ContextCategories: String, EnumType {
|
||||
case collection = "Collection"
|
||||
case tag = "Tag"
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextBlobInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
blobId: String,
|
||||
contextId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"blobId": blobId,
|
||||
"contextId": contextId
|
||||
])
|
||||
}
|
||||
|
||||
public var blobId: String {
|
||||
get { __data["blobId"] }
|
||||
set { __data["blobId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
}
|
||||
-46
@@ -1,46 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextCategoryInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
categoryId: String,
|
||||
contextId: String,
|
||||
docs: GraphQLNullable<[String]> = nil,
|
||||
type: GraphQLEnum<ContextCategories>
|
||||
) {
|
||||
__data = InputDict([
|
||||
"categoryId": categoryId,
|
||||
"contextId": contextId,
|
||||
"docs": docs,
|
||||
"type": type
|
||||
])
|
||||
}
|
||||
|
||||
public var categoryId: String {
|
||||
get { __data["categoryId"] }
|
||||
set { __data["categoryId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var docs: GraphQLNullable<[String]> {
|
||||
get { __data["docs"] }
|
||||
set { __data["docs"] = newValue }
|
||||
}
|
||||
|
||||
public var type: GraphQLEnum<ContextCategories> {
|
||||
get { __data["type"] }
|
||||
set { __data["type"] = newValue }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextDocInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
docId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId,
|
||||
"docId": docId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct AddContextFileInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ProbeWorkspaceByokDraftInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
checks: [WorkspaceByokProbeCheckInput],
|
||||
credential: GraphQLNullable<String> = nil,
|
||||
definition: WorkspaceByokProfileDefinitionInput,
|
||||
expectedRevision: GraphQLNullable<SafeInt> = nil,
|
||||
profileId: GraphQLNullable<ID> = nil,
|
||||
provider: GraphQLEnum<ByokProvider>,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"checks": checks,
|
||||
"credential": credential,
|
||||
"definition": definition,
|
||||
"expectedRevision": expectedRevision,
|
||||
"profileId": profileId,
|
||||
"provider": provider,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var checks: [WorkspaceByokProbeCheckInput] {
|
||||
get { __data["checks"] }
|
||||
set { __data["checks"] = newValue }
|
||||
}
|
||||
|
||||
public var credential: GraphQLNullable<String> {
|
||||
get { __data["credential"] }
|
||||
set { __data["credential"] = newValue }
|
||||
}
|
||||
|
||||
public var definition: WorkspaceByokProfileDefinitionInput {
|
||||
get { __data["definition"] }
|
||||
set { __data["definition"] = newValue }
|
||||
}
|
||||
|
||||
public var expectedRevision: GraphQLNullable<SafeInt> {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: GraphQLNullable<ID> {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
}
|
||||
|
||||
public var provider: GraphQLEnum<ByokProvider> {
|
||||
get { __data["provider"] }
|
||||
set { __data["provider"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ProbeWorkspaceByokProfileInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
checks: [WorkspaceByokProbeCheckInput],
|
||||
profileId: ID,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"checks": checks,
|
||||
"profileId": profileId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var checks: [WorkspaceByokProbeCheckInput] {
|
||||
get { __data["checks"] }
|
||||
set { __data["checks"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: ID {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextBlobInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
blobId: String,
|
||||
contextId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"blobId": blobId,
|
||||
"contextId": contextId
|
||||
])
|
||||
}
|
||||
|
||||
public var blobId: String {
|
||||
get { __data["blobId"] }
|
||||
set { __data["blobId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
}
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextCategoryInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
categoryId: String,
|
||||
contextId: String,
|
||||
type: GraphQLEnum<ContextCategories>
|
||||
) {
|
||||
__data = InputDict([
|
||||
"categoryId": categoryId,
|
||||
"contextId": contextId,
|
||||
"type": type
|
||||
])
|
||||
}
|
||||
|
||||
public var categoryId: String {
|
||||
get { __data["categoryId"] }
|
||||
set { __data["categoryId"] = newValue }
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var type: GraphQLEnum<ContextCategories> {
|
||||
get { __data["type"] }
|
||||
set { __data["type"] = newValue }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextDocInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
docId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId,
|
||||
"docId": docId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct RemoveContextFileInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
contextId: String,
|
||||
fileId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"contextId": contextId,
|
||||
"fileId": fileId
|
||||
])
|
||||
}
|
||||
|
||||
public var contextId: String {
|
||||
get { __data["contextId"] }
|
||||
set { __data["contextId"] = newValue }
|
||||
}
|
||||
|
||||
public var fileId: String {
|
||||
get { __data["fileId"] }
|
||||
set { __data["fileId"] = newValue }
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct ReorderWorkspaceByokProfilesInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
profiles: [WorkspaceByokProfileOrderInput],
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"profiles": profiles,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var profiles: [WorkspaceByokProfileOrderInput] {
|
||||
get { __data["profiles"] }
|
||||
set { __data["profiles"] = newValue }
|
||||
}
|
||||
|
||||
public var workspaceId: String {
|
||||
get { __data["workspaceId"] }
|
||||
set { __data["workspaceId"] = newValue }
|
||||
}
|
||||
}
|
||||
+14
@@ -11,23 +11,32 @@ public struct ReplaceWorkspaceByokProfileInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
credential: GraphQLNullable<String> = nil,
|
||||
definition: WorkspaceByokProfileDefinitionInput,
|
||||
description: GraphQLNullable<String> = nil,
|
||||
enabled: Bool,
|
||||
expectedRevision: SafeInt,
|
||||
name: String,
|
||||
profileId: ID,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"credential": credential,
|
||||
"definition": definition,
|
||||
"description": description,
|
||||
"enabled": enabled,
|
||||
"expectedRevision": expectedRevision,
|
||||
"name": name,
|
||||
"profileId": profileId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var credential: GraphQLNullable<String> {
|
||||
get { __data["credential"] }
|
||||
set { __data["credential"] = newValue }
|
||||
}
|
||||
|
||||
public var definition: WorkspaceByokProfileDefinitionInput {
|
||||
get { __data["definition"] }
|
||||
set { __data["definition"] = newValue }
|
||||
@@ -43,6 +52,11 @@ public struct ReplaceWorkspaceByokProfileInput: InputObject {
|
||||
set { __data["enabled"] = newValue }
|
||||
}
|
||||
|
||||
public var expectedRevision: SafeInt {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var name: String {
|
||||
get { __data["name"] }
|
||||
set { __data["name"] = newValue }
|
||||
|
||||
+7
@@ -12,11 +12,13 @@ public struct RotateWorkspaceByokCredentialInput: InputObject {
|
||||
|
||||
public init(
|
||||
credential: String,
|
||||
expectedRevision: SafeInt,
|
||||
profileId: ID,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"credential": credential,
|
||||
"expectedRevision": expectedRevision,
|
||||
"profileId": profileId,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
@@ -27,6 +29,11 @@ public struct RotateWorkspaceByokCredentialInput: InputObject {
|
||||
set { __data["credential"] = newValue }
|
||||
}
|
||||
|
||||
public var expectedRevision: SafeInt {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: ID {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
|
||||
+10
-10
@@ -11,11 +11,11 @@ public struct WorkspaceByokCapabilityInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
attachmentKinds: [String],
|
||||
attachmentSources: [String],
|
||||
features: [String],
|
||||
input: [String],
|
||||
output: [String]
|
||||
attachmentKinds: [GraphQLEnum<ByokAttachmentKind>],
|
||||
attachmentSources: [GraphQLEnum<ByokAttachmentSource>],
|
||||
features: [GraphQLEnum<ByokModelFeature>],
|
||||
input: [GraphQLEnum<ByokModelInput>],
|
||||
output: [GraphQLEnum<ByokModelOutput>]
|
||||
) {
|
||||
__data = InputDict([
|
||||
"attachmentKinds": attachmentKinds,
|
||||
@@ -26,27 +26,27 @@ public struct WorkspaceByokCapabilityInput: InputObject {
|
||||
])
|
||||
}
|
||||
|
||||
public var attachmentKinds: [String] {
|
||||
public var attachmentKinds: [GraphQLEnum<ByokAttachmentKind>] {
|
||||
get { __data["attachmentKinds"] }
|
||||
set { __data["attachmentKinds"] = newValue }
|
||||
}
|
||||
|
||||
public var attachmentSources: [String] {
|
||||
public var attachmentSources: [GraphQLEnum<ByokAttachmentSource>] {
|
||||
get { __data["attachmentSources"] }
|
||||
set { __data["attachmentSources"] = newValue }
|
||||
}
|
||||
|
||||
public var features: [String] {
|
||||
public var features: [GraphQLEnum<ByokModelFeature>] {
|
||||
get { __data["features"] }
|
||||
set { __data["features"] = newValue }
|
||||
}
|
||||
|
||||
public var input: [String] {
|
||||
public var input: [GraphQLEnum<ByokModelInput>] {
|
||||
get { __data["input"] }
|
||||
set { __data["input"] = newValue }
|
||||
}
|
||||
|
||||
public var output: [String] {
|
||||
public var output: [GraphQLEnum<ByokModelOutput>] {
|
||||
get { __data["output"] }
|
||||
set { __data["output"] = newValue }
|
||||
}
|
||||
|
||||
+9
-2
@@ -11,16 +11,23 @@ public struct WorkspaceByokEndpointInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
kind: String,
|
||||
dialect: GraphQLNullable<GraphQLEnum<ByokOpenAiDialect>> = nil,
|
||||
kind: GraphQLEnum<ByokEndpointKind>,
|
||||
url: GraphQLNullable<String> = nil
|
||||
) {
|
||||
__data = InputDict([
|
||||
"dialect": dialect,
|
||||
"kind": kind,
|
||||
"url": url
|
||||
])
|
||||
}
|
||||
|
||||
public var kind: String {
|
||||
public var dialect: GraphQLNullable<GraphQLEnum<ByokOpenAiDialect>> {
|
||||
get { __data["dialect"] }
|
||||
set { __data["dialect"] = newValue }
|
||||
}
|
||||
|
||||
public var kind: GraphQLEnum<ByokEndpointKind> {
|
||||
get { __data["kind"] }
|
||||
set { __data["kind"] = newValue }
|
||||
}
|
||||
|
||||
+7
@@ -12,10 +12,12 @@ public struct WorkspaceByokModelDeclarationInput: InputObject {
|
||||
|
||||
public init(
|
||||
capabilities: [WorkspaceByokCapabilityInput],
|
||||
enabled: Bool,
|
||||
modelId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"capabilities": capabilities,
|
||||
"enabled": enabled,
|
||||
"modelId": modelId
|
||||
])
|
||||
}
|
||||
@@ -25,6 +27,11 @@ public struct WorkspaceByokModelDeclarationInput: InputObject {
|
||||
set { __data["capabilities"] = newValue }
|
||||
}
|
||||
|
||||
public var enabled: Bool {
|
||||
get { __data["enabled"] }
|
||||
set { __data["enabled"] = newValue }
|
||||
}
|
||||
|
||||
public var modelId: String {
|
||||
get { __data["modelId"] }
|
||||
set { __data["modelId"] = newValue }
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct WorkspaceByokProbeCheckInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
modelId: String,
|
||||
operation: GraphQLEnum<ByokProbeOperation>
|
||||
) {
|
||||
__data = InputDict([
|
||||
"modelId": modelId,
|
||||
"operation": operation
|
||||
])
|
||||
}
|
||||
|
||||
public var modelId: String {
|
||||
get { __data["modelId"] }
|
||||
set { __data["modelId"] = newValue }
|
||||
}
|
||||
|
||||
public var operation: GraphQLEnum<ByokProbeOperation> {
|
||||
get { __data["operation"] }
|
||||
set { __data["operation"] = newValue }
|
||||
}
|
||||
}
|
||||
+2
-9
@@ -12,13 +12,11 @@ public struct WorkspaceByokProfileDefinitionInput: InputObject {
|
||||
|
||||
public init(
|
||||
endpoint: WorkspaceByokEndpointInput,
|
||||
models: [WorkspaceByokModelDeclarationInput],
|
||||
version: SafeInt
|
||||
models: [WorkspaceByokModelDeclarationInput]
|
||||
) {
|
||||
__data = InputDict([
|
||||
"endpoint": endpoint,
|
||||
"models": models,
|
||||
"version": version
|
||||
"models": models
|
||||
])
|
||||
}
|
||||
|
||||
@@ -31,9 +29,4 @@ public struct WorkspaceByokProfileDefinitionInput: InputObject {
|
||||
get { __data["models"] }
|
||||
set { __data["models"] = newValue }
|
||||
}
|
||||
|
||||
public var version: SafeInt {
|
||||
get { __data["version"] }
|
||||
set { __data["version"] = newValue }
|
||||
}
|
||||
}
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public struct WorkspaceByokProfileOrderInput: InputObject {
|
||||
public private(set) var __data: InputDict
|
||||
|
||||
public init(_ data: InputDict) {
|
||||
__data = data
|
||||
}
|
||||
|
||||
public init(
|
||||
expectedRevision: SafeInt,
|
||||
profileId: ID
|
||||
) {
|
||||
__data = InputDict([
|
||||
"expectedRevision": expectedRevision,
|
||||
"profileId": profileId
|
||||
])
|
||||
}
|
||||
|
||||
public var expectedRevision: SafeInt {
|
||||
get { __data["expectedRevision"] }
|
||||
set { __data["expectedRevision"] = newValue }
|
||||
}
|
||||
|
||||
public var profileId: ID {
|
||||
get { __data["profileId"] }
|
||||
set { __data["profileId"] = newValue }
|
||||
}
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContextCategory = ApolloAPI.Object(
|
||||
typename: "CopilotContextCategory",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContextDoc = ApolloAPI.Object(
|
||||
typename: "CopilotContextDoc",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContextFile = ApolloAPI.Object(
|
||||
typename: "CopilotContextFile",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContextBlob = ApolloAPI.Object(
|
||||
typename: "CopilotContextBlob",
|
||||
static let CopilotWorkspaceArtifact = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceArtifact",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotWorkspaceArtifactTypeEdge = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceArtifactTypeEdge",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotWorkspaceFile = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceFile",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotWorkspaceFileTypeEdge = ApolloAPI.Object(
|
||||
typename: "CopilotWorkspaceFileTypeEdge",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let PaginatedCopilotWorkspaceArtifactType = ApolloAPI.Object(
|
||||
typename: "PaginatedCopilotWorkspaceArtifactType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let PaginatedCopilotWorkspaceFileType = ApolloAPI.Object(
|
||||
typename: "PaginatedCopilotWorkspaceFileType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokCatalogModelType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokCatalogModelType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokCatalogProviderType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokCatalogProviderType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let ContextMatchedFileChunk = ApolloAPI.Object(
|
||||
typename: "ContextMatchedFileChunk",
|
||||
static let WorkspaceByokCatalogType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokCatalogType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokModelProbeCheckType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokModelProbeCheckType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let ContextMatchedDocChunk = ApolloAPI.Object(
|
||||
typename: "ContextMatchedDocChunk",
|
||||
static let WorkspaceByokModelProbeType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokModelProbeType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let CopilotContext = ApolloAPI.Object(
|
||||
typename: "CopilotContext",
|
||||
static let WorkspaceByokPolicyType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokPolicyType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokProbeResultType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokProbeResultType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokProbeStatusType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokProbeStatusType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokProbeType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokProbeType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let WorkspaceByokValidationType = ApolloAPI.Object(
|
||||
typename: "WorkspaceByokValidationType",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
+12
-11
@@ -51,22 +51,15 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
"CommentChangeObjectTypeEdge": AffineGraphQL.Objects.CommentChangeObjectTypeEdge,
|
||||
"CommentObjectType": AffineGraphQL.Objects.CommentObjectType,
|
||||
"CommentObjectTypeEdge": AffineGraphQL.Objects.CommentObjectTypeEdge,
|
||||
"ContextMatchedDocChunk": AffineGraphQL.Objects.ContextMatchedDocChunk,
|
||||
"ContextMatchedFileChunk": AffineGraphQL.Objects.ContextMatchedFileChunk,
|
||||
"Copilot": AffineGraphQL.Objects.Copilot,
|
||||
"CopilotContext": AffineGraphQL.Objects.CopilotContext,
|
||||
"CopilotContextBlob": AffineGraphQL.Objects.CopilotContextBlob,
|
||||
"CopilotContextCategory": AffineGraphQL.Objects.CopilotContextCategory,
|
||||
"CopilotContextDoc": AffineGraphQL.Objects.CopilotContextDoc,
|
||||
"CopilotContextFile": AffineGraphQL.Objects.CopilotContextFile,
|
||||
"CopilotHistories": AffineGraphQL.Objects.CopilotHistories,
|
||||
"CopilotHistoriesTypeEdge": AffineGraphQL.Objects.CopilotHistoriesTypeEdge,
|
||||
"CopilotQuota": AffineGraphQL.Objects.CopilotQuota,
|
||||
"CopilotRouteOptions": AffineGraphQL.Objects.CopilotRouteOptions,
|
||||
"CopilotRouteTarget": AffineGraphQL.Objects.CopilotRouteTarget,
|
||||
"CopilotWorkspaceArtifact": AffineGraphQL.Objects.CopilotWorkspaceArtifact,
|
||||
"CopilotWorkspaceArtifactTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceArtifactTypeEdge,
|
||||
"CopilotWorkspaceConfig": AffineGraphQL.Objects.CopilotWorkspaceConfig,
|
||||
"CopilotWorkspaceFile": AffineGraphQL.Objects.CopilotWorkspaceFile,
|
||||
"CopilotWorkspaceFileTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceFileTypeEdge,
|
||||
"CopilotWorkspaceIgnoredDoc": AffineGraphQL.Objects.CopilotWorkspaceIgnoredDoc,
|
||||
"CopilotWorkspaceIgnoredDocTypeEdge": AffineGraphQL.Objects.CopilotWorkspaceIgnoredDocTypeEdge,
|
||||
"CreateWorkspaceByokLocalLeaseResultType": AffineGraphQL.Objects.CreateWorkspaceByokLocalLeaseResultType,
|
||||
@@ -102,7 +95,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
"PaginatedCommentChangeObjectType": AffineGraphQL.Objects.PaginatedCommentChangeObjectType,
|
||||
"PaginatedCommentObjectType": AffineGraphQL.Objects.PaginatedCommentObjectType,
|
||||
"PaginatedCopilotHistoriesType": AffineGraphQL.Objects.PaginatedCopilotHistoriesType,
|
||||
"PaginatedCopilotWorkspaceFileType": AffineGraphQL.Objects.PaginatedCopilotWorkspaceFileType,
|
||||
"PaginatedCopilotWorkspaceArtifactType": AffineGraphQL.Objects.PaginatedCopilotWorkspaceArtifactType,
|
||||
"PaginatedDocMemberLastAccess": AffineGraphQL.Objects.PaginatedDocMemberLastAccess,
|
||||
"PaginatedDocType": AffineGraphQL.Objects.PaginatedDocType,
|
||||
"PaginatedIgnoredDocsType": AffineGraphQL.Objects.PaginatedIgnoredDocsType,
|
||||
@@ -134,13 +127,21 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
"UserSettingsType": AffineGraphQL.Objects.UserSettingsType,
|
||||
"UserType": AffineGraphQL.Objects.UserType,
|
||||
"WorkspaceByokCapabilityType": AffineGraphQL.Objects.WorkspaceByokCapabilityType,
|
||||
"WorkspaceByokCatalogModelType": AffineGraphQL.Objects.WorkspaceByokCatalogModelType,
|
||||
"WorkspaceByokCatalogProviderType": AffineGraphQL.Objects.WorkspaceByokCatalogProviderType,
|
||||
"WorkspaceByokCatalogType": AffineGraphQL.Objects.WorkspaceByokCatalogType,
|
||||
"WorkspaceByokEndpointType": AffineGraphQL.Objects.WorkspaceByokEndpointType,
|
||||
"WorkspaceByokModelDeclarationType": AffineGraphQL.Objects.WorkspaceByokModelDeclarationType,
|
||||
"WorkspaceByokProbeType": AffineGraphQL.Objects.WorkspaceByokProbeType,
|
||||
"WorkspaceByokModelProbeCheckType": AffineGraphQL.Objects.WorkspaceByokModelProbeCheckType,
|
||||
"WorkspaceByokModelProbeType": AffineGraphQL.Objects.WorkspaceByokModelProbeType,
|
||||
"WorkspaceByokPolicyType": AffineGraphQL.Objects.WorkspaceByokPolicyType,
|
||||
"WorkspaceByokProbeResultType": AffineGraphQL.Objects.WorkspaceByokProbeResultType,
|
||||
"WorkspaceByokProbeStatusType": AffineGraphQL.Objects.WorkspaceByokProbeStatusType,
|
||||
"WorkspaceByokProfileDefinitionType": AffineGraphQL.Objects.WorkspaceByokProfileDefinitionType,
|
||||
"WorkspaceByokProfileType": AffineGraphQL.Objects.WorkspaceByokProfileType,
|
||||
"WorkspaceByokSettingsType": AffineGraphQL.Objects.WorkspaceByokSettingsType,
|
||||
"WorkspaceByokUsagePointType": AffineGraphQL.Objects.WorkspaceByokUsagePointType,
|
||||
"WorkspaceByokValidationType": AffineGraphQL.Objects.WorkspaceByokValidationType,
|
||||
"WorkspaceCalendarItemObjectType": AffineGraphQL.Objects.WorkspaceCalendarItemObjectType,
|
||||
"WorkspaceCalendarObjectType": AffineGraphQL.Objects.WorkspaceCalendarObjectType,
|
||||
"WorkspaceDocMeta": AffineGraphQL.Objects.WorkspaceDocMeta,
|
||||
|
||||
@@ -16,7 +16,7 @@ let package = Package(
|
||||
dependencies: [
|
||||
.package(path: "../AffineGraphQL"),
|
||||
.package(path: "../AffineResources"),
|
||||
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.25.4"),
|
||||
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.25.7"),
|
||||
.package(url: "https://github.com/apple/swift-collections.git", from: "1.6.0"),
|
||||
.package(url: "https://github.com/SnapKit/SnapKit.git", from: "5.7.1"),
|
||||
.package(url: "https://github.com/SwifterSwift/SwifterSwift.git", from: "6.2.0"),
|
||||
|
||||
+21
-99
@@ -55,10 +55,10 @@ public extension ChatManager {
|
||||
}
|
||||
|
||||
DispatchQueue.global().async {
|
||||
self.prepareContext(
|
||||
self.startCopilotResponse(
|
||||
workspaceId: workspaceId,
|
||||
sessionId: sessionId,
|
||||
editorData: editorData,
|
||||
sessionId: sessionId,
|
||||
viewModelId: viewModelId
|
||||
)
|
||||
}
|
||||
@@ -66,108 +66,15 @@ public extension ChatManager {
|
||||
}
|
||||
|
||||
private extension ChatManager {
|
||||
func prepareContext(
|
||||
workspaceId: String,
|
||||
sessionId: String,
|
||||
editorData: InputBoxData,
|
||||
viewModelId: UUID
|
||||
) {
|
||||
assert(!Thread.isMainThread)
|
||||
let createContext = CreateCopilotContextMutation(
|
||||
workspaceId: workspaceId,
|
||||
sessionId: sessionId
|
||||
)
|
||||
QLService.shared.client.perform(mutation: createContext) { result in
|
||||
DispatchQueue.main.async {
|
||||
switch result {
|
||||
case let .success(graphQLResult):
|
||||
guard let contextId = graphQLResult.data?.createCopilotContext else {
|
||||
self.report(sessionId, ChatError.invalidResponse)
|
||||
return
|
||||
}
|
||||
print("[+] copilot context created: \(contextId)")
|
||||
|
||||
DispatchQueue.global().async {
|
||||
let docAttachGroup = DispatchGroup()
|
||||
for docAttach in editorData.documentAttachments {
|
||||
let addDoc = AddContextDocMutation(
|
||||
options: .init(
|
||||
contextId: contextId,
|
||||
docId: docAttach.documentID
|
||||
)
|
||||
)
|
||||
docAttachGroup.enter()
|
||||
QLService.shared.client.perform(mutation: addDoc) { result in
|
||||
switch result {
|
||||
case .success:
|
||||
print("[+] doc \(docAttach.documentID) added to context")
|
||||
case let .failure(error):
|
||||
print("[-] addContextDoc failed: \(error)")
|
||||
}
|
||||
docAttachGroup.leave()
|
||||
}
|
||||
}
|
||||
|
||||
docAttachGroup.notify(queue: .global()) {
|
||||
var contextSnippet = ""
|
||||
if !editorData.documentAttachments.isEmpty {
|
||||
let sem = DispatchSemaphore(value: 0)
|
||||
let matchQuery = MatchContextQuery(
|
||||
contextId: .some(contextId),
|
||||
workspaceId: .some(workspaceId),
|
||||
content: editorData.text,
|
||||
limit: .none,
|
||||
scopedThreshold: .none,
|
||||
threshold: .none
|
||||
)
|
||||
QLService.shared.client.fetch(query: matchQuery) { result in
|
||||
switch result {
|
||||
case let .success(queryResult):
|
||||
let matches = queryResult.data?.currentUser?.copilot.contexts ?? []
|
||||
let matchDocs = matches.compactMap(\.matchWorkspaceDocs).flatMap(\.self)
|
||||
for context in matchDocs {
|
||||
contextSnippet += "<file docId=\"\(context.docId)\" chunk=\"\(context.chunk)\">\(context.content)</file>\n"
|
||||
}
|
||||
case let .failure(error):
|
||||
print("[-] matchContext failed: \(error)")
|
||||
// self.report(sessionId, error)
|
||||
}
|
||||
sem.signal()
|
||||
}
|
||||
sem.wait()
|
||||
}
|
||||
print("[+] context snippet prepared: \(contextSnippet)")
|
||||
self.startCopilotResponse(
|
||||
editorData: editorData,
|
||||
contextSnippet: contextSnippet,
|
||||
sessionId: sessionId,
|
||||
viewModelId: viewModelId
|
||||
)
|
||||
}
|
||||
}
|
||||
case let .failure(error):
|
||||
self.report(sessionId, error)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func startCopilotResponse(
|
||||
workspaceId: String,
|
||||
editorData: InputBoxData,
|
||||
contextSnippet: String,
|
||||
sessionId: String,
|
||||
viewModelId: UUID
|
||||
) {
|
||||
assert(!Thread.isMainThread)
|
||||
print("[+] starting copilot response for session: \(sessionId)")
|
||||
|
||||
let messageParameters: AffineGraphQL.JSON = [
|
||||
// packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx
|
||||
"docs": editorData.documentAttachments.map(\.documentID), // affine doc
|
||||
"files": [String](), // attachment in context, keep nil for now
|
||||
"searchMode": editorData.isSearchEnabled ? "MUST" : "AUTO",
|
||||
]
|
||||
let uploadableAttachments: [CopilotAttachmentUpload] = [
|
||||
editorData.fileAttachments.map { file -> CopilotAttachmentUpload in
|
||||
.init(
|
||||
@@ -185,13 +92,28 @@ private extension ChatManager {
|
||||
},
|
||||
].flatMap(\.self)
|
||||
assert(uploadableAttachments.allSatisfy { !$0.data.isEmpty })
|
||||
let messageContent = contextSnippet.isEmpty ? editorData.text : "\(contextSnippet)\n\(editorData.text)"
|
||||
Task {
|
||||
do {
|
||||
let selectedDocumentIds = editorData.documentAttachments.map(\.documentID)
|
||||
if !selectedDocumentIds.isEmpty {
|
||||
try await IntelligentContext.shared.waitForSelectedSources(selectedDocumentIds)
|
||||
}
|
||||
let messageParameters: AffineGraphQL.JSON = [
|
||||
// packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx
|
||||
"scopeSelectors": editorData.documentAttachments.map { attachment in
|
||||
[
|
||||
"kind": "document",
|
||||
"id": attachment.documentID,
|
||||
"name": attachment.title,
|
||||
"source": "draft",
|
||||
]
|
||||
},
|
||||
"searchMode": editorData.isSearchEnabled ? "MUST" : "AUTO",
|
||||
]
|
||||
let messageIdentifier = try await QLService.shared.createCopilotMessage(
|
||||
workspaceId: IntelligentContext.shared.currentWorkspaceId ?? "",
|
||||
workspaceId: workspaceId,
|
||||
sessionId: sessionId,
|
||||
content: messageContent,
|
||||
content: editorData.text,
|
||||
params: messageParameters,
|
||||
attachments: uploadableAttachments
|
||||
)
|
||||
|
||||
+4
-1
@@ -20,10 +20,13 @@ enum BridgedWindowScript: String {
|
||||
case getAiButtonFeatureFlag = "window.getAiButtonFeatureFlag();"
|
||||
case getCurrentI18nLocale = "window.getCurrentI18nLocale();"
|
||||
case createNewDocByMarkdownInCurrentWorkspace = "return await window.createNewDocByMarkdownInCurrentWorkspace(markdown, title);"
|
||||
case waitForSelectedSources = "return await window.waitForSelectedSources(documentIds);"
|
||||
|
||||
var requiresAsyncContext: Bool {
|
||||
switch self {
|
||||
case .getCurrentDocContentInMarkdown, .createNewDocByMarkdownInCurrentWorkspace: true
|
||||
case .getCurrentDocContentInMarkdown,
|
||||
.createNewDocByMarkdownInCurrentWorkspace,
|
||||
.waitForSelectedSources: true
|
||||
default: false
|
||||
}
|
||||
}
|
||||
|
||||
+10
-10
@@ -25,27 +25,27 @@ public extension IntelligentContext {
|
||||
workspaceId: workspaceId
|
||||
)
|
||||
|
||||
let mutation = CreateCopilotSessionMutation(options: input)
|
||||
let mutation = CreateCopilotSessionWithHistoryMutation(options: input)
|
||||
|
||||
QLService.shared.client.perform(mutation: mutation) { result in
|
||||
switch result {
|
||||
case let .success(graphQLResult):
|
||||
guard let sessionId = graphQLResult.data?.createCopilotSession else {
|
||||
guard let history = graphQLResult.data?.createCopilotSessionWithHistory else {
|
||||
completion(.failure(IntelligentError.sessionCreationFailed("No session ID returned.")))
|
||||
return
|
||||
}
|
||||
|
||||
let session = ChatSessionObject(
|
||||
id: sessionId,
|
||||
workspaceId: workspaceId,
|
||||
docId: docId,
|
||||
promptName: promptName.rawValue,
|
||||
id: history.sessionId,
|
||||
workspaceId: history.workspaceId,
|
||||
docId: history.docId,
|
||||
promptName: history.promptName,
|
||||
model: nil,
|
||||
pinned: pinned,
|
||||
pinned: history.pinned,
|
||||
tokens: 0,
|
||||
createdAt: DateTime(date: Date()),
|
||||
updatedAt: DateTime(date: Date()),
|
||||
parentSessionId: nil
|
||||
createdAt: history.createdAt,
|
||||
updatedAt: history.updatedAt,
|
||||
parentSessionId: history.parentSessionId
|
||||
)
|
||||
completion(.success(session))
|
||||
|
||||
|
||||
+10
@@ -9,6 +9,16 @@ import UIKit
|
||||
import WebKit
|
||||
|
||||
extension IntelligentContext {
|
||||
@MainActor
|
||||
func waitForSelectedSources(_ documentIds: [String]) async throws {
|
||||
_ = try await webView.callAsyncJavaScript(
|
||||
BridgedWindowScript.waitForSelectedSources.rawValue,
|
||||
arguments: ["documentIds": documentIds],
|
||||
in: nil,
|
||||
contentWorld: .page
|
||||
)
|
||||
}
|
||||
|
||||
func prepareMetadataFrom(webView: WKWebView, completion: @escaping ([WebViewMetadataKey: Any]) -> Void) {
|
||||
var newMetadata: [WebViewMetadataKey: Any] = [:]
|
||||
let dispatchGroup = DispatchGroup()
|
||||
|
||||
@@ -4,10 +4,11 @@ cd "$(dirname "$0")"
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
VERSION=${1:-"1.25.4"} # Use first argument or default to 1.25.4
|
||||
VERSION=${1:-"1.25.7"}
|
||||
echo "📦 Apollo Version: $VERSION"
|
||||
|
||||
sed -i '' "s|apollo-ios\.git\", from: \"[^\"]*\"|apollo-ios.git\", from: \"$VERSION\"|" "App/Packages/Intelligents/Package.swift"
|
||||
sed -i '' "s|apollo-ios\", exact: \"[^\"]*\"|apollo-ios\", exact: \"$VERSION\"|" "App/Packages/AffineGraphQL/Package.swift"
|
||||
echo "✅ Version synced"
|
||||
|
||||
mkdir -p "App/Packages/AffineGraphQL/apollo-ios-cli"
|
||||
@@ -24,4 +25,3 @@ echo "✅ Code generated"
|
||||
rm -rf "App/Packages/AffineGraphQL/apollo-ios-cli"
|
||||
echo "🧹 Cleaned up"
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ const PackageRoot = iosPackage.path;
|
||||
|
||||
console.log('[*] PackageRoot', PackageRoot);
|
||||
|
||||
const version = process.argv[2] || '1.25.4'; // Default to 1.25.4 if no version provided
|
||||
const version = process.argv[2] || '1.25.7';
|
||||
|
||||
console.log('[*] graphql...');
|
||||
execSync(`${PackageRoot}/apollo-codegen-chore.sh "${version}"`, {
|
||||
|
||||
@@ -304,6 +304,39 @@ registerNativeImageFilesPicker(async () => {
|
||||
const globalContextService = frameworkProvider.get(GlobalContextService);
|
||||
return globalContextService.globalContext.docId.get();
|
||||
};
|
||||
(window as any).waitForSelectedSources = async (documentIds: string[]) => {
|
||||
const globalContextService = frameworkProvider.get(GlobalContextService);
|
||||
const currentWorkspaceId =
|
||||
globalContextService.globalContext.workspaceId.get();
|
||||
const workspacesService = frameworkProvider.get(WorkspacesService);
|
||||
const workspaceRef = currentWorkspaceId
|
||||
? workspacesService.openByWorkspaceId(currentWorkspaceId)
|
||||
: null;
|
||||
if (!workspaceRef) {
|
||||
throw new Error('Current workspace is unavailable');
|
||||
}
|
||||
|
||||
let timeout: ReturnType<typeof setTimeout> | undefined;
|
||||
try {
|
||||
const { workspace } = workspaceRef;
|
||||
await Promise.race([
|
||||
Promise.all(
|
||||
[workspace.id, 'db$docProperties', ...new Set(documentIds)].map(docId =>
|
||||
workspace.engine.doc.waitForSynced(docId)
|
||||
)
|
||||
),
|
||||
new Promise<never>((_, reject) => {
|
||||
timeout = setTimeout(
|
||||
() => reject(new Error('Selected source synchronization timed out')),
|
||||
15000
|
||||
);
|
||||
}),
|
||||
]);
|
||||
} finally {
|
||||
if (timeout) clearTimeout(timeout);
|
||||
workspaceRef.dispose();
|
||||
}
|
||||
};
|
||||
(window as any).getCurrentUserIdentifier = () => {
|
||||
const globalContextService = frameworkProvider.get(GlobalContextService);
|
||||
const currentServerId = globalContextService.globalContext.serverId.get();
|
||||
|
||||
@@ -211,7 +211,7 @@ __metadata:
|
||||
react-dom: "npm:^19.2.1"
|
||||
react-hook-form: "npm:^7.54.1"
|
||||
react-resizable-panels: "npm:^3.0.6"
|
||||
react-router-dom: "npm:^7.18.1"
|
||||
react-router-dom: "npm:^7.18.2"
|
||||
recharts: "npm:^2.15.4"
|
||||
sonner: "npm:^2.0.7"
|
||||
swr: "npm:^2.3.7"
|
||||
@@ -7921,6 +7921,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@napi-rs/lzma-linux-x64-gnu@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@napi-rs/lzma-linux-x64-gnu@npm:1.5.1"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@napi-rs/lzma-linux-x64-musl@npm:1.4.5":
|
||||
version: 1.4.5
|
||||
resolution: "@napi-rs/lzma-linux-x64-musl@npm:1.4.5"
|
||||
@@ -14333,177 +14340,177 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-android-arm-eabi@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-android-arm-eabi@npm:4.60.2"
|
||||
"@rollup/rollup-android-arm-eabi@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-android-arm-eabi@npm:4.62.4"
|
||||
conditions: os=android & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-android-arm64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-android-arm64@npm:4.60.2"
|
||||
"@rollup/rollup-android-arm64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-android-arm64@npm:4.62.4"
|
||||
conditions: os=android & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-darwin-arm64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-darwin-arm64@npm:4.60.2"
|
||||
"@rollup/rollup-darwin-arm64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-darwin-arm64@npm:4.62.4"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-darwin-x64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-darwin-x64@npm:4.60.2"
|
||||
"@rollup/rollup-darwin-x64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-darwin-x64@npm:4.62.4"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-freebsd-arm64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-freebsd-arm64@npm:4.60.2"
|
||||
"@rollup/rollup-freebsd-arm64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-freebsd-arm64@npm:4.62.4"
|
||||
conditions: os=freebsd & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-freebsd-x64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-freebsd-x64@npm:4.60.2"
|
||||
"@rollup/rollup-freebsd-x64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-freebsd-x64@npm:4.62.4"
|
||||
conditions: os=freebsd & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-arm-gnueabihf@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm-gnueabihf@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.62.4"
|
||||
conditions: os=linux & cpu=arm & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-arm-musleabihf@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm-musleabihf@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.62.4"
|
||||
conditions: os=linux & cpu=arm & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-arm64-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm64-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.62.4"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-arm64-musl@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm64-musl@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.62.4"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-loong64-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-loong64-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-linux-loong64-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-loong64-gnu@npm:4.62.4"
|
||||
conditions: os=linux & cpu=loong64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-loong64-musl@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-loong64-musl@npm:4.60.2"
|
||||
"@rollup/rollup-linux-loong64-musl@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-loong64-musl@npm:4.62.4"
|
||||
conditions: os=linux & cpu=loong64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-ppc64-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-linux-ppc64-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.62.4"
|
||||
conditions: os=linux & cpu=ppc64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-ppc64-musl@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-ppc64-musl@npm:4.60.2"
|
||||
"@rollup/rollup-linux-ppc64-musl@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-ppc64-musl@npm:4.62.4"
|
||||
conditions: os=linux & cpu=ppc64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-riscv64-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-linux-riscv64-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.62.4"
|
||||
conditions: os=linux & cpu=riscv64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-riscv64-musl@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.60.2"
|
||||
"@rollup/rollup-linux-riscv64-musl@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.62.4"
|
||||
conditions: os=linux & cpu=riscv64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-s390x-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-linux-s390x-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.62.4"
|
||||
conditions: os=linux & cpu=s390x & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-x64-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-linux-x64-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.62.4"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-linux-x64-musl@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-linux-x64-musl@npm:4.60.2"
|
||||
"@rollup/rollup-linux-x64-musl@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-linux-x64-musl@npm:4.62.4"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-openbsd-x64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-openbsd-x64@npm:4.60.2"
|
||||
"@rollup/rollup-openbsd-x64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-openbsd-x64@npm:4.62.4"
|
||||
conditions: os=openbsd & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-openharmony-arm64@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-openharmony-arm64@npm:4.60.2"
|
||||
"@rollup/rollup-openharmony-arm64@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-openharmony-arm64@npm:4.62.4"
|
||||
conditions: os=openharmony & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-win32-arm64-msvc@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.60.2"
|
||||
"@rollup/rollup-win32-arm64-msvc@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.62.4"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-win32-ia32-msvc@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.60.2"
|
||||
"@rollup/rollup-win32-ia32-msvc@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.62.4"
|
||||
conditions: os=win32 & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-win32-x64-gnu@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-win32-x64-gnu@npm:4.60.2"
|
||||
"@rollup/rollup-win32-x64-gnu@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-win32-x64-gnu@npm:4.62.4"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rollup/rollup-win32-x64-msvc@npm:4.60.2":
|
||||
version: 4.60.2
|
||||
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.60.2"
|
||||
"@rollup/rollup-win32-x64-msvc@npm:4.62.4":
|
||||
version: 4.62.4
|
||||
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.62.4"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
@@ -16620,10 +16627,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/estree@npm:*, @types/estree@npm:1.0.8, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8":
|
||||
version: 1.0.8
|
||||
resolution: "@types/estree@npm:1.0.8"
|
||||
checksum: 10/25a4c16a6752538ffde2826c2cc0c6491d90e69cd6187bef4a006dd2c3c45469f049e643d7e516c515f21484dc3d48fd5c870be158a5beb72f5baf3dc43e4099
|
||||
"@types/estree@npm:*, @types/estree@npm:1.0.9, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8":
|
||||
version: 1.0.9
|
||||
resolution: "@types/estree@npm:1.0.9"
|
||||
checksum: 10/16aabfa703b5bdac83f719b07ce92a11b2d3c9b8628eacc92889d8af46cab2d78fc45c7b5378de383d0500585cea5c2f79125eeddfe5fbc6bd6a27eb0c8ccee5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -23671,9 +23678,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"fast-uri@npm:^3.0.1":
|
||||
version: 3.1.4
|
||||
resolution: "fast-uri@npm:3.1.4"
|
||||
checksum: 10/1c1ff8e7b6f7b38e997b1528aa2c97e290e0173d51250bfe4e11a303e454fc297a287555b5cb2ded59dbfce7876855fb15994a1a6b439f2497a2b8926513e397
|
||||
version: 3.1.5
|
||||
resolution: "fast-uri@npm:3.1.5"
|
||||
checksum: 10/784bef687ca3ecfb4587a05104a4d41101796f0fec72be47a9abed743b10109e69a24d1ad0854ee7d2705912dc2ca9d93e03d35b65df0a3da0339e05b5d83b5c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -25644,9 +25651,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"ip-address@npm:^10.1.1":
|
||||
version: 10.2.0
|
||||
resolution: "ip-address@npm:10.2.0"
|
||||
checksum: 10/12fec399e1af5753ac322e47a6d81a50d3a528b3abb17c09525b2a2edcaedcca628c40520706f7037bc4d8e951b0296c47e7b86d0a8e6e2335c8f0ba4afcfac1
|
||||
version: 10.4.0
|
||||
resolution: "ip-address@npm:10.4.0"
|
||||
checksum: 10/8a286dd112a88c372b10c706caca14dcf5ed029a11c3911062ad8937ca0f951aa513ecacf82e15ffcf6343749ae6c079dd9741282fc94033a06ff1b7bd6ce69a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -26284,37 +26291,26 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:5.2.1":
|
||||
version: 5.2.1
|
||||
resolution: "js-yaml@npm:5.2.1"
|
||||
dependencies:
|
||||
argparse: "npm:^2.0.1"
|
||||
bin:
|
||||
js-yaml: bin/js-yaml.mjs
|
||||
checksum: 10/e1eca2d21c15572585bb236d9fde31d6789eb50b9c63e8753fa7e0777bc480f7521cad517bd7a0c66f27dfc27ddcd7100beeefa51c1a50e10e98f2e009633c3d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.1":
|
||||
version: 3.15.0
|
||||
resolution: "js-yaml@npm:3.15.0"
|
||||
"js-yaml@npm:^3.15.1":
|
||||
version: 3.15.1
|
||||
resolution: "js-yaml@npm:3.15.1"
|
||||
dependencies:
|
||||
argparse: "npm:^1.0.7"
|
||||
esprima: "npm:^4.0.0"
|
||||
bin:
|
||||
js-yaml: bin/js-yaml.js
|
||||
checksum: 10/2fdf3a1453ed93a8e06d6ca8054c0bec145cf40ab51f305d1071736a03668b95e40f47cfd0239d7d50019b4780a18cdaca3c935def935594c9876964c49f1185
|
||||
checksum: 10/905842ce08c18b154ff2c187ff81bb41294cc5dda214331b5d9b8bcf395894e48b00fa37b9d4dd4c3ffec672b7496a94558e3876d3a8ad4d12b06248112e6d92
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:^5.0.0":
|
||||
version: 5.2.2
|
||||
resolution: "js-yaml@npm:5.2.2"
|
||||
"js-yaml@npm:^5.0.0, js-yaml@npm:^5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "js-yaml@npm:5.2.3"
|
||||
dependencies:
|
||||
argparse: "npm:^2.0.1"
|
||||
bin:
|
||||
js-yaml: bin/js-yaml.mjs
|
||||
checksum: 10/2b4c2933af12c97e1c4894a4f27fe9b06dab70a64a96bb50624b4429bef6bf11008bde20d868bce52a36784473314efc30078ba6025b58cf7537961e23b1ae9c
|
||||
checksum: 10/5d2562f2d7e7bc51bd678b43d2dbc3965129ac854222c794157369c8904d249cfc78325dff8fc64becb505a2506242548c54c8fa50cdb24554bb1a557e460004
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -28723,7 +28719,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"nanoid@npm:^3.3.16":
|
||||
"nanoid@npm:^3.3.17":
|
||||
version: 3.3.18
|
||||
resolution: "nanoid@npm:3.3.18"
|
||||
bin:
|
||||
@@ -30739,13 +30735,13 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"postcss@npm:^8.4.40, postcss@npm:^8.4.43, postcss@npm:^8.5.10, postcss@npm:^8.5.15, postcss@npm:^8.5.18, postcss@npm:^8.5.6":
|
||||
version: 8.5.23
|
||||
resolution: "postcss@npm:8.5.23"
|
||||
version: 8.5.26
|
||||
resolution: "postcss@npm:8.5.26"
|
||||
dependencies:
|
||||
nanoid: "npm:^3.3.16"
|
||||
nanoid: "npm:^3.3.17"
|
||||
picocolors: "npm:^1.1.1"
|
||||
source-map-js: "npm:^1.2.1"
|
||||
checksum: 10/8387f421216696bf62a13e5a270e9fefdafc81e196903c0f8d7653f8bab315367cc2261b3c22cf197e492cb075f31bdfc07fd9c3be1cb165ff3cabe14c5a039a
|
||||
checksum: 10/842a624f822f77cb37264cc24f0cf97c0a69dd8d6f7b4a6d76b5a8dc95355899dd044f33a2d4e890da858293de570fce18dff453f3b629ff14cac67a3591895a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -31488,15 +31484,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-router-dom@npm:^7.18.1":
|
||||
version: 7.18.1
|
||||
resolution: "react-router-dom@npm:7.18.1"
|
||||
"react-router-dom@npm:^7.18.2":
|
||||
version: 7.18.2
|
||||
resolution: "react-router-dom@npm:7.18.2"
|
||||
dependencies:
|
||||
react-router: "npm:7.18.1"
|
||||
react-router: "npm:7.18.2"
|
||||
peerDependencies:
|
||||
react: ">=18"
|
||||
react-dom: ">=18"
|
||||
checksum: 10/4afbab4fb0f355429ad9905d48c17cdebe264d55bff824d409998d03c8548f86a64ec484cdab54b956cd3de2ceed1b87aa8837e631f47d63f71d490a0f7add00
|
||||
checksum: 10/354a7af84963fe7acaf32c583f180b636b5071d9cf1f83090dba8ff2616ac65bba82aaf8e3cfa425d2a523a3318df3cfcf526462a154211c8abbf7ee70045a07
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -31511,9 +31507,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-router@npm:7.18.1, react-router@npm:^7.9.4":
|
||||
version: 7.18.1
|
||||
resolution: "react-router@npm:7.18.1"
|
||||
"react-router@npm:7.18.2, react-router@npm:^7.9.4":
|
||||
version: 7.18.2
|
||||
resolution: "react-router@npm:7.18.2"
|
||||
dependencies:
|
||||
cookie: "npm:^1.0.1"
|
||||
set-cookie-parser: "npm:^2.6.0"
|
||||
@@ -31523,7 +31519,7 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
react-dom:
|
||||
optional: true
|
||||
checksum: 10/f507876822281499759abc53b3230375f706aa45c66b9ba271308f7420501ff1e5430443c560028299210efe1797141d2297c3bb6d09f3ef175220c1ae67a368
|
||||
checksum: 10/e68aa655e5ec2d4143f66ab3b745c50b8588152d89e4ec66c099625357c6a16dfaee5a7e963a9f4f9fbe0adaa37cf9731d63a108a2c4abfaa00124a06da16c24
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -32296,37 +32292,40 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"rollup@npm:^4.20.0, rollup@npm:^4.43.0":
|
||||
version: 4.60.2
|
||||
resolution: "rollup@npm:4.60.2"
|
||||
version: 4.62.4
|
||||
resolution: "rollup@npm:4.62.4"
|
||||
dependencies:
|
||||
"@rollup/rollup-android-arm-eabi": "npm:4.60.2"
|
||||
"@rollup/rollup-android-arm64": "npm:4.60.2"
|
||||
"@rollup/rollup-darwin-arm64": "npm:4.60.2"
|
||||
"@rollup/rollup-darwin-x64": "npm:4.60.2"
|
||||
"@rollup/rollup-freebsd-arm64": "npm:4.60.2"
|
||||
"@rollup/rollup-freebsd-x64": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm-musleabihf": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm64-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-arm64-musl": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-loong64-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-loong64-musl": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-ppc64-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-ppc64-musl": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-riscv64-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-riscv64-musl": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-s390x-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-x64-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-linux-x64-musl": "npm:4.60.2"
|
||||
"@rollup/rollup-openbsd-x64": "npm:4.60.2"
|
||||
"@rollup/rollup-openharmony-arm64": "npm:4.60.2"
|
||||
"@rollup/rollup-win32-arm64-msvc": "npm:4.60.2"
|
||||
"@rollup/rollup-win32-ia32-msvc": "npm:4.60.2"
|
||||
"@rollup/rollup-win32-x64-gnu": "npm:4.60.2"
|
||||
"@rollup/rollup-win32-x64-msvc": "npm:4.60.2"
|
||||
"@types/estree": "npm:1.0.8"
|
||||
"@napi-rs/lzma-linux-x64-gnu": "npm:1.5.1"
|
||||
"@rollup/rollup-android-arm-eabi": "npm:4.62.4"
|
||||
"@rollup/rollup-android-arm64": "npm:4.62.4"
|
||||
"@rollup/rollup-darwin-arm64": "npm:4.62.4"
|
||||
"@rollup/rollup-darwin-x64": "npm:4.62.4"
|
||||
"@rollup/rollup-freebsd-arm64": "npm:4.62.4"
|
||||
"@rollup/rollup-freebsd-x64": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-arm-musleabihf": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-arm64-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-arm64-musl": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-loong64-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-loong64-musl": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-ppc64-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-ppc64-musl": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-riscv64-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-riscv64-musl": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-s390x-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-x64-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-linux-x64-musl": "npm:4.62.4"
|
||||
"@rollup/rollup-openbsd-x64": "npm:4.62.4"
|
||||
"@rollup/rollup-openharmony-arm64": "npm:4.62.4"
|
||||
"@rollup/rollup-win32-arm64-msvc": "npm:4.62.4"
|
||||
"@rollup/rollup-win32-ia32-msvc": "npm:4.62.4"
|
||||
"@rollup/rollup-win32-x64-gnu": "npm:4.62.4"
|
||||
"@rollup/rollup-win32-x64-msvc": "npm:4.62.4"
|
||||
"@types/estree": "npm:1.0.9"
|
||||
fsevents: "npm:~2.3.2"
|
||||
dependenciesMeta:
|
||||
"@napi-rs/lzma-linux-x64-gnu":
|
||||
optional: true
|
||||
"@rollup/rollup-android-arm-eabi":
|
||||
optional: true
|
||||
"@rollup/rollup-android-arm64":
|
||||
@@ -32381,7 +32380,7 @@ __metadata:
|
||||
optional: true
|
||||
bin:
|
||||
rollup: dist/bin/rollup
|
||||
checksum: 10/354041c7d7f745866cc001bb09d157ae8c0602e82311823e724aa85a45c16346a09bd6bced9f773b0a16aba66abaf45e2952ec643e694a4b30df6dc69daa47ce
|
||||
checksum: 10/2392665d3f6177ff58ee6675c75a379d191748d51559ed447b2ee3c5b00855146d67cdea7d816986b1294bb173e557c83ef00a027f549b7d49591c959288a306
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -32995,12 +32994,12 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"socket.io-parser@npm:~4.2.4":
|
||||
version: 4.2.6
|
||||
resolution: "socket.io-parser@npm:4.2.6"
|
||||
version: 4.2.7
|
||||
resolution: "socket.io-parser@npm:4.2.7"
|
||||
dependencies:
|
||||
"@socket.io/component-emitter": "npm:~3.1.0"
|
||||
debug: "npm:~4.4.1"
|
||||
checksum: 10/cf8f3e9feee42b2405065bccef732894a0b07b7cb734c4954eb8876d7a0038e7df6e6d06fab3a25f816f5d996917391833d5f06136e8c8c6fbecf5da962c1c9e
|
||||
checksum: 10/da1920b9dae989e2c491aa9c248ced7d03d8b1056acf3144c0992878fdc8b91fb50638df38c0e387317f8bc748718ea2ae648d83ff837a5a0ede20ce277b2af9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user