@daytonaio/api-client 0.4.0 → 0.5.0

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 (89) hide show
  1. package/.openapi-generator/FILES +4 -8
  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/users-api.ts +274 -0
  8. package/api/workspace-api.ts +760 -0
  9. package/api.ts +4 -0
  10. package/dist/api/api-keys-api.d.ts +171 -0
  11. package/dist/api/api-keys-api.js +339 -0
  12. package/dist/api/default-api.d.ts +15 -1454
  13. package/dist/api/default-api.js +43 -3090
  14. package/dist/api/docker-registry-api.d.ts +64 -64
  15. package/dist/api/docker-registry-api.js +108 -108
  16. package/dist/api/nodes-api.d.ts +135 -0
  17. package/dist/api/nodes-api.js +270 -0
  18. package/dist/api/users-api.d.ts +135 -0
  19. package/dist/api/users-api.js +270 -0
  20. package/dist/api/workspace-api.d.ts +356 -0
  21. package/dist/api/workspace-api.js +722 -0
  22. package/dist/api.d.ts +4 -0
  23. package/dist/api.js +4 -0
  24. package/dist/esm/api/api-keys-api.d.ts +171 -0
  25. package/dist/esm/api/api-keys-api.js +332 -0
  26. package/dist/esm/api/default-api.d.ts +15 -1454
  27. package/dist/esm/api/default-api.js +41 -3088
  28. package/dist/esm/api/docker-registry-api.d.ts +64 -64
  29. package/dist/esm/api/docker-registry-api.js +108 -108
  30. package/dist/esm/api/nodes-api.d.ts +135 -0
  31. package/dist/esm/api/nodes-api.js +263 -0
  32. package/dist/esm/api/users-api.d.ts +135 -0
  33. package/dist/esm/api/users-api.js +263 -0
  34. package/dist/esm/api/workspace-api.d.ts +356 -0
  35. package/dist/esm/api/workspace-api.js +715 -0
  36. package/dist/esm/api.d.ts +4 -0
  37. package/dist/esm/api.js +4 -0
  38. package/dist/esm/models/create-workspace-dto.d.ts +1 -1
  39. package/dist/esm/models/index.d.ts +0 -8
  40. package/dist/esm/models/index.js +0 -8
  41. package/dist/esm/models/workspace-dto.d.ts +14 -0
  42. package/dist/models/create-workspace-dto.d.ts +1 -1
  43. package/dist/models/index.d.ts +0 -8
  44. package/dist/models/index.js +0 -8
  45. package/dist/models/workspace-dto.d.ts +14 -0
  46. package/models/create-workspace-dto.ts +1 -1
  47. package/models/index.ts +0 -8
  48. package/models/workspace-dto.ts +12 -0
  49. package/package.json +1 -1
  50. package/dist/esm/models/execute-request-dto.d.ts +0 -30
  51. package/dist/esm/models/execute-request-dto.js +0 -14
  52. package/dist/esm/models/execute-response-dto.d.ts +0 -30
  53. package/dist/esm/models/execute-response-dto.js +0 -14
  54. package/dist/esm/models/git-add-request-dto.d.ts +0 -30
  55. package/dist/esm/models/git-add-request-dto.js +0 -14
  56. package/dist/esm/models/git-branch-request-dto.d.ts +0 -30
  57. package/dist/esm/models/git-branch-request-dto.js +0 -14
  58. package/dist/esm/models/git-clone-request-dto.d.ts +0 -54
  59. package/dist/esm/models/git-clone-request-dto.js +0 -14
  60. package/dist/esm/models/git-commit-request-dto.d.ts +0 -42
  61. package/dist/esm/models/git-commit-request-dto.js +0 -14
  62. package/dist/esm/models/git-repo-request-dto.d.ts +0 -36
  63. package/dist/esm/models/git-repo-request-dto.js +0 -14
  64. package/dist/esm/models/replace-request-dto.d.ts +0 -36
  65. package/dist/esm/models/replace-request-dto.js +0 -14
  66. package/dist/models/execute-request-dto.d.ts +0 -30
  67. package/dist/models/execute-request-dto.js +0 -15
  68. package/dist/models/execute-response-dto.d.ts +0 -30
  69. package/dist/models/execute-response-dto.js +0 -15
  70. package/dist/models/git-add-request-dto.d.ts +0 -30
  71. package/dist/models/git-add-request-dto.js +0 -15
  72. package/dist/models/git-branch-request-dto.d.ts +0 -30
  73. package/dist/models/git-branch-request-dto.js +0 -15
  74. package/dist/models/git-clone-request-dto.d.ts +0 -54
  75. package/dist/models/git-clone-request-dto.js +0 -15
  76. package/dist/models/git-commit-request-dto.d.ts +0 -42
  77. package/dist/models/git-commit-request-dto.js +0 -15
  78. package/dist/models/git-repo-request-dto.d.ts +0 -36
  79. package/dist/models/git-repo-request-dto.js +0 -15
  80. package/dist/models/replace-request-dto.d.ts +0 -36
  81. package/dist/models/replace-request-dto.js +0 -15
  82. package/models/execute-request-dto.ts +0 -36
  83. package/models/execute-response-dto.ts +0 -36
  84. package/models/git-add-request-dto.ts +0 -36
  85. package/models/git-branch-request-dto.ts +0 -36
  86. package/models/git-clone-request-dto.ts +0 -60
  87. package/models/git-commit-request-dto.ts +0 -48
  88. package/models/git-repo-request-dto.ts +0 -42
  89. package/models/replace-request-dto.ts +0 -42
@@ -37,135 +37,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
37
37
  return {
38
38
  /**
39
39
  *
40
- * @summary Create a new API key
41
- * @param {CreateApiKeyDto} createApiKeyDto
42
40
  * @param {*} [options] Override http request option.
43
41
  * @throws {RequiredError}
44
42
  */
45
- apiKeyControllerCreateApiKey: (createApiKeyDto_1, ...args_1) => __awaiter(this, [createApiKeyDto_1, ...args_1], void 0, function* (createApiKeyDto, options = {}) {
46
- // verify required parameter 'createApiKeyDto' is not null or undefined
47
- (0, common_1.assertParamExists)('apiKeyControllerCreateApiKey', 'createApiKeyDto', createApiKeyDto);
48
- const localVarPath = `/api-keys`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
- let baseOptions;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- }
55
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
- const localVarHeaderParameter = {};
57
- const localVarQueryParameter = {};
58
- // authentication oauth2 required
59
- // oauth required
60
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
61
- localVarHeaderParameter['Content-Type'] = 'application/json';
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
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApiKeyDto, localVarRequestOptions, configuration);
66
- return {
67
- url: (0, common_1.toPathString)(localVarUrlObj),
68
- options: localVarRequestOptions,
69
- };
70
- }),
71
- /**
72
- *
73
- * @summary Delete an API key by name
74
- * @param {string} name
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- */
78
- apiKeyControllerDeleteApiKey: (name_1, ...args_2) => __awaiter(this, [name_1, ...args_2], void 0, function* (name, options = {}) {
79
- // verify required parameter 'name' is not null or undefined
80
- (0, common_1.assertParamExists)('apiKeyControllerDeleteApiKey', 'name', name);
81
- const localVarPath = `/api-keys/{name}`
82
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
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: 'DELETE' }, 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
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
- return {
99
- url: (0, common_1.toPathString)(localVarUrlObj),
100
- options: localVarRequestOptions,
101
- };
102
- }),
103
- /**
104
- *
105
- * @summary Get a specific API key by name
106
- * @param {string} name
107
- * @param {*} [options] Override http request option.
108
- * @throws {RequiredError}
109
- */
110
- apiKeyControllerGetApiKey: (name_2, ...args_3) => __awaiter(this, [name_2, ...args_3], void 0, function* (name, options = {}) {
111
- // verify required parameter 'name' is not null or undefined
112
- (0, common_1.assertParamExists)('apiKeyControllerGetApiKey', 'name', name);
113
- const localVarPath = `/api-keys/{name}`
114
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
115
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
- let baseOptions;
118
- if (configuration) {
119
- baseOptions = configuration.baseOptions;
120
- }
121
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
122
- const localVarHeaderParameter = {};
123
- const localVarQueryParameter = {};
124
- // authentication oauth2 required
125
- // oauth required
126
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
127
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
- return {
131
- url: (0, common_1.toPathString)(localVarUrlObj),
132
- options: localVarRequestOptions,
133
- };
134
- }),
135
- /**
136
- *
137
- * @summary Get all API keys for the user
138
- * @param {*} [options] Override http request option.
139
- * @throws {RequiredError}
140
- */
141
- apiKeyControllerGetApiKeys: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
142
- const localVarPath = `/api-keys`;
143
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
144
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
145
- let baseOptions;
146
- if (configuration) {
147
- baseOptions = configuration.baseOptions;
148
- }
149
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
150
- const localVarHeaderParameter = {};
151
- const localVarQueryParameter = {};
152
- // authentication oauth2 required
153
- // oauth required
154
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
155
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
156
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
158
- return {
159
- url: (0, common_1.toPathString)(localVarUrlObj),
160
- options: localVarRequestOptions,
161
- };
162
- }),
163
- /**
164
- *
165
- * @param {*} [options] Override http request option.
166
- * @throws {RequiredError}
167
- */
168
- appControllerGetHello: (...args_5) => __awaiter(this, [...args_5], void 0, function* (options = {}) {
43
+ appControllerGetHello: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
169
44
  const localVarPath = `/`;
170
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
171
46
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -184,2554 +59,58 @@ const DefaultApiAxiosParamCreator = function (configuration) {
184
59
  options: localVarRequestOptions,
185
60
  };
186
61
  }),
