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

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 (300) hide show
  1. package/CHANGELOG.md +173 -0
  2. package/LICENSE +198 -4
  3. package/README.md +27 -9
  4. package/client.d.mts +25 -53
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +25 -53
  7. package/client.d.ts.map +1 -1
  8. package/client.js +25 -55
  9. package/client.js.map +1 -1
  10. package/client.mjs +25 -55
  11. package/client.mjs.map +1 -1
  12. package/core/streaming.d.mts +33 -0
  13. package/core/streaming.d.mts.map +1 -0
  14. package/core/streaming.d.ts +33 -0
  15. package/core/streaming.d.ts.map +1 -0
  16. package/core/streaming.js +263 -0
  17. package/core/streaming.js.map +1 -0
  18. package/core/streaming.mjs +258 -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 +44 -0
  35. package/internal/request-options.d.mts.map +1 -1
  36. package/internal/request-options.d.ts +44 -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 +130 -0
  61. package/resources/app.d.mts.map +1 -0
  62. package/resources/app.d.ts +130 -0
  63. package/resources/app.d.ts.map +1 -0
  64. package/resources/app.js +39 -0
  65. package/resources/app.js.map +1 -0
  66. package/resources/app.mjs +35 -0
  67. package/resources/app.mjs.map +1 -0
  68. package/resources/config.d.mts +344 -0
  69. package/resources/config.d.mts.map +1 -0
  70. package/resources/config.d.ts +344 -0
  71. package/resources/config.d.ts.map +1 -0
  72. package/resources/{config-get.js → config.js} +6 -6
  73. package/resources/config.js.map +1 -0
  74. package/resources/{config-get.mjs → config.mjs} +4 -4
  75. package/resources/config.mjs.map +1 -0
  76. package/resources/event.d.mts +82 -29
  77. package/resources/event.d.mts.map +1 -1
  78. package/resources/event.d.ts +82 -29
  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 +31 -0
  85. package/resources/file.d.mts.map +1 -0
  86. package/resources/file.d.ts +31 -0
  87. package/resources/file.d.ts.map +1 -0
  88. package/resources/file.js +21 -0
  89. package/resources/file.js.map +1 -0
  90. package/resources/file.mjs +17 -0
  91. package/resources/file.mjs.map +1 -0
  92. package/resources/find.d.mts +85 -0
  93. package/resources/find.d.mts.map +1 -0
  94. package/resources/find.d.ts +85 -0
  95. package/resources/find.d.ts.map +1 -0
  96. package/resources/find.js +27 -0
  97. package/resources/find.js.map +1 -0
  98. package/resources/find.mjs +23 -0
  99. package/resources/find.mjs.map +1 -0
  100. package/resources/index.d.mts +6 -16
  101. package/resources/index.d.mts.map +1 -1
  102. package/resources/index.d.ts +6 -16
  103. package/resources/index.d.ts.map +1 -1
  104. package/resources/index.js +13 -33
  105. package/resources/index.js.map +1 -1
  106. package/resources/index.mjs +6 -16
  107. package/resources/index.mjs.map +1 -1
  108. package/resources/session.d.mts +272 -0
  109. package/resources/session.d.mts.map +1 -0
  110. package/resources/session.d.ts +272 -0
  111. package/resources/session.d.ts.map +1 -0
  112. package/resources/session.js +70 -0
  113. package/resources/session.js.map +1 -0
  114. package/resources/session.mjs +66 -0
  115. package/resources/session.mjs.map +1 -0
  116. package/resources/shared.d.mts +24 -0
  117. package/resources/shared.d.mts.map +1 -0
  118. package/resources/shared.d.ts +24 -0
  119. package/resources/shared.d.ts.map +1 -0
  120. package/resources/shared.js +4 -0
  121. package/resources/shared.js.map +1 -0
  122. package/resources/shared.mjs +3 -0
  123. package/resources/shared.mjs.map +1 -0
  124. package/src/client.ts +145 -128
  125. package/src/core/streaming.ts +315 -0
  126. package/src/internal/decoders/line.ts +135 -0
  127. package/src/internal/parse.ts +14 -0
  128. package/src/internal/request-options.ts +55 -0
  129. package/src/internal/types.ts +9 -6
  130. package/src/internal/uploads.ts +1 -1
  131. package/src/internal/utils/log.ts +1 -1
  132. package/src/internal/utils/path.ts +32 -7
  133. package/src/resources/app.ts +196 -0
  134. package/src/resources/config.ts +431 -0
  135. package/src/resources/event.ts +119 -39
  136. package/src/resources/file.ts +52 -0
  137. package/src/resources/find.ts +133 -0
  138. package/src/resources/index.ts +65 -32
  139. package/src/resources/session.ts +457 -0
  140. package/src/resources/shared.ts +33 -0
  141. package/src/streaming.ts +2 -0
  142. package/src/version.ts +1 -1
  143. package/streaming.d.mts +2 -0
  144. package/streaming.d.mts.map +1 -0
  145. package/streaming.d.ts +2 -0
  146. package/streaming.d.ts.map +1 -0
  147. package/streaming.js +6 -0
  148. package/streaming.js.map +1 -0
  149. package/streaming.mjs +2 -0
  150. package/streaming.mjs.map +1 -0
  151. package/version.d.mts +1 -1
  152. package/version.d.mts.map +1 -1
  153. package/version.d.ts +1 -1
  154. package/version.d.ts.map +1 -1
  155. package/version.js +1 -1
  156. package/version.js.map +1 -1
  157. package/version.mjs +1 -1
  158. package/version.mjs.map +1 -1
  159. package/resources/app-info.d.mts +0 -31
  160. package/resources/app-info.d.mts.map +0 -1
  161. package/resources/app-info.d.ts +0 -31
  162. package/resources/app-info.d.ts.map +0 -1
  163. package/resources/app-info.js +0 -15
  164. package/resources/app-info.js.map +0 -1
  165. package/resources/app-info.mjs +0 -11
  166. package/resources/app-info.mjs.map +0 -1
  167. package/resources/app-initialize.d.mts +0 -14
  168. package/resources/app-initialize.d.mts.map +0 -1
  169. package/resources/app-initialize.d.ts +0 -14
  170. package/resources/app-initialize.d.ts.map +0 -1
  171. package/resources/app-initialize.js +0 -15
  172. package/resources/app-initialize.js.map +0 -1
  173. package/resources/app-initialize.mjs +0 -11
  174. package/resources/app-initialize.mjs.map +0 -1
  175. package/resources/config-get.d.mts +0 -236
  176. package/resources/config-get.d.mts.map +0 -1
  177. package/resources/config-get.d.ts +0 -236
  178. package/resources/config-get.d.ts.map +0 -1
  179. package/resources/config-get.js.map +0 -1
  180. package/resources/config-get.mjs.map +0 -1
  181. package/resources/file-search.d.mts +0 -17
  182. package/resources/file-search.d.mts.map +0 -1
  183. package/resources/file-search.d.ts +0 -17
  184. package/resources/file-search.d.ts.map +0 -1
  185. package/resources/file-search.js +0 -15
  186. package/resources/file-search.js.map +0 -1
  187. package/resources/file-search.mjs +0 -11
  188. package/resources/file-search.mjs.map +0 -1
  189. package/resources/installation-info.d.mts +0 -17
  190. package/resources/installation-info.d.mts.map +0 -1
  191. package/resources/installation-info.d.ts +0 -17
  192. package/resources/installation-info.d.ts.map +0 -1
  193. package/resources/installation-info.js +0 -15
  194. package/resources/installation-info.js.map +0 -1
  195. package/resources/installation-info.mjs +0 -11
  196. package/resources/installation-info.mjs.map +0 -1
  197. package/resources/path-get.d.mts +0 -19
  198. package/resources/path-get.d.mts.map +0 -1
  199. package/resources/path-get.d.ts +0 -19
  200. package/resources/path-get.d.ts.map +0 -1
  201. package/resources/path-get.js +0 -15
  202. package/resources/path-get.js.map +0 -1
  203. package/resources/path-get.mjs +0 -11
  204. package/resources/path-get.mjs.map +0 -1
  205. package/resources/provider-list.d.mts +0 -58
  206. package/resources/provider-list.d.mts.map +0 -1
  207. package/resources/provider-list.d.ts +0 -58
  208. package/resources/provider-list.d.ts.map +0 -1
  209. package/resources/provider-list.js +0 -15
  210. package/resources/provider-list.js.map +0 -1
  211. package/resources/provider-list.mjs +0 -11
  212. package/resources/provider-list.mjs.map +0 -1
  213. package/resources/session-abort.d.mts +0 -17
  214. package/resources/session-abort.d.mts.map +0 -1
  215. package/resources/session-abort.d.ts +0 -17
  216. package/resources/session-abort.d.ts.map +0 -1
  217. package/resources/session-abort.js +0 -15
  218. package/resources/session-abort.js.map +0 -1
  219. package/resources/session-abort.mjs +0 -11
  220. package/resources/session-abort.mjs.map +0 -1
  221. package/resources/session-chat.d.mts +0 -160
  222. package/resources/session-chat.d.mts.map +0 -1
  223. package/resources/session-chat.d.ts +0 -160
  224. package/resources/session-chat.d.ts.map +0 -1
  225. package/resources/session-chat.js +0 -15
  226. package/resources/session-chat.js.map +0 -1
  227. package/resources/session-chat.mjs +0 -11
  228. package/resources/session-chat.mjs.map +0 -1
  229. package/resources/session-create.d.mts +0 -30
  230. package/resources/session-create.d.mts.map +0 -1
  231. package/resources/session-create.d.ts +0 -30
  232. package/resources/session-create.d.ts.map +0 -1
  233. package/resources/session-create.js +0 -15
  234. package/resources/session-create.js.map +0 -1
  235. package/resources/session-create.mjs +0 -11
  236. package/resources/session-create.mjs.map +0 -1
  237. package/resources/session-initialize.d.mts +0 -19
  238. package/resources/session-initialize.d.mts.map +0 -1
  239. package/resources/session-initialize.d.ts +0 -19
  240. package/resources/session-initialize.d.ts.map +0 -1
  241. package/resources/session-initialize.js +0 -15
  242. package/resources/session-initialize.js.map +0 -1
  243. package/resources/session-initialize.mjs +0 -11
  244. package/resources/session-initialize.mjs.map +0 -1
  245. package/resources/session-list.d.mts +0 -15
  246. package/resources/session-list.d.mts.map +0 -1
  247. package/resources/session-list.d.ts +0 -15
  248. package/resources/session-list.d.ts.map +0 -1
  249. package/resources/session-list.js +0 -15
  250. package/resources/session-list.js.map +0 -1
  251. package/resources/session-list.mjs +0 -11
  252. package/resources/session-list.mjs.map +0 -1
  253. package/resources/session-messages.d.mts +0 -18
  254. package/resources/session-messages.d.mts.map +0 -1
  255. package/resources/session-messages.d.ts +0 -18
  256. package/resources/session-messages.d.ts.map +0 -1
  257. package/resources/session-messages.js +0 -15
  258. package/resources/session-messages.js.map +0 -1
  259. package/resources/session-messages.mjs +0 -11
  260. package/resources/session-messages.mjs.map +0 -1
  261. package/resources/session-share.d.mts +0 -17
  262. package/resources/session-share.d.mts.map +0 -1
  263. package/resources/session-share.d.ts +0 -17
  264. package/resources/session-share.d.ts.map +0 -1
  265. package/resources/session-share.js +0 -15
  266. package/resources/session-share.js.map +0 -1
  267. package/resources/session-share.mjs +0 -11
  268. package/resources/session-share.mjs.map +0 -1
  269. package/resources/session-summarize.d.mts +0 -19
  270. package/resources/session-summarize.d.mts.map +0 -1
  271. package/resources/session-summarize.d.ts +0 -19
  272. package/resources/session-summarize.d.ts.map +0 -1
  273. package/resources/session-summarize.js +0 -15
  274. package/resources/session-summarize.js.map +0 -1
  275. package/resources/session-summarize.mjs +0 -11
  276. package/resources/session-summarize.mjs.map +0 -1
  277. package/resources/session-unshare.d.mts +0 -17
  278. package/resources/session-unshare.d.mts.map +0 -1
  279. package/resources/session-unshare.d.ts +0 -17
  280. package/resources/session-unshare.d.ts.map +0 -1
  281. package/resources/session-unshare.js +0 -15
  282. package/resources/session-unshare.js.map +0 -1
  283. package/resources/session-unshare.mjs +0 -11
  284. package/resources/session-unshare.mjs.map +0 -1
  285. package/src/resources/app-info.ts +0 -46
  286. package/src/resources/app-initialize.ts +0 -20
  287. package/src/resources/config-get.ts +0 -294
  288. package/src/resources/file-search.ts +0 -27
  289. package/src/resources/installation-info.ts +0 -24
  290. package/src/resources/path-get.ts +0 -28
  291. package/src/resources/provider-list.ts +0 -80
  292. package/src/resources/session-abort.ts +0 -27
  293. package/src/resources/session-chat.ts +0 -250
  294. package/src/resources/session-create.ts +0 -44
  295. package/src/resources/session-initialize.ts +0 -34
  296. package/src/resources/session-list.ts +0 -21
  297. package/src/resources/session-messages.ts +0 -31
  298. package/src/resources/session-share.ts +0 -23
  299. package/src/resources/session-summarize.ts +0 -34
  300. package/src/resources/session-unshare.ts +0 -26
