Skip to content

Commit ce675af

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

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
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: 79af9b3bec53ee798dddcf815befa25d
4+
config_hash: 0fdf285ddd8dee229fd84ea57df9080f

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Types:
44

55
- <code><a href="./src/resources/shared.ts">ErrorDetail</a></code>
66
- <code><a href="./src/resources/shared.ts">ErrorEvent</a></code>
7+
- <code><a href="./src/resources/shared.ts">ErrorModel</a></code>
78
- <code><a href="./src/resources/shared.ts">LogEvent</a></code>
89

910
# Deployments

src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,5 +816,6 @@ export declare namespace Kernel {
816816

817817
export type ErrorDetail = API.ErrorDetail;
818818
export type ErrorEvent = API.ErrorEvent;
819+
export type ErrorModel = API.ErrorModel;
819820
export type LogEvent = API.LogEvent;
820821
}

src/resources/shared.ts

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

3-
import * as Shared from './shared';
4-
53
export interface ErrorDetail {
64
/**
75
* Lower-level error code providing more specific detail
@@ -18,7 +16,7 @@ export interface ErrorDetail {
1816
* An error event from the application.
1917
*/
2018
export interface ErrorEvent {
21-
error: ErrorEvent.Error;
19+
error: ErrorModel;
2220

2321
/**
2422
* Event type identifier (always "error").
@@ -31,25 +29,23 @@ export interface ErrorEvent {
3129
timestamp: string;
3230
}
3331

34-
export namespace ErrorEvent {
35-
export interface Error {
36-
/**
37-
* Application-specific error code (machine-readable)
38-
*/
39-
code: string;
32+
export interface ErrorModel {
33+
/**
34+
* Application-specific error code (machine-readable)
35+
*/
36+
code: string;
4037

41-
/**
42-
* Human-readable error description for debugging
43-
*/
44-
message: string;
38+
/**
39+
* Human-readable error description for debugging
40+
*/
41+
message: string;
4542

46-
/**
47-
* Additional error details (for multiple errors)
48-
*/
49-
details?: Array<Shared.ErrorDetail>;
43+
/**
44+
* Additional error details (for multiple errors)
45+
*/
46+
details?: Array<ErrorDetail>;
5047

51-
inner_error?: Shared.ErrorDetail;
52-
}
48+
inner_error?: ErrorDetail;
5349
}
5450

5551
/**

0 commit comments

Comments
 (0)