187
- /**
188
- *
189
- * @param {object} body
190
- * @param {*} [options] Override http request option.
191
- * @throws {RequiredError}
192
- */
193
- nodeControllerCreate: (body_1, ...args_6) => __awaiter(this, [body_1, ...args_6], void 0, function* (body, options = {}) {
194
- // verify required parameter 'body' is not null or undefined
195
- (0, common_1.assertParamExists)('nodeControllerCreate', 'body', body);
196
- const localVarPath = `/nodes`;
197
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
199
- let baseOptions;
200
- if (configuration) {
201
- baseOptions = configuration.baseOptions;
202
- }
203
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
204
- const localVarHeaderParameter = {};
205
- const localVarQueryParameter = {};
206
- // authentication oauth2 required
207
- // oauth required
208
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
209
- localVarHeaderParameter['Content-Type'] = 'application/json';
210
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
211
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
212
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
213
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
214
- return {
215
- url: (0, common_1.toPathString)(localVarUrlObj),
216
- options: localVarRequestOptions,
217
- };
218
- }),
219
- /**
220
- *
221
- * @param {*} [options] Override http request option.
222
- * @throws {RequiredError}
223
- */
224
- nodeControllerFindAll: (...args_7) => __awaiter(this, [...args_7], void 0, function* (options = {}) {
225
- const localVarPath = `/nodes`;
226
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
227
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
228
- let baseOptions;
229
- if (configuration) {
230
- baseOptions = configuration.baseOptions;
231
- }
232
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
233
- const localVarHeaderParameter = {};
234
- const localVarQueryParameter = {};
235
- // authentication oauth2 required
236
- // oauth required
237
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
238
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
- return {
242
- url: (0, common_1.toPathString)(localVarUrlObj),
243
- options: localVarRequestOptions,
244
- };
245
- }),
246
- /**
247
- *
248
- * @param {string} id
249
- * @param {*} [options] Override http request option.
250
- * @throws {RequiredError}
251
- */
252
- nodeControllerUpdateSchedulingStatus: (id_1, ...args_8) => __awaiter(this, [id_1, ...args_8], void 0, function* (id, options = {}) {
253
- // verify required parameter 'id' is not null or undefined
254
- (0, common_1.assertParamExists)('nodeControllerUpdateSchedulingStatus', 'id', id);
255
- const localVarPath = `/nodes/{id}/scheduling`
256
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
257
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
258
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
259
- let baseOptions;
260
- if (configuration) {
261
- baseOptions = configuration.baseOptions;
262
- }
263
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
264
- const localVarHeaderParameter = {};
265
- const localVarQueryParameter = {};
266
- // authentication oauth2 required
267
- // oauth required
268
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
269
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
270
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
272
- return {
273
- url: (0, common_1.toPathString)(localVarUrlObj),
274
- options: localVarRequestOptions,
275
- };
276
- }),
277
- /**
278
- *
279
- * @param {object} body
280
- * @param {*} [options] Override http request option.
281
- * @throws {RequiredError}
282
- */
283
- userControllerCreate: (body_2, ...args_9) => __awaiter(this, [body_2, ...args_9], void 0, function* (body, options = {}) {
284
- // verify required parameter 'body' is not null or undefined
285
- (0, common_1.assertParamExists)('userControllerCreate', 'body', body);
286
- const localVarPath = `/users`;
287
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
289
- let baseOptions;
290
- if (configuration) {
291
- baseOptions = configuration.baseOptions;
292
- }
293
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
294
- const localVarHeaderParameter = {};
295
- const localVarQueryParameter = {};
296
- // authentication oauth2 required
297
- // oauth required
298
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
299
- localVarHeaderParameter['Content-Type'] = 'application/json';
300
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
301
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
303
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
304
- return {
305
- url: (0, common_1.toPathString)(localVarUrlObj),
306
- options: localVarRequestOptions,
307
- };
308
- }),
62
+ };
63
+ };
64
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
65
+ /**
66
+ * DefaultApi - functional programming interface
67
+ * @export
68
+ */
69
+ const DefaultApiFp = function (configuration) {
70
+ const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
71
+ return {
309
72
  /**
310
73
  *
311
74
  * @param {*} [options] Override http request option.
312
75
  * @throws {RequiredError}
313
76
  */
314
- userControllerFindAll: (...args_10) => __awaiter(this, [...args_10], void 0, function* (options = {}) {
315
- const localVarPath = `/users`;
316
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
318
- let baseOptions;
319
- if (configuration) {
320
- baseOptions = configuration.baseOptions;
321
- }
322
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
323
- const localVarHeaderParameter = {};
324
- const localVarQueryParameter = {};
325
- // authentication oauth2 required
326
- // oauth required
327
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
328
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
329
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
331
- return {
332
- url: (0, common_1.toPathString)(localVarUrlObj),
333
- options: localVarRequestOptions,
334
- };
335
- }),
77
+ appControllerGetHello(options) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ var _a, _b, _c;
80
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetHello(options);
81
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
82
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.appControllerGetHello']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
83
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
84
+ });
85
+ },
86
+ };
87
+ };
88
+ exports.DefaultApiFp = DefaultApiFp;
89
+ /**
90
+ * DefaultApi - factory interface
91
+ * @export
92
+ */
93
+ const DefaultApiFactory = function (configuration, basePath, axios) {
94
+ const localVarFp = (0, exports.DefaultApiFp)(configuration);
95
+ return {
336
96
  /**
337
97
  *
338
- * @param {string} id
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- userControllerRegenerateKeyPair: (id_2, ...args_11) => __awaiter(this, [id_2, ...args_11], void 0, function* (id, options = {}) {
343
- // verify required parameter 'id' is not null or undefined
344
- (0, common_1.assertParamExists)('userControllerRegenerateKeyPair', 'id', id);
345
- const localVarPath = `/users/{id}/regenerate-key-pair`
346
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
347
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
348
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
349
- let baseOptions;
350
- if (configuration) {
351
- baseOptions = configuration.baseOptions;
352
- }
353
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
354
- const localVarHeaderParameter = {};
355
- const localVarQueryParameter = {};
356
- // authentication oauth2 required
357
- // oauth required
358
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
359
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
- return {
363
- url: (0, common_1.toPathString)(localVarUrlObj),
364
- options: localVarRequestOptions,
365
- };
366
- }),
367
- /**
368
- * Create folder inside workspace
369
- * @summary Create folder
370
- * @param {string} workspaceId
371
- * @param {string} path
372
- * @param {string} mode
373
98
  * @param {*} [options] Override http request option.
374
99
  * @throws {RequiredError}
375
100
  */
376
- workspaceControllerCreateFolder: (workspaceId_1, path_1, mode_1, ...args_12) => __awaiter(this, [workspaceId_1, path_1, mode_1, ...args_12], void 0, function* (workspaceId, path, mode, options = {}) {
377
- // verify required parameter 'workspaceId' is not null or undefined
378
- (0, common_1.assertParamExists)('workspaceControllerCreateFolder', 'workspaceId', workspaceId);
379
- // verify required parameter 'path' is not null or undefined
380
- (0, common_1.assertParamExists)('workspaceControllerCreateFolder', 'path', path);
381
- // verify required parameter 'mode' is not null or undefined
382
- (0, common_1.assertParamExists)('workspaceControllerCreateFolder', 'mode', mode);
383
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/folder`
384
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
385
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
386
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
387
- let baseOptions;
388
- if (configuration) {
389
- baseOptions = configuration.baseOptions;
390
- }
391
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
392
- const localVarHeaderParameter = {};
393
- const localVarQueryParameter = {};
394
- // authentication oauth2 required
395
- // oauth required
396
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
397
- if (path !== undefined) {
398
- localVarQueryParameter['path'] = path;
399
- }
400
- if (mode !== undefined) {
401
- localVarQueryParameter['mode'] = mode;
402
- }
403
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
404
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
405
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
406
- return {
407
- url: (0, common_1.toPathString)(localVarUrlObj),
408
- options: localVarRequestOptions,
409
- };
410
- }),
411
- /**
412
- *
413
- * @summary Create a workspace snapshot
414
- * @param {string} workspaceId
415
- * @param {*} [options] Override http request option.
416
- * @throws {RequiredError}
417
- */
418
- workspaceControllerCreateSnapshot: (workspaceId_2, ...args_13) => __awaiter(this, [workspaceId_2, ...args_13], void 0, function* (workspaceId, options = {}) {
419
- // verify required parameter 'workspaceId' is not null or undefined
420
- (0, common_1.assertParamExists)('workspaceControllerCreateSnapshot', 'workspaceId', workspaceId);
421
- const localVarPath = `/workspace/{workspaceId}/snapshot`
422
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
423
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
424
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
425
- let baseOptions;
426
- if (configuration) {
427
- baseOptions = configuration.baseOptions;
428
- }
429
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
430
- const localVarHeaderParameter = {};
431
- const localVarQueryParameter = {};
432
- // authentication oauth2 required
433
- // oauth required
434
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
435
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
436
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
438
- return {
439
- url: (0, common_1.toPathString)(localVarUrlObj),
440
- options: localVarRequestOptions,
441
- };
442
- }),
443
- /**
444
- *
445
- * @param {CreateWorkspaceDto} createWorkspaceDto
446
- * @param {*} [options] Override http request option.
447
- * @throws {RequiredError}
448
- */
449
- workspaceControllerCreateWorkspace: (createWorkspaceDto_1, ...args_14) => __awaiter(this, [createWorkspaceDto_1, ...args_14], void 0, function* (createWorkspaceDto, options = {}) {
450
- // verify required parameter 'createWorkspaceDto' is not null or undefined
451
- (0, common_1.assertParamExists)('workspaceControllerCreateWorkspace', 'createWorkspaceDto', createWorkspaceDto);
452
- const localVarPath = `/workspace`;
453
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
454
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
455
- let baseOptions;
456
- if (configuration) {
457
- baseOptions = configuration.baseOptions;
458
- }
459
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
460
- const localVarHeaderParameter = {};
461
- const localVarQueryParameter = {};
462
- // authentication oauth2 required
463
- // oauth required
464
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
465
- localVarHeaderParameter['Content-Type'] = 'application/json';
466
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
467
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
469
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkspaceDto, localVarRequestOptions, configuration);
470
- return {
471
- url: (0, common_1.toPathString)(localVarUrlObj),
472
- options: localVarRequestOptions,
473
- };
474
- }),
475
- /**
476
- * Delete file inside workspace
477
- * @summary Delete file
478
- * @param {string} workspaceId
479
- * @param {string} path
480
- * @param {*} [options] Override http request option.
481
- * @throws {RequiredError}
482
- */
483
- workspaceControllerDeleteFile: (workspaceId_3, path_2, ...args_15) => __awaiter(this, [workspaceId_3, path_2, ...args_15], void 0, function* (workspaceId, path, options = {}) {
484
- // verify required parameter 'workspaceId' is not null or undefined
485
- (0, common_1.assertParamExists)('workspaceControllerDeleteFile', 'workspaceId', workspaceId);
486
- // verify required parameter 'path' is not null or undefined
487
- (0, common_1.assertParamExists)('workspaceControllerDeleteFile', 'path', path);
488
- const localVarPath = `/workspace/{workspaceId}/toolbox/files`
489
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
490
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
491
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
492
- let baseOptions;
493
- if (configuration) {
494
- baseOptions = configuration.baseOptions;
495
- }
496
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
497
- const localVarHeaderParameter = {};
498
- const localVarQueryParameter = {};
499
- // authentication oauth2 required
500
- // oauth required
501
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
502
- if (path !== undefined) {
503
- localVarQueryParameter['path'] = path;
504
- }
505
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
506
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
507
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
508
- return {
509
- url: (0, common_1.toPathString)(localVarUrlObj),
510
- options: localVarRequestOptions,
511
- };
512
- }),
513
- /**
514
- * Download file from workspace
515
- * @summary Download file
516
- * @param {string} workspaceId
517
- * @param {string} path
518
- * @param {*} [options] Override http request option.
519
- * @throws {RequiredError}
520
- */
521
- workspaceControllerDownloadFile: (workspaceId_4, path_3, ...args_16) => __awaiter(this, [workspaceId_4, path_3, ...args_16], void 0, function* (workspaceId, path, options = {}) {
522
- // verify required parameter 'workspaceId' is not null or undefined
523
- (0, common_1.assertParamExists)('workspaceControllerDownloadFile', 'workspaceId', workspaceId);
524
- // verify required parameter 'path' is not null or undefined
525
- (0, common_1.assertParamExists)('workspaceControllerDownloadFile', 'path', path);
526
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/download`
527
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
528
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
529
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
530
- let baseOptions;
531
- if (configuration) {
532
- baseOptions = configuration.baseOptions;
533
- }
534
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
535
- const localVarHeaderParameter = {};
536
- const localVarQueryParameter = {};
537
- // authentication oauth2 required
538
- // oauth required
539
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
540
- if (path !== undefined) {
541
- localVarQueryParameter['path'] = path;
542
- }
543
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
544
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
545
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
546
- return {
547
- url: (0, common_1.toPathString)(localVarUrlObj),
548
- options: localVarRequestOptions,
549
- };
550
- }),
551
- /**
552
- * Execute command synchronously inside workspace
553
- * @summary Execute command
554
- * @param {string} workspaceId
555
- * @param {ExecuteRequestDto} executeRequestDto
556
- * @param {*} [options] Override http request option.
557
- * @throws {RequiredError}
558
- */
559
- workspaceControllerExecuteCommand: (workspaceId_5, executeRequestDto_1, ...args_17) => __awaiter(this, [workspaceId_5, executeRequestDto_1, ...args_17], void 0, function* (workspaceId, executeRequestDto, options = {}) {
560
- // verify required parameter 'workspaceId' is not null or undefined
561
- (0, common_1.assertParamExists)('workspaceControllerExecuteCommand', 'workspaceId', workspaceId);
562
- // verify required parameter 'executeRequestDto' is not null or undefined
563
- (0, common_1.assertParamExists)('workspaceControllerExecuteCommand', 'executeRequestDto', executeRequestDto);
564
- const localVarPath = `/workspace/{workspaceId}/toolbox/process/execute`
565
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
566
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
567
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
568
- let baseOptions;
569
- if (configuration) {
570
- baseOptions = configuration.baseOptions;
571
- }
572
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
573
- const localVarHeaderParameter = {};
574
- const localVarQueryParameter = {};
575
- // authentication oauth2 required
576
- // oauth required
577
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
578
- localVarHeaderParameter['Content-Type'] = 'application/json';
579
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
580
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
581
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
582
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeRequestDto, localVarRequestOptions, configuration);
583
- return {
584
- url: (0, common_1.toPathString)(localVarUrlObj),
585
- options: localVarRequestOptions,
586
- };
587
- }),
588
- /**
589
- * Search for text/pattern inside workspace files
590
- * @summary Search for text/pattern in files
591
- * @param {string} workspaceId
592
- * @param {string} path
593
- * @param {string} pattern
594
- * @param {*} [options] Override http request option.
595
- * @throws {RequiredError}
596
- */
597
- workspaceControllerFindInFiles: (workspaceId_6, path_4, pattern_1, ...args_18) => __awaiter(this, [workspaceId_6, path_4, pattern_1, ...args_18], void 0, function* (workspaceId, path, pattern, options = {}) {
598
- // verify required parameter 'workspaceId' is not null or undefined
599
- (0, common_1.assertParamExists)('workspaceControllerFindInFiles', 'workspaceId', workspaceId);
600
- // verify required parameter 'path' is not null or undefined
601
- (0, common_1.assertParamExists)('workspaceControllerFindInFiles', 'path', path);
602
- // verify required parameter 'pattern' is not null or undefined
603
- (0, common_1.assertParamExists)('workspaceControllerFindInFiles', 'pattern', pattern);
604
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/find`
605
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
606
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
607
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
608
- let baseOptions;
609
- if (configuration) {
610
- baseOptions = configuration.baseOptions;
611
- }
612
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
613
- const localVarHeaderParameter = {};
614
- const localVarQueryParameter = {};
615
- // authentication oauth2 required
616
- // oauth required
617
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
618
- if (path !== undefined) {
619
- localVarQueryParameter['path'] = path;
620
- }
621
- if (pattern !== undefined) {
622
- localVarQueryParameter['pattern'] = pattern;
623
- }
624
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
625
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
626
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
627
- return {
628
- url: (0, common_1.toPathString)(localVarUrlObj),
629
- options: localVarRequestOptions,
630
- };
631
- }),
632
- /**
633
- * Get file info inside workspace
634
- * @summary Get file info
635
- * @param {string} workspaceId
636
- * @param {string} path
637
- * @param {*} [options] Override http request option.
638
- * @throws {RequiredError}
639
- */
640
- workspaceControllerGetFileInfo: (workspaceId_7, path_5, ...args_19) => __awaiter(this, [workspaceId_7, path_5, ...args_19], void 0, function* (workspaceId, path, options = {}) {
641
- // verify required parameter 'workspaceId' is not null or undefined
642
- (0, common_1.assertParamExists)('workspaceControllerGetFileInfo', 'workspaceId', workspaceId);
643
- // verify required parameter 'path' is not null or undefined
644
- (0, common_1.assertParamExists)('workspaceControllerGetFileInfo', 'path', path);
645
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/info`
646
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
647
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
648
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
649
- let baseOptions;
650
- if (configuration) {
651
- baseOptions = configuration.baseOptions;
652
- }
653
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
654
- const localVarHeaderParameter = {};
655
- const localVarQueryParameter = {};
656
- // authentication oauth2 required
657
- // oauth required
658
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
659
- if (path !== undefined) {
660
- localVarQueryParameter['path'] = path;
661
- }
662
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
663
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
664
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
665
- return {
666
- url: (0, common_1.toPathString)(localVarUrlObj),
667
- options: localVarRequestOptions,
668
- };
669
- }),
670
- /**
671
- * Get workspace project directory
672
- * @summary Get workspace project dir
673
- * @param {string} workspaceId
674
- * @param {*} [options] Override http request option.
675
- * @throws {RequiredError}
676
- */
677
- workspaceControllerGetProjectDir: (workspaceId_8, ...args_20) => __awaiter(this, [workspaceId_8, ...args_20], void 0, function* (workspaceId, options = {}) {
678
- // verify required parameter 'workspaceId' is not null or undefined
679
- (0, common_1.assertParamExists)('workspaceControllerGetProjectDir', 'workspaceId', workspaceId);
680
- const localVarPath = `/workspace/{workspaceId}/toolbox/project-dir`
681
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
682
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
683
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
684
- let baseOptions;
685
- if (configuration) {
686
- baseOptions = configuration.baseOptions;
687
- }
688
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
689
- const localVarHeaderParameter = {};
690
- const localVarQueryParameter = {};
691
- // authentication oauth2 required
692
- // oauth required
693
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
694
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
695
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
696
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
697
- return {
698
- url: (0, common_1.toPathString)(localVarUrlObj),
699
- options: localVarRequestOptions,
700
- };
701
- }),
702
- /**
703
- *
704
- * @param {string} workspaceId
705
- * @param {boolean} [verbose] Include verbose output
706
- * @param {*} [options] Override http request option.
707
- * @throws {RequiredError}
708
- */
709
- workspaceControllerGetWorkspace: (workspaceId_9, verbose_1, ...args_21) => __awaiter(this, [workspaceId_9, verbose_1, ...args_21], void 0, function* (workspaceId, verbose, options = {}) {
710
- // verify required parameter 'workspaceId' is not null or undefined
711
- (0, common_1.assertParamExists)('workspaceControllerGetWorkspace', 'workspaceId', workspaceId);
712
- const localVarPath = `/workspace/{workspaceId}`
713
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
714
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
715
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
716
- let baseOptions;
717
- if (configuration) {
718
- baseOptions = configuration.baseOptions;
719
- }
720
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
721
- const localVarHeaderParameter = {};
722
- const localVarQueryParameter = {};
723
- // authentication oauth2 required
724
- // oauth required
725
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
726
- if (verbose !== undefined) {
727
- localVarQueryParameter['verbose'] = verbose;
728
- }
729
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
730
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
731
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
732
- return {
733
- url: (0, common_1.toPathString)(localVarUrlObj),
734
- options: localVarRequestOptions,
735
- };
736
- }),
737
- /**
738
- * Add files to git commit
739
- * @summary Add files
740
- * @param {string} workspaceId
741
- * @param {GitAddRequestDto} gitAddRequestDto
742
- * @param {*} [options] Override http request option.
743
- * @throws {RequiredError}
744
- */
745
- workspaceControllerGitAddFiles: (workspaceId_10, gitAddRequestDto_1, ...args_22) => __awaiter(this, [workspaceId_10, gitAddRequestDto_1, ...args_22], void 0, function* (workspaceId, gitAddRequestDto, options = {}) {
746
- // verify required parameter 'workspaceId' is not null or undefined
747
- (0, common_1.assertParamExists)('workspaceControllerGitAddFiles', 'workspaceId', workspaceId);
748
- // verify required parameter 'gitAddRequestDto' is not null or undefined
749
- (0, common_1.assertParamExists)('workspaceControllerGitAddFiles', 'gitAddRequestDto', gitAddRequestDto);
750
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/add`
751
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
752
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
753
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
754
- let baseOptions;
755
- if (configuration) {
756
- baseOptions = configuration.baseOptions;
757
- }
758
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
759
- const localVarHeaderParameter = {};
760
- const localVarQueryParameter = {};
761
- // authentication oauth2 required
762
- // oauth required
763
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
764
- localVarHeaderParameter['Content-Type'] = 'application/json';
765
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
766
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
767
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
768
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitAddRequestDto, localVarRequestOptions, configuration);
769
- return {
770
- url: (0, common_1.toPathString)(localVarUrlObj),
771
- options: localVarRequestOptions,
772
- };
773
- }),
774
- /**
775
- * Get branch list from git repository
776
- * @summary Get branch list
777
- * @param {string} workspaceId
778
- * @param {string} path
779
- * @param {*} [options] Override http request option.
780
- * @throws {RequiredError}
781
- */
782
- workspaceControllerGitBranchList: (workspaceId_11, path_6, ...args_23) => __awaiter(this, [workspaceId_11, path_6, ...args_23], void 0, function* (workspaceId, path, options = {}) {
783
- // verify required parameter 'workspaceId' is not null or undefined
784
- (0, common_1.assertParamExists)('workspaceControllerGitBranchList', 'workspaceId', workspaceId);
785
- // verify required parameter 'path' is not null or undefined
786
- (0, common_1.assertParamExists)('workspaceControllerGitBranchList', 'path', path);
787
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/branches`
788
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
789
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
790
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
791
- let baseOptions;
792
- if (configuration) {
793
- baseOptions = configuration.baseOptions;
794
- }
795
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
796
- const localVarHeaderParameter = {};
797
- const localVarQueryParameter = {};
798
- // authentication oauth2 required
799
- // oauth required
800
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
801
- if (path !== undefined) {
802
- localVarQueryParameter['path'] = path;
803
- }
804
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
805
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
806
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
807
- return {
808
- url: (0, common_1.toPathString)(localVarUrlObj),
809
- options: localVarRequestOptions,
810
- };
811
- }),
812
- /**
813
- * Clone git repository
814
- * @summary Clone repository
815
- * @param {string} workspaceId
816
- * @param {GitCloneRequestDto} gitCloneRequestDto
817
- * @param {*} [options] Override http request option.
818
- * @throws {RequiredError}
819
- */
820
- workspaceControllerGitCloneRepository: (workspaceId_12, gitCloneRequestDto_1, ...args_24) => __awaiter(this, [workspaceId_12, gitCloneRequestDto_1, ...args_24], void 0, function* (workspaceId, gitCloneRequestDto, options = {}) {
821
- // verify required parameter 'workspaceId' is not null or undefined
822
- (0, common_1.assertParamExists)('workspaceControllerGitCloneRepository', 'workspaceId', workspaceId);
823
- // verify required parameter 'gitCloneRequestDto' is not null or undefined
824
- (0, common_1.assertParamExists)('workspaceControllerGitCloneRepository', 'gitCloneRequestDto', gitCloneRequestDto);
825
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/clone`
826
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
827
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
828
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
829
- let baseOptions;
830
- if (configuration) {
831
- baseOptions = configuration.baseOptions;
832
- }
833
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
834
- const localVarHeaderParameter = {};
835
- const localVarQueryParameter = {};
836
- // authentication oauth2 required
837
- // oauth required
838
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
839
- localVarHeaderParameter['Content-Type'] = 'application/json';
840
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
841
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
842
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
843
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCloneRequestDto, localVarRequestOptions, configuration);
844
- return {
845
- url: (0, common_1.toPathString)(localVarUrlObj),
846
- options: localVarRequestOptions,
847
- };
848
- }),
849
- /**
850
- * Commit changes to git repository
851
- * @summary Commit changes
852
- * @param {string} workspaceId
853
- * @param {GitCommitRequestDto} gitCommitRequestDto
854
- * @param {*} [options] Override http request option.
855
- * @throws {RequiredError}
856
- */
857
- workspaceControllerGitCommitChanges: (workspaceId_13, gitCommitRequestDto_1, ...args_25) => __awaiter(this, [workspaceId_13, gitCommitRequestDto_1, ...args_25], void 0, function* (workspaceId, gitCommitRequestDto, options = {}) {
858
- // verify required parameter 'workspaceId' is not null or undefined
859
- (0, common_1.assertParamExists)('workspaceControllerGitCommitChanges', 'workspaceId', workspaceId);
860
- // verify required parameter 'gitCommitRequestDto' is not null or undefined
861
- (0, common_1.assertParamExists)('workspaceControllerGitCommitChanges', 'gitCommitRequestDto', gitCommitRequestDto);
862
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/commit`
863
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
864
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
865
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
866
- let baseOptions;
867
- if (configuration) {
868
- baseOptions = configuration.baseOptions;
869
- }
870
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
871
- const localVarHeaderParameter = {};
872
- const localVarQueryParameter = {};
873
- // authentication oauth2 required
874
- // oauth required
875
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
876
- localVarHeaderParameter['Content-Type'] = 'application/json';
877
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
878
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
879
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
880
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCommitRequestDto, localVarRequestOptions, configuration);
881
- return {
882
- url: (0, common_1.toPathString)(localVarUrlObj),
883
- options: localVarRequestOptions,
884
- };
885
- }),
886
- /**
887
- * Get commit history from git repository
888
- * @summary Get commit history
889
- * @param {string} workspaceId
890
- * @param {string} path
891
- * @param {*} [options] Override http request option.
892
- * @throws {RequiredError}
893
- */
894
- workspaceControllerGitCommitHistory: (workspaceId_14, path_7, ...args_26) => __awaiter(this, [workspaceId_14, path_7, ...args_26], void 0, function* (workspaceId, path, options = {}) {
895
- // verify required parameter 'workspaceId' is not null or undefined
896
- (0, common_1.assertParamExists)('workspaceControllerGitCommitHistory', 'workspaceId', workspaceId);
897
- // verify required parameter 'path' is not null or undefined
898
- (0, common_1.assertParamExists)('workspaceControllerGitCommitHistory', 'path', path);
899
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/history`
900
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
901
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
902
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
903
- let baseOptions;
904
- if (configuration) {
905
- baseOptions = configuration.baseOptions;
906
- }
907
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
908
- const localVarHeaderParameter = {};
909
- const localVarQueryParameter = {};
910
- // authentication oauth2 required
911
- // oauth required
912
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
913
- if (path !== undefined) {
914
- localVarQueryParameter['path'] = path;
915
- }
916
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
917
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
918
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
919
- return {
920
- url: (0, common_1.toPathString)(localVarUrlObj),
921
- options: localVarRequestOptions,
922
- };
923
- }),
924
- /**
925
- * Create branch on git repository
926
- * @summary Create branch
927
- * @param {string} workspaceId
928
- * @param {GitBranchRequestDto} gitBranchRequestDto
929
- * @param {*} [options] Override http request option.
930
- * @throws {RequiredError}
931
- */
932
- workspaceControllerGitCreateBranch: (workspaceId_15, gitBranchRequestDto_1, ...args_27) => __awaiter(this, [workspaceId_15, gitBranchRequestDto_1, ...args_27], void 0, function* (workspaceId, gitBranchRequestDto, options = {}) {
933
- // verify required parameter 'workspaceId' is not null or undefined
934
- (0, common_1.assertParamExists)('workspaceControllerGitCreateBranch', 'workspaceId', workspaceId);
935
- // verify required parameter 'gitBranchRequestDto' is not null or undefined
936
- (0, common_1.assertParamExists)('workspaceControllerGitCreateBranch', 'gitBranchRequestDto', gitBranchRequestDto);
937
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/branches`
938
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
939
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
940
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
941
- let baseOptions;
942
- if (configuration) {
943
- baseOptions = configuration.baseOptions;
944
- }
945
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
946
- const localVarHeaderParameter = {};
947
- const localVarQueryParameter = {};
948
- // authentication oauth2 required
949
- // oauth required
950
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
951
- localVarHeaderParameter['Content-Type'] = 'application/json';
952
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
953
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
954
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
955
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitBranchRequestDto, localVarRequestOptions, configuration);
956
- return {
957
- url: (0, common_1.toPathString)(localVarUrlObj),
958
- options: localVarRequestOptions,
959
- };
960
- }),
961
- /**
962
- * Pull changes from remote
963
- * @summary Pull changes
964
- * @param {string} workspaceId
965
- * @param {GitRepoRequestDto} gitRepoRequestDto
966
- * @param {*} [options] Override http request option.
967
- * @throws {RequiredError}
968
- */
969
- workspaceControllerGitPullChanges: (workspaceId_16, gitRepoRequestDto_1, ...args_28) => __awaiter(this, [workspaceId_16, gitRepoRequestDto_1, ...args_28], void 0, function* (workspaceId, gitRepoRequestDto, options = {}) {
970
- // verify required parameter 'workspaceId' is not null or undefined
971
- (0, common_1.assertParamExists)('workspaceControllerGitPullChanges', 'workspaceId', workspaceId);
972
- // verify required parameter 'gitRepoRequestDto' is not null or undefined
973
- (0, common_1.assertParamExists)('workspaceControllerGitPullChanges', 'gitRepoRequestDto', gitRepoRequestDto);
974
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/pull`
975
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
976
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
977
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
978
- let baseOptions;
979
- if (configuration) {
980
- baseOptions = configuration.baseOptions;
981
- }
982
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
983
- const localVarHeaderParameter = {};
984
- const localVarQueryParameter = {};
985
- // authentication oauth2 required
986
- // oauth required
987
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
988
- localVarHeaderParameter['Content-Type'] = 'application/json';
989
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
990
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
991
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
992
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequestDto, localVarRequestOptions, configuration);
993
- return {
994
- url: (0, common_1.toPathString)(localVarUrlObj),
995
- options: localVarRequestOptions,
996
- };
997
- }),
998
- /**
999
- * Push changes to remote
1000
- * @summary Push changes
1001
- * @param {string} workspaceId
1002
- * @param {GitRepoRequestDto} gitRepoRequestDto
1003
- * @param {*} [options] Override http request option.
1004
- * @throws {RequiredError}
1005
- */
1006
- workspaceControllerGitPushChanges: (workspaceId_17, gitRepoRequestDto_2, ...args_29) => __awaiter(this, [workspaceId_17, gitRepoRequestDto_2, ...args_29], void 0, function* (workspaceId, gitRepoRequestDto, options = {}) {
1007
- // verify required parameter 'workspaceId' is not null or undefined
1008
- (0, common_1.assertParamExists)('workspaceControllerGitPushChanges', 'workspaceId', workspaceId);
1009
- // verify required parameter 'gitRepoRequestDto' is not null or undefined
1010
- (0, common_1.assertParamExists)('workspaceControllerGitPushChanges', 'gitRepoRequestDto', gitRepoRequestDto);
1011
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/push`
1012
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1013
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1014
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1015
- let baseOptions;
1016
- if (configuration) {
1017
- baseOptions = configuration.baseOptions;
1018
- }
1019
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1020
- const localVarHeaderParameter = {};
1021
- const localVarQueryParameter = {};
1022
- // authentication oauth2 required
1023
- // oauth required
1024
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1025
- localVarHeaderParameter['Content-Type'] = 'application/json';
1026
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1027
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1028
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1029
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequestDto, localVarRequestOptions, configuration);
1030
- return {
1031
- url: (0, common_1.toPathString)(localVarUrlObj),
1032
- options: localVarRequestOptions,
1033
- };
1034
- }),
1035
- /**
1036
- * Get status from git repository
1037
- * @summary Get git status
1038
- * @param {string} workspaceId
1039
- * @param {string} path
1040
- * @param {*} [options] Override http request option.
1041
- * @throws {RequiredError}
1042
- */
1043
- workspaceControllerGitStatus: (workspaceId_18, path_8, ...args_30) => __awaiter(this, [workspaceId_18, path_8, ...args_30], void 0, function* (workspaceId, path, options = {}) {
1044
- // verify required parameter 'workspaceId' is not null or undefined
1045
- (0, common_1.assertParamExists)('workspaceControllerGitStatus', 'workspaceId', workspaceId);
1046
- // verify required parameter 'path' is not null or undefined
1047
- (0, common_1.assertParamExists)('workspaceControllerGitStatus', 'path', path);
1048
- const localVarPath = `/workspace/{workspaceId}/toolbox/git/status`
1049
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1050
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1051
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1052
- let baseOptions;
1053
- if (configuration) {
1054
- baseOptions = configuration.baseOptions;
1055
- }
1056
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1057
- const localVarHeaderParameter = {};
1058
- const localVarQueryParameter = {};
1059
- // authentication oauth2 required
1060
- // oauth required
1061
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1062
- if (path !== undefined) {
1063
- localVarQueryParameter['path'] = path;
1064
- }
1065
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1066
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1067
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1068
- return {
1069
- url: (0, common_1.toPathString)(localVarUrlObj),
1070
- options: localVarRequestOptions,
1071
- };
1072
- }),
1073
- /**
1074
- * List files inside workspace
1075
- * @summary List files
1076
- * @param {string} workspaceId
1077
- * @param {string} [path]
1078
- * @param {*} [options] Override http request option.
1079
- * @throws {RequiredError}
1080
- */
1081
- workspaceControllerListFiles: (workspaceId_19, path_9, ...args_31) => __awaiter(this, [workspaceId_19, path_9, ...args_31], void 0, function* (workspaceId, path, options = {}) {
1082
- // verify required parameter 'workspaceId' is not null or undefined
1083
- (0, common_1.assertParamExists)('workspaceControllerListFiles', 'workspaceId', workspaceId);
1084
- const localVarPath = `/workspace/{workspaceId}/toolbox/files`
1085
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1086
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1087
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1088
- let baseOptions;
1089
- if (configuration) {
1090
- baseOptions = configuration.baseOptions;
1091
- }
1092
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1093
- const localVarHeaderParameter = {};
1094
- const localVarQueryParameter = {};
1095
- // authentication oauth2 required
1096
- // oauth required
1097
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1098
- if (path !== undefined) {
1099
- localVarQueryParameter['path'] = path;
1100
- }
1101
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1102
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1103
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1104
- return {
1105
- url: (0, common_1.toPathString)(localVarUrlObj),
1106
- options: localVarRequestOptions,
1107
- };
1108
- }),
1109
- /**
1110
- *
1111
- * @param {boolean} [verbose] Include verbose output
1112
- * @param {*} [options] Override http request option.
1113
- * @throws {RequiredError}
1114
- */
1115
- workspaceControllerListWorkspaces: (verbose_2, ...args_32) => __awaiter(this, [verbose_2, ...args_32], void 0, function* (verbose, options = {}) {
1116
- const localVarPath = `/workspace`;
1117
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1118
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1119
- let baseOptions;
1120
- if (configuration) {
1121
- baseOptions = configuration.baseOptions;
1122
- }
1123
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1124
- const localVarHeaderParameter = {};
1125
- const localVarQueryParameter = {};
1126
- // authentication oauth2 required
1127
- // oauth required
1128
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1129
- if (verbose !== undefined) {
1130
- localVarQueryParameter['verbose'] = verbose;
1131
- }
1132
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1133
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1134
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1135
- return {
1136
- url: (0, common_1.toPathString)(localVarUrlObj),
1137
- options: localVarRequestOptions,
1138
- };
1139
- }),
1140
- /**
1141
- * Move file inside workspace
1142
- * @summary Move file
1143
- * @param {string} workspaceId
1144
- * @param {string} source
1145
- * @param {string} destination
1146
- * @param {*} [options] Override http request option.
1147
- * @throws {RequiredError}
1148
- */
1149
- workspaceControllerMoveFile: (workspaceId_20, source_1, destination_1, ...args_33) => __awaiter(this, [workspaceId_20, source_1, destination_1, ...args_33], void 0, function* (workspaceId, source, destination, options = {}) {
1150
- // verify required parameter 'workspaceId' is not null or undefined
1151
- (0, common_1.assertParamExists)('workspaceControllerMoveFile', 'workspaceId', workspaceId);
1152
- // verify required parameter 'source' is not null or undefined
1153
- (0, common_1.assertParamExists)('workspaceControllerMoveFile', 'source', source);
1154
- // verify required parameter 'destination' is not null or undefined
1155
- (0, common_1.assertParamExists)('workspaceControllerMoveFile', 'destination', destination);
1156
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/move`
1157
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1158
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1159
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1160
- let baseOptions;
1161
- if (configuration) {
1162
- baseOptions = configuration.baseOptions;
1163
- }
1164
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1165
- const localVarHeaderParameter = {};
1166
- const localVarQueryParameter = {};
1167
- // authentication oauth2 required
1168
- // oauth required
1169
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1170
- if (source !== undefined) {
1171
- localVarQueryParameter['source'] = source;
1172
- }
1173
- if (destination !== undefined) {
1174
- localVarQueryParameter['destination'] = destination;
1175
- }
1176
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1177
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1178
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1179
- return {
1180
- url: (0, common_1.toPathString)(localVarUrlObj),
1181
- options: localVarRequestOptions,
1182
- };
1183
- }),
1184
- /**
1185
- *
1186
- * @param {string} workspaceId
1187
- * @param {boolean} force
1188
- * @param {*} [options] Override http request option.
1189
- * @throws {RequiredError}
1190
- */
1191
- workspaceControllerRemoveWorkspace: (workspaceId_21, force_1, ...args_34) => __awaiter(this, [workspaceId_21, force_1, ...args_34], void 0, function* (workspaceId, force, options = {}) {
1192
- // verify required parameter 'workspaceId' is not null or undefined
1193
- (0, common_1.assertParamExists)('workspaceControllerRemoveWorkspace', 'workspaceId', workspaceId);
1194
- // verify required parameter 'force' is not null or undefined
1195
- (0, common_1.assertParamExists)('workspaceControllerRemoveWorkspace', 'force', force);
1196
- const localVarPath = `/workspace/{workspaceId}`
1197
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1198
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1199
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1200
- let baseOptions;
1201
- if (configuration) {
1202
- baseOptions = configuration.baseOptions;
1203
- }
1204
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1205
- const localVarHeaderParameter = {};
1206
- const localVarQueryParameter = {};
1207
- // authentication oauth2 required
1208
- // oauth required
1209
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1210
- if (force !== undefined) {
1211
- localVarQueryParameter['force'] = force;
1212
- }
1213
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1214
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1215
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1216
- return {
1217
- url: (0, common_1.toPathString)(localVarUrlObj),
1218
- options: localVarRequestOptions,
1219
- };
1220
- }),
1221
- /**
1222
- * Replace text/pattern in multiple files inside workspace
1223
- * @summary Replace in files
1224
- * @param {string} workspaceId
1225
- * @param {ReplaceRequestDto} replaceRequestDto
1226
- * @param {*} [options] Override http request option.
1227
- * @throws {RequiredError}
1228
- */
1229
- workspaceControllerReplaceInFiles: (workspaceId_22, replaceRequestDto_1, ...args_35) => __awaiter(this, [workspaceId_22, replaceRequestDto_1, ...args_35], void 0, function* (workspaceId, replaceRequestDto, options = {}) {
1230
- // verify required parameter 'workspaceId' is not null or undefined
1231
- (0, common_1.assertParamExists)('workspaceControllerReplaceInFiles', 'workspaceId', workspaceId);
1232
- // verify required parameter 'replaceRequestDto' is not null or undefined
1233
- (0, common_1.assertParamExists)('workspaceControllerReplaceInFiles', 'replaceRequestDto', replaceRequestDto);
1234
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/replace`
1235
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1236
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1237
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1238
- let baseOptions;
1239
- if (configuration) {
1240
- baseOptions = configuration.baseOptions;
1241
- }
1242
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1243
- const localVarHeaderParameter = {};
1244
- const localVarQueryParameter = {};
1245
- // authentication oauth2 required
1246
- // oauth required
1247
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1248
- localVarHeaderParameter['Content-Type'] = 'application/json';
1249
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1250
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1251
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1252
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(replaceRequestDto, localVarRequestOptions, configuration);
1253
- return {
1254
- url: (0, common_1.toPathString)(localVarUrlObj),
1255
- options: localVarRequestOptions,
1256
- };
1257
- }),
1258
- /**
1259
- * Replace all labels for a workspace. Existing labels will be removed.
1260
- * @summary Replace workspace labels
1261
- * @param {string} workspaceId
1262
- * @param {WorkspaceLabelsDto} workspaceLabelsDto
1263
- * @param {*} [options] Override http request option.
1264
- * @throws {RequiredError}
1265
- */
1266
- workspaceControllerReplaceLabels: (workspaceId_23, workspaceLabelsDto_1, ...args_36) => __awaiter(this, [workspaceId_23, workspaceLabelsDto_1, ...args_36], void 0, function* (workspaceId, workspaceLabelsDto, options = {}) {
1267
- // verify required parameter 'workspaceId' is not null or undefined
1268
- (0, common_1.assertParamExists)('workspaceControllerReplaceLabels', 'workspaceId', workspaceId);
1269
- // verify required parameter 'workspaceLabelsDto' is not null or undefined
1270
- (0, common_1.assertParamExists)('workspaceControllerReplaceLabels', 'workspaceLabelsDto', workspaceLabelsDto);
1271
- const localVarPath = `/workspace/{workspaceId}/labels`
1272
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1273
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1274
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1275
- let baseOptions;
1276
- if (configuration) {
1277
- baseOptions = configuration.baseOptions;
1278
- }
1279
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1280
- const localVarHeaderParameter = {};
1281
- const localVarQueryParameter = {};
1282
- // authentication oauth2 required
1283
- // oauth required
1284
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1285
- localVarHeaderParameter['Content-Type'] = 'application/json';
1286
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1287
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1288
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1289
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workspaceLabelsDto, localVarRequestOptions, configuration);
1290
- return {
1291
- url: (0, common_1.toPathString)(localVarUrlObj),
1292
- options: localVarRequestOptions,
1293
- };
1294
- }),
1295
- /**
1296
- * Search for files inside workspace
1297
- * @summary Search files
1298
- * @param {string} workspaceId
1299
- * @param {string} path
1300
- * @param {string} pattern
1301
- * @param {*} [options] Override http request option.
1302
- * @throws {RequiredError}
1303
- */
1304
- workspaceControllerSearchFiles: (workspaceId_24, path_10, pattern_2, ...args_37) => __awaiter(this, [workspaceId_24, path_10, pattern_2, ...args_37], void 0, function* (workspaceId, path, pattern, options = {}) {
1305
- // verify required parameter 'workspaceId' is not null or undefined
1306
- (0, common_1.assertParamExists)('workspaceControllerSearchFiles', 'workspaceId', workspaceId);
1307
- // verify required parameter 'path' is not null or undefined
1308
- (0, common_1.assertParamExists)('workspaceControllerSearchFiles', 'path', path);
1309
- // verify required parameter 'pattern' is not null or undefined
1310
- (0, common_1.assertParamExists)('workspaceControllerSearchFiles', 'pattern', pattern);
1311
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/search`
1312
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1313
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1314
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1315
- let baseOptions;
1316
- if (configuration) {
1317
- baseOptions = configuration.baseOptions;
1318
- }
1319
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1320
- const localVarHeaderParameter = {};
1321
- const localVarQueryParameter = {};
1322
- // authentication oauth2 required
1323
- // oauth required
1324
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1325
- if (path !== undefined) {
1326
- localVarQueryParameter['path'] = path;
1327
- }
1328
- if (pattern !== undefined) {
1329
- localVarQueryParameter['pattern'] = pattern;
1330
- }
1331
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1332
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1333
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1334
- return {
1335
- url: (0, common_1.toPathString)(localVarUrlObj),
1336
- options: localVarRequestOptions,
1337
- };
1338
- }),
1339
- /**
1340
- * Set file owner/group/permissions inside workspace
1341
- * @summary Set file permissions
1342
- * @param {string} workspaceId
1343
- * @param {string} path
1344
- * @param {string} owner
1345
- * @param {string} group
1346
- * @param {string} mode
1347
- * @param {*} [options] Override http request option.
1348
- * @throws {RequiredError}
1349
- */
1350
- workspaceControllerSetFilePermissions: (workspaceId_25, path_11, owner_1, group_1, mode_2, ...args_38) => __awaiter(this, [workspaceId_25, path_11, owner_1, group_1, mode_2, ...args_38], void 0, function* (workspaceId, path, owner, group, mode, options = {}) {
1351
- // verify required parameter 'workspaceId' is not null or undefined
1352
- (0, common_1.assertParamExists)('workspaceControllerSetFilePermissions', 'workspaceId', workspaceId);
1353
- // verify required parameter 'path' is not null or undefined
1354
- (0, common_1.assertParamExists)('workspaceControllerSetFilePermissions', 'path', path);
1355
- // verify required parameter 'owner' is not null or undefined
1356
- (0, common_1.assertParamExists)('workspaceControllerSetFilePermissions', 'owner', owner);
1357
- // verify required parameter 'group' is not null or undefined
1358
- (0, common_1.assertParamExists)('workspaceControllerSetFilePermissions', 'group', group);
1359
- // verify required parameter 'mode' is not null or undefined
1360
- (0, common_1.assertParamExists)('workspaceControllerSetFilePermissions', 'mode', mode);
1361
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/permissions`
1362
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1363
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1364
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1365
- let baseOptions;
1366
- if (configuration) {
1367
- baseOptions = configuration.baseOptions;
1368
- }
1369
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1370
- const localVarHeaderParameter = {};
1371
- const localVarQueryParameter = {};
1372
- // authentication oauth2 required
1373
- // oauth required
1374
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1375
- if (path !== undefined) {
1376
- localVarQueryParameter['path'] = path;
1377
- }
1378
- if (owner !== undefined) {
1379
- localVarQueryParameter['owner'] = owner;
1380
- }
1381
- if (group !== undefined) {
1382
- localVarQueryParameter['group'] = group;
1383
- }
1384
- if (mode !== undefined) {
1385
- localVarQueryParameter['mode'] = mode;
1386
- }
1387
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1388
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1389
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1390
- return {
1391
- url: (0, common_1.toPathString)(localVarUrlObj),
1392
- options: localVarRequestOptions,
1393
- };
1394
- }),
1395
- /**
1396
- *
1397
- * @param {string} workspaceId
1398
- * @param {*} [options] Override http request option.
1399
- * @throws {RequiredError}
1400
- */
1401
- workspaceControllerStartWorkspace: (workspaceId_26, ...args_39) => __awaiter(this, [workspaceId_26, ...args_39], void 0, function* (workspaceId, options = {}) {
1402
- // verify required parameter 'workspaceId' is not null or undefined
1403
- (0, common_1.assertParamExists)('workspaceControllerStartWorkspace', 'workspaceId', workspaceId);
1404
- const localVarPath = `/workspace/{workspaceId}/start`
1405
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1406
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1407
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1408
- let baseOptions;
1409
- if (configuration) {
1410
- baseOptions = configuration.baseOptions;
1411
- }
1412
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1413
- const localVarHeaderParameter = {};
1414
- const localVarQueryParameter = {};
1415
- // authentication oauth2 required
1416
- // oauth required
1417
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1418
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1419
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1420
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1421
- return {
1422
- url: (0, common_1.toPathString)(localVarUrlObj),
1423
- options: localVarRequestOptions,
1424
- };
1425
- }),
1426
- /**
1427
- *
1428
- * @param {string} workspaceId
1429
- * @param {*} [options] Override http request option.
1430
- * @throws {RequiredError}
1431
- */
1432
- workspaceControllerStopWorkspace: (workspaceId_27, ...args_40) => __awaiter(this, [workspaceId_27, ...args_40], void 0, function* (workspaceId, options = {}) {
1433
- // verify required parameter 'workspaceId' is not null or undefined
1434
- (0, common_1.assertParamExists)('workspaceControllerStopWorkspace', 'workspaceId', workspaceId);
1435
- const localVarPath = `/workspace/{workspaceId}/stop`
1436
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1437
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1438
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1439
- let baseOptions;
1440
- if (configuration) {
1441
- baseOptions = configuration.baseOptions;
1442
- }
1443
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1444
- const localVarHeaderParameter = {};
1445
- const localVarQueryParameter = {};
1446
- // authentication oauth2 required
1447
- // oauth required
1448
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1449
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1450
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1451
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1452
- return {
1453
- url: (0, common_1.toPathString)(localVarUrlObj),
1454
- options: localVarRequestOptions,
1455
- };
1456
- }),
1457
- /**
1458
- * Change public preview status of a workspace
1459
- * @summary Change public preview status
1460
- * @param {string} workspaceId ID of the workspace
1461
- * @param {boolean} isPublic Public status to set
1462
- * @param {*} [options] Override http request option.
1463
- * @throws {RequiredError}
1464
- */
1465
- workspaceControllerUpdatePublicStatus: (workspaceId_28, isPublic_1, ...args_41) => __awaiter(this, [workspaceId_28, isPublic_1, ...args_41], void 0, function* (workspaceId, isPublic, options = {}) {
1466
- // verify required parameter 'workspaceId' is not null or undefined
1467
- (0, common_1.assertParamExists)('workspaceControllerUpdatePublicStatus', 'workspaceId', workspaceId);
1468
- // verify required parameter 'isPublic' is not null or undefined
1469
- (0, common_1.assertParamExists)('workspaceControllerUpdatePublicStatus', 'isPublic', isPublic);
1470
- const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
1471
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
1472
- .replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
1473
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1474
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1475
- let baseOptions;
1476
- if (configuration) {
1477
- baseOptions = configuration.baseOptions;
1478
- }
1479
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1480
- const localVarHeaderParameter = {};
1481
- const localVarQueryParameter = {};
1482
- // authentication oauth2 required
1483
- // oauth required
1484
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1485
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1486
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1487
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1488
- return {
1489
- url: (0, common_1.toPathString)(localVarUrlObj),
1490
- options: localVarRequestOptions,
1491
- };
1492
- }),
1493
- /**
1494
- * Upload file inside workspace
1495
- * @summary Upload file
1496
- * @param {string} workspaceId
1497
- * @param {string} path
1498
- * @param {File} [file]
1499
- * @param {*} [options] Override http request option.
1500
- * @throws {RequiredError}
1501
- */
1502
- workspaceControllerUploadFile: (workspaceId_29, path_12, file_1, ...args_42) => __awaiter(this, [workspaceId_29, path_12, file_1, ...args_42], void 0, function* (workspaceId, path, file, options = {}) {
1503
- // verify required parameter 'workspaceId' is not null or undefined
1504
- (0, common_1.assertParamExists)('workspaceControllerUploadFile', 'workspaceId', workspaceId);
1505
- // verify required parameter 'path' is not null or undefined
1506
- (0, common_1.assertParamExists)('workspaceControllerUploadFile', 'path', path);
1507
- const localVarPath = `/workspace/{workspaceId}/toolbox/files/upload`
1508
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1509
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1510
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1511
- let baseOptions;
1512
- if (configuration) {
1513
- baseOptions = configuration.baseOptions;
1514
- }
1515
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1516
- const localVarHeaderParameter = {};
1517
- const localVarQueryParameter = {};
1518
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1519
- // authentication oauth2 required
1520
- // oauth required
1521
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1522
- if (path !== undefined) {
1523
- localVarQueryParameter['path'] = path;
1524
- }
1525
- if (file !== undefined) {
1526
- localVarFormParams.append('file', file);
1527
- }
1528
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1529
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1530
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1531
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1532
- localVarRequestOptions.data = localVarFormParams;
1533
- return {
1534
- url: (0, common_1.toPathString)(localVarUrlObj),
1535
- options: localVarRequestOptions,
1536
- };
1537
- }),
1538
- };
1539
- };
1540
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
1541
- /**
1542
- * DefaultApi - functional programming interface
1543
- * @export
1544
- */
1545
- const DefaultApiFp = function (configuration) {
1546
- const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
1547
- return {
1548
- /**
1549
- *
1550
- * @summary Create a new API key
1551
- * @param {CreateApiKeyDto} createApiKeyDto
1552
- * @param {*} [options] Override http request option.
1553
- * @throws {RequiredError}
1554
- */
1555
- apiKeyControllerCreateApiKey(createApiKeyDto, options) {
1556
- return __awaiter(this, void 0, void 0, function* () {
1557
- var _a, _b, _c;
1558
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiKeyControllerCreateApiKey(createApiKeyDto, options);
1559
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1560
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.apiKeyControllerCreateApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1561
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1562
- });
1563
- },
1564
- /**
1565
- *
1566
- * @summary Delete an API key by name
1567
- * @param {string} name
1568
- * @param {*} [options] Override http request option.
1569
- * @throws {RequiredError}
1570
- */
1571
- apiKeyControllerDeleteApiKey(name, options) {
1572
- return __awaiter(this, void 0, void 0, function* () {
1573
- var _a, _b, _c;
1574
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiKeyControllerDeleteApiKey(name, options);
1575
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1576
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.apiKeyControllerDeleteApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1577
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1578
- });
1579
- },
1580
- /**
1581
- *
1582
- * @summary Get a specific API key by name
1583
- * @param {string} name
1584
- * @param {*} [options] Override http request option.
1585
- * @throws {RequiredError}
1586
- */
1587
- apiKeyControllerGetApiKey(name, options) {
1588
- return __awaiter(this, void 0, void 0, function* () {
1589
- var _a, _b, _c;
1590
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiKeyControllerGetApiKey(name, options);
1591
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1592
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.apiKeyControllerGetApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1593
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1594
- });
1595
- },
1596
- /**
1597
- *
1598
- * @summary Get all API keys for the user
1599
- * @param {*} [options] Override http request option.
1600
- * @throws {RequiredError}
1601
- */
1602
- apiKeyControllerGetApiKeys(options) {
1603
- return __awaiter(this, void 0, void 0, function* () {
1604
- var _a, _b, _c;
1605
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiKeyControllerGetApiKeys(options);
1606
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1607
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.apiKeyControllerGetApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1608
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1609
- });
1610
- },
1611
- /**
1612
- *
1613
- * @param {*} [options] Override http request option.
1614
- * @throws {RequiredError}
1615
- */
1616
- appControllerGetHello(options) {
1617
- return __awaiter(this, void 0, void 0, function* () {
1618
- var _a, _b, _c;
1619
- const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetHello(options);
1620
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1621
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.appControllerGetHello']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1622
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1623
- });
1624
- },
1625
- /**
1626
- *
1627
- * @param {object} body
1628
- * @param {*} [options] Override http request option.
1629
- * @throws {RequiredError}
1630
- */
1631
- nodeControllerCreate(body, options) {
1632
- return __awaiter(this, void 0, void 0, function* () {
1633
- var _a, _b, _c;
1634
- const localVarAxiosArgs = yield localVarAxiosParamCreator.nodeControllerCreate(body, options);
1635
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1636
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.nodeControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1637
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1638
- });
1639
- },
1640
- /**
1641
- *
1642
- * @param {*} [options] Override http request option.
1643
- * @throws {RequiredError}
1644
- */
1645
- nodeControllerFindAll(options) {
1646
- return __awaiter(this, void 0, void 0, function* () {
1647
- var _a, _b, _c;
1648
- const localVarAxiosArgs = yield localVarAxiosParamCreator.nodeControllerFindAll(options);
1649
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1650
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.nodeControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1651
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1652
- });
1653
- },
1654
- /**
1655
- *
1656
- * @param {string} id
1657
- * @param {*} [options] Override http request option.
1658
- * @throws {RequiredError}
1659
- */
1660
- nodeControllerUpdateSchedulingStatus(id, options) {
1661
- return __awaiter(this, void 0, void 0, function* () {
1662
- var _a, _b, _c;
1663
- const localVarAxiosArgs = yield localVarAxiosParamCreator.nodeControllerUpdateSchedulingStatus(id, options);
1664
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1665
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.nodeControllerUpdateSchedulingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1666
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1667
- });
1668
- },
1669
- /**
1670
- *
1671
- * @param {object} body
1672
- * @param {*} [options] Override http request option.
1673
- * @throws {RequiredError}
1674
- */
1675
- userControllerCreate(body, options) {
1676
- return __awaiter(this, void 0, void 0, function* () {
1677
- var _a, _b, _c;
1678
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerCreate(body, options);
1679
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1680
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.userControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1681
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1682
- });
1683
- },
1684
- /**
1685
- *
1686
- * @param {*} [options] Override http request option.
1687
- * @throws {RequiredError}
1688
- */
1689
- userControllerFindAll(options) {
1690
- return __awaiter(this, void 0, void 0, function* () {
1691
- var _a, _b, _c;
1692
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerFindAll(options);
1693
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1694
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.userControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1695
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1696
- });
1697
- },
1698
- /**
1699
- *
1700
- * @param {string} id
1701
- * @param {*} [options] Override http request option.
1702
- * @throws {RequiredError}
1703
- */
1704
- userControllerRegenerateKeyPair(id, options) {
1705
- return __awaiter(this, void 0, void 0, function* () {
1706
- var _a, _b, _c;
1707
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerRegenerateKeyPair(id, options);
1708
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1709
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.userControllerRegenerateKeyPair']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1710
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1711
- });
1712
- },
1713
- /**
1714
- * Create folder inside workspace
1715
- * @summary Create folder
1716
- * @param {string} workspaceId
1717
- * @param {string} path
1718
- * @param {string} mode
1719
- * @param {*} [options] Override http request option.
1720
- * @throws {RequiredError}
1721
- */
1722
- workspaceControllerCreateFolder(workspaceId, path, mode, options) {
1723
- return __awaiter(this, void 0, void 0, function* () {
1724
- var _a, _b, _c;
1725
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerCreateFolder(workspaceId, path, mode, options);
1726
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1727
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerCreateFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1728
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1729
- });
1730
- },
1731
- /**
1732
- *
1733
- * @summary Create a workspace snapshot
1734
- * @param {string} workspaceId
1735
- * @param {*} [options] Override http request option.
1736
- * @throws {RequiredError}
1737
- */
1738
- workspaceControllerCreateSnapshot(workspaceId, options) {
1739
- return __awaiter(this, void 0, void 0, function* () {
1740
- var _a, _b, _c;
1741
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerCreateSnapshot(workspaceId, options);
1742
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1743
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerCreateSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1744
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1745
- });
1746
- },
1747
- /**
1748
- *
1749
- * @param {CreateWorkspaceDto} createWorkspaceDto
1750
- * @param {*} [options] Override http request option.
1751
- * @throws {RequiredError}
1752
- */
1753
- workspaceControllerCreateWorkspace(createWorkspaceDto, options) {
1754
- return __awaiter(this, void 0, void 0, function* () {
1755
- var _a, _b, _c;
1756
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerCreateWorkspace(createWorkspaceDto, options);
1757
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1758
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerCreateWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1759
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1760
- });
1761
- },
1762
- /**
1763
- * Delete file inside workspace
1764
- * @summary Delete file
1765
- * @param {string} workspaceId
1766
- * @param {string} path
1767
- * @param {*} [options] Override http request option.
1768
- * @throws {RequiredError}
1769
- */
1770
- workspaceControllerDeleteFile(workspaceId, path, options) {
1771
- return __awaiter(this, void 0, void 0, function* () {
1772
- var _a, _b, _c;
1773
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerDeleteFile(workspaceId, path, options);
1774
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1775
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerDeleteFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1776
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1777
- });
1778
- },
1779
- /**
1780
- * Download file from workspace
1781
- * @summary Download file
1782
- * @param {string} workspaceId
1783
- * @param {string} path
1784
- * @param {*} [options] Override http request option.
1785
- * @throws {RequiredError}
1786
- */
1787
- workspaceControllerDownloadFile(workspaceId, path, options) {
1788
- return __awaiter(this, void 0, void 0, function* () {
1789
- var _a, _b, _c;
1790
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerDownloadFile(workspaceId, path, options);
1791
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1792
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerDownloadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1793
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1794
- });
1795
- },
1796
- /**
1797
- * Execute command synchronously inside workspace
1798
- * @summary Execute command
1799
- * @param {string} workspaceId
1800
- * @param {ExecuteRequestDto} executeRequestDto
1801
- * @param {*} [options] Override http request option.
1802
- * @throws {RequiredError}
1803
- */
1804
- workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options) {
1805
- return __awaiter(this, void 0, void 0, function* () {
1806
- var _a, _b, _c;
1807
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options);
1808
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1809
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerExecuteCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1810
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1811
- });
1812
- },
1813
- /**
1814
- * Search for text/pattern inside workspace files
1815
- * @summary Search for text/pattern in files
1816
- * @param {string} workspaceId
1817
- * @param {string} path
1818
- * @param {string} pattern
1819
- * @param {*} [options] Override http request option.
1820
- * @throws {RequiredError}
1821
- */
1822
- workspaceControllerFindInFiles(workspaceId, path, pattern, options) {
1823
- return __awaiter(this, void 0, void 0, function* () {
1824
- var _a, _b, _c;
1825
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerFindInFiles(workspaceId, path, pattern, options);
1826
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1827
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerFindInFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1828
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1829
- });
1830
- },
1831
- /**
1832
- * Get file info inside workspace
1833
- * @summary Get file info
1834
- * @param {string} workspaceId
1835
- * @param {string} path
1836
- * @param {*} [options] Override http request option.
1837
- * @throws {RequiredError}
1838
- */
1839
- workspaceControllerGetFileInfo(workspaceId, path, options) {
1840
- return __awaiter(this, void 0, void 0, function* () {
1841
- var _a, _b, _c;
1842
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGetFileInfo(workspaceId, path, options);
1843
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1844
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGetFileInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1845
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1846
- });
1847
- },
1848
- /**
1849
- * Get workspace project directory
1850
- * @summary Get workspace project dir
1851
- * @param {string} workspaceId
1852
- * @param {*} [options] Override http request option.
1853
- * @throws {RequiredError}
1854
- */
1855
- workspaceControllerGetProjectDir(workspaceId, options) {
1856
- return __awaiter(this, void 0, void 0, function* () {
1857
- var _a, _b, _c;
1858
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGetProjectDir(workspaceId, options);
1859
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1860
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGetProjectDir']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1861
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1862
- });
1863
- },
1864
- /**
1865
- *
1866
- * @param {string} workspaceId
1867
- * @param {boolean} [verbose] Include verbose output
1868
- * @param {*} [options] Override http request option.
1869
- * @throws {RequiredError}
1870
- */
1871
- workspaceControllerGetWorkspace(workspaceId, verbose, options) {
1872
- return __awaiter(this, void 0, void 0, function* () {
1873
- var _a, _b, _c;
1874
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGetWorkspace(workspaceId, verbose, options);
1875
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1876
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGetWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1877
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1878
- });
1879
- },
1880
- /**
1881
- * Add files to git commit
1882
- * @summary Add files
1883
- * @param {string} workspaceId
1884
- * @param {GitAddRequestDto} gitAddRequestDto
1885
- * @param {*} [options] Override http request option.
1886
- * @throws {RequiredError}
1887
- */
1888
- workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options) {
1889
- return __awaiter(this, void 0, void 0, function* () {
1890
- var _a, _b, _c;
1891
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options);
1892
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1893
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitAddFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1894
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1895
- });
1896
- },
1897
- /**
1898
- * Get branch list from git repository
1899
- * @summary Get branch list
1900
- * @param {string} workspaceId
1901
- * @param {string} path
1902
- * @param {*} [options] Override http request option.
1903
- * @throws {RequiredError}
1904
- */
1905
- workspaceControllerGitBranchList(workspaceId, path, options) {
1906
- return __awaiter(this, void 0, void 0, function* () {
1907
- var _a, _b, _c;
1908
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitBranchList(workspaceId, path, options);
1909
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1910
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitBranchList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1911
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1912
- });
1913
- },
1914
- /**
1915
- * Clone git repository
1916
- * @summary Clone repository
1917
- * @param {string} workspaceId
1918
- * @param {GitCloneRequestDto} gitCloneRequestDto
1919
- * @param {*} [options] Override http request option.
1920
- * @throws {RequiredError}
1921
- */
1922
- workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options) {
1923
- return __awaiter(this, void 0, void 0, function* () {
1924
- var _a, _b, _c;
1925
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options);
1926
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1927
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitCloneRepository']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1928
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1929
- });
1930
- },
1931
- /**
1932
- * Commit changes to git repository
1933
- * @summary Commit changes
1934
- * @param {string} workspaceId
1935
- * @param {GitCommitRequestDto} gitCommitRequestDto
1936
- * @param {*} [options] Override http request option.
1937
- * @throws {RequiredError}
1938
- */
1939
- workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options) {
1940
- return __awaiter(this, void 0, void 0, function* () {
1941
- var _a, _b, _c;
1942
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options);
1943
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1944
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitCommitChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1945
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1946
- });
1947
- },
1948
- /**
1949
- * Get commit history from git repository
1950
- * @summary Get commit history
1951
- * @param {string} workspaceId
1952
- * @param {string} path
1953
- * @param {*} [options] Override http request option.
1954
- * @throws {RequiredError}
1955
- */
1956
- workspaceControllerGitCommitHistory(workspaceId, path, options) {
1957
- return __awaiter(this, void 0, void 0, function* () {
1958
- var _a, _b, _c;
1959
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitCommitHistory(workspaceId, path, options);
1960
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1961
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitCommitHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1962
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1963
- });
1964
- },
1965
- /**
1966
- * Create branch on git repository
1967
- * @summary Create branch
1968
- * @param {string} workspaceId
1969
- * @param {GitBranchRequestDto} gitBranchRequestDto
1970
- * @param {*} [options] Override http request option.
1971
- * @throws {RequiredError}
1972
- */
1973
- workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options) {
1974
- return __awaiter(this, void 0, void 0, function* () {
1975
- var _a, _b, _c;
1976
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options);
1977
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1978
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitCreateBranch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1979
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1980
- });
1981
- },
1982
- /**
1983
- * Pull changes from remote
1984
- * @summary Pull changes
1985
- * @param {string} workspaceId
1986
- * @param {GitRepoRequestDto} gitRepoRequestDto
1987
- * @param {*} [options] Override http request option.
1988
- * @throws {RequiredError}
1989
- */
1990
- workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options) {
1991
- return __awaiter(this, void 0, void 0, function* () {
1992
- var _a, _b, _c;
1993
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options);
1994
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1995
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitPullChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1996
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1997
- });
1998
- },
1999
- /**
2000
- * Push changes to remote
2001
- * @summary Push changes
2002
- * @param {string} workspaceId
2003
- * @param {GitRepoRequestDto} gitRepoRequestDto
2004
- * @param {*} [options] Override http request option.
2005
- * @throws {RequiredError}
2006
- */
2007
- workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options) {
2008
- return __awaiter(this, void 0, void 0, function* () {
2009
- var _a, _b, _c;
2010
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options);
2011
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2012
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitPushChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2013
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2014
- });
2015
- },
2016
- /**
2017
- * Get status from git repository
2018
- * @summary Get git status
2019
- * @param {string} workspaceId
2020
- * @param {string} path
2021
- * @param {*} [options] Override http request option.
2022
- * @throws {RequiredError}
2023
- */
2024
- workspaceControllerGitStatus(workspaceId, path, options) {
2025
- return __awaiter(this, void 0, void 0, function* () {
2026
- var _a, _b, _c;
2027
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerGitStatus(workspaceId, path, options);
2028
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2029
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerGitStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2030
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2031
- });
2032
- },
2033
- /**
2034
- * List files inside workspace
2035
- * @summary List files
2036
- * @param {string} workspaceId
2037
- * @param {string} [path]
2038
- * @param {*} [options] Override http request option.
2039
- * @throws {RequiredError}
2040
- */
2041
- workspaceControllerListFiles(workspaceId, path, options) {
2042
- return __awaiter(this, void 0, void 0, function* () {
2043
- var _a, _b, _c;
2044
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerListFiles(workspaceId, path, options);
2045
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2046
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerListFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2047
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2048
- });
2049
- },
2050
- /**
2051
- *
2052
- * @param {boolean} [verbose] Include verbose output
2053
- * @param {*} [options] Override http request option.
2054
- * @throws {RequiredError}
2055
- */
2056
- workspaceControllerListWorkspaces(verbose, options) {
2057
- return __awaiter(this, void 0, void 0, function* () {
2058
- var _a, _b, _c;
2059
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerListWorkspaces(verbose, options);
2060
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2061
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerListWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2062
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2063
- });
2064
- },
2065
- /**
2066
- * Move file inside workspace
2067
- * @summary Move file
2068
- * @param {string} workspaceId
2069
- * @param {string} source
2070
- * @param {string} destination
2071
- * @param {*} [options] Override http request option.
2072
- * @throws {RequiredError}
2073
- */
2074
- workspaceControllerMoveFile(workspaceId, source, destination, options) {
2075
- return __awaiter(this, void 0, void 0, function* () {
2076
- var _a, _b, _c;
2077
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerMoveFile(workspaceId, source, destination, options);
2078
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2079
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerMoveFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2080
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2081
- });
2082
- },
2083
- /**
2084
- *
2085
- * @param {string} workspaceId
2086
- * @param {boolean} force
2087
- * @param {*} [options] Override http request option.
2088
- * @throws {RequiredError}
2089
- */
2090
- workspaceControllerRemoveWorkspace(workspaceId, force, options) {
2091
- return __awaiter(this, void 0, void 0, function* () {
2092
- var _a, _b, _c;
2093
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerRemoveWorkspace(workspaceId, force, options);
2094
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2095
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerRemoveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2096
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2097
- });
2098
- },
2099
- /**
2100
- * Replace text/pattern in multiple files inside workspace
2101
- * @summary Replace in files
2102
- * @param {string} workspaceId
2103
- * @param {ReplaceRequestDto} replaceRequestDto
2104
- * @param {*} [options] Override http request option.
2105
- * @throws {RequiredError}
2106
- */
2107
- workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options) {
2108
- return __awaiter(this, void 0, void 0, function* () {
2109
- var _a, _b, _c;
2110
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options);
2111
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2112
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerReplaceInFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2113
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2114
- });
2115
- },
2116
- /**
2117
- * Replace all labels for a workspace. Existing labels will be removed.
2118
- * @summary Replace workspace labels
2119
- * @param {string} workspaceId
2120
- * @param {WorkspaceLabelsDto} workspaceLabelsDto
2121
- * @param {*} [options] Override http request option.
2122
- * @throws {RequiredError}
2123
- */
2124
- workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options) {
2125
- return __awaiter(this, void 0, void 0, function* () {
2126
- var _a, _b, _c;
2127
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options);
2128
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2129
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerReplaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2130
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2131
- });
2132
- },
2133
- /**
2134
- * Search for files inside workspace
2135
- * @summary Search files
2136
- * @param {string} workspaceId
2137
- * @param {string} path
2138
- * @param {string} pattern
2139
- * @param {*} [options] Override http request option.
2140
- * @throws {RequiredError}
2141
- */
2142
- workspaceControllerSearchFiles(workspaceId, path, pattern, options) {
2143
- return __awaiter(this, void 0, void 0, function* () {
2144
- var _a, _b, _c;
2145
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerSearchFiles(workspaceId, path, pattern, options);
2146
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2147
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerSearchFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2148
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2149
- });
2150
- },
2151
- /**
2152
- * Set file owner/group/permissions inside workspace
2153
- * @summary Set file permissions
2154
- * @param {string} workspaceId
2155
- * @param {string} path
2156
- * @param {string} owner
2157
- * @param {string} group
2158
- * @param {string} mode
2159
- * @param {*} [options] Override http request option.
2160
- * @throws {RequiredError}
2161
- */
2162
- workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options) {
2163
- return __awaiter(this, void 0, void 0, function* () {
2164
- var _a, _b, _c;
2165
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options);
2166
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2167
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerSetFilePermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2168
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2169
- });
2170
- },
2171
- /**
2172
- *
2173
- * @param {string} workspaceId
2174
- * @param {*} [options] Override http request option.
2175
- * @throws {RequiredError}
2176
- */
2177
- workspaceControllerStartWorkspace(workspaceId, options) {
2178
- return __awaiter(this, void 0, void 0, function* () {
2179
- var _a, _b, _c;
2180
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerStartWorkspace(workspaceId, options);
2181
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2182
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerStartWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2183
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2184
- });
2185
- },
2186
- /**
2187
- *
2188
- * @param {string} workspaceId
2189
- * @param {*} [options] Override http request option.
2190
- * @throws {RequiredError}
2191
- */
2192
- workspaceControllerStopWorkspace(workspaceId, options) {
2193
- return __awaiter(this, void 0, void 0, function* () {
2194
- var _a, _b, _c;
2195
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerStopWorkspace(workspaceId, options);
2196
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2197
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerStopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2198
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2199
- });
2200
- },
2201
- /**
2202
- * Change public preview status of a workspace
2203
- * @summary Change public preview status
2204
- * @param {string} workspaceId ID of the workspace
2205
- * @param {boolean} isPublic Public status to set
2206
- * @param {*} [options] Override http request option.
2207
- * @throws {RequiredError}
2208
- */
2209
- workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
2210
- return __awaiter(this, void 0, void 0, function* () {
2211
- var _a, _b, _c;
2212
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options);
2213
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2214
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerUpdatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2215
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2216
- });
2217
- },
2218
- /**
2219
- * Upload file inside workspace
2220
- * @summary Upload file
2221
- * @param {string} workspaceId
2222
- * @param {string} path
2223
- * @param {File} [file]
2224
- * @param {*} [options] Override http request option.
2225
- * @throws {RequiredError}
2226
- */
2227
- workspaceControllerUploadFile(workspaceId, path, file, options) {
2228
- return __awaiter(this, void 0, void 0, function* () {
2229
- var _a, _b, _c;
2230
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerUploadFile(workspaceId, path, file, options);
2231
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2232
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerUploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2233
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2234
- });
2235
- },
2236
- };
2237
- };
2238
- exports.DefaultApiFp = DefaultApiFp;
2239
- /**
2240
- * DefaultApi - factory interface
2241
- * @export
2242
- */
2243
- const DefaultApiFactory = function (configuration, basePath, axios) {
2244
- const localVarFp = (0, exports.DefaultApiFp)(configuration);
2245
- return {
2246
- /**
2247
- *
2248
- * @summary Create a new API key
2249
- * @param {CreateApiKeyDto} createApiKeyDto
2250
- * @param {*} [options] Override http request option.
2251
- * @throws {RequiredError}
2252
- */
2253
- apiKeyControllerCreateApiKey(createApiKeyDto, options) {
2254
- return localVarFp.apiKeyControllerCreateApiKey(createApiKeyDto, options).then((request) => request(axios, basePath));
2255
- },
2256
- /**
2257
- *
2258
- * @summary Delete an API key by name
2259
- * @param {string} name
2260
- * @param {*} [options] Override http request option.
2261
- * @throws {RequiredError}
2262
- */
2263
- apiKeyControllerDeleteApiKey(name, options) {
2264
- return localVarFp.apiKeyControllerDeleteApiKey(name, options).then((request) => request(axios, basePath));
2265
- },
2266
- /**
2267
- *
2268
- * @summary Get a specific API key by name
2269
- * @param {string} name
2270
- * @param {*} [options] Override http request option.
2271
- * @throws {RequiredError}
2272
- */
2273
- apiKeyControllerGetApiKey(name, options) {
2274
- return localVarFp.apiKeyControllerGetApiKey(name, options).then((request) => request(axios, basePath));
2275
- },
2276
- /**
2277
- *
2278
- * @summary Get all API keys for the user
2279
- * @param {*} [options] Override http request option.
2280
- * @throws {RequiredError}
2281
- */
2282
- apiKeyControllerGetApiKeys(options) {
2283
- return localVarFp.apiKeyControllerGetApiKeys(options).then((request) => request(axios, basePath));
2284
- },
2285
- /**
2286
- *
2287
- * @param {*} [options] Override http request option.
2288
- * @throws {RequiredError}
2289
- */
2290
- appControllerGetHello(options) {
2291
- return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
2292
- },
2293
- /**
2294
- *
2295
- * @param {object} body
2296
- * @param {*} [options] Override http request option.
2297
- * @throws {RequiredError}
2298
- */
2299
- nodeControllerCreate(body, options) {
2300
- return localVarFp.nodeControllerCreate(body, options).then((request) => request(axios, basePath));
2301
- },
2302
- /**
2303
- *
2304
- * @param {*} [options] Override http request option.
2305
- * @throws {RequiredError}
2306
- */
2307
- nodeControllerFindAll(options) {
2308
- return localVarFp.nodeControllerFindAll(options).then((request) => request(axios, basePath));
2309
- },
2310
- /**
2311
- *
2312
- * @param {string} id
2313
- * @param {*} [options] Override http request option.
2314
- * @throws {RequiredError}
2315
- */
2316
- nodeControllerUpdateSchedulingStatus(id, options) {
2317
- return localVarFp.nodeControllerUpdateSchedulingStatus(id, options).then((request) => request(axios, basePath));
2318
- },
2319
- /**
2320
- *
2321
- * @param {object} body
2322
- * @param {*} [options] Override http request option.
2323
- * @throws {RequiredError}
2324
- */
2325
- userControllerCreate(body, options) {
2326
- return localVarFp.userControllerCreate(body, options).then((request) => request(axios, basePath));
2327
- },
2328
- /**
2329
- *
2330
- * @param {*} [options] Override http request option.
2331
- * @throws {RequiredError}
2332
- */
2333
- userControllerFindAll(options) {
2334
- return localVarFp.userControllerFindAll(options).then((request) => request(axios, basePath));
2335
- },
2336
- /**
2337
- *
2338
- * @param {string} id
2339
- * @param {*} [options] Override http request option.
2340
- * @throws {RequiredError}
2341
- */
2342
- userControllerRegenerateKeyPair(id, options) {
2343
- return localVarFp.userControllerRegenerateKeyPair(id, options).then((request) => request(axios, basePath));
2344
- },
2345
- /**
2346
- * Create folder inside workspace
2347
- * @summary Create folder
2348
- * @param {string} workspaceId
2349
- * @param {string} path
2350
- * @param {string} mode
2351
- * @param {*} [options] Override http request option.
2352
- * @throws {RequiredError}
2353
- */
2354
- workspaceControllerCreateFolder(workspaceId, path, mode, options) {
2355
- return localVarFp.workspaceControllerCreateFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
2356
- },
2357
- /**
2358
- *
2359
- * @summary Create a workspace snapshot
2360
- * @param {string} workspaceId
2361
- * @param {*} [options] Override http request option.
2362
- * @throws {RequiredError}
2363
- */
2364
- workspaceControllerCreateSnapshot(workspaceId, options) {
2365
- return localVarFp.workspaceControllerCreateSnapshot(workspaceId, options).then((request) => request(axios, basePath));
2366
- },
2367
- /**
2368
- *
2369
- * @param {CreateWorkspaceDto} createWorkspaceDto
2370
- * @param {*} [options] Override http request option.
2371
- * @throws {RequiredError}
2372
- */
2373
- workspaceControllerCreateWorkspace(createWorkspaceDto, options) {
2374
- return localVarFp.workspaceControllerCreateWorkspace(createWorkspaceDto, options).then((request) => request(axios, basePath));
2375
- },
2376
- /**
2377
- * Delete file inside workspace
2378
- * @summary Delete file
2379
- * @param {string} workspaceId
2380
- * @param {string} path
2381
- * @param {*} [options] Override http request option.
2382
- * @throws {RequiredError}
2383
- */
2384
- workspaceControllerDeleteFile(workspaceId, path, options) {
2385
- return localVarFp.workspaceControllerDeleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
2386
- },
2387
- /**
2388
- * Download file from workspace
2389
- * @summary Download file
2390
- * @param {string} workspaceId
2391
- * @param {string} path
2392
- * @param {*} [options] Override http request option.
2393
- * @throws {RequiredError}
2394
- */
2395
- workspaceControllerDownloadFile(workspaceId, path, options) {
2396
- return localVarFp.workspaceControllerDownloadFile(workspaceId, path, options).then((request) => request(axios, basePath));
2397
- },
2398
- /**
2399
- * Execute command synchronously inside workspace
2400
- * @summary Execute command
2401
- * @param {string} workspaceId
2402
- * @param {ExecuteRequestDto} executeRequestDto
2403
- * @param {*} [options] Override http request option.
2404
- * @throws {RequiredError}
2405
- */
2406
- workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options) {
2407
- return localVarFp.workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options).then((request) => request(axios, basePath));
2408
- },
2409
- /**
2410
- * Search for text/pattern inside workspace files
2411
- * @summary Search for text/pattern in files
2412
- * @param {string} workspaceId
2413
- * @param {string} path
2414
- * @param {string} pattern
2415
- * @param {*} [options] Override http request option.
2416
- * @throws {RequiredError}
2417
- */
2418
- workspaceControllerFindInFiles(workspaceId, path, pattern, options) {
2419
- return localVarFp.workspaceControllerFindInFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
2420
- },
2421
- /**
2422
- * Get file info inside workspace
2423
- * @summary Get file info
2424
- * @param {string} workspaceId
2425
- * @param {string} path
2426
- * @param {*} [options] Override http request option.
2427
- * @throws {RequiredError}
2428
- */
2429
- workspaceControllerGetFileInfo(workspaceId, path, options) {
2430
- return localVarFp.workspaceControllerGetFileInfo(workspaceId, path, options).then((request) => request(axios, basePath));
2431
- },
2432
- /**
2433
- * Get workspace project directory
2434
- * @summary Get workspace project dir
2435
- * @param {string} workspaceId
2436
- * @param {*} [options] Override http request option.
2437
- * @throws {RequiredError}
2438
- */
2439
- workspaceControllerGetProjectDir(workspaceId, options) {
2440
- return localVarFp.workspaceControllerGetProjectDir(workspaceId, options).then((request) => request(axios, basePath));
2441
- },
2442
- /**
2443
- *
2444
- * @param {string} workspaceId
2445
- * @param {boolean} [verbose] Include verbose output
2446
- * @param {*} [options] Override http request option.
2447
- * @throws {RequiredError}
2448
- */
2449
- workspaceControllerGetWorkspace(workspaceId, verbose, options) {
2450
- return localVarFp.workspaceControllerGetWorkspace(workspaceId, verbose, options).then((request) => request(axios, basePath));
2451
- },
2452
- /**
2453
- * Add files to git commit
2454
- * @summary Add files
2455
- * @param {string} workspaceId
2456
- * @param {GitAddRequestDto} gitAddRequestDto
2457
- * @param {*} [options] Override http request option.
2458
- * @throws {RequiredError}
2459
- */
2460
- workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options) {
2461
- return localVarFp.workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(axios, basePath));
2462
- },
2463
- /**
2464
- * Get branch list from git repository
2465
- * @summary Get branch list
2466
- * @param {string} workspaceId
2467
- * @param {string} path
2468
- * @param {*} [options] Override http request option.
2469
- * @throws {RequiredError}
2470
- */
2471
- workspaceControllerGitBranchList(workspaceId, path, options) {
2472
- return localVarFp.workspaceControllerGitBranchList(workspaceId, path, options).then((request) => request(axios, basePath));
2473
- },
2474
- /**
2475
- * Clone git repository
2476
- * @summary Clone repository
2477
- * @param {string} workspaceId
2478
- * @param {GitCloneRequestDto} gitCloneRequestDto
2479
- * @param {*} [options] Override http request option.
2480
- * @throws {RequiredError}
2481
- */
2482
- workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options) {
2483
- return localVarFp.workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(axios, basePath));
2484
- },
2485
- /**
2486
- * Commit changes to git repository
2487
- * @summary Commit changes
2488
- * @param {string} workspaceId
2489
- * @param {GitCommitRequestDto} gitCommitRequestDto
2490
- * @param {*} [options] Override http request option.
2491
- * @throws {RequiredError}
2492
- */
2493
- workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options) {
2494
- return localVarFp.workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(axios, basePath));
2495
- },
2496
- /**
2497
- * Get commit history from git repository
2498
- * @summary Get commit history
2499
- * @param {string} workspaceId
2500
- * @param {string} path
2501
- * @param {*} [options] Override http request option.
2502
- * @throws {RequiredError}
2503
- */
2504
- workspaceControllerGitCommitHistory(workspaceId, path, options) {
2505
- return localVarFp.workspaceControllerGitCommitHistory(workspaceId, path, options).then((request) => request(axios, basePath));
2506
- },
2507
- /**
2508
- * Create branch on git repository
2509
- * @summary Create branch
2510
- * @param {string} workspaceId
2511
- * @param {GitBranchRequestDto} gitBranchRequestDto
2512
- * @param {*} [options] Override http request option.
2513
- * @throws {RequiredError}
2514
- */
2515
- workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options) {
2516
- return localVarFp.workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(axios, basePath));
2517
- },
2518
- /**
2519
- * Pull changes from remote
2520
- * @summary Pull changes
2521
- * @param {string} workspaceId
2522
- * @param {GitRepoRequestDto} gitRepoRequestDto
2523
- * @param {*} [options] Override http request option.
2524
- * @throws {RequiredError}
2525
- */
2526
- workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options) {
2527
- return localVarFp.workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
2528
- },
2529
- /**
2530
- * Push changes to remote
2531
- * @summary Push changes
2532
- * @param {string} workspaceId
2533
- * @param {GitRepoRequestDto} gitRepoRequestDto
2534
- * @param {*} [options] Override http request option.
2535
- * @throws {RequiredError}
2536
- */
2537
- workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options) {
2538
- return localVarFp.workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
2539
- },
2540
- /**
2541
- * Get status from git repository
2542
- * @summary Get git status
2543
- * @param {string} workspaceId
2544
- * @param {string} path
2545
- * @param {*} [options] Override http request option.
2546
- * @throws {RequiredError}
2547
- */
2548
- workspaceControllerGitStatus(workspaceId, path, options) {
2549
- return localVarFp.workspaceControllerGitStatus(workspaceId, path, options).then((request) => request(axios, basePath));
2550
- },
2551
- /**
2552
- * List files inside workspace
2553
- * @summary List files
2554
- * @param {string} workspaceId
2555
- * @param {string} [path]
2556
- * @param {*} [options] Override http request option.
2557
- * @throws {RequiredError}
2558
- */
2559
- workspaceControllerListFiles(workspaceId, path, options) {
2560
- return localVarFp.workspaceControllerListFiles(workspaceId, path, options).then((request) => request(axios, basePath));
2561
- },
2562
- /**
2563
- *
2564
- * @param {boolean} [verbose] Include verbose output
2565
- * @param {*} [options] Override http request option.
2566
- * @throws {RequiredError}
2567
- */
2568
- workspaceControllerListWorkspaces(verbose, options) {
2569
- return localVarFp.workspaceControllerListWorkspaces(verbose, options).then((request) => request(axios, basePath));
2570
- },
2571
- /**
2572
- * Move file inside workspace
2573
- * @summary Move file
2574
- * @param {string} workspaceId
2575
- * @param {string} source
2576
- * @param {string} destination
2577
- * @param {*} [options] Override http request option.
2578
- * @throws {RequiredError}
2579
- */
2580
- workspaceControllerMoveFile(workspaceId, source, destination, options) {
2581
- return localVarFp.workspaceControllerMoveFile(workspaceId, source, destination, options).then((request) => request(axios, basePath));
2582
- },
2583
- /**
2584
- *
2585
- * @param {string} workspaceId
2586
- * @param {boolean} force
2587
- * @param {*} [options] Override http request option.
2588
- * @throws {RequiredError}
2589
- */
2590
- workspaceControllerRemoveWorkspace(workspaceId, force, options) {
2591
- return localVarFp.workspaceControllerRemoveWorkspace(workspaceId, force, options).then((request) => request(axios, basePath));
2592
- },
2593
- /**
2594
- * Replace text/pattern in multiple files inside workspace
2595
- * @summary Replace in files
2596
- * @param {string} workspaceId
2597
- * @param {ReplaceRequestDto} replaceRequestDto
2598
- * @param {*} [options] Override http request option.
2599
- * @throws {RequiredError}
2600
- */
2601
- workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options) {
2602
- return localVarFp.workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(axios, basePath));
2603
- },
2604
- /**
2605
- * Replace all labels for a workspace. Existing labels will be removed.
2606
- * @summary Replace workspace labels
2607
- * @param {string} workspaceId
2608
- * @param {WorkspaceLabelsDto} workspaceLabelsDto
2609
- * @param {*} [options] Override http request option.
2610
- * @throws {RequiredError}
2611
- */
2612
- workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options) {
2613
- return localVarFp.workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options).then((request) => request(axios, basePath));
2614
- },
2615
- /**
2616
- * Search for files inside workspace
2617
- * @summary Search files
2618
- * @param {string} workspaceId
2619
- * @param {string} path
2620
- * @param {string} pattern
2621
- * @param {*} [options] Override http request option.
2622
- * @throws {RequiredError}
2623
- */
2624
- workspaceControllerSearchFiles(workspaceId, path, pattern, options) {
2625
- return localVarFp.workspaceControllerSearchFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
2626
- },
2627
- /**
2628
- * Set file owner/group/permissions inside workspace
2629
- * @summary Set file permissions
2630
- * @param {string} workspaceId
2631
- * @param {string} path
2632
- * @param {string} owner
2633
- * @param {string} group
2634
- * @param {string} mode
2635
- * @param {*} [options] Override http request option.
2636
- * @throws {RequiredError}
2637
- */
2638
- workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options) {
2639
- return localVarFp.workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(axios, basePath));
2640
- },
2641
- /**
2642
- *
2643
- * @param {string} workspaceId
2644
- * @param {*} [options] Override http request option.
2645
- * @throws {RequiredError}
2646
- */
2647
- workspaceControllerStartWorkspace(workspaceId, options) {
2648
- return localVarFp.workspaceControllerStartWorkspace(workspaceId, options).then((request) => request(axios, basePath));
2649
- },
2650
- /**
2651
- *
2652
- * @param {string} workspaceId
2653
- * @param {*} [options] Override http request option.
2654
- * @throws {RequiredError}
2655
- */
2656
- workspaceControllerStopWorkspace(workspaceId, options) {
2657
- return localVarFp.workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(axios, basePath));
2658
- },
2659
- /**
2660
- * Change public preview status of a workspace
2661
- * @summary Change public preview status
2662
- * @param {string} workspaceId ID of the workspace
2663
- * @param {boolean} isPublic Public status to set
2664
- * @param {*} [options] Override http request option.
2665
- * @throws {RequiredError}
2666
- */
2667
- workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
2668
- return localVarFp.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
2669
- },
2670
- /**
2671
- * Upload file inside workspace
2672
- * @summary Upload file
2673
- * @param {string} workspaceId
2674
- * @param {string} path
2675
- * @param {File} [file]
2676
- * @param {*} [options] Override http request option.
2677
- * @throws {RequiredError}
2678
- */
2679
- workspaceControllerUploadFile(workspaceId, path, file, options) {
2680
- return localVarFp.workspaceControllerUploadFile(workspaceId, path, file, options).then((request) => request(axios, basePath));
2681
- },
2682
- };
2683
- };
2684
- exports.DefaultApiFactory = DefaultApiFactory;
2685
- /**
2686
- * DefaultApi - object-oriented interface
2687
- * @export
2688
- * @class DefaultApi
2689
- * @extends {BaseAPI}
2690
- */
2691
- class DefaultApi extends base_1.BaseAPI {
2692
- /**
2693
- *
2694
- * @summary Create a new API key
2695
- * @param {CreateApiKeyDto} createApiKeyDto
2696
- * @param {*} [options] Override http request option.
2697
- * @throws {RequiredError}
2698
- * @memberof DefaultApi
2699
- */
2700
- apiKeyControllerCreateApiKey(createApiKeyDto, options) {
2701
- return (0, exports.DefaultApiFp)(this.configuration).apiKeyControllerCreateApiKey(createApiKeyDto, options).then((request) => request(this.axios, this.basePath));
2702
- }
2703
- /**
2704
- *
2705
- * @summary Delete an API key by name
2706
- * @param {string} name
2707
- * @param {*} [options] Override http request option.
2708
- * @throws {RequiredError}
2709
- * @memberof DefaultApi
2710
- */
2711
- apiKeyControllerDeleteApiKey(name, options) {
2712
- return (0, exports.DefaultApiFp)(this.configuration).apiKeyControllerDeleteApiKey(name, options).then((request) => request(this.axios, this.basePath));
2713
- }
2714
- /**
2715
- *
2716
- * @summary Get a specific API key by name
2717
- * @param {string} name
2718
- * @param {*} [options] Override http request option.
2719
- * @throws {RequiredError}
2720
- * @memberof DefaultApi
2721
- */
2722
- apiKeyControllerGetApiKey(name, options) {
2723
- return (0, exports.DefaultApiFp)(this.configuration).apiKeyControllerGetApiKey(name, options).then((request) => request(this.axios, this.basePath));
2724
- }
2725
- /**
2726
- *
2727
- * @summary Get all API keys for the user
2728
- * @param {*} [options] Override http request option.
2729
- * @throws {RequiredError}
2730
- * @memberof DefaultApi
2731
- */
2732
- apiKeyControllerGetApiKeys(options) {
2733
- return (0, exports.DefaultApiFp)(this.configuration).apiKeyControllerGetApiKeys(options).then((request) => request(this.axios, this.basePath));
2734
- }
101
+ appControllerGetHello(options) {
102
+ return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
103
+ },
104
+ };
105
+ };
106
+ exports.DefaultApiFactory = DefaultApiFactory;
107
+ /**
108
+ * DefaultApi - object-oriented interface
109
+ * @export
110
+ * @class DefaultApi
111
+ * @extends {BaseAPI}
112
+ */
113
+ class DefaultApi extends base_1.BaseAPI {
2735
114
  /**
2736
115
  *
2737
116
  * @param {*} [options] Override http request option.
@@ -2741,431 +120,5 @@ class DefaultApi extends base_1.BaseAPI {
2741
120
  appControllerGetHello(options) {
2742
121
  return (0, exports.DefaultApiFp)(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
2743
122
  }
2744
- /**
2745
- *
2746
- * @param {object} body
2747
- * @param {*} [options] Override http request option.
2748
- * @throws {RequiredError}
2749
- * @memberof DefaultApi
2750
- */
2751
- nodeControllerCreate(body, options) {
2752
- return (0, exports.DefaultApiFp)(this.configuration).nodeControllerCreate(body, options).then((request) => request(this.axios, this.basePath));
2753
- }
2754
- /**
2755
- *
2756
- * @param {*} [options] Override http request option.
2757
- * @throws {RequiredError}
2758
- * @memberof DefaultApi
2759
- */
2760
- nodeControllerFindAll(options) {
2761
- return (0, exports.DefaultApiFp)(this.configuration).nodeControllerFindAll(options).then((request) => request(this.axios, this.basePath));
2762
- }
2763
- /**
2764
- *
2765
- * @param {string} id
2766
- * @param {*} [options] Override http request option.
2767
- * @throws {RequiredError}
2768
- * @memberof DefaultApi
2769
- */
2770
- nodeControllerUpdateSchedulingStatus(id, options) {
2771
- return (0, exports.DefaultApiFp)(this.configuration).nodeControllerUpdateSchedulingStatus(id, options).then((request) => request(this.axios, this.basePath));
2772
- }
2773
- /**
2774
- *
2775
- * @param {object} body
2776
- * @param {*} [options] Override http request option.
2777
- * @throws {RequiredError}
2778
- * @memberof DefaultApi
2779
- */
2780
- userControllerCreate(body, options) {
2781
- return (0, exports.DefaultApiFp)(this.configuration).userControllerCreate(body, options).then((request) => request(this.axios, this.basePath));
2782
- }
2783
- /**
2784
- *
2785
- * @param {*} [options] Override http request option.
2786
- * @throws {RequiredError}
2787
- * @memberof DefaultApi
2788
- */
2789
- userControllerFindAll(options) {
2790
- return (0, exports.DefaultApiFp)(this.configuration).userControllerFindAll(options).then((request) => request(this.axios, this.basePath));
2791
- }
2792
- /**
2793
- *
2794
- * @param {string} id
2795
- * @param {*} [options] Override http request option.
2796
- * @throws {RequiredError}
2797
- * @memberof DefaultApi
2798
- */
2799
- userControllerRegenerateKeyPair(id, options) {
2800
- return (0, exports.DefaultApiFp)(this.configuration).userControllerRegenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
2801
- }
2802
- /**
2803
- * Create folder inside workspace
2804
- * @summary Create folder
2805
- * @param {string} workspaceId
2806
- * @param {string} path
2807
- * @param {string} mode
2808
- * @param {*} [options] Override http request option.
2809
- * @throws {RequiredError}
2810
- * @memberof DefaultApi
2811
- */
2812
- workspaceControllerCreateFolder(workspaceId, path, mode, options) {
2813
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerCreateFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
2814
- }
2815
- /**
2816
- *
2817
- * @summary Create a workspace snapshot
2818
- * @param {string} workspaceId
2819
- * @param {*} [options] Override http request option.
2820
- * @throws {RequiredError}
2821
- * @memberof DefaultApi
2822
- */
2823
- workspaceControllerCreateSnapshot(workspaceId, options) {
2824
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerCreateSnapshot(workspaceId, options).then((request) => request(this.axios, this.basePath));
2825
- }
2826
- /**
2827
- *
2828
- * @param {CreateWorkspaceDto} createWorkspaceDto
2829
- * @param {*} [options] Override http request option.
2830
- * @throws {RequiredError}
2831
- * @memberof DefaultApi
2832
- */
2833
- workspaceControllerCreateWorkspace(createWorkspaceDto, options) {
2834
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerCreateWorkspace(createWorkspaceDto, options).then((request) => request(this.axios, this.basePath));
2835
- }
2836
- /**
2837
- * Delete file inside workspace
2838
- * @summary Delete file
2839
- * @param {string} workspaceId
2840
- * @param {string} path
2841
- * @param {*} [options] Override http request option.
2842
- * @throws {RequiredError}
2843
- * @memberof DefaultApi
2844
- */
2845
- workspaceControllerDeleteFile(workspaceId, path, options) {
2846
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerDeleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
2847
- }
2848
- /**
2849
- * Download file from workspace
2850
- * @summary Download file
2851
- * @param {string} workspaceId
2852
- * @param {string} path
2853
- * @param {*} [options] Override http request option.
2854
- * @throws {RequiredError}
2855
- * @memberof DefaultApi
2856
- */
2857
- workspaceControllerDownloadFile(workspaceId, path, options) {
2858
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerDownloadFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
2859
- }
2860
- /**
2861
- * Execute command synchronously inside workspace
2862
- * @summary Execute command
2863
- * @param {string} workspaceId
2864
- * @param {ExecuteRequestDto} executeRequestDto
2865
- * @param {*} [options] Override http request option.
2866
- * @throws {RequiredError}
2867
- * @memberof DefaultApi
2868
- */
2869
- workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options) {
2870
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options).then((request) => request(this.axios, this.basePath));
2871
- }
2872
- /**
2873
- * Search for text/pattern inside workspace files
2874
- * @summary Search for text/pattern in files
2875
- * @param {string} workspaceId
2876
- * @param {string} path
2877
- * @param {string} pattern
2878
- * @param {*} [options] Override http request option.
2879
- * @throws {RequiredError}
2880
- * @memberof DefaultApi
2881
- */
2882
- workspaceControllerFindInFiles(workspaceId, path, pattern, options) {
2883
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerFindInFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
2884
- }
2885
- /**
2886
- * Get file info inside workspace
2887
- * @summary Get file info
2888
- * @param {string} workspaceId
2889
- * @param {string} path
2890
- * @param {*} [options] Override http request option.
2891
- * @throws {RequiredError}
2892
- * @memberof DefaultApi
2893
- */
2894
- workspaceControllerGetFileInfo(workspaceId, path, options) {
2895
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGetFileInfo(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
2896
- }
2897
- /**
2898
- * Get workspace project directory
2899
- * @summary Get workspace project dir
2900
- * @param {string} workspaceId
2901
- * @param {*} [options] Override http request option.
2902
- * @throws {RequiredError}
2903
- * @memberof DefaultApi
2904
- */
2905
- workspaceControllerGetProjectDir(workspaceId, options) {
2906
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGetProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
2907
- }
2908
- /**
2909
- *
2910
- * @param {string} workspaceId
2911
- * @param {boolean} [verbose] Include verbose output
2912
- * @param {*} [options] Override http request option.
2913
- * @throws {RequiredError}
2914
- * @memberof DefaultApi
2915
- */
2916
- workspaceControllerGetWorkspace(workspaceId, verbose, options) {
2917
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGetWorkspace(workspaceId, verbose, options).then((request) => request(this.axios, this.basePath));
2918
- }
2919
- /**
2920
- * Add files to git commit
2921
- * @summary Add files
2922
- * @param {string} workspaceId
2923
- * @param {GitAddRequestDto} gitAddRequestDto
2924
- * @param {*} [options] Override http request option.
2925
- * @throws {RequiredError}
2926
- * @memberof DefaultApi
2927
- */
2928
- workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options) {
2929
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(this.axios, this.basePath));
2930
- }
2931
- /**
2932
- * Get branch list from git repository
2933
- * @summary Get branch list
2934
- * @param {string} workspaceId
2935
- * @param {string} path
2936
- * @param {*} [options] Override http request option.
2937
- * @throws {RequiredError}
2938
- * @memberof DefaultApi
2939
- */
2940
- workspaceControllerGitBranchList(workspaceId, path, options) {
2941
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitBranchList(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
2942
- }
2943
- /**
2944
- * Clone git repository
2945
- * @summary Clone repository
2946
- * @param {string} workspaceId
2947
- * @param {GitCloneRequestDto} gitCloneRequestDto
2948
- * @param {*} [options] Override http request option.
2949
- * @throws {RequiredError}
2950
- * @memberof DefaultApi
2951
- */
2952
- workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options) {
2953
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(this.axios, this.basePath));
2954
- }
2955
- /**
2956
- * Commit changes to git repository
2957
- * @summary Commit changes
2958
- * @param {string} workspaceId
2959
- * @param {GitCommitRequestDto} gitCommitRequestDto
2960
- * @param {*} [options] Override http request option.
2961
- * @throws {RequiredError}
2962
- * @memberof DefaultApi
2963
- */
2964
- workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options) {
2965
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(this.axios, this.basePath));
2966
- }
2967
- /**
2968
- * Get commit history from git repository
2969
- * @summary Get commit history
2970
- * @param {string} workspaceId
2971
- * @param {string} path
2972
- * @param {*} [options] Override http request option.
2973
- * @throws {RequiredError}
2974
- * @memberof DefaultApi
2975
- */
2976
- workspaceControllerGitCommitHistory(workspaceId, path, options) {
2977
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitCommitHistory(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
2978
- }
2979
- /**
2980
- * Create branch on git repository
2981
- * @summary Create branch
2982
- * @param {string} workspaceId
2983
- * @param {GitBranchRequestDto} gitBranchRequestDto
2984
- * @param {*} [options] Override http request option.
2985
- * @throws {RequiredError}
2986
- * @memberof DefaultApi
2987
- */
2988
- workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options) {
2989
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(this.axios, this.basePath));
2990
- }
2991
- /**
2992
- * Pull changes from remote
2993
- * @summary Pull changes
2994
- * @param {string} workspaceId
2995
- * @param {GitRepoRequestDto} gitRepoRequestDto
2996
- * @param {*} [options] Override http request option.
2997
- * @throws {RequiredError}
2998
- * @memberof DefaultApi
2999
- */
3000
- workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options) {
3001
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
3002
- }
3003
- /**
3004
- * Push changes to remote
3005
- * @summary Push changes
3006
- * @param {string} workspaceId
3007
- * @param {GitRepoRequestDto} gitRepoRequestDto
3008
- * @param {*} [options] Override http request option.
3009
- * @throws {RequiredError}
3010
- * @memberof DefaultApi
3011
- */
3012
- workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options) {
3013
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
3014
- }
3015
- /**
3016
- * Get status from git repository
3017
- * @summary Get git status
3018
- * @param {string} workspaceId
3019
- * @param {string} path
3020
- * @param {*} [options] Override http request option.
3021
- * @throws {RequiredError}
3022
- * @memberof DefaultApi
3023
- */
3024
- workspaceControllerGitStatus(workspaceId, path, options) {
3025
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerGitStatus(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
3026
- }
3027
- /**
3028
- * List files inside workspace
3029
- * @summary List files
3030
- * @param {string} workspaceId
3031
- * @param {string} [path]
3032
- * @param {*} [options] Override http request option.
3033
- * @throws {RequiredError}
3034
- * @memberof DefaultApi
3035
- */
3036
- workspaceControllerListFiles(workspaceId, path, options) {
3037
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerListFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
3038
- }
3039
- /**
3040
- *
3041
- * @param {boolean} [verbose] Include verbose output
3042
- * @param {*} [options] Override http request option.
3043
- * @throws {RequiredError}
3044
- * @memberof DefaultApi
3045
- */
3046
- workspaceControllerListWorkspaces(verbose, options) {
3047
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerListWorkspaces(verbose, options).then((request) => request(this.axios, this.basePath));
3048
- }
3049
- /**
3050
- * Move file inside workspace
3051
- * @summary Move file
3052
- * @param {string} workspaceId
3053
- * @param {string} source
3054
- * @param {string} destination
3055
- * @param {*} [options] Override http request option.
3056
- * @throws {RequiredError}
3057
- * @memberof DefaultApi
3058
- */
3059
- workspaceControllerMoveFile(workspaceId, source, destination, options) {
3060
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerMoveFile(workspaceId, source, destination, options).then((request) => request(this.axios, this.basePath));
3061
- }
3062
- /**
3063
- *
3064
- * @param {string} workspaceId
3065
- * @param {boolean} force
3066
- * @param {*} [options] Override http request option.
3067
- * @throws {RequiredError}
3068
- * @memberof DefaultApi
3069
- */
3070
- workspaceControllerRemoveWorkspace(workspaceId, force, options) {
3071
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerRemoveWorkspace(workspaceId, force, options).then((request) => request(this.axios, this.basePath));
3072
- }
3073
- /**
3074
- * Replace text/pattern in multiple files inside workspace
3075
- * @summary Replace in files
3076
- * @param {string} workspaceId
3077
- * @param {ReplaceRequestDto} replaceRequestDto
3078
- * @param {*} [options] Override http request option.
3079
- * @throws {RequiredError}
3080
- * @memberof DefaultApi
3081
- */
3082
- workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options) {
3083
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(this.axios, this.basePath));
3084
- }
3085
- /**
3086
- * Replace all labels for a workspace. Existing labels will be removed.
3087
- * @summary Replace workspace labels
3088
- * @param {string} workspaceId
3089
- * @param {WorkspaceLabelsDto} workspaceLabelsDto
3090
- * @param {*} [options] Override http request option.
3091
- * @throws {RequiredError}
3092
- * @memberof DefaultApi
3093
- */
3094
- workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options) {
3095
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options).then((request) => request(this.axios, this.basePath));
3096
- }
3097
- /**
3098
- * Search for files inside workspace
3099
- * @summary Search files
3100
- * @param {string} workspaceId
3101
- * @param {string} path
3102
- * @param {string} pattern
3103
- * @param {*} [options] Override http request option.
3104
- * @throws {RequiredError}
3105
- * @memberof DefaultApi
3106
- */
3107
- workspaceControllerSearchFiles(workspaceId, path, pattern, options) {
3108
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerSearchFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
3109
- }
3110
- /**
3111
- * Set file owner/group/permissions inside workspace
3112
- * @summary Set file permissions
3113
- * @param {string} workspaceId
3114
- * @param {string} path
3115
- * @param {string} owner
3116
- * @param {string} group
3117
- * @param {string} mode
3118
- * @param {*} [options] Override http request option.
3119
- * @throws {RequiredError}
3120
- * @memberof DefaultApi
3121
- */
3122
- workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options) {
3123
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(this.axios, this.basePath));
3124
- }
3125
- /**
3126
- *
3127
- * @param {string} workspaceId
3128
- * @param {*} [options] Override http request option.
3129
- * @throws {RequiredError}
3130
- * @memberof DefaultApi
3131
- */
3132
- workspaceControllerStartWorkspace(workspaceId, options) {
3133
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerStartWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
3134
- }
3135
- /**
3136
- *
3137
- * @param {string} workspaceId
3138
- * @param {*} [options] Override http request option.
3139
- * @throws {RequiredError}
3140
- * @memberof DefaultApi
3141
- */
3142
- workspaceControllerStopWorkspace(workspaceId, options) {
3143
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
3144
- }
3145
- /**
3146
- * Change public preview status of a workspace
3147
- * @summary Change public preview status
3148
- * @param {string} workspaceId ID of the workspace
3149
- * @param {boolean} isPublic Public status to set
3150
- * @param {*} [options] Override http request option.
3151
- * @throws {RequiredError}
3152
- * @memberof DefaultApi
3153
- */
3154
- workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
3155
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
3156
- }
3157
- /**
3158
- * Upload file inside workspace
3159
- * @summary Upload file
3160
- * @param {string} workspaceId
3161
- * @param {string} path
3162
- * @param {File} [file]
3163
- * @param {*} [options] Override http request option.
3164
- * @throws {RequiredError}
3165
- * @memberof DefaultApi
3166
- */
3167
- workspaceControllerUploadFile(workspaceId, path, file, options) {
3168
- return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerUploadFile(workspaceId, path, file, options).then((request) => request(this.axios, this.basePath));
3169
- }
3170
123
  }
3171
124
  exports.DefaultApi = DefaultApi;