Skip to content

Commit 452e83c

Browse files
feat(api): update via SDK Studio
1 parent 496e5cd commit 452e83c

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
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: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d2dfee8d576aa73f6075e6da61228571cb2e844b969a06067e34e43eb7898554.yml
3-
openapi_spec_hash: 9981744bf9c27426cdf721f7b27cf093
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-aec3b879aa30638614c6217afbafcf737f37ac78ef3a51186dbf7b6fbf9e91ef.yml
3+
openapi_spec_hash: 0aba27c707612e35b4068b1d748dc379
44
config_hash: a085d1b39ddf0b26ee798501a9f47e20

src/kernel/types/apps/deployment_follow_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class LogEvent(BaseModel):
4141
message: str
4242
"""Log message text."""
4343

44-
timestamp: Optional[datetime] = None
44+
timestamp: datetime
4545
"""Time the log entry was produced."""
4646

4747

src/kernel/types/deployment_follow_response.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class LogEvent(BaseModel):
2727
message: str
2828
"""Log message text."""
2929

30-
timestamp: Optional[datetime] = None
30+
timestamp: datetime
3131
"""Time the log entry was produced."""
3232

3333

@@ -64,29 +64,32 @@ class DeploymentStateEvent(BaseModel):
6464
event: Literal["deployment_state"]
6565
"""Event type identifier (always "deployment_state")."""
6666

67-
timestamp: Optional[datetime] = None
67+
timestamp: datetime
6868
"""Time the state was reported."""
6969

7070

7171
class AppVersionSummaryEvent(BaseModel):
72-
id: Optional[str] = None
72+
id: str
7373
"""Unique identifier for the app version"""
7474

75-
app_name: Optional[str] = None
75+
app_name: str
7676
"""Name of the application"""
7777

78-
env_vars: Optional[Dict[str, str]] = None
79-
"""Environment variables configured for this app version"""
80-
81-
event: Optional[Literal["app_version_summary"]] = None
78+
event: Literal["app_version_summary"]
8279
"""Event type identifier (always "app_version_summary")."""
8380

84-
region: Optional[str] = None
81+
region: str
8582
"""Deployment region code"""
8683

87-
version: Optional[str] = None
84+
timestamp: datetime
85+
"""Time the state was reported."""
86+
87+
version: str
8888
"""Version label for the application"""
8989

90+
env_vars: Optional[Dict[str, str]] = None
91+
"""Environment variables configured for this app version"""
92+
9093

9194
class ErrorEventErrorDetail(BaseModel):
9295
code: Optional[str] = None
@@ -118,11 +121,14 @@ class ErrorEventError(BaseModel):
118121

119122

120123
class ErrorEvent(BaseModel):
121-
error: Optional[ErrorEventError] = None
124+
error: ErrorEventError
122125

123-
event: Optional[Literal["error"]] = None
126+
event: Literal["error"]
124127
"""Event type identifier (always "error")."""
125128

129+
timestamp: datetime
130+
"""Time the error occurred."""
131+
126132

127133
DeploymentFollowResponse: TypeAlias = Annotated[
128134
Union[LogEvent, DeploymentStateEvent, AppVersionSummaryEvent, ErrorEvent], PropertyInfo(discriminator="event")

0 commit comments

Comments
 (0)