@blaxel/core 0.2.49-dev.213 → 0.2.49-dev1

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 (243) hide show
  1. package/dist/agents/index.d.ts +15 -0
  2. package/dist/agents/index.js +109 -0
  3. package/dist/authentication/apikey.d.ts +10 -0
  4. package/dist/authentication/apikey.js +24 -0
  5. package/dist/authentication/clientcredentials.d.ts +17 -0
  6. package/dist/authentication/clientcredentials.js +85 -0
  7. package/dist/authentication/credentials.d.ts +6 -0
  8. package/dist/authentication/credentials.js +17 -0
  9. package/dist/authentication/deviceMode.d.ts +15 -0
  10. package/dist/authentication/deviceMode.js +70 -0
  11. package/dist/authentication/index.d.ts +3 -0
  12. package/dist/authentication/index.js +62 -0
  13. package/dist/authentication/types.d.ts +9 -0
  14. package/dist/authentication/types.js +2 -0
  15. package/dist/cache/index.d.ts +1 -0
  16. package/dist/cache/index.js +26 -0
  17. package/dist/cjs/.tsbuildinfo +1 -1
  18. package/dist/cjs/agents/index.js +2 -2
  19. package/dist/cjs/authentication/clientcredentials.js +1 -4
  20. package/dist/cjs/client/responseInterceptor.js +53 -0
  21. package/dist/cjs/client/sdk.gen.js +143 -3
  22. package/dist/cjs/common/autoload.js +7 -0
  23. package/dist/cjs/common/env.js +3 -0
  24. package/dist/cjs/common/internal.js +0 -40
  25. package/dist/cjs/common/settings.js +2 -5
  26. package/dist/cjs/common/version.js +6 -0
  27. package/dist/cjs/common/webhook.js +101 -0
  28. package/dist/cjs/jobs/executions.js +119 -0
  29. package/dist/cjs/jobs/jobs.js +2 -2
  30. package/dist/cjs/sandbox/action.js +2 -1
  31. package/dist/cjs/sandbox/index.js +1 -0
  32. package/dist/cjs/sandbox/interpreter.js +400 -0
  33. package/dist/cjs/sandbox/sandbox.js +10 -67
  34. package/dist/cjs/tools/mcpTool.js +2 -6
  35. package/dist/cjs/types/client/responseInterceptor.d.ts +12 -0
  36. package/dist/cjs/types/client/sdk.gen.d.ts +41 -1
  37. package/dist/cjs/types/client/types.gen.d.ts +599 -16
  38. package/dist/cjs/types/common/internal.d.ts +0 -2
  39. package/dist/cjs/types/common/settings.d.ts +0 -1
  40. package/dist/cjs/types/common/version.d.ts +2 -0
  41. package/dist/cjs/types/common/webhook.d.ts +89 -0
  42. package/dist/cjs/types/jobs/executions.d.ts +42 -0
  43. package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +1 -1
  44. package/dist/cjs/types/sandbox/index.d.ts +1 -0
  45. package/dist/cjs/types/sandbox/interpreter.d.ts +71 -0
  46. package/dist/cjs/types/sandbox/sandbox.d.ts +6 -12
  47. package/dist/cjs/types/sandbox/types.d.ts +0 -3
  48. package/dist/cjs-browser/.tsbuildinfo +1 -1
  49. package/dist/cjs-browser/agents/index.js +2 -2
  50. package/dist/cjs-browser/authentication/clientcredentials.js +1 -4
  51. package/dist/cjs-browser/client/responseInterceptor.js +53 -0
  52. package/dist/cjs-browser/client/sdk.gen.js +143 -3
  53. package/dist/cjs-browser/common/autoload.js +7 -0
  54. package/dist/cjs-browser/common/env.js +3 -0
  55. package/dist/cjs-browser/common/internal.js +0 -40
  56. package/dist/cjs-browser/common/settings.js +2 -5
  57. package/dist/cjs-browser/common/version.js +6 -0
  58. package/dist/cjs-browser/common/webhook.js +101 -0
  59. package/dist/cjs-browser/jobs/executions.js +119 -0
  60. package/dist/cjs-browser/jobs/jobs.js +2 -2
  61. package/dist/cjs-browser/sandbox/action.js +2 -1
  62. package/dist/cjs-browser/sandbox/index.js +1 -0
  63. package/dist/cjs-browser/sandbox/interpreter.js +400 -0
  64. package/dist/cjs-browser/sandbox/sandbox.js +10 -67
  65. package/dist/cjs-browser/tools/mcpTool.js +2 -6
  66. package/dist/cjs-browser/types/client/responseInterceptor.d.ts +12 -0
  67. package/dist/cjs-browser/types/client/sdk.gen.d.ts +41 -1
  68. package/dist/cjs-browser/types/client/types.gen.d.ts +599 -16
  69. package/dist/cjs-browser/types/common/internal.d.ts +0 -2
  70. package/dist/cjs-browser/types/common/settings.d.ts +0 -1
  71. package/dist/cjs-browser/types/common/version.d.ts +2 -0
  72. package/dist/cjs-browser/types/common/webhook.d.ts +89 -0
  73. package/dist/cjs-browser/types/jobs/executions.d.ts +42 -0
  74. package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +1 -1
  75. package/dist/cjs-browser/types/sandbox/index.d.ts +1 -0
  76. package/dist/cjs-browser/types/sandbox/interpreter.d.ts +71 -0
  77. package/dist/cjs-browser/types/sandbox/sandbox.d.ts +6 -12
  78. package/dist/cjs-browser/types/sandbox/types.d.ts +0 -3
  79. package/dist/client/authentication.d.ts +25 -0
  80. package/dist/client/authentication.js +15 -0
  81. package/dist/client/client.d.ts +2 -0
  82. package/dist/client/client.gen.d.ts +12 -0
  83. package/dist/client/client.gen.js +8 -0
  84. package/dist/{cjs/sandbox/websocket/index.js → client/client.js} +1 -1
  85. package/dist/client/index.d.ts +2 -0
  86. package/dist/client/index.js +19 -0
  87. package/dist/client/interceptors.d.ts +3 -0
  88. package/dist/client/interceptors.js +17 -0
  89. package/dist/client/sdk.gen.d.ts +499 -0
  90. package/dist/client/sdk.gen.js +1751 -0
  91. package/dist/client/types.gen.d.ts +4546 -0
  92. package/dist/client/types.gen.js +4 -0
  93. package/dist/common/autoload.d.ts +3 -0
  94. package/dist/common/autoload.js +27 -0
  95. package/dist/common/env.d.ts +5 -0
  96. package/dist/common/env.js +42 -0
  97. package/dist/common/errors.d.ts +1 -0
  98. package/dist/common/errors.js +17 -0
  99. package/dist/common/internal.d.ts +4 -0
  100. package/dist/common/internal.js +188 -0
  101. package/dist/common/internal.test.d.ts +1 -0
  102. package/dist/common/internal.test.js +39 -0
  103. package/dist/common/logger.d.ts +25 -0
  104. package/dist/common/logger.js +69 -0
  105. package/dist/common/node.d.ts +5 -0
  106. package/dist/common/node.js +26 -0
  107. package/dist/common/settings.d.ts +31 -0
  108. package/dist/common/settings.js +170 -0
  109. package/dist/esm/.tsbuildinfo +1 -1
  110. package/dist/esm/agents/index.js +3 -3
  111. package/dist/esm/authentication/clientcredentials.js +1 -4
  112. package/dist/esm/client/responseInterceptor.js +49 -0
  113. package/dist/esm/client/sdk.gen.js +132 -0
  114. package/dist/esm/common/autoload.js +7 -0
  115. package/dist/esm/common/env.js +3 -0
  116. package/dist/esm/common/internal.js +0 -38
  117. package/dist/esm/common/settings.js +2 -5
  118. package/dist/esm/common/version.js +3 -0
  119. package/dist/esm/common/webhook.js +97 -0
  120. package/dist/esm/jobs/executions.js +114 -0
  121. package/dist/esm/jobs/jobs.js +3 -3
  122. package/dist/esm/sandbox/action.js +3 -2
  123. package/dist/esm/sandbox/index.js +1 -0
  124. package/dist/esm/sandbox/interpreter.js +396 -0
  125. package/dist/esm/sandbox/sandbox.js +10 -67
  126. package/dist/esm/tools/mcpTool.js +3 -7
  127. package/dist/esm-browser/.tsbuildinfo +1 -1
  128. package/dist/esm-browser/agents/index.js +3 -3
  129. package/dist/esm-browser/authentication/clientcredentials.js +1 -4
  130. package/dist/esm-browser/client/responseInterceptor.js +49 -0
  131. package/dist/esm-browser/client/sdk.gen.js +132 -0
  132. package/dist/esm-browser/common/autoload.js +7 -0
  133. package/dist/esm-browser/common/env.js +3 -0
  134. package/dist/esm-browser/common/internal.js +0 -38
  135. package/dist/esm-browser/common/settings.js +2 -5
  136. package/dist/esm-browser/common/version.js +3 -0
  137. package/dist/esm-browser/common/webhook.js +97 -0
  138. package/dist/esm-browser/jobs/executions.js +114 -0
  139. package/dist/esm-browser/jobs/jobs.js +3 -3
  140. package/dist/esm-browser/sandbox/action.js +3 -2
  141. package/dist/esm-browser/sandbox/index.js +1 -0
  142. package/dist/esm-browser/sandbox/interpreter.js +396 -0
  143. package/dist/esm-browser/sandbox/sandbox.js +10 -67
  144. package/dist/esm-browser/tools/mcpTool.js +3 -7
  145. package/dist/index.browser.test.d.ts +1 -0
  146. package/dist/index.browser.test.js +45 -0
  147. package/dist/index.d.ts +17 -0
  148. package/dist/index.js +33 -0
  149. package/dist/jobs/index.d.ts +3 -0
  150. package/dist/jobs/index.js +19 -0
  151. package/dist/jobs/jobs.d.ts +13 -0
  152. package/dist/jobs/jobs.js +90 -0
  153. package/dist/jobs/start.d.ts +1 -0
  154. package/dist/jobs/start.js +66 -0
  155. package/dist/jobs/types.d.ts +3 -0
  156. package/dist/jobs/types.js +2 -0
  157. package/dist/mcp/client.d.ts +28 -0
  158. package/dist/mcp/client.js +247 -0
  159. package/dist/{cjs-browser/types/sandbox/websocket → mcp}/index.d.ts +1 -0
  160. package/dist/{cjs-browser/sandbox/websocket → mcp}/index.js +1 -0
  161. package/dist/mcp/server.d.ts +24 -0
  162. package/dist/mcp/server.js +213 -0
  163. package/dist/models/index.d.ts +8 -0
  164. package/dist/models/index.js +31 -0
  165. package/dist/sandbox/action.d.ts +19 -0
  166. package/dist/sandbox/action.js +84 -0
  167. package/dist/sandbox/client/client.gen.d.ts +12 -0
  168. package/dist/sandbox/client/client.gen.js +6 -0
  169. package/dist/sandbox/client/index.d.ts +2 -0
  170. package/dist/sandbox/client/index.js +19 -0
  171. package/dist/sandbox/client/sdk.gen.d.ts +101 -0
  172. package/dist/sandbox/client/sdk.gen.js +289 -0
  173. package/dist/sandbox/client/types.gen.d.ts +578 -0
  174. package/dist/sandbox/client/types.gen.js +3 -0
  175. package/dist/{cjs/types/sandbox/filesystem/filesystem-ws.d.ts → sandbox/filesystem/filesystem.d.ts} +6 -18
  176. package/dist/sandbox/filesystem/filesystem.js +276 -0
  177. package/dist/sandbox/filesystem/index.d.ts +2 -0
  178. package/dist/sandbox/filesystem/index.js +18 -0
  179. package/dist/sandbox/filesystem/types.d.ts +15 -0
  180. package/dist/sandbox/filesystem/types.js +2 -0
  181. package/dist/sandbox/index.d.ts +4 -0
  182. package/dist/sandbox/index.js +36 -0
  183. package/dist/sandbox/network/index.d.ts +1 -0
  184. package/dist/sandbox/network/index.js +17 -0
  185. package/dist/sandbox/network/network.d.ts +5 -0
  186. package/dist/sandbox/network/network.js +10 -0
  187. package/dist/sandbox/preview.d.ts +37 -0
  188. package/dist/sandbox/preview.js +148 -0
  189. package/dist/sandbox/process/index.d.ts +1 -0
  190. package/dist/sandbox/process/index.js +17 -0
  191. package/dist/sandbox/process/process.d.ts +24 -0
  192. package/dist/sandbox/process/process.js +189 -0
  193. package/dist/sandbox/sandbox.d.ts +33 -0
  194. package/dist/sandbox/sandbox.js +178 -0
  195. package/dist/sandbox/session.d.ts +27 -0
  196. package/dist/sandbox/session.js +123 -0
  197. package/dist/sandbox/types.d.ts +51 -0
  198. package/dist/sandbox/types.js +81 -0
  199. package/dist/telemetry/telemetry.d.ts +62 -0
  200. package/dist/telemetry/telemetry.js +80 -0
  201. package/dist/tools/index.d.ts +11 -0
  202. package/dist/tools/index.js +52 -0
  203. package/dist/tools/mcpTool.d.ts +28 -0
  204. package/dist/tools/mcpTool.js +218 -0
  205. package/dist/tools/types.d.ts +8 -0
  206. package/dist/tools/types.js +2 -0
  207. package/dist/tools/zodSchema.d.ts +9 -0
  208. package/dist/tools/zodSchema.js +50 -0
  209. package/dist/volume/index.d.ts +23 -0
  210. package/dist/volume/index.js +113 -0
  211. package/package.json +2 -2
  212. package/dist/cjs/sandbox/codegen/codegen-ws.js +0 -30
  213. package/dist/cjs/sandbox/filesystem/filesystem-ws.js +0 -106
  214. package/dist/cjs/sandbox/network/network-ws.js +0 -12
  215. package/dist/cjs/sandbox/process/process-ws.js +0 -139
  216. package/dist/cjs/sandbox/websocket/client.js +0 -269
  217. package/dist/cjs/types/sandbox/codegen/codegen-ws.d.ts +0 -10
  218. package/dist/cjs/types/sandbox/network/network-ws.d.ts +0 -7
  219. package/dist/cjs/types/sandbox/process/process-ws.d.ts +0 -27
  220. package/dist/cjs/types/sandbox/websocket/client.d.ts +0 -48
  221. package/dist/cjs/types/sandbox/websocket/index.d.ts +0 -1
  222. package/dist/cjs-browser/sandbox/codegen/codegen-ws.js +0 -30
  223. package/dist/cjs-browser/sandbox/filesystem/filesystem-ws.js +0 -106
  224. package/dist/cjs-browser/sandbox/network/network-ws.js +0 -12
  225. package/dist/cjs-browser/sandbox/process/process-ws.js +0 -139
  226. package/dist/cjs-browser/sandbox/websocket/client.js +0 -269
  227. package/dist/cjs-browser/types/sandbox/codegen/codegen-ws.d.ts +0 -10
  228. package/dist/cjs-browser/types/sandbox/filesystem/filesystem-ws.d.ts +0 -35
  229. package/dist/cjs-browser/types/sandbox/network/network-ws.d.ts +0 -7
  230. package/dist/cjs-browser/types/sandbox/process/process-ws.d.ts +0 -27
  231. package/dist/cjs-browser/types/sandbox/websocket/client.d.ts +0 -48
  232. package/dist/esm/sandbox/codegen/codegen-ws.js +0 -26
  233. package/dist/esm/sandbox/filesystem/filesystem-ws.js +0 -102
  234. package/dist/esm/sandbox/network/network-ws.js +0 -8
  235. package/dist/esm/sandbox/process/process-ws.js +0 -135
  236. package/dist/esm/sandbox/websocket/client.js +0 -265
  237. package/dist/esm/sandbox/websocket/index.js +0 -1
  238. package/dist/esm-browser/sandbox/codegen/codegen-ws.js +0 -26
  239. package/dist/esm-browser/sandbox/filesystem/filesystem-ws.js +0 -102
  240. package/dist/esm-browser/sandbox/network/network-ws.js +0 -8
  241. package/dist/esm-browser/sandbox/process/process-ws.js +0 -135
  242. package/dist/esm-browser/sandbox/websocket/client.js +0 -265
  243. package/dist/esm-browser/sandbox/websocket/index.js +0 -1
