Skip to content

Commit 64c9fb3

Browse files
fix(api): align types of input items / output items for typescript
1 parent 9b8c7e3 commit 64c9fb3

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 136
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-ca24bc4d8125b5153514ce643c4e3220f25971b7d67ca384d56d493c72c0d977.yml
3-
openapi_spec_hash: c6f048c7b3d29f4de48fde0e845ba33f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a7e92d12ebe89ca019a7ac5b29759064eefa2c38fe08d03516f2620e66abb32b.yml
3+
openapi_spec_hash: acbc703b2739447abc6312b2d753631c
44
config_hash: b876221dfb213df9f0a999e75d38a65e

src/openai/types/responses/response_apply_patch_tool_call.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ class ResponseApplyPatchToolCall(BaseModel):
6060
call_id: str
6161
"""The unique ID of the apply patch tool call generated by the model."""
6262

63+
operation: Operation
64+
"""
65+
One of the create_file, delete_file, or update_file operations applied via
66+
apply_patch.
67+
"""
68+
6369
status: Literal["in_progress", "completed"]
6470
"""The status of the apply patch tool call. One of `in_progress` or `completed`."""
6571

@@ -68,9 +74,3 @@ class ResponseApplyPatchToolCall(BaseModel):
6874

6975
created_by: Optional[str] = None
7076
"""The ID of the entity that created this tool call."""
71-
72-
operation: Optional[Operation] = None
73-
"""
74-
One of the create_file, delete_file, or update_file operations applied via
75-
apply_patch.
76-
"""

src/openai/types/responses/response_apply_patch_tool_call_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class ResponseApplyPatchToolCallOutput(BaseModel):
1818
call_id: str
1919
"""The unique ID of the apply patch tool call generated by the model."""
2020

21-
output: Optional[str] = None
22-
"""Optional textual output returned by the apply patch tool."""
23-
2421
status: Literal["completed", "failed"]
2522
"""The status of the apply patch tool call output. One of `completed` or `failed`."""
2623

@@ -29,3 +26,6 @@ class ResponseApplyPatchToolCallOutput(BaseModel):
2926

3027
created_by: Optional[str] = None
3128
"""The ID of the entity that created this tool call output."""
29+
30+
output: Optional[str] = None
31+
"""Optional textual output returned by the apply patch tool."""

src/openai/types/responses/response_input_item_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class ApplyPatchCallOutput(TypedDict, total=False):
334334
Populated when this item is returned via API.
335335
"""
336336

337-
output: str
337+
output: Optional[str]
338338
"""
339339
Optional human-readable log text from the apply patch tool (e.g., patch results
340340
or errors).

src/openai/types/responses/response_input_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class ApplyPatchCallOutput(TypedDict, total=False):
335335
Populated when this item is returned via API.
336336
"""
337337

338-
output: str
338+
output: Optional[str]
339339
"""
340340
Optional human-readable log text from the apply patch tool (e.g., patch results
341341
or errors).

0 commit comments

Comments
 (0)