@mlhub/models-ts-sdk 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @mlhub/models-ts-sdk@0.3.0
1
+ ## @mlhub/models-ts-sdk@0.5.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). 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 @mlhub/models-ts-sdk@0.3.0 --save
39
+ npm install @mlhub/models-ts-sdk@0.5.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -19,6 +19,7 @@ export interface DiscoverModelsRequest {
19
19
  limit?: number;
20
20
  cursor?: string;
21
21
  includeCount?: boolean;
22
+ includeGlobalModels?: boolean;
22
23
  }
23
24
  export interface GetModelByAuthorAndNameRequest {
24
25
  name: string;
@@ -70,19 +71,11 @@ export declare class ModelsApi extends runtime.BaseAPI {
70
71
  */
71
72
  ingestCanonicalModel(requestParameters: IngestCanonicalModelRequest, initOverrides?: RequestInit): Promise<IngestModelArtifactResponse>;
72
73
  /**
73
- * List all models
74
- */
75
- listModelsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<ListModelsResponse>>;
76
- /**
77
- * List all models
78
- */
79
- listModels(initOverrides?: RequestInit): Promise<ListModelsResponse>;
80
- /**
81
- * List models by author
74
+ * List models by author in the current tenant
82
75
  */
83
76
  listModelsByAuthorRaw(requestParameters: ListModelsByAuthorRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ListModelsResponse>>;
84
77
  /**
85
- * List models by author
78
+ * List models by author in the current tenant
86
79
  */
87
80
  listModelsByAuthor(requestParameters: ListModelsByAuthorRequest, initOverrides?: RequestInit): Promise<ListModelsResponse>;
88
81
  }
@@ -143,6 +143,9 @@ var ModelsApi = /** @class */ (function (_super) {
143
143
  if (requestParameters.includeCount !== undefined) {
144
144
  queryParameters['include_count'] = requestParameters.includeCount;
145
145
  }
146
+ if (requestParameters.includeGlobalModels !== undefined) {
147
+ queryParameters['include_global_models'] = requestParameters.includeGlobalModels;
148
+ }
146
149
  headerParameters = {};
147
150
  headerParameters['Content-Type'] = 'application/json';
148
151
  return [4 /*yield*/, this.request({
@@ -279,48 +282,7 @@ var ModelsApi = /** @class */ (function (_super) {
279
282
  });
280
283
  };
281
284
  /**
282
- * List all models
283
- */
284
- ModelsApi.prototype.listModelsRaw = function (initOverrides) {
285
- return __awaiter(this, void 0, void 0, function () {
286
- var queryParameters, headerParameters, response;
287
- return __generator(this, function (_a) {
288
- switch (_a.label) {
289
- case 0:
290
- queryParameters = {};
291
- headerParameters = {};
292
- return [4 /*yield*/, this.request({
293
- path: "/models-api/models",
294
- method: 'GET',
295
- headers: headerParameters,
296
- query: queryParameters,
297
- }, initOverrides)];
298
- case 1:
299
- response = _a.sent();
300
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ListModelsResponseFromJSON)(jsonValue); })];
301
- }
302
- });
303
- });
304
- };
305
- /**
306
- * List all models
307
- */
308
- ModelsApi.prototype.listModels = function (initOverrides) {
309
- return __awaiter(this, void 0, void 0, function () {
310
- var response;
311
- return __generator(this, function (_a) {
312
- switch (_a.label) {
313
- case 0: return [4 /*yield*/, this.listModelsRaw(initOverrides)];
314
- case 1:
315
- response = _a.sent();
316
- return [4 /*yield*/, response.value()];
317
- case 2: return [2 /*return*/, _a.sent()];
318
- }
319
- });
320
- });
321
- };
322
- /**
323
- * List models by author
285
+ * List models by author in the current tenant
324
286
  */
325
287
  ModelsApi.prototype.listModelsByAuthorRaw = function (requestParameters, initOverrides) {
326
288
  return __awaiter(this, void 0, void 0, function () {
@@ -347,7 +309,7 @@ var ModelsApi = /** @class */ (function (_super) {
347
309
  });
348
310
  };
349
311
  /**
350
- * List models by author
312
+ * List models by author in the current tenant
351
313
  */
352
314
  ModelsApi.prototype.listModelsByAuthor = function (requestParameters, initOverrides) {
353
315
  return __awaiter(this, void 0, void 0, function () {
@@ -22,12 +22,6 @@ export interface CreateModelMetadataBody {
22
22
  * @memberof CreateModelMetadataBody
23
23
  */
24
24
  annotations?: any | null;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof CreateModelMetadataBody
29
- */
30
- author?: string | null;
31
25
  /**
32
26
  *
33
27
  * @type {number}
@@ -106,12 +100,6 @@ export interface CreateModelMetadataBody {
106
100
  * @memberof CreateModelMetadataBody
107
101
  */
108
102
  inference_software_dependencies?: Array<string> | null;
109
- /**
110
- * Arbitrary labels
111
- * @type {Array<string>}
112
- * @memberof CreateModelMetadataBody
113
- */
114
- keywords?: Array<string> | null;
115
103
  /**
116
104
  *
117
105
  * @type {Array<string>}
@@ -153,7 +141,7 @@ export interface CreateModelMetadataBody {
153
141
  * @type {string}
154
142
  * @memberof CreateModelMetadataBody
155
143
  */
156
- name?: string | null;
144
+ name: string;
157
145
  /**
158
146
  *
159
147
  * @type {boolean}
@@ -198,17 +186,17 @@ export interface CreateModelMetadataBody {
198
186
  */
199
187
  supports_quantization?: boolean | null;
200
188
  /**
201
- * Inference Fields
202
- * @type {Array<Task>}
189
+ * Arbitrary labels
190
+ * @type {Array<string>}
203
191
  * @memberof CreateModelMetadataBody
204
192
  */
205
- task_types?: Array<Task> | null;
193
+ tags?: Array<string> | null;
206
194
  /**
207
- *
208
- * @type {string}
195
+ * Inference Fields
196
+ * @type {Array<Task>}
209
197
  * @memberof CreateModelMetadataBody
210
198
  */
211
- tenant_id?: string | null;
199
+ task_types?: Array<Task> | null;
212
200
  /**
213
201
  *
214
202
  * @type {boolean}
@@ -27,7 +27,6 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
27
27
  }
28
28
  return {
29
29
  'annotations': !(0, runtime_1.exists)(json, 'annotations') ? undefined : json['annotations'],
30
- 'author': !(0, runtime_1.exists)(json, 'author') ? undefined : json['author'],
31
30
  'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
32
31
  'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
33
32
  'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
@@ -41,14 +40,13 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
41
40
  'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
42
41
  'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
43
42
  'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
44
- 'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
45
43
  'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
46
44
  'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
47
45
  'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
48
46
  'model_outputs': !(0, runtime_1.exists)(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : json['model_outputs'].map(_1.ModelIOFromJSON)),
49
47
  'model_type': !(0, runtime_1.exists)(json, 'model_type') ? undefined : json['model_type'],
50
48
  'multi_modal': !(0, runtime_1.exists)(json, 'multi_modal') ? undefined : json['multi_modal'],
51
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
49
+ 'name': json['name'],
52
50
  'pretrained': !(0, runtime_1.exists)(json, 'pretrained') ? undefined : json['pretrained'],
53
51
  'pretraining_datasets': !(0, runtime_1.exists)(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
54
52
  'pruned': !(0, runtime_1.exists)(json, 'pruned') ? undefined : json['pruned'],
@@ -56,8 +54,8 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
56
54
  'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
57
55
  'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
58
56
  'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
57
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
59
58
  'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
60
- 'tenant_id': !(0, runtime_1.exists)(json, 'tenant_id') ? undefined : json['tenant_id'],
61
59
  'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
62
60
  'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
63
61
  'training_max_energy_consumption_watts': !(0, runtime_1.exists)(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
@@ -74,7 +72,6 @@ function CreateModelMetadataBodyToJSON(value) {
74
72
  }
75
73
  return {
76
74
  'annotations': value.annotations,
77
- 'author': value.author,
78
75
  'bias_evaluation_score': value.bias_evaluation_score,
79
76
  'edge_optimized': value.edge_optimized,
80
77
  'finetuning_datasets': value.finetuning_datasets,
@@ -88,7 +85,6 @@ function CreateModelMetadataBodyToJSON(value) {
88
85
  'inference_min_throughput': value.inference_min_throughput,
89
86
  'inference_precision': value.inference_precision,
90
87
  'inference_software_dependencies': value.inference_software_dependencies,
91
- 'keywords': value.keywords,
92
88
  'libraries': value.libraries,
93
89
  'license': value.license,
94
90
  'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
@@ -103,8 +99,8 @@ function CreateModelMetadataBodyToJSON(value) {
103
99
  'regulatory': value.regulatory,
104
100
  'slimmed': value.slimmed,
105
101
  'supports_quantization': value.supports_quantization,
102
+ 'tags': value.tags,
106
103
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
107
- 'tenant_id': value.tenant_id,
108
104
  'training_distributed': value.training_distributed,
109
105
  'training_hardware': (0, _1.HardwareRequirementsToJSON)(value.training_hardware),
110
106
  'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
@@ -106,12 +106,6 @@ export interface DiscoveryCriterion {
106
106
  * @memberof DiscoveryCriterion
107
107
  */
108
108
  inference_software_dependencies?: Array<string> | null;
109
- /**
110
- * Arbitrary labels
111
- * @type {Array<string>}
112
- * @memberof DiscoveryCriterion
113
- */
114
- keywords?: Array<string> | null;
115
109
  /**
116
110
  *
117
111
  * @type {Array<string>}
@@ -197,6 +191,12 @@ export interface DiscoveryCriterion {
197
191
  * @memberof DiscoveryCriterion
198
192
  */
199
193
  supports_quantization?: boolean | null;
194
+ /**
195
+ * Arbitrary labels
196
+ * @type {Array<string>}
197
+ * @memberof DiscoveryCriterion
198
+ */
199
+ tags?: Array<string> | null;
200
200
  /**
201
201
  * Inference Fields
202
202
  * @type {Array<Task>}
@@ -41,7 +41,6 @@ function DiscoveryCriterionFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
42
42
  'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
43
43
  'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
44
- 'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
45
44
  'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
46
45
  'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
47
46
  'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
@@ -56,6 +55,7 @@ function DiscoveryCriterionFromJSONTyped(json, ignoreDiscriminator) {
56
55
  'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
57
56
  'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
58
57
  'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
58
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
59
59
  'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
60
60
  'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
61
61
  'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
@@ -88,7 +88,6 @@ function DiscoveryCriterionToJSON(value) {
88
88
  'inference_min_throughput': value.inference_min_throughput,
89
89
  'inference_precision': value.inference_precision,
90
90
  'inference_software_dependencies': value.inference_software_dependencies,
91
- 'keywords': value.keywords,
92
91
  'libraries': value.libraries,
93
92
  'license': value.license,
94
93
  'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
@@ -103,6 +102,7 @@ function DiscoveryCriterionToJSON(value) {
103
102
  'regulatory': value.regulatory,
104
103
  'slimmed': value.slimmed,
105
104
  'supports_quantization': value.supports_quantization,
105
+ 'tags': value.tags,
106
106
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
107
107
  'training_distributed': value.training_distributed,
108
108
  'training_hardware': (0, _1.HardwareRequirementsToJSON)(value.training_hardware),
@@ -9,19 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ArtifactType, ModelMetadata } from './';
13
12
  /**
14
13
  *
15
14
  * @export
16
15
  * @interface ModelArtifact
17
16
  */
18
17
  export interface ModelArtifact {
19
- /**
20
- *
21
- * @type {ArtifactType}
22
- * @memberof ModelArtifact
23
- */
24
- artifact_type: ArtifactType;
25
18
  /**
26
19
  *
27
20
  * @type {string}
@@ -40,12 +33,6 @@ export interface ModelArtifact {
40
33
  * @memberof ModelArtifact
41
34
  */
42
35
  last_modified: string;
43
- /**
44
- *
45
- * @type {ModelMetadata}
46
- * @memberof ModelArtifact
47
- */
48
- metadata?: ModelMetadata;
49
36
  }
50
37
  export declare function ModelArtifactFromJSON(json: any): ModelArtifact;
51
38
  export declare function ModelArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelArtifact;
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ModelArtifactFromJSON = ModelArtifactFromJSON;
17
17
  exports.ModelArtifactFromJSONTyped = ModelArtifactFromJSONTyped;
18
18
  exports.ModelArtifactToJSON = ModelArtifactToJSON;
19
- var runtime_1 = require("../runtime");
20
- var _1 = require("./");
21
19
  function ModelArtifactFromJSON(json) {
22
20
  return ModelArtifactFromJSONTyped(json, false);
23
21
  }
@@ -26,11 +24,9 @@ function ModelArtifactFromJSONTyped(json, ignoreDiscriminator) {
26
24
  return json;
27
25
  }
28
26
  return {
29
- 'artifact_type': (0, _1.ArtifactTypeFromJSON)(json['artifact_type']),
30
27
  'created_at': json['created_at'],
31
28
  'id': json['id'],
32
29
  'last_modified': json['last_modified'],
33
- 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, _1.ModelMetadataFromJSON)(json['metadata']),
34
30
  };
35
31
  }
36
32
  function ModelArtifactToJSON(value) {
@@ -41,10 +37,8 @@ function ModelArtifactToJSON(value) {
41
37
  return null;
42
38
  }
43
39
  return {
44
- 'artifact_type': (0, _1.ArtifactTypeToJSON)(value.artifact_type),
45
40
  'created_at': value.created_at,
46
41
  'id': value.id,
47
42
  'last_modified': value.last_modified,
48
- 'metadata': (0, _1.ModelMetadataToJSON)(value.metadata),
49
43
  };
50
44
  }
@@ -27,7 +27,7 @@ export interface ModelMetadata {
27
27
  * @type {string}
28
28
  * @memberof ModelMetadata
29
29
  */
30
- author?: string | null;
30
+ author: string;
31
31
  /**
32
32
  *
33
33
  * @type {number}
@@ -112,12 +112,6 @@ export interface ModelMetadata {
112
112
  * @memberof ModelMetadata
113
113
  */
114
114
  inference_software_dependencies?: Array<string> | null;
115
- /**
116
- * Arbitrary labels
117
- * @type {Array<string>}
118
- * @memberof ModelMetadata
119
- */
120
- keywords?: Array<string> | null;
121
115
  /**
122
116
  *
123
117
  * @type {Array<string>}
@@ -159,7 +153,7 @@ export interface ModelMetadata {
159
153
  * @type {string}
160
154
  * @memberof ModelMetadata
161
155
  */
162
- name?: string | null;
156
+ name: string;
163
157
  /**
164
158
  *
165
159
  * @type {boolean}
@@ -203,6 +197,12 @@ export interface ModelMetadata {
203
197
  * @memberof ModelMetadata
204
198
  */
205
199
  supports_quantization?: boolean | null;
200
+ /**
201
+ * Arbitrary labels
202
+ * @type {Array<string>}
203
+ * @memberof ModelMetadata
204
+ */
205
+ tags?: Array<string> | null;
206
206
  /**
207
207
  * Inference Fields
208
208
  * @type {Array<Task>}
@@ -214,7 +214,7 @@ export interface ModelMetadata {
214
214
  * @type {string}
215
215
  * @memberof ModelMetadata
216
216
  */
217
- tenant_id?: string | null;
217
+ tenant_id: string;
218
218
  /**
219
219
  *
220
220
  * @type {boolean}
@@ -27,7 +27,7 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
27
27
  }
28
28
  return {
29
29
  'annotations': !(0, runtime_1.exists)(json, 'annotations') ? undefined : json['annotations'],
30
- 'author': !(0, runtime_1.exists)(json, 'author') ? undefined : json['author'],
30
+ 'author': json['author'],
31
31
  'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
32
32
  'canonical': !(0, runtime_1.exists)(json, 'canonical') ? undefined : (0, _1.CanonicalFromJSON)(json['canonical']),
33
33
  'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
@@ -42,14 +42,13 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
43
43
  'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
44
44
  'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
45
- 'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
46
45
  'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
47
46
  'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
48
47
  'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
49
48
  'model_outputs': !(0, runtime_1.exists)(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : json['model_outputs'].map(_1.ModelIOFromJSON)),
50
49
  'model_type': !(0, runtime_1.exists)(json, 'model_type') ? undefined : json['model_type'],
51
50
  'multi_modal': !(0, runtime_1.exists)(json, 'multi_modal') ? undefined : json['multi_modal'],
52
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
51
+ 'name': json['name'],
53
52
  'pretrained': !(0, runtime_1.exists)(json, 'pretrained') ? undefined : json['pretrained'],
54
53
  'pretraining_datasets': !(0, runtime_1.exists)(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
55
54
  'pruned': !(0, runtime_1.exists)(json, 'pruned') ? undefined : json['pruned'],
@@ -57,8 +56,9 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
57
56
  'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
58
57
  'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
59
58
  'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
59
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
60
60
  'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
61
- 'tenant_id': !(0, runtime_1.exists)(json, 'tenant_id') ? undefined : json['tenant_id'],
61
+ 'tenant_id': json['tenant_id'],
62
62
  'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
63
63
  'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
64
64
  'training_max_energy_consumption_watts': !(0, runtime_1.exists)(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
@@ -90,7 +90,6 @@ function ModelMetadataToJSON(value) {
90
90
  'inference_min_throughput': value.inference_min_throughput,
91
91
  'inference_precision': value.inference_precision,
92
92
  'inference_software_dependencies': value.inference_software_dependencies,
93
- 'keywords': value.keywords,
94
93
  'libraries': value.libraries,
95
94
  'license': value.license,
96
95
  'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
@@ -105,6 +104,7 @@ function ModelMetadataToJSON(value) {
105
104
  'regulatory': value.regulatory,
106
105
  'slimmed': value.slimmed,
107
106
  'supports_quantization': value.supports_quantization,
107
+ 'tags': value.tags,
108
108
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
109
109
  'tenant_id': value.tenant_id,
110
110
  'training_distributed': value.training_distributed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlhub/models-ts-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "OpenAPI client for @mlhub/models-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -59,6 +59,7 @@ export interface DiscoverModelsRequest {
59
59
  limit?: number;
60
60
  cursor?: string;
61
61
  includeCount?: boolean;
62
+ includeGlobalModels?: boolean;
62
63
  }
63
64
 
64
65
  export interface GetModelByAuthorAndNameRequest {
@@ -137,6 +138,10 @@ export class ModelsApi extends runtime.BaseAPI {
137
138
  queryParameters['include_count'] = requestParameters.includeCount;
138
139
  }
139
140
 
141
+ if (requestParameters.includeGlobalModels !== undefined) {
142
+ queryParameters['include_global_models'] = requestParameters.includeGlobalModels;
143
+ }
144
+
140
145
  const headerParameters: runtime.HTTPHeaders = {};
141
146
 
142
147
  headerParameters['Content-Type'] = 'application/json';
@@ -240,33 +245,7 @@ export class ModelsApi extends runtime.BaseAPI {
240
245
  }
241
246
 
242
247
  /**
243
- * List all models
244
- */
245
- async listModelsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<ListModelsResponse>> {
246
- const queryParameters: any = {};
247
-
248
- const headerParameters: runtime.HTTPHeaders = {};
249
-
250
- const response = await this.request({
251
- path: `/models-api/models`,
252
- method: 'GET',
253
- headers: headerParameters,
254
- query: queryParameters,
255
- }, initOverrides);
256
-
257
- return new runtime.JSONApiResponse(response, (jsonValue) => ListModelsResponseFromJSON(jsonValue));
258
- }
259
-
260
- /**
261
- * List all models
262
- */
263
- async listModels(initOverrides?: RequestInit): Promise<ListModelsResponse> {
264
- const response = await this.listModelsRaw(initOverrides);
265
- return await response.value();
266
- }
267
-
268
- /**
269
- * List models by author
248
+ * List models by author in the current tenant
270
249
  */
271
250
  async listModelsByAuthorRaw(requestParameters: ListModelsByAuthorRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ListModelsResponse>> {
272
251
  if (requestParameters.author === null || requestParameters.author === undefined) {
@@ -288,7 +267,7 @@ export class ModelsApi extends runtime.BaseAPI {
288
267
  }
289
268
 
290
269
  /**
291
- * List models by author
270
+ * List models by author in the current tenant
292
271
  */
293
272
  async listModelsByAuthor(requestParameters: ListModelsByAuthorRequest, initOverrides?: RequestInit): Promise<ListModelsResponse> {
294
273
  const response = await this.listModelsByAuthorRaw(requestParameters, initOverrides);
@@ -40,12 +40,6 @@ export interface CreateModelMetadataBody {
40
40
  * @memberof CreateModelMetadataBody
41
41
  */
42
42
  annotations?: any | null;
43
- /**
44
- *
45
- * @type {string}
46
- * @memberof CreateModelMetadataBody
47
- */
48
- author?: string | null;
49
43
  /**
50
44
  *
51
45
  * @type {number}
@@ -124,12 +118,6 @@ export interface CreateModelMetadataBody {
124
118
  * @memberof CreateModelMetadataBody
125
119
  */
126
120
  inference_software_dependencies?: Array<string> | null;
127
- /**
128
- * Arbitrary labels
129
- * @type {Array<string>}
130
- * @memberof CreateModelMetadataBody
131
- */
132
- keywords?: Array<string> | null;
133
121
  /**
134
122
  *
135
123
  * @type {Array<string>}
@@ -171,7 +159,7 @@ export interface CreateModelMetadataBody {
171
159
  * @type {string}
172
160
  * @memberof CreateModelMetadataBody
173
161
  */
174
- name?: string | null;
162
+ name: string;
175
163
  /**
176
164
  *
177
165
  * @type {boolean}
@@ -216,17 +204,17 @@ export interface CreateModelMetadataBody {
216
204
  */
217
205
  supports_quantization?: boolean | null;
218
206
  /**
219
- * Inference Fields
220
- * @type {Array<Task>}
207
+ * Arbitrary labels
208
+ * @type {Array<string>}
221
209
  * @memberof CreateModelMetadataBody
222
210
  */
223
- task_types?: Array<Task> | null;
211
+ tags?: Array<string> | null;
224
212
  /**
225
- *
226
- * @type {string}
213
+ * Inference Fields
214
+ * @type {Array<Task>}
227
215
  * @memberof CreateModelMetadataBody
228
216
  */
229
- tenant_id?: string | null;
217
+ task_types?: Array<Task> | null;
230
218
  /**
231
219
  *
232
220
  * @type {boolean}
@@ -270,7 +258,6 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
270
258
  return {
271
259
 
272
260
  'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
273
- 'author': !exists(json, 'author') ? undefined : json['author'],
274
261
  'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
275
262
  'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
276
263
  'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
@@ -284,14 +271,13 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
284
271
  'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
285
272
  'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
286
273
  'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
287
- 'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
288
274
  'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
289
275
  'license': !exists(json, 'license') ? undefined : json['license'],
290
276
  'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
291
277
  'model_outputs': !exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : (json['model_outputs'] as Array<any>).map(ModelIOFromJSON)),
292
278
  'model_type': !exists(json, 'model_type') ? undefined : json['model_type'],
293
279
  'multi_modal': !exists(json, 'multi_modal') ? undefined : json['multi_modal'],
294
- 'name': !exists(json, 'name') ? undefined : json['name'],
280
+ 'name': json['name'],
295
281
  'pretrained': !exists(json, 'pretrained') ? undefined : json['pretrained'],
296
282
  'pretraining_datasets': !exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
297
283
  'pruned': !exists(json, 'pruned') ? undefined : json['pruned'],
@@ -299,8 +285,8 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
299
285
  'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
300
286
  'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
301
287
  'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
288
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
302
289
  'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
303
- 'tenant_id': !exists(json, 'tenant_id') ? undefined : json['tenant_id'],
304
290
  'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
305
291
  'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
306
292
  'training_max_energy_consumption_watts': !exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
@@ -319,7 +305,6 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
319
305
  return {
320
306
 
321
307
  'annotations': value.annotations,
322
- 'author': value.author,
323
308
  'bias_evaluation_score': value.bias_evaluation_score,
324
309
  'edge_optimized': value.edge_optimized,
325
310
  'finetuning_datasets': value.finetuning_datasets,
@@ -333,7 +318,6 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
333
318
  'inference_min_throughput': value.inference_min_throughput,
334
319
  'inference_precision': value.inference_precision,
335
320
  'inference_software_dependencies': value.inference_software_dependencies,
336
- 'keywords': value.keywords,
337
321
  'libraries': value.libraries,
338
322
  'license': value.license,
339
323
  'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
@@ -348,8 +332,8 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
348
332
  'regulatory': value.regulatory,
349
333
  'slimmed': value.slimmed,
350
334
  'supports_quantization': value.supports_quantization,
335
+ 'tags': value.tags,
351
336
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
352
- 'tenant_id': value.tenant_id,
353
337
  'training_distributed': value.training_distributed,
354
338
  'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
355
339
  'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
@@ -124,12 +124,6 @@ export interface DiscoveryCriterion {
124
124
  * @memberof DiscoveryCriterion
125
125
  */
126
126
  inference_software_dependencies?: Array<string> | null;
127
- /**
128
- * Arbitrary labels
129
- * @type {Array<string>}
130
- * @memberof DiscoveryCriterion
131
- */
132
- keywords?: Array<string> | null;
133
127
  /**
134
128
  *
135
129
  * @type {Array<string>}
@@ -215,6 +209,12 @@ export interface DiscoveryCriterion {
215
209
  * @memberof DiscoveryCriterion
216
210
  */
217
211
  supports_quantization?: boolean | null;
212
+ /**
213
+ * Arbitrary labels
214
+ * @type {Array<string>}
215
+ * @memberof DiscoveryCriterion
216
+ */
217
+ tags?: Array<string> | null;
218
218
  /**
219
219
  * Inference Fields
220
220
  * @type {Array<Task>}
@@ -284,7 +284,6 @@ export function DiscoveryCriterionFromJSONTyped(json: any, ignoreDiscriminator:
284
284
  'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
285
285
  'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
286
286
  'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
287
- 'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
288
287
  'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
289
288
  'license': !exists(json, 'license') ? undefined : json['license'],
290
289
  'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
@@ -299,6 +298,7 @@ export function DiscoveryCriterionFromJSONTyped(json: any, ignoreDiscriminator:
299
298
  'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
300
299
  'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
301
300
  'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
301
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
302
302
  'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
303
303
  'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
304
304
  'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
@@ -333,7 +333,6 @@ export function DiscoveryCriterionToJSON(value?: DiscoveryCriterion | null): any
333
333
  'inference_min_throughput': value.inference_min_throughput,
334
334
  'inference_precision': value.inference_precision,
335
335
  'inference_software_dependencies': value.inference_software_dependencies,
336
- 'keywords': value.keywords,
337
336
  'libraries': value.libraries,
338
337
  'license': value.license,
339
338
  'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
@@ -348,6 +347,7 @@ export function DiscoveryCriterionToJSON(value?: DiscoveryCriterion | null): any
348
347
  'regulatory': value.regulatory,
349
348
  'slimmed': value.slimmed,
350
349
  'supports_quantization': value.supports_quantization,
350
+ 'tags': value.tags,
351
351
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
352
352
  'training_distributed': value.training_distributed,
353
353
  'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
@@ -13,29 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import {
17
- ArtifactType,
18
- ArtifactTypeFromJSON,
19
- ArtifactTypeFromJSONTyped,
20
- ArtifactTypeToJSON,
21
- ModelMetadata,
22
- ModelMetadataFromJSON,
23
- ModelMetadataFromJSONTyped,
24
- ModelMetadataToJSON,
25
- } from './';
26
-
27
16
  /**
28
17
  *
29
18
  * @export
30
19
  * @interface ModelArtifact
31
20
  */
32
21
  export interface ModelArtifact {
33
- /**
34
- *
35
- * @type {ArtifactType}
36
- * @memberof ModelArtifact
37
- */
38
- artifact_type: ArtifactType;
39
22
  /**
40
23
  *
41
24
  * @type {string}
@@ -54,12 +37,6 @@ export interface ModelArtifact {
54
37
  * @memberof ModelArtifact
55
38
  */
56
39
  last_modified: string;
57
- /**
58
- *
59
- * @type {ModelMetadata}
60
- * @memberof ModelArtifact
61
- */
62
- metadata?: ModelMetadata;
63
40
  }
64
41
 
65
42
  export function ModelArtifactFromJSON(json: any): ModelArtifact {
@@ -72,11 +49,9 @@ export function ModelArtifactFromJSONTyped(json: any, ignoreDiscriminator: boole
72
49
  }
73
50
  return {
74
51
 
75
- 'artifact_type': ArtifactTypeFromJSON(json['artifact_type']),
76
52
  'created_at': json['created_at'],
77
53
  'id': json['id'],
78
54
  'last_modified': json['last_modified'],
79
- 'metadata': !exists(json, 'metadata') ? undefined : ModelMetadataFromJSON(json['metadata']),
80
55
  };
81
56
  }
82
57
 
@@ -89,11 +64,9 @@ export function ModelArtifactToJSON(value?: ModelArtifact | null): any {
89
64
  }
90
65
  return {
91
66
 
92
- 'artifact_type': ArtifactTypeToJSON(value.artifact_type),
93
67
  'created_at': value.created_at,
94
68
  'id': value.id,
95
69
  'last_modified': value.last_modified,
96
- 'metadata': ModelMetadataToJSON(value.metadata),
97
70
  };
98
71
  }
99
72
 
@@ -49,7 +49,7 @@ export interface ModelMetadata {
49
49
  * @type {string}
50
50
  * @memberof ModelMetadata
51
51
  */
52
- author?: string | null;
52
+ author: string;
53
53
  /**
54
54
  *
55
55
  * @type {number}
@@ -134,12 +134,6 @@ export interface ModelMetadata {
134
134
  * @memberof ModelMetadata
135
135
  */
136
136
  inference_software_dependencies?: Array<string> | null;
137
- /**
138
- * Arbitrary labels
139
- * @type {Array<string>}
140
- * @memberof ModelMetadata
141
- */
142
- keywords?: Array<string> | null;
143
137
  /**
144
138
  *
145
139
  * @type {Array<string>}
@@ -181,7 +175,7 @@ export interface ModelMetadata {
181
175
  * @type {string}
182
176
  * @memberof ModelMetadata
183
177
  */
184
- name?: string | null;
178
+ name: string;
185
179
  /**
186
180
  *
187
181
  * @type {boolean}
@@ -225,6 +219,12 @@ export interface ModelMetadata {
225
219
  * @memberof ModelMetadata
226
220
  */
227
221
  supports_quantization?: boolean | null;
222
+ /**
223
+ * Arbitrary labels
224
+ * @type {Array<string>}
225
+ * @memberof ModelMetadata
226
+ */
227
+ tags?: Array<string> | null;
228
228
  /**
229
229
  * Inference Fields
230
230
  * @type {Array<Task>}
@@ -236,7 +236,7 @@ export interface ModelMetadata {
236
236
  * @type {string}
237
237
  * @memberof ModelMetadata
238
238
  */
239
- tenant_id?: string | null;
239
+ tenant_id: string;
240
240
  /**
241
241
  *
242
242
  * @type {boolean}
@@ -280,7 +280,7 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
280
280
  return {
281
281
 
282
282
  'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
283
- 'author': !exists(json, 'author') ? undefined : json['author'],
283
+ 'author': json['author'],
284
284
  'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
285
285
  'canonical': !exists(json, 'canonical') ? undefined : CanonicalFromJSON(json['canonical']),
286
286
  'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
@@ -295,14 +295,13 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
295
295
  'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
296
296
  'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
297
297
  'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
298
- 'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
299
298
  'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
300
299
  'license': !exists(json, 'license') ? undefined : json['license'],
301
300
  'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
302
301
  'model_outputs': !exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : (json['model_outputs'] as Array<any>).map(ModelIOFromJSON)),
303
302
  'model_type': !exists(json, 'model_type') ? undefined : json['model_type'],
304
303
  'multi_modal': !exists(json, 'multi_modal') ? undefined : json['multi_modal'],
305
- 'name': !exists(json, 'name') ? undefined : json['name'],
304
+ 'name': json['name'],
306
305
  'pretrained': !exists(json, 'pretrained') ? undefined : json['pretrained'],
307
306
  'pretraining_datasets': !exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
308
307
  'pruned': !exists(json, 'pruned') ? undefined : json['pruned'],
@@ -310,8 +309,9 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
310
309
  'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
311
310
  'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
312
311
  'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
312
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
313
313
  'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
314
- 'tenant_id': !exists(json, 'tenant_id') ? undefined : json['tenant_id'],
314
+ 'tenant_id': json['tenant_id'],
315
315
  'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
316
316
  'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
317
317
  'training_max_energy_consumption_watts': !exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
@@ -345,7 +345,6 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
345
345
  'inference_min_throughput': value.inference_min_throughput,
346
346
  'inference_precision': value.inference_precision,
347
347
  'inference_software_dependencies': value.inference_software_dependencies,
348
- 'keywords': value.keywords,
349
348
  'libraries': value.libraries,
350
349
  'license': value.license,
351
350
  'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
@@ -360,6 +359,7 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
360
359
  'regulatory': value.regulatory,
361
360
  'slimmed': value.slimmed,
362
361
  'supports_quantization': value.supports_quantization,
362
+ 'tags': value.tags,
363
363
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
364
364
  'tenant_id': value.tenant_id,
365
365
  'training_distributed': value.training_distributed,