@nestbox-ai/instances 1.0.39 → 1.0.42

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.
@@ -5,6 +5,12 @@ api.ts
5
5
  base.ts
6
6
  common.ts
7
7
  configuration.ts
8
+ docs/AdditionalAgentParameterDto.md
9
+ docs/AgentParameterDto.md
10
+ docs/AgentsApi.md
11
+ docs/CreateMachineAgentDto.md
12
+ docs/ManifestApi.md
13
+ docs/ServerLiveStatusApi.md
8
14
  git_push.sh
9
15
  index.ts
10
16
  package.json
@@ -1 +1 @@
1
- 7.12.0
1
+ 7.13.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @nestbox-ai/instances@1.0.39
1
+ ## @nestbox-ai/instances@1.0.42
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @nestbox-ai/instances@1.0.39 --save
39
+ npm install @nestbox-ai/instances@1.0.42 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,3 +44,30 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
+
48
+ ### Documentation for API Endpoints
49
+
50
+ All URIs are relative to *http://localhost*
51
+
52
+ Class | Method | HTTP request | Description
53
+ ------------ | ------------- | ------------- | -------------
54
+ *AgentsApi* | [**agentManagementControllerCreateNewAgent**](docs/AgentsApi.md#agentmanagementcontrollercreatenewagent) | **POST** /agents |
55
+ *AgentsApi* | [**agentManagementControllerDeleteAgent**](docs/AgentsApi.md#agentmanagementcontrollerdeleteagent) | **DELETE** /agents/{id} |
56
+ *AgentsApi* | [**agentManagementControllerGetAllAgents**](docs/AgentsApi.md#agentmanagementcontrollergetallagents) | **GET** /agents |
57
+ *AgentsApi* | [**agentManagementControllerUpdateMachineAgent**](docs/AgentsApi.md#agentmanagementcontrollerupdatemachineagent) | **PUT** /agents/{id} |
58
+ *ManifestApi* | [**agentManagementManifestControllerGetManifest**](docs/ManifestApi.md#agentmanagementmanifestcontrollergetmanifest) | **GET** /manifest |
59
+ *ServerLiveStatusApi* | [**appControllerGetStatus**](docs/ServerLiveStatusApi.md#appcontrollergetstatus) | **GET** / |
60
+
61
+
62
+ ### Documentation For Models
63
+
64
+ - [AdditionalAgentParameterDto](docs/AdditionalAgentParameterDto.md)
65
+ - [AgentParameterDto](docs/AgentParameterDto.md)
66
+ - [CreateMachineAgentDto](docs/CreateMachineAgentDto.md)
67
+
68
+
69
+ <a id="documentation-for-authorization"></a>
70
+ ## Documentation For Authorization
71
+
72
+ Endpoints do not require authorization.
73
+
package/api.ts CHANGED
@@ -85,62 +85,6 @@ export interface AgentParameterDto {
85
85
  */
86
86
  'machineModelId': string;
87
87
  }
88
- /**
89
- *
90
- * @export
91
- * @interface CreateAdditionalParameterDto
92
- */
93
- export interface CreateAdditionalParameterDto {
94
- /**
95
- * The name of the additional parameter
96
- * @type {string}
97
- * @memberof CreateAdditionalParameterDto
98
- */
99
- 'name': string;
100
- /**
101
- * The description of the additional parameter
102
- * @type {string}
103
- * @memberof CreateAdditionalParameterDto
104
- */
105
- 'description': string;
106
- /**
107
- * The default value of the additional parameter
108
- * @type {string}
109
- * @memberof CreateAdditionalParameterDto
110
- */
111
- 'default_value': string;
112
- /**
113
- * The ID of the machine model associated with this additional parameter
114
- * @type {string}
115
- * @memberof CreateAdditionalParameterDto
116
- */
117
- 'machineModelId': string;
118
- }
119
- /**
120
- *
121
- * @export
122
- * @interface CreateExamplePromptDto
123
- */
124
- export interface CreateExamplePromptDto {
125
- /**
126
- * The training prompt for the example
127
- * @type {string}
128
- * @memberof CreateExamplePromptDto
129
- */
130
- 'trainingPrompt': string;
131
- /**
132
- * The answer for the training prompt
133
- * @type {string}
134
- * @memberof CreateExamplePromptDto
135
- */
136
- 'promptAnswer': string;
137
- /**
138
- * The ID of the machine model associated with this example
139
- * @type {string}
140
- * @memberof CreateExamplePromptDto
141
- */
142
- 'machineModelId': string;
143
- }
144
88
  /**
145
89
  *
146
90
  * @export
@@ -165,6 +109,12 @@ export interface CreateMachineAgentDto {
165
109
  * @memberof CreateMachineAgentDto
166
110
  */
167
111
  'entryFunctionName'?: string;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof CreateMachineAgentDto
116
+ */
117
+ 'type': string;
168
118
  /**
169
119
  *
170
120
  * @type {Array<AgentParameterDto>}
@@ -178,80 +128,6 @@ export interface CreateMachineAgentDto {
178
128
  */
179
129
  'additionalParameters'?: Array<AdditionalAgentParameterDto>;
180
130
  }
181
- /**
182
- *
183
- * @export
184
- * @interface CreateMachineModelDto
185
- */
186
- export interface CreateMachineModelDto {
187
- /**
188
- * The name of the machine model
189
- * @type {string}
190
- * @memberof CreateMachineModelDto
191
- */
192
- 'name': string;
193
- /**
194
- * The description of the machine model
195
- * @type {string}
196
- * @memberof CreateMachineModelDto
197
- */
198
- 'description': string;
199
- /**
200
- * The prompt associated with the machine model
201
- * @type {string}
202
- * @memberof CreateMachineModelDto
203
- */
204
- 'prompt': string;
205
- /**
206
- * Parameters associated with the machine model
207
- * @type {Array<CreateParameterDto>}
208
- * @memberof CreateMachineModelDto
209
- */
210
- 'parameters': Array<CreateParameterDto>;
211
- /**
212
- * Additional parameters for the machine model
213
- * @type {Array<CreateAdditionalParameterDto>}
214
- * @memberof CreateMachineModelDto
215
- */
216
- 'additionalParameters': Array<CreateAdditionalParameterDto>;
217
- /**
218
- * Training examples for the machine model
219
- * @type {Array<CreateExamplePromptDto>}
220
- * @memberof CreateMachineModelDto
221
- */
222
- 'trainingExamples': Array<CreateExamplePromptDto>;
223
- }
224
- /**
225
- *
226
- * @export
227
- * @interface CreateParameterDto
228
- */
229
- export interface CreateParameterDto {
230
- /**
231
- * The name of the parameter
232
- * @type {string}
233
- * @memberof CreateParameterDto
234
- */
235
- 'name': string;
236
- /**
237
- * The description of the parameter
238
- * @type {string}
239
- * @memberof CreateParameterDto
240
- */
241
- 'description': string;
242
- /**
243
- * The default value of the parameter
244
- * @type {string}
245
- * @memberof CreateParameterDto
246
- */
247
- 'default_value': string;
248
- /**
249
- * The ID of the machine model associated with this parameter
250
- * @type {string}
251
- * @memberof CreateParameterDto
252
- */
253
- 'machineModelId': string;
254
- }
255
131
 
256
132
  /**
257
133
  * AgentsApi - axios parameter creator
@@ -329,10 +205,11 @@ export const AgentsApiAxiosParamCreator = function (configuration?: Configuratio
329
205
  },
330
206
  /**
331
207
  *
208
+ * @param {AgentManagementControllerGetAllAgentsTypeEnum} [type] Type of agent.
332
209
  * @param {*} [options] Override http request option.
333
210
  * @throws {RequiredError}
334
211
  */
335
- agentManagementControllerGetAllAgents: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
212
+ agentManagementControllerGetAllAgents: async (type?: AgentManagementControllerGetAllAgentsTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
336
213
  const localVarPath = `/agents`;
337
214
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
338
215
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -345,6 +222,10 @@ export const AgentsApiAxiosParamCreator = function (configuration?: Configuratio
345
222
  const localVarHeaderParameter = {} as any;
346
223
  const localVarQueryParameter = {} as any;
347
224
 
225
+ if (type !== undefined) {
226
+ localVarQueryParameter['type'] = type;
227
+ }
228
+
348
229
 
349
230
 
350
231
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -431,11 +312,12 @@ export const AgentsApiFp = function(configuration?: Configuration) {
431
312
  },
432
313
  /**
433
314
  *
315
+ * @param {AgentManagementControllerGetAllAgentsTypeEnum} [type] Type of agent.
434
316
  * @param {*} [options] Override http request option.
435
317
  * @throws {RequiredError}
436
318
  */
437
- async agentManagementControllerGetAllAgents(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
438
- const localVarAxiosArgs = await localVarAxiosParamCreator.agentManagementControllerGetAllAgents(options);
319
+ async agentManagementControllerGetAllAgents(type?: AgentManagementControllerGetAllAgentsTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.agentManagementControllerGetAllAgents(type, options);
439
321
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
440
322
  const localVarOperationServerBasePath = operationServerMap['AgentsApi.agentManagementControllerGetAllAgents']?.[localVarOperationServerIndex]?.url;
441
323
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -483,11 +365,12 @@ export const AgentsApiFactory = function (configuration?: Configuration, basePat
483
365
  },
484
366
  /**
485
367
  *
368
+ * @param {AgentManagementControllerGetAllAgentsTypeEnum} [type] Type of agent.
486
369
  * @param {*} [options] Override http request option.
487
370
  * @throws {RequiredError}
488
371
  */
489
- agentManagementControllerGetAllAgents(options?: RawAxiosRequestConfig): AxiosPromise<void> {
490
- return localVarFp.agentManagementControllerGetAllAgents(options).then((request) => request(axios, basePath));
372
+ agentManagementControllerGetAllAgents(type?: AgentManagementControllerGetAllAgentsTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
373
+ return localVarFp.agentManagementControllerGetAllAgents(type, options).then((request) => request(axios, basePath));
491
374
  },
492
375
  /**
493
376
  *
@@ -533,12 +416,13 @@ export class AgentsApi extends BaseAPI {
533
416
 
534
417
  /**
535
418
  *
419
+ * @param {AgentManagementControllerGetAllAgentsTypeEnum} [type] Type of agent.
536
420
  * @param {*} [options] Override http request option.
537
421
  * @throws {RequiredError}
538
422
  * @memberof AgentsApi
539
423
  */
540
- public agentManagementControllerGetAllAgents(options?: RawAxiosRequestConfig) {
541
- return AgentsApiFp(this.configuration).agentManagementControllerGetAllAgents(options).then((request) => request(this.axios, this.basePath));
424
+ public agentManagementControllerGetAllAgents(type?: AgentManagementControllerGetAllAgentsTypeEnum, options?: RawAxiosRequestConfig) {
425
+ return AgentsApiFp(this.configuration).agentManagementControllerGetAllAgents(type, options).then((request) => request(this.axios, this.basePath));
542
426
  }
543
427
 
544
428
  /**
@@ -554,6 +438,14 @@ export class AgentsApi extends BaseAPI {
554
438
  }
555
439
  }
556
440
 
441
+ /**
442
+ * @export
443
+ */
444
+ export const AgentManagementControllerGetAllAgentsTypeEnum = {
445
+ Regular: 'REGULAR',
446
+ Chat: 'CHAT'
447
+ } as const;
448
+ export type AgentManagementControllerGetAllAgentsTypeEnum = typeof AgentManagementControllerGetAllAgentsTypeEnum[keyof typeof AgentManagementControllerGetAllAgentsTypeEnum];
557
449
 
558
450
 
559
451
  /**
@@ -567,7 +459,7 @@ export const ManifestApiAxiosParamCreator = function (configuration?: Configurat
567
459
  * @param {*} [options] Override http request option.
568
460
  * @throws {RequiredError}
569
461
  */
570
- modelManagementManifestControllerGetManifest: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
462
+ agentManagementManifestControllerGetManifest: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
571
463
  const localVarPath = `/manifest`;
572
464
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
573
465
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -606,10 +498,10 @@ export const ManifestApiFp = function(configuration?: Configuration) {
606
498
  * @param {*} [options] Override http request option.
607
499
  * @throws {RequiredError}
608
500
  */
609
- async modelManagementManifestControllerGetManifest(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
610
- const localVarAxiosArgs = await localVarAxiosParamCreator.modelManagementManifestControllerGetManifest(options);
501
+ async agentManagementManifestControllerGetManifest(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.agentManagementManifestControllerGetManifest(options);
611
503
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
612
- const localVarOperationServerBasePath = operationServerMap['ManifestApi.modelManagementManifestControllerGetManifest']?.[localVarOperationServerIndex]?.url;
504
+ const localVarOperationServerBasePath = operationServerMap['ManifestApi.agentManagementManifestControllerGetManifest']?.[localVarOperationServerIndex]?.url;
613
505
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
614
506
  },
615
507
  }
@@ -627,8 +519,8 @@ export const ManifestApiFactory = function (configuration?: Configuration, baseP
627
519
  * @param {*} [options] Override http request option.
628
520
  * @throws {RequiredError}
629
521
  */
630
- modelManagementManifestControllerGetManifest(options?: RawAxiosRequestConfig): AxiosPromise<void> {
631
- return localVarFp.modelManagementManifestControllerGetManifest(options).then((request) => request(axios, basePath));
522
+ agentManagementManifestControllerGetManifest(options?: RawAxiosRequestConfig): AxiosPromise<void> {
523
+ return localVarFp.agentManagementManifestControllerGetManifest(options).then((request) => request(axios, basePath));
632
524
  },
633
525
  };
634
526
  };
@@ -646,311 +538,8 @@ export class ManifestApi extends BaseAPI {
646
538
  * @throws {RequiredError}
647
539
  * @memberof ManifestApi
648
540
  */
649
- public modelManagementManifestControllerGetManifest(options?: RawAxiosRequestConfig) {
650
- return ManifestApiFp(this.configuration).modelManagementManifestControllerGetManifest(options).then((request) => request(this.axios, this.basePath));
651
- }
652
- }
653
-
654
-
655
-
656
- /**
657
- * ModelsApi - axios parameter creator
658
- * @export
659
- */
660
- export const ModelsApiAxiosParamCreator = function (configuration?: Configuration) {
661
- return {
662
- /**
663
- *
664
- * @param {CreateMachineModelDto} createMachineModelDto
665
- * @param {*} [options] Override http request option.
666
- * @throws {RequiredError}
667
- */
668
- modelManagementControllerCreateNewModel: async (createMachineModelDto: CreateMachineModelDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
669
- // verify required parameter 'createMachineModelDto' is not null or undefined
670
- assertParamExists('modelManagementControllerCreateNewModel', 'createMachineModelDto', createMachineModelDto)
671
- const localVarPath = `/models`;
672
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
673
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
674
- let baseOptions;
675
- if (configuration) {
676
- baseOptions = configuration.baseOptions;
677
- }
678
-
679
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
680
- const localVarHeaderParameter = {} as any;
681
- const localVarQueryParameter = {} as any;
682
-
683
-
684
-
685
- localVarHeaderParameter['Content-Type'] = 'application/json';
686
-
687
- setSearchParams(localVarUrlObj, localVarQueryParameter);
688
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
689
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
690
- localVarRequestOptions.data = serializeDataIfNeeded(createMachineModelDto, localVarRequestOptions, configuration)
691
-
692
- return {
693
- url: toPathString(localVarUrlObj),
694
- options: localVarRequestOptions,
695
- };
696
- },
697
- /**
698
- *
699
- * @param {string} id
700
- * @param {*} [options] Override http request option.
701
- * @throws {RequiredError}
702
- */
703
- modelManagementControllerDeleteModel: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
704
- // verify required parameter 'id' is not null or undefined
705
- assertParamExists('modelManagementControllerDeleteModel', 'id', id)
706
- const localVarPath = `/models/{id}`
707
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
708
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
709
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
710
- let baseOptions;
711
- if (configuration) {
712
- baseOptions = configuration.baseOptions;
713
- }
714
-
715
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
716
- const localVarHeaderParameter = {} as any;
717
- const localVarQueryParameter = {} as any;
718
-
719
-
720
-
721
- setSearchParams(localVarUrlObj, localVarQueryParameter);
722
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
724
-
725
- return {
726
- url: toPathString(localVarUrlObj),
727
- options: localVarRequestOptions,
728
- };
729
- },
730
- /**
731
- *
732
- * @param {*} [options] Override http request option.
733
- * @throws {RequiredError}
734
- */
735
- modelManagementControllerGetAllModels: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
736
- const localVarPath = `/models`;
737
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
738
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
739
- let baseOptions;
740
- if (configuration) {
741
- baseOptions = configuration.baseOptions;
742
- }
743
-
744
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
745
- const localVarHeaderParameter = {} as any;
746
- const localVarQueryParameter = {} as any;
747
-
748
-
749
-
750
- setSearchParams(localVarUrlObj, localVarQueryParameter);
751
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
752
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
753
-
754
- return {
755
- url: toPathString(localVarUrlObj),
756
- options: localVarRequestOptions,
757
- };
758
- },
759
- /**
760
- *
761
- * @param {string} id
762
- * @param {CreateMachineModelDto} createMachineModelDto
763
- * @param {*} [options] Override http request option.
764
- * @throws {RequiredError}
765
- */
766
- modelManagementControllerUpdateMachineModel: async (id: string, createMachineModelDto: CreateMachineModelDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
767
- // verify required parameter 'id' is not null or undefined
768
- assertParamExists('modelManagementControllerUpdateMachineModel', 'id', id)
769
- // verify required parameter 'createMachineModelDto' is not null or undefined
770
- assertParamExists('modelManagementControllerUpdateMachineModel', 'createMachineModelDto', createMachineModelDto)
771
- const localVarPath = `/models/{id}`
772
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
773
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
774
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
775
- let baseOptions;
776
- if (configuration) {
777
- baseOptions = configuration.baseOptions;
778
- }
779
-
780
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
781
- const localVarHeaderParameter = {} as any;
782
- const localVarQueryParameter = {} as any;
783
-
784
-
785
-
786
- localVarHeaderParameter['Content-Type'] = 'application/json';
787
-
788
- setSearchParams(localVarUrlObj, localVarQueryParameter);
789
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
790
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
791
- localVarRequestOptions.data = serializeDataIfNeeded(createMachineModelDto, localVarRequestOptions, configuration)
792
-
793
- return {
794
- url: toPathString(localVarUrlObj),
795
- options: localVarRequestOptions,
796
- };
797
- },
798
- }
799
- };
800
-
801
- /**
802
- * ModelsApi - functional programming interface
803
- * @export
804
- */
805
- export const ModelsApiFp = function(configuration?: Configuration) {
806
- const localVarAxiosParamCreator = ModelsApiAxiosParamCreator(configuration)
807
- return {
808
- /**
809
- *
810
- * @param {CreateMachineModelDto} createMachineModelDto
811
- * @param {*} [options] Override http request option.
812
- * @throws {RequiredError}
813
- */
814
- async modelManagementControllerCreateNewModel(createMachineModelDto: CreateMachineModelDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
815
- const localVarAxiosArgs = await localVarAxiosParamCreator.modelManagementControllerCreateNewModel(createMachineModelDto, options);
816
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
817
- const localVarOperationServerBasePath = operationServerMap['ModelsApi.modelManagementControllerCreateNewModel']?.[localVarOperationServerIndex]?.url;
818
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
819
- },
820
- /**
821
- *
822
- * @param {string} id
823
- * @param {*} [options] Override http request option.
824
- * @throws {RequiredError}
825
- */
826
- async modelManagementControllerDeleteModel(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
827
- const localVarAxiosArgs = await localVarAxiosParamCreator.modelManagementControllerDeleteModel(id, options);
828
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
829
- const localVarOperationServerBasePath = operationServerMap['ModelsApi.modelManagementControllerDeleteModel']?.[localVarOperationServerIndex]?.url;
830
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
831
- },
832
- /**
833
- *
834
- * @param {*} [options] Override http request option.
835
- * @throws {RequiredError}
836
- */
837
- async modelManagementControllerGetAllModels(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
838
- const localVarAxiosArgs = await localVarAxiosParamCreator.modelManagementControllerGetAllModels(options);
839
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
840
- const localVarOperationServerBasePath = operationServerMap['ModelsApi.modelManagementControllerGetAllModels']?.[localVarOperationServerIndex]?.url;
841
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
842
- },
843
- /**
844
- *
845
- * @param {string} id
846
- * @param {CreateMachineModelDto} createMachineModelDto
847
- * @param {*} [options] Override http request option.
848
- * @throws {RequiredError}
849
- */
850
- async modelManagementControllerUpdateMachineModel(id: string, createMachineModelDto: CreateMachineModelDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
851
- const localVarAxiosArgs = await localVarAxiosParamCreator.modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options);
852
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
853
- const localVarOperationServerBasePath = operationServerMap['ModelsApi.modelManagementControllerUpdateMachineModel']?.[localVarOperationServerIndex]?.url;
854
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
855
- },
856
- }
857
- };
858
-
859
- /**
860
- * ModelsApi - factory interface
861
- * @export
862
- */
863
- export const ModelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
864
- const localVarFp = ModelsApiFp(configuration)
865
- return {
866
- /**
867
- *
868
- * @param {CreateMachineModelDto} createMachineModelDto
869
- * @param {*} [options] Override http request option.
870
- * @throws {RequiredError}
871
- */
872
- modelManagementControllerCreateNewModel(createMachineModelDto: CreateMachineModelDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
873
- return localVarFp.modelManagementControllerCreateNewModel(createMachineModelDto, options).then((request) => request(axios, basePath));
874
- },
875
- /**
876
- *
877
- * @param {string} id
878
- * @param {*} [options] Override http request option.
879
- * @throws {RequiredError}
880
- */
881
- modelManagementControllerDeleteModel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
882
- return localVarFp.modelManagementControllerDeleteModel(id, options).then((request) => request(axios, basePath));
883
- },
884
- /**
885
- *
886
- * @param {*} [options] Override http request option.
887
- * @throws {RequiredError}
888
- */
889
- modelManagementControllerGetAllModels(options?: RawAxiosRequestConfig): AxiosPromise<void> {
890
- return localVarFp.modelManagementControllerGetAllModels(options).then((request) => request(axios, basePath));
891
- },
892
- /**
893
- *
894
- * @param {string} id
895
- * @param {CreateMachineModelDto} createMachineModelDto
896
- * @param {*} [options] Override http request option.
897
- * @throws {RequiredError}
898
- */
899
- modelManagementControllerUpdateMachineModel(id: string, createMachineModelDto: CreateMachineModelDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
900
- return localVarFp.modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options).then((request) => request(axios, basePath));
901
- },
902
- };
903
- };
904
-
905
- /**
906
- * ModelsApi - object-oriented interface
907
- * @export
908
- * @class ModelsApi
909
- * @extends {BaseAPI}
910
- */
911
- export class ModelsApi extends BaseAPI {
912
- /**
913
- *
914
- * @param {CreateMachineModelDto} createMachineModelDto
915
- * @param {*} [options] Override http request option.
916
- * @throws {RequiredError}
917
- * @memberof ModelsApi
918
- */
919
- public modelManagementControllerCreateNewModel(createMachineModelDto: CreateMachineModelDto, options?: RawAxiosRequestConfig) {
920
- return ModelsApiFp(this.configuration).modelManagementControllerCreateNewModel(createMachineModelDto, options).then((request) => request(this.axios, this.basePath));
921
- }
922
-
923
- /**
924
- *
925
- * @param {string} id
926
- * @param {*} [options] Override http request option.
927
- * @throws {RequiredError}
928
- * @memberof ModelsApi
929
- */
930
- public modelManagementControllerDeleteModel(id: string, options?: RawAxiosRequestConfig) {
931
- return ModelsApiFp(this.configuration).modelManagementControllerDeleteModel(id, options).then((request) => request(this.axios, this.basePath));
932
- }
933
-
934
- /**
935
- *
936
- * @param {*} [options] Override http request option.
937
- * @throws {RequiredError}
938
- * @memberof ModelsApi
939
- */
940
- public modelManagementControllerGetAllModels(options?: RawAxiosRequestConfig) {
941
- return ModelsApiFp(this.configuration).modelManagementControllerGetAllModels(options).then((request) => request(this.axios, this.basePath));
942
- }
943
-
944
- /**
945
- *
946
- * @param {string} id
947
- * @param {CreateMachineModelDto} createMachineModelDto
948
- * @param {*} [options] Override http request option.
949
- * @throws {RequiredError}
950
- * @memberof ModelsApi
951
- */
952
- public modelManagementControllerUpdateMachineModel(id: string, createMachineModelDto: CreateMachineModelDto, options?: RawAxiosRequestConfig) {
953
- return ModelsApiFp(this.configuration).modelManagementControllerUpdateMachineModel(id, createMachineModelDto, options).then((request) => request(this.axios, this.basePath));
541
+ public agentManagementManifestControllerGetManifest(options?: RawAxiosRequestConfig) {
542
+ return ManifestApiFp(this.configuration).agentManagementManifestControllerGetManifest(options).then((request) => request(this.axios, this.basePath));
954
543
  }
955
544
  }
956
545