Skip to content

Commit e1cb382

Browse files
feat(api): update via SDK Studio
1 parent 0985851 commit e1cb382

File tree

7 files changed

+67
-32
lines changed

7 files changed

+67
-32
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: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-b4a3f35e4a44e5a5034508ced15d7b44c1924000062e0f5293797413d26ee412.yml
3-
openapi_spec_hash: f17b1091020f90126e6cefc2d38ff85f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-384a94f70b48c84af9eddcac72bbe12952c3ae3bd7fededfa1c63b203d12d828.yml
3+
openapi_spec_hash: e47ad28d646736d5d79d2dd1086d517d
44
config_hash: e2d21e779cfc4e26a99b9e4e75de3f50

src/opencode_ai/types/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class App(BaseModel):
3030

3131
path: Path
3232

33-
project: str
34-
3533
time: Time
3634

3735
user: str

src/opencode_ai/types/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class ProviderModels(BaseModel):
8181

8282
reasoning: Optional[bool] = None
8383

84+
release_date: Optional[str] = None
85+
8486
temperature: Optional[bool] = None
8587

8688
tool_call: Optional[bool] = None

src/opencode_ai/types/event_list_response.py

Lines changed: 54 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@
1515

1616
__all__ = [
1717
"EventListResponse",
18-
"EventStorageWrite",
19-
"EventStorageWriteProperties",
20-
"EventInstallationUpdated",
21-
"EventInstallationUpdatedProperties",
2218
"EventLspClientDiagnostics",
2319
"EventLspClientDiagnosticsProperties",
2420
"EventPermissionUpdated",
2521
"EventPermissionUpdatedProperties",
2622
"EventPermissionUpdatedPropertiesTime",
23+
"EventFileEdited",
24+
"EventFileEditedProperties",
25+
"EventStorageWrite",
26+
"EventStorageWriteProperties",
27+
"EventInstallationUpdated",
28+
"EventInstallationUpdatedProperties",
2729
"EventMessageUpdated",
2830
"EventMessageUpdatedProperties",
2931
"EventMessagePartUpdated",
@@ -32,35 +34,15 @@
3234
"EventSessionUpdatedProperties",
3335
"EventSessionDeleted",
3436
"EventSessionDeletedProperties",
37+
"EventSessionIdle",
38+
"EventSessionIdleProperties",
3539
"EventSessionError",
3640
"EventSessionErrorProperties",
3741
"EventSessionErrorPropertiesError",
3842
"EventSessionErrorPropertiesErrorMessageOutputLengthError",
3943
]
4044

4145

42-
class EventStorageWriteProperties(BaseModel):
43-
key: str
44-
45-
content: Optional[object] = None
46-
47-
48-
class EventStorageWrite(BaseModel):
49-
properties: EventStorageWriteProperties
50-
51-
type: Literal["storage.write"]
52-
53-
54-
class EventInstallationUpdatedProperties(BaseModel):
55-
version: str
56-
57-
58-
class EventInstallationUpdated(BaseModel):
59-
properties: EventInstallationUpdatedProperties
60-
61-
type: Literal["installation.updated"]
62-
63-
6446
class EventLspClientDiagnosticsProperties(BaseModel):
6547
path: str
6648

@@ -95,6 +77,38 @@ class EventPermissionUpdated(BaseModel):
9577
type: Literal["permission.updated"]
9678

9779

80+
class EventFileEditedProperties(BaseModel):
81+
file: str
82+
83+
84+
class EventFileEdited(BaseModel):
85+
properties: EventFileEditedProperties
86+
87+
type: Literal["file.edited"]
88+
89+
90+
class EventStorageWriteProperties(BaseModel):
91+
key: str
92+
93+
content: Optional[object] = None
94+
95+
96+
class EventStorageWrite(BaseModel):
97+
properties: EventStorageWriteProperties
98+
99+
type: Literal["storage.write"]
100+
101+
102+
class EventInstallationUpdatedProperties(BaseModel):
103+
version: str
104+
105+
106+
class EventInstallationUpdated(BaseModel):
107+
properties: EventInstallationUpdatedProperties
108+
109+
type: Literal["installation.updated"]
110+
111+
98112
class EventMessageUpdatedProperties(BaseModel):
99113
info: Message
100114

@@ -139,6 +153,16 @@ class EventSessionDeleted(BaseModel):
139153
type: Literal["session.deleted"]
140154

141155

156+
class EventSessionIdleProperties(BaseModel):
157+
session_id: str = FieldInfo(alias="sessionID")
158+
159+
160+
class EventSessionIdle(BaseModel):
161+
properties: EventSessionIdleProperties
162+
163+
type: Literal["session.idle"]
164+
165+
142166
class EventSessionErrorPropertiesErrorMessageOutputLengthError(BaseModel):
143167
data: object
144168

@@ -163,14 +187,16 @@ class EventSessionError(BaseModel):
163187

164188
EventListResponse: TypeAlias = Annotated[
165189
Union[
166-
EventStorageWrite,
167-
EventInstallationUpdated,
168190
EventLspClientDiagnostics,
169191
EventPermissionUpdated,
192+
EventFileEdited,
193+
EventStorageWrite,
194+
EventInstallationUpdated,
170195
EventMessageUpdated,
171196
EventMessagePartUpdated,
172197
EventSessionUpdated,
173198
EventSessionDeleted,
199+
EventSessionIdle,
174200
EventSessionError,
175201
],
176202
PropertyInfo(discriminator="type"),

src/opencode_ai/types/mcp_local.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ class McpLocal(BaseModel):
1515
type: Literal["local"]
1616
"""Type of MCP server connection"""
1717

18+
enabled: Optional[bool] = None
19+
"""Enable or disable the MCP server on startup"""
20+
1821
environment: Optional[Dict[str, str]] = None
1922
"""Environment variables to set when running the MCP server"""

src/opencode_ai/types/mcp_remote.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from typing_extensions import Literal
45

56
from .._models import BaseModel
@@ -13,3 +14,6 @@ class McpRemote(BaseModel):
1314

1415
url: str
1516
"""URL of the remote MCP server"""
17+
18+
enabled: Optional[bool] = None
19+
"""Enable or disable the MCP server on startup"""

src/opencode_ai/types/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class Model(BaseModel):
3838

3939
reasoning: bool
4040

41+
release_date: str
42+
4143
temperature: bool
4244

4345
tool_call: bool

0 commit comments

Comments
 (0)