@daytonaio/api-client 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +4 -8
  2. package/README.md +2 -2
  3. package/api/api-keys-api.ts +353 -0
  4. package/api/default-api.ts +36 -3313
  5. package/api/docker-registry-api.ts +108 -108
  6. package/api/nodes-api.ts +274 -0
  7. package/api/users-api.ts +274 -0
  8. package/api/workspace-api.ts +760 -0
  9. package/api.ts +4 -0
  10. package/dist/api/api-keys-api.d.ts +171 -0
  11. package/dist/api/api-keys-api.js +339 -0
  12. package/dist/api/default-api.d.ts +15 -1454
  13. package/dist/api/default-api.js +43 -3090
  14. package/dist/api/docker-registry-api.d.ts +64 -64
  15. package/dist/api/docker-registry-api.js +108 -108
  16. package/dist/api/nodes-api.d.ts +135 -0
  17. package/dist/api/nodes-api.js +270 -0
  18. package/dist/api/users-api.d.ts +135 -0
  19. package/dist/api/users-api.js +270 -0
  20. package/dist/api/workspace-api.d.ts +356 -0
  21. package/dist/api/workspace-api.js +722 -0
  22. package/dist/api.d.ts +4 -0
  23. package/dist/api.js +4 -0
  24. package/dist/esm/api/api-keys-api.d.ts +171 -0
  25. package/dist/esm/api/api-keys-api.js +332 -0
  26. package/dist/esm/api/default-api.d.ts +15 -1454
  27. package/dist/esm/api/default-api.js +41 -3088
  28. package/dist/esm/api/docker-registry-api.d.ts +64 -64
  29. package/dist/esm/api/docker-registry-api.js +108 -108
  30. package/dist/esm/api/nodes-api.d.ts +135 -0
  31. package/dist/esm/api/nodes-api.js +263 -0
  32. package/dist/esm/api/users-api.d.ts +135 -0
  33. package/dist/esm/api/users-api.js +263 -0
  34. package/dist/esm/api/workspace-api.d.ts +356 -0
  35. package/dist/esm/api/workspace-api.js +715 -0
  36. package/dist/esm/api.d.ts +4 -0
  37. package/dist/esm/api.js +4 -0
  38. package/dist/esm/models/create-workspace-dto.d.ts +1 -1
  39. package/dist/esm/models/index.d.ts +0 -8
  40. package/dist/esm/models/index.js +0 -8
  41. package/dist/esm/models/workspace-dto.d.ts +14 -0
  42. package/dist/models/create-workspace-dto.d.ts +1 -1
  43. package/dist/models/index.d.ts +0 -8
  44. package/dist/models/index.js +0 -8
  45. package/dist/models/workspace-dto.d.ts +14 -0
  46. package/models/create-workspace-dto.ts +1 -1
  47. package/models/index.ts +0 -8
  48. package/models/workspace-dto.ts +12 -0
  49. package/package.json +1 -1
  50. package/dist/esm/models/execute-request-dto.d.ts +0 -30
  51. package/dist/esm/models/execute-request-dto.js +0 -14
  52. package/dist/esm/models/execute-response-dto.d.ts +0 -30
  53. package/dist/esm/models/execute-response-dto.js +0 -14
  54. package/dist/esm/models/git-add-request-dto.d.ts +0 -30
  55. package/dist/esm/models/git-add-request-dto.js +0 -14
  56. package/dist/esm/models/git-branch-request-dto.d.ts +0 -30
  57. package/dist/esm/models/git-branch-request-dto.js +0 -14
  58. package/dist/esm/models/git-clone-request-dto.d.ts +0 -54
  59. package/dist/esm/models/git-clone-request-dto.js +0 -14
  60. package/dist/esm/models/git-commit-request-dto.d.ts +0 -42
  61. package/dist/esm/models/git-commit-request-dto.js +0 -14
  62. package/dist/esm/models/git-repo-request-dto.d.ts +0 -36
  63. package/dist/esm/models/git-repo-request-dto.js +0 -14
  64. package/dist/esm/models/replace-request-dto.d.ts +0 -36
  65. package/dist/esm/models/replace-request-dto.js +0 -14
  66. package/dist/models/execute-request-dto.d.ts +0 -30
  67. package/dist/models/execute-request-dto.js +0 -15
  68. package/dist/models/execute-response-dto.d.ts +0 -30
  69. package/dist/models/execute-response-dto.js +0 -15
  70. package/dist/models/git-add-request-dto.d.ts +0 -30
  71. package/dist/models/git-add-request-dto.js +0 -15
  72. package/dist/models/git-branch-request-dto.d.ts +0 -30
  73. package/dist/models/git-branch-request-dto.js +0 -15
  74. package/dist/models/git-clone-request-dto.d.ts +0 -54
  75. package/dist/models/git-clone-request-dto.js +0 -15
  76. package/dist/models/git-commit-request-dto.d.ts +0 -42
  77. package/dist/models/git-commit-request-dto.js +0 -15
  78. package/dist/models/git-repo-request-dto.d.ts +0 -36
  79. package/dist/models/git-repo-request-dto.js +0 -15
  80. package/dist/models/replace-request-dto.d.ts +0 -36
  81. package/dist/models/replace-request-dto.js +0 -15
  82. package/models/execute-request-dto.ts +0 -36
  83. package/models/execute-response-dto.ts +0 -36
  84. package/models/git-add-request-dto.ts +0 -36
  85. package/models/git-branch-request-dto.ts +0 -36
  86. package/models/git-clone-request-dto.ts +0 -60
  87. package/models/git-commit-request-dto.ts +0 -48
  88. package/models/git-repo-request-dto.ts +0 -42
  89. package/models/replace-request-dto.ts +0 -42
