@opencode-ai/sdk 0.1.0-alpha.1 → 0.1.0-alpha.11

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 (291) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/LICENSE +198 -4
  3. package/README.md +20 -6
  4. package/client.d.mts +15 -56
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +15 -56
  7. package/client.d.ts.map +1 -1
  8. package/client.js +14 -67
  9. package/client.js.map +1 -1
  10. package/client.mjs +14 -67
  11. package/client.mjs.map +1 -1
  12. package/core/streaming.d.mts +31 -0
  13. package/core/streaming.d.mts.map +1 -0
  14. package/core/streaming.d.ts +31 -0
  15. package/core/streaming.d.ts.map +1 -0
  16. package/core/streaming.js +257 -0
  17. package/core/streaming.js.map +1 -0
  18. package/core/streaming.mjs +252 -0
  19. package/core/streaming.mjs.map +1 -0
  20. package/internal/decoders/line.d.mts +17 -0
  21. package/internal/decoders/line.d.mts.map +1 -0
  22. package/internal/decoders/line.d.ts +17 -0
  23. package/internal/decoders/line.d.ts.map +1 -0
  24. package/internal/decoders/line.js +113 -0
  25. package/internal/decoders/line.js.map +1 -0
  26. package/internal/decoders/line.mjs +108 -0
  27. package/internal/decoders/line.mjs.map +1 -0
  28. package/internal/parse.d.mts.map +1 -1
  29. package/internal/parse.d.ts.map +1 -1
  30. package/internal/parse.js +10 -0
  31. package/internal/parse.js.map +1 -1
  32. package/internal/parse.mjs +10 -0
  33. package/internal/parse.mjs.map +1 -1
  34. package/internal/request-options.d.mts +2 -0
  35. package/internal/request-options.d.mts.map +1 -1
  36. package/internal/request-options.d.ts +2 -0
  37. package/internal/request-options.d.ts.map +1 -1
  38. package/internal/request-options.js.map +1 -1
  39. package/internal/request-options.mjs.map +1 -1
  40. package/internal/tslib.js +6 -6
  41. package/internal/types.d.mts +8 -6
  42. package/internal/types.d.mts.map +1 -1
  43. package/internal/types.d.ts +8 -6
  44. package/internal/types.d.ts.map +1 -1
  45. package/internal/uploads.js +1 -1
  46. package/internal/uploads.js.map +1 -1
  47. package/internal/uploads.mjs +1 -1
  48. package/internal/uploads.mjs.map +1 -1
  49. package/internal/utils/log.js +1 -1
  50. package/internal/utils/log.js.map +1 -1
  51. package/internal/utils/log.mjs +1 -1
  52. package/internal/utils/log.mjs.map +1 -1
  53. package/internal/utils/path.d.mts.map +1 -1
  54. package/internal/utils/path.d.ts.map +1 -1
  55. package/internal/utils/path.js +26 -5
  56. package/internal/utils/path.js.map +1 -1
  57. package/internal/utils/path.mjs +26 -5
  58. package/internal/utils/path.mjs.map +1 -1
  59. package/package.json +13 -3
  60. package/resources/app.d.mts +37 -0
  61. package/resources/app.d.mts.map +1 -0
  62. package/resources/app.d.ts +37 -0
  63. package/resources/app.d.ts.map +1 -0
  64. package/resources/app.js +21 -0
  65. package/resources/app.js.map +1 -0
  66. package/resources/app.mjs +17 -0
  67. package/resources/app.mjs.map +1 -0
  68. package/resources/config.d.mts +314 -0
  69. package/resources/config.d.mts.map +1 -0
  70. package/resources/config.d.ts +314 -0
  71. package/resources/config.d.ts.map +1 -0
  72. package/resources/config.js +21 -0
  73. package/resources/config.js.map +1 -0
  74. package/resources/config.mjs +17 -0
  75. package/resources/config.mjs.map +1 -0
  76. package/resources/event.d.mts +61 -27
  77. package/resources/event.d.mts.map +1 -1
  78. package/resources/event.d.ts +61 -27
  79. package/resources/event.d.ts.map +1 -1
  80. package/resources/event.js +1 -1
  81. package/resources/event.js.map +1 -1
  82. package/resources/event.mjs +1 -1
  83. package/resources/event.mjs.map +1 -1
  84. package/resources/file.d.mts +17 -0
  85. package/resources/file.d.mts.map +1 -0
  86. package/resources/file.d.ts +17 -0
  87. package/resources/file.d.ts.map +1 -0
  88. package/resources/{file-search.js → file.js} +6 -6
  89. package/resources/file.js.map +1 -0
  90. package/resources/{file-search.mjs → file.mjs} +4 -4
  91. package/resources/file.mjs.map +1 -0
  92. package/resources/index.d.mts +5 -16
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +5 -16
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +11 -33
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +5 -16
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/session.d.mts +207 -0
  101. package/resources/session.d.mts.map +1 -0
  102. package/resources/session.d.ts +207 -0
  103. package/resources/session.d.ts.map +1 -0
  104. package/resources/session.js +70 -0
  105. package/resources/session.js.map +1 -0
  106. package/resources/session.mjs +66 -0
  107. package/resources/session.mjs.map +1 -0
  108. package/resources/shared.d.mts +20 -0
  109. package/resources/shared.d.mts.map +1 -0
  110. package/resources/shared.d.ts +20 -0
  111. package/resources/shared.d.ts.map +1 -0
  112. package/resources/shared.js +4 -0
  113. package/resources/shared.js.map +1 -0
  114. package/resources/shared.mjs +3 -0
  115. package/resources/shared.mjs.map +1 -0
  116. package/src/client.ts +79 -156
  117. package/src/core/streaming.ts +301 -0
  118. package/src/internal/decoders/line.ts +135 -0
  119. package/src/internal/parse.ts +14 -0
  120. package/src/internal/request-options.ts +2 -0
  121. package/src/internal/types.ts +9 -6
  122. package/src/internal/uploads.ts +1 -1
  123. package/src/internal/utils/log.ts +1 -1
  124. package/src/internal/utils/path.ts +32 -7
  125. package/src/resources/app.ts +57 -0
  126. package/src/resources/config.ts +404 -0
  127. package/src/resources/event.ts +84 -36
  128. package/src/resources/file.ts +24 -0
  129. package/src/resources/index.ts +35 -33
  130. package/src/resources/session.ts +355 -0
  131. package/src/resources/shared.ts +27 -0
  132. package/src/streaming.ts +2 -0
  133. package/src/version.ts +1 -1
  134. package/streaming.d.mts +2 -0
  135. package/streaming.d.mts.map +1 -0
  136. package/streaming.d.ts +2 -0
  137. package/streaming.d.ts.map +1 -0
  138. package/streaming.js +6 -0
  139. package/streaming.js.map +1 -0
  140. package/streaming.mjs +2 -0
  141. package/streaming.mjs.map +1 -0
  142. package/version.d.mts +1 -1
  143. package/version.d.mts.map +1 -1
  144. package/version.d.ts +1 -1
  145. package/version.d.ts.map +1 -1
  146. package/version.js +1 -1
  147. package/version.js.map +1 -1
  148. package/version.mjs +1 -1
  149. package/version.mjs.map +1 -1
  150. package/resources/app-info.d.mts +0 -31
  151. package/resources/app-info.d.mts.map +0 -1
  152. package/resources/app-info.d.ts +0 -31
  153. package/resources/app-info.d.ts.map +0 -1
  154. package/resources/app-info.js +0 -15
  155. package/resources/app-info.js.map +0 -1
  156. package/resources/app-info.mjs +0 -11
  157. package/resources/app-info.mjs.map +0 -1
  158. package/resources/app-initialize.d.mts +0 -14
  159. package/resources/app-initialize.d.mts.map +0 -1
  160. package/resources/app-initialize.d.ts +0 -14
  161. package/resources/app-initialize.d.ts.map +0 -1
  162. package/resources/app-initialize.js +0 -15
  163. package/resources/app-initialize.js.map +0 -1
  164. package/resources/app-initialize.mjs +0 -11
  165. package/resources/app-initialize.mjs.map +0 -1
  166. package/resources/config-get.d.mts +0 -236
  167. package/resources/config-get.d.mts.map +0 -1
  168. package/resources/config-get.d.ts +0 -236
  169. package/resources/config-get.d.ts.map +0 -1
  170. package/resources/config-get.js +0 -15
  171. package/resources/config-get.js.map +0 -1
  172. package/resources/config-get.mjs +0 -11
  173. package/resources/config-get.mjs.map +0 -1
  174. package/resources/file-search.d.mts +0 -17
  175. package/resources/file-search.d.mts.map +0 -1
  176. package/resources/file-search.d.ts +0 -17
  177. package/resources/file-search.d.ts.map +0 -1
  178. package/resources/file-search.js.map +0 -1
  179. package/resources/file-search.mjs.map +0 -1
  180. package/resources/installation-info.d.mts +0 -17
  181. package/resources/installation-info.d.mts.map +0 -1
  182. package/resources/installation-info.d.ts +0 -17
  183. package/resources/installation-info.d.ts.map +0 -1
  184. package/resources/installation-info.js +0 -15
  185. package/resources/installation-info.js.map +0 -1
  186. package/resources/installation-info.mjs +0 -11
  187. package/resources/installation-info.mjs.map +0 -1
  188. package/resources/path-get.d.mts +0 -19
  189. package/resources/path-get.d.mts.map +0 -1
  190. package/resources/path-get.d.ts +0 -19
  191. package/resources/path-get.d.ts.map +0 -1
  192. package/resources/path-get.js +0 -15
  193. package/resources/path-get.js.map +0 -1
  194. package/resources/path-get.mjs +0 -11
  195. package/resources/path-get.mjs.map +0 -1
  196. package/resources/provider-list.d.mts +0 -58
  197. package/resources/provider-list.d.mts.map +0 -1
  198. package/resources/provider-list.d.ts +0 -58
  199. package/resources/provider-list.d.ts.map +0 -1
  200. package/resources/provider-list.js +0 -15
  201. package/resources/provider-list.js.map +0 -1
  202. package/resources/provider-list.mjs +0 -11
  203. package/resources/provider-list.mjs.map +0 -1
  204. package/resources/session-abort.d.mts +0 -17
  205. package/resources/session-abort.d.mts.map +0 -1
  206. package/resources/session-abort.d.ts +0 -17
  207. package/resources/session-abort.d.ts.map +0 -1
  208. package/resources/session-abort.js +0 -15
  209. package/resources/session-abort.js.map +0 -1
  210. package/resources/session-abort.mjs +0 -11
  211. package/resources/session-abort.mjs.map +0 -1
  212. package/resources/session-chat.d.mts +0 -160
  213. package/resources/session-chat.d.mts.map +0 -1
  214. package/resources/session-chat.d.ts +0 -160
  215. package/resources/session-chat.d.ts.map +0 -1
  216. package/resources/session-chat.js +0 -15
  217. package/resources/session-chat.js.map +0 -1
  218. package/resources/session-chat.mjs +0 -11
  219. package/resources/session-chat.mjs.map +0 -1
  220. package/resources/session-create.d.mts +0 -30
  221. package/resources/session-create.d.mts.map +0 -1
  222. package/resources/session-create.d.ts +0 -30
  223. package/resources/session-create.d.ts.map +0 -1
  224. package/resources/session-create.js +0 -15
  225. package/resources/session-create.js.map +0 -1
  226. package/resources/session-create.mjs +0 -11
  227. package/resources/session-create.mjs.map +0 -1
  228. package/resources/session-initialize.d.mts +0 -19
  229. package/resources/session-initialize.d.mts.map +0 -1
  230. package/resources/session-initialize.d.ts +0 -19
  231. package/resources/session-initialize.d.ts.map +0 -1
  232. package/resources/session-initialize.js +0 -15
  233. package/resources/session-initialize.js.map +0 -1
  234. package/resources/session-initialize.mjs +0 -11
  235. package/resources/session-initialize.mjs.map +0 -1
  236. package/resources/session-list.d.mts +0 -15
  237. package/resources/session-list.d.mts.map +0 -1
  238. package/resources/session-list.d.ts +0 -15
  239. package/resources/session-list.d.ts.map +0 -1
  240. package/resources/session-list.js +0 -15
  241. package/resources/session-list.js.map +0 -1
  242. package/resources/session-list.mjs +0 -11
  243. package/resources/session-list.mjs.map +0 -1
  244. package/resources/session-messages.d.mts +0 -18
  245. package/resources/session-messages.d.mts.map +0 -1
  246. package/resources/session-messages.d.ts +0 -18
  247. package/resources/session-messages.d.ts.map +0 -1
  248. package/resources/session-messages.js +0 -15
  249. package/resources/session-messages.js.map +0 -1
  250. package/resources/session-messages.mjs +0 -11
  251. package/resources/session-messages.mjs.map +0 -1
  252. package/resources/session-share.d.mts +0 -17
  253. package/resources/session-share.d.mts.map +0 -1
  254. package/resources/session-share.d.ts +0 -17
  255. package/resources/session-share.d.ts.map +0 -1
  256. package/resources/session-share.js +0 -15
  257. package/resources/session-share.js.map +0 -1
  258. package/resources/session-share.mjs +0 -11
  259. package/resources/session-share.mjs.map +0 -1
  260. package/resources/session-summarize.d.mts +0 -19
  261. package/resources/session-summarize.d.mts.map +0 -1
  262. package/resources/session-summarize.d.ts +0 -19
  263. package/resources/session-summarize.d.ts.map +0 -1
  264. package/resources/session-summarize.js +0 -15
  265. package/resources/session-summarize.js.map +0 -1
  266. package/resources/session-summarize.mjs +0 -11
  267. package/resources/session-summarize.mjs.map +0 -1
  268. package/resources/session-unshare.d.mts +0 -17
  269. package/resources/session-unshare.d.mts.map +0 -1
  270. package/resources/session-unshare.d.ts +0 -17
  271. package/resources/session-unshare.d.ts.map +0 -1
  272. package/resources/session-unshare.js +0 -15
  273. package/resources/session-unshare.js.map +0 -1
  274. package/resources/session-unshare.mjs +0 -11
  275. package/resources/session-unshare.mjs.map +0 -1
  276. package/src/resources/app-info.ts +0 -46
  277. package/src/resources/app-initialize.ts +0 -20
  278. package/src/resources/config-get.ts +0 -294
  279. package/src/resources/file-search.ts +0 -27
  280. package/src/resources/installation-info.ts +0 -24
  281. package/src/resources/path-get.ts +0 -28
  282. package/src/resources/provider-list.ts +0 -80
  283. package/src/resources/session-abort.ts +0 -27
  284. package/src/resources/session-chat.ts +0 -250
  285. package/src/resources/session-create.ts +0 -44
  286. package/src/resources/session-initialize.ts +0 -34
  287. package/src/resources/session-list.ts +0 -21
  288. package/src/resources/session-messages.ts +0 -31
  289. package/src/resources/session-share.ts +0 -23
  290. package/src/resources/session-summarize.ts +0 -34
  291. package/src/resources/session-unshare.ts +0 -26
