@nestbox-ai/instances 1.0.25

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.
@@ -0,0 +1,774 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nestbox API Agents API
5
+ * API for Nestbox Agents, control your agents
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ /**
30
+ * AgentsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const AgentsApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @param {CreateMachineAgentDto} createMachineAgentDto
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ agentManagementControllerCreateNewAgent: (createMachineAgentDto_1, ...args_1) => __awaiter(this, [createMachineAgentDto_1, ...args_1], void 0, function* (createMachineAgentDto, options = {}) {
42
+ // verify required parameter 'createMachineAgentDto' is not null or undefined
43
+ assertParamExists('agentManagementControllerCreateNewAgent', 'createMachineAgentDto', createMachineAgentDto);
44
+ const localVarPath = `/agents`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ localVarHeaderParameter['Content-Type'] = 'application/json';
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
58
+ localVarRequestOptions.data = serializeDataIfNeeded(createMachineAgentDto, localVarRequestOptions, configuration);
59
+ return {
60
+ url: toPathString(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ }),
64
+ /**
65
+ *
66
+ * @param {string} id
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ agentManagementControllerDeleteAgent: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
71
+ // verify required parameter 'id' is not null or undefined
72
+ assertParamExists('agentManagementControllerDeleteAgent', 'id', id);
73
+ const localVarPath = `/agents/{id}`
74
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
75
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
76
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
77
+ let baseOptions;
78
+ if (configuration) {
79
+ baseOptions = configuration.baseOptions;
80
+ }
81
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
82
+ const localVarHeaderParameter = {};
83
+ const localVarQueryParameter = {};
84
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
85
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ }),
92
+ /**
93
+ *
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ agentManagementControllerGetAllAgents: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
98
+ const localVarPath = `/agents`;
99
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
101
+ let baseOptions;
102
+ if (configuration) {
103
+ baseOptions = configuration.baseOptions;
104
+ }
105
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
106
+ const localVarHeaderParameter = {};
107
+ const localVarQueryParameter = {};
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
111
+ return {
112
+ url: toPathString(localVarUrlObj),
113
+ options: localVarRequestOptions,
114
+ };
115
+ }),
116
+ /**
117
+ *
118
+ * @param {string} id
119
+ * @param {object} body
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ agentManagementControllerUpdateMachineAgent: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
124
+ // verify required parameter 'id' is not null or undefined
125
+ assertParamExists('agentManagementControllerUpdateMachineAgent', 'id', id);
126
+ // verify required parameter 'body' is not null or undefined
127
+ assertParamExists('agentManagementControllerUpdateMachineAgent', 'body', body);
128
+ const localVarPath = `/agents/{id}`
129
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
132
+ let baseOptions;
133
+ if (configuration) {
134
+ baseOptions = configuration.baseOptions;
135
+ }
136
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
137
+ const localVarHeaderParameter = {};
138
+ const localVarQueryParameter = {};
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
144
+ return {
145
+ url: toPathString(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ };
148
+ }),
149
+ };
150
+ };
151
+ /**
152
+ * AgentsApi - functional programming interface
153
+ * @export
154
+ */
155
+ export const AgentsApiFp = function (configuration) {
156
+ const localVarAxiosParamCreator = AgentsApiAxiosParamCreator(configuration);
157
+ return {
158
+ /**
159
+ *
160
+ * @param {CreateMachineAgentDto} createMachineAgentDto
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ agentManagementControllerCreateNewAgent(createMachineAgentDto, options) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ var _a, _b, _c;
167
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.agentManagementControllerCreateNewAgent(createMachineAgentDto, options);
168
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
169
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AgentsApi.agentManagementControllerCreateNewAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
170
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
171
+ });
172
+ },
173
+ /**
174
+ *
175
+ * @param {string} id
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ agentManagementControllerDeleteAgent(id, options) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ var _a, _b, _c;
182
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.agentManagementControllerDeleteAgent(id, options);
183
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
184
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AgentsApi.agentManagementControllerDeleteAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
186
+ });
187
+ },
188
+ /**
189
+ *
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ agentManagementControllerGetAllAgents(options) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ var _a, _b, _c;
196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.agentManagementControllerGetAllAgents(options);
197
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
198
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AgentsApi.agentManagementControllerGetAllAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
199
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
200
+ });
201
+ },
202
+ /**
203
+ *
204
+ * @param {string} id
205
+ * @param {object} body
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ agentManagementControllerUpdateMachineAgent(id, body, options) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ var _a, _b, _c;
212
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.agentManagementControllerUpdateMachineAgent(id, body, options);
213
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
214
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AgentsApi.agentManagementControllerUpdateMachineAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
215
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
216
+ });
217
+ },
218
+ };
219
+ };
220
+ /**
221
+ * AgentsApi - factory interface
222
+ * @export
223
+ */
224
+ export const AgentsApiFactory = function (configuration, basePath, axios) {
225
+ const localVarFp = AgentsApiFp(configuration);
226
+ return {
227
+ /**
228
+ *
229
+ * @param {CreateMachineAgentDto} createMachineAgentDto
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ agentManagementControllerCreateNewAgent(createMachineAgentDto, options) {
234
+ return localVarFp.agentManagementControllerCreateNewAgent(createMachineAgentDto, options).then((request) => request(axios, basePath));
235
+ },
236
+ /**
237
+ *
238
+ * @param {string} id
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ agentManagementControllerDeleteAgent(id, options) {
243
+ return localVarFp.agentManagementControllerDeleteAgent(id, options).then((request) => request(axios, basePath));
244
+ },
245
+ /**
246
+ *
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ agentManagementControllerGetAllAgents(options) {
251
+ return localVarFp.agentManagementControllerGetAllAgents(options).then((request) => request(axios, basePath));
252
+ },
253
+ /**
254
+ *
255
+ * @param {string} id
256
+ * @param {object} body
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ agentManagementControllerUpdateMachineAgent(id, body, options) {
261
+ return localVarFp.agentManagementControllerUpdateMachineAgent(id, body, options).then((request) => request(axios, basePath));
262
+ },
263
+ };
264
+ };
265
+ /**
266
+ * AgentsApi - object-oriented interface
267
+ * @export
268
+ * @class AgentsApi
269
+ * @extends {BaseAPI}
270
+ */
271
+ export class AgentsApi extends BaseAPI {
272
+ /**
273
+ *
274
+ * @param {CreateMachineAgentDto} createMachineAgentDto
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ * @memberof AgentsApi
278
+ */
279
+ agentManagementControllerCreateNewAgent(createMachineAgentDto, options) {
280
+ return AgentsApiFp(this.configuration).agentManagementControllerCreateNewAgent(createMachineAgentDto, options).then((request) => request(this.axios, this.basePath));
281
+ }
282
+ /**
283
+ *
284
+ * @param {string} id
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof AgentsApi
288
+ */
289
+ agentManagementControllerDeleteAgent(id, options) {
290
+ return AgentsApiFp(this.configuration).agentManagementControllerDeleteAgent(id, options).then((request) => request(this.axios, this.basePath));
291
+ }
292
+ /**
293
+ *
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ * @memberof AgentsApi
297
+ */
298
+ agentManagementControllerGetAllAgents(options) {
299
+ return AgentsApiFp(this.configuration).agentManagementControllerGetAllAgents(options).then((request) => request(this.axios, this.basePath));
300
+ }
301
+ /**
302
+ *
303
+ * @param {string} id
304
+ * @param {object} body
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ * @memberof AgentsApi
308
+ */
309
+ agentManagementControllerUpdateMachineAgent(id, body, options) {
310
+ return AgentsApiFp(this.configuration).agentManagementControllerUpdateMachineAgent(id, body, options).then((request) => request(this.axios, this.basePath));
311
+ }
312
+ }
313
+ /**
314
+ * ManifestApi - axios parameter creator
315
+ * @export
316
+ */
317
+ export const ManifestApiAxiosParamCreator = function (configuration) {
318
+ return {
319
+ /**
320
+ *
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ modelManagementManifestControllerGetManifest: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
325
+ const localVarPath = `/manifest`;
326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
328
+ let baseOptions;
329
+ if (configuration) {
330
+ baseOptions = configuration.baseOptions;
331
+ }
332
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
333
+ const localVarHeaderParameter = {};
334
+ const localVarQueryParameter = {};
335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
+ return {
339
+ url: toPathString(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ };
342
+ }),
343
+ };
344
+ };
345
+ /**
346
+ * ManifestApi - functional programming interface
347
+ * @export
348
+ */
349
+ export const ManifestApiFp = function (configuration) {
350
+ const localVarAxiosParamCreator = ManifestApiAxiosParamCreator(configuration);
351
+ return {
352
+ /**
353
+ *
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ modelManagementManifestControllerGetManifest(options) {
358
+ return __awaiter(this, void 0, void 0, function* () {
359
+ var _a, _b, _c;
360
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelManagementManifestControllerGetManifest(options);
361
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
362
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManifestApi.modelManagementManifestControllerGetManifest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
363
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
364
+ });
365
+ },
366
+ };
367
+ };
368
+ /**
369
+ * ManifestApi - factory interface
370
+ * @export
371
+ */
372
+ export const ManifestApiFactory = function (configuration, basePath, axios) {
373
+ const localVarFp = ManifestApiFp(configuration);
374
+ return {
375
+ /**
376
+ *
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ */
380
+ modelManagementManifestControllerGetManifest(options) {
381
+ return localVarFp.modelManagementManifestControllerGetManifest(options).then((request) => request(axios, basePath));
382
+ },
383
+ };
384
+ };
385
+ /**
386
+ * ManifestApi - object-oriented interface
387
+ * @export
388
+ * @class ManifestApi
389
+ * @extends {BaseAPI}
390
+ */
391
+ export class ManifestApi extends BaseAPI {
392
+ /**
393
+ *
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ * @memberof ManifestApi
397
+ */
398
+ modelManagementManifestControllerGetManifest(options) {
399
+ return ManifestApiFp(this.configuration).modelManagementManifestControllerGetManifest(options).then((request) => request(this.axios, this.basePath));
400
+ }
401
+ }
402
+ /**
403
+ * ModelsApi - axios parameter creator
404
+ * @export
405
+ */
406
+ export const ModelsApiAxiosParamCreator = function (configuration) {
407
+ return {
408
+ /**
409
+ *
410
+ * @param {CreateMachineModelDto} createMachineModelDto
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ modelManagementControllerCreateNewModel: (createMachineModelDto_1, ...args_1) => __awaiter(this, [createMachineModelDto_1, ...args_1], void 0, function* (createMachineModelDto, options = {}) {
415
+ // verify required parameter 'createMachineModelDto' is not null or undefined
416
+ assertParamExists('modelManagementControllerCreateNewModel', 'createMachineModelDto', createMachineModelDto);
417
+ const localVarPath = `/models`;
418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
420
+ let baseOptions;
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ }
424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
425
+ const localVarHeaderParameter = {};
426
+ const localVarQueryParameter = {};
427
+ localVarHeaderParameter['Content-Type'] = 'application/json';
428
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
431
+ localVarRequestOptions.data = serializeDataIfNeeded(createMachineModelDto, localVarRequestOptions, configuration);
432
+ return {
433
+ url: toPathString(localVarUrlObj),
434
+ options: localVarRequestOptions,
435
+ };
436
+ }),
437
+ /**
438
+ *
439
+ * @param {string} id
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ modelManagementControllerDeleteModel: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
444
+ // verify required parameter 'id' is not null or undefined
445
+ assertParamExists('modelManagementControllerDeleteModel', 'id', id);
446
+ const localVarPath = `/models/{id}`
447
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
449
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
450
+ let baseOptions;
451
+ if (configuration) {
452
+ baseOptions = configuration.baseOptions;
453
+ }
454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
455
+ const localVarHeaderParameter = {};
456
+ const localVarQueryParameter = {};
457
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
458
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
459
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
460
+ return {
461
+ url: toPathString(localVarUrlObj),
462
+ options: localVarRequestOptions,
463
+ };
464
+ }),
465
+ /**
466
+ *
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ modelManagementControllerGetAllModels: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
471
+ const localVarPath = `/models`;
472
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
474
+ let baseOptions;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ }
478
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
479
+ const localVarHeaderParameter = {};
480
+ const localVarQueryParameter = {};
481
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ return {
485
+ url: toPathString(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ };
488
+ }),
489
+ /**
490
+ *
491
+ * @param {string} id
492
+ * @param {CreateMachineModelDto} createMachineModelDto
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ modelManagementControllerUpdateMachineModel: (id_1, createMachineModelDto_1, ...args_1) => __awaiter(this, [id_1, createMachineModelDto_1, ...args_1], void 0, function* (id, createMachineModelDto, options = {}) {
497
+ // verify required parameter 'id' is not null or undefined
498
+ assertParamExists('modelManagementControllerUpdateMachineModel', 'id', id);
499
+ // verify required parameter 'createMachineModelDto' is not null or undefined
500
+ assertParamExists('modelManagementControllerUpdateMachineModel', 'createMachineModelDto', createMachineModelDto);
501
+ const localVarPath = `/models/{id}`
502
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
504
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
505
+ let baseOptions;
506
+ if (configuration) {
507
+ baseOptions = configuration.baseOptions;
508
+ }
509
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
510
+ const localVarHeaderParameter = {};
511
+ const localVarQueryParameter = {};
512
+ localVarHeaderParameter['Content-Type'] = 'application/json';
513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
516
+ localVarRequestOptions.data = serializeDataIfNeeded(createMachineModelDto, localVarRequestOptions, configuration);
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions,
520
+ };
521
+ }),
522
+ };
523
+ };
524
+ /**
525
+ * ModelsApi - functional programming interface
526
+ * @export
527
+ */
528
+ export const ModelsApiFp = function (configuration) {
529
+ const localVarAxiosParamCreator = ModelsApiAxiosParamCreator(configuration);
530
+ return {
531
+ /**
532
+ *
533
+ * @param {CreateMachineModelDto} createMachineModelDto
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ modelManagementControllerCreateNewModel(createMachineModelDto, options) {
538
+ return __awaiter(this, void 0, void 0, function* () {
539
+ var _a, _b, _c;
540
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelManagementControllerCreateNewModel(createMachineModelDto, options);
541
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
542
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ModelsApi.modelManagementControllerCreateNewModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
543
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
544
+ });
545
+ },
546
+ /**
547
+ *
548
+ * @param {string} id
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ modelManagementControllerDeleteModel(id, options) {
553
+ return __awaiter(this, void 0, void 0, function* () {
554
+ var _a, _b, _c;
555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelManagementControllerDeleteModel(id, options);
556
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
557
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ModelsApi.modelManagementControllerDeleteModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
559
+ });
560
+ },
561
+ /**
562
+ *
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ modelManagementControllerGetAllModels(options) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ var _a, _b, _c;
569
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelManagementControllerGetAllModels(options);
570
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
571
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ModelsApi.modelManagementControllerGetAllModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
572
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
573
+ });
574
+ },
575
+ /**
576
+ *
577
+ * @param {string} id
578
+ * @param {CreateMachineModelDto} createMachineModelDto
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options) {
583
+ return __awaiter(this, void 0, void 0, function* () {
584
+ var _a, _b, _c;
585
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options);
586
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
587
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ModelsApi.modelManagementControllerUpdateMachineModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
588
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
589
+ });
590
+ },
591
+ };
592
+ };
593
+ /**
594
+ * ModelsApi - factory interface
595
+ * @export
596
+ */
597
+ export const ModelsApiFactory = function (configuration, basePath, axios) {
598
+ const localVarFp = ModelsApiFp(configuration);
599
+ return {
600
+ /**
601
+ *
602
+ * @param {CreateMachineModelDto} createMachineModelDto
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ modelManagementControllerCreateNewModel(createMachineModelDto, options) {
607
+ return localVarFp.modelManagementControllerCreateNewModel(createMachineModelDto, options).then((request) => request(axios, basePath));
608
+ },
609
+ /**
610
+ *
611
+ * @param {string} id
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ modelManagementControllerDeleteModel(id, options) {
616
+ return localVarFp.modelManagementControllerDeleteModel(id, options).then((request) => request(axios, basePath));
617
+ },
618
+ /**
619
+ *
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ modelManagementControllerGetAllModels(options) {
624
+ return localVarFp.modelManagementControllerGetAllModels(options).then((request) => request(axios, basePath));
625
+ },
626
+ /**
627
+ *
628
+ * @param {string} id
629
+ * @param {CreateMachineModelDto} createMachineModelDto
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options) {
634
+ return localVarFp.modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options).then((request) => request(axios, basePath));
635
+ },
636
+ };
637
+ };
638
+ /**
639
+ * ModelsApi - object-oriented interface
640
+ * @export
641
+ * @class ModelsApi
642
+ * @extends {BaseAPI}
643
+ */
644
+ export class ModelsApi extends BaseAPI {
645
+ /**
646
+ *
647
+ * @param {CreateMachineModelDto} createMachineModelDto
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ * @memberof ModelsApi
651
+ */
652
+ modelManagementControllerCreateNewModel(createMachineModelDto, options) {
653
+ return ModelsApiFp(this.configuration).modelManagementControllerCreateNewModel(createMachineModelDto, options).then((request) => request(this.axios, this.basePath));
654
+ }
655
+ /**
656
+ *
657
+ * @param {string} id
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ * @memberof ModelsApi
661
+ */
662
+ modelManagementControllerDeleteModel(id, options) {
663
+ return ModelsApiFp(this.configuration).modelManagementControllerDeleteModel(id, options).then((request) => request(this.axios, this.basePath));
664
+ }
665
+ /**
666
+ *
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ * @memberof ModelsApi
670
+ */
671
+ modelManagementControllerGetAllModels(options) {
672
+ return ModelsApiFp(this.configuration).modelManagementControllerGetAllModels(options).then((request) => request(this.axios, this.basePath));
673
+ }
674
+ /**
675
+ *
676
+ * @param {string} id
677
+ * @param {CreateMachineModelDto} createMachineModelDto
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ * @memberof ModelsApi
681
+ */
682
+ modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options) {
683
+ return ModelsApiFp(this.configuration).modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options).then((request) => request(this.axios, this.basePath));
684
+ }
685
+ }
686
+ /**
687
+ * ServerLiveStatusApi - axios parameter creator
688
+ * @export
689
+ */
690
+ export const ServerLiveStatusApiAxiosParamCreator = function (configuration) {
691
+ return {
692
+ /**
693
+ *
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ appControllerGetStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
698
+ const localVarPath = `/`;
699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
700
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
701
+ let baseOptions;
702
+ if (configuration) {
703
+ baseOptions = configuration.baseOptions;
704
+ }
705
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
706
+ const localVarHeaderParameter = {};
707
+ const localVarQueryParameter = {};
708
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
709
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
710
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
711
+ return {
712
+ url: toPathString(localVarUrlObj),
713
+ options: localVarRequestOptions,
714
+ };
715
+ }),
716
+ };
717
+ };
718
+ /**
719
+ * ServerLiveStatusApi - functional programming interface
720
+ * @export
721
+ */
722
+ export const ServerLiveStatusApiFp = function (configuration) {
723
+ const localVarAxiosParamCreator = ServerLiveStatusApiAxiosParamCreator(configuration);
724
+ return {
725
+ /**
726
+ *
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ appControllerGetStatus(options) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ var _a, _b, _c;
733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetStatus(options);
734
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
735
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerLiveStatusApi.appControllerGetStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
736
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
737
+ });
738
+ },
739
+ };
740
+ };
741
+ /**
742
+ * ServerLiveStatusApi - factory interface
743
+ * @export
744
+ */
745
+ export const ServerLiveStatusApiFactory = function (configuration, basePath, axios) {
746
+ const localVarFp = ServerLiveStatusApiFp(configuration);
747
+ return {
748
+ /**
749
+ *
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ appControllerGetStatus(options) {
754
+ return localVarFp.appControllerGetStatus(options).then((request) => request(axios, basePath));
755
+ },
756
+ };
757
+ };
758
+ /**
759
+ * ServerLiveStatusApi - object-oriented interface
760
+ * @export
761
+ * @class ServerLiveStatusApi
762
+ * @extends {BaseAPI}
763
+ */
764
+ export class ServerLiveStatusApi extends BaseAPI {
765
+ /**
766
+ *
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ * @memberof ServerLiveStatusApi
770
+ */
771
+ appControllerGetStatus(options) {
772
+ return ServerLiveStatusApiFp(this.configuration).appControllerGetStatus(options).then((request) => request(this.axios, this.basePath));
773
+ }
774
+ }