@daytonaio/api-client 0.5.2 → 0.6.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 (143) hide show
  1. package/.openapi-generator/FILES +20 -18
  2. package/README.md +2 -2
  3. package/api/api-keys-api.ts +21 -21
  4. package/api/{default-api.ts → app-api.ts} +14 -14
  5. package/api/docker-registry-api.ts +30 -30
  6. package/api/nodes-api.ts +16 -14
  7. package/api/toolbox-api.ts +120 -120
  8. package/api/users-api.ts +16 -14
  9. package/api/workspace-api.ts +37 -37
  10. package/api.ts +1 -1
  11. package/dist/api/api-keys-api.d.ts +17 -17
  12. package/dist/api/api-keys-api.js +17 -17
  13. package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
  14. package/dist/api/{default-api.js → app-api.js} +19 -19
  15. package/dist/api/docker-registry-api.d.ts +18 -18
  16. package/dist/api/docker-registry-api.js +33 -33
  17. package/dist/api/nodes-api.d.ts +9 -8
  18. package/dist/api/nodes-api.js +16 -16
  19. package/dist/api/toolbox-api.d.ts +72 -72
  20. package/dist/api/toolbox-api.js +125 -125
  21. package/dist/api/users-api.d.ts +9 -8
  22. package/dist/api/users-api.js +16 -16
  23. package/dist/api/workspace-api.d.ts +28 -28
  24. package/dist/api/workspace-api.js +34 -34
  25. package/dist/api.d.ts +1 -1
  26. package/dist/api.js +1 -1
  27. package/dist/esm/api/api-keys-api.d.ts +17 -17
  28. package/dist/esm/api/api-keys-api.js +17 -17
  29. package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
  30. package/dist/esm/api/{default-api.js → app-api.js} +14 -14
  31. package/dist/esm/api/docker-registry-api.d.ts +18 -18
  32. package/dist/esm/api/docker-registry-api.js +33 -33
  33. package/dist/esm/api/nodes-api.d.ts +9 -8
  34. package/dist/esm/api/nodes-api.js +16 -16
  35. package/dist/esm/api/toolbox-api.d.ts +72 -72
  36. package/dist/esm/api/toolbox-api.js +125 -125
  37. package/dist/esm/api/users-api.d.ts +9 -8
  38. package/dist/esm/api/users-api.js +16 -16
  39. package/dist/esm/api/workspace-api.d.ts +28 -28
  40. package/dist/esm/api/workspace-api.js +34 -34
  41. package/dist/esm/api.d.ts +1 -1
  42. package/dist/esm/api.js +1 -1
  43. package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
  44. package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
  45. package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
  46. package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
  47. package/dist/esm/models/create-node.d.ts +24 -0
  48. package/dist/esm/models/create-user.d.ts +30 -0
  49. package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
  50. package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
  51. package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
  52. package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
  53. package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
  54. package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
  55. package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
  56. package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-request.d.ts} +6 -6
  57. package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
  58. package/dist/esm/models/index.d.ts +19 -17
  59. package/dist/esm/models/index.js +19 -17
  60. package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
  61. package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
  62. package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
  63. package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
  64. package/dist/esm/models/workspace-labels.js +14 -0
  65. package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
  66. package/dist/esm/models/workspace.js +14 -0
  67. package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
  68. package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
  69. package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
  70. package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
  71. package/dist/models/create-node.d.ts +24 -0
  72. package/dist/models/create-user.d.ts +30 -0
  73. package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
  74. package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
  75. package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
  76. package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
  77. package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
  78. package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
  79. package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
  80. package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-request.d.ts} +6 -6
  81. package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
  82. package/dist/models/index.d.ts +19 -17
  83. package/dist/models/index.js +19 -17
  84. package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
  85. package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
  86. package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
  87. package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
  88. package/dist/models/workspace-labels.js +15 -0
  89. package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
  90. package/dist/models/workspace.js +15 -0
  91. package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
  92. package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
  93. package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
  94. package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
  95. package/models/create-node.ts +30 -0
  96. package/models/create-user.ts +36 -0
  97. package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
  98. package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
  99. package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
  100. package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
  101. package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
  102. package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
  103. package/models/{git-commit-request-dto.ts → git-commit-request.ts} +6 -6
  104. package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
  105. package/models/index.ts +19 -17
  106. package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
  107. package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
  108. package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
  109. package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
  110. package/models/{workspace-dto.ts → workspace.ts} +18 -18
  111. package/package.json +1 -1
  112. /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
  113. /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
  114. /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
  115. /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
  116. /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
  117. /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
  118. /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
  119. /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
  120. /package/dist/esm/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
  121. /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
  122. /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
  123. /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
  124. /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
  125. /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
  126. /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
  127. /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
  128. /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
  129. /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
  130. /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
  131. /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
  132. /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
  133. /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
  134. /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
  135. /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
  136. /package/dist/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
  137. /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
  138. /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
  139. /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
  140. /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
  141. /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
  142. /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
  143. /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
