@opencode-ai/sdk 0.1.0-alpha.2 → 0.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +198 -4
  3. package/client.d.mts +12 -48
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -48
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -48
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -48
  10. package/client.mjs.map +1 -1
  11. package/internal/types.d.mts +8 -6
  12. package/internal/types.d.mts.map +1 -1
  13. package/internal/types.d.ts +8 -6
  14. package/internal/types.d.ts.map +1 -1
  15. package/package.json +2 -2
  16. package/resources/app.d.mts +38 -0
  17. package/resources/app.d.mts.map +1 -0
  18. package/resources/app.d.ts +38 -0
  19. package/resources/app.d.ts.map +1 -0
  20. package/resources/app.js +21 -0
  21. package/resources/app.js.map +1 -0
  22. package/resources/app.mjs +17 -0
  23. package/resources/app.mjs.map +1 -0
  24. package/resources/config.d.mts +304 -0
  25. package/resources/config.d.mts.map +1 -0
  26. package/resources/config.d.ts +304 -0
  27. package/resources/config.d.ts.map +1 -0
  28. package/resources/config.js +21 -0
  29. package/resources/config.js.map +1 -0
  30. package/resources/config.mjs +17 -0
  31. package/resources/config.mjs.map +1 -0
  32. package/resources/event.d.mts +40 -7
  33. package/resources/event.d.mts.map +1 -1
  34. package/resources/event.d.ts +40 -7
  35. package/resources/event.d.ts.map +1 -1
  36. package/resources/event.js.map +1 -1
  37. package/resources/event.mjs.map +1 -1
  38. package/resources/file.d.mts +17 -0
  39. package/resources/file.d.mts.map +1 -0
  40. package/resources/file.d.ts +17 -0
  41. package/resources/file.d.ts.map +1 -0
  42. package/resources/{file-search.js → file.js} +6 -6
  43. package/resources/file.js.map +1 -0
  44. package/resources/{file-search.mjs → file.mjs} +4 -4
  45. package/resources/file.mjs.map +1 -0
  46. package/resources/index.d.mts +4 -16
  47. package/resources/index.d.mts.map +1 -1
  48. package/resources/index.d.ts +4 -16
  49. package/resources/index.d.ts.map +1 -1
  50. package/resources/index.js +9 -33
  51. package/resources/index.js.map +1 -1
  52. package/resources/index.mjs +4 -16
  53. package/resources/index.mjs.map +1 -1
  54. package/resources/session.d.mts +226 -0
  55. package/resources/session.d.mts.map +1 -0
  56. package/resources/session.d.ts +226 -0
  57. package/resources/session.d.ts.map +1 -0
  58. package/resources/session.js +70 -0
  59. package/resources/session.js.map +1 -0
  60. package/resources/session.mjs +66 -0
  61. package/resources/session.mjs.map +1 -0
  62. package/src/client.ts +75 -122
  63. package/src/internal/types.ts +9 -6
  64. package/src/resources/app.ts +59 -0
  65. package/src/resources/config.ts +390 -0
  66. package/src/resources/event.ts +52 -6
  67. package/src/resources/file.ts +24 -0
  68. package/src/resources/index.ts +34 -33
  69. package/src/resources/session.ts +382 -0
  70. package/src/version.ts +1 -1
  71. package/version.d.mts +1 -1
  72. package/version.d.ts +1 -1
  73. package/version.js +1 -1
  74. package/version.mjs +1 -1
  75. package/resources/app-info.d.mts +0 -31
  76. package/resources/app-info.d.mts.map +0 -1
  77. package/resources/app-info.d.ts +0 -31
  78. package/resources/app-info.d.ts.map +0 -1
  79. package/resources/app-info.js +0 -15
  80. package/resources/app-info.js.map +0 -1
  81. package/resources/app-info.mjs +0 -11
  82. package/resources/app-info.mjs.map +0 -1
  83. package/resources/app-initialize.d.mts +0 -14
  84. package/resources/app-initialize.d.mts.map +0 -1
  85. package/resources/app-initialize.d.ts +0 -14
  86. package/resources/app-initialize.d.ts.map +0 -1
  87. package/resources/app-initialize.js +0 -15
  88. package/resources/app-initialize.js.map +0 -1
  89. package/resources/app-initialize.mjs +0 -11
  90. package/resources/app-initialize.mjs.map +0 -1
  91. package/resources/config-get.d.mts +0 -236
  92. package/resources/config-get.d.mts.map +0 -1
  93. package/resources/config-get.d.ts +0 -236
  94. package/resources/config-get.d.ts.map +0 -1
  95. package/resources/config-get.js +0 -15
  96. package/resources/config-get.js.map +0 -1
  97. package/resources/config-get.mjs +0 -11
  98. package/resources/config-get.mjs.map +0 -1
  99. package/resources/file-search.d.mts +0 -17
  100. package/resources/file-search.d.mts.map +0 -1
  101. package/resources/file-search.d.ts +0 -17
  102. package/resources/file-search.d.ts.map +0 -1
  103. package/resources/file-search.js.map +0 -1
  104. package/resources/file-search.mjs.map +0 -1
  105. package/resources/installation-info.d.mts +0 -17
  106. package/resources/installation-info.d.mts.map +0 -1
  107. package/resources/installation-info.d.ts +0 -17
  108. package/resources/installation-info.d.ts.map +0 -1
  109. package/resources/installation-info.js +0 -15
  110. package/resources/installation-info.js.map +0 -1
  111. package/resources/installation-info.mjs +0 -11
  112. package/resources/installation-info.mjs.map +0 -1
  113. package/resources/path-get.d.mts +0 -19
  114. package/resources/path-get.d.mts.map +0 -1
  115. package/resources/path-get.d.ts +0 -19
  116. package/resources/path-get.d.ts.map +0 -1
  117. package/resources/path-get.js +0 -15
  118. package/resources/path-get.js.map +0 -1
  119. package/resources/path-get.mjs +0 -11
  120. package/resources/path-get.mjs.map +0 -1
  121. package/resources/provider-list.d.mts +0 -58
  122. package/resources/provider-list.d.mts.map +0 -1
  123. package/resources/provider-list.d.ts +0 -58
  124. package/resources/provider-list.d.ts.map +0 -1
  125. package/resources/provider-list.js +0 -15
  126. package/resources/provider-list.js.map +0 -1
  127. package/resources/provider-list.mjs +0 -11
  128. package/resources/provider-list.mjs.map +0 -1
  129. package/resources/session-abort.d.mts +0 -17
  130. package/resources/session-abort.d.mts.map +0 -1
  131. package/resources/session-abort.d.ts +0 -17
  132. package/resources/session-abort.d.ts.map +0 -1
  133. package/resources/session-abort.js +0 -15
  134. package/resources/session-abort.js.map +0 -1
  135. package/resources/session-abort.mjs +0 -11
  136. package/resources/session-abort.mjs.map +0 -1
  137. package/resources/session-chat.d.mts +0 -160
  138. package/resources/session-chat.d.mts.map +0 -1
  139. package/resources/session-chat.d.ts +0 -160
  140. package/resources/session-chat.d.ts.map +0 -1
  141. package/resources/session-chat.js +0 -15
  142. package/resources/session-chat.js.map +0 -1
  143. package/resources/session-chat.mjs +0 -11
  144. package/resources/session-chat.mjs.map +0 -1
  145. package/resources/session-create.d.mts +0 -30
  146. package/resources/session-create.d.mts.map +0 -1
  147. package/resources/session-create.d.ts +0 -30
  148. package/resources/session-create.d.ts.map +0 -1
  149. package/resources/session-create.js +0 -15
  150. package/resources/session-create.js.map +0 -1
  151. package/resources/session-create.mjs +0 -11
  152. package/resources/session-create.mjs.map +0 -1
  153. package/resources/session-initialize.d.mts +0 -19
  154. package/resources/session-initialize.d.mts.map +0 -1
  155. package/resources/session-initialize.d.ts +0 -19
  156. package/resources/session-initialize.d.ts.map +0 -1
  157. package/resources/session-initialize.js +0 -15
  158. package/resources/session-initialize.js.map +0 -1
  159. package/resources/session-initialize.mjs +0 -11
  160. package/resources/session-initialize.mjs.map +0 -1
  161. package/resources/session-list.d.mts +0 -15
  162. package/resources/session-list.d.mts.map +0 -1
  163. package/resources/session-list.d.ts +0 -15
  164. package/resources/session-list.d.ts.map +0 -1
  165. package/resources/session-list.js +0 -15
  166. package/resources/session-list.js.map +0 -1
  167. package/resources/session-list.mjs +0 -11
  168. package/resources/session-list.mjs.map +0 -1
  169. package/resources/session-messages.d.mts +0 -18
  170. package/resources/session-messages.d.mts.map +0 -1
  171. package/resources/session-messages.d.ts +0 -18
  172. package/resources/session-messages.d.ts.map +0 -1
  173. package/resources/session-messages.js +0 -15
  174. package/resources/session-messages.js.map +0 -1
  175. package/resources/session-messages.mjs +0 -11
  176. package/resources/session-messages.mjs.map +0 -1
  177. package/resources/session-share.d.mts +0 -17
  178. package/resources/session-share.d.mts.map +0 -1
  179. package/resources/session-share.d.ts +0 -17
  180. package/resources/session-share.d.ts.map +0 -1
  181. package/resources/session-share.js +0 -15
  182. package/resources/session-share.js.map +0 -1
  183. package/resources/session-share.mjs +0 -11
  184. package/resources/session-share.mjs.map +0 -1
  185. package/resources/session-summarize.d.mts +0 -19
  186. package/resources/session-summarize.d.mts.map +0 -1
  187. package/resources/session-summarize.d.ts +0 -19
  188. package/resources/session-summarize.d.ts.map +0 -1
  189. package/resources/session-summarize.js +0 -15
  190. package/resources/session-summarize.js.map +0 -1
  191. package/resources/session-summarize.mjs +0 -11
  192. package/resources/session-summarize.mjs.map +0 -1
  193. package/resources/session-unshare.d.mts +0 -17
  194. package/resources/session-unshare.d.mts.map +0 -1
  195. package/resources/session-unshare.d.ts +0 -17
  196. package/resources/session-unshare.d.ts.map +0 -1
  197. package/resources/session-unshare.js +0 -15
  198. package/resources/session-unshare.js.map +0 -1
  199. package/resources/session-unshare.mjs +0 -11
  200. package/resources/session-unshare.mjs.map +0 -1
  201. package/src/resources/app-info.ts +0 -46
  202. package/src/resources/app-initialize.ts +0 -20
  203. package/src/resources/config-get.ts +0 -294
  204. package/src/resources/file-search.ts +0 -27
  205. package/src/resources/installation-info.ts +0 -24
  206. package/src/resources/path-get.ts +0 -28
  207. package/src/resources/provider-list.ts +0 -80
  208. package/src/resources/session-abort.ts +0 -27
  209. package/src/resources/session-chat.ts +0 -250
  210. package/src/resources/session-create.ts +0 -44
  211. package/src/resources/session-initialize.ts +0 -34
  212. package/src/resources/session-list.ts +0 -21
  213. package/src/resources/session-messages.ts +0 -31
  214. package/src/resources/session-share.ts +0 -23
  215. package/src/resources/session-summarize.ts +0 -34
  216. package/src/resources/session-unshare.ts +0 -26
