@daytonaio/api-client 0.5.0 → 0.5.1

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 (58) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/toolbox-api.ts +1964 -0
  4. package/api.ts +1 -0
  5. package/dist/api/toolbox-api.d.ts +890 -0
  6. package/dist/api/toolbox-api.js +1839 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/esm/api/toolbox-api.d.ts +890 -0
  10. package/dist/esm/api/toolbox-api.js +1832 -0
  11. package/dist/esm/api.d.ts +1 -0
  12. package/dist/esm/api.js +1 -0
  13. package/dist/esm/models/execute-request-dto.d.ts +30 -0
  14. package/dist/esm/models/execute-request-dto.js +14 -0
  15. package/dist/esm/models/execute-response-dto.d.ts +30 -0
  16. package/dist/esm/models/execute-response-dto.js +14 -0
  17. package/dist/esm/models/git-add-request-dto.d.ts +30 -0
  18. package/dist/esm/models/git-add-request-dto.js +14 -0
  19. package/dist/esm/models/git-branch-request-dto.d.ts +30 -0
  20. package/dist/esm/models/git-branch-request-dto.js +14 -0
  21. package/dist/esm/models/git-clone-request-dto.d.ts +54 -0
  22. package/dist/esm/models/git-clone-request-dto.js +14 -0
  23. package/dist/esm/models/git-commit-request-dto.d.ts +42 -0
  24. package/dist/esm/models/git-commit-request-dto.js +14 -0
  25. package/dist/esm/models/git-repo-request-dto.d.ts +36 -0
  26. package/dist/esm/models/git-repo-request-dto.js +14 -0
  27. package/dist/esm/models/index.d.ts +8 -0
  28. package/dist/esm/models/index.js +8 -0
  29. package/dist/esm/models/replace-request-dto.d.ts +36 -0
  30. package/dist/esm/models/replace-request-dto.js +14 -0
  31. package/dist/models/execute-request-dto.d.ts +30 -0
  32. package/dist/models/execute-request-dto.js +15 -0
  33. package/dist/models/execute-response-dto.d.ts +30 -0
  34. package/dist/models/execute-response-dto.js +15 -0
  35. package/dist/models/git-add-request-dto.d.ts +30 -0
  36. package/dist/models/git-add-request-dto.js +15 -0
  37. package/dist/models/git-branch-request-dto.d.ts +30 -0
  38. package/dist/models/git-branch-request-dto.js +15 -0
  39. package/dist/models/git-clone-request-dto.d.ts +54 -0
  40. package/dist/models/git-clone-request-dto.js +15 -0
  41. package/dist/models/git-commit-request-dto.d.ts +42 -0
  42. package/dist/models/git-commit-request-dto.js +15 -0
  43. package/dist/models/git-repo-request-dto.d.ts +36 -0
  44. package/dist/models/git-repo-request-dto.js +15 -0
  45. package/dist/models/index.d.ts +8 -0
  46. package/dist/models/index.js +8 -0
  47. package/dist/models/replace-request-dto.d.ts +36 -0
  48. package/dist/models/replace-request-dto.js +15 -0
  49. package/models/execute-request-dto.ts +36 -0
  50. package/models/execute-response-dto.ts +36 -0
  51. package/models/git-add-request-dto.ts +36 -0
  52. package/models/git-branch-request-dto.ts +36 -0
  53. package/models/git-clone-request-dto.ts +60 -0
  54. package/models/git-commit-request-dto.ts +48 -0
  55. package/models/git-repo-request-dto.ts +42 -0
  56. package/models/index.ts +8 -0
  57. package/models/replace-request-dto.ts +42 -0
  58. package/package.json +1 -1