@@ -1,35 +1,17 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
- import * as SessionChatAPI from "./session-chat.mjs";
3
- import * as SessionCreateAPI from "./session-create.mjs";
2
+ import * as SessionAPI from "./session.mjs";
3
+ import * as Shared from "./shared.mjs";
4
4
  import { APIPromise } from "../core/api-promise.mjs";
5
+ import { Stream } from "../core/streaming.mjs";
5
6
  import { RequestOptions } from "../internal/request-options.mjs";
6
7
  export declare class Event extends APIResource {
7
8
  /**
8
9
  * Get events
9
10
  */
10
- list(options?: RequestOptions): APIPromise<EventListResponse>;
11
+ list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
11
12
  }
12
- export type EventListResponse = EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionError;
13
+ export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError;
13
14
  export declare namespace EventListResponse {
14
- interface EventStorageWrite {
15
- properties: EventStorageWrite.Properties;
16
- type: 'storage.write';
17
- }
18
- namespace EventStorageWrite {
19
- interface Properties {
20
- key: string;
21
- content?: unknown;
22
- }
23
- }
24
- interface EventInstallationUpdated {
25
- properties: EventInstallationUpdated.Properties;
26
- type: 'installation.updated';
27
- }
28
- namespace EventInstallationUpdated {
29
- interface Properties {
30
- version: string;
31
- }
32
- }
33
15
  interface EventLspClientDiagnostics {
34
16
  properties: EventLspClientDiagnostics.Properties;
35
17
  type: 'lsp.client.diagnostics';
@@ -60,13 +42,41 @@ export declare namespace EventListResponse {
60
42
  }
61
43
  }
62
44
  }
