Skip to content

Commit 10a5be9

Browse files
feat(api): update via SDK Studio
1 parent ea349f9 commit 10a5be9

File tree

7 files changed

+43
-55
lines changed

7 files changed

+43
-55
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: 16
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-3c79948402e96d2aae6e46095db2cf80759750d1b042d6f91281a72c415b14de.yml
33
openapi_spec_hash: f9c2fc5988f0a30397929995c2be2c85
4-
config_hash: 482f0765aa5f3dbc38c35bc576a4946e
4+
config_hash: 21abc53de22a5eb43aa3b885ecf19491

api.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Shared
2+
3+
Types:
4+
5+
- <code><a href="./src/resources/shared.ts">ProviderAuthError</a></code>
6+
- <code><a href="./src/resources/shared.ts">UnknownError</a></code>
7+
18
# Event
29

310
Types:

src/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,4 +777,7 @@ export declare namespace Opencode {
777777
type SessionInitParams as SessionInitParams,
778778
type SessionSummarizeParams as SessionSummarizeParams,
779779
};
780+
781+
export type ProviderAuthError = API.ProviderAuthError;
782+
export type UnknownError = API.UnknownError;
780783
}

src/resources/event.ts

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

33
import { APIResource } from '../core/resource';
44
import * as SessionAPI from './session';
5+
import * as Shared from './shared';
56
import { APIPromise } from '../core/api-promise';
67
import { RequestOptions } from '../internal/request-options';
78

@@ -152,36 +153,10 @@ export namespace EventListResponse {
152153

153154
export namespace EventSessionError {
154155
export interface Properties {
155-
error?: Properties.ProviderAuthError | Properties.UnknownError | Properties.MessageOutputLengthError;
156+
error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError;
156157
}
157158

158159
export namespace Properties {
159-
export interface ProviderAuthError {
160-
data: ProviderAuthError.Data;
161-
162-
name: 'ProviderAuthError';
163-
}
164-
165-
export namespace ProviderAuthError {
166-
export interface Data {
167-
message: string;
168-
169-
providerID: string;
170-
}
171-
}
172-
173-
export interface UnknownError {
174-
data: UnknownError.Data;
175-
176-
name: 'UnknownError';
177-
}
178-
179-
export namespace UnknownError {
180-
export interface Data {
181-
message: string;
182-
}
183-
}
184-
185160
export interface MessageOutputLengthError {
186161
data: unknown;
187162

src/resources/index.ts

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

3+
export * from './shared';
34
export { AppResource, type App, type AppInitResponse } from './app';
45
export {
56
ConfigResource,

src/resources/session.ts

Lines changed: 2 additions & 27 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 Shared from './shared';
45
import { APIPromise } from '../core/api-promise';
56
import { RequestOptions } from '../internal/request-options';
67
import { path } from '../internal/utils/path';
@@ -111,7 +112,7 @@ export namespace Message {
111112

112113
assistant?: Metadata.Assistant;
113114

114-
error?: Metadata.ProviderAuthError | Metadata.UnknownError | Metadata.MessageOutputLengthError;
115+
error?: Shared.ProviderAuthError | Shared.UnknownError | Metadata.MessageOutputLengthError;
115116
}
116117

117118
export namespace Metadata {
@@ -179,32 +180,6 @@ export namespace Message {
179180
}
180181
}
181182

182-
export interface ProviderAuthError {
183-
data: ProviderAuthError.Data;
184-
185-
name: 'ProviderAuthError';
186-
}
187-
188-
export namespace ProviderAuthError {
189-
export interface Data {
190-
message: string;
191-
192-
providerID: string;
193-
}
194-
}
195-
196-
export interface UnknownError {
197-
data: UnknownError.Data;
198-
199-
name: 'UnknownError';
200-
}
201-
202-
export namespace UnknownError {
203-
export interface Data {
204-
message: string;
205-
}
206-
}
207-
208183
export interface MessageOutputLengthError {
209184
data: unknown;
210185

src/resources/shared.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
export interface ProviderAuthError {
4+
data: ProviderAuthError.Data;
5+
6+
name: 'ProviderAuthError';
7+
}
8+
9+
export namespace ProviderAuthError {
10+
export interface Data {
11+
message: string;
12+
13+
providerID: string;
14+
}
15+
}
16+
17+
export interface UnknownError {
18+
data: UnknownError.Data;
19+
20+
name: 'UnknownError';
21+
}
22+
23+
export namespace UnknownError {
24+
export interface Data {
25+
message: string;
26+
}
27+
}

0 commit comments

Comments
 (0)