@@ -0,0 +1,289 @@
1
+ "use strict";
2
+ // This file is auto-generated by @hey-api/openapi-ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.getWsWatchFilesystemByPath = exports.getWsProcessByIdentifierLogsStream = exports.getWatchFilesystemByPath = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.deleteProcessByIdentifierKill = exports.getProcessByIdentifier = exports.deleteProcessByIdentifier = exports.postProcess = exports.getProcess = exports.getNetworkProcessByPidPorts = exports.postNetworkProcessByPidMonitor = exports.deleteNetworkProcessByPidMonitor = exports.putFilesystemByPath = exports.getFilesystemByPath = exports.deleteFilesystemByPath = void 0;
5
+ const client_gen_1 = require("./client.gen");
6
+ /**
7
+ * Delete file or directory
8
+ * Delete a file or directory
9
+ */
10
+ const deleteFilesystemByPath = (options) => {
11
+ return (options.client ?? client_gen_1.client).delete({
12
+ security: [
13
+ {
14
+ scheme: 'bearer',
15
+ type: 'http'
16
+ }
17
+ ],
18
+ url: '/filesystem/{path}',
19
+ ...options
20
+ });
21
+ };
22
+ exports.deleteFilesystemByPath = deleteFilesystemByPath;
23
+ /**
24
+ * Get file or directory information
25
+ * Get content of a file or listing of a directory
26
+ */
27
+ const getFilesystemByPath = (options) => {
28
+ return (options.client ?? client_gen_1.client).get({
29
+ security: [
30
+ {
31
+ scheme: 'bearer',
32
+ type: 'http'
33
+ }
34
+ ],
35
+ url: '/filesystem/{path}',
36
+ ...options
37
+ });
38
+ };
39
+ exports.getFilesystemByPath = getFilesystemByPath;
40
+ /**
41
+ * Create or update a file or directory
42
+ * Create or update a file or directory
43
+ */
44
+ const putFilesystemByPath = (options) => {
45
+ return (options.client ?? client_gen_1.client).put({
46
+ security: [
47
+ {
48
+ scheme: 'bearer',
49
+ type: 'http'
50
+ }
51
+ ],
52
+ url: '/filesystem/{path}',
53
+ ...options,
54
+ headers: {
55
+ 'Content-Type': 'application/json',
56
+ ...options?.headers
57
+ }
58
+ });
59
+ };
60
+ exports.putFilesystemByPath = putFilesystemByPath;
61
+ /**
62
+ * Stop monitoring ports for a process
63
+ * Stop monitoring for new ports opened by a process
64
+ */
65
+ const deleteNetworkProcessByPidMonitor = (options) => {
66
+ return (options.client ?? client_gen_1.client).delete({
67
+ security: [
68
+ {
69
+ scheme: 'bearer',
70
+ type: 'http'
71
+ }
72
+ ],
73
+ url: '/network/process/{pid}/monitor',
74
+ ...options
75
+ });
76
+ };
77
+ exports.deleteNetworkProcessByPidMonitor = deleteNetworkProcessByPidMonitor;
78
+ /**
79
+ * Start monitoring ports for a process
80
+ * Start monitoring for new ports opened by a process
81
+ */
82
+ const postNetworkProcessByPidMonitor = (options) => {
83
+ return (options.client ?? client_gen_1.client).post({
84
+ security: [
85
+ {
86
+ scheme: 'bearer',
87
+ type: 'http'
88
+ }
89
+ ],
90
+ url: '/network/process/{pid}/monitor',
91
+ ...options,
92
+ headers: {
93
+ 'Content-Type': 'application/json',
94
+ ...options?.headers
95
+ }
96
+ });
97
+ };
98
+ exports.postNetworkProcessByPidMonitor = postNetworkProcessByPidMonitor;
99
+ /**
100
+ * Get open ports for a process
101
+ * Get a list of all open ports for a process
102
+ */
103
+ const getNetworkProcessByPidPorts = (options) => {
104
+ return (options.client ?? client_gen_1.client).get({
105
+ security: [
106
+ {
107
+ scheme: 'bearer',
108
+ type: 'http'
109
+ }
110
+ ],
111
+ url: '/network/process/{pid}/ports',
112
+ ...options
113
+ });
114
+ };
115
+ exports.getNetworkProcessByPidPorts = getNetworkProcessByPidPorts;
116
+ /**
117
+ * List all processes
118
+ * Get a list of all running and completed processes
119
+ */
120
+ const getProcess = (options) => {
121
+ return (options?.client ?? client_gen_1.client).get({
122
+ security: [
123
+ {
124
+ scheme: 'bearer',
125
+ type: 'http'
126
+ }
127
+ ],
128
+ url: '/process',
129
+ ...options
130
+ });
131
+ };
132
+ exports.getProcess = getProcess;
133
+ /**
134
+ * Execute a command
135
+ * Execute a command and return process information
136
+ */
137
+ const postProcess = (options) => {
138
+ return (options.client ?? client_gen_1.client).post({
139
+ security: [
140
+ {
141
+ scheme: 'bearer',
142
+ type: 'http'
143
+ }
144
+ ],
145
+ url: '/process',
146
+ ...options,
147
+ headers: {
148
+ 'Content-Type': 'application/json',
149
+ ...options?.headers
150
+ }
151
+ });
152
+ };
153
+ exports.postProcess = postProcess;
154
+ /**
155
+ * Stop a process
156
+ * Gracefully stop a running process
157
+ */
158
+ const deleteProcessByIdentifier = (options) => {
159
+ return (options.client ?? client_gen_1.client).delete({
160
+ security: [
161
+ {
162
+ scheme: 'bearer',
163
+ type: 'http'
164
+ }
165
+ ],
166
+ url: '/process/{identifier}',
167
+ ...options
168
+ });
169
+ };
170
+ exports.deleteProcessByIdentifier = deleteProcessByIdentifier;
171
+ /**
172
+ * Get process by identifier
173
+ * Get information about a process by its PID or name
174
+ */
175
+ const getProcessByIdentifier = (options) => {
176
+ return (options.client ?? client_gen_1.client).get({
177
+ security: [
178
+ {
179
+ scheme: 'bearer',
180
+ type: 'http'
181
+ }
182
+ ],
183
+ url: '/process/{identifier}',
184
+ ...options
185
+ });
186
+ };
187
+ exports.getProcessByIdentifier = getProcessByIdentifier;
188
+ /**
189
+ * Kill a process
190
+ * Forcefully kill a running process
191
+ */
192
+ const deleteProcessByIdentifierKill = (options) => {
193
+ return (options.client ?? client_gen_1.client).delete({
194
+ security: [
195
+ {
196
+ scheme: 'bearer',
197
+ type: 'http'
198
+ }
199
+ ],
200
+ url: '/process/{identifier}/kill',
201
+ ...options
202
+ });
203
+ };
204
+ exports.deleteProcessByIdentifierKill = deleteProcessByIdentifierKill;
205
+ /**
206
+ * Get process logs
207
+ * Get the stdout and stderr output of a process
208
+ */
209
+ const getProcessByIdentifierLogs = (options) => {
210
+ return (options.client ?? client_gen_1.client).get({
211
+ security: [
212
+ {
213
+ scheme: 'bearer',
214
+ type: 'http'
215
+ }
216
+ ],
217
+ url: '/process/{identifier}/logs',
218
+ ...options
219
+ });
220
+ };
221
+ exports.getProcessByIdentifierLogs = getProcessByIdentifierLogs;
222
+ /**
223
+ * Stream process logs in real time
224
+ * Streams the stdout and stderr output of a process in real time, one line per log, prefixed with 'stdout:' or 'stderr:'. Closes when the process exits or the client disconnects.
225
+ */
226
+ const getProcessByIdentifierLogsStream = (options) => {
227
+ return (options.client ?? client_gen_1.client).get({
228
+ security: [
229
+ {
230
+ scheme: 'bearer',
231
+ type: 'http'
232
+ }
233
+ ],
234
+ url: '/process/{identifier}/logs/stream',
235
+ ...options
236
+ });
237
+ };
238
+ exports.getProcessByIdentifierLogsStream = getProcessByIdentifierLogsStream;
239
+ /**
240
+ * Stream file modification events in a directory
241
+ * Streams the path of modified files (one per line) in the given directory. Closes when the client disconnects.
242
+ */
243
+ const getWatchFilesystemByPath = (options) => {
244
+ return (options.client ?? client_gen_1.client).get({
245
+ security: [
246
+ {
247
+ scheme: 'bearer',
248
+ type: 'http'
249
+ }
250
+ ],
251
+ url: '/watch/filesystem/{path}',
252
+ ...options
253
+ });
254
+ };
255
+ exports.getWatchFilesystemByPath = getWatchFilesystemByPath;
256
+ /**
257
+ * Stream process logs in real time via WebSocket
258
+ * Streams the stdout and stderr output of a process in real time as JSON messages.
259
+ */
260
+ const getWsProcessByIdentifierLogsStream = (options) => {
261
+ return (options.client ?? client_gen_1.client).get({
262
+ security: [
263
+ {
264
+ scheme: 'bearer',
265
+ type: 'http'
266
+ }
267
+ ],
268
+ url: '/ws/process/{identifier}/logs/stream',
269
+ ...options
270
+ });
271
+ };
272
+ exports.getWsProcessByIdentifierLogsStream = getWsProcessByIdentifierLogsStream;
273
+ /**
274
+ * Stream file modification events in a directory via WebSocket
275
+ * Streams JSON events of modified files in the given directory. Closes when the client disconnects.
276
+ */
277
+ const getWsWatchFilesystemByPath = (options) => {
278
+ return (options.client ?? client_gen_1.client).get({
279
+ security: [
280
+ {
281
+ scheme: 'bearer',
282
+ type: 'http'
283
+ }
284
+ ],
285
+ url: '/ws/watch/filesystem/{path}',
286
+ ...options
287
+ });
288
+ };
289
+ exports.getWsWatchFilesystemByPath = getWsWatchFilesystemByPath;