mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
haha
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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/")]
|
||||
|
||||
Reference in New Issue
Block a user