@daytonaio/api-client 0.4.1 → 0.5.0

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