@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,1964 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { ExecuteRequestDto } from '../models';
26
+ // @ts-ignore
27
+ import type { ExecuteResponseDto } from '../models';
28
+ // @ts-ignore
29
+ import type { GitAddRequestDto } from '../models';
30
+ // @ts-ignore
31
+ import type { GitBranchRequestDto } from '../models';
32
+ // @ts-ignore
33
+ import type { GitCloneRequestDto } from '../models';
34
+ // @ts-ignore
35
+ import type { GitCommitRequestDto } from '../models';
36
+ // @ts-ignore
37
+ import type { GitRepoRequestDto } from '../models';
38
+ // @ts-ignore
39
+ import type { ReplaceRequestDto } from '../models';
40
+ /**
41
+ * ToolboxApi - axios parameter creator
42
+ * @export
43
+ */
44
+ export const ToolboxApiAxiosParamCreator = function (configuration?: Configuration) {
45
+ return {
46
+ /**
47
+ * Create folder inside workspace
48
+ * @summary Create folder
49
+ * @param {string} workspaceId
50
+ * @param {string} path
51
+ * @param {string} mode
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ createFolder: async (workspaceId: string, path: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
56
+ // verify required parameter 'workspaceId' is not null or undefined
57
+ assertParamExists('createFolder', 'workspaceId', workspaceId)
58
+ // verify required parameter 'path' is not null or undefined
59
+ assertParamExists('createFolder', 'path', path)
60
+ // verify required parameter 'mode' is not null or undefined
61
+ assertParamExists('createFolder', 'mode', mode)
62
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/folder`
63
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
64
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
66
+ let baseOptions;
67
+ if (configuration) {
68
+ baseOptions = configuration.baseOptions;
69
+ }
70
+
71
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72
+ const localVarHeaderParameter = {} as any;
73
+ const localVarQueryParameter = {} as any;
74
+
75
+ // authentication oauth2 required
76
+ // oauth required
77
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
78
+
79
+ if (path !== undefined) {
80
+ localVarQueryParameter['path'] = path;
81
+ }
82
+
83
+ if (mode !== undefined) {
84
+ localVarQueryParameter['mode'] = mode;
85
+ }
86
+
87
+
88
+
89
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
90
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
91
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
98
+ /**
99
+ * Delete file inside workspace
100
+ * @summary Delete file
101
+ * @param {string} workspaceId
102
+ * @param {string} path
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ deleteFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'workspaceId' is not null or undefined
108
+ assertParamExists('deleteFile', 'workspaceId', workspaceId)
109
+ // verify required parameter 'path' is not null or undefined
110
+ assertParamExists('deleteFile', 'path', path)
111
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
112
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+ // authentication oauth2 required
125
+ // oauth required
126
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
127
+
128
+ if (path !== undefined) {
129
+ localVarQueryParameter['path'] = path;
130
+ }
131
+
132
+
133
+
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
143
+ /**
144
+ * Download file from workspace
145
+ * @summary Download file
146
+ * @param {string} workspaceId
147
+ * @param {string} path
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ downloadFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152
+ // verify required parameter 'workspaceId' is not null or undefined
153
+ assertParamExists('downloadFile', 'workspaceId', workspaceId)
154
+ // verify required parameter 'path' is not null or undefined
155
+ assertParamExists('downloadFile', 'path', path)
156
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/download`
157
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
158
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
159
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
160
+ let baseOptions;
161
+ if (configuration) {
162
+ baseOptions = configuration.baseOptions;
163
+ }
164
+
165
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
166
+ const localVarHeaderParameter = {} as any;
167
+ const localVarQueryParameter = {} as any;
168
+
169
+ // authentication oauth2 required
170
+ // oauth required
171
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
172
+
173
+ if (path !== undefined) {
174
+ localVarQueryParameter['path'] = path;
175
+ }
176
+
177
+
178
+
179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
182
+
183
+ return {
184
+ url: toPathString(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ };
187
+ },
188
+ /**
189
+ * Execute command synchronously inside workspace
190
+ * @summary Execute command
191
+ * @param {string} workspaceId
192
+ * @param {ExecuteRequestDto} executeRequestDto
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ executeCommand: async (workspaceId: string, executeRequestDto: ExecuteRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ // verify required parameter 'workspaceId' is not null or undefined
198
+ assertParamExists('executeCommand', 'workspaceId', workspaceId)
199
+ // verify required parameter 'executeRequestDto' is not null or undefined
200
+ assertParamExists('executeCommand', 'executeRequestDto', executeRequestDto)
201
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
202
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
205
+ let baseOptions;
206
+ if (configuration) {
207
+ baseOptions = configuration.baseOptions;
208
+ }
209
+
210
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
211
+ const localVarHeaderParameter = {} as any;
212
+ const localVarQueryParameter = {} as any;
213
+
214
+ // authentication oauth2 required
215
+ // oauth required
216
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
217
+
218
+
219
+
220
+ localVarHeaderParameter['Content-Type'] = 'application/json';
221
+
222
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
225
+ localVarRequestOptions.data = serializeDataIfNeeded(executeRequestDto, localVarRequestOptions, configuration)
226
+
227
+ return {
228
+ url: toPathString(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ },
232
+ /**
233
+ * Search for text/pattern inside workspace files
234
+ * @summary Search for text/pattern in files
235
+ * @param {string} workspaceId
236
+ * @param {string} path
237
+ * @param {string} pattern
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ findInFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
242
+ // verify required parameter 'workspaceId' is not null or undefined
243
+ assertParamExists('findInFiles', 'workspaceId', workspaceId)
244
+ // verify required parameter 'path' is not null or undefined
245
+ assertParamExists('findInFiles', 'path', path)
246
+ // verify required parameter 'pattern' is not null or undefined
247
+ assertParamExists('findInFiles', 'pattern', pattern)
248
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/find`
249
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
252
+ let baseOptions;
253
+ if (configuration) {
254
+ baseOptions = configuration.baseOptions;
255
+ }
256
+
257
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
258
+ const localVarHeaderParameter = {} as any;
259
+ const localVarQueryParameter = {} as any;
260
+
261
+ // authentication oauth2 required
262
+ // oauth required
263
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
264
+
265
+ if (path !== undefined) {
266
+ localVarQueryParameter['path'] = path;
267
+ }
268
+
269
+ if (pattern !== undefined) {
270
+ localVarQueryParameter['pattern'] = pattern;
271
+ }
272
+
273
+
274
+
275
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
277
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
278
+
279
+ return {
280
+ url: toPathString(localVarUrlObj),
281
+ options: localVarRequestOptions,
282
+ };
283
+ },
284
+ /**
285
+ * Get file info inside workspace
286
+ * @summary Get file info
287
+ * @param {string} workspaceId
288
+ * @param {string} path
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ getFileInfo: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
293
+ // verify required parameter 'workspaceId' is not null or undefined
294
+ assertParamExists('getFileInfo', 'workspaceId', workspaceId)
295
+ // verify required parameter 'path' is not null or undefined
296
+ assertParamExists('getFileInfo', 'path', path)
297
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/info`
298
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
299
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
300
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
301
+ let baseOptions;
302
+ if (configuration) {
303
+ baseOptions = configuration.baseOptions;
304
+ }
305
+
306
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
307
+ const localVarHeaderParameter = {} as any;
308
+ const localVarQueryParameter = {} as any;
309
+
310
+ // authentication oauth2 required
311
+ // oauth required
312
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
313
+
314
+ if (path !== undefined) {
315
+ localVarQueryParameter['path'] = path;
316
+ }
317
+
318
+
319
+
320
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
323
+
324
+ return {
325
+ url: toPathString(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ };
328
+ },
329
+ /**
330
+ *
331
+ * @summary Get workspace project dir
332
+ * @param {string} workspaceId
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ getProjectDir: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
337
+ // verify required parameter 'workspaceId' is not null or undefined
338
+ assertParamExists('getProjectDir', 'workspaceId', workspaceId)
339
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/project-dir`
340
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
341
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
342
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
343
+ let baseOptions;
344
+ if (configuration) {
345
+ baseOptions = configuration.baseOptions;
346
+ }
347
+
348
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
349
+ const localVarHeaderParameter = {} as any;
350
+ const localVarQueryParameter = {} as any;
351
+
352
+ // authentication oauth2 required
353
+ // oauth required
354
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
355
+
356
+
357
+
358
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
359
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
361
+
362
+ return {
363
+ url: toPathString(localVarUrlObj),
364
+ options: localVarRequestOptions,
365
+ };
366
+ },
367
+ /**
368
+ * Add files to git commit
369
+ * @summary Add files
370
+ * @param {string} workspaceId
371
+ * @param {GitAddRequestDto} gitAddRequestDto
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ gitAddFiles: async (workspaceId: string, gitAddRequestDto: GitAddRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
376
+ // verify required parameter 'workspaceId' is not null or undefined
377
+ assertParamExists('gitAddFiles', 'workspaceId', workspaceId)
378
+ // verify required parameter 'gitAddRequestDto' is not null or undefined
379
+ assertParamExists('gitAddFiles', 'gitAddRequestDto', gitAddRequestDto)
380
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
381
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
384
+ let baseOptions;
385
+ if (configuration) {
386
+ baseOptions = configuration.baseOptions;
387
+ }
388
+
389
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
390
+ const localVarHeaderParameter = {} as any;
391
+ const localVarQueryParameter = {} as any;
392
+
393
+ // authentication oauth2 required
394
+ // oauth required
395
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
396
+
397
+
398
+
399
+ localVarHeaderParameter['Content-Type'] = 'application/json';
400
+
401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
404
+ localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequestDto, localVarRequestOptions, configuration)
405
+
406
+ return {
407
+ url: toPathString(localVarUrlObj),
408
+ options: localVarRequestOptions,
409
+ };
410
+ },
411
+ /**
412
+ * Clone git repository
413
+ * @summary Clone repository
414
+ * @param {string} workspaceId
415
+ * @param {GitCloneRequestDto} gitCloneRequestDto
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ gitCloneRepository: async (workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
420
+ // verify required parameter 'workspaceId' is not null or undefined
421
+ assertParamExists('gitCloneRepository', 'workspaceId', workspaceId)
422
+ // verify required parameter 'gitCloneRequestDto' is not null or undefined
423
+ assertParamExists('gitCloneRepository', 'gitCloneRequestDto', gitCloneRequestDto)
424
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
425
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
426
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
428
+ let baseOptions;
429
+ if (configuration) {
430
+ baseOptions = configuration.baseOptions;
431
+ }
432
+
433
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
434
+ const localVarHeaderParameter = {} as any;
435
+ const localVarQueryParameter = {} as any;
436
+
437
+ // authentication oauth2 required
438
+ // oauth required
439
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
440
+
441
+
442
+
443
+ localVarHeaderParameter['Content-Type'] = 'application/json';
444
+
445
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
447
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
448
+ localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequestDto, localVarRequestOptions, configuration)
449
+
450
+ return {
451
+ url: toPathString(localVarUrlObj),
452
+ options: localVarRequestOptions,
453
+ };
454
+ },
455
+ /**
456
+ * Commit changes to git repository
457
+ * @summary Commit changes
458
+ * @param {string} workspaceId
459
+ * @param {GitCommitRequestDto} gitCommitRequestDto
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ gitCommitChanges: async (workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
464
+ // verify required parameter 'workspaceId' is not null or undefined
465
+ assertParamExists('gitCommitChanges', 'workspaceId', workspaceId)
466
+ // verify required parameter 'gitCommitRequestDto' is not null or undefined
467
+ assertParamExists('gitCommitChanges', 'gitCommitRequestDto', gitCommitRequestDto)
468
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
469
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
472
+ let baseOptions;
473
+ if (configuration) {
474
+ baseOptions = configuration.baseOptions;
475
+ }
476
+
477
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
478
+ const localVarHeaderParameter = {} as any;
479
+ const localVarQueryParameter = {} as any;
480
+
481
+ // authentication oauth2 required
482
+ // oauth required
483
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
484
+
485
+
486
+
487
+ localVarHeaderParameter['Content-Type'] = 'application/json';
488
+
489
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
492
+ localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequestDto, localVarRequestOptions, configuration)
493
+
494
+ return {
495
+ url: toPathString(localVarUrlObj),
496
+ options: localVarRequestOptions,
497
+ };
498
+ },
499
+ /**
500
+ * Create branch on git repository
501
+ * @summary Create branch
502
+ * @param {string} workspaceId
503
+ * @param {GitBranchRequestDto} gitBranchRequestDto
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ gitCreateBranch: async (workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
508
+ // verify required parameter 'workspaceId' is not null or undefined
509
+ assertParamExists('gitCreateBranch', 'workspaceId', workspaceId)
510
+ // verify required parameter 'gitBranchRequestDto' is not null or undefined
511
+ assertParamExists('gitCreateBranch', 'gitBranchRequestDto', gitBranchRequestDto)
512
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
513
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
516
+ let baseOptions;
517
+ if (configuration) {
518
+ baseOptions = configuration.baseOptions;
519
+ }
520
+
521
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
522
+ const localVarHeaderParameter = {} as any;
523
+ const localVarQueryParameter = {} as any;
524
+
525
+ // authentication oauth2 required
526
+ // oauth required
527
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
528
+
529
+
530
+
531
+ localVarHeaderParameter['Content-Type'] = 'application/json';
532
+
533
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
536
+ localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequestDto, localVarRequestOptions, configuration)
537
+
538
+ return {
539
+ url: toPathString(localVarUrlObj),
540
+ options: localVarRequestOptions,
541
+ };
542
+ },
543
+ /**
544
+ * Get commit history from git repository
545
+ * @summary Get commit history
546
+ * @param {string} workspaceId
547
+ * @param {string} path
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ gitGetHistory: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
552
+ // verify required parameter 'workspaceId' is not null or undefined
553
+ assertParamExists('gitGetHistory', 'workspaceId', workspaceId)
554
+ // verify required parameter 'path' is not null or undefined
555
+ assertParamExists('gitGetHistory', 'path', path)
556
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/history`
557
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
558
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
559
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
560
+ let baseOptions;
561
+ if (configuration) {
562
+ baseOptions = configuration.baseOptions;
563
+ }
564
+
565
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
566
+ const localVarHeaderParameter = {} as any;
567
+ const localVarQueryParameter = {} as any;
568
+
569
+ // authentication oauth2 required
570
+ // oauth required
571
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
572
+
573
+ if (path !== undefined) {
574
+ localVarQueryParameter['path'] = path;
575
+ }
576
+
577
+
578
+
579
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
580
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
581
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
582
+
583
+ return {
584
+ url: toPathString(localVarUrlObj),
585
+ options: localVarRequestOptions,
586
+ };
587
+ },
588
+ /**
589
+ * Get status from git repository
590
+ * @summary Get git status
591
+ * @param {string} workspaceId
592
+ * @param {string} path
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ gitGetStatus: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
597
+ // verify required parameter 'workspaceId' is not null or undefined
598
+ assertParamExists('gitGetStatus', 'workspaceId', workspaceId)
599
+ // verify required parameter 'path' is not null or undefined
600
+ assertParamExists('gitGetStatus', 'path', path)
601
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/status`
602
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
604
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
605
+ let baseOptions;
606
+ if (configuration) {
607
+ baseOptions = configuration.baseOptions;
608
+ }
609
+
610
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
611
+ const localVarHeaderParameter = {} as any;
612
+ const localVarQueryParameter = {} as any;
613
+
614
+ // authentication oauth2 required
615
+ // oauth required
616
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
617
+
618
+ if (path !== undefined) {
619
+ localVarQueryParameter['path'] = path;
620
+ }
621
+
622
+
623
+
624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
626
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
627
+
628
+ return {
629
+ url: toPathString(localVarUrlObj),
630
+ options: localVarRequestOptions,
631
+ };
632
+ },
633
+ /**
634
+ * Get branch list from git repository
635
+ * @summary Get branch list
636
+ * @param {string} workspaceId
637
+ * @param {string} path
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ gitListBranches: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
642
+ // verify required parameter 'workspaceId' is not null or undefined
643
+ assertParamExists('gitListBranches', 'workspaceId', workspaceId)
644
+ // verify required parameter 'path' is not null or undefined
645
+ assertParamExists('gitListBranches', 'path', path)
646
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
647
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
650
+ let baseOptions;
651
+ if (configuration) {
652
+ baseOptions = configuration.baseOptions;
653
+ }
654
+
655
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
656
+ const localVarHeaderParameter = {} as any;
657
+ const localVarQueryParameter = {} as any;
658
+
659
+ // authentication oauth2 required
660
+ // oauth required
661
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
662
+
663
+ if (path !== undefined) {
664
+ localVarQueryParameter['path'] = path;
665
+ }
666
+
667
+
668
+
669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
671
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
672
+
673
+ return {
674
+ url: toPathString(localVarUrlObj),
675
+ options: localVarRequestOptions,
676
+ };
677
+ },
678
+ /**
679
+ * Pull changes from remote
680
+ * @summary Pull changes
681
+ * @param {string} workspaceId
682
+ * @param {GitRepoRequestDto} gitRepoRequestDto
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ gitPullChanges: async (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
687
+ // verify required parameter 'workspaceId' is not null or undefined
688
+ assertParamExists('gitPullChanges', 'workspaceId', workspaceId)
689
+ // verify required parameter 'gitRepoRequestDto' is not null or undefined
690
+ assertParamExists('gitPullChanges', 'gitRepoRequestDto', gitRepoRequestDto)
691
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
692
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
693
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
694
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
695
+ let baseOptions;
696
+ if (configuration) {
697
+ baseOptions = configuration.baseOptions;
698
+ }
699
+
700
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
701
+ const localVarHeaderParameter = {} as any;
702
+ const localVarQueryParameter = {} as any;
703
+
704
+ // authentication oauth2 required
705
+ // oauth required
706
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
707
+
708
+
709
+
710
+ localVarHeaderParameter['Content-Type'] = 'application/json';
711
+
712
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
713
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
714
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
715
+ localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequestDto, localVarRequestOptions, configuration)
716
+
717
+ return {
718
+ url: toPathString(localVarUrlObj),
719
+ options: localVarRequestOptions,
720
+ };
721
+ },
722
+ /**
723
+ * Push changes to remote
724
+ * @summary Push changes
725
+ * @param {string} workspaceId
726
+ * @param {GitRepoRequestDto} gitRepoRequestDto
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ gitPushChanges: async (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
731
+ // verify required parameter 'workspaceId' is not null or undefined
732
+ assertParamExists('gitPushChanges', 'workspaceId', workspaceId)
733
+ // verify required parameter 'gitRepoRequestDto' is not null or undefined
734
+ assertParamExists('gitPushChanges', 'gitRepoRequestDto', gitRepoRequestDto)
735
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
736
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
737
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
738
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
739
+ let baseOptions;
740
+ if (configuration) {
741
+ baseOptions = configuration.baseOptions;
742
+ }
743
+
744
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
745
+ const localVarHeaderParameter = {} as any;
746
+ const localVarQueryParameter = {} as any;
747
+
748
+ // authentication oauth2 required
749
+ // oauth required
750
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
751
+
752
+
753
+
754
+ localVarHeaderParameter['Content-Type'] = 'application/json';
755
+
756
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
759
+ localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequestDto, localVarRequestOptions, configuration)
760
+
761
+ return {
762
+ url: toPathString(localVarUrlObj),
763
+ options: localVarRequestOptions,
764
+ };
765
+ },
766
+ /**
767
+ *
768
+ * @summary List files
769
+ * @param {string} workspaceId
770
+ * @param {string} [path]
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ */
774
+ listFiles: async (workspaceId: string, path?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
775
+ // verify required parameter 'workspaceId' is not null or undefined
776
+ assertParamExists('listFiles', 'workspaceId', workspaceId)
777
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
778
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
779
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
780
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
781
+ let baseOptions;
782
+ if (configuration) {
783
+ baseOptions = configuration.baseOptions;
784
+ }
785
+
786
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
787
+ const localVarHeaderParameter = {} as any;
788
+ const localVarQueryParameter = {} as any;
789
+
790
+ // authentication oauth2 required
791
+ // oauth required
792
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
793
+
794
+ if (path !== undefined) {
795
+ localVarQueryParameter['path'] = path;
796
+ }
797
+
798
+
799
+
800
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
801
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
802
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
803
+
804
+ return {
805
+ url: toPathString(localVarUrlObj),
806
+ options: localVarRequestOptions,
807
+ };
808
+ },
809
+ /**
810
+ * Move file inside workspace
811
+ * @summary Move file
812
+ * @param {string} workspaceId
813
+ * @param {string} source
814
+ * @param {string} destination
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ moveFile: async (workspaceId: string, source: string, destination: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
819
+ // verify required parameter 'workspaceId' is not null or undefined
820
+ assertParamExists('moveFile', 'workspaceId', workspaceId)
821
+ // verify required parameter 'source' is not null or undefined
822
+ assertParamExists('moveFile', 'source', source)
823
+ // verify required parameter 'destination' is not null or undefined
824
+ assertParamExists('moveFile', 'destination', destination)
825
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/move`
826
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
827
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
828
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
829
+ let baseOptions;
830
+ if (configuration) {
831
+ baseOptions = configuration.baseOptions;
832
+ }
833
+
834
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
835
+ const localVarHeaderParameter = {} as any;
836
+ const localVarQueryParameter = {} as any;
837
+
838
+ // authentication oauth2 required
839
+ // oauth required
840
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
841
+
842
+ if (source !== undefined) {
843
+ localVarQueryParameter['source'] = source;
844
+ }
845
+
846
+ if (destination !== undefined) {
847
+ localVarQueryParameter['destination'] = destination;
848
+ }
849
+
850
+
851
+
852
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
853
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
854
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
855
+
856
+ return {
857
+ url: toPathString(localVarUrlObj),
858
+ options: localVarRequestOptions,
859
+ };
860
+ },
861
+ /**
862
+ * Replace text/pattern in multiple files inside workspace
863
+ * @summary Replace in files
864
+ * @param {string} workspaceId
865
+ * @param {ReplaceRequestDto} replaceRequestDto
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ */
869
+ replaceInFiles: async (workspaceId: string, replaceRequestDto: ReplaceRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
870
+ // verify required parameter 'workspaceId' is not null or undefined
871
+ assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
872
+ // verify required parameter 'replaceRequestDto' is not null or undefined
873
+ assertParamExists('replaceInFiles', 'replaceRequestDto', replaceRequestDto)
874
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
875
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
877
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
878
+ let baseOptions;
879
+ if (configuration) {
880
+ baseOptions = configuration.baseOptions;
881
+ }
882
+
883
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
884
+ const localVarHeaderParameter = {} as any;
885
+ const localVarQueryParameter = {} as any;
886
+
887
+ // authentication oauth2 required
888
+ // oauth required
889
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
890
+
891
+
892
+
893
+ localVarHeaderParameter['Content-Type'] = 'application/json';
894
+
895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
897
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
898
+ localVarRequestOptions.data = serializeDataIfNeeded(replaceRequestDto, localVarRequestOptions, configuration)
899
+
900
+ return {
901
+ url: toPathString(localVarUrlObj),
902
+ options: localVarRequestOptions,
903
+ };
904
+ },
905
+ /**
906
+ * Search for files inside workspace
907
+ * @summary Search files
908
+ * @param {string} workspaceId
909
+ * @param {string} path
910
+ * @param {string} pattern
911
+ * @param {*} [options] Override http request option.
912
+ * @throws {RequiredError}
913
+ */
914
+ searchFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
915
+ // verify required parameter 'workspaceId' is not null or undefined
916
+ assertParamExists('searchFiles', 'workspaceId', workspaceId)
917
+ // verify required parameter 'path' is not null or undefined
918
+ assertParamExists('searchFiles', 'path', path)
919
+ // verify required parameter 'pattern' is not null or undefined
920
+ assertParamExists('searchFiles', 'pattern', pattern)
921
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/search`
922
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
923
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
924
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
925
+ let baseOptions;
926
+ if (configuration) {
927
+ baseOptions = configuration.baseOptions;
928
+ }
929
+
930
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
931
+ const localVarHeaderParameter = {} as any;
932
+ const localVarQueryParameter = {} as any;
933
+
934
+ // authentication oauth2 required
935
+ // oauth required
936
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
937
+
938
+ if (path !== undefined) {
939
+ localVarQueryParameter['path'] = path;
940
+ }
941
+
942
+ if (pattern !== undefined) {
943
+ localVarQueryParameter['pattern'] = pattern;
944
+ }
945
+
946
+
947
+
948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
950
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
951
+
952
+ return {
953
+ url: toPathString(localVarUrlObj),
954
+ options: localVarRequestOptions,
955
+ };
956
+ },
957
+ /**
958
+ * Set file owner/group/permissions inside workspace
959
+ * @summary Set file permissions
960
+ * @param {string} workspaceId
961
+ * @param {string} path
962
+ * @param {string} owner
963
+ * @param {string} group
964
+ * @param {string} mode
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ setFilePermissions: async (workspaceId: string, path: string, owner: string, group: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
969
+ // verify required parameter 'workspaceId' is not null or undefined
970
+ assertParamExists('setFilePermissions', 'workspaceId', workspaceId)
971
+ // verify required parameter 'path' is not null or undefined
972
+ assertParamExists('setFilePermissions', 'path', path)
973
+ // verify required parameter 'owner' is not null or undefined
974
+ assertParamExists('setFilePermissions', 'owner', owner)
975
+ // verify required parameter 'group' is not null or undefined
976
+ assertParamExists('setFilePermissions', 'group', group)
977
+ // verify required parameter 'mode' is not null or undefined
978
+ assertParamExists('setFilePermissions', 'mode', mode)
979
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/permissions`
980
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
983
+ let baseOptions;
984
+ if (configuration) {
985
+ baseOptions = configuration.baseOptions;
986
+ }
987
+
988
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
989
+ const localVarHeaderParameter = {} as any;
990
+ const localVarQueryParameter = {} as any;
991
+
992
+ // authentication oauth2 required
993
+ // oauth required
994
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
995
+
996
+ if (path !== undefined) {
997
+ localVarQueryParameter['path'] = path;
998
+ }
999
+
1000
+ if (owner !== undefined) {
1001
+ localVarQueryParameter['owner'] = owner;
1002
+ }
1003
+
1004
+ if (group !== undefined) {
1005
+ localVarQueryParameter['group'] = group;
1006
+ }
1007
+
1008
+ if (mode !== undefined) {
1009
+ localVarQueryParameter['mode'] = mode;
1010
+ }
1011
+
1012
+
1013
+
1014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1017
+
1018
+ return {
1019
+ url: toPathString(localVarUrlObj),
1020
+ options: localVarRequestOptions,
1021
+ };
1022
+ },
1023
+ /**
1024
+ * Upload file inside workspace
1025
+ * @summary Upload file
1026
+ * @param {string} workspaceId
1027
+ * @param {string} path
1028
+ * @param {File} [file]
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ */
1032
+ uploadFile: async (workspaceId: string, path: string, file?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1033
+ // verify required parameter 'workspaceId' is not null or undefined
1034
+ assertParamExists('uploadFile', 'workspaceId', workspaceId)
1035
+ // verify required parameter 'path' is not null or undefined
1036
+ assertParamExists('uploadFile', 'path', path)
1037
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/upload`
1038
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1041
+ let baseOptions;
1042
+ if (configuration) {
1043
+ baseOptions = configuration.baseOptions;
1044
+ }
1045
+
1046
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1047
+ const localVarHeaderParameter = {} as any;
1048
+ const localVarQueryParameter = {} as any;
1049
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1050
+
1051
+ // authentication oauth2 required
1052
+ // oauth required
1053
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1054
+
1055
+ if (path !== undefined) {
1056
+ localVarQueryParameter['path'] = path;
1057
+ }
1058
+
1059
+
1060
+ if (file !== undefined) {
1061
+ localVarFormParams.append('file', file as any);
1062
+ }
1063
+
1064
+
1065
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1066
+
1067
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1068
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1069
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1070
+ localVarRequestOptions.data = localVarFormParams;
1071
+
1072
+ return {
1073
+ url: toPathString(localVarUrlObj),
1074
+ options: localVarRequestOptions,
1075
+ };
1076
+ },
1077
+ }
1078
+ };
1079
+
1080
+ /**
1081
+ * ToolboxApi - functional programming interface
1082
+ * @export
1083
+ */
1084
+ export const ToolboxApiFp = function(configuration?: Configuration) {
1085
+ const localVarAxiosParamCreator = ToolboxApiAxiosParamCreator(configuration)
1086
+ return {
1087
+ /**
1088
+ * Create folder inside workspace
1089
+ * @summary Create folder
1090
+ * @param {string} workspaceId
1091
+ * @param {string} path
1092
+ * @param {string} mode
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ async createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFolder(workspaceId, path, mode, options);
1098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1099
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createFolder']?.[localVarOperationServerIndex]?.url;
1100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1101
+ },
1102
+ /**
1103
+ * Delete file inside workspace
1104
+ * @summary Delete file
1105
+ * @param {string} workspaceId
1106
+ * @param {string} path
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ async deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(workspaceId, path, options);
1112
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1113
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.deleteFile']?.[localVarOperationServerIndex]?.url;
1114
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1115
+ },
1116
+ /**
1117
+ * Download file from workspace
1118
+ * @summary Download file
1119
+ * @param {string} workspaceId
1120
+ * @param {string} path
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ */
1124
+ async downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(workspaceId, path, options);
1126
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1127
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.downloadFile']?.[localVarOperationServerIndex]?.url;
1128
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1129
+ },
1130
+ /**
1131
+ * Execute command synchronously inside workspace
1132
+ * @summary Execute command
1133
+ * @param {string} workspaceId
1134
+ * @param {ExecuteRequestDto} executeRequestDto
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ async executeCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponseDto>> {
1139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(workspaceId, executeRequestDto, options);
1140
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1141
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
1142
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1143
+ },
1144
+ /**
1145
+ * Search for text/pattern inside workspace files
1146
+ * @summary Search for text/pattern in files
1147
+ * @param {string} workspaceId
1148
+ * @param {string} path
1149
+ * @param {string} pattern
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ */
1153
+ async findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1154
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findInFiles(workspaceId, path, pattern, options);
1155
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1156
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.findInFiles']?.[localVarOperationServerIndex]?.url;
1157
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1158
+ },
1159
+ /**
1160
+ * Get file info inside workspace
1161
+ * @summary Get file info
1162
+ * @param {string} workspaceId
1163
+ * @param {string} path
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ */
1167
+ async getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1168
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFileInfo(workspaceId, path, options);
1169
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1170
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getFileInfo']?.[localVarOperationServerIndex]?.url;
1171
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1172
+ },
1173
+ /**
1174
+ *
1175
+ * @summary Get workspace project dir
1176
+ * @param {string} workspaceId
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ async getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1181
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectDir(workspaceId, options);
1182
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1183
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
1184
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1185
+ },
1186
+ /**
1187
+ * Add files to git commit
1188
+ * @summary Add files
1189
+ * @param {string} workspaceId
1190
+ * @param {GitAddRequestDto} gitAddRequestDto
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ */
1194
+ async gitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(workspaceId, gitAddRequestDto, options);
1196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1197
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitAddFiles']?.[localVarOperationServerIndex]?.url;
1198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1199
+ },
1200
+ /**
1201
+ * Clone git repository
1202
+ * @summary Clone repository
1203
+ * @param {string} workspaceId
1204
+ * @param {GitCloneRequestDto} gitCloneRequestDto
1205
+ * @param {*} [options] Override http request option.
1206
+ * @throws {RequiredError}
1207
+ */
1208
+ async gitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1209
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(workspaceId, gitCloneRequestDto, options);
1210
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1211
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCloneRepository']?.[localVarOperationServerIndex]?.url;
1212
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1213
+ },
1214
+ /**
1215
+ * Commit changes to git repository
1216
+ * @summary Commit changes
1217
+ * @param {string} workspaceId
1218
+ * @param {GitCommitRequestDto} gitCommitRequestDto
1219
+ * @param {*} [options] Override http request option.
1220
+ * @throws {RequiredError}
1221
+ */
1222
+ async gitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1223
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequestDto, options);
1224
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1225
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url;
1226
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1227
+ },
1228
+ /**
1229
+ * Create branch on git repository
1230
+ * @summary Create branch
1231
+ * @param {string} workspaceId
1232
+ * @param {GitBranchRequestDto} gitBranchRequestDto
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ */
1236
+ async gitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1237
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(workspaceId, gitBranchRequestDto, options);
1238
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1239
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCreateBranch']?.[localVarOperationServerIndex]?.url;
1240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1241
+ },
1242
+ /**
1243
+ * Get commit history from git repository
1244
+ * @summary Get commit history
1245
+ * @param {string} workspaceId
1246
+ * @param {string} path
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ */
1250
+ async gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetHistory(workspaceId, path, options);
1252
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1253
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitGetHistory']?.[localVarOperationServerIndex]?.url;
1254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1255
+ },
1256
+ /**
1257
+ * Get status from git repository
1258
+ * @summary Get git status
1259
+ * @param {string} workspaceId
1260
+ * @param {string} path
1261
+ * @param {*} [options] Override http request option.
1262
+ * @throws {RequiredError}
1263
+ */
1264
+ async gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetStatus(workspaceId, path, options);
1266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1267
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitGetStatus']?.[localVarOperationServerIndex]?.url;
1268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1269
+ },
1270
+ /**
1271
+ * Get branch list from git repository
1272
+ * @summary Get branch list
1273
+ * @param {string} workspaceId
1274
+ * @param {string} path
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ */
1278
+ async gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitListBranches(workspaceId, path, options);
1280
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1281
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitListBranches']?.[localVarOperationServerIndex]?.url;
1282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1283
+ },
1284
+ /**
1285
+ * Pull changes from remote
1286
+ * @summary Pull changes
1287
+ * @param {string} workspaceId
1288
+ * @param {GitRepoRequestDto} gitRepoRequestDto
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ */
1292
+ async gitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(workspaceId, gitRepoRequestDto, options);
1294
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1295
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPullChanges']?.[localVarOperationServerIndex]?.url;
1296
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1297
+ },
1298
+ /**
1299
+ * Push changes to remote
1300
+ * @summary Push changes
1301
+ * @param {string} workspaceId
1302
+ * @param {GitRepoRequestDto} gitRepoRequestDto
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ async gitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(workspaceId, gitRepoRequestDto, options);
1308
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1309
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPushChanges']?.[localVarOperationServerIndex]?.url;
1310
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1311
+ },
1312
+ /**
1313
+ *
1314
+ * @summary List files
1315
+ * @param {string} workspaceId
1316
+ * @param {string} [path]
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ */
1320
+ async listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(workspaceId, path, options);
1322
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1323
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
1324
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1325
+ },
1326
+ /**
1327
+ * Move file inside workspace
1328
+ * @summary Move file
1329
+ * @param {string} workspaceId
1330
+ * @param {string} source
1331
+ * @param {string} destination
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ */
1335
+ async moveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(workspaceId, source, destination, options);
1337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1338
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.moveFile']?.[localVarOperationServerIndex]?.url;
1339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1340
+ },
1341
+ /**
1342
+ * Replace text/pattern in multiple files inside workspace
1343
+ * @summary Replace in files
1344
+ * @param {string} workspaceId
1345
+ * @param {ReplaceRequestDto} replaceRequestDto
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ */
1349
+ async replaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(workspaceId, replaceRequestDto, options);
1351
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1352
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
1353
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1354
+ },
1355
+ /**
1356
+ * Search for files inside workspace
1357
+ * @summary Search files
1358
+ * @param {string} workspaceId
1359
+ * @param {string} path
1360
+ * @param {string} pattern
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ */
1364
+ async searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(workspaceId, path, pattern, options);
1366
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1367
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url;
1368
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1369
+ },
1370
+ /**
1371
+ * Set file owner/group/permissions inside workspace
1372
+ * @summary Set file permissions
1373
+ * @param {string} workspaceId
1374
+ * @param {string} path
1375
+ * @param {string} owner
1376
+ * @param {string} group
1377
+ * @param {string} mode
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ async setFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1382
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(workspaceId, path, owner, group, mode, options);
1383
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1384
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.setFilePermissions']?.[localVarOperationServerIndex]?.url;
1385
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1386
+ },
1387
+ /**
1388
+ * Upload file inside workspace
1389
+ * @summary Upload file
1390
+ * @param {string} workspaceId
1391
+ * @param {string} path
1392
+ * @param {File} [file]
1393
+ * @param {*} [options] Override http request option.
1394
+ * @throws {RequiredError}
1395
+ */
1396
+ async uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1397
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(workspaceId, path, file, options);
1398
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1399
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.uploadFile']?.[localVarOperationServerIndex]?.url;
1400
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1401
+ },
1402
+ }
1403
+ };
1404
+
1405
+ /**
1406
+ * ToolboxApi - factory interface
1407
+ * @export
1408
+ */
1409
+ export const ToolboxApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1410
+ const localVarFp = ToolboxApiFp(configuration)
1411
+ return {
1412
+ /**
1413
+ * Create folder inside workspace
1414
+ * @summary Create folder
1415
+ * @param {string} workspaceId
1416
+ * @param {string} path
1417
+ * @param {string} mode
1418
+ * @param {*} [options] Override http request option.
1419
+ * @throws {RequiredError}
1420
+ */
1421
+ createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1422
+ return localVarFp.createFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
1423
+ },
1424
+ /**
1425
+ * Delete file inside workspace
1426
+ * @summary Delete file
1427
+ * @param {string} workspaceId
1428
+ * @param {string} path
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ */
1432
+ deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1433
+ return localVarFp.deleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
1434
+ },
1435
+ /**
1436
+ * Download file from workspace
1437
+ * @summary Download file
1438
+ * @param {string} workspaceId
1439
+ * @param {string} path
1440
+ * @param {*} [options] Override http request option.
1441
+ * @throws {RequiredError}
1442
+ */
1443
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1444
+ return localVarFp.downloadFile(workspaceId, path, options).then((request) => request(axios, basePath));
1445
+ },
1446
+ /**
1447
+ * Execute command synchronously inside workspace
1448
+ * @summary Execute command
1449
+ * @param {string} workspaceId
1450
+ * @param {ExecuteRequestDto} executeRequestDto
1451
+ * @param {*} [options] Override http request option.
1452
+ * @throws {RequiredError}
1453
+ */
1454
+ executeCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponseDto> {
1455
+ return localVarFp.executeCommand(workspaceId, executeRequestDto, options).then((request) => request(axios, basePath));
1456
+ },
1457
+ /**
1458
+ * Search for text/pattern inside workspace files
1459
+ * @summary Search for text/pattern in files
1460
+ * @param {string} workspaceId
1461
+ * @param {string} path
1462
+ * @param {string} pattern
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1467
+ return localVarFp.findInFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
1468
+ },
1469
+ /**
1470
+ * Get file info inside workspace
1471
+ * @summary Get file info
1472
+ * @param {string} workspaceId
1473
+ * @param {string} path
1474
+ * @param {*} [options] Override http request option.
1475
+ * @throws {RequiredError}
1476
+ */
1477
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1478
+ return localVarFp.getFileInfo(workspaceId, path, options).then((request) => request(axios, basePath));
1479
+ },
1480
+ /**
1481
+ *
1482
+ * @summary Get workspace project dir
1483
+ * @param {string} workspaceId
1484
+ * @param {*} [options] Override http request option.
1485
+ * @throws {RequiredError}
1486
+ */
1487
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1488
+ return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
1489
+ },
1490
+ /**
1491
+ * Add files to git commit
1492
+ * @summary Add files
1493
+ * @param {string} workspaceId
1494
+ * @param {GitAddRequestDto} gitAddRequestDto
1495
+ * @param {*} [options] Override http request option.
1496
+ * @throws {RequiredError}
1497
+ */
1498
+ gitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1499
+ return localVarFp.gitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(axios, basePath));
1500
+ },
1501
+ /**
1502
+ * Clone git repository
1503
+ * @summary Clone repository
1504
+ * @param {string} workspaceId
1505
+ * @param {GitCloneRequestDto} gitCloneRequestDto
1506
+ * @param {*} [options] Override http request option.
1507
+ * @throws {RequiredError}
1508
+ */
1509
+ gitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1510
+ return localVarFp.gitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(axios, basePath));
1511
+ },
1512
+ /**
1513
+ * Commit changes to git repository
1514
+ * @summary Commit changes
1515
+ * @param {string} workspaceId
1516
+ * @param {GitCommitRequestDto} gitCommitRequestDto
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ */
1520
+ gitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1521
+ return localVarFp.gitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(axios, basePath));
1522
+ },
1523
+ /**
1524
+ * Create branch on git repository
1525
+ * @summary Create branch
1526
+ * @param {string} workspaceId
1527
+ * @param {GitBranchRequestDto} gitBranchRequestDto
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ */
1531
+ gitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1532
+ return localVarFp.gitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(axios, basePath));
1533
+ },
1534
+ /**
1535
+ * Get commit history from git repository
1536
+ * @summary Get commit history
1537
+ * @param {string} workspaceId
1538
+ * @param {string} path
1539
+ * @param {*} [options] Override http request option.
1540
+ * @throws {RequiredError}
1541
+ */
1542
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1543
+ return localVarFp.gitGetHistory(workspaceId, path, options).then((request) => request(axios, basePath));
1544
+ },
1545
+ /**
1546
+ * Get status from git repository
1547
+ * @summary Get git status
1548
+ * @param {string} workspaceId
1549
+ * @param {string} path
1550
+ * @param {*} [options] Override http request option.
1551
+ * @throws {RequiredError}
1552
+ */
1553
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1554
+ return localVarFp.gitGetStatus(workspaceId, path, options).then((request) => request(axios, basePath));
1555
+ },
1556
+ /**
1557
+ * Get branch list from git repository
1558
+ * @summary Get branch list
1559
+ * @param {string} workspaceId
1560
+ * @param {string} path
1561
+ * @param {*} [options] Override http request option.
1562
+ * @throws {RequiredError}
1563
+ */
1564
+ gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1565
+ return localVarFp.gitListBranches(workspaceId, path, options).then((request) => request(axios, basePath));
1566
+ },
1567
+ /**
1568
+ * Pull changes from remote
1569
+ * @summary Pull changes
1570
+ * @param {string} workspaceId
1571
+ * @param {GitRepoRequestDto} gitRepoRequestDto
1572
+ * @param {*} [options] Override http request option.
1573
+ * @throws {RequiredError}
1574
+ */
1575
+ gitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1576
+ return localVarFp.gitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
1577
+ },
1578
+ /**
1579
+ * Push changes to remote
1580
+ * @summary Push changes
1581
+ * @param {string} workspaceId
1582
+ * @param {GitRepoRequestDto} gitRepoRequestDto
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ */
1586
+ gitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1587
+ return localVarFp.gitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
1588
+ },
1589
+ /**
1590
+ *
1591
+ * @summary List files
1592
+ * @param {string} workspaceId
1593
+ * @param {string} [path]
1594
+ * @param {*} [options] Override http request option.
1595
+ * @throws {RequiredError}
1596
+ */
1597
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1598
+ return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
1599
+ },
1600
+ /**
1601
+ * Move file inside workspace
1602
+ * @summary Move file
1603
+ * @param {string} workspaceId
1604
+ * @param {string} source
1605
+ * @param {string} destination
1606
+ * @param {*} [options] Override http request option.
1607
+ * @throws {RequiredError}
1608
+ */
1609
+ moveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1610
+ return localVarFp.moveFile(workspaceId, source, destination, options).then((request) => request(axios, basePath));
1611
+ },
1612
+ /**
1613
+ * Replace text/pattern in multiple files inside workspace
1614
+ * @summary Replace in files
1615
+ * @param {string} workspaceId
1616
+ * @param {ReplaceRequestDto} replaceRequestDto
1617
+ * @param {*} [options] Override http request option.
1618
+ * @throws {RequiredError}
1619
+ */
1620
+ replaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1621
+ return localVarFp.replaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(axios, basePath));
1622
+ },
1623
+ /**
1624
+ * Search for files inside workspace
1625
+ * @summary Search files
1626
+ * @param {string} workspaceId
1627
+ * @param {string} path
1628
+ * @param {string} pattern
1629
+ * @param {*} [options] Override http request option.
1630
+ * @throws {RequiredError}
1631
+ */
1632
+ searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1633
+ return localVarFp.searchFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
1634
+ },
1635
+ /**
1636
+ * Set file owner/group/permissions inside workspace
1637
+ * @summary Set file permissions
1638
+ * @param {string} workspaceId
1639
+ * @param {string} path
1640
+ * @param {string} owner
1641
+ * @param {string} group
1642
+ * @param {string} mode
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ */
1646
+ setFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1647
+ return localVarFp.setFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(axios, basePath));
1648
+ },
1649
+ /**
1650
+ * Upload file inside workspace
1651
+ * @summary Upload file
1652
+ * @param {string} workspaceId
1653
+ * @param {string} path
1654
+ * @param {File} [file]
1655
+ * @param {*} [options] Override http request option.
1656
+ * @throws {RequiredError}
1657
+ */
1658
+ uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1659
+ return localVarFp.uploadFile(workspaceId, path, file, options).then((request) => request(axios, basePath));
1660
+ },
1661
+ };
1662
+ };
1663
+
1664
+ /**
1665
+ * ToolboxApi - object-oriented interface
1666
+ * @export
1667
+ * @class ToolboxApi
1668
+ * @extends {BaseAPI}
1669
+ */
1670
+ export class ToolboxApi extends BaseAPI {
1671
+ /**
1672
+ * Create folder inside workspace
1673
+ * @summary Create folder
1674
+ * @param {string} workspaceId
1675
+ * @param {string} path
1676
+ * @param {string} mode
1677
+ * @param {*} [options] Override http request option.
1678
+ * @throws {RequiredError}
1679
+ * @memberof ToolboxApi
1680
+ */
1681
+ public createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) {
1682
+ return ToolboxApiFp(this.configuration).createFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
1683
+ }
1684
+
1685
+ /**
1686
+ * Delete file inside workspace
1687
+ * @summary Delete file
1688
+ * @param {string} workspaceId
1689
+ * @param {string} path
1690
+ * @param {*} [options] Override http request option.
1691
+ * @throws {RequiredError}
1692
+ * @memberof ToolboxApi
1693
+ */
1694
+ public deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
1695
+ return ToolboxApiFp(this.configuration).deleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1696
+ }
1697
+
1698
+ /**
1699
+ * Download file from workspace
1700
+ * @summary Download file
1701
+ * @param {string} workspaceId
1702
+ * @param {string} path
1703
+ * @param {*} [options] Override http request option.
1704
+ * @throws {RequiredError}
1705
+ * @memberof ToolboxApi
1706
+ */
1707
+ public downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
1708
+ return ToolboxApiFp(this.configuration).downloadFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1709
+ }
1710
+
1711
+ /**
1712
+ * Execute command synchronously inside workspace
1713
+ * @summary Execute command
1714
+ * @param {string} workspaceId
1715
+ * @param {ExecuteRequestDto} executeRequestDto
1716
+ * @param {*} [options] Override http request option.
1717
+ * @throws {RequiredError}
1718
+ * @memberof ToolboxApi
1719
+ */
1720
+ public executeCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig) {
1721
+ return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequestDto, options).then((request) => request(this.axios, this.basePath));
1722
+ }
1723
+
1724
+ /**
1725
+ * Search for text/pattern inside workspace files
1726
+ * @summary Search for text/pattern in files
1727
+ * @param {string} workspaceId
1728
+ * @param {string} path
1729
+ * @param {string} pattern
1730
+ * @param {*} [options] Override http request option.
1731
+ * @throws {RequiredError}
1732
+ * @memberof ToolboxApi
1733
+ */
1734
+ public findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
1735
+ return ToolboxApiFp(this.configuration).findInFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
1736
+ }
1737
+
1738
+ /**
1739
+ * Get file info inside workspace
1740
+ * @summary Get file info
1741
+ * @param {string} workspaceId
1742
+ * @param {string} path
1743
+ * @param {*} [options] Override http request option.
1744
+ * @throws {RequiredError}
1745
+ * @memberof ToolboxApi
1746
+ */
1747
+ public getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
1748
+ return ToolboxApiFp(this.configuration).getFileInfo(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1749
+ }
1750
+
1751
+ /**
1752
+ *
1753
+ * @summary Get workspace project dir
1754
+ * @param {string} workspaceId
1755
+ * @param {*} [options] Override http request option.
1756
+ * @throws {RequiredError}
1757
+ * @memberof ToolboxApi
1758
+ */
1759
+ public getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig) {
1760
+ return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
1761
+ }
1762
+
1763
+ /**
1764
+ * Add files to git commit
1765
+ * @summary Add files
1766
+ * @param {string} workspaceId
1767
+ * @param {GitAddRequestDto} gitAddRequestDto
1768
+ * @param {*} [options] Override http request option.
1769
+ * @throws {RequiredError}
1770
+ * @memberof ToolboxApi
1771
+ */
1772
+ public gitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig) {
1773
+ return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(this.axios, this.basePath));
1774
+ }
1775
+
1776
+ /**
1777
+ * Clone git repository
1778
+ * @summary Clone repository
1779
+ * @param {string} workspaceId
1780
+ * @param {GitCloneRequestDto} gitCloneRequestDto
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ * @memberof ToolboxApi
1784
+ */
1785
+ public gitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig) {
1786
+ return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(this.axios, this.basePath));
1787
+ }
1788
+
1789
+ /**
1790
+ * Commit changes to git repository
1791
+ * @summary Commit changes
1792
+ * @param {string} workspaceId
1793
+ * @param {GitCommitRequestDto} gitCommitRequestDto
1794
+ * @param {*} [options] Override http request option.
1795
+ * @throws {RequiredError}
1796
+ * @memberof ToolboxApi
1797
+ */
1798
+ public gitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig) {
1799
+ return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(this.axios, this.basePath));
1800
+ }
1801
+
1802
+ /**
1803
+ * Create branch on git repository
1804
+ * @summary Create branch
1805
+ * @param {string} workspaceId
1806
+ * @param {GitBranchRequestDto} gitBranchRequestDto
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ * @memberof ToolboxApi
1810
+ */
1811
+ public gitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig) {
1812
+ return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(this.axios, this.basePath));
1813
+ }
1814
+
1815
+ /**
1816
+ * Get commit history from git repository
1817
+ * @summary Get commit history
1818
+ * @param {string} workspaceId
1819
+ * @param {string} path
1820
+ * @param {*} [options] Override http request option.
1821
+ * @throws {RequiredError}
1822
+ * @memberof ToolboxApi
1823
+ */
1824
+ public gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
1825
+ return ToolboxApiFp(this.configuration).gitGetHistory(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1826
+ }
1827
+
1828
+ /**
1829
+ * Get status from git repository
1830
+ * @summary Get git status
1831
+ * @param {string} workspaceId
1832
+ * @param {string} path
1833
+ * @param {*} [options] Override http request option.
1834
+ * @throws {RequiredError}
1835
+ * @memberof ToolboxApi
1836
+ */
1837
+ public gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
1838
+ return ToolboxApiFp(this.configuration).gitGetStatus(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1839
+ }
1840
+
1841
+ /**
1842
+ * Get branch list from git repository
1843
+ * @summary Get branch list
1844
+ * @param {string} workspaceId
1845
+ * @param {string} path
1846
+ * @param {*} [options] Override http request option.
1847
+ * @throws {RequiredError}
1848
+ * @memberof ToolboxApi
1849
+ */
1850
+ public gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
1851
+ return ToolboxApiFp(this.configuration).gitListBranches(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1852
+ }
1853
+
1854
+ /**
1855
+ * Pull changes from remote
1856
+ * @summary Pull changes
1857
+ * @param {string} workspaceId
1858
+ * @param {GitRepoRequestDto} gitRepoRequestDto
1859
+ * @param {*} [options] Override http request option.
1860
+ * @throws {RequiredError}
1861
+ * @memberof ToolboxApi
1862
+ */
1863
+ public gitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) {
1864
+ return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
1865
+ }
1866
+
1867
+ /**
1868
+ * Push changes to remote
1869
+ * @summary Push changes
1870
+ * @param {string} workspaceId
1871
+ * @param {GitRepoRequestDto} gitRepoRequestDto
1872
+ * @param {*} [options] Override http request option.
1873
+ * @throws {RequiredError}
1874
+ * @memberof ToolboxApi
1875
+ */
1876
+ public gitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) {
1877
+ return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
1878
+ }
1879
+
1880
+ /**
1881
+ *
1882
+ * @summary List files
1883
+ * @param {string} workspaceId
1884
+ * @param {string} [path]
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ * @memberof ToolboxApi
1888
+ */
1889
+ public listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig) {
1890
+ return ToolboxApiFp(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1891
+ }
1892
+
1893
+ /**
1894
+ * Move file inside workspace
1895
+ * @summary Move file
1896
+ * @param {string} workspaceId
1897
+ * @param {string} source
1898
+ * @param {string} destination
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ * @memberof ToolboxApi
1902
+ */
1903
+ public moveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig) {
1904
+ return ToolboxApiFp(this.configuration).moveFile(workspaceId, source, destination, options).then((request) => request(this.axios, this.basePath));
1905
+ }
1906
+
1907
+ /**
1908
+ * Replace text/pattern in multiple files inside workspace
1909
+ * @summary Replace in files
1910
+ * @param {string} workspaceId
1911
+ * @param {ReplaceRequestDto} replaceRequestDto
1912
+ * @param {*} [options] Override http request option.
1913
+ * @throws {RequiredError}
1914
+ * @memberof ToolboxApi
1915
+ */
1916
+ public replaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig) {
1917
+ return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(this.axios, this.basePath));
1918
+ }
1919
+
1920
+ /**
1921
+ * Search for files inside workspace
1922
+ * @summary Search files
1923
+ * @param {string} workspaceId
1924
+ * @param {string} path
1925
+ * @param {string} pattern
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ * @memberof ToolboxApi
1929
+ */
1930
+ public searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
1931
+ return ToolboxApiFp(this.configuration).searchFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
1932
+ }
1933
+
1934
+ /**
1935
+ * Set file owner/group/permissions inside workspace
1936
+ * @summary Set file permissions
1937
+ * @param {string} workspaceId
1938
+ * @param {string} path
1939
+ * @param {string} owner
1940
+ * @param {string} group
1941
+ * @param {string} mode
1942
+ * @param {*} [options] Override http request option.
1943
+ * @throws {RequiredError}
1944
+ * @memberof ToolboxApi
1945
+ */
1946
+ public setFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig) {
1947
+ return ToolboxApiFp(this.configuration).setFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(this.axios, this.basePath));
1948
+ }
1949
+
1950
+ /**
1951
+ * Upload file inside workspace
1952
+ * @summary Upload file
1953
+ * @param {string} workspaceId
1954
+ * @param {string} path
1955
+ * @param {File} [file]
1956
+ * @param {*} [options] Override http request option.
1957
+ * @throws {RequiredError}
1958
+ * @memberof ToolboxApi
1959
+ */
1960
+ public uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig) {
1961
+ return ToolboxApiFp(this.configuration).uploadFile(workspaceId, path, file, options).then((request) => request(this.axios, this.basePath));
1962
+ }
1963
+ }
1964
+