mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
[app-server] basic config RPC API
This commit is contained in:
@@ -130,6 +130,20 @@ client_request_definitions! {
|
||||
response: GetAccountResponse,
|
||||
},
|
||||
|
||||
#[serde(rename = "config/read")]
|
||||
#[ts(rename = "config/read")]
|
||||
GetConfig {
|
||||
params: #[ts(type = "undefined")] #[serde(skip_serializing_if = "Option::is_none")] Option<()>,
|
||||
response: Config,
|
||||
},
|
||||
|
||||
#[serde(rename = "config/update")]
|
||||
#[ts(rename = "config/update")]
|
||||
UpdateConfig {
|
||||
params: UpdateConfigParams,
|
||||
response: UpdateConfigResponse,
|
||||
},
|
||||
|
||||
/// DEPRECATED APIs below
|
||||
Initialize {
|
||||
params: InitializeParams,
|
||||
@@ -409,6 +423,18 @@ pub struct LoginAccountResponse {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct LogoutAccountResponse {}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct UpdateConfigParams {
|
||||
pub config: Config,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct UpdateConfigResponse {
|
||||
pub config: Config,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ResumeConversationParams {
|
||||
|
||||
Reference in New Issue
Block a user