@daytonaio/api-client 0.5.0 → 0.5.2

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
+ * Create folder inside workspace
30
+ * @summary Create folder
31
+ * @param {string} workspaceId
32
+ * @param {string} path
33
+ * @param {string} mode
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ createFolder: (workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * Delete file inside workspace
40
+ * @summary Delete file
41
+ * @param {string} workspaceId
42
+ * @param {string} path
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ deleteFile: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
+ /**
48
+ * Download file from workspace
49
+ * @summary Download file
50
+ * @param {string} workspaceId
51
+ * @param {string} path
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ downloadFile: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ * Execute command synchronously inside workspace
58
+ * @summary Execute command
59
+ * @param {string} workspaceId
60
+ * @param {ExecuteRequestDto} executeRequestDto
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ executeCommand: (workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
+ /**
66
+ * Search for text/pattern inside workspace files
67
+ * @summary Search for text/pattern in files
68
+ * @param {string} workspaceId
69
+ * @param {string} path
70
+ * @param {string} pattern
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ findInFiles: (workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
75
+ /**
76
+ * Get file info inside workspace
77
+ * @summary Get file info
78
+ * @param {string} workspaceId
79
+ * @param {string} path
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ getFileInfo: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
84
+ /**
85
+ *
86
+ * @summary Get workspace project dir
87
+ * @param {string} workspaceId
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ getProjectDir: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
92
+ /**
93
+ * Add files to git commit
94
+ * @summary Add files
95
+ * @param {string} workspaceId
96
+ * @param {GitAddRequestDto} gitAddRequestDto
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ gitAddFiles: (workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
+ /**
102
+ * Clone git repository
103
+ * @summary Clone repository
104
+ * @param {string} workspaceId
105
+ * @param {GitCloneRequestDto} gitCloneRequestDto
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ gitCloneRepository: (workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
110
+ /**
111
+ * Commit changes to git repository
112
+ * @summary Commit changes
113
+ * @param {string} workspaceId
114
+ * @param {GitCommitRequestDto} gitCommitRequestDto
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ gitCommitChanges: (workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
119
+ /**
120
+ * Create branch on git repository
121
+ * @summary Create branch
122
+ * @param {string} workspaceId
123
+ * @param {GitBranchRequestDto} gitBranchRequestDto
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ gitCreateBranch: (workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
128
+ /**
129
+ * Get commit history from git repository
130
+ * @summary Get commit history
131
+ * @param {string} workspaceId
132
+ * @param {string} path
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ gitGetHistory: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
137
+ /**
138
+ * Get status from git repository
139
+ * @summary Get git status
140
+ * @param {string} workspaceId
141
+ * @param {string} path
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ gitGetStatus: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
146
+ /**
147
+ * Get branch list from git repository
148
+ * @summary Get branch list
149
+ * @param {string} workspaceId
150
+ * @param {string} path
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ gitListBranches: (workspaceId: string, path: string, 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
+ gitPullChanges: (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
+ gitPushChanges: (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
173
+ /**
174
+ *
175
+ * @summary List files
176
+ * @param {string} workspaceId
177
+ * @param {string} [path]
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ listFiles: (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
+ moveFile: (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
+ replaceInFiles: (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
+ searchFiles: (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
+ setFilePermissions: (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
+ uploadFile: (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
+ * Create folder inside workspace
241
+ * @summary Create folder
242
+ * @param {string} workspaceId
243
+ * @param {string} path
244
+ * @param {string} mode
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
249
+ /**
250
+ * Delete file inside workspace
251
+ * @summary Delete file
252
+ * @param {string} workspaceId
253
+ * @param {string} path
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
258
+ /**
259
+ * Download file from workspace
260
+ * @summary Download file
261
+ * @param {string} workspaceId
262
+ * @param {string} path
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
267
+ /**
268
+ * Execute command synchronously inside workspace
269
+ * @summary Execute command
270
+ * @param {string} workspaceId
271
+ * @param {ExecuteRequestDto} executeRequestDto
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ executeCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponseDto>>;
276
+ /**
277
+ * Search for text/pattern inside workspace files
278
+ * @summary Search for text/pattern in files
279
+ * @param {string} workspaceId
280
+ * @param {string} path
281
+ * @param {string} pattern
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
286
+ /**
287
+ * Get file info inside workspace
288
+ * @summary Get file info
289
+ * @param {string} workspaceId
290
+ * @param {string} path
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
295
+ /**
296
+ *
297
+ * @summary Get workspace project dir
298
+ * @param {string} workspaceId
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
303
+ /**
304
+ * Add files to git commit
305
+ * @summary Add files
306
+ * @param {string} workspaceId
307
+ * @param {GitAddRequestDto} gitAddRequestDto
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ gitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
312
+ /**
313
+ * Clone git repository
314
+ * @summary Clone repository
315
+ * @param {string} workspaceId
316
+ * @param {GitCloneRequestDto} gitCloneRequestDto
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ gitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
321
+ /**
322
+ * Commit changes to git repository
323
+ * @summary Commit changes
324
+ * @param {string} workspaceId
325
+ * @param {GitCommitRequestDto} gitCommitRequestDto
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ gitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
330
+ /**
331
+ * Create branch on git repository
332
+ * @summary Create branch
333
+ * @param {string} workspaceId
334
+ * @param {GitBranchRequestDto} gitBranchRequestDto
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ gitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
339
+ /**
340
+ * Get commit history from git repository
341
+ * @summary Get commit history
342
+ * @param {string} workspaceId
343
+ * @param {string} path
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
348
+ /**
349
+ * Get status from git repository
350
+ * @summary Get git status
351
+ * @param {string} workspaceId
352
+ * @param {string} path
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
357
+ /**
358
+ * Get branch list from git repository
359
+ * @summary Get branch list
360
+ * @param {string} workspaceId
361
+ * @param {string} path
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ gitListBranches(workspaceId: string, path: string, 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
+ gitPullChanges(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
+ gitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
384
+ /**
385
+ *
386
+ * @summary List files
387
+ * @param {string} workspaceId
388
+ * @param {string} [path]
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ listFiles(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
+ moveFile(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
+ replaceInFiles(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
+ searchFiles(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
+ setFilePermissions(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
+ uploadFile(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
+ * Create folder inside workspace
452
+ * @summary Create folder
453
+ * @param {string} workspaceId
454
+ * @param {string} path
455
+ * @param {string} mode
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
460
+ /**
461
+ * Delete file inside workspace
462
+ * @summary Delete file
463
+ * @param {string} workspaceId
464
+ * @param {string} path
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
469
+ /**
470
+ * Download file from workspace
471
+ * @summary Download file
472
+ * @param {string} workspaceId
473
+ * @param {string} path
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
478
+ /**
479
+ * Execute command synchronously inside workspace
480
+ * @summary Execute command
481
+ * @param {string} workspaceId
482
+ * @param {ExecuteRequestDto} executeRequestDto
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ executeCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponseDto>;
487
+ /**
488
+ * Search for text/pattern inside workspace files
489
+ * @summary Search for text/pattern in files
490
+ * @param {string} workspaceId
491
+ * @param {string} path
492
+ * @param {string} pattern
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
497
+ /**
498
+ * Get file info inside workspace
499
+ * @summary Get file info
500
+ * @param {string} workspaceId
501
+ * @param {string} path
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
506
+ /**
507
+ *
508
+ * @summary Get workspace project dir
509
+ * @param {string} workspaceId
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
514
+ /**
515
+ * Add files to git commit
516
+ * @summary Add files
517
+ * @param {string} workspaceId
518
+ * @param {GitAddRequestDto} gitAddRequestDto
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ gitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
523
+ /**
524
+ * Clone git repository
525
+ * @summary Clone repository
526
+ * @param {string} workspaceId
527
+ * @param {GitCloneRequestDto} gitCloneRequestDto
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ gitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
532
+ /**
533
+ * Commit changes to git repository
534
+ * @summary Commit changes
535
+ * @param {string} workspaceId
536
+ * @param {GitCommitRequestDto} gitCommitRequestDto
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ gitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
541
+ /**
542
+ * Create branch on git repository
543
+ * @summary Create branch
544
+ * @param {string} workspaceId
545
+ * @param {GitBranchRequestDto} gitBranchRequestDto
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ gitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
550
+ /**
551
+ * Get commit history from git repository
552
+ * @summary Get commit history
553
+ * @param {string} workspaceId
554
+ * @param {string} path
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
559
+ /**
560
+ * Get status from git repository
561
+ * @summary Get git status
562
+ * @param {string} workspaceId
563
+ * @param {string} path
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
568
+ /**
569
+ * Get branch list from git repository
570
+ * @summary Get branch list
571
+ * @param {string} workspaceId
572
+ * @param {string} path
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ gitListBranches(workspaceId: string, path: string, 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
+ gitPullChanges(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
+ gitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
595
+ /**
596
+ *
597
+ * @summary List files
598
+ * @param {string} workspaceId
599
+ * @param {string} [path]
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ listFiles(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
+ moveFile(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
+ replaceInFiles(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
+ searchFiles(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
+ setFilePermissions(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
+ uploadFile(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
+ * Create folder inside workspace
665
+ * @summary Create folder
666
+ * @param {string} workspaceId
667
+ * @param {string} path
668
+ * @param {string} mode
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ * @memberof ToolboxApi
672
+ */
673
+ createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
674
+ /**
675
+ * Delete file inside workspace
676
+ * @summary Delete file
677
+ * @param {string} workspaceId
678
+ * @param {string} path
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ * @memberof ToolboxApi
682
+ */
683
+ deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
684
+ /**
685
+ * Download file from workspace
686
+ * @summary Download file
687
+ * @param {string} workspaceId
688
+ * @param {string} path
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ * @memberof ToolboxApi
692
+ */
693
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
694
+ /**
695
+ * Execute command synchronously inside workspace
696
+ * @summary Execute command
697
+ * @param {string} workspaceId
698
+ * @param {ExecuteRequestDto} executeRequestDto
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ * @memberof ToolboxApi
702
+ */
703
+ executeCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteResponseDto, any>>;
704
+ /**
705
+ * Search for text/pattern inside workspace files
706
+ * @summary Search for text/pattern in files
707
+ * @param {string} workspaceId
708
+ * @param {string} path
709
+ * @param {string} pattern
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ * @memberof ToolboxApi
713
+ */
714
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
715
+ /**
716
+ * Get file info inside workspace
717
+ * @summary Get file info
718
+ * @param {string} workspaceId
719
+ * @param {string} path
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ * @memberof ToolboxApi
723
+ */
724
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
725
+ /**
726
+ *
727
+ * @summary Get workspace project dir
728
+ * @param {string} workspaceId
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof ToolboxApi
732
+ */
733
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
734
+ /**
735
+ * Add files to git commit
736
+ * @summary Add files
737
+ * @param {string} workspaceId
738
+ * @param {GitAddRequestDto} gitAddRequestDto
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ * @memberof ToolboxApi
742
+ */
743
+ gitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
744
+ /**
745
+ * Clone git repository
746
+ * @summary Clone repository
747
+ * @param {string} workspaceId
748
+ * @param {GitCloneRequestDto} gitCloneRequestDto
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ * @memberof ToolboxApi
752
+ */
753
+ gitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
754
+ /**
755
+ * Commit changes to git repository
756
+ * @summary Commit changes
757
+ * @param {string} workspaceId
758
+ * @param {GitCommitRequestDto} gitCommitRequestDto
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ * @memberof ToolboxApi
762
+ */
763
+ gitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
764
+ /**
765
+ * Create branch on git repository
766
+ * @summary Create branch
767
+ * @param {string} workspaceId
768
+ * @param {GitBranchRequestDto} gitBranchRequestDto
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ * @memberof ToolboxApi
772
+ */
773
+ gitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
774
+ /**
775
+ * Get commit history from git repository
776
+ * @summary Get commit history
777
+ * @param {string} workspaceId
778
+ * @param {string} path
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ * @memberof ToolboxApi
782
+ */
783
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
784
+ /**
785
+ * Get status from git repository
786
+ * @summary Get git status
787
+ * @param {string} workspaceId
788
+ * @param {string} path
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ * @memberof ToolboxApi
792
+ */
793
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
794
+ /**
795
+ * Get branch list from git repository
796
+ * @summary Get branch list
797
+ * @param {string} workspaceId
798
+ * @param {string} path
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ * @memberof ToolboxApi
802
+ */
803
+ gitListBranches(workspaceId: string, path: string, 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
+ gitPullChanges(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
+ gitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
824
+ /**
825
+ *
826
+ * @summary List files
827
+ * @param {string} workspaceId
828
+ * @param {string} [path]
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ * @memberof ToolboxApi
832
+ */
833
+ listFiles(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
+ moveFile(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
+ replaceInFiles(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
+ searchFiles(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
+ setFilePermissions(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
+ uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
890
+ }