@@ -0,0 +1,390 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ export class ConfigResource extends APIResource {
8
+ /**
9
+ * Get config info
10
+ */
11
+ get(options?: RequestOptions): APIPromise<Config> {
12
+ return this._client.get('/config', options);
13
+ }
14
+
15
+ /**
16
+ * List all providers
17
+ */
18
+ providers(options?: RequestOptions): APIPromise<ConfigProvidersResponse> {
19
+ return this._client.get('/config/providers', options);
20
+ }
21
+ }
22
+
23
+ export interface Config {
24
+ /**
25
+ * JSON schema reference for configuration validation
26
+ */
27
+ $schema?: string;
28
+
29
+ /**
30
+ * Share newly created sessions automatically
31
+ */
32
+ autoshare?: boolean;
33
+
34
+ /**
35
+ * Automatically update to the latest version
36
+ */
37
+ autoupdate?: boolean;
38
+
39
+ /**
40
+ * Disable providers that are loaded automatically
41
+ */
42
+ disabled_providers?: Array<string>;
43
+
44
+ experimental?: Config.Experimental;
45
+
46
+ /**
47
+ * Custom keybind configurations
48
+ */
49
+ keybinds?: Keybinds;
50
+
51
+ /**
52
+ * MCP (Model Context Protocol) server configurations
53
+ */
54
+ mcp?: { [key: string]: McpLocal | McpRemote };
55
+
56
+ /**
57
+ * Model to use in the format of provider/model, eg anthropic/claude-2
58
+ */
59
+ model?: string;
60
+
61
+ /**
62
+ * Custom provider configurations and model overrides
63
+ */
64
+ provider?: { [key: string]: Config.Provider };
65
+
66
+ /**
67
+ * Theme name to use for the interface
68
+ */
69
+ theme?: string;
70
+ }
71
+
72
+ export namespace Config {
73
+ export interface Experimental {
74
+ hook?: Experimental.Hook;
75
+ }
76
+
77
+ export namespace Experimental {
78
+ export interface Hook {
79
+ file_edited?: { [key: string]: Array<Hook.FileEdited> };
80
+
81
+ session_completed?: Array<Hook.SessionCompleted>;
82
+ }
83
+
84
+ export namespace Hook {
85
+ export interface FileEdited {
86
+ command: Array<string>;
87
+
88
+ environment?: { [key: string]: string };
89
+ }
90
+
91
+ export interface SessionCompleted {
92
+ command: Array<string>;
93
+
94
+ environment?: { [key: string]: string };
95
+ }
96
+ }
97
+ }
98
+
99
+ export interface Provider {
100
+ models: { [key: string]: Provider.Models };
101
+
102
+ id?: string;
103
+
104
+ api?: string;
105
+
106
+ env?: Array<string>;
107
+
108
+ name?: string;
109
+
110
+ npm?: string;
111
+
112
+ options?: { [key: string]: unknown };
113
+ }
114
+
115
+ export namespace Provider {
116
+ export interface Models {
117
+ id?: string;
118
+
119
+ attachment?: boolean;
120
+
121
+ cost?: Models.Cost;
122
+
123
+ limit?: Models.Limit;
124
+
125
+ name?: string;
126
+
127
+ options?: { [key: string]: unknown };
128
+
129
+ reasoning?: boolean;
130
+
131
+ temperature?: boolean;
132
+
133
+ tool_call?: boolean;
134
+ }
135
+
136
+ export namespace Models {
137
+ export interface Cost {
138
+ input: number;
139
+
140
+ output: number;
141
+
142
+ cache_read?: number;
143
+
144
+ cache_write?: number;
145
+ }
146
+
147
+ export interface Limit {
148
+ context: number;
149
+
150
+ output: number;
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ export interface Keybinds {
157
+ /**
158
+ * Exit the application
159
+ */
160
+ app_exit?: string;
161
+
162
+ /**
163
+ * Open external editor
164
+ */
165
+ editor_open?: string;
166
+
167
+ /**
168
+ * Show help dialog
169
+ */
170
+ help?: string;
171
+
172
+ /**
173
+ * Navigate to next history item
174
+ */
175
+ history_next?: string;
176
+
177
+ /**
178
+ * Navigate to previous history item
179
+ */
180
+ history_previous?: string;
181
+
182
+ /**
183
+ * Clear input field
184
+ */
185
+ input_clear?: string;
186
+
187
+ /**
188
+ * Insert newline in input
189
+ */
190
+ input_newline?: string;
191
+
192
+ /**
193
+ * Paste from clipboard
194
+ */
195
+ input_paste?: string;
196
+
197
+ /**
198
+ * Submit input
199
+ */
200
+ input_submit?: string;
201
+
202
+ /**
203
+ * Leader key for keybind combinations
204
+ */
205
+ leader?: string;
206
+
207
+ /**
208
+ * Navigate to first message
209
+ */
210
+ messages_first?: string;
211
+
212
+ /**
213
+ * Scroll messages down by half page
214
+ */
215
+ messages_half_page_down?: string;
216
+
217
+ /**
218
+ * Scroll messages up by half page
219
+ */
220
+ messages_half_page_up?: string;
221
+
222
+ /**
223
+ * Navigate to last message
224
+ */
225
+ messages_last?: string;
226
+
227
+ /**
228
+ * Navigate to next message
229
+ */
230
+ messages_next?: string;
231
+
232
+ /**
233
+ * Scroll messages down by one page
234
+ */
235
+ messages_page_down?: string;
236
+
237
+ /**
238
+ * Scroll messages up by one page
239
+ */
240
+ messages_page_up?: string;
241
+
242
+ /**
243
+ * Navigate to previous message
244
+ */
245
+ messages_previous?: string;
246
+
247
+ /**
248
+ * List available models
249
+ */
250
+ model_list?: string;
251
+
252
+ /**
253
+ * Initialize project configuration
254
+ */
255
+ project_init?: string;
256
+
257
+ /**
258
+ * Toggle compact mode for session
259
+ */
260
+ session_compact?: string;
261
+
262
+ /**
263
+ * Interrupt current session
264
+ */
265
+ session_interrupt?: string;
266
+
267
+ /**
268
+ * List all sessions
269
+ */
270
+ session_list?: string;
271
+
272
+ /**
273
+ * Create a new session
274
+ */
275
+ session_new?: string;
276
+
277
+ /**
278
+ * Share current session
279
+ */
280
+ session_share?: string;
281
+
282
+ /**
283
+ * List available themes
284
+ */
285
+ theme_list?: string;
286
+
287
+ /**
288
+ * Show tool details
289
+ */
290
+ tool_details?: string;
291
+ }
292
+
293
+ export interface McpLocal {
294
+ /**
295
+ * Command and arguments to run the MCP server
296
+ */
297
+ command: Array<string>;
298
+
299
+ /**
300
+ * Type of MCP server connection
301
+ */
302
+ type: 'local';
303
+
304
+ /**
305
+ * Environment variables to set when running the MCP server
306
+ */
307
+ environment?: { [key: string]: string };
308
+ }
309
+
310
+ export interface McpRemote {
311
+ /**
312
+ * Type of MCP server connection
313
+ */
314
+ type: 'remote';
315
+
316
+ /**
317
+ * URL of the remote MCP server
318
+ */
319
+ url: string;
320
+ }
321
+
322
+ export interface Model {
323
+ id: string;
324
+
325
+ attachment: boolean;
326
+
327
+ cost: Model.Cost;
328
+
329
+ limit: Model.Limit;
330
+
331
+ name: string;
332
+
333
+ options: { [key: string]: unknown };
334
+
335
+ reasoning: boolean;
336
+
337
+ temperature: boolean;
338
+
339
+ tool_call: boolean;
340
+ }
341
+
342
+ export namespace Model {
343
+ export interface Cost {
344
+ input: number;
345
+
346
+ output: number;
347
+
348
+ cache_read?: number;
349
+
350
+ cache_write?: number;
351
+ }
352
+
353
+ export interface Limit {
354
+ context: number;
355
+
356
+ output: number;
357
+ }
358
+ }
359
+
360
+ export interface Provider {
361
+ id: string;
362
+
363
+ env: Array<string>;
364
+
365
+ models: { [key: string]: Model };
366
+
367
+ name: string;
368
+
369
+ api?: string;
370
+
371
+ npm?: string;
372
+ }
373
+
374
+ export interface ConfigProvidersResponse {
375
+ default: { [key: string]: string };
376
+
377
+ providers: Array<Provider>;
378
+ }
379
+
380
+ export declare namespace ConfigResource {
381
+ export {
382
+ type Config as Config,
383
+ type Keybinds as Keybinds,
384
+ type McpLocal as McpLocal,
385
+ type McpRemote as McpRemote,
386
+ type Model as Model,
387
+ type Provider as Provider,
388
+ type ConfigProvidersResponse as ConfigProvidersResponse,
389
+ };
390
+ }
@@ -1,8 +1,7 @@
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 SessionChatAPI from './session-chat';
5
- import * as SessionCreateAPI from './session-create';
4
+ import * as SessionAPI from './session';
6
5
  import { APIPromise } from '../core/api-promise';
7
6
  import { RequestOptions } from '../internal/request-options';
8
7
 
@@ -23,6 +22,7 @@ export type EventListResponse =
23
22
  | EventListResponse.EventMessageUpdated
24
23
  | EventListResponse.EventMessagePartUpdated
25
24
  | EventListResponse.EventSessionUpdated
25
+ | EventListResponse.EventSessionDeleted
26
26
  | EventListResponse.EventSessionError;
27
27
 
28
28
  export namespace EventListResponse {
@@ -100,7 +100,7 @@ export namespace EventListResponse {
100
100
 
101
101
  export namespace EventMessageUpdated {
102
102
  export interface Properties {
103
- info: SessionChatAPI.MessageInfo;
103
+ info: SessionAPI.Message;
104
104
  }
105
105
  }
106
106
 
@@ -114,7 +114,7 @@ export namespace EventListResponse {
114
114
  export interface Properties {
115
115
  messageID: string;
116
116
 
117
- part: SessionChatAPI.MessagePart;
117
+ part: SessionAPI.MessagePart;
118
118
 
119
119
  sessionID: string;
120
120
  }
@@ -128,7 +128,19 @@ export namespace EventListResponse {
128
128
 
129
129
  export namespace EventSessionUpdated {
130
130
  export interface Properties {
131
- info: SessionCreateAPI.SessionInfo;
131
+ info: SessionAPI.Session;
132
+ }
133
+ }
134
+
135
+ export interface EventSessionDeleted {
136
+ properties: EventSessionDeleted.Properties;
137
+
138
+ type: 'session.deleted';
139
+ }
140
+
141
+ export namespace EventSessionDeleted {
142
+ export interface Properties {
143
+ info: SessionAPI.Session;
132
144
  }
133
145
  }
134
146
 
@@ -140,7 +152,41 @@ export namespace EventListResponse {
140
152
 
141
153
  export namespace EventSessionError {
142
154
  export interface Properties {
143
- error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
155
+ error?: Properties.ProviderAuthError | Properties.UnknownError | Properties.MessageOutputLengthError;
156
+ }
157
+
158
+ 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
+ export interface MessageOutputLengthError {
186
+ data: unknown;
187
+
188
+ name: 'MessageOutputLengthError';
189
+ }
144
190
  }
145
191
  }
146
192
  }
@@ -0,0 +1,24 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ export class File extends APIResource {
8
+ /**
9
+ * Search for files
10
+ */
11
+ search(query: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse> {
12
+ return this._client.get('/file', { query, ...options });
13
+ }
14
+ }
15
+
16
+ export type FileSearchResponse = Array<string>;
17
+
18
+ export interface FileSearchParams {
19
+ query: string;
20
+ }
21
+
22
+ export declare namespace File {
23
+ export { type FileSearchResponse as FileSearchResponse, type FileSearchParams as FileSearchParams };
24
+ }
@@ -1,38 +1,39 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { AppInfo, type AppInfoCreateResponse } from './app-info';
4
- export { AppInitialize, type AppInitializeInitializeResponse } from './app-initialize';
5
- export { ConfigGet, type ConfigGetRetrieveResponse } from './config-get';
3
+ export { AppResource, type App, type AppInitResponse } from './app';
4
+ export {
5
+ ConfigResource,
6
+ type Config,
7
+ type Keybinds,
8
+ type McpLocal,
9
+ type McpRemote,
10
+ type Model,
11
+ type Provider,
12
+ type ConfigProvidersResponse,
13
+ } from './config';
6
14
  export { Event, type EventListResponse } from './event';
7
- export { FileSearch, type FileSearchSearchResponse, type FileSearchSearchParams } from './file-search';
8
- export { InstallationInfo, type InstallationInfoCreateResponse } from './installation-info';
9
- export { PathGet, type PathGetCreateResponse } from './path-get';
10
- export { ProviderList, type ProviderListCreateResponse } from './provider-list';
11
- export { SessionAbort, type SessionAbortAbortResponse, type SessionAbortAbortParams } from './session-abort';
15
+ export { File, type FileSearchResponse, type FileSearchParams } from './file';
12
16
  export {
13
- SessionChat,
14
- type MessageInfo,
17
+ SessionResource,
18
+ type FilePart,
19
+ type Message,
15
20
  type MessagePart,
16
- type ProviderAuthError,
17
- type UnknownError,
18
- type SessionChatCreateParams,
19
- } from './session-chat';
20
- export { SessionCreate, type SessionInfo } from './session-create';
21
- export {
22
- SessionInitialize,
23
- type SessionInitializeCreateResponse,
24
- type SessionInitializeCreateParams,
25
- } from './session-initialize';
26
- export { SessionList, type SessionListCreateResponse } from './session-list';
27
- export {
28
- SessionMessages,
29
- type SessionMessageCreateResponse,
30
- type SessionMessageCreateParams,
31
- } from './session-messages';
32
- export { SessionShare, type SessionShareCreateParams } from './session-share';
33
- export {
34
- SessionSummarize,
35
- type SessionSummarizeSummarizeResponse,
36
- type SessionSummarizeSummarizeParams,
37
- } from './session-summarize';
38
- export { SessionUnshare, type SessionUnshareUnshareParams } from './session-unshare';
21
+ type ReasoningPart,
22
+ type Session,
23
+ type SourceURLPart,
24
+ type StepStartPart,
25
+ type TextPart,
26
+ type ToolCall,
27
+ type ToolInvocationPart,
28
+ type ToolPartialCall,
29
+ type ToolResult,
30
+ type SessionListResponse,
31
+ type SessionDeleteResponse,
32
+ type SessionAbortResponse,
33
+ type SessionInitResponse,
34
+ type SessionMessagesResponse,
35
+ type SessionSummarizeResponse,
36
+ type SessionChatParams,
37
+ type SessionInitParams,
38
+ type SessionSummarizeParams,
39
+ } from './session';