@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.
- package/.openapi-generator/FILES +4 -8
- package/README.md +2 -2
- package/api/api-keys-api.ts +353 -0
- package/api/default-api.ts +36 -3313
- package/api/docker-registry-api.ts +108 -108
- package/api/nodes-api.ts +274 -0
- package/api/users-api.ts +274 -0
- package/api/workspace-api.ts +760 -0
- package/api.ts +4 -0
- package/dist/api/api-keys-api.d.ts +171 -0
- package/dist/api/api-keys-api.js +339 -0
- package/dist/api/default-api.d.ts +15 -1454
- package/dist/api/default-api.js +43 -3090
- package/dist/api/docker-registry-api.d.ts +64 -64
- package/dist/api/docker-registry-api.js +108 -108
- package/dist/api/nodes-api.d.ts +135 -0
- package/dist/api/nodes-api.js +270 -0
- package/dist/api/users-api.d.ts +135 -0
- package/dist/api/users-api.js +270 -0
- package/dist/api/workspace-api.d.ts +356 -0
- package/dist/api/workspace-api.js +722 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.js +4 -0
- package/dist/esm/api/api-keys-api.d.ts +171 -0
- package/dist/esm/api/api-keys-api.js +332 -0
- package/dist/esm/api/default-api.d.ts +15 -1454
- package/dist/esm/api/default-api.js +41 -3088
- package/dist/esm/api/docker-registry-api.d.ts +64 -64
- package/dist/esm/api/docker-registry-api.js +108 -108
- package/dist/esm/api/nodes-api.d.ts +135 -0
- package/dist/esm/api/nodes-api.js +263 -0
- package/dist/esm/api/users-api.d.ts +135 -0
- package/dist/esm/api/users-api.js +263 -0
- package/dist/esm/api/workspace-api.d.ts +356 -0
- package/dist/esm/api/workspace-api.js +715 -0
- package/dist/esm/api.d.ts +4 -0
- package/dist/esm/api.js +4 -0
- package/dist/esm/models/create-workspace-dto.d.ts +1 -1
- package/dist/esm/models/index.d.ts +0 -8
- package/dist/esm/models/index.js +0 -8
- package/dist/esm/models/workspace-dto.d.ts +14 -0
- package/dist/models/create-workspace-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.js +0 -8
- package/dist/models/workspace-dto.d.ts +14 -0
- package/models/create-workspace-dto.ts +1 -1
- package/models/index.ts +0 -8
- package/models/workspace-dto.ts +12 -0
- package/package.json +1 -1
- package/dist/esm/models/execute-request-dto.d.ts +0 -30
- package/dist/esm/models/execute-request-dto.js +0 -14
- package/dist/esm/models/execute-response-dto.d.ts +0 -30
- package/dist/esm/models/execute-response-dto.js +0 -14
- package/dist/esm/models/git-add-request-dto.d.ts +0 -30
- package/dist/esm/models/git-add-request-dto.js +0 -14
- package/dist/esm/models/git-branch-request-dto.d.ts +0 -30
- package/dist/esm/models/git-branch-request-dto.js +0 -14
- package/dist/esm/models/git-clone-request-dto.d.ts +0 -54
- package/dist/esm/models/git-clone-request-dto.js +0 -14
- package/dist/esm/models/git-commit-request-dto.d.ts +0 -42
- package/dist/esm/models/git-commit-request-dto.js +0 -14
- package/dist/esm/models/git-repo-request-dto.d.ts +0 -36
- package/dist/esm/models/git-repo-request-dto.js +0 -14
- package/dist/esm/models/replace-request-dto.d.ts +0 -36
- package/dist/esm/models/replace-request-dto.js +0 -14
- package/dist/models/execute-request-dto.d.ts +0 -30
- package/dist/models/execute-request-dto.js +0 -15
- package/dist/models/execute-response-dto.d.ts +0 -30
- package/dist/models/execute-response-dto.js +0 -15
- package/dist/models/git-add-request-dto.d.ts +0 -30
- package/dist/models/git-add-request-dto.js +0 -15
- package/dist/models/git-branch-request-dto.d.ts +0 -30
- package/dist/models/git-branch-request-dto.js +0 -15
- package/dist/models/git-clone-request-dto.d.ts +0 -54
- package/dist/models/git-clone-request-dto.js +0 -15
- package/dist/models/git-commit-request-dto.d.ts +0 -42
- package/dist/models/git-commit-request-dto.js +0 -15
- package/dist/models/git-repo-request-dto.d.ts +0 -36
- package/dist/models/git-repo-request-dto.js +0 -15
- package/dist/models/replace-request-dto.d.ts +0 -36
- package/dist/models/replace-request-dto.js +0 -15
- package/models/execute-request-dto.ts +0 -36
- package/models/execute-response-dto.ts +0 -36
- package/models/git-add-request-dto.ts +0 -36
- package/models/git-branch-request-dto.ts +0 -36
- package/models/git-clone-request-dto.ts +0 -60
- package/models/git-commit-request-dto.ts +0 -48
- package/models/git-repo-request-dto.ts +0 -42
- package/models/replace-request-dto.ts +0 -42
package/.openapi-generator/FILES
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
+
api/api-keys-api.ts
|
|
6
7
|
api/default-api.ts
|
|
7
8
|
api/docker-registry-api.ts
|
|
9
|
+
api/nodes-api.ts
|
|
10
|
+
api/users-api.ts
|
|
11
|
+
api/workspace-api.ts
|
|
8
12
|
base.ts
|
|
9
13
|
common.ts
|
|
10
14
|
configuration.ts
|
|
@@ -15,15 +19,7 @@ models/api-key-response-dto.ts
|
|
|
15
19
|
models/create-api-key-dto.ts
|
|
16
20
|
models/create-docker-registry-dto.ts
|
|
17
21
|
models/create-workspace-dto.ts
|
|
18
|
-
models/execute-request-dto.ts
|
|
19
|
-
models/execute-response-dto.ts
|
|
20
|
-
models/git-add-request-dto.ts
|
|
21
|
-
models/git-branch-request-dto.ts
|
|
22
|
-
models/git-clone-request-dto.ts
|
|
23
|
-
models/git-commit-request-dto.ts
|
|
24
|
-
models/git-repo-request-dto.ts
|
|
25
22
|
models/index.ts
|
|
26
|
-
models/replace-request-dto.ts
|
|
27
23
|
models/update-docker-registry-dto.ts
|
|
28
24
|
models/workspace-dto.ts
|
|
29
25
|
models/workspace-info-dto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.
|
|
1
|
+
## @daytonaio/api-client@0.5.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.5.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { ApiKeyListDto } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { ApiKeyResponseDto } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { CreateApiKeyDto } from '../models';
|
|
30
|
+
/**
|
|
31
|
+
* ApiKeysApi - axios parameter creator
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const ApiKeysApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
|
+
return {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Create API key
|
|
39
|
+
* @param {CreateApiKeyDto} createApiKeyDto
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
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)
|
|
46
|
+
const localVarPath = `/api-keys`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication oauth2 required
|
|
59
|
+
// oauth required
|
|
60
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
65
|
+
|
|
66
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createApiKeyDto, localVarRequestOptions, configuration)
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
url: toPathString(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @summary Delete API key
|
|
79
|
+
* @param {string} name
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
deleteApiKey: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
84
|
+
// verify required parameter 'name' is not null or undefined
|
|
85
|
+
assertParamExists('deleteApiKey', 'name', name)
|
|
86
|
+
const localVarPath = `/api-keys/{name}`
|
|
87
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
88
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
90
|
+
let baseOptions;
|
|
91
|
+
if (configuration) {
|
|
92
|
+
baseOptions = configuration.baseOptions;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
96
|
+
const localVarHeaderParameter = {} as any;
|
|
97
|
+
const localVarQueryParameter = {} as any;
|
|
98
|
+
|
|
99
|
+
// authentication oauth2 required
|
|
100
|
+
// oauth required
|
|
101
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
url: toPathString(localVarUrlObj),
|
|
111
|
+
options: localVarRequestOptions,
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @summary Get API key
|
|
117
|
+
* @param {string} name
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
getApiKey: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
122
|
+
// verify required parameter 'name' is not null or undefined
|
|
123
|
+
assertParamExists('getApiKey', 'name', name)
|
|
124
|
+
const localVarPath = `/api-keys/{name}`
|
|
125
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
128
|
+
let baseOptions;
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
134
|
+
const localVarHeaderParameter = {} as any;
|
|
135
|
+
const localVarQueryParameter = {} as any;
|
|
136
|
+
|
|
137
|
+
// authentication oauth2 required
|
|
138
|
+
// oauth required
|
|
139
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @summary List API keys
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
listApiKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
|
+
const localVarPath = `/api-keys`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
168
|
+
const localVarHeaderParameter = {} as any;
|
|
169
|
+
const localVarQueryParameter = {} as any;
|
|
170
|
+
|
|
171
|
+
// authentication oauth2 required
|
|
172
|
+
// oauth required
|
|
173
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
179
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
180
|
+
|
|
181
|
+
return {
|
|
182
|
+
url: toPathString(localVarUrlObj),
|
|
183
|
+
options: localVarRequestOptions,
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* ApiKeysApi - functional programming interface
|
|
191
|
+
* @export
|
|
192
|
+
*/
|
|
193
|
+
export const ApiKeysApiFp = function(configuration?: Configuration) {
|
|
194
|
+
const localVarAxiosParamCreator = ApiKeysApiAxiosParamCreator(configuration)
|
|
195
|
+
return {
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @summary Create API key
|
|
199
|
+
* @param {CreateApiKeyDto} createApiKeyDto
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
async createApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponseDto>> {
|
|
204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKeyDto, options);
|
|
205
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
206
|
+
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.createApiKey']?.[localVarOperationServerIndex]?.url;
|
|
207
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
208
|
+
},
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @summary Delete API key
|
|
212
|
+
* @param {string} name
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
async deleteApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, options);
|
|
218
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
219
|
+
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.deleteApiKey']?.[localVarOperationServerIndex]?.url;
|
|
220
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Get API key
|
|
225
|
+
* @param {string} name
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
async getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyListDto>> {
|
|
230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, options);
|
|
231
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
232
|
+
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.getApiKey']?.[localVarOperationServerIndex]?.url;
|
|
233
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @summary List API keys
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
async listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyListDto>>> {
|
|
242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(options);
|
|
243
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
244
|
+
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.listApiKeys']?.[localVarOperationServerIndex]?.url;
|
|
245
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
246
|
+
},
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* ApiKeysApi - factory interface
|
|
252
|
+
* @export
|
|
253
|
+
*/
|
|
254
|
+
export const ApiKeysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
255
|
+
const localVarFp = ApiKeysApiFp(configuration)
|
|
256
|
+
return {
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary Create API key
|
|
260
|
+
* @param {CreateApiKeyDto} createApiKeyDto
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
createApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponseDto> {
|
|
265
|
+
return localVarFp.createApiKey(createApiKeyDto, options).then((request) => request(axios, basePath));
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @summary Delete API key
|
|
270
|
+
* @param {string} name
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
deleteApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
275
|
+
return localVarFp.deleteApiKey(name, options).then((request) => request(axios, basePath));
|
|
276
|
+
},
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @summary Get API key
|
|
280
|
+
* @param {string} name
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyListDto> {
|
|
285
|
+
return localVarFp.getApiKey(name, options).then((request) => request(axios, basePath));
|
|
286
|
+
},
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @summary List API keys
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyListDto>> {
|
|
294
|
+
return localVarFp.listApiKeys(options).then((request) => request(axios, basePath));
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* ApiKeysApi - object-oriented interface
|
|
301
|
+
* @export
|
|
302
|
+
* @class ApiKeysApi
|
|
303
|
+
* @extends {BaseAPI}
|
|
304
|
+
*/
|
|
305
|
+
export class ApiKeysApi extends BaseAPI {
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @summary Create API key
|
|
309
|
+
* @param {CreateApiKeyDto} createApiKeyDto
|
|
310
|
+
* @param {*} [options] Override http request option.
|
|
311
|
+
* @throws {RequiredError}
|
|
312
|
+
* @memberof ApiKeysApi
|
|
313
|
+
*/
|
|
314
|
+
public createApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig) {
|
|
315
|
+
return ApiKeysApiFp(this.configuration).createApiKey(createApiKeyDto, options).then((request) => request(this.axios, this.basePath));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @summary Delete API key
|
|
321
|
+
* @param {string} name
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
* @memberof ApiKeysApi
|
|
325
|
+
*/
|
|
326
|
+
public deleteApiKey(name: string, options?: RawAxiosRequestConfig) {
|
|
327
|
+
return ApiKeysApiFp(this.configuration).deleteApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Get API key
|
|
333
|
+
* @param {string} name
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
* @memberof ApiKeysApi
|
|
337
|
+
*/
|
|
338
|
+
public getApiKey(name: string, options?: RawAxiosRequestConfig) {
|
|
339
|
+
return ApiKeysApiFp(this.configuration).getApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @summary List API keys
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
* @memberof ApiKeysApi
|
|
348
|
+
*/
|
|
349
|
+
public listApiKeys(options?: RawAxiosRequestConfig) {
|
|
350
|
+
return ApiKeysApiFp(this.configuration).listApiKeys(options).then((request) => request(this.axios, this.basePath));
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|