Skip to content

Commit

Permalink
Generate protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
RXminuS committed Jul 22, 2024
1 parent f615cd8 commit eeecfcb
Show file tree
Hide file tree
Showing 191 changed files with 4,104 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

typealias ApiVersionId = String // One of:

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class AttributionParams(
val repositoryNames: List<String>,
val limitHit: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Attribution_SearchParams(
val id: String,
val snippet: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Attribution_SearchResult(
val error: String? = null,
val repoNames: List<String>,
val limitHit: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

typealias AuthMethod = String // One of: dotcom, github, gitlab, google

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class AuthStatus(
val username: String,
val endpoint: String,
val isDotCom: Boolean,
val isLoggedIn: Boolean,
val isFireworksTracingEnabled: Boolean,
val showInvalidAccessTokenError: Boolean,
val authenticated: Boolean,
val hasVerifiedEmail: Boolean,
val requiresVerifiedEmail: Boolean,
val siteHasCodyEnabled: Boolean,
val siteVersion: String,
val codyApiVersion: Long,
val configOverwrites: CodyLLMSiteConfiguration? = null,
val showNetworkError: Boolean? = null,
val primaryEmail: String,
val displayName: String? = null,
val avatarURL: String,
val userCanUpgrade: Boolean,
val isOfflineMode: Boolean? = null,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class AutocompleteItem(
val id: String,
val insertText: String,
val range: Range,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

import com.google.gson.annotations.SerializedName;

data class AutocompleteParams(
val uri: String,
val filePath: String? = null,
val position: Position,
val triggerKind: TriggerKindEnum? = null, // Oneof: Automatic, Invoke
val selectedCompletionInfo: SelectedCompletionInfo? = null,
) {

enum class TriggerKindEnum {
@SerializedName("Automatic") Automatic,
@SerializedName("Invoke") Invoke,
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class AutocompleteResult(
val items: List<AutocompleteItem>,
val completionEvent: CompletionBookkeepingEvent? = null,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class CancelParams(
val id: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

import com.google.gson.annotations.SerializedName;

data class ChatError(
val kind: String? = null,
val name: String,
val message: String,
val retryAfter: String? = null,
val limit: Long? = null,
val userMessage: String? = null,
val retryAfterDate: Date? = null,
val retryAfterDateString: String? = null,
val retryMessage: String? = null,
val feature: String? = null,
val upgradeIsAvailable: Boolean? = null,
val isChatErrorGuard: IsChatErrorGuardEnum, // Oneof: isChatErrorGuard
) {

enum class IsChatErrorGuardEnum {
@SerializedName("isChatErrorGuard") IsChatErrorGuard,
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class ChatExportResult(
val chatID: String,
val transcript: SerializedChatTranscript,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class ChatHistory(
val chatID: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

typealias ChatSubmitType = String // One of: user, user-newchat

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_DeleteParams(
val chatId: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_EditMessageParams(
val id: String,
val message: WebviewMessage,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_ExportParams(
val fullHistory: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_ModelsParams(
val modelUsage: ModelUsage, // Oneof: chat, edit, autocomplete
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_ModelsResult(
val models: List<Model>,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_RemoteReposParams(
val id: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_RemoteReposResult(
val remoteRepos: List<Repo>? = null,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_RestoreParams(
val modelID: String? = null,
val messages: List<SerializedChatMessage>,
val chatID: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_SubmitMessageParams(
val id: String,
val message: WebviewMessage,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_Web_NewResult(
val panelId: String,
val chatId: String,
)

Loading

0 comments on commit eeecfcb

Please sign in to comment.