@@ -0,0 +1,890 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { ExecuteRequestDto } from '../models';
16
+ import type { ExecuteResponseDto } from '../models';
17
+ import type { GitAddRequestDto } from '../models';
18
+ import type { GitBranchRequestDto } from '../models';
19
+ import type { GitCloneRequestDto } from '../models';
20
+ import type { GitCommitRequestDto } from '../models';
21
+ import type { GitRepoRequestDto } from '../models';
22
+ import type { ReplaceRequestDto } from '../models';
23
+ /**
24
+ * ToolboxApi - axios parameter creator
25
+ * @export
26
+ */
27
+ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration) => {
28
+ /**
29
+ *
30
+ * @summary Get workspace project dir
31
+ * @param {string} workspaceId
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ getProjectDir: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ *
38
+ * @summary List files
39
+ * @param {string} workspaceId
40
+ * @param {string} [path]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ listFiles: (workspaceId: string, path?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * Create folder inside workspace
47
+ * @summary Create folder
48
+ * @param {string} workspaceId
49
+ * @param {string} path
50
+ * @param {string} mode
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ toolboxControllerCreateFolder: (workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * Delete file inside workspace
57
+ * @summary Delete file
58
+ * @param {string} workspaceId
59
+ * @param {string} path
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ toolboxControllerDeleteFile: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64
+ /**
65
+ * Download file from workspace
66
+ * @summary Download file
67
+ * @param {string} workspaceId
68
+ * @param {string} path
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ toolboxControllerDownloadFile: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
73
+ /**
74
+ * Execute command synchronously inside workspace
75
+ * @summary Execute command
76
+ * @param {string} workspaceId
77
+ * @param {ExecuteRequestDto} executeRequestDto
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ toolboxControllerExecuteCommand: (workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
82
+ /**
83
+ * Search for text/pattern inside workspace files
84
+ * @summary Search for text/pattern in files
85
+ * @param {string} workspaceId
86
+ * @param {string} path
87
+ * @param {string} pattern
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ toolboxControllerFindInFiles: (workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
92
+ /**
93
+ * Get file info inside workspace
94
+ * @summary Get file info
95
+ * @param {string} workspaceId
96
+ * @param {string} path
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ toolboxControllerGetFileInfo: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
+ /**
102
+ * Add files to git commit
103
+ * @summary Add files
104
+ * @param {string} workspaceId
105
+ * @param {GitAddRequestDto} gitAddRequestDto
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ toolboxControllerGitAddFiles: (workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
110
+ /**
111
+ * Get branch list from git repository
112
+ * @summary Get branch list
113
+ * @param {string} workspaceId
114
+ * @param {string} path
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ toolboxControllerGitBranchList: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
119
+ /**
120
+ * Clone git repository
121
+ * @summary Clone repository
122
+ * @param {string} workspaceId
123
+ * @param {GitCloneRequestDto} gitCloneRequestDto
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ toolboxControllerGitCloneRepository: (workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
128
+ /**
129
+ * Commit changes to git repository
130
+ * @summary Commit changes
131
+ * @param {string} workspaceId
132
+ * @param {GitCommitRequestDto} gitCommitRequestDto
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ toolboxControllerGitCommitChanges: (workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
137
+ /**
138
+ * Get commit history from git repository
139
+ * @summary Get commit history
140
+ * @param {string} workspaceId
141
+ * @param {string} path
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ toolboxControllerGitCommitHistory: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
146
+ /**
147
+ * Create branch on git repository
148
+ * @summary Create branch
149
+ * @param {string} workspaceId
150
+ * @param {GitBranchRequestDto} gitBranchRequestDto
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ toolboxControllerGitCreateBranch: (workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
155
+ /**
156
+ * Pull changes from remote
157
+ * @summary Pull changes
158
+ * @param {string} workspaceId
159
+ * @param {GitRepoRequestDto} gitRepoRequestDto
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ toolboxControllerGitPullChanges: (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
164
+ /**
165
+ * Push changes to remote
166
+ * @summary Push changes
167
+ * @param {string} workspaceId
168
+ * @param {GitRepoRequestDto} gitRepoRequestDto
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ toolboxControllerGitPushChanges: (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
173
+ /**
174
+ * Get status from git repository
175
+ * @summary Get git status
176
+ * @param {string} workspaceId
177
+ * @param {string} path
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ toolboxControllerGitStatus: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
182
+ /**
183
+ * Move file inside workspace
184
+ * @summary Move file
185
+ * @param {string} workspaceId
186
+ * @param {string} source
187
+ * @param {string} destination
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ toolboxControllerMoveFile: (workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
192
+ /**
193
+ * Replace text/pattern in multiple files inside workspace
194
+ * @summary Replace in files
195
+ * @param {string} workspaceId
196
+ * @param {ReplaceRequestDto} replaceRequestDto
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ toolboxControllerReplaceInFiles: (workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
201
+ /**
202
+ * Search for files inside workspace
203
+ * @summary Search files
204
+ * @param {string} workspaceId
205
+ * @param {string} path
206
+ * @param {string} pattern
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ toolboxControllerSearchFiles: (workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
211
+ /**
212
+ * Set file owner/group/permissions inside workspace
213
+ * @summary Set file permissions
214
+ * @param {string} workspaceId
215
+ * @param {string} path
216
+ * @param {string} owner
217
+ * @param {string} group
218
+ * @param {string} mode
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ toolboxControllerSetFilePermissions: (workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
223
+ /**
224
+ * Upload file inside workspace
225
+ * @summary Upload file
226
+ * @param {string} workspaceId
227
+ * @param {string} path
228
+ * @param {File} [file]
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ toolboxControllerUploadFile: (workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
233
+ };
234
+ /**
235
+ * ToolboxApi - functional programming interface
236
+ * @export
237
+ */
238
+ export declare const ToolboxApiFp: (configuration?: Configuration) => {
239
+ /**
240
+ *
241
+ * @summary Get workspace project dir
242
+ * @param {string} workspaceId
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
247
+ /**
248
+ *
249
+ * @summary List files
250
+ * @param {string} workspaceId
251
+ * @param {string} [path]
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
256
+ /**
257
+ * Create folder inside workspace
258
+ * @summary Create folder
259
+ * @param {string} workspaceId
260
+ * @param {string} path
261
+ * @param {string} mode
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ toolboxControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
266
+ /**
267
+ * Delete file inside workspace
268
+ * @summary Delete file
269
+ * @param {string} workspaceId
270
+ * @param {string} path
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ toolboxControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
275
+ /**
276
+ * Download file from workspace
277
+ * @summary Download file
278
+ * @param {string} workspaceId
279
+ * @param {string} path
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ toolboxControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
284
+ /**
285
+ * Execute command synchronously inside workspace
286
+ * @summary Execute command
287
+ * @param {string} workspaceId
288
+ * @param {ExecuteRequestDto} executeRequestDto
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ toolboxControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponseDto>>;
293
+ /**
294
+ * Search for text/pattern inside workspace files
295
+ * @summary Search for text/pattern in files
296
+ * @param {string} workspaceId
297
+ * @param {string} path
298
+ * @param {string} pattern
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ toolboxControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
303
+ /**
304
+ * Get file info inside workspace
305
+ * @summary Get file info
306
+ * @param {string} workspaceId
307
+ * @param {string} path
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ toolboxControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
312
+ /**
313
+ * Add files to git commit
314
+ * @summary Add files
315
+ * @param {string} workspaceId
316
+ * @param {GitAddRequestDto} gitAddRequestDto
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ toolboxControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
321
+ /**
322
+ * Get branch list from git repository
323
+ * @summary Get branch list
324
+ * @param {string} workspaceId
325
+ * @param {string} path
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ toolboxControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
330
+ /**
331
+ * Clone git repository
332
+ * @summary Clone repository
333
+ * @param {string} workspaceId
334
+ * @param {GitCloneRequestDto} gitCloneRequestDto
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ toolboxControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
339
+ /**
340
+ * Commit changes to git repository
341
+ * @summary Commit changes
342
+ * @param {string} workspaceId
343
+ * @param {GitCommitRequestDto} gitCommitRequestDto
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ toolboxControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
348
+ /**
349
+ * Get commit history from git repository
350
+ * @summary Get commit history
351
+ * @param {string} workspaceId
352
+ * @param {string} path
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ toolboxControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
357
+ /**
358
+ * Create branch on git repository
359
+ * @summary Create branch
360
+ * @param {string} workspaceId
361
+ * @param {GitBranchRequestDto} gitBranchRequestDto
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ toolboxControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
366
+ /**
367
+ * Pull changes from remote
368
+ * @summary Pull changes
369
+ * @param {string} workspaceId
370
+ * @param {GitRepoRequestDto} gitRepoRequestDto
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ toolboxControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
375
+ /**
376
+ * Push changes to remote
377
+ * @summary Push changes
378
+ * @param {string} workspaceId
379
+ * @param {GitRepoRequestDto} gitRepoRequestDto
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ toolboxControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
384
+ /**
385
+ * Get status from git repository
386
+ * @summary Get git status
387
+ * @param {string} workspaceId
388
+ * @param {string} path
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ toolboxControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
393
+ /**
394
+ * Move file inside workspace
395
+ * @summary Move file
396
+ * @param {string} workspaceId
397
+ * @param {string} source
398
+ * @param {string} destination
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ toolboxControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
403
+ /**
404
+ * Replace text/pattern in multiple files inside workspace
405
+ * @summary Replace in files
406
+ * @param {string} workspaceId
407
+ * @param {ReplaceRequestDto} replaceRequestDto
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ toolboxControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
412
+ /**
413
+ * Search for files inside workspace
414
+ * @summary Search files
415
+ * @param {string} workspaceId
416
+ * @param {string} path
417
+ * @param {string} pattern
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ toolboxControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
422
+ /**
423
+ * Set file owner/group/permissions inside workspace
424
+ * @summary Set file permissions
425
+ * @param {string} workspaceId
426
+ * @param {string} path
427
+ * @param {string} owner
428
+ * @param {string} group
429
+ * @param {string} mode
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ toolboxControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
434
+ /**
435
+ * Upload file inside workspace
436
+ * @summary Upload file
437
+ * @param {string} workspaceId
438
+ * @param {string} path
439
+ * @param {File} [file]
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ toolboxControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
444
+ };
445
+ /**
446
+ * ToolboxApi - factory interface
447
+ * @export
448
+ */
449
+ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
450
+ /**
451
+ *
452
+ * @summary Get workspace project dir
453
+ * @param {string} workspaceId
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ */
457
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
458
+ /**
459
+ *
460
+ * @summary List files
461
+ * @param {string} workspaceId
462
+ * @param {string} [path]
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
467
+ /**
468
+ * Create folder inside workspace
469
+ * @summary Create folder
470
+ * @param {string} workspaceId
471
+ * @param {string} path
472
+ * @param {string} mode
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ toolboxControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
477
+ /**
478
+ * Delete file inside workspace
479
+ * @summary Delete file
480
+ * @param {string} workspaceId
481
+ * @param {string} path
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ toolboxControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
486
+ /**
487
+ * Download file from workspace
488
+ * @summary Download file
489
+ * @param {string} workspaceId
490
+ * @param {string} path
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ toolboxControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
495
+ /**
496
+ * Execute command synchronously inside workspace
497
+ * @summary Execute command
498
+ * @param {string} workspaceId
499
+ * @param {ExecuteRequestDto} executeRequestDto
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ toolboxControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponseDto>;
504
+ /**
505
+ * Search for text/pattern inside workspace files
506
+ * @summary Search for text/pattern in files
507
+ * @param {string} workspaceId
508
+ * @param {string} path
509
+ * @param {string} pattern
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ toolboxControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
514
+ /**
515
+ * Get file info inside workspace
516
+ * @summary Get file info
517
+ * @param {string} workspaceId
518
+ * @param {string} path
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ toolboxControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
523
+ /**
524
+ * Add files to git commit
525
+ * @summary Add files
526
+ * @param {string} workspaceId
527
+ * @param {GitAddRequestDto} gitAddRequestDto
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ toolboxControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
532
+ /**
533
+ * Get branch list from git repository
534
+ * @summary Get branch list
535
+ * @param {string} workspaceId
536
+ * @param {string} path
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ toolboxControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
541
+ /**
542
+ * Clone git repository
543
+ * @summary Clone repository
544
+ * @param {string} workspaceId
545
+ * @param {GitCloneRequestDto} gitCloneRequestDto
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ toolboxControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
550
+ /**
551
+ * Commit changes to git repository
552
+ * @summary Commit changes
553
+ * @param {string} workspaceId
554
+ * @param {GitCommitRequestDto} gitCommitRequestDto
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ toolboxControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
559
+ /**
560
+ * Get commit history from git repository
561
+ * @summary Get commit history
562
+ * @param {string} workspaceId
563
+ * @param {string} path
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ toolboxControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
568
+ /**
569
+ * Create branch on git repository
570
+ * @summary Create branch
571
+ * @param {string} workspaceId
572
+ * @param {GitBranchRequestDto} gitBranchRequestDto
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ toolboxControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
577
+ /**
578
+ * Pull changes from remote
579
+ * @summary Pull changes
580
+ * @param {string} workspaceId
581
+ * @param {GitRepoRequestDto} gitRepoRequestDto
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ toolboxControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
586
+ /**
587
+ * Push changes to remote
588
+ * @summary Push changes
589
+ * @param {string} workspaceId
590
+ * @param {GitRepoRequestDto} gitRepoRequestDto
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ toolboxControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
595
+ /**
596
+ * Get status from git repository
597
+ * @summary Get git status
598
+ * @param {string} workspaceId
599
+ * @param {string} path
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ toolboxControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
604
+ /**
605
+ * Move file inside workspace
606
+ * @summary Move file
607
+ * @param {string} workspaceId
608
+ * @param {string} source
609
+ * @param {string} destination
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ */
613
+ toolboxControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
614
+ /**
615
+ * Replace text/pattern in multiple files inside workspace
616
+ * @summary Replace in files
617
+ * @param {string} workspaceId
618
+ * @param {ReplaceRequestDto} replaceRequestDto
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ toolboxControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
623
+ /**
624
+ * Search for files inside workspace
625
+ * @summary Search files
626
+ * @param {string} workspaceId
627
+ * @param {string} path
628
+ * @param {string} pattern
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ toolboxControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
633
+ /**
634
+ * Set file owner/group/permissions inside workspace
635
+ * @summary Set file permissions
636
+ * @param {string} workspaceId
637
+ * @param {string} path
638
+ * @param {string} owner
639
+ * @param {string} group
640
+ * @param {string} mode
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ toolboxControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
645
+ /**
646
+ * Upload file inside workspace
647
+ * @summary Upload file
648
+ * @param {string} workspaceId
649
+ * @param {string} path
650
+ * @param {File} [file]
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ toolboxControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise<void>;
655
+ };
656
+ /**
657
+ * ToolboxApi - object-oriented interface
658
+ * @export
659
+ * @class ToolboxApi
660
+ * @extends {BaseAPI}
661
+ */
662
+ export declare class ToolboxApi extends BaseAPI {
663
+ /**
664
+ *
665
+ * @summary Get workspace project dir
666
+ * @param {string} workspaceId
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ * @memberof ToolboxApi
670
+ */
671
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
672
+ /**
673
+ *
674
+ * @summary List files
675
+ * @param {string} workspaceId
676
+ * @param {string} [path]
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ * @memberof ToolboxApi
680
+ */
681
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
682
+ /**
683
+ * Create folder inside workspace
684
+ * @summary Create folder
685
+ * @param {string} workspaceId
686
+ * @param {string} path
687
+ * @param {string} mode
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ * @memberof ToolboxApi
691
+ */
692
+ toolboxControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
693
+ /**
694
+ * Delete file inside workspace
695
+ * @summary Delete file
696
+ * @param {string} workspaceId
697
+ * @param {string} path
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ * @memberof ToolboxApi
701
+ */
702
+ toolboxControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
703
+ /**
704
+ * Download file from workspace
705
+ * @summary Download file
706
+ * @param {string} workspaceId
707
+ * @param {string} path
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ * @memberof ToolboxApi
711
+ */
712
+ toolboxControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
713
+ /**
714
+ * Execute command synchronously inside workspace
715
+ * @summary Execute command
716
+ * @param {string} workspaceId
717
+ * @param {ExecuteRequestDto} executeRequestDto
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ * @memberof ToolboxApi
721
+ */
722
+ toolboxControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteResponseDto, any>>;
723
+ /**
724
+ * Search for text/pattern inside workspace files
725
+ * @summary Search for text/pattern in files
726
+ * @param {string} workspaceId
727
+ * @param {string} path
728
+ * @param {string} pattern
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof ToolboxApi
732
+ */
733
+ toolboxControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
734
+ /**
735
+ * Get file info inside workspace
736
+ * @summary Get file info
737
+ * @param {string} workspaceId
738
+ * @param {string} path
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ * @memberof ToolboxApi
742
+ */
743
+ toolboxControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
744
+ /**
745
+ * Add files to git commit
746
+ * @summary Add files
747
+ * @param {string} workspaceId
748
+ * @param {GitAddRequestDto} gitAddRequestDto
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ * @memberof ToolboxApi
752
+ */
753
+ toolboxControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
754
+ /**
755
+ * Get branch list from git repository
756
+ * @summary Get branch list
757
+ * @param {string} workspaceId
758
+ * @param {string} path
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ * @memberof ToolboxApi
762
+ */
763
+ toolboxControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
764
+ /**
765
+ * Clone git repository
766
+ * @summary Clone repository
767
+ * @param {string} workspaceId
768
+ * @param {GitCloneRequestDto} gitCloneRequestDto
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ * @memberof ToolboxApi
772
+ */
773
+ toolboxControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
774
+ /**
775
+ * Commit changes to git repository
776
+ * @summary Commit changes
777
+ * @param {string} workspaceId
778
+ * @param {GitCommitRequestDto} gitCommitRequestDto
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ * @memberof ToolboxApi
782
+ */
783
+ toolboxControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
784
+ /**
785
+ * Get commit history from git repository
786
+ * @summary Get commit history
787
+ * @param {string} workspaceId
788
+ * @param {string} path
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ * @memberof ToolboxApi
792
+ */
793
+ toolboxControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
794
+ /**
795
+ * Create branch on git repository
796
+ * @summary Create branch
797
+ * @param {string} workspaceId
798
+ * @param {GitBranchRequestDto} gitBranchRequestDto
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ * @memberof ToolboxApi
802
+ */
803
+ toolboxControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
804
+ /**
805
+ * Pull changes from remote
806
+ * @summary Pull changes
807
+ * @param {string} workspaceId
808
+ * @param {GitRepoRequestDto} gitRepoRequestDto
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ * @memberof ToolboxApi
812
+ */
813
+ toolboxControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
814
+ /**
815
+ * Push changes to remote
816
+ * @summary Push changes
817
+ * @param {string} workspaceId
818
+ * @param {GitRepoRequestDto} gitRepoRequestDto
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ * @memberof ToolboxApi
822
+ */
823
+ toolboxControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
824
+ /**
825
+ * Get status from git repository
826
+ * @summary Get git status
827
+ * @param {string} workspaceId
828
+ * @param {string} path
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ * @memberof ToolboxApi
832
+ */
833
+ toolboxControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
834
+ /**
835
+ * Move file inside workspace
836
+ * @summary Move file
837
+ * @param {string} workspaceId
838
+ * @param {string} source
839
+ * @param {string} destination
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ * @memberof ToolboxApi
843
+ */
844
+ toolboxControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
845
+ /**
846
+ * Replace text/pattern in multiple files inside workspace
847
+ * @summary Replace in files
848
+ * @param {string} workspaceId
849
+ * @param {ReplaceRequestDto} replaceRequestDto
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ * @memberof ToolboxApi
853
+ */
854
+ toolboxControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
855
+ /**
856
+ * Search for files inside workspace
857
+ * @summary Search files
858
+ * @param {string} workspaceId
859
+ * @param {string} path
860
+ * @param {string} pattern
861
+ * @param {*} [options] Override http request option.
862
+ * @throws {RequiredError}
863
+ * @memberof ToolboxApi
864
+ */
865
+ toolboxControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
866
+ /**
867
+ * Set file owner/group/permissions inside workspace
868
+ * @summary Set file permissions
869
+ * @param {string} workspaceId
870
+ * @param {string} path
871
+ * @param {string} owner
872
+ * @param {string} group
873
+ * @param {string} mode
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ * @memberof ToolboxApi
877
+ */
878
+ toolboxControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
879
+ /**
880
+ * Upload file inside workspace
881
+ * @summary Upload file
882
+ * @param {string} workspaceId
883
+ * @param {string} path
884
+ * @param {File} [file]
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ * @memberof ToolboxApi
888
+ */
889
+ toolboxControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
890
+ }