@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
@@ -34,14 +34,14 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
34
34
  return {
35
35
  /**
36
36
  *
37
- * @summary Create a new docker registry
37
+ * @summary Create registry
38
38
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
42
- dockerRegistryControllerCreate: (createDockerRegistryDto_1, ...args_1) => __awaiter(this, [createDockerRegistryDto_1, ...args_1], void 0, function* (createDockerRegistryDto, options = {}) {
42
+ createRegistry: (createDockerRegistryDto_1, ...args_1) => __awaiter(this, [createDockerRegistryDto_1, ...args_1], void 0, function* (createDockerRegistryDto, options = {}) {
43
43
  // verify required parameter 'createDockerRegistryDto' is not null or undefined
44
- assertParamExists('dockerRegistryControllerCreate', 'createDockerRegistryDto', createDockerRegistryDto);
44
+ assertParamExists('createRegistry', 'createDockerRegistryDto', createDockerRegistryDto);
45
45
  const localVarPath = `/docker-registry`;
46
46
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
47
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -67,19 +67,23 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
67
67
  }),
68
68
  /**
69
69
  *
70
- * @summary Get all docker registries
70
+ * @summary Delete registry
71
+ * @param {string} id
71
72
  * @param {*} [options] Override http request option.
72
73
  * @throws {RequiredError}
73
74
  */
74
- dockerRegistryControllerFindAll: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
75
- const localVarPath = `/docker-registry`;
75
+ deleteRegistry: (id_1, ...args_2) => __awaiter(this, [id_1, ...args_2], void 0, function* (id, options = {}) {
76
+ // verify required parameter 'id' is not null or undefined
77
+ assertParamExists('deleteRegistry', 'id', id);
78
+ const localVarPath = `/docker-registry/{id}`
79
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
76
80
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
81
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
82
  let baseOptions;
79
83
  if (configuration) {
80
84
  baseOptions = configuration.baseOptions;
81
85
  }
82
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
86
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
83
87
  const localVarHeaderParameter = {};
84
88
  const localVarQueryParameter = {};
85
89
  // authentication oauth2 required
@@ -95,16 +99,12 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
95
99
  }),
96
100
  /**
97
101
  *
98
- * @summary Get a docker registry by id
99
- * @param {string} id
102
+ * @summary Get default registry
100
103
  * @param {*} [options] Override http request option.
101
104
  * @throws {RequiredError}
102
105
  */
103
- dockerRegistryControllerFindOne: (id_1, ...args_3) => __awaiter(this, [id_1, ...args_3], void 0, function* (id, options = {}) {
104
- // verify required parameter 'id' is not null or undefined
105
- assertParamExists('dockerRegistryControllerFindOne', 'id', id);
106
- const localVarPath = `/docker-registry/{id}`
107
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
106
+ getDefaultRegistry: (...args_3) => __awaiter(this, [...args_3], void 0, function* (options = {}) {
107
+ const localVarPath = `/docker-registry/default`;
108
108
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
109
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
110
  let baseOptions;
@@ -127,12 +127,16 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
127
127
  }),
128
128
  /**
129
129
  *
130
- * @summary Get the default docker registry
130
+ * @summary Get registry
131
+ * @param {string} id
131
132
  * @param {*} [options] Override http request option.
132
133
  * @throws {RequiredError}
133
134
  */
134
- dockerRegistryControllerGetDefault: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
135
- const localVarPath = `/docker-registry/default`;
135
+ getRegistry: (id_2, ...args_4) => __awaiter(this, [id_2, ...args_4], void 0, function* (id, options = {}) {
136
+ // verify required parameter 'id' is not null or undefined
137
+ assertParamExists('getRegistry', 'id', id);
138
+ const localVarPath = `/docker-registry/{id}`
139
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
136
140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
141
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
142
  let baseOptions;
@@ -155,23 +159,19 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
155
159
  }),
156
160
  /**
157
161
  *
158
- * @summary Delete a docker registry
159
- * @param {string} id
162
+ * @summary List registries
160
163
  * @param {*} [options] Override http request option.
161
164
  * @throws {RequiredError}
162
165
  */
163
- dockerRegistryControllerRemove: (id_2, ...args_5) => __awaiter(this, [id_2, ...args_5], void 0, function* (id, options = {}) {
164
- // verify required parameter 'id' is not null or undefined
165
- assertParamExists('dockerRegistryControllerRemove', 'id', id);
166
- const localVarPath = `/docker-registry/{id}`
167
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
166
+ listRegistries: (...args_5) => __awaiter(this, [...args_5], void 0, function* (options = {}) {
167
+ const localVarPath = `/docker-registry`;
168
168
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
169
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
170
170
  let baseOptions;
171
171
  if (configuration) {
172
172
  baseOptions = configuration.baseOptions;
173
173
  }
174
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
175
175
  const localVarHeaderParameter = {};
176
176
  const localVarQueryParameter = {};
177
177
  // authentication oauth2 required
@@ -187,14 +187,14 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
187
187
  }),
188
188
  /**
189
189
  *
190
- * @summary Set a docker registry as default
190
+ * @summary Set default registry
191
191
  * @param {string} id
192
192
  * @param {*} [options] Override http request option.
193
193
  * @throws {RequiredError}
194
194
  */
195
- dockerRegistryControllerSetDefault: (id_3, ...args_6) => __awaiter(this, [id_3, ...args_6], void 0, function* (id, options = {}) {
195
+ setDefaultRegistry: (id_3, ...args_6) => __awaiter(this, [id_3, ...args_6], void 0, function* (id, options = {}) {
196
196
  // verify required parameter 'id' is not null or undefined
197
- assertParamExists('dockerRegistryControllerSetDefault', 'id', id);
197
+ assertParamExists('setDefaultRegistry', 'id', id);
198
198
  const localVarPath = `/docker-registry/{id}/set-default`
199
199
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
200
200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -219,17 +219,17 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
219
219
  }),
220
220
  /**
221
221
  *
222
- * @summary Update a docker registry
222
+ * @summary Update registry
223
223
  * @param {string} id
224
224
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
225
225
  * @param {*} [options] Override http request option.
226
226
  * @throws {RequiredError}
227
227
  */
228
- dockerRegistryControllerUpdate: (id_4, updateDockerRegistryDto_1, ...args_7) => __awaiter(this, [id_4, updateDockerRegistryDto_1, ...args_7], void 0, function* (id, updateDockerRegistryDto, options = {}) {
228
+ updateRegistry: (id_4, updateDockerRegistryDto_1, ...args_7) => __awaiter(this, [id_4, updateDockerRegistryDto_1, ...args_7], void 0, function* (id, updateDockerRegistryDto, options = {}) {
229
229
  // verify required parameter 'id' is not null or undefined
230
- assertParamExists('dockerRegistryControllerUpdate', 'id', id);
230
+ assertParamExists('updateRegistry', 'id', id);
231
231
  // verify required parameter 'updateDockerRegistryDto' is not null or undefined
232
- assertParamExists('dockerRegistryControllerUpdate', 'updateDockerRegistryDto', updateDockerRegistryDto);
232
+ assertParamExists('updateRegistry', 'updateDockerRegistryDto', updateDockerRegistryDto);
233
233
  const localVarPath = `/docker-registry/{id}`
234
234
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
235
235
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -265,112 +265,112 @@ export const DockerRegistryApiFp = function (configuration) {
265
265
  return {
266
266
  /**
267
267
  *
268
- * @summary Create a new docker registry
268
+ * @summary Create registry
269
269
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
270
270
  * @param {*} [options] Override http request option.
271
271
  * @throws {RequiredError}
272
272
  */
273
- dockerRegistryControllerCreate(createDockerRegistryDto, options) {
273
+ createRegistry(createDockerRegistryDto, options) {
274
274
  return __awaiter(this, void 0, void 0, function* () {
275
275
  var _a, _b, _c;
276
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerCreate(createDockerRegistryDto, options);
276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createRegistry(createDockerRegistryDto, options);
277
277
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
278
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
278
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.createRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
279
279
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
280
  });
281
281
  },
282
282
  /**
283
283
  *
284
- * @summary Get all docker registries
284
+ * @summary Delete registry
285
+ * @param {string} id
285
286
  * @param {*} [options] Override http request option.
286
287
  * @throws {RequiredError}
287
288
  */
288
- dockerRegistryControllerFindAll(options) {
289
+ deleteRegistry(id, options) {
289
290
  return __awaiter(this, void 0, void 0, function* () {
290
291
  var _a, _b, _c;
291
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindAll(options);
292
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRegistry(id, options);
292
293
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
293
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
294
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.deleteRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
294
295
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
295
296
  });
296
297
  },
297
298
  /**
298
299
  *
299
- * @summary Get a docker registry by id
300
- * @param {string} id
300
+ * @summary Get default registry
301
301
  * @param {*} [options] Override http request option.
302
302
  * @throws {RequiredError}
303
303
  */
304
- dockerRegistryControllerFindOne(id, options) {
304
+ getDefaultRegistry(options) {
305
305
  return __awaiter(this, void 0, void 0, function* () {
306
306
  var _a, _b, _c;
307
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindOne(id, options);
307
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultRegistry(options);
308
308
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
309
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
309
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.getDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
310
310
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
311
311
  });
312
312
  },
313
313
  /**
314
314
  *
315
- * @summary Get the default docker registry
315
+ * @summary Get registry
316
+ * @param {string} id
316
317
  * @param {*} [options] Override http request option.
317
318
  * @throws {RequiredError}
318
319
  */
319
- dockerRegistryControllerGetDefault(options) {
320
+ getRegistry(id, options) {
320
321
  return __awaiter(this, void 0, void 0, function* () {
321
322
  var _a, _b, _c;
322
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerGetDefault(options);
323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRegistry(id, options);
323
324
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerGetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.getRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
326
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
327
  });
327
328
  },
328
329
  /**
329
330
  *
330
- * @summary Delete a docker registry
331
- * @param {string} id
331
+ * @summary List registries
332
332
  * @param {*} [options] Override http request option.
333
333
  * @throws {RequiredError}
334
334
  */
335
- dockerRegistryControllerRemove(id, options) {
335
+ listRegistries(options) {
336
336
  return __awaiter(this, void 0, void 0, function* () {
337
337
  var _a, _b, _c;
338
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerRemove(id, options);
338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listRegistries(options);
339
339
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
340
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerRemove']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.listRegistries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
341
341
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
342
342
  });
343
343
  },
344
344
  /**
345
345
  *
346
- * @summary Set a docker registry as default
346
+ * @summary Set default registry
347
347
  * @param {string} id
348
348
  * @param {*} [options] Override http request option.
349
349
  * @throws {RequiredError}
350
350
  */
351
- dockerRegistryControllerSetDefault(id, options) {
351
+ setDefaultRegistry(id, options) {
352
352
  return __awaiter(this, void 0, void 0, function* () {
353
353
  var _a, _b, _c;
354
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerSetDefault(id, options);
354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setDefaultRegistry(id, options);
355
355
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
356
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerSetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
356
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.setDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
357
357
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
358
358
  });
359
359
  },
360
360
  /**
361
361
  *
362
- * @summary Update a docker registry
362
+ * @summary Update registry
363
363
  * @param {string} id
364
364
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
365
365
  * @param {*} [options] Override http request option.
366
366
  * @throws {RequiredError}
367
367
  */
368
- dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
368
+ updateRegistry(id, updateDockerRegistryDto, options) {
369
369
  return __awaiter(this, void 0, void 0, function* () {
370
370
  var _a, _b, _c;
371
- const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options);
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistryDto, options);
372
372
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
373
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.updateRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
374
374
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
375
  });
376
376
  },
@@ -385,72 +385,72 @@ export const DockerRegistryApiFactory = function (configuration, basePath, axios
385
385
  return {
386
386
  /**
387
387
  *
388
- * @summary Create a new docker registry
388
+ * @summary Create registry
389
389
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
390
390
  * @param {*} [options] Override http request option.
391
391
  * @throws {RequiredError}
392
392
  */
393
- dockerRegistryControllerCreate(createDockerRegistryDto, options) {
394
- return localVarFp.dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(axios, basePath));
393
+ createRegistry(createDockerRegistryDto, options) {
394
+ return localVarFp.createRegistry(createDockerRegistryDto, options).then((request) => request(axios, basePath));
395
395
  },
396
396
  /**
397
397
  *
398
- * @summary Get all docker registries
398
+ * @summary Delete registry
399
+ * @param {string} id
399
400
  * @param {*} [options] Override http request option.
400
401
  * @throws {RequiredError}
401
402
  */
402
- dockerRegistryControllerFindAll(options) {
403
- return localVarFp.dockerRegistryControllerFindAll(options).then((request) => request(axios, basePath));
403
+ deleteRegistry(id, options) {
404
+ return localVarFp.deleteRegistry(id, options).then((request) => request(axios, basePath));
404
405
  },
405
406
  /**
406
407
  *
407
- * @summary Get a docker registry by id
408
- * @param {string} id
408
+ * @summary Get default registry
409
409
  * @param {*} [options] Override http request option.
410
410
  * @throws {RequiredError}
411
411
  */
412
- dockerRegistryControllerFindOne(id, options) {
413
- return localVarFp.dockerRegistryControllerFindOne(id, options).then((request) => request(axios, basePath));
412
+ getDefaultRegistry(options) {
413
+ return localVarFp.getDefaultRegistry(options).then((request) => request(axios, basePath));
414
414
  },
415
415
  /**
416
416
  *
417
- * @summary Get the default docker registry
417
+ * @summary Get registry
418
+ * @param {string} id
418
419
  * @param {*} [options] Override http request option.
419
420
  * @throws {RequiredError}
420
421
  */
421
- dockerRegistryControllerGetDefault(options) {
422
- return localVarFp.dockerRegistryControllerGetDefault(options).then((request) => request(axios, basePath));
422
+ getRegistry(id, options) {
423
+ return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
423
424
  },
424
425
  /**
425
426
  *
426
- * @summary Delete a docker registry
427
- * @param {string} id
427
+ * @summary List registries
428
428
  * @param {*} [options] Override http request option.
429
429
  * @throws {RequiredError}
430
430
  */
431
- dockerRegistryControllerRemove(id, options) {
432
- return localVarFp.dockerRegistryControllerRemove(id, options).then((request) => request(axios, basePath));
431
+ listRegistries(options) {
432
+ return localVarFp.listRegistries(options).then((request) => request(axios, basePath));
433
433
  },
434
434
  /**
435
435
  *
436
- * @summary Set a docker registry as default
436
+ * @summary Set default registry
437
437
  * @param {string} id
438
438
  * @param {*} [options] Override http request option.
439
439
  * @throws {RequiredError}
440
440
  */
441
- dockerRegistryControllerSetDefault(id, options) {
442
- return localVarFp.dockerRegistryControllerSetDefault(id, options).then((request) => request(axios, basePath));
441
+ setDefaultRegistry(id, options) {
442
+ return localVarFp.setDefaultRegistry(id, options).then((request) => request(axios, basePath));
443
443
  },
444
444
  /**
445
445
  *
446
- * @summary Update a docker registry
446
+ * @summary Update registry
447
447
  * @param {string} id
448
448
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
449
449
  * @param {*} [options] Override http request option.
450
450
  * @throws {RequiredError}
451
451
  */
452
- dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
453
- return localVarFp.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
452
+ updateRegistry(id, updateDockerRegistryDto, options) {
453
+ return localVarFp.updateRegistry(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
454
454
  },
455
455
  };
456
456
  };
@@ -463,78 +463,78 @@ export const DockerRegistryApiFactory = function (configuration, basePath, axios
463
463
  export class DockerRegistryApi extends BaseAPI {
464
464
  /**
465
465
  *
466
- * @summary Create a new docker registry
466
+ * @summary Create registry
467
467
  * @param {CreateDockerRegistryDto} createDockerRegistryDto
468
468
  * @param {*} [options] Override http request option.
469
469
  * @throws {RequiredError}
470
470
  * @memberof DockerRegistryApi
471
471
  */
472
- dockerRegistryControllerCreate(createDockerRegistryDto, options) {
473
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
472
+ createRegistry(createDockerRegistryDto, options) {
473
+ return DockerRegistryApiFp(this.configuration).createRegistry(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
474
474
  }
475
475
  /**
476
476
  *
477
- * @summary Get all docker registries
477
+ * @summary Delete registry
478
+ * @param {string} id
478
479
  * @param {*} [options] Override http request option.
479
480
  * @throws {RequiredError}
480
481
  * @memberof DockerRegistryApi
481
482
  */
482
- dockerRegistryControllerFindAll(options) {
483
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerFindAll(options).then((request) => request(this.axios, this.basePath));
483
+ deleteRegistry(id, options) {
484
+ return DockerRegistryApiFp(this.configuration).deleteRegistry(id, options).then((request) => request(this.axios, this.basePath));
484
485
  }
485
486
  /**
486
487
  *
487
- * @summary Get a docker registry by id
488
- * @param {string} id
488
+ * @summary Get default registry
489
489
  * @param {*} [options] Override http request option.
490
490
  * @throws {RequiredError}
491
491
  * @memberof DockerRegistryApi
492
492
  */
493
- dockerRegistryControllerFindOne(id, options) {
494
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
493
+ getDefaultRegistry(options) {
494
+ return DockerRegistryApiFp(this.configuration).getDefaultRegistry(options).then((request) => request(this.axios, this.basePath));
495
495
  }
496
496
  /**
497
497
  *
498
- * @summary Get the default docker registry
498
+ * @summary Get registry
499
+ * @param {string} id
499
500
  * @param {*} [options] Override http request option.
500
501
  * @throws {RequiredError}
501
502
  * @memberof DockerRegistryApi
502
503
  */
503
- dockerRegistryControllerGetDefault(options) {
504
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerGetDefault(options).then((request) => request(this.axios, this.basePath));
504
+ getRegistry(id, options) {
505
+ return DockerRegistryApiFp(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
505
506
  }
506
507
  /**
507
508
  *
508
- * @summary Delete a docker registry
509
- * @param {string} id
509
+ * @summary List registries
510
510
  * @param {*} [options] Override http request option.
511
511
  * @throws {RequiredError}
512
512
  * @memberof DockerRegistryApi
513
513
  */
514
- dockerRegistryControllerRemove(id, options) {
515
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
514
+ listRegistries(options) {
515
+ return DockerRegistryApiFp(this.configuration).listRegistries(options).then((request) => request(this.axios, this.basePath));
516
516
  }
517
517
  /**
518
518
  *
519
- * @summary Set a docker registry as default
519
+ * @summary Set default registry
520
520
  * @param {string} id
521
521
  * @param {*} [options] Override http request option.
522
522
  * @throws {RequiredError}
523
523
  * @memberof DockerRegistryApi
524
524
  */
525
- dockerRegistryControllerSetDefault(id, options) {
526
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerSetDefault(id, options).then((request) => request(this.axios, this.basePath));
525
+ setDefaultRegistry(id, options) {
526
+ return DockerRegistryApiFp(this.configuration).setDefaultRegistry(id, options).then((request) => request(this.axios, this.basePath));
527
527
  }
528
528
  /**
529
529
  *
530
- * @summary Update a docker registry
530
+ * @summary Update registry
531
531
  * @param {string} id
532
532
  * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
533
533
  * @param {*} [options] Override http request option.
534
534
  * @throws {RequiredError}
535
535
  * @memberof DockerRegistryApi
536
536
  */
537
- dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
538
- return DockerRegistryApiFp(this.configuration).dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
537
+ updateRegistry(id, updateDockerRegistryDto, options) {
538
+ return DockerRegistryApiFp(this.configuration).updateRegistry(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
539
539
  }
540
540
  }
@@ -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
+ }