@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.
- package/.openapi-generator/FILES +20 -18
- package/README.md +2 -2
- package/api/api-keys-api.ts +21 -21
- package/api/{default-api.ts → app-api.ts} +14 -14
- package/api/docker-registry-api.ts +30 -30
- package/api/nodes-api.ts +16 -14
- package/api/toolbox-api.ts +120 -120
- package/api/users-api.ts +16 -14
- package/api/workspace-api.ts +37 -37
- package/api.ts +1 -1
- package/dist/api/api-keys-api.d.ts +17 -17
- package/dist/api/api-keys-api.js +17 -17
- package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/api/{default-api.js → app-api.js} +19 -19
- package/dist/api/docker-registry-api.d.ts +18 -18
- package/dist/api/docker-registry-api.js +33 -33
- package/dist/api/nodes-api.d.ts +9 -8
- package/dist/api/nodes-api.js +16 -16
- package/dist/api/toolbox-api.d.ts +72 -72
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +72 -72
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
- package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-request.d.ts} +6 -6
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/index.d.ts +19 -17
- package/dist/esm/models/index.js +19 -17
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
- package/dist/esm/models/workspace-labels.js +14 -0
- package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
- package/dist/esm/models/workspace.js +14 -0
- package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
- package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
- package/dist/models/create-node.d.ts +24 -0
- package/dist/models/create-user.d.ts +30 -0
- package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
- package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
- package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
- package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
- package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
- package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-request.d.ts} +6 -6
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/index.d.ts +19 -17
- package/dist/models/index.js +19 -17
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
- package/dist/models/workspace-labels.js +15 -0
- package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
- package/dist/models/workspace.js +15 -0
- package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
- package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
- package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
- package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
- package/models/create-node.ts +30 -0
- package/models/create-user.ts +36 -0
- package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
- package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
- package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
- package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
- package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
- package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
- package/models/{git-commit-request-dto.ts → git-commit-request.ts} +6 -6
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/index.ts +19 -17
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
- package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
- package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
- package/models/{workspace-dto.ts → workspace.ts} +18 -18
- package/package.json +1 -1
- /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/esm/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
- /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/api-keys-api.ts
|
|
7
|
-
api/
|
|
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
|
|
19
|
-
models/api-key-response
|
|
20
|
-
models/create-api-key
|
|
21
|
-
models/create-docker-registry
|
|
22
|
-
models/create-
|
|
23
|
-
models/
|
|
24
|
-
models/
|
|
25
|
-
models/
|
|
26
|
-
models/
|
|
27
|
-
models/git-
|
|
28
|
-
models/git-
|
|
29
|
-
models/git-
|
|
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
|
|
32
|
-
models/update-docker-registry
|
|
33
|
-
models/workspace-
|
|
34
|
-
models/workspace-
|
|
35
|
-
models/workspace
|
|
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.
|
|
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.
|
|
39
|
+
npm install @daytonaio/api-client@0.6.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/api-keys-api.ts
CHANGED
|
@@ -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 {
|
|
25
|
+
import type { ApiKeyList } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import type {
|
|
27
|
+
import type { ApiKeyResponse } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import type {
|
|
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 {
|
|
39
|
+
* @param {CreateApiKey} createApiKey
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
createApiKey: async (
|
|
44
|
-
// verify required parameter '
|
|
45
|
-
assertParamExists('createApiKey', '
|
|
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(
|
|
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 {
|
|
199
|
+
* @param {CreateApiKey} createApiKey
|
|
200
200
|
* @param {*} [options] Override http request option.
|
|
201
201
|
* @throws {RequiredError}
|
|
202
202
|
*/
|
|
203
|
-
async createApiKey(
|
|
204
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(
|
|
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<
|
|
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<
|
|
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 {
|
|
260
|
+
* @param {CreateApiKey} createApiKey
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
createApiKey(
|
|
265
|
-
return localVarFp.createApiKey(
|
|
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<
|
|
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<
|
|
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 {
|
|
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(
|
|
315
|
-
return ApiKeysApiFp(this.configuration).createApiKey(
|
|
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
|
-
*
|
|
25
|
+
* AppApi - axios parameter creator
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
|
-
export const
|
|
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
|
-
*
|
|
63
|
+
* AppApi - functional programming interface
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export const
|
|
67
|
-
const localVarAxiosParamCreator =
|
|
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['
|
|
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
|
-
*
|
|
84
|
+
* AppApi - factory interface
|
|
85
85
|
* @export
|
|
86
86
|
*/
|
|
87
|
-
export const
|
|
88
|
-
const localVarFp =
|
|
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
|
-
*
|
|
102
|
+
* AppApi - object-oriented interface
|
|
103
103
|
* @export
|
|
104
|
-
* @class
|
|
104
|
+
* @class AppApi
|
|
105
105
|
* @extends {BaseAPI}
|
|
106
106
|
*/
|
|
107
|
-
export class
|
|
107
|
+
export class AppApi extends BaseAPI {
|
|
108
108
|
/**
|
|
109
109
|
*
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
111
111
|
* @throws {RequiredError}
|
|
112
|
-
* @memberof
|
|
112
|
+
* @memberof AppApi
|
|
113
113
|
*/
|
|
114
114
|
public appControllerGetHello(options?: RawAxiosRequestConfig) {
|
|
115
|
-
return
|
|
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 {
|
|
25
|
+
import type { CreateDockerRegistry } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import type {
|
|
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 {
|
|
37
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
createRegistry: async (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('createRegistry', '
|
|
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(
|
|
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 {
|
|
260
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
updateRegistry: async (id: string,
|
|
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 '
|
|
268
|
-
assertParamExists('updateRegistry', '
|
|
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(
|
|
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 {
|
|
313
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
314
314
|
* @param {*} [options] Override http request option.
|
|
315
315
|
* @throws {RequiredError}
|
|
316
316
|
*/
|
|
317
|
-
async createRegistry(
|
|
318
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createRegistry(
|
|
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 {
|
|
390
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
391
391
|
* @param {*} [options] Override http request option.
|
|
392
392
|
* @throws {RequiredError}
|
|
393
393
|
*/
|
|
394
|
-
async updateRegistry(id: string,
|
|
395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRegistry(id,
|
|
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 {
|
|
413
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
414
414
|
* @param {*} [options] Override http request option.
|
|
415
415
|
* @throws {RequiredError}
|
|
416
416
|
*/
|
|
417
|
-
createRegistry(
|
|
418
|
-
return localVarFp.createRegistry(
|
|
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 {
|
|
472
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
473
473
|
* @param {*} [options] Override http request option.
|
|
474
474
|
* @throws {RequiredError}
|
|
475
475
|
*/
|
|
476
|
-
updateRegistry(id: string,
|
|
477
|
-
return localVarFp.updateRegistry(id,
|
|
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 {
|
|
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(
|
|
498
|
-
return DockerRegistryApiFp(this.configuration).createRegistry(
|
|
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 {
|
|
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,
|
|
569
|
-
return DockerRegistryApiFp(this.configuration).updateRegistry(id,
|
|
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 {
|
|
35
|
+
* @param {CreateNode} createNode
|
|
34
36
|
* @param {*} [options] Override http request option.
|
|
35
37
|
* @throws {RequiredError}
|
|
36
38
|
*/
|
|
37
|
-
createNode: async (
|
|
38
|
-
// verify required parameter '
|
|
39
|
-
assertParamExists('createNode', '
|
|
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(
|
|
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 {
|
|
157
|
+
* @param {CreateNode} createNode
|
|
156
158
|
* @param {*} [options] Override http request option.
|
|
157
159
|
* @throws {RequiredError}
|
|
158
160
|
*/
|
|
159
|
-
async createNode(
|
|
160
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(
|
|
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 {
|
|
205
|
+
* @param {CreateNode} createNode
|
|
204
206
|
* @param {*} [options] Override http request option.
|
|
205
207
|
* @throws {RequiredError}
|
|
206
208
|
*/
|
|
207
|
-
createNode(
|
|
208
|
-
return localVarFp.createNode(
|
|
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 {
|
|
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(
|
|
248
|
-
return NodesApiFp(this.configuration).createNode(
|
|
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
|
/**
|