@@ -37,14 +37,14 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
37
37
  return {
38
38
  /**
39
39
  *
40
- * @summary Create a new docker registry
40
+ * @summary Create registry
41
41
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
42
42
  * @param {*} [options] Override http request option.
43
43
  * @throws {RequiredError}
44
44
  */
45
- dockerRegistryControllerCreate: (createDockerRegistryDto_1, ...args_1) => __awaiter(this, [createDockerRegistryDto_1, ...args_1], void 0, function* (createDockerRegistryDto, options = {}) {
45
+ createRegistry: (createDockerRegistryDto_1, ...args_1) => __awaiter(this, [createDockerRegistryDto_1, ...args_1], void 0, function* (createDockerRegistryDto, options = {}) {
46
46
  // verify required parameter 'createDockerRegistryDto' is not null or undefined
47
- (0, common_1.assertParamExists)('dockerRegistryControllerCreate', 'createDockerRegistryDto', createDockerRegistryDto);
47
+ (0, common_1.assertParamExists)('createRegistry', 'createDockerRegistryDto', createDockerRegistryDto);
48
48
  const localVarPath = `/docker-registry`;
49
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
50
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -70,19 +70,23 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
70
70
  }),
71
71
  /**
72
72
  *
73
- * @summary Get all docker registries
73
+ * @summary Delete registry
74
+ * @param {string} id
74
75
  * @param {*} [options] Override http request option.
75
76
  * @throws {RequiredError}
76
77
  */
77
- dockerRegistryControllerFindAll: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
78
- const localVarPath = `/docker-registry`;
78
+ deleteRegistry: (id_1, ...args_2) => __awaiter(this, [id_1, ...args_2], void 0, function* (id, options = {}) {
79
+ // verify required parameter 'id' is not null or undefined
80
+ (0, common_1.assertParamExists)('deleteRegistry', 'id', id);
81
+ const localVarPath = `/docker-registry/{id}`
82
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
79
83
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
84
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
85
  let baseOptions;
82
86
  if (configuration) {
83
87
  baseOptions = configuration.baseOptions;
84
88
  }
85
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
86
90
  const localVarHeaderParameter = {};
87
91
  const localVarQueryParameter = {};
88
92
  // authentication oauth2 required
@@ -98,16 +102,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
98
102
  }),
99
103
  /**
100
104
  *
101
- * @summary Get a docker registry by id
102
- * @param {string} id
105
+ * @summary Get default registry
103
106
  * @param {*} [options] Override http request option.
104
107
  * @throws {RequiredError}
105
108
  */
106
- dockerRegistryControllerFindOne: (id_1, ...args_3) => __awaiter(this, [id_1, ...args_3], void 0, function* (id, options = {}) {
107
- // verify required parameter 'id' is not null or undefined
108
- (0, common_1.assertParamExists)('dockerRegistryControllerFindOne', 'id', id);
109
- const localVarPath = `/docker-registry/{id}`
110
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
109
+ getDefaultRegistry: (...args_3) => __awaiter(this, [...args_3], void 0, function* (options = {}) {
110
+ const localVarPath = `/docker-registry/default`;
111
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
112
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
113
  let baseOptions;
@@ -130,12 +130,16 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
130
130
  }),
131
131
  /**
132
132
  *
133
- * @summary Get the default docker registry
133
+ * @summary Get registry
134
+ * @param {string} id
134
135
  * @param {*} [options] Override http request option.
135
136
  * @throws {RequiredError}
136
137
  */
137
- dockerRegistryControllerGetDefault: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
138
- const localVarPath = `/docker-registry/default`;
138
+ getRegistry: (id_2, ...args_4) => __awaiter(this, [id_2, ...args_4], void 0, function* (id, options = {}) {
139
+ // verify required parameter 'id' is not null or undefined
140
+ (0, common_1.assertParamExists)('getRegistry', 'id', id);
141
+ const localVarPath = `/docker-registry/{id}`
142
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
139
143
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
140
144
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
141
145
  let baseOptions;
@@ -158,23 +162,19 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
158
162
  }),
159
163
  /**
160
164
  *
161
- * @summary Delete a docker registry
162
- * @param {string} id
165
+ * @summary List registries
163
166
  * @param {*} [options] Override http request option.
164
167
  * @throws {RequiredError}
165
168
  */
166
- dockerRegistryControllerRemove: (id_2, ...args_5) => __awaiter(this, [id_2, ...args_5], void 0, function* (id, options = {}) {
167
- // verify required parameter 'id' is not null or undefined
168
- (0, common_1.assertParamExists)('dockerRegistryControllerRemove', 'id', id);
169
- const localVarPath = `/docker-registry/{id}`
170
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
169
+ listRegistries: (...args_5) => __awaiter(this, [...args_5], void 0, function* (options = {}) {
170
+ const localVarPath = `/docker-registry`;
171
171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
172
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
173
173
  let baseOptions;
174
174
  if (configuration) {
175
175
  baseOptions = configuration.baseOptions;
176
176
  }
177
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
178
178
  const localVarHeaderParameter = {};
179
179
  const localVarQueryParameter = {};
180
180
  // authentication oauth2 required
@@ -190,14 +190,14 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
190
190
  }),
191
191
  /**
192
192
  *
193
- * @summary Set a docker registry as default
193
+ * @summary Set default registry
194
194
  * @param {string} id
195
195
  * @param {*} [options] Override http request option.
196
196
  * @throws {RequiredError}
197
197
  */
198
- dockerRegistryControllerSetDefault: (id_3, ...args_6) => __awaiter(this, [id_3, ...args_6], void 0, function* (id, options = {}) {
198
+ setDefaultRegistry: (id_3, ...args_6) => __awaiter(this, [id_3, ...args_6], void 0, function* (id, options = {}) {
199
199
  // verify required parameter 'id' is not null or undefined
200
- (0, common_1.assertParamExists)('dockerRegistryControllerSetDefault', 'id', id);
200
+ (0, common_1.assertParamExists)('setDefaultRegistry', 'id', id);
201
201
  const localVarPath = `/docker-registry/{id}/set-default`
202
202
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
203
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -222,17 +222,17 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
222
222
  }),
223
223
  /**
224
224
  *
225
- * @summary Update a docker registry
225
+ * @summary Update registry
226
226
  * @param {string} id
227
227
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
228
228
  * @param {*} [options] Override http request option.
229
229
  * @throws {RequiredError}
230
230
  */
231
- dockerRegistryControllerUpdate: (id_4, updateDockerRegistryDto_1, ...args_7) => __awaiter(this, [id_4, updateDockerRegistryDto_1, ...args_7], void 0, function* (id, updateDockerRegistryDto, options = {}) {
231
+ updateRegistry: (id_4, updateDockerRegistryDto_1, ...args_7) => __awaiter(this, [id_4, updateDockerRegistryDto_1, ...args_7], void 0, function* (id, updateDockerRegistryDto, options = {}) {
232
232
  // verify required parameter 'id' is not null or undefined
233
- (0, common_1.assertParamExists)('dockerRegistryControllerUpdate', 'id', id);
233
+ (0, common_1.assertParamExists)('updateRegistry', 'id', id);
234
234
  // verify required parameter 'updateDockerRegistryDto' is not null or undefined
235
- (0, common_1.assertParamExists)('dockerRegistryControllerUpdate', 'updateDockerRegistryDto', updateDockerRegistryDto);
235
+ (0, common_1.assertParamExists)('updateRegistry', 'updateDockerRegistryDto', updateDockerRegistryDto);
236
236
  const localVarPath = `/docker-registry/{id}`
237
237
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
238
238
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -269,112 +269,112 @@ const DockerRegistryApiFp = function (configuration) {
269
269
  return {
270
270
  /**
271
271
  *
272
- * @summary Create a new docker registry
272
+ * @summary Create registry
273
273
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
274
274
  * @param {*} [options] Override http request option.
275
275
  * @throws {RequiredError}
276
276
  */
277
- dockerRegistryControllerCreate(createDockerRegistryDto, options) {
277
+ createRegistry(createDockerRegistryDto, options) {
278
278
  return __awaiter(this, void 0, void 0, function* () {
279
279
  var _a, _b, _c;
280
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerCreate(createDockerRegistryDto, options);
280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createRegistry(createDockerRegistryDto, options);
281
281
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
282
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
282
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.createRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
283
283
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
284
  });
285
285
  },
286
286
  /**
287
287
  *
288
- * @summary Get all docker registries
288
+ * @summary Delete registry
289
+ * @param {string} id
289
290
  * @param {*} [options] Override http request option.
290
291
  * @throws {RequiredError}
291
292
  */
292
- dockerRegistryControllerFindAll(options) {
293
+ deleteRegistry(id, options) {
293
294
  return __awaiter(this, void 0, void 0, function* () {
294
295
  var _a, _b, _c;
295
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindAll(options);
296
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRegistry(id, options);
296
297
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
297
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
298
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.deleteRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
298
299
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
299
300
  });
300
301
  },
301
302
  /**
302
303
  *
303
- * @summary Get a docker registry by id
304
- * @param {string} id
304
+ * @summary Get default registry
305
305
  * @param {*} [options] Override http request option.
306
306
  * @throws {RequiredError}
307
307
  */
308
- dockerRegistryControllerFindOne(id, options) {
308
+ getDefaultRegistry(options) {
309
309
  return __awaiter(this, void 0, void 0, function* () {
310
310
  var _a, _b, _c;
311
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindOne(id, options);
311
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultRegistry(options);
312
312
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
313
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
313
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
314
314
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
315
315
  });
316
316
  },
317
317
  /**
318
318
  *
319
- * @summary Get the default docker registry
319
+ * @summary Get registry
320
+ * @param {string} id
320
321
  * @param {*} [options] Override http request option.
321
322
  * @throws {RequiredError}
322
323
  */
323
- dockerRegistryControllerGetDefault(options) {
324
+ getRegistry(id, options) {
324
325
  return __awaiter(this, void 0, void 0, function* () {
325
326
  var _a, _b, _c;
326
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerGetDefault(options);
327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRegistry(id, options);
327
328
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
328
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerGetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
329
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
329
330
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
330
331
  });
331
332
  },
332
333
  /**
333
334
  *
334
- * @summary Delete a docker registry
335
- * @param {string} id
335
+ * @summary List registries
336
336
  * @param {*} [options] Override http request option.
337
337
  * @throws {RequiredError}
338
338
  */
339
- dockerRegistryControllerRemove(id, options) {
339
+ listRegistries(options) {
340
340
  return __awaiter(this, void 0, void 0, function* () {
341
341
  var _a, _b, _c;
342
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerRemove(id, options);
342
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listRegistries(options);
343
343
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
344
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerRemove']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
344
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.listRegistries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
345
345
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
346
346
  });
347
347
  },
348
348
  /**
349
349
  *
350
- * @summary Set a docker registry as default
350
+ * @summary Set default registry
351
351
  * @param {string} id
352
352
  * @param {*} [options] Override http request option.
353
353
  * @throws {RequiredError}
354
354
  */
355
- dockerRegistryControllerSetDefault(id, options) {
355
+ setDefaultRegistry(id, options) {
356
356
  return __awaiter(this, void 0, void 0, function* () {
357
357
  var _a, _b, _c;
358
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerSetDefault(id, options);
358
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setDefaultRegistry(id, options);
359
359
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
360
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerSetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
360
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.setDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
361
361
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
362
362
  });
363
363
  },
364
364
  /**
365
365
  *
366
- * @summary Update a docker registry
366
+ * @summary Update registry
367
367
  * @param {string} id
368
368
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
369
369
  * @param {*} [options] Override http request option.
370
370
  * @throws {RequiredError}
371
371
  */
372
- dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
372
+ updateRegistry(id, updateDockerRegistryDto, options) {
373
373
  return __awaiter(this, void 0, void 0, function* () {
374
374
  var _a, _b, _c;
375
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options);
375
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistryDto, options);
376
376
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
377
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
377
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.updateRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
378
378
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
379
379
  });
380
380
  },
@@ -390,72 +390,72 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
390
390
  return {
391
391
  /**
392
392
  *
393
- * @summary Create a new docker registry
393
+ * @summary Create registry
394
394
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
395
395
  * @param {*} [options] Override http request option.
396
396
  * @throws {RequiredError}
397
397
  */
398
- dockerRegistryControllerCreate(createDockerRegistryDto, options) {
399
- return localVarFp.dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(axios, basePath));
398
+ createRegistry(createDockerRegistryDto, options) {
399
+ return localVarFp.createRegistry(createDockerRegistryDto, options).then((request) => request(axios, basePath));
400
400
  },
401
401
  /**
402
402
  *
403
- * @summary Get all docker registries
403
+ * @summary Delete registry
404
+ * @param {string} id
404
405
  * @param {*} [options] Override http request option.
405
406
  * @throws {RequiredError}
406
407
  */
407
- dockerRegistryControllerFindAll(options) {
408
- return localVarFp.dockerRegistryControllerFindAll(options).then((request) => request(axios, basePath));
408
+ deleteRegistry(id, options) {
409
+ return localVarFp.deleteRegistry(id, options).then((request) => request(axios, basePath));
409
410
  },
410
411
  /**
411
412
  *
412
- * @summary Get a docker registry by id
413
- * @param {string} id
413
+ * @summary Get default registry
414
414
  * @param {*} [options] Override http request option.
415
415
  * @throws {RequiredError}
416
416
  */
417
- dockerRegistryControllerFindOne(id, options) {
418
- return localVarFp.dockerRegistryControllerFindOne(id, options).then((request) => request(axios, basePath));
417
+ getDefaultRegistry(options) {
418
+ return localVarFp.getDefaultRegistry(options).then((request) => request(axios, basePath));
419
419
  },
420
420
  /**
421
421
  *
422
- * @summary Get the default docker registry
422
+ * @summary Get registry
423
+ * @param {string} id
423
424
  * @param {*} [options] Override http request option.
424
425
  * @throws {RequiredError}
425
426
  */
426
- dockerRegistryControllerGetDefault(options) {
427
- return localVarFp.dockerRegistryControllerGetDefault(options).then((request) => request(axios, basePath));
427
+ getRegistry(id, options) {
428
+ return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
428
429
  },
429
430
  /**
430
431
  *
431
- * @summary Delete a docker registry
432
- * @param {string} id
432
+ * @summary List registries
433
433
  * @param {*} [options] Override http request option.
434
434
  * @throws {RequiredError}
435
435
  */
436
- dockerRegistryControllerRemove(id, options) {
437
- return localVarFp.dockerRegistryControllerRemove(id, options).then((request) => request(axios, basePath));
436
+ listRegistries(options) {
437
+ return localVarFp.listRegistries(options).then((request) => request(axios, basePath));
438
438
  },
439
439
  /**
440
440
  *
441
- * @summary Set a docker registry as default
441
+ * @summary Set default registry
442
442
  * @param {string} id
443
443
  * @param {*} [options] Override http request option.
444
444
  * @throws {RequiredError}
445
445
  */
446
- dockerRegistryControllerSetDefault(id, options) {
447
- return localVarFp.dockerRegistryControllerSetDefault(id, options).then((request) => request(axios, basePath));
446
+ setDefaultRegistry(id, options) {
447
+ return localVarFp.setDefaultRegistry(id, options).then((request) => request(axios, basePath));
448
448
  },
449
449
  /**
450
450
  *
451
- * @summary Update a docker registry
451
+ * @summary Update registry
452
452
  * @param {string} id
453
453
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
454
454
  * @param {*} [options] Override http request option.
455
455
  * @throws {RequiredError}
456
456
  */
457
- dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
458
- return localVarFp.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
457
+ updateRegistry(id, updateDockerRegistryDto, options) {
458
+ return localVarFp.updateRegistry(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
459
459
  },
460
460
  };
461
461
  };
@@ -469,79 +469,79 @@ exports.DockerRegistryApiFactory = DockerRegistryApiFactory;
469
469
  class DockerRegistryApi extends base_1.BaseAPI {
470
470
  /**
471
471
  *
472
- * @summary Create a new docker registry
472
+ * @summary Create registry
473
473
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
474
474
  * @param {*} [options] Override http request option.
475
475
  * @throws {RequiredError}
476
476
  * @memberof DockerRegistryApi
477
477
  */
478
- dockerRegistryControllerCreate(createDockerRegistryDto, options) {
479
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
478
+ createRegistry(createDockerRegistryDto, options) {
479
+ return (0, exports.DockerRegistryApiFp)(this.configuration).createRegistry(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
480
480
  }
481
481
  /**
482
482
  *
483
- * @summary Get all docker registries
483
+ * @summary Delete registry
484
+ * @param {string} id
484
485
  * @param {*} [options] Override http request option.
485
486
  * @throws {RequiredError}
486
487
  * @memberof DockerRegistryApi
487
488
  */
488
- dockerRegistryControllerFindAll(options) {
489
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerFindAll(options).then((request) => request(this.axios, this.basePath));
489
+ deleteRegistry(id, options) {
490
+ return (0, exports.DockerRegistryApiFp)(this.configuration).deleteRegistry(id, options).then((request) => request(this.axios, this.basePath));
490
491
  }
491
492
  /**
492
493
  *
493
- * @summary Get a docker registry by id
494
- * @param {string} id
494
+ * @summary Get default registry
495
495
  * @param {*} [options] Override http request option.
496
496
  * @throws {RequiredError}
497
497
  * @memberof DockerRegistryApi
498
498
  */
499
- dockerRegistryControllerFindOne(id, options) {
500
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
499
+ getDefaultRegistry(options) {
500
+ return (0, exports.DockerRegistryApiFp)(this.configuration).getDefaultRegistry(options).then((request) => request(this.axios, this.basePath));
501
501
  }
502
502
  /**
503
503
  *
504
- * @summary Get the default docker registry
504
+ * @summary Get registry
505
+ * @param {string} id
505
506
  * @param {*} [options] Override http request option.
506
507
  * @throws {RequiredError}
507
508
  * @memberof DockerRegistryApi
508
509
  */
509
- dockerRegistryControllerGetDefault(options) {
510
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerGetDefault(options).then((request) => request(this.axios, this.basePath));
510
+ getRegistry(id, options) {
511
+ return (0, exports.DockerRegistryApiFp)(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
511
512
  }
512
513
  /**
513
514
  *
514
- * @summary Delete a docker registry
515
- * @param {string} id
515
+ * @summary List registries
516
516
  * @param {*} [options] Override http request option.
517
517
  * @throws {RequiredError}
518
518
  * @memberof DockerRegistryApi
519
519
  */
520
- dockerRegistryControllerRemove(id, options) {
521
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
520
+ listRegistries(options) {
521
+ return (0, exports.DockerRegistryApiFp)(this.configuration).listRegistries(options).then((request) => request(this.axios, this.basePath));
522
522
  }
523
523
  /**
524
524
  *
525
- * @summary Set a docker registry as default
525
+ * @summary Set default registry
526
526
  * @param {string} id
527
527
  * @param {*} [options] Override http request option.
528
528
  * @throws {RequiredError}
529
529
  * @memberof DockerRegistryApi
530
530
  */
531
- dockerRegistryControllerSetDefault(id, options) {
532
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerSetDefault(id, options).then((request) => request(this.axios, this.basePath));
531
+ setDefaultRegistry(id, options) {
532
+ return (0, exports.DockerRegistryApiFp)(this.configuration).setDefaultRegistry(id, options).then((request) => request(this.axios, this.basePath));
533
533
  }
534
534
  /**
535
535
  *
536
- * @summary Update a docker registry
536
+ * @summary Update registry
537
537
  * @param {string} id
538
538
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
539
539
  * @param {*} [options] Override http request option.
540
540
  * @throws {RequiredError}
541
541
  * @memberof DockerRegistryApi
542
542
  */
543
- dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
544
- return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
543
+ updateRegistry(id, updateDockerRegistryDto, options) {
544
+ return (0, exports.DockerRegistryApiFp)(this.configuration).updateRegistry(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
545
545
  }
546
546
  }
547
547
  exports.DockerRegistryApi = DockerRegistryApi;
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ /**
16
+ * NodesApi - axios parameter creator
17
+ * @export
18
+ */
19
+ export declare const NodesApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ /**
21
+ *
22
+ * @summary Create node
23
+ * @param {object} body
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ */
27
+ createNode: (body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28
+ /**
29
+ *
30
+ * @summary List all nodes
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ listNodes: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ *
37
+ * @summary Update node scheduling status
38
+ * @param {string} id
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ updateNodeScheduling: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
43
+ };
44
+ /**
45
+ * NodesApi - functional programming interface
46
+ * @export
47
+ */
48
+ export declare const NodesApiFp: (configuration?: Configuration) => {
49
+ /**
50
+ *
51
+ * @summary Create node
52
+ * @param {object} body
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ createNode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
57
+ /**
58
+ *
59
+ * @summary List all nodes
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ listNodes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
64
+ /**
65
+ *
66
+ * @summary Update node scheduling status
67
+ * @param {string} id
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ updateNodeScheduling(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
72
+ };
73
+ /**
74
+ * NodesApi - factory interface
75
+ * @export
76
+ */
77
+ export declare const NodesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
78
+ /**
79
+ *
80
+ * @summary Create node
81
+ * @param {object} body
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ createNode(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
86
+ /**
87
+ *
88
+ * @summary List all nodes
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ listNodes(options?: RawAxiosRequestConfig): AxiosPromise<void>;
93
+ /**
94
+ *
95
+ * @summary Update node scheduling status
96
+ * @param {string} id
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ updateNodeScheduling(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
101
+ };
102
+ /**
103
+ * NodesApi - object-oriented interface
104
+ * @export
105
+ * @class NodesApi
106
+ * @extends {BaseAPI}
107
+ */
108
+ export declare class NodesApi extends BaseAPI {
109
+ /**
110
+ *
111
+ * @summary Create node
112
+ * @param {object} body
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ * @memberof NodesApi
116
+ */
117
+ createNode(body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
118
+ /**
119
+ *
120
+ * @summary List all nodes
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ * @memberof NodesApi
124
+ */
125
+ listNodes(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
126
+ /**
127
+ *
128
+ * @summary Update node scheduling status
129
+ * @param {string} id
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ * @memberof NodesApi
133
+ */
134
+ updateNodeScheduling(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
135
+ }