Skip to content

Commit b4fbd8c

Browse files
feat(api): update via SDK Studio
1 parent c6890ba commit b4fbd8c

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Types:
44

5-
- <code><a href="./src/resources/shared.ts">Error</a></code>
65
- <code><a href="./src/resources/shared.ts">ErrorDetail</a></code>
76
- <code><a href="./src/resources/shared.ts">ErrorEvent</a></code>
87
- <code><a href="./src/resources/shared.ts">LogEvent</a></code>

src/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,6 @@ export declare namespace Kernel {
814814
type BrowserDeleteParams as BrowserDeleteParams,
815815
};
816816

817-
export type Error = API.Error;
818817
export type ErrorDetail = API.ErrorDetail;
819818
export type ErrorEvent = API.ErrorEvent;
820819
export type LogEvent = API.LogEvent;

src/resources/shared.ts

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

3-
export interface Error {
4-
/**
5-
* Application-specific error code (machine-readable)
6-
*/
7-
code: string;
8-
9-
/**
10-
* Human-readable error description for debugging
11-
*/
12-
message: string;
13-
14-
/**
15-
* Additional error details (for multiple errors)
16-
*/
17-
details?: Array<ErrorDetail>;
18-
19-
inner_error?: ErrorDetail;
20-
}
3+
import * as Shared from './shared';
214

225
export interface ErrorDetail {
236
/**
@@ -35,7 +18,7 @@ export interface ErrorDetail {
3518
* An error event from the application.
3619
*/
3720
export interface ErrorEvent {
38-
error: Error;
21+
error: ErrorEvent.Error;
3922

4023
/**
4124
* Event type identifier (always "error").
@@ -48,6 +31,27 @@ export interface ErrorEvent {
4831
timestamp: string;
4932
}
5033

34+
export namespace ErrorEvent {
35+
export interface Error {
36+
/**
37+
* Application-specific error code (machine-readable)
38+
*/
39+
code: string;
40+
41+
/**
42+
* Human-readable error description for debugging
43+
*/
44+
message: string;
45+
46+
/**
47+
* Additional error details (for multiple errors)
48+
*/
49+
details?: Array<Shared.ErrorDetail>;
50+
51+
inner_error?: Shared.ErrorDetail;
52+
}
53+
}
54+
5155
/**
5256
* A log entry from the application.
5357
*/

0 commit comments

Comments
 (0)