Skip to content

Commit 842ec55

Browse files
feat(api): update via SDK Studio
1 parent b0652c7 commit 842ec55

File tree

6 files changed

+47
-83
lines changed

6 files changed

+47
-83
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-5d4e11bc46eeecee7363d56a9dfe946acee997d5b352c2b0a50c20e742c54d2d.yml
3-
openapi_spec_hash: 333e53ad9c706296b9afdb8ff73bec8f
4-
config_hash: 4e2f9aebc2153d5caf7bb8b2eb107026
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-b1b412b00906fca75bfa73cff7267dbb5bf975581778072e0a90c73ad7ba9cb1.yml
3+
openapi_spec_hash: 9b7a1b29bcb4963fe6da37005c357d27
4+
config_hash: df959c379e1145106030a4869b006afe

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Types:
44

5+
- <code><a href="./src/resources/shared.ts">Error</a></code>
56
- <code><a href="./src/resources/shared.ts">ErrorDetail</a></code>
7+
- <code><a href="./src/resources/shared.ts">ErrorEvent</a></code>
68
- <code><a href="./src/resources/shared.ts">LogEvent</a></code>
79

810
# Deployments

src/client.ts

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

817+
export type Error = API.Error;
817818
export type ErrorDetail = API.ErrorDetail;
819+
export type ErrorEvent = API.ErrorEvent;
818820
export type LogEvent = API.LogEvent;
819821
}

src/resources/deployments.ts

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export type DeploymentFollowResponse =
221221
| Shared.LogEvent
222222
| DeploymentStateEvent
223223
| DeploymentFollowResponse.AppVersionSummaryEvent
224-
| DeploymentFollowResponse.ErrorEvent;
224+
| Shared.ErrorEvent;
225225

226226
export namespace DeploymentFollowResponse {
227227
/**
@@ -280,44 +280,6 @@ export namespace DeploymentFollowResponse {
280280
name: string;
281281
}
282282
}
283-
284-
/**
285-
* An error event from the application.
286-
*/
287-
export interface ErrorEvent {
288-
error: ErrorEvent.Error;
289-
290-
/**
291-
* Event type identifier (always "error").
292-
*/
293-
event: 'error';
294-
295-
/**
296-
* Time the error occurred.
297-
*/
298-
timestamp: string;
299-
}
300-
301-
export namespace ErrorEvent {
302-
export interface Error {
303-
/**
304-
* Application-specific error code (machine-readable)
305-
*/
306-
code: string;
307-
308-
/**
309-
* Human-readable error description for debugging
310-
*/
311-
message: string;
312-
313-
/**
314-
* Additional error details (for multiple errors)
315-
*/
316-
details?: Array<Shared.ErrorDetail>;
317-
318-
inner_error?: Shared.ErrorDetail;
319-
}
320-
}
321283
}
322284

323285
export interface DeploymentCreateParams {

src/resources/invocations.ts

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

33
import { APIResource } from '../core/resource';
4+
import * as DeploymentsAPI from './deployments';
45
import * as Shared from './shared';
56
import { APIPromise } from '../core/api-promise';
67
import { Stream } from '../core/streaming';
@@ -270,48 +271,9 @@ export interface InvocationUpdateResponse {
270271
*/
271272
export type InvocationFollowResponse =
272273
| Shared.LogEvent
274+
| DeploymentsAPI.DeploymentStateEvent
273275
| InvocationStateEvent
274-
| InvocationFollowResponse.ErrorEvent;
275-
276-
export namespace InvocationFollowResponse {
277-
/**
278-
* An error event from the application.
279-
*/
280-
export interface ErrorEvent {
281-
error: ErrorEvent.Error;
282-
283-
/**
284-
* Event type identifier (always "error").
285-
*/
286-
event: 'error';
287-
288-
/**
289-
* Time the error occurred.
290-
*/
291-
timestamp: string;
292-
}
293-
294-
export namespace ErrorEvent {
295-
export interface Error {
296-
/**
297-
* Application-specific error code (machine-readable)
298-
*/
299-
code: string;
300-
301-
/**
302-
* Human-readable error description for debugging
303-
*/
304-
message: string;
305-
306-
/**
307-
* Additional error details (for multiple errors)
308-
*/
309-
details?: Array<Shared.ErrorDetail>;
310-
311-
inner_error?: Shared.ErrorDetail;
312-
}
313-
}
314-
}
276+
| Shared.ErrorEvent;
315277

316278
export interface InvocationCreateParams {
317279
/**

src/resources/shared.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
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+
}
21+
322
export interface ErrorDetail {
423
/**
524
* Lower-level error code providing more specific detail
@@ -12,6 +31,23 @@ export interface ErrorDetail {
1231
message?: string;
1332
}
1433

34+
/**
35+
* An error event from the application.
36+
*/
37+
export interface ErrorEvent {
38+
error: Error;
39+
40+
/**
41+
* Event type identifier (always "error").
42+
*/
43+
event: 'error';
44+
45+
/**
46+
* Time the error occurred.
47+
*/
48+
timestamp: string;
49+
}
50+
1551
/**
1652
* A log entry from the application.
1753
*/

0 commit comments

Comments
 (0)