Commit f0f0ccce

stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
2025-11-18 05:19:50
fix(api): align types of input items / output items for typescript
1 parent 9b8c7e3
src/openai/types/responses/response_apply_patch_tool_call.py
@@ -60,6 +60,12 @@ class ResponseApplyPatchToolCall(BaseModel):
     call_id: str
     """The unique ID of the apply patch tool call generated by the model."""
 
+    operation: Operation
+    """
+    One of the create_file, delete_file, or update_file operations applied via
+    apply_patch.
+    """
+
     status: Literal["in_progress", "completed"]
     """The status of the apply patch tool call. One of `in_progress` or `completed`."""
 
@@ -68,9 +74,3 @@ class ResponseApplyPatchToolCall(BaseModel):
 
     created_by: Optional[str] = None
     """The ID of the entity that created this tool call."""
-
-    operation: Optional[Operation] = None
-    """
-    One of the create_file, delete_file, or update_file operations applied via
-    apply_patch.
-    """
src/openai/types/responses/response_apply_patch_tool_call_output.py
@@ -18,9 +18,6 @@ class ResponseApplyPatchToolCallOutput(BaseModel):
     call_id: str
     """The unique ID of the apply patch tool call generated by the model."""
 
-    output: Optional[str] = None
-    """Optional textual output returned by the apply patch tool."""
-
     status: Literal["completed", "failed"]
     """The status of the apply patch tool call output. One of `completed` or `failed`."""
 
@@ -29,3 +26,6 @@ class ResponseApplyPatchToolCallOutput(BaseModel):
 
     created_by: Optional[str] = None
     """The ID of the entity that created this tool call output."""
+
+    output: Optional[str] = None
+    """Optional textual output returned by the apply patch tool."""
src/openai/types/responses/response_input_item_param.py
@@ -334,7 +334,7 @@ class ApplyPatchCallOutput(TypedDict, total=False):
     Populated when this item is returned via API.
     """
 
-    output: str
+    output: Optional[str]
     """
     Optional human-readable log text from the apply patch tool (e.g., patch results
     or errors).
src/openai/types/responses/response_input_param.py
@@ -335,7 +335,7 @@ class ApplyPatchCallOutput(TypedDict, total=False):
     Populated when this item is returned via API.
     """
 
-    output: str
+    output: Optional[str]
     """
     Optional human-readable log text from the apply patch tool (e.g., patch results
     or errors).
.stats.yml
@@ -1,4 +1,4 @@
 configured_endpoints: 136
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-ca24bc4d8125b5153514ce643c4e3220f25971b7d67ca384d56d493c72c0d977.yml
-openapi_spec_hash: c6f048c7b3d29f4de48fde0e845ba33f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a7e92d12ebe89ca019a7ac5b29759064eefa2c38fe08d03516f2620e66abb32b.yml
+openapi_spec_hash: acbc703b2739447abc6312b2d753631c
 config_hash: b876221dfb213df9f0a999e75d38a65e