@@ -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.ConfigGet = void 0;
4
+ exports.ConfigResource = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
- class ConfigGet extends resource_1.APIResource {
6
+ class ConfigResource extends resource_1.APIResource {
7
7
  /**
8
8
  * Get config info
9
9
  */
10
- retrieve(options) {
11
- return this._client.post('/config_get', options);
10
+ get(options) {
11
+ return this._client.get('/config', options);
12
12
  }
13
13
  }
14
- exports.ConfigGet = ConfigGet;
15
- //# sourceMappingURL=config-get.js.map
14
+ exports.ConfigResource = ConfigResource;
15
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAM/C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wCAOC"}
@@ -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 ConfigGet extends APIResource {
3
+ export class ConfigResource extends APIResource {
4
4
  /**
5
5
  * Get config info
6
6
  */
7
- retrieve(options) {
8
- return this._client.post('/config_get', options);
7
+ get(options) {
8
+ return this._client.get('/config', options);
9
9
  }
10
10
  }
11
- //# sourceMappingURL=config-get.mjs.map
11
+ //# sourceMappingURL=config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.mjs","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
@@ -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.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessageRemoved | EventListResponse.EventMessagePartUpdated | EventListResponse.EventStorageWrite | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
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 EventInstallationUpdated {
55
+ properties: EventInstallationUpdated.Properties;
56
+ type: 'installation.updated';
57
+ }
58
+ namespace EventInstallationUpdated {
59
+ interface Properties {
60
+ version: string;
61
+ }
62
+ }
63
63
  interface EventMessageUpdated {
64
64
  properties: EventMessageUpdated.Properties;
65
65
  type: 'message.updated';
66
66
  }
67
67
  namespace EventMessageUpdated {
68
68
  interface Properties {
69
- info: SessionChatAPI.MessageInfo;
69
+ info: SessionAPI.Message;
70
+ }
71
+ }
72
+ interface EventMessageRemoved {
73
+ properties: EventMessageRemoved.Properties;
74
+ type: 'message.removed';
75
+ }
76
+ namespace EventMessageRemoved {
77
+ interface Properties {
78
+ messageID: string;
79
+ sessionID: string;
70
80
  }
71
81
  }
72
82
  interface EventMessagePartUpdated {
@@ -75,9 +85,17 @@ export declare namespace EventListResponse {
75
85
  }
76
86
  namespace EventMessagePartUpdated {
77
87
  interface Properties {
78
- messageID: string;
79
- part: SessionChatAPI.MessagePart;
80
- sessionID: string;
88
+ part: SessionAPI.Part;
89
+ }
90
+ }
91
+ interface EventStorageWrite {
92
+ properties: EventStorageWrite.Properties;
93
+ type: 'storage.write';
94
+ }
95
+ namespace EventStorageWrite {
96
+ interface Properties {
97
+ key: string;
98
+ content?: unknown;
81
99
  }
82
100
  }
83
101
  interface EventSessionUpdated {
@@ -86,7 +104,25 @@ export declare namespace EventListResponse {
86
104
  }
87
105
  namespace EventSessionUpdated {
88
106
  interface Properties {
89
- info: SessionCreateAPI.SessionInfo;
107
+ info: SessionAPI.Session;
108
+ }
109
+ }
110
+ interface EventSessionDeleted {
111
+ properties: EventSessionDeleted.Properties;
112
+ type: 'session.deleted';
113
+ }
114
+ namespace EventSessionDeleted {
115
+ interface Properties {
116
+ info: SessionAPI.Session;
117
+ }
118
+ }
119
+ interface EventSessionIdle {
120
+ properties: EventSessionIdle.Properties;
121
+ type: 'session.idle';
122
+ }
123
+ namespace EventSessionIdle {
124
+ interface Properties {
125
+ sessionID: string;
90
126
  }
91
127
  }
92
128
  interface EventSessionError {
@@ -95,7 +131,24 @@ export declare namespace EventListResponse {
95
131
  }
96
132
  namespace EventSessionError {
97
133
  interface Properties {
98
- error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
134
+ error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError | Shared.MessageAbortedError;
135
+ sessionID?: string;
136
+ }
137
+ namespace Properties {
138
+ interface MessageOutputLengthError {
139
+ data: unknown;
140
+ name: 'MessageOutputLengthError';
141
+ }
142
+ }
143
+ }
144
+ interface EventFileWatcherUpdated {
145
+ properties: EventFileWatcherUpdated.Properties;
146
+ type: 'file.watcher.updated';
147
+ }
148
+ namespace EventFileWatcherUpdated {
149
+ interface Properties {
150
+ event: 'rename' | 'change';
151
+ file: string;
99
152
  }
100
153
  }
101
154
  }
@@ -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,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,GAAG,EAAE,MAAM,CAAC;YAEZ,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB;KACF;IAED,UAAiB,wBAAwB;QACvC,UAAU,EAAE,wBAAwB,CAAC,UAAU,CAAC;QAEhD,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,wBAAwB,CAAC;QACxC,UAAiB,UAAU;YACzB,OAAO,EAAE,MAAM,CAAC;SACjB;KACF;IAED,UAAiB,yBAAyB;QACxC,UAAU,EAAE,yBAAy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AAE,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,EACF,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,YAAY,GACnB,UAAU,CAAC,wBAAwB,GACnC,MAAM,CAAC,mBAAmB,CAAC;YAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;IAED,UAAiB,uBAAuB;QACtC,UAAU,EAAE,uBAAuB,CAAC,UAAU,CAAC;QAE/C,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,UAAU;YACzB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;YAE3B,IAAI,EAAE,MAAM,CAAC;SACd;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.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessageRemoved | EventListResponse.EventMessagePartUpdated | EventListResponse.EventStorageWrite | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
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 EventInstallationUpdated {
55
+ properties: EventInstallationUpdated.Properties;
56
+ type: 'installation.updated';
57
+ }
58
+ namespace EventInstallationUpdated {
59
+ interface Properties {
60
+ version: string;
61
+ }
62
+ }
63
63
  interface EventMessageUpdated {
64
64
  properties: EventMessageUpdated.Properties;
65
65
  type: 'message.updated';
66
66
  }
67
67
  namespace EventMessageUpdated {
68
68
  interface Properties {
69
- info: SessionChatAPI.MessageInfo;
69
+ info: SessionAPI.Message;
70
+ }
71
+ }
72
+ interface EventMessageRemoved {
73
+ properties: EventMessageRemoved.Properties;
74
+ type: 'message.removed';
75
+ }
76
+ namespace EventMessageRemoved {
77
+ interface Properties {
78
+ messageID: string;
79
+ sessionID: string;
70
80
  }
71
81
  }
72
82
  interface EventMessagePartUpdated {
@@ -75,9 +85,17 @@ export declare namespace EventListResponse {
75
85
  }
76
86
  namespace EventMessagePartUpdated {
77
87
  interface Properties {
78
- messageID: string;
79
- part: SessionChatAPI.MessagePart;
80
- sessionID: string;
88
+ part: SessionAPI.Part;
89
+ }
90
+ }
91
+ interface EventStorageWrite {
92
+ properties: EventStorageWrite.Properties;
93
+ type: 'storage.write';
94
+ }
95
+ namespace EventStorageWrite {
96
+ interface Properties {
97
+ key: string;
98
+ content?: unknown;
81
99
  }
82
100
  }
83
101
  interface EventSessionUpdated {
@@ -86,7 +104,25 @@ export declare namespace EventListResponse {
86
104
  }
87
105
  namespace EventSessionUpdated {
88
106
  interface Properties {
89
- info: SessionCreateAPI.SessionInfo;
107
+ info: SessionAPI.Session;
108
+ }
109
+ }
110
+ interface EventSessionDeleted {
111
+ properties: EventSessionDeleted.Properties;
112
+ type: 'session.deleted';
113
+ }
114
+ namespace EventSessionDeleted {
115
+ interface Properties {
116
+ info: SessionAPI.Session;
117
+ }
118
+ }
119
+ interface EventSessionIdle {
120
+ properties: EventSessionIdle.Properties;
121
+ type: 'session.idle';
122
+ }
123
+ namespace EventSessionIdle {
124
+ interface Properties {
125
+ sessionID: string;
90
126
  }
91
127
  }
92
128
  interface EventSessionError {
@@ -95,7 +131,24 @@ export declare namespace EventListResponse {
95
131
  }
96
132
  namespace EventSessionError {
97
133
  interface Properties {
98
- error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
134
+ error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError | Shared.MessageAbortedError;
135
+ sessionID?: string;
136
+ }
137
+ namespace Properties {
138
+ interface MessageOutputLengthError {
139
+ data: unknown;
140
+ name: 'MessageOutputLengthError';
141
+ }
142
+ }
143
+ }
144
+ interface EventFileWatcherUpdated {
145
+ properties: EventFileWatcherUpdated.Properties;
146
+ type: 'file.watcher.updated';
147
+ }
148
+ namespace EventFileWatcherUpdated {
149
+ interface Properties {
150
+ event: 'rename' | 'change';
151
+ file: string;
99
152
  }
100
153
  }
101
154
  }
@@ -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,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,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,GAAG,EAAE,MAAM,CAAC;YAEZ,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB;KACF;IAED,UAAiB,wBAAwB;QACvC,UAAU,EAAE,wBAAwB,CAAC,UAAU,CAAC;QAEhD,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,U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AE,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,EACF,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,YAAY,GACnB,UAAU,CAAC,wBAAwB,GACnC,MAAM,CAAC,mBAAmB,CAAC;YAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;IAED,UAAiB,uBAAuB;QACtC,UAAU,EAAE,uBAAuB,CAAC,UAAU,CAAC;QAE/C,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,UAAU;YACzB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;YAE3B,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
@@ -8,7 +8,7 @@ class Event extends resource_1.APIResource {
8
8
  * Get 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,31 @@
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 FileResource extends APIResource {
5
+ /**
6
+ * Read a file
7
+ */
8
+ read(query: FileReadParams, options?: RequestOptions): APIPromise<FileReadResponse>;
9
+ /**
10
+ * Get file status
11
+ */
12
+ status(options?: RequestOptions): APIPromise<FileStatusResponse>;
13
+ }
14
+ export interface File {
15
+ added: number;
16
+ path: string;
17
+ removed: number;
18
+ status: 'added' | 'deleted' | 'modified';
19
+ }
20
+ export interface FileReadResponse {
21
+ content: string;
22
+ type: 'raw' | 'patch';
23
+ }
24
+ export type FileStatusResponse = Array<File>;
25
+ export interface FileReadParams {
26
+ path: string;
27
+ }
28
+ export declare namespace FileResource {
29
+ export { type File as File, type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
30
+ }
31
+ //# 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,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjE;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -0,0 +1,31 @@
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 FileResource extends APIResource {
5
+ /**
6
+ * Read a file
7
+ */
8
+ read(query: FileReadParams, options?: RequestOptions): APIPromise<FileReadResponse>;
9
+ /**
10
+ * Get file status
11
+ */
12
+ status(options?: RequestOptions): APIPromise<FileStatusResponse>;
13
+ }
14
+ export interface File {
15
+ added: number;
16
+ path: string;
17
+ removed: number;
18
+ status: 'added' | 'deleted' | 'modified';
19
+ }
20
+ export interface FileReadResponse {
21
+ content: string;
22
+ type: 'raw' | 'patch';
23
+ }
24
+ export type FileStatusResponse = Array<File>;
25
+ export interface FileReadParams {
26
+ path: string;
27
+ }
28
+ export declare namespace FileResource {
29
+ export { type File as File, type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
30
+ }
31
+ //# 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,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjE;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FileResource = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class FileResource extends resource_1.APIResource {
7
+ /**
8
+ * Read a file
9
+ */
10
+ read(query, options) {
11
+ return this._client.get('/file', { query, ...options });
12
+ }
13
+ /**
14
+ * Get file status
15
+ */
16
+ status(options) {
17
+ return this._client.get('/file/status', options);
18
+ }
19
+ }
20
+ exports.FileResource = FileResource;
21
+ //# 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,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAdD,oCAcC"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class FileResource extends APIResource {
4
+ /**
5
+ * Read a file
6
+ */
7
+ read(query, options) {
8
+ return this._client.get('/file', { query, ...options });
9
+ }
10
+ /**
11
+ * Get file status
12
+ */
13
+ status(options) {
14
+ return this._client.get('/file/status', options);
15
+ }
16
+ }
17
+ //# 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,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
@@ -0,0 +1,85 @@
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 Find extends APIResource {
5
+ /**
6
+ * Find files
7
+ */
8
+ files(query: FindFilesParams, options?: RequestOptions): APIPromise<FindFilesResponse>;
9
+ /**
10
+ * Find workspace symbols
11
+ */
12
+ symbols(query: FindSymbolsParams, options?: RequestOptions): APIPromise<FindSymbolsResponse>;
13
+ /**
14
+ * Find text in files
15
+ */
16
+ text(query: FindTextParams, options?: RequestOptions): APIPromise<FindTextResponse>;
17
+ }
18
+ export interface Match {
19
+ absolute_offset: number;
20
+ line_number: number;
21
+ lines: Match.Lines;
22
+ path: Match.Path;
23
+ submatches: Array<Match.Submatch>;
24
+ }
25
+ export declare namespace Match {
26
+ interface Lines {
27
+ text: string;
28
+ }
29
+ interface Path {
30
+ text: string;
31
+ }
32
+ interface Submatch {
33
+ end: number;
34
+ match: Submatch.Match;
35
+ start: number;
36
+ }
37
+ namespace Submatch {
38
+ interface Match {
39
+ text: string;
40
+ }
41
+ }
42
+ }
43
+ export interface Symbol {
44
+ kind: number;
45
+ location: Symbol.Location;
46
+ name: string;
47
+ }
48
+ export declare namespace Symbol {
49
+ interface Location {
50
+ range: Location.Range;
51
+ uri: string;
52
+ }
53
+ namespace Location {
54
+ interface Range {
55
+ end: Range.End;
56
+ start: Range.Start;
57
+ }
58
+ namespace Range {
59
+ interface End {
60
+ character: number;
61
+ line: number;
62
+ }
63
+ interface Start {
64
+ character: number;
65
+ line: number;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ export type FindFilesResponse = Array<string>;
71
+ export type FindSymbolsResponse = Array<Symbol>;
72
+ export type FindTextResponse = Array<Match>;
73
+ export interface FindFilesParams {
74
+ query: string;
75
+ }
76
+ export interface FindSymbolsParams {
77
+ query: string;
78
+ }
79
+ export interface FindTextParams {
80
+ pattern: string;
81
+ }
82
+ export declare namespace Find {
83
+ export { type Match as Match, type Symbol as Symbol, type FindFilesResponse as FindFilesResponse, type FindSymbolsResponse as FindSymbolsResponse, type FindTextResponse as FindTextResponse, type FindFilesParams as FindFilesParams, type FindSymbolsParams as FindSymbolsParams, type FindTextParams as FindTextParams, };
84
+ }
85
+ //# sourceMappingURL=find.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.d.mts","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI5F;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGpF;AAED,MAAM,WAAW,KAAK;IACpB,eAAe,EAAE,MAAM,CAAC;IAExB,WAAW,EAAE,MAAM,CAAC;IAEpB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;IAEnB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IAEjB,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;CACnC;AAED,yBAAiB,KAAK,CAAC;IACrB,UAAiB,KAAK;QACpB,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,IAAI;QACnB,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,QAAQ;QACvB,GAAG,EAAE,MAAM,CAAC;QAEZ,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC;QAEtB,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,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