chore: basic setup of v2 AI (#12864)
Co-authored-by: Hwang <hwangdev97@gmail.com>
This commit is contained in:
@@ -11,22 +11,29 @@ public struct CreateChatSessionInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
docId: String,
|
||||
docId: GraphQLNullable<String> = nil,
|
||||
pinned: GraphQLNullable<Bool> = nil,
|
||||
promptName: String,
|
||||
workspaceId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"docId": docId,
|
||||
"pinned": pinned,
|
||||
"promptName": promptName,
|
||||
"workspaceId": workspaceId
|
||||
])
|
||||
}
|
||||
|
||||
public var docId: String {
|
||||
public var docId: GraphQLNullable<String> {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
|
||||
public var pinned: GraphQLNullable<Bool> {
|
||||
get { __data["pinned"] }
|
||||
set { __data["pinned"] = newValue }
|
||||
}
|
||||
|
||||
/// The prompt name to use for the session
|
||||
public var promptName: String {
|
||||
get { __data["promptName"] }
|
||||
|
||||
@@ -11,17 +11,33 @@ public struct UpdateChatSessionInput: InputObject {
|
||||
}
|
||||
|
||||
public init(
|
||||
promptName: String,
|
||||
docId: GraphQLNullable<String> = nil,
|
||||
pinned: GraphQLNullable<Bool> = nil,
|
||||
promptName: GraphQLNullable<String> = nil,
|
||||
sessionId: String
|
||||
) {
|
||||
__data = InputDict([
|
||||
"docId": docId,
|
||||
"pinned": pinned,
|
||||
"promptName": promptName,
|
||||
"sessionId": sessionId
|
||||
])
|
||||
}
|
||||
|
||||
/// The workspace id of the session
|
||||
public var docId: GraphQLNullable<String> {
|
||||
get { __data["docId"] }
|
||||
set { __data["docId"] = newValue }
|
||||
}
|
||||
|
||||
/// Whether to pin the session
|
||||
public var pinned: GraphQLNullable<Bool> {
|
||||
get { __data["pinned"] }
|
||||
set { __data["pinned"] = newValue }
|
||||
}
|
||||
|
||||
/// The prompt name to use for the session
|
||||
public var promptName: String {
|
||||
public var promptName: GraphQLNullable<String> {
|
||||
get { __data["promptName"] }
|
||||
set { __data["promptName"] = newValue }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import ApolloAPI
|
||||
|
||||
public extension Objects {
|
||||
static let StreamObject = ApolloAPI.Object(
|
||||
typename: "StreamObject",
|
||||
implementedInterfaces: [],
|
||||
keyFields: nil
|
||||
)
|
||||
}
|
||||
@@ -81,6 +81,7 @@ public enum SchemaMetadata: ApolloAPI.SchemaMetadata {
|
||||
case "SearchResultObjectType": return AffineGraphQL.Objects.SearchResultObjectType
|
||||
case "SearchResultPagination": return AffineGraphQL.Objects.SearchResultPagination
|
||||
case "ServerConfigType": return AffineGraphQL.Objects.ServerConfigType
|
||||
case "StreamObject": return AffineGraphQL.Objects.StreamObject
|
||||
case "SubscriptionPrice": return AffineGraphQL.Objects.SubscriptionPrice
|
||||
case "SubscriptionType": return AffineGraphQL.Objects.SubscriptionType
|
||||
case "TranscriptionItemType": return AffineGraphQL.Objects.TranscriptionItemType
|
||||
|
||||
Reference in New Issue
Block a user