@@ -4,7 +4,7 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/api-keys-api.ts
7
- api/default-api.ts
7
+ api/app-api.ts
8
8
  api/docker-registry-api.ts
9
9
  api/nodes-api.ts
10
10
  api/toolbox-api.ts
@@ -15,24 +15,26 @@ common.ts
15
15
  configuration.ts
16
16
  git_push.sh
17
17
  index.ts
18
- models/api-key-list-dto.ts
19
- models/api-key-response-dto.ts
20
- models/create-api-key-dto.ts
21
- models/create-docker-registry-dto.ts
22
- models/create-workspace-dto.ts
23
- models/execute-request-dto.ts
24
- models/execute-response-dto.ts
25
- models/git-add-request-dto.ts
26
- models/git-branch-request-dto.ts
27
- models/git-clone-request-dto.ts
28
- models/git-commit-request-dto.ts
29
- models/git-repo-request-dto.ts
18
+ models/api-key-list.ts
19
+ models/api-key-response.ts
20
+ models/create-api-key.ts
21
+ models/create-docker-registry.ts
22
+ models/create-node.ts
23
+ models/create-user.ts
24
+ models/create-workspace.ts
25
+ models/execute-request.ts
26
+ models/execute-response.ts
27
+ models/git-add-request.ts
28
+ models/git-branch-request.ts
29
+ models/git-clone-request.ts
30
+ models/git-commit-request.ts
31
+ models/git-repo-request.ts
30
32
  models/index.ts
31
- models/replace-request-dto.ts
32
- models/update-docker-registry-dto.ts
33
- models/workspace-dto.ts
34
- models/workspace-info-dto.ts
35
- models/workspace-labels-dto.ts
33
+ models/replace-request.ts
34
+ models/update-docker-registry.ts
35
+ models/workspace-info.ts
36
+ models/workspace-labels.ts
37
+ models/workspace.ts
36
38
  package.json
37
39
  tsconfig.esm.json
38
40
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @daytonaio/api-client@0.5.2
1
+ ## @daytonaio/api-client@0.6.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @daytonaio/api-client@0.5.2 --save
39
+ npm install @daytonaio/api-client@0.6.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -22,11 +22,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import type { ApiKeyListDto } from '../models';
25
+ import type { ApiKeyList } from '../models';
26
26
  // @ts-ignore
27
- import type { ApiKeyResponseDto } from '../models';
27
+ import type { ApiKeyResponse } from '../models';
28
28
  // @ts-ignore
29
- import type { CreateApiKeyDto } from '../models';
29
+ import type { CreateApiKey } from '../models';
30
30
  /**
31
31
  * ApiKeysApi - axios parameter creator
32
32
  * @export
@@ -36,13 +36,13 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
36
36
  /**
37
37
  *
38
38
  * @summary Create API key
39
- * @param {CreateApiKeyDto} createApiKeyDto
39
+ * @param {CreateApiKey} createApiKey
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}
42
42
  */