45
+ interface EventFileEdited {
46
+ properties: EventFileEdited.Properties;
47
+ type: 'file.edited';
48
+ }
49
+ namespace EventFileEdited {
50
+ interface Properties {
51
+ file: string;
52
+ }
53
+ }
54
+ interface EventStorageWrite {
55
+ properties: EventStorageWrite.Properties;
56
+ type: 'storage.write';
57
+ }
58
+ namespace EventStorageWrite {
59
+ interface Properties {
60
+ key: string;
61
+ content?: unknown;
62
+ }
63
+ }
64
+ interface EventInstallationUpdated {
65
+ properties: EventInstallationUpdated.Properties;
66
+ type: 'installation.updated';
67
+ }
68
+ namespace EventInstallationUpdated {
69
+ interface Properties {
70
+ version: string;
71
+ }
72
+ }
63
73
  interface EventMessageUpdated {
64
74
  properties: EventMessageUpdated.Properties;
65
75
  type: 'message.updated';
66
76
  }
67
77
  namespace EventMessageUpdated {
68
78
  interface Properties {
69
- info: SessionChatAPI.MessageInfo;
79
+ info: SessionAPI.Message;
70
80
  }
71
81
  }
72
82
  interface EventMessagePartUpdated {
@@ -76,7 +86,7 @@ export declare namespace EventListResponse {
76
86
  namespace EventMessagePartUpdated {
77
87
  interface Properties {
78
88
  messageID: string;
79
- part: SessionChatAPI.MessagePart;
89
+ part: SessionAPI.MessagePart;
80
90
  sessionID: string;
81
91
  }
82
92
  }
@@ -86,7 +96,25 @@ export declare namespace EventListResponse {
86
96
  }
87
97
  namespace EventSessionUpdated {
88
98
  interface Properties {
89
- info: SessionCreateAPI.SessionInfo;
99
+ info: SessionAPI.Session;
100
+ }
101
+ }
102
+ interface EventSessionDeleted {
103
+ properties: EventSessionDeleted.Properties;
104
+ type: 'session.deleted';
105
+ }
106
+ namespace EventSessionDeleted {
107
+ interface Properties {
108
+ info: SessionAPI.Session;
109
+ }
110
+ }
111
+ interface EventSessionIdle {
112
+ properties: EventSessionIdle.Properties;
113
+ type: 'session.idle';
114
+ }
115
+ namespace EventSessionIdle {
116
+ interface Properties {
117
+ sessionID: string;
90
118
  }
91
119
  }
92
120
  interface EventSessionError {
@@ -95,7 +123,13 @@ export declare namespace EventListResponse {
95
123
  }
96
124
  namespace EventSessionError {
97
125
  interface Properties {
98
- error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
126
+ error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError;
127
+ }
128
+ namespace Properties {
129
+ interface MessageOutputLengthError {
130
+ data: unknown;
131
+ name: 'MessageOutputLengthError';
132
+ }
99
133
  }
100
134
  }
101
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.mts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG9D;AAED,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,wBAAwB,GAC1C,iBAAiB,CAAC,yBAAyB,GAC3C,iBAAiB,CAAC,sBAAsB,GACxC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,iBAAiB,CAAC;AAExC,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,i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C,UAAiB,UAAU;YACzB,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;SAC1B;KACF;IAED,UAAiB,gBAAgB;QAC/B,UAAU,EAAE,gBAAgB,CAAC,UAAU,CAAC;QAExC,IAAI,EAAE,cAAc,CAAC;KACtB;IAED,UAAiB,gBAAgB,CAAC;QAChC,UAAiB,UAAU;YACzB,SAAS,EAAE,MAAM,CAAC;SACnB;KACF;IAED,UAAiB,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,KAAK,CAAC,EAAE,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,YAAY,GAAG,UAAU,CAAC,wBAAwB,CAAC;SAC9F;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
@@ -1,35 +1,17 @@
1
1
  import { APIResource } from "../core/resource.js";
2
- import * as SessionChatAPI from "./session-chat.js";
3
- import * as SessionCreateAPI from "./session-create.js";
2
+ import * as SessionAPI from "./session.js";
3
+ import * as Shared from "./shared.js";
4
4
  import { APIPromise } from "../core/api-promise.js";
5
+ import { Stream } from "../core/streaming.js";
5
6
  import { RequestOptions } from "../internal/request-options.js";
6
7
  export declare class Event extends APIResource {
7
8
  /**
8
9
  * Get events
9
10
  */
10
- list(options?: RequestOptions): APIPromise<EventListResponse>;
11
+ list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
11
12
  }
12
- export type EventListResponse = EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionError;
13
+ export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError;
13
14
  export declare namespace EventListResponse {
14
- interface EventStorageWrite {
15
- properties: EventStorageWrite.Properties;
16
- type: 'storage.write';
17
- }
18
- namespace EventStorageWrite {
19
- interface Properties {
20
- key: string;
21
- content?: unknown;
22
- }
23
- }
24
- interface EventInstallationUpdated {
25
- properties: EventInstallationUpdated.Properties;
26
- type: 'installation.updated';
27
- }
28
- namespace EventInstallationUpdated {
29
- interface Properties {
30
- version: string;
31
- }
32
- }
33
15
  interface EventLspClientDiagnostics {
34
16
  properties: EventLspClientDiagnostics.Properties;
35
17
  type: 'lsp.client.diagnostics';
@@ -60,13 +42,41 @@ export declare namespace EventListResponse {
60
42
  }
61
43
  }
62
44
  }
45
+ interface EventFileEdited {
46
+ properties: EventFileEdited.Properties;
47
+ type: 'file.edited';
48
+ }
49
+ namespace EventFileEdited {
50
+ interface Properties {
51
+ file: string;
52
+ }
53
+ }
54
+ interface EventStorageWrite {
55
+ properties: EventStorageWrite.Properties;
56
+ type: 'storage.write';
57
+ }
58
+ namespace EventStorageWrite {
59
+ interface Properties {
60
+ key: string;
61
+ content?: unknown;
62
+ }
63
+ }
64
+ interface EventInstallationUpdated {
65
+ properties: EventInstallationUpdated.Properties;
66
+ type: 'installation.updated';
67
+ }
68
+ namespace EventInstallationUpdated {
69
+ interface Properties {
70
+ version: string;
71
+ }
72
+ }
63
73
  interface EventMessageUpdated {
64
74
  properties: EventMessageUpdated.Properties;
65
75
  type: 'message.updated';
66
76
  }
67
77
  namespace EventMessageUpdated {
68
78
  interface Properties {
69
- info: SessionChatAPI.MessageInfo;
79
+ info: SessionAPI.Message;
70
80
  }
71
81
  }
72
82
  interface EventMessagePartUpdated {
@@ -76,7 +86,7 @@ export declare namespace EventListResponse {
76
86
  namespace EventMessagePartUpdated {
77
87
  interface Properties {
78
88
  messageID: string;
79
- part: SessionChatAPI.MessagePart;
89
+ part: SessionAPI.MessagePart;
80
90
  sessionID: string;
81
91
  }
82
92
  }
@@ -86,7 +96,25 @@ export declare namespace EventListResponse {
86
96
  }
87
97
  namespace EventSessionUpdated {
88
98
  interface Properties {
89
- info: SessionCreateAPI.SessionInfo;
99
+ info: SessionAPI.Session;
100
+ }
101
+ }
102
+ interface EventSessionDeleted {
103
+ properties: EventSessionDeleted.Properties;
104
+ type: 'session.deleted';
105
+ }
106
+ namespace EventSessionDeleted {
107
+ interface Properties {
108
+ info: SessionAPI.Session;
109
+ }
110
+ }
111
+ interface EventSessionIdle {
112
+ properties: EventSessionIdle.Properties;
113
+ type: 'session.idle';
114
+ }
115
+ namespace EventSessionIdle {
116
+ interface Properties {
117
+ sessionID: string;
90
118
  }
91
119
  }
92
120
  interface EventSessionError {
@@ -95,7 +123,13 @@ export declare namespace EventListResponse {
95
123
  }
96
124
  namespace EventSessionError {
97
125
  interface Properties {
98
- error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
126
+ error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError;
127
+ }
128
+ namespace Properties {
129
+ interface MessageOutputLengthError {
130
+ data: unknown;
131
+ name: 'MessageOutputLengthError';
132
+ }
99
133
  }
100
134
  }
101
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,q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events
9
9
  */
10
10
  list(options) {
11
- return this._client.get('/event', options);
11
+ return this._client.get('/event', { ...options, stream: true });
12
12
  }
13
13
  }
14
14
  exports.Event = Event;
@@ -1 +1 @@
1
- {"version":3,"file":"event.js","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;AAPD,sBAOC"}
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAO/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAA0C,CAAC;IAC3G,CAAC;CACF;AAPD,sBAOC"}
@@ -5,7 +5,7 @@ export class Event extends APIResource {
5
5
  * Get events
6
6
  */
7
7
  list(options) {
8
- return this._client.get('/event', options);
8
+ return this._client.get('/event', { ...options, stream: true });
9
9
  }
10
10
  }
11
11
  //# sourceMappingURL=event.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.mjs","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF"}
1
+ {"version":3,"file":"event.mjs","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAOtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAA0C,CAAC;IAC3G,CAAC;CACF"}
@@ -0,0 +1,17 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class File extends APIResource {
5
+ /**
6
+ * Search for files
7
+ */
8
+ search(query: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse>;
9
+ }
10
+ export type FileSearchResponse = Array<string>;
11
+ export interface FileSearchParams {
12
+ query: string;
13
+ }
14
+ export declare namespace File {
15
+ export { type FileSearchResponse as FileSearchResponse, type FileSearchParams as FileSearchParams };
16
+ }
17
+ //# sourceMappingURL=file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.mts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG1F;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
@@ -0,0 +1,17 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class File extends APIResource {
5
+ /**
6
+ * Search for files
7
+ */
8
+ search(query: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse>;
9
+ }
10
+ export type FileSearchResponse = Array<string>;
11
+ export interface FileSearchParams {
12
+ query: string;
13
+ }
14
+ export declare namespace File {
15
+ export { type FileSearchResponse as FileSearchResponse, type FileSearchParams as FileSearchParams };
16
+ }
17
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG1F;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FileSearch = void 0;
4
+ exports.File = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
- class FileSearch extends resource_1.APIResource {
6
+ class File extends resource_1.APIResource {
7
7
  /**
8
8
  * Search for files
9
9
  */
10
- search(body, options) {
11
- return this._client.post('/file_search', { body, ...options });
10
+ search(query, options) {
11
+ return this._client.get('/file', { query, ...options });
12
12
  }
13
13
  }
14
- exports.FileSearch = FileSearch;
15
- //# sourceMappingURL=file-search.js.map
14
+ exports.File = File;
15
+ //# sourceMappingURL=file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,oBAOC"}
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
- export class FileSearch extends APIResource {
3
+ export class File extends APIResource {
4
4
  /**
5
5
  * Search for files
6
6
  */
7
- search(body, options) {
8
- return this._client.post('/file_search', { body, ...options });
7
+ search(query, options) {
8
+ return this._client.get('/file', { query, ...options });
9
9
  }
10
10
  }
11
- //# sourceMappingURL=file-search.mjs.map
11
+ //# sourceMappingURL=file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.mjs","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
@@ -1,18 +1,7 @@
1
- export { AppInfo, type AppInfoCreateResponse } from "./app-info.mjs";
2
- export { AppInitialize, type AppInitializeInitializeResponse } from "./app-initialize.mjs";
3
- export { ConfigGet, type ConfigGetRetrieveResponse } from "./config-get.mjs";
1
+ export * from "./shared.mjs";
2
+ export { AppResource, type App, type AppInitResponse } from "./app.mjs";
3
+ export { ConfigResource, type Config, type Keybinds, type McpLocal, type McpRemote, type Model, type Provider, type ConfigProvidersResponse, } from "./config.mjs";
4
4
  export { Event, type EventListResponse } from "./event.mjs";
5
- export { FileSearch, type FileSearchSearchResponse, type FileSearchSearchParams } from "./file-search.mjs";
6
- export { InstallationInfo, type InstallationInfoCreateResponse } from "./installation-info.mjs";
7
- export { PathGet, type PathGetCreateResponse } from "./path-get.mjs";
8
- export { ProviderList, type ProviderListCreateResponse } from "./provider-list.mjs";
9
- export { SessionAbort, type SessionAbortAbortResponse, type SessionAbortAbortParams } from "./session-abort.mjs";
10
- export { SessionChat, type MessageInfo, type MessagePart, type ProviderAuthError, type UnknownError, type SessionChatCreateParams, } from "./session-chat.mjs";
11
- export { SessionCreate, type SessionInfo } from "./session-create.mjs";
12
- export { SessionInitialize, type SessionInitializeCreateResponse, type SessionInitializeCreateParams, } from "./session-initialize.mjs";
13
- export { SessionList, type SessionListCreateResponse } from "./session-list.mjs";
14
- export { SessionMessages, type SessionMessageCreateResponse, type SessionMessageCreateParams, } from "./session-messages.mjs";
15
- export { SessionShare, type SessionShareCreateParams } from "./session-share.mjs";
16
- export { SessionSummarize, type SessionSummarizeSummarizeResponse, type SessionSummarizeSummarizeParams, } from "./session-summarize.mjs";
17
- export { SessionUnshare, type SessionUnshareUnshareParams } from "./session-unshare.mjs";
5
+ export { File, type FileSearchResponse, type FileSearchParams } from "./file.mjs";
6
+ export { SessionResource, type FilePart, type Message, type MessagePart, type ReasoningPart, type Session, type SourceURLPart, type StepStartPart, type TextPart, type ToolCall, type ToolInvocationPart, type ToolPartialCall, type ToolResult, type SessionListResponse, type SessionDeleteResponse, type SessionAbortResponse, type SessionInitResponse, type SessionMessagesResponse, type SessionSummarizeResponse, type SessionChatParams, type SessionInitParams, type SessionSummarizeParams, } from "./session.mjs";
18
7
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE;OACvC,EAAE,aAAa,EAAE,KAAK,+BAA+B,EAAE;OACvD,EAAE,SAAS,EAAE,KAAK,yBAAyB,EAAE;OAC7C,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE;OACjC,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OAC1E,EAAE,gBAAgB,EAAE,KAAK,8BAA8B,EAAE;OACzD,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE;OACvC,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE;OACjD,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B;OACM,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE;OACnC,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE;OAC/C,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE;OAC/C,EACL,gBAAgB,EAChB,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,cAAc,EAAE,KAAK,2BAA2B,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,eAAe,EAAE;OAC/C,EACL,cAAc,EACd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,uBAAuB,GAC7B;OACM,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE;OACjC,EAAE,IAAI,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OACxD,EACL,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B"}
@@ -1,18 +1,7 @@
1
- export { AppInfo, type AppInfoCreateResponse } from "./app-info.js";
2
- export { AppInitialize, type AppInitializeInitializeResponse } from "./app-initialize.js";
3
- export { ConfigGet, type ConfigGetRetrieveResponse } from "./config-get.js";
1
+ export * from "./shared.js";
2
+ export { AppResource, type App, type AppInitResponse } from "./app.js";
3
+ export { ConfigResource, type Config, type Keybinds, type McpLocal, type McpRemote, type Model, type Provider, type ConfigProvidersResponse, } from "./config.js";
4
4
  export { Event, type EventListResponse } from "./event.js";
5
- export { FileSearch, type FileSearchSearchResponse, type FileSearchSearchParams } from "./file-search.js";
6
- export { InstallationInfo, type InstallationInfoCreateResponse } from "./installation-info.js";
7
- export { PathGet, type PathGetCreateResponse } from "./path-get.js";
8
- export { ProviderList, type ProviderListCreateResponse } from "./provider-list.js";
9
- export { SessionAbort, type SessionAbortAbortResponse, type SessionAbortAbortParams } from "./session-abort.js";
10
- export { SessionChat, type MessageInfo, type MessagePart, type ProviderAuthError, type UnknownError, type SessionChatCreateParams, } from "./session-chat.js";
11
- export { SessionCreate, type SessionInfo } from "./session-create.js";
12
- export { SessionInitialize, type SessionInitializeCreateResponse, type SessionInitializeCreateParams, } from "./session-initialize.js";
13
- export { SessionList, type SessionListCreateResponse } from "./session-list.js";
14
- export { SessionMessages, type SessionMessageCreateResponse, type SessionMessageCreateParams, } from "./session-messages.js";
15
- export { SessionShare, type SessionShareCreateParams } from "./session-share.js";
16
- export { SessionSummarize, type SessionSummarizeSummarizeResponse, type SessionSummarizeSummarizeParams, } from "./session-summarize.js";
17
- export { SessionUnshare, type SessionUnshareUnshareParams } from "./session-unshare.js";
5
+ export { File, type FileSearchResponse, type FileSearchParams } from "./file.js";
6
+ export { SessionResource, type FilePart, type Message, type MessagePart, type ReasoningPart, type Session, type SourceURLPart, type StepStartPart, type TextPart, type ToolCall, type ToolInvocationPart, type ToolPartialCall, type ToolResult, type SessionListResponse, type SessionDeleteResponse, type SessionAbortResponse, type SessionInitResponse, type SessionMessagesResponse, type SessionSummarizeResponse, type SessionChatParams, type SessionInitParams, type SessionSummarizeParams, } from "./session.js";
18
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE;OACvC,EAAE,aAAa,EAAE,KAAK,+BAA+B,EAAE;OACvD,EAAE,SAAS,EAAE,KAAK,yBAAyB,EAAE;OAC7C,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE;OACjC,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OAC1E,EAAE,gBAAgB,EAAE,KAAK,8BAA8B,EAAE;OACzD,EAAE,OAAO,EAAE,KAAK,qBAA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f,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B"}
@@ -1,39 +1,17 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.SessionUnshare = exports.SessionSummarize = exports.SessionShare = exports.SessionMessages = exports.SessionList = exports.SessionInitialize = exports.SessionCreate = exports.SessionChat = exports.SessionAbort = exports.ProviderList = exports.PathGet = exports.InstallationInfo = exports.FileSearch = exports.Event = exports.ConfigGet = exports.AppInitialize = exports.AppInfo = void 0;
5
- var app_info_1 = require("./app-info.js");
6
- Object.defineProperty(exports, "AppInfo", { enumerable: true, get: function () { return app_info_1.AppInfo; } });
7
- var app_initialize_1 = require("./app-initialize.js");
8
- Object.defineProperty(exports, "AppInitialize", { enumerable: true, get: function () { return app_initialize_1.AppInitialize; } });
9
- var config_get_1 = require("./config-get.js");
10
- Object.defineProperty(exports, "ConfigGet", { enumerable: true, get: function () { return config_get_1.ConfigGet; } });
4
+ exports.SessionResource = exports.File = exports.Event = exports.ConfigResource = exports.AppResource = void 0;
5
+ const tslib_1 = require("../internal/tslib.js");
6
+ tslib_1.__exportStar(require("./shared.js"), exports);
7
+ var app_1 = require("./app.js");
8
+ Object.defineProperty(exports, "AppResource", { enumerable: true, get: function () { return app_1.AppResource; } });
9
+ var config_1 = require("./config.js");
10
+ Object.defineProperty(exports, "ConfigResource", { enumerable: true, get: function () { return config_1.ConfigResource; } });
11
11
  var event_1 = require("./event.js");
12
12
  Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return event_1.Event; } });
13
- var file_search_1 = require("./file-search.js");
14
- Object.defineProperty(exports, "FileSearch", { enumerable: true, get: function () { return file_search_1.FileSearch; } });
15
- var installation_info_1 = require("./installation-info.js");
16
- Object.defineProperty(exports, "InstallationInfo", { enumerable: true, get: function () { return installation_info_1.InstallationInfo; } });
17
- var path_get_1 = require("./path-get.js");
18
- Object.defineProperty(exports, "PathGet", { enumerable: true, get: function () { return path_get_1.PathGet; } });
19
- var provider_list_1 = require("./provider-list.js");
20
- Object.defineProperty(exports, "ProviderList", { enumerable: true, get: function () { return provider_list_1.ProviderList; } });
21
- var session_abort_1 = require("./session-abort.js");
22
- Object.defineProperty(exports, "SessionAbort", { enumerable: true, get: function () { return session_abort_1.SessionAbort; } });
23
- var session_chat_1 = require("./session-chat.js");
24
- Object.defineProperty(exports, "SessionChat", { enumerable: true, get: function () { return session_chat_1.SessionChat; } });
25
- var session_create_1 = require("./session-create.js");
26
- Object.defineProperty(exports, "SessionCreate", { enumerable: true, get: function () { return session_create_1.SessionCreate; } });
27
- var session_initialize_1 = require("./session-initialize.js");
28
- Object.defineProperty(exports, "SessionInitialize", { enumerable: true, get: function () { return session_initialize_1.SessionInitialize; } });
29
- var session_list_1 = require("./session-list.js");
30
- Object.defineProperty(exports, "SessionList", { enumerable: true, get: function () { return session_list_1.SessionList; } });
31
- var session_messages_1 = require("./session-messages.js");
32
- Object.defineProperty(exports, "SessionMessages", { enumerable: true, get: function () { return session_messages_1.SessionMessages; } });
33
- var session_share_1 = require("./session-share.js");
34
- Object.defineProperty(exports, "SessionShare", { enumerable: true, get: function () { return session_share_1.SessionShare; } });
35
- var session_summarize_1 = require("./session-summarize.js");
36
- Object.defineProperty(exports, "SessionSummarize", { enumerable: true, get: function () { return session_summarize_1.SessionSummarize; } });
37
- var session_unshare_1 = require("./session-unshare.js");
38
- Object.defineProperty(exports, "SessionUnshare", { enumerable: true, get: function () { return session_unshare_1.SessionUnshare; } });
13
+ var file_1 = require("./file.js");
14
+ Object.defineProperty(exports, "File", { enumerable: true, get: function () { return file_1.File; } });
15
+ var session_1 = require("./session.js");
16
+ Object.defineProperty(exports, "SessionResource", { enumerable: true, get: function () { return session_1.SessionResource; } });
39
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAiE;AAAxD,mGAAA,OAAO,OAAA;AAChB,sDAAuF;AAA9E,+GAAA,aAAa,OAAA;AACtB,8CAAyE;AAAhE,uGAAA,SAAS,OAAA;AAClB,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,gDAAuG;AAA9F,yGAAA,UAAU,OAAA;AACnB,4DAA4F;AAAnF,qHAAA,gBAAgB,OAAA;AACzB,0CAAiE;AAAxD,mGAAA,OAAO,OAAA;AAChB,oDAAgF;AAAvE,6GAAA,YAAY,OAAA;AACrB,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,sDAAmE;AAA1D,+GAAA,aAAa,OAAA;AACtB,8DAI8B;AAH5B,uHAAA,iBAAiB,OAAA;AAInB,kDAA6E;AAApE,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,mHAAA,eAAe,OAAA;AAIjB,oDAA8E;AAArE,6GAAA,YAAY,OAAA;AACrB,4DAI6B;AAH3B,qHAAA,gBAAgB,OAAA;AAIlB,wDAAqF;AAA5E,iHAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gCAAoE;AAA3D,kGAAA,WAAW,OAAA;AACpB,sCASkB;AARhB,wGAAA,cAAc,OAAA;AAShB,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,kCAA8E;AAArE,4FAAA,IAAI,OAAA;AACb,wCAuBmB;AAtBjB,0GAAA,eAAe,OAAA"}
@@ -1,19 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { AppInfo } from "./app-info.mjs";
3
- export { AppInitialize } from "./app-initialize.mjs";
4
- export { ConfigGet } from "./config-get.mjs";
2
+ export * from "./shared.mjs";
3
+ export { AppResource } from "./app.mjs";
4
+ export { ConfigResource, } from "./config.mjs";
5
5
  export { Event } from "./event.mjs";
6
- export { FileSearch } from "./file-search.mjs";
7
- export { InstallationInfo } from "./installation-info.mjs";
8
- export { PathGet } from "./path-get.mjs";
9
- export { ProviderList } from "./provider-list.mjs";
10
- export { SessionAbort } from "./session-abort.mjs";
11
- export { SessionChat, } from "./session-chat.mjs";
12
- export { SessionCreate } from "./session-create.mjs";
13
- export { SessionInitialize, } from "./session-initialize.mjs";
14
- export { SessionList } from "./session-list.mjs";
15
- export { SessionMessages, } from "./session-messages.mjs";
16
- export { SessionShare } from "./session-share.mjs";
17
- export { SessionSummarize, } from "./session-summarize.mjs";
18
- export { SessionUnshare } from "./session-unshare.mjs";
6
+ export { File } from "./file.mjs";
7
+ export { SessionResource, } from "./session.mjs";
19
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA8B;OACvC,EAAE,aAAa,EAAwC;OACvD,EAAE,SAAS,EAAkC;OAC7C,EAAE,KAAK,EAA0B;OACjC,EAAE,UAAU,EAA8D;OAC1E,EAAE,gBAAgB,EAAuC;OACzD,EAAE,OAAO,EAA8B;OACvC,EAAE,YAAY,EAAmC;OACjD,EAAE,YAAY,EAAgE;OAC9E,EACL,WAAW,GAMZ;OACM,EAAE,aAAa,EAAoB;OACnC,EACL,iBAAiB,GAGlB;OACM,EAAE,WAAW,EAAkC;OAC/C,EACL,eAAe,GAGhB;OACM,EAAE,YAAY,EAAiC;OAC/C,EACL,gBAAgB,GAGjB;OACM,EAAE,cAAc,EAAoC"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,WAAW,EAAkC;OAC/C,EACL,cAAc,GAQf;OACM,EAAE,KAAK,EAA0B;OACjC,EAAE,IAAI,EAAkD;OACxD,EACL,eAAe,GAsBhB"}