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