This commit is contained in:
pakrym-oai
2026-02-21 14:57:23 -08:00
parent 5a635f3427
commit f564b7fed8
9 changed files with 607 additions and 45 deletions

View File

@@ -235,6 +235,11 @@ client_request_definitions! {
params: v2::ThreadReadParams,
response: v2::ThreadReadResponse,
},
#[experimental("thread/submitOp")]
ThreadSubmitOp => "thread/submitOp" {
params: v2::ThreadSubmitOpParams,
response: v2::ThreadSubmitOpResponse,
},
SkillsList => "skills/list" {
params: v2::SkillsListParams,
response: v2::SkillsListResponse,

View File

@@ -1962,6 +1962,21 @@ pub struct ThreadReadResponse {
pub thread: Thread,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadSubmitOpParams {
pub thread_id: String,
/// Serialized `codex_protocol::protocol::Op` payload used as a temporary
/// compatibility bridge while clients migrate to typed app-server methods.
pub op: JsonValue,
}
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadSubmitOpResponse {}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]