43
- createApiKey: async (createApiKeyDto: CreateApiKeyDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
- // verify required parameter 'createApiKeyDto' is not null or undefined
45
- assertParamExists('createApiKey', 'createApiKeyDto', createApiKeyDto)
43
+ createApiKey: async (createApiKey: CreateApiKey, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'createApiKey' is not null or undefined
45
+ assertParamExists('createApiKey', 'createApiKey', createApiKey)
46
46
  const localVarPath = `/api-keys`;
47
47
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
48
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -66,7 +66,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
66
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
67
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
68
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
- localVarRequestOptions.data = serializeDataIfNeeded(createApiKeyDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(createApiKey, localVarRequestOptions, configuration)
70
70
 
71
71
  return {
72
72
  url: toPathString(localVarUrlObj),
@@ -196,12 +196,12 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
196
196
  /**
197
197
  *
198
198
  * @summary Create API key
199
- * @param {CreateApiKeyDto} createApiKeyDto
199
+ * @param {CreateApiKey} createApiKey
200
200
  * @param {*} [options] Override http request option.
201
201
  * @throws {RequiredError}
202
202
  */
203
- async createApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponseDto>> {
204
- const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKeyDto, options);
203
+ async createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>> {
204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, options);
205
205
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
206
206
  const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.createApiKey']?.[localVarOperationServerIndex]?.url;
207
207
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -226,7 +226,7 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
226
226
  * @param {*} [options] Override http request option.
227
227
  * @throws {RequiredError}
228
228
  */
229
- async getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyListDto>> {
229
+ async getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>> {
230
230
  const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, options);
231
231
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
232
232
  const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.getApiKey']?.[localVarOperationServerIndex]?.url;
@@ -238,7 +238,7 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
238
238
  * @param {*} [options] Override http request option.
239
239
  * @throws {RequiredError}
240
240
  */
241
- async listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyListDto>>> {
241
+ async listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>> {
242
242
  const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(options);
243
243
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
244
244
  const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.listApiKeys']?.[localVarOperationServerIndex]?.url;
@@ -257,12 +257,12 @@ export const ApiKeysApiFactory = function (configuration?: Configuration, basePa
257
257
  /**
258
258
  *
259
259
  * @summary Create API key
260
- * @param {CreateApiKeyDto} createApiKeyDto
260
+ * @param {CreateApiKey} createApiKey
261
261
  * @param {*} [options] Override http request option.
262
262
  * @throws {RequiredError}
263
263
  */
264
- createApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponseDto> {
265
- return localVarFp.createApiKey(createApiKeyDto, options).then((request) => request(axios, basePath));
264
+ createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse> {
265
+ return localVarFp.createApiKey(createApiKey, options).then((request) => request(axios, basePath));
266
266
  },
267
267
  /**
268
268
  *
@@ -281,7 +281,7 @@ export const ApiKeysApiFactory = function (configuration?: Configuration, basePa
281
281
  * @param {*} [options] Override http request option.
282
282
  * @throws {RequiredError}
283
283
  */
284
- getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyListDto> {
284
+ getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList> {
285
285
  return localVarFp.getApiKey(name, options).then((request) => request(axios, basePath));
286
286
  },
287
287
  /**
@@ -290,7 +290,7 @@ export const ApiKeysApiFactory = function (configuration?: Configuration, basePa
290
290
  * @param {*} [options] Override http request option.
291
291
  * @throws {RequiredError}
292
292
  */
293
- listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyListDto>> {
293
+ listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>> {
294
294
  return localVarFp.listApiKeys(options).then((request) => request(axios, basePath));
295
295
  },
296
296
  };
@@ -306,13 +306,13 @@ export class ApiKeysApi extends BaseAPI {
306
306
  /**
307
307
  *
308
308
  * @summary Create API key
309
- * @param {CreateApiKeyDto} createApiKeyDto
309
+ * @param {CreateApiKey} createApiKey
310
310
  * @param {*} [options] Override http request option.
311
311
  * @throws {RequiredError}
312
312
  * @memberof ApiKeysApi
313
313
  */
314
- public createApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig) {
315
- return ApiKeysApiFp(this.configuration).createApiKey(createApiKeyDto, options).then((request) => request(this.axios, this.basePath));
314
+ public createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig) {
315
+ return ApiKeysApiFp(this.configuration).createApiKey(createApiKey, options).then((request) => request(this.axios, this.basePath));
316
316
  }
317
317
 
318
318
  /**
@@ -22,10 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  /**
25
- * DefaultApi - axios parameter creator
25
+ * AppApi - axios parameter creator
26
26
  * @export
27
27
  */
28
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
28
+ export const AppApiAxiosParamCreator = function (configuration?: Configuration) {
29
29
  return {
30
30
  /**
31
31
  *
@@ -60,11 +60,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
60
60
  };
61
61
 
62
62
  /**
63
- * DefaultApi - functional programming interface
63
+ * AppApi - functional programming interface
64
64
  * @export
65
65
  */
66
- export const DefaultApiFp = function(configuration?: Configuration) {
67
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
66
+ export const AppApiFp = function(configuration?: Configuration) {
67
+ const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)
68
68
  return {
69
69
  /**
70
70
  *
@@ -74,18 +74,18 @@ export const DefaultApiFp = function(configuration?: Configuration) {
74
74
  async appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
75
75
  const localVarAxiosArgs = await localVarAxiosParamCreator.appControllerGetHello(options);
76
76
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
77
- const localVarOperationServerBasePath = operationServerMap['DefaultApi.appControllerGetHello']?.[localVarOperationServerIndex]?.url;
77
+ const localVarOperationServerBasePath = operationServerMap['AppApi.appControllerGetHello']?.[localVarOperationServerIndex]?.url;
78
78
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79
79
  },
80
80
  }
81
81
  };
82
82
 
83
83
  /**
84
- * DefaultApi - factory interface
84
+ * AppApi - factory interface
85
85
  * @export
86
86
  */
87
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
88
- const localVarFp = DefaultApiFp(configuration)
87
+ export const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
88
+ const localVarFp = AppApiFp(configuration)
89
89
  return {
90
90
  /**
91
91
  *
@@ -99,20 +99,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
99
99
  };
100
100
 
101
101
  /**
102
- * DefaultApi - object-oriented interface
102
+ * AppApi - object-oriented interface
103
103
  * @export
104
- * @class DefaultApi
104
+ * @class AppApi
105
105
  * @extends {BaseAPI}
106
106
  */
107
- export class DefaultApi extends BaseAPI {
107
+ export class AppApi extends BaseAPI {
108
108
  /**
109
109
  *
110
110
  * @param {*} [options] Override http request option.
111
111
  * @throws {RequiredError}
112
- * @memberof DefaultApi
112
+ * @memberof AppApi
113
113
  */
114
114
  public appControllerGetHello(options?: RawAxiosRequestConfig) {
115
- return DefaultApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
115
+ return AppApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
116
116
  }
117
117
  }
118
118
 
@@ -22,9 +22,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import type { CreateDockerRegistryDto } from '../models';
25
+ import type { CreateDockerRegistry } from '../models';
26
26
  // @ts-ignore
27
- import type { UpdateDockerRegistryDto } from '../models';
27
+ import type { UpdateDockerRegistry } from '../models';
28
28
  /**
29
29
  * DockerRegistryApi - axios parameter creator
30
30
  * @export
@@ -34,13 +34,13 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration?: Conf
34
34
  /**
35
35
  *
36
36
  * @summary Create registry
37
- * @param {CreateDockerRegistryDto} createDockerRegistryDto
37
+ * @param {CreateDockerRegistry} createDockerRegistry
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- createRegistry: async (createDockerRegistryDto: CreateDockerRegistryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'createDockerRegistryDto' is not null or undefined
43
- assertParamExists('createRegistry', 'createDockerRegistryDto', createDockerRegistryDto)
41
+ createRegistry: async (createDockerRegistry: CreateDockerRegistry, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'createDockerRegistry' is not null or undefined
43
+ assertParamExists('createRegistry', 'createDockerRegistry', createDockerRegistry)
44
44
  const localVarPath = `/docker-registry`;
45
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
46
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -64,7 +64,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration?: Conf
64
64
  setSearchParams(localVarUrlObj, localVarQueryParameter);
65
65
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
66
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
67
- localVarRequestOptions.data = serializeDataIfNeeded(createDockerRegistryDto, localVarRequestOptions, configuration)
67
+ localVarRequestOptions.data = serializeDataIfNeeded(createDockerRegistry, localVarRequestOptions, configuration)
68
68
 
69
69
  return {
70
70
  url: toPathString(localVarUrlObj),
@@ -257,15 +257,15 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration?: Conf
257
257
  *
258
258
  * @summary Update registry
259
259
  * @param {string} id
260
- * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
260
+ * @param {UpdateDockerRegistry} updateDockerRegistry
261
261
  * @param {*} [options] Override http request option.
262
262
  * @throws {RequiredError}
263
263
  */
264
- updateRegistry: async (id: string, updateDockerRegistryDto: UpdateDockerRegistryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
264
+ updateRegistry: async (id: string, updateDockerRegistry: UpdateDockerRegistry, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
265
265
  // verify required parameter 'id' is not null or undefined
266
266
  assertParamExists('updateRegistry', 'id', id)
267
- // verify required parameter 'updateDockerRegistryDto' is not null or undefined
268
- assertParamExists('updateRegistry', 'updateDockerRegistryDto', updateDockerRegistryDto)
267
+ // verify required parameter 'updateDockerRegistry' is not null or undefined
268
+ assertParamExists('updateRegistry', 'updateDockerRegistry', updateDockerRegistry)
269
269
  const localVarPath = `/docker-registry/{id}`
270
270
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
271
271
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -290,7 +290,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration?: Conf
290
290
  setSearchParams(localVarUrlObj, localVarQueryParameter);
291
291
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
292
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
- localVarRequestOptions.data = serializeDataIfNeeded(updateDockerRegistryDto, localVarRequestOptions, configuration)
293
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDockerRegistry, localVarRequestOptions, configuration)
294
294
 
295
295
  return {
296
296
  url: toPathString(localVarUrlObj),
@@ -310,12 +310,12 @@ export const DockerRegistryApiFp = function(configuration?: Configuration) {
310
310
  /**
311
311
  *
312
312
  * @summary Create registry
313
- * @param {CreateDockerRegistryDto} createDockerRegistryDto
313
+ * @param {CreateDockerRegistry} createDockerRegistry
314
314
  * @param {*} [options] Override http request option.
315
315
  * @throws {RequiredError}
316
316
  */
317
- async createRegistry(createDockerRegistryDto: CreateDockerRegistryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
318
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRegistry(createDockerRegistryDto, options);
317
+ async createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
318
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRegistry(createDockerRegistry, options);
319
319
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
320
320
  const localVarOperationServerBasePath = operationServerMap['DockerRegistryApi.createRegistry']?.[localVarOperationServerIndex]?.url;
321
321
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -387,12 +387,12 @@ export const DockerRegistryApiFp = function(configuration?: Configuration) {
387
387
  *
388
388
  * @summary Update registry
389
389
  * @param {string} id
390
- * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
390
+ * @param {UpdateDockerRegistry} updateDockerRegistry
391
391
  * @param {*} [options] Override http request option.
392
392
  * @throws {RequiredError}
393
393
  */
394
- async updateRegistry(id: string, updateDockerRegistryDto: UpdateDockerRegistryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
395
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistryDto, options);
394
+ async updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
395
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistry, options);
396
396
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
397
397
  const localVarOperationServerBasePath = operationServerMap['DockerRegistryApi.updateRegistry']?.[localVarOperationServerIndex]?.url;
398
398
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -410,12 +410,12 @@ export const DockerRegistryApiFactory = function (configuration?: Configuration,
410
410
  /**
411
411
  *
412
412
  * @summary Create registry
413
- * @param {CreateDockerRegistryDto} createDockerRegistryDto
413
+ * @param {CreateDockerRegistry} createDockerRegistry
414
414
  * @param {*} [options] Override http request option.
415
415
  * @throws {RequiredError}
416
416
  */
417
- createRegistry(createDockerRegistryDto: CreateDockerRegistryDto, options?: RawAxiosRequestConfig): AxiosPromise<object> {
418
- return localVarFp.createRegistry(createDockerRegistryDto, options).then((request) => request(axios, basePath));
417
+ createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<object> {
418
+ return localVarFp.createRegistry(createDockerRegistry, options).then((request) => request(axios, basePath));
419
419
  },
420
420
  /**
421
421
  *
@@ -469,12 +469,12 @@ export const DockerRegistryApiFactory = function (configuration?: Configuration,
469
469
  *
470
470
  * @summary Update registry
471
471
  * @param {string} id
472
- * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
472
+ * @param {UpdateDockerRegistry} updateDockerRegistry
473
473
  * @param {*} [options] Override http request option.
474
474
  * @throws {RequiredError}
475
475
  */
476
- updateRegistry(id: string, updateDockerRegistryDto: UpdateDockerRegistryDto, options?: RawAxiosRequestConfig): AxiosPromise<object> {
477
- return localVarFp.updateRegistry(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
476
+ updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<object> {
477
+ return localVarFp.updateRegistry(id, updateDockerRegistry, options).then((request) => request(axios, basePath));
478
478
  },
479
479
  };
480
480
  };
@@ -489,13 +489,13 @@ export class DockerRegistryApi extends BaseAPI {
489
489
  /**
490
490
  *
491
491
  * @summary Create registry
492
- * @param {CreateDockerRegistryDto} createDockerRegistryDto
492
+ * @param {CreateDockerRegistry} createDockerRegistry
493
493
  * @param {*} [options] Override http request option.
494
494
  * @throws {RequiredError}
495
495
  * @memberof DockerRegistryApi
496
496
  */
497
- public createRegistry(createDockerRegistryDto: CreateDockerRegistryDto, options?: RawAxiosRequestConfig) {
498
- return DockerRegistryApiFp(this.configuration).createRegistry(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
497
+ public createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig) {
498
+ return DockerRegistryApiFp(this.configuration).createRegistry(createDockerRegistry, options).then((request) => request(this.axios, this.basePath));
499
499
  }
500
500
 
501
501
  /**
@@ -560,13 +560,13 @@ export class DockerRegistryApi extends BaseAPI {
560
560
  *
561
561
  * @summary Update registry
562
562
  * @param {string} id
563
- * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
563
+ * @param {UpdateDockerRegistry} updateDockerRegistry
564
564
  * @param {*} [options] Override http request option.
565
565
  * @throws {RequiredError}
566
566
  * @memberof DockerRegistryApi
567
567
  */
568
- public updateRegistry(id: string, updateDockerRegistryDto: UpdateDockerRegistryDto, options?: RawAxiosRequestConfig) {
569
- return DockerRegistryApiFp(this.configuration).updateRegistry(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
568
+ public updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig) {
569
+ return DockerRegistryApiFp(this.configuration).updateRegistry(id, updateDockerRegistry, options).then((request) => request(this.axios, this.basePath));
570
570
  }
571
571
  }
572
572
 
package/api/nodes-api.ts CHANGED
@@ -21,6 +21,8 @@ import globalAxios from 'axios';
21
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { CreateNode } from '../models';
24
26
  /**
25
27
  * NodesApi - axios parameter creator
26
28
  * @export
@@ -30,13 +32,13 @@ export const NodesApiAxiosParamCreator = function (configuration?: Configuration
30
32
  /**
31
33
  *
32
34
  * @summary Create node
33
- * @param {object} body
35
+ * @param {CreateNode} createNode
34
36
  * @param {*} [options] Override http request option.
35
37
  * @throws {RequiredError}
36
38
  */
37
- createNode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38
- // verify required parameter 'body' is not null or undefined
39
- assertParamExists('createNode', 'body', body)
39
+ createNode: async (createNode: CreateNode, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40
+ // verify required parameter 'createNode' is not null or undefined
41
+ assertParamExists('createNode', 'createNode', createNode)
40
42
  const localVarPath = `/nodes`;
41
43
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
44
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -60,7 +62,7 @@ export const NodesApiAxiosParamCreator = function (configuration?: Configuration
60
62
  setSearchParams(localVarUrlObj, localVarQueryParameter);
61
63
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62
64
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
65
+ localVarRequestOptions.data = serializeDataIfNeeded(createNode, localVarRequestOptions, configuration)
64
66
 
65
67
  return {
66
68
  url: toPathString(localVarUrlObj),
@@ -152,12 +154,12 @@ export const NodesApiFp = function(configuration?: Configuration) {
152
154
  /**
153
155
  *
154
156
  * @summary Create node
155
- * @param {object} body
157
+ * @param {CreateNode} createNode
156
158
  * @param {*} [options] Override http request option.
157
159
  * @throws {RequiredError}
158
160
  */
159
- async createNode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
160
- const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(body, options);
161
+ async createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(createNode, options);
161
163
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
162
164
  const localVarOperationServerBasePath = operationServerMap['NodesApi.createNode']?.[localVarOperationServerIndex]?.url;
163
165
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -200,12 +202,12 @@ export const NodesApiFactory = function (configuration?: Configuration, basePath
200
202
  /**
201
203
  *
202
204
  * @summary Create node
203
- * @param {object} body
205
+ * @param {CreateNode} createNode
204
206
  * @param {*} [options] Override http request option.
205
207
  * @throws {RequiredError}
206
208
  */
207
- createNode(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
208
- return localVarFp.createNode(body, options).then((request) => request(axios, basePath));
209
+ createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): AxiosPromise<void> {
210
+ return localVarFp.createNode(createNode, options).then((request) => request(axios, basePath));
209
211
  },
210
212
  /**
211
213
  *
@@ -239,13 +241,13 @@ export class NodesApi extends BaseAPI {
239
241
  /**
240
242
  *
241
243
  * @summary Create node
242
- * @param {object} body
244
+ * @param {CreateNode} createNode
243
245
  * @param {*} [options] Override http request option.
244
246
  * @throws {RequiredError}
245
247
  * @memberof NodesApi
246
248
  */
247
- public createNode(body: object, options?: RawAxiosRequestConfig) {
248
- return NodesApiFp(this.configuration).createNode(body, options).then((request) => request(this.axios, this.basePath));
249
+ public createNode(createNode: CreateNode, options?: RawAxiosRequestConfig) {
250
+ return NodesApiFp(this.configuration).createNode(createNode, options).then((request) => request(this.axios, this.basePath));
249
251
  }
250
252
 
251
253
  /**