Skip to content

Commit 0c8937a

Browse files
feat(api): update via SDK Studio
1 parent dff3e39 commit 0c8937a

File tree

6 files changed

+19
-27
lines changed

6 files changed

+19
-27
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-5d4e11bc46eeecee7363d56a9dfe946acee997d5b352c2b0a50c20e742c54d2d.yml
33
openapi_spec_hash: 333e53ad9c706296b9afdb8ff73bec8f
4-
config_hash: df959c379e1145106030a4869b006afe
4+
config_hash: 79af9b3bec53ee798dddcf815befa25d

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Shared Types
22

33
```python
4-
from kernel.types import Error, ErrorDetail, ErrorEvent, LogEvent
4+
from kernel.types import ErrorDetail, ErrorEvent, LogEvent
55
```
66

77
# Deployments

src/kernel/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from .shared import Error as Error, LogEvent as LogEvent, ErrorEvent as ErrorEvent, ErrorDetail as ErrorDetail
5+
from .shared import LogEvent as LogEvent, ErrorEvent as ErrorEvent, ErrorDetail as ErrorDetail
66
from .app_list_params import AppListParams as AppListParams
77
from .app_list_response import AppListResponse as AppListResponse
88
from .browser_persistence import BrowserPersistence as BrowserPersistence

src/kernel/types/shared/__init__.py

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

3-
from .error import Error as Error
43
from .log_event import LogEvent as LogEvent
54
from .error_event import ErrorEvent as ErrorEvent
65
from .error_detail import ErrorDetail as ErrorDetail

src/kernel/types/shared/error.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/kernel/types/shared/error_event.py

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

3+
from typing import List, Optional
34
from datetime import datetime
45
from typing_extensions import Literal
56

6-
from .error import Error
77
from ..._models import BaseModel
8+
from .error_detail import ErrorDetail
89

9-
__all__ = ["ErrorEvent"]
10+
__all__ = ["ErrorEvent", "Error"]
11+
12+
13+
class Error(BaseModel):
14+
code: str
15+
"""Application-specific error code (machine-readable)"""
16+
17+
message: str
18+
"""Human-readable error description for debugging"""
19+
20+
details: Optional[List[ErrorDetail]] = None
21+
"""Additional error details (for multiple errors)"""
22+
23+
inner_error: Optional[ErrorDetail] = None
1024

1125

1226
class ErrorEvent(BaseModel):

0 commit comments

Comments
 (0)