@daytonaio/api-client 0.4.1 → 0.5.1

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