@daytonaio/api-client 0.4.0 → 0.5.0

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