@mlhub/models-ts-sdk 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -4
- package/README.md +2 -2
- package/dist/apis/ModelsApi.d.ts +13 -1
- package/dist/apis/ModelsApi.js +47 -0
- package/dist/models/CreateModelMetadataBody.d.ts +2 -171
- package/dist/models/CreateModelMetadataBody.js +0 -56
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +42 -0
- package/src/models/CreateModelMetadataBody.ts +1 -234
- package/src/models/index.ts +0 -4
- package/dist/models/Accelerator.d.ts +0 -46
- package/dist/models/Accelerator.js +0 -48
- package/dist/models/HardwareRequirements.d.ts +0 -52
- package/dist/models/HardwareRequirements.js +0 -50
- package/dist/models/ModelIO.d.ts +0 -33
- package/dist/models/ModelIO.js +0 -43
- package/dist/models/SystemRequirement.d.ts +0 -33
- package/dist/models/SystemRequirement.js +0 -42
- package/src/models/Accelerator.ts +0 -87
- package/src/models/HardwareRequirements.ts +0 -95
- package/src/models/ModelIO.ts +0 -64
- package/src/models/SystemRequirement.ts +0 -64
|
@@ -14,14 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
import {
|
|
17
|
-
HardwareRequirements,
|
|
18
|
-
HardwareRequirementsFromJSON,
|
|
19
|
-
HardwareRequirementsFromJSONTyped,
|
|
20
|
-
HardwareRequirementsToJSON,
|
|
21
|
-
ModelIO,
|
|
22
|
-
ModelIOFromJSON,
|
|
23
|
-
ModelIOFromJSONTyped,
|
|
24
|
-
ModelIOToJSON,
|
|
25
17
|
Task,
|
|
26
18
|
TaskFromJSON,
|
|
27
19
|
TaskFromJSONTyped,
|
|
@@ -34,96 +26,12 @@ import {
|
|
|
34
26
|
* @interface CreateModelMetadataBody
|
|
35
27
|
*/
|
|
36
28
|
export interface CreateModelMetadataBody {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {any}
|
|
40
|
-
* @memberof CreateModelMetadataBody
|
|
41
|
-
*/
|
|
42
|
-
annotations?: any | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof CreateModelMetadataBody
|
|
47
|
-
*/
|
|
48
|
-
bias_evaluation_score?: number | null;
|
|
49
29
|
/**
|
|
50
30
|
*
|
|
51
31
|
* @type {string}
|
|
52
32
|
* @memberof CreateModelMetadataBody
|
|
53
33
|
*/
|
|
54
34
|
description?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {boolean}
|
|
58
|
-
* @memberof CreateModelMetadataBody
|
|
59
|
-
*/
|
|
60
|
-
edge_optimized?: boolean | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Array<string>}
|
|
64
|
-
* @memberof CreateModelMetadataBody
|
|
65
|
-
*/
|
|
66
|
-
finetuning_datasets?: Array<string> | null;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof CreateModelMetadataBody
|
|
71
|
-
*/
|
|
72
|
-
image?: string | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {boolean}
|
|
76
|
-
* @memberof CreateModelMetadataBody
|
|
77
|
-
*/
|
|
78
|
-
inference_distributed?: boolean | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {HardwareRequirements}
|
|
82
|
-
* @memberof CreateModelMetadataBody
|
|
83
|
-
*/
|
|
84
|
-
inference_hardware?: HardwareRequirements;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {number}
|
|
88
|
-
* @memberof CreateModelMetadataBody
|
|
89
|
-
*/
|
|
90
|
-
inference_max_compute_utilization_percentage?: number | null;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof CreateModelMetadataBody
|
|
95
|
-
*/
|
|
96
|
-
inference_max_energy_consumption_watts?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
* Inference performance fields
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof CreateModelMetadataBody
|
|
101
|
-
*/
|
|
102
|
-
inference_max_latency_ms?: number | null;
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {number}
|
|
106
|
-
* @memberof CreateModelMetadataBody
|
|
107
|
-
*/
|
|
108
|
-
inference_max_memory_usage_mb?: number | null;
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @type {number}
|
|
112
|
-
* @memberof CreateModelMetadataBody
|
|
113
|
-
*/
|
|
114
|
-
inference_min_throughput?: number | null;
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof CreateModelMetadataBody
|
|
119
|
-
*/
|
|
120
|
-
inference_precision?: string | null;
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
* @type {Array<string>}
|
|
124
|
-
* @memberof CreateModelMetadataBody
|
|
125
|
-
*/
|
|
126
|
-
inference_software_dependencies?: Array<string> | null;
|
|
127
35
|
/**
|
|
128
36
|
*
|
|
129
37
|
* @type {Array<string>}
|
|
@@ -136,30 +44,12 @@ export interface CreateModelMetadataBody {
|
|
|
136
44
|
* @memberof CreateModelMetadataBody
|
|
137
45
|
*/
|
|
138
46
|
license?: string | null;
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @type {Array<ModelIO>}
|
|
142
|
-
* @memberof CreateModelMetadataBody
|
|
143
|
-
*/
|
|
144
|
-
model_inputs?: Array<ModelIO> | null;
|
|
145
|
-
/**
|
|
146
|
-
*
|
|
147
|
-
* @type {Array<ModelIO>}
|
|
148
|
-
* @memberof CreateModelMetadataBody
|
|
149
|
-
*/
|
|
150
|
-
model_outputs?: Array<ModelIO> | null;
|
|
151
47
|
/**
|
|
152
48
|
*
|
|
153
49
|
* @type {string}
|
|
154
50
|
* @memberof CreateModelMetadataBody
|
|
155
51
|
*/
|
|
156
52
|
model_type?: string | null;
|
|
157
|
-
/**
|
|
158
|
-
* Architecture fields
|
|
159
|
-
* @type {boolean}
|
|
160
|
-
* @memberof CreateModelMetadataBody
|
|
161
|
-
*/
|
|
162
|
-
multi_modal?: boolean | null;
|
|
163
53
|
/**
|
|
164
54
|
*
|
|
165
55
|
* @type {string}
|
|
@@ -168,89 +58,22 @@ export interface CreateModelMetadataBody {
|
|
|
168
58
|
name: string;
|
|
169
59
|
/**
|
|
170
60
|
*
|
|
171
|
-
* @type {boolean}
|
|
172
|
-
* @memberof CreateModelMetadataBody
|
|
173
|
-
*/
|
|
174
|
-
pretrained?: boolean | null;
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
* @type {Array<string>}
|
|
178
|
-
* @memberof CreateModelMetadataBody
|
|
179
|
-
*/
|
|
180
|
-
pretraining_datasets?: Array<string> | null;
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @type {boolean}
|
|
184
|
-
* @memberof CreateModelMetadataBody
|
|
185
|
-
*/
|
|
186
|
-
pruned?: boolean | null;
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @type {boolean}
|
|
190
|
-
* @memberof CreateModelMetadataBody
|
|
191
|
-
*/
|
|
192
|
-
quantization_aware?: boolean | null;
|
|
193
|
-
/**
|
|
194
|
-
* Regulatory and Compliance Fields
|
|
195
|
-
* A vector or strings that represent regulatory standards. Ex HIPPA
|
|
196
61
|
* @type {Array<string>}
|
|
197
62
|
* @memberof CreateModelMetadataBody
|
|
198
63
|
*/
|
|
199
64
|
regulatory?: Array<string> | null;
|
|
200
65
|
/**
|
|
201
66
|
*
|
|
202
|
-
* @type {boolean}
|
|
203
|
-
* @memberof CreateModelMetadataBody
|
|
204
|
-
*/
|
|
205
|
-
slimmed?: boolean | null;
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {boolean}
|
|
209
|
-
* @memberof CreateModelMetadataBody
|
|
210
|
-
*/
|
|
211
|
-
supports_quantization?: boolean | null;
|
|
212
|
-
/**
|
|
213
|
-
* Arbitrary labels
|
|
214
67
|
* @type {Array<string>}
|
|
215
68
|
* @memberof CreateModelMetadataBody
|
|
216
69
|
*/
|
|
217
70
|
tags?: Array<string> | null;
|
|
218
71
|
/**
|
|
219
|
-
*
|
|
72
|
+
*
|
|
220
73
|
* @type {Array<Task>}
|
|
221
74
|
* @memberof CreateModelMetadataBody
|
|
222
75
|
*/
|
|
223
76
|
task_types?: Array<Task> | null;
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {boolean}
|
|
227
|
-
* @memberof CreateModelMetadataBody
|
|
228
|
-
*/
|
|
229
|
-
training_distributed?: boolean | null;
|
|
230
|
-
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {HardwareRequirements}
|
|
233
|
-
* @memberof CreateModelMetadataBody
|
|
234
|
-
*/
|
|
235
|
-
training_hardware?: HardwareRequirements;
|
|
236
|
-
/**
|
|
237
|
-
* Training performance fields
|
|
238
|
-
* @type {number}
|
|
239
|
-
* @memberof CreateModelMetadataBody
|
|
240
|
-
*/
|
|
241
|
-
training_max_energy_consumption_watts?: number | null;
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @type {string}
|
|
245
|
-
* @memberof CreateModelMetadataBody
|
|
246
|
-
*/
|
|
247
|
-
training_precision?: string | null;
|
|
248
|
-
/**
|
|
249
|
-
* Training-related Fields
|
|
250
|
-
* @type {number}
|
|
251
|
-
* @memberof CreateModelMetadataBody
|
|
252
|
-
*/
|
|
253
|
-
training_time?: number | null;
|
|
254
77
|
}
|
|
255
78
|
|
|
256
79
|
export function CreateModelMetadataBodyFromJSON(json: any): CreateModelMetadataBody {
|
|
@@ -263,42 +86,14 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
263
86
|
}
|
|
264
87
|
return {
|
|
265
88
|
|
|
266
|
-
'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
|
|
267
|
-
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
268
89
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
269
|
-
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
270
|
-
'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
271
|
-
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
272
|
-
'inference_distributed': !exists(json, 'inference_distributed') ? undefined : json['inference_distributed'],
|
|
273
|
-
'inference_hardware': !exists(json, 'inference_hardware') ? undefined : HardwareRequirementsFromJSON(json['inference_hardware']),
|
|
274
|
-
'inference_max_compute_utilization_percentage': !exists(json, 'inference_max_compute_utilization_percentage') ? undefined : json['inference_max_compute_utilization_percentage'],
|
|
275
|
-
'inference_max_energy_consumption_watts': !exists(json, 'inference_max_energy_consumption_watts') ? undefined : json['inference_max_energy_consumption_watts'],
|
|
276
|
-
'inference_max_latency_ms': !exists(json, 'inference_max_latency_ms') ? undefined : json['inference_max_latency_ms'],
|
|
277
|
-
'inference_max_memory_usage_mb': !exists(json, 'inference_max_memory_usage_mb') ? undefined : json['inference_max_memory_usage_mb'],
|
|
278
|
-
'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
279
|
-
'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
280
|
-
'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
281
90
|
'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
|
|
282
91
|
'license': !exists(json, 'license') ? undefined : json['license'],
|
|
283
|
-
'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
|
|
284
|
-
'model_outputs': !exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : (json['model_outputs'] as Array<any>).map(ModelIOFromJSON)),
|
|
285
92
|
'model_type': !exists(json, 'model_type') ? undefined : json['model_type'],
|
|
286
|
-
'multi_modal': !exists(json, 'multi_modal') ? undefined : json['multi_modal'],
|
|
287
93
|
'name': json['name'],
|
|
288
|
-
'pretrained': !exists(json, 'pretrained') ? undefined : json['pretrained'],
|
|
289
|
-
'pretraining_datasets': !exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
|
|
290
|
-
'pruned': !exists(json, 'pruned') ? undefined : json['pruned'],
|
|
291
|
-
'quantization_aware': !exists(json, 'quantization_aware') ? undefined : json['quantization_aware'],
|
|
292
94
|
'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
|
|
293
|
-
'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
|
|
294
|
-
'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
295
95
|
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
296
96
|
'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
|
|
297
|
-
'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
298
|
-
'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
|
|
299
|
-
'training_max_energy_consumption_watts': !exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
|
|
300
|
-
'training_precision': !exists(json, 'training_precision') ? undefined : json['training_precision'],
|
|
301
|
-
'training_time': !exists(json, 'training_time') ? undefined : json['training_time'],
|
|
302
97
|
};
|
|
303
98
|
}
|
|
304
99
|
|
|
@@ -311,42 +106,14 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
|
|
|
311
106
|
}
|
|
312
107
|
return {
|
|
313
108
|
|
|
314
|
-
'annotations': value.annotations,
|
|
315
|
-
'bias_evaluation_score': value.bias_evaluation_score,
|
|
316
109
|
'description': value.description,
|
|
317
|
-
'edge_optimized': value.edge_optimized,
|
|
318
|
-
'finetuning_datasets': value.finetuning_datasets,
|
|
319
|
-
'image': value.image,
|
|
320
|
-
'inference_distributed': value.inference_distributed,
|
|
321
|
-
'inference_hardware': HardwareRequirementsToJSON(value.inference_hardware),
|
|
322
|
-
'inference_max_compute_utilization_percentage': value.inference_max_compute_utilization_percentage,
|
|
323
|
-
'inference_max_energy_consumption_watts': value.inference_max_energy_consumption_watts,
|
|
324
|
-
'inference_max_latency_ms': value.inference_max_latency_ms,
|
|
325
|
-
'inference_max_memory_usage_mb': value.inference_max_memory_usage_mb,
|
|
326
|
-
'inference_min_throughput': value.inference_min_throughput,
|
|
327
|
-
'inference_precision': value.inference_precision,
|
|
328
|
-
'inference_software_dependencies': value.inference_software_dependencies,
|
|
329
110
|
'libraries': value.libraries,
|
|
330
111
|
'license': value.license,
|
|
331
|
-
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
|
|
332
|
-
'model_outputs': value.model_outputs === undefined ? undefined : (value.model_outputs === null ? null : (value.model_outputs as Array<any>).map(ModelIOToJSON)),
|
|
333
112
|
'model_type': value.model_type,
|
|
334
|
-
'multi_modal': value.multi_modal,
|
|
335
113
|
'name': value.name,
|
|
336
|
-
'pretrained': value.pretrained,
|
|
337
|
-
'pretraining_datasets': value.pretraining_datasets,
|
|
338
|
-
'pruned': value.pruned,
|
|
339
|
-
'quantization_aware': value.quantization_aware,
|
|
340
114
|
'regulatory': value.regulatory,
|
|
341
|
-
'slimmed': value.slimmed,
|
|
342
|
-
'supports_quantization': value.supports_quantization,
|
|
343
115
|
'tags': value.tags,
|
|
344
116
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
|
|
345
|
-
'training_distributed': value.training_distributed,
|
|
346
|
-
'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
|
|
347
|
-
'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
|
|
348
|
-
'training_precision': value.training_precision,
|
|
349
|
-
'training_time': value.training_time,
|
|
350
117
|
};
|
|
351
118
|
}
|
|
352
119
|
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './Accelerator';
|
|
4
3
|
export * from './Artifact';
|
|
5
4
|
export * from './ArtifactIngestion';
|
|
6
5
|
export * from './ArtifactIngestionStatus';
|
|
@@ -24,7 +23,6 @@ export * from './GetModelByPlatformResponse';
|
|
|
24
23
|
export * from './GetModelIngestionResponse';
|
|
25
24
|
export * from './GetModelPublicationResponse';
|
|
26
25
|
export * from './GetModelResponse';
|
|
27
|
-
export * from './HardwareRequirements';
|
|
28
26
|
export * from './IngestArtifactRequest';
|
|
29
27
|
export * from './IngestModelArtifactResponse';
|
|
30
28
|
export * from './ListModelArtifactResponse';
|
|
@@ -37,7 +35,6 @@ export * from './ListPlatformsResponse';
|
|
|
37
35
|
export * from './ListTasksResponse';
|
|
38
36
|
export * from './Locator';
|
|
39
37
|
export * from './ModelArtifact';
|
|
40
|
-
export * from './ModelIO';
|
|
41
38
|
export * from './ModelMetadata';
|
|
42
39
|
export * from './NotFoundResponse';
|
|
43
40
|
export * from './Platform';
|
|
@@ -45,5 +42,4 @@ export * from './PlatformDetails';
|
|
|
45
42
|
export * from './PublishArtifactRequest';
|
|
46
43
|
export * from './PublishModelArtifactResponse';
|
|
47
44
|
export * from './ServerErrorResponse';
|
|
48
|
-
export * from './SystemRequirement';
|
|
49
45
|
export * from './Task';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MLHub Models API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.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 { SystemRequirement } from './';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Accelerator
|
|
17
|
-
*/
|
|
18
|
-
export interface Accelerator {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Accelerator
|
|
23
|
-
*/
|
|
24
|
-
accelerator_type: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof Accelerator
|
|
29
|
-
*/
|
|
30
|
-
cores?: number | null;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof Accelerator
|
|
35
|
-
*/
|
|
36
|
-
memory_gb?: number | null;
|
|
37
|
-
/**
|
|
38
|
-
* Firmware and software
|
|
39
|
-
* @type {Array<SystemRequirement>}
|
|
40
|
-
* @memberof Accelerator
|
|
41
|
-
*/
|
|
42
|
-
system_requirements: Array<SystemRequirement>;
|
|
43
|
-
}
|
|
44
|
-
export declare function AcceleratorFromJSON(json: any): Accelerator;
|
|
45
|
-
export declare function AcceleratorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Accelerator;
|
|
46
|
-
export declare function AcceleratorToJSON(value?: Accelerator | null): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* MLHub Models API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AcceleratorFromJSON = AcceleratorFromJSON;
|
|
17
|
-
exports.AcceleratorFromJSONTyped = AcceleratorFromJSONTyped;
|
|
18
|
-
exports.AcceleratorToJSON = AcceleratorToJSON;
|
|
19
|
-
var runtime_1 = require("../runtime");
|
|
20
|
-
var _1 = require("./");
|
|
21
|
-
function AcceleratorFromJSON(json) {
|
|
22
|
-
return AcceleratorFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
function AcceleratorFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
-
if ((json === undefined) || (json === null)) {
|
|
26
|
-
return json;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
'accelerator_type': json['accelerator_type'],
|
|
30
|
-
'cores': !(0, runtime_1.exists)(json, 'cores') ? undefined : json['cores'],
|
|
31
|
-
'memory_gb': !(0, runtime_1.exists)(json, 'memory_gb') ? undefined : json['memory_gb'],
|
|
32
|
-
'system_requirements': (json['system_requirements'].map(_1.SystemRequirementFromJSON)),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function AcceleratorToJSON(value) {
|
|
36
|
-
if (value === undefined) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if (value === null) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'accelerator_type': value.accelerator_type,
|
|
44
|
-
'cores': value.cores,
|
|
45
|
-
'memory_gb': value.memory_gb,
|
|
46
|
-
'system_requirements': (value.system_requirements.map(_1.SystemRequirementToJSON)),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MLHub Models API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.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 { Accelerator } from './';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface HardwareRequirements
|
|
17
|
-
*/
|
|
18
|
-
export interface HardwareRequirements {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<Accelerator>}
|
|
22
|
-
* @memberof HardwareRequirements
|
|
23
|
-
*/
|
|
24
|
-
accelerators?: Array<Accelerator> | null;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Array<string>}
|
|
28
|
-
* @memberof HardwareRequirements
|
|
29
|
-
*/
|
|
30
|
-
architectures?: Array<string> | null;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof HardwareRequirements
|
|
35
|
-
*/
|
|
36
|
-
cpus?: number | null;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof HardwareRequirements
|
|
41
|
-
*/
|
|
42
|
-
disk_gb?: number | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof HardwareRequirements
|
|
47
|
-
*/
|
|
48
|
-
memory_gb?: number | null;
|
|
49
|
-
}
|
|
50
|
-
export declare function HardwareRequirementsFromJSON(json: any): HardwareRequirements;
|
|
51
|
-
export declare function HardwareRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HardwareRequirements;
|
|
52
|
-
export declare function HardwareRequirementsToJSON(value?: HardwareRequirements | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* MLHub Models API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HardwareRequirementsFromJSON = HardwareRequirementsFromJSON;
|
|
17
|
-
exports.HardwareRequirementsFromJSONTyped = HardwareRequirementsFromJSONTyped;
|
|
18
|
-
exports.HardwareRequirementsToJSON = HardwareRequirementsToJSON;
|
|
19
|
-
var runtime_1 = require("../runtime");
|
|
20
|
-
var _1 = require("./");
|
|
21
|
-
function HardwareRequirementsFromJSON(json) {
|
|
22
|
-
return HardwareRequirementsFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
function HardwareRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
-
if ((json === undefined) || (json === null)) {
|
|
26
|
-
return json;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
'accelerators': !(0, runtime_1.exists)(json, 'accelerators') ? undefined : (json['accelerators'] === null ? null : json['accelerators'].map(_1.AcceleratorFromJSON)),
|
|
30
|
-
'architectures': !(0, runtime_1.exists)(json, 'architectures') ? undefined : json['architectures'],
|
|
31
|
-
'cpus': !(0, runtime_1.exists)(json, 'cpus') ? undefined : json['cpus'],
|
|
32
|
-
'disk_gb': !(0, runtime_1.exists)(json, 'disk_gb') ? undefined : json['disk_gb'],
|
|
33
|
-
'memory_gb': !(0, runtime_1.exists)(json, 'memory_gb') ? undefined : json['memory_gb'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function HardwareRequirementsToJSON(value) {
|
|
37
|
-
if (value === undefined) {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
if (value === null) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'accelerators': value.accelerators === undefined ? undefined : (value.accelerators === null ? null : value.accelerators.map(_1.AcceleratorToJSON)),
|
|
45
|
-
'architectures': value.architectures,
|
|
46
|
-
'cpus': value.cpus,
|
|
47
|
-
'disk_gb': value.disk_gb,
|
|
48
|
-
'memory_gb': value.memory_gb,
|
|
49
|
-
};
|
|
50
|
-
}
|
package/dist/models/ModelIO.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MLHub Models API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ModelIO
|
|
16
|
-
*/
|
|
17
|
-
export interface ModelIO {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ModelIO
|
|
22
|
-
*/
|
|
23
|
-
data_type?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<number>}
|
|
27
|
-
* @memberof ModelIO
|
|
28
|
-
*/
|
|
29
|
-
shape?: Array<number> | null;
|
|
30
|
-
}
|
|
31
|
-
export declare function ModelIOFromJSON(json: any): ModelIO;
|
|
32
|
-
export declare function ModelIOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelIO;
|
|
33
|
-
export declare function ModelIOToJSON(value?: ModelIO | null): any;
|
package/dist/models/ModelIO.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* MLHub Models API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ModelIOFromJSON = ModelIOFromJSON;
|
|
17
|
-
exports.ModelIOFromJSONTyped = ModelIOFromJSONTyped;
|
|
18
|
-
exports.ModelIOToJSON = ModelIOToJSON;
|
|
19
|
-
var runtime_1 = require("../runtime");
|
|
20
|
-
function ModelIOFromJSON(json) {
|
|
21
|
-
return ModelIOFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
function ModelIOFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if ((json === undefined) || (json === null)) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'data_type': !(0, runtime_1.exists)(json, 'data_type') ? undefined : json['data_type'],
|
|
29
|
-
'shape': !(0, runtime_1.exists)(json, 'shape') ? undefined : json['shape'],
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function ModelIOToJSON(value) {
|
|
33
|
-
if (value === undefined) {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
if (value === null) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'data_type': value.data_type,
|
|
41
|
-
'shape': value.shape,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MLHub Models API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SystemRequirement
|
|
16
|
-
*/
|
|
17
|
-
export interface SystemRequirement {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SystemRequirement
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SystemRequirement
|
|
28
|
-
*/
|
|
29
|
-
version: string;
|
|
30
|
-
}
|
|
31
|
-
export declare function SystemRequirementFromJSON(json: any): SystemRequirement;
|
|
32
|
-
export declare function SystemRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemRequirement;
|
|
33
|
-
export declare function SystemRequirementToJSON(value?: SystemRequirement | null): any;
|