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