File tree Expand file tree Collapse file tree 7 files changed +43
-55
lines changed Expand file tree Collapse file tree 7 files changed +43
-55
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 16
2
2
openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-3c79948402e96d2aae6e46095db2cf80759750d1b042d6f91281a72c415b14de.yml
3
3
openapi_spec_hash : f9c2fc5988f0a30397929995c2be2c85
4
- config_hash : 482f0765aa5f3dbc38c35bc576a4946e
4
+ config_hash : 21abc53de22a5eb43aa3b885ecf19491
Original file line number Diff line number Diff line change
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
+
1
8
# Event
2
9
3
10
Types:
Original file line number Diff line number Diff line change @@ -777,4 +777,7 @@ export declare namespace Opencode {
777
777
type SessionInitParams as SessionInitParams ,
778
778
type SessionSummarizeParams as SessionSummarizeParams ,
779
779
} ;
780
+
781
+ export type ProviderAuthError = API . ProviderAuthError ;
782
+ export type UnknownError = API . UnknownError ;
780
783
}
Original file line number Diff line number Diff line change 2
2
3
3
import { APIResource } from '../core/resource' ;
4
4
import * as SessionAPI from './session' ;
5
+ import * as Shared from './shared' ;
5
6
import { APIPromise } from '../core/api-promise' ;
6
7
import { RequestOptions } from '../internal/request-options' ;
7
8
@@ -152,36 +153,10 @@ export namespace EventListResponse {
152
153
153
154
export namespace EventSessionError {
154
155
export interface Properties {
155
- error ?: Properties . ProviderAuthError | Properties . UnknownError | Properties . MessageOutputLengthError ;
156
+ error ?: Shared . ProviderAuthError | Shared . UnknownError | Properties . MessageOutputLengthError ;
156
157
}
157
158
158
159
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
-
185
160
export interface MessageOutputLengthError {
186
161
data : unknown ;
187
162
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
+ export * from './shared' ;
3
4
export { AppResource , type App , type AppInitResponse } from './app' ;
4
5
export {
5
6
ConfigResource ,
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
import { APIResource } from '../core/resource' ;
4
+ import * as Shared from './shared' ;
4
5
import { APIPromise } from '../core/api-promise' ;
5
6
import { RequestOptions } from '../internal/request-options' ;
6
7
import { path } from '../internal/utils/path' ;
@@ -111,7 +112,7 @@ export namespace Message {
111
112
112
113
assistant ?: Metadata . Assistant ;
113
114
114
- error ?: Metadata . ProviderAuthError | Metadata . UnknownError | Metadata . MessageOutputLengthError ;
115
+ error ?: Shared . ProviderAuthError | Shared . UnknownError | Metadata . MessageOutputLengthError ;
115
116
}
116
117
117
118
export namespace Metadata {
@@ -179,32 +180,6 @@ export namespace Message {
179
180
}
180
181
}
181
182
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
-
208
183
export interface MessageOutputLengthError {
209
184
data : unknown ;
210
185
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments