@mlhub/models-ts-sdk 0.5.0 → 0.7.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 +1 -0
- package/README.md +2 -2
- package/dist/models/CreateModelMetadataBody.d.ts +6 -0
- package/dist/models/CreateModelMetadataBody.js +2 -0
- package/dist/models/DeploymentStrategyReference.d.ts +40 -0
- package/dist/models/DeploymentStrategyReference.js +46 -0
- package/dist/models/GetModelResponse.d.ts +3 -2
- package/dist/models/GetModelResponse.js +3 -2
- package/dist/models/ModelMetadata.d.ts +13 -1
- package/dist/models/ModelMetadata.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/CreateModelMetadataBody.ts +8 -0
- package/src/models/DeploymentStrategyReference.ts +79 -0
- package/src/models/GetModelResponse.ts +11 -4
- package/src/models/ModelMetadata.ts +20 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,7 @@ src/models/BadRequestResponse.ts
|
|
|
24
24
|
src/models/Canonical.ts
|
|
25
25
|
src/models/CreateModelMetadataBody.ts
|
|
26
26
|
src/models/CreateModelMetadataResponse.ts
|
|
27
|
+
src/models/DeploymentStrategyReference.ts
|
|
27
28
|
src/models/DiscoverModelsByPlatformResponse.ts
|
|
28
29
|
src/models/DiscoverModelsResponse.ts
|
|
29
30
|
src/models/DiscoveryCriteria.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @mlhub/models-ts-sdk@0.
|
|
1
|
+
## @mlhub/models-ts-sdk@0.7.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.
|
|
39
|
+
npm install @mlhub/models-ts-sdk@0.7.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -28,6 +28,12 @@ export interface CreateModelMetadataBody {
|
|
|
28
28
|
* @memberof CreateModelMetadataBody
|
|
29
29
|
*/
|
|
30
30
|
bias_evaluation_score?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateModelMetadataBody
|
|
35
|
+
*/
|
|
36
|
+
description?: string | null;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {boolean}
|
|
@@ -28,6 +28,7 @@ function CreateModelMetadataBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'annotations': !(0, runtime_1.exists)(json, 'annotations') ? undefined : json['annotations'],
|
|
30
30
|
'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
31
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
31
32
|
'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
32
33
|
'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
33
34
|
'image': !(0, runtime_1.exists)(json, 'image') ? undefined : json['image'],
|
|
@@ -73,6 +74,7 @@ function CreateModelMetadataBodyToJSON(value) {
|
|
|
73
74
|
return {
|
|
74
75
|
'annotations': value.annotations,
|
|
75
76
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
77
|
+
'description': value.description,
|
|
76
78
|
'edge_optimized': value.edge_optimized,
|
|
77
79
|
'finetuning_datasets': value.finetuning_datasets,
|
|
78
80
|
'image': value.image,
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Platform } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DeploymentStrategyReference
|
|
17
|
+
*/
|
|
18
|
+
export interface DeploymentStrategyReference {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DeploymentStrategyReference
|
|
23
|
+
*/
|
|
24
|
+
description?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DeploymentStrategyReference
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Platform}
|
|
34
|
+
* @memberof DeploymentStrategyReference
|
|
35
|
+
*/
|
|
36
|
+
platform: Platform;
|
|
37
|
+
}
|
|
38
|
+
export declare function DeploymentStrategyReferenceFromJSON(json: any): DeploymentStrategyReference;
|
|
39
|
+
export declare function DeploymentStrategyReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentStrategyReference;
|
|
40
|
+
export declare function DeploymentStrategyReferenceToJSON(value?: DeploymentStrategyReference | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.DeploymentStrategyReferenceFromJSON = DeploymentStrategyReferenceFromJSON;
|
|
17
|
+
exports.DeploymentStrategyReferenceFromJSONTyped = DeploymentStrategyReferenceFromJSONTyped;
|
|
18
|
+
exports.DeploymentStrategyReferenceToJSON = DeploymentStrategyReferenceToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function DeploymentStrategyReferenceFromJSON(json) {
|
|
22
|
+
return DeploymentStrategyReferenceFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function DeploymentStrategyReferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'platform': (0, _1.PlatformFromJSON)(json['platform']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function DeploymentStrategyReferenceToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'description': value.description,
|
|
43
|
+
'name': value.name,
|
|
44
|
+
'platform': (0, _1.PlatformToJSON)(value.platform),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ModelMetadata } from './';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -29,10 +30,10 @@ export interface GetModelResponse {
|
|
|
29
30
|
metadata: object;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {ModelMetadata}
|
|
33
34
|
* @memberof GetModelResponse
|
|
34
35
|
*/
|
|
35
|
-
result:
|
|
36
|
+
result: ModelMetadata;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {number}
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.GetModelResponseFromJSON = GetModelResponseFromJSON;
|
|
17
17
|
exports.GetModelResponseFromJSONTyped = GetModelResponseFromJSONTyped;
|
|
18
18
|
exports.GetModelResponseToJSON = GetModelResponseToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
19
20
|
function GetModelResponseFromJSON(json) {
|
|
20
21
|
return GetModelResponseFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -26,7 +27,7 @@ function GetModelResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
return {
|
|
27
28
|
'message': json['message'],
|
|
28
29
|
'metadata': json['metadata'],
|
|
29
|
-
'result': json['result'],
|
|
30
|
+
'result': (0, _1.ModelMetadataFromJSON)(json['result']),
|
|
30
31
|
'status': json['status'],
|
|
31
32
|
'version': json['version'],
|
|
32
33
|
};
|
|
@@ -41,7 +42,7 @@ function GetModelResponseToJSON(value) {
|
|
|
41
42
|
return {
|
|
42
43
|
'message': value.message,
|
|
43
44
|
'metadata': value.metadata,
|
|
44
|
-
'result': value.result,
|
|
45
|
+
'result': (0, _1.ModelMetadataToJSON)(value.result),
|
|
45
46
|
'status': value.status,
|
|
46
47
|
'version': value.version,
|
|
47
48
|
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Canonical, HardwareRequirements, ModelIO, Task } from './';
|
|
12
|
+
import { Canonical, DeploymentStrategyReference, HardwareRequirements, ModelIO, Task } from './';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -40,6 +40,18 @@ export interface ModelMetadata {
|
|
|
40
40
|
* @memberof ModelMetadata
|
|
41
41
|
*/
|
|
42
42
|
canonical?: Canonical;
|
|
43
|
+
/**
|
|
44
|
+
* Deployment strategy references
|
|
45
|
+
* @type {Array<DeploymentStrategyReference>}
|
|
46
|
+
* @memberof ModelMetadata
|
|
47
|
+
*/
|
|
48
|
+
deployment_strategy_refs: Array<DeploymentStrategyReference>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ModelMetadata
|
|
53
|
+
*/
|
|
54
|
+
description?: string | null;
|
|
43
55
|
/**
|
|
44
56
|
*
|
|
45
57
|
* @type {boolean}
|
|
@@ -30,6 +30,8 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
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
|
+
'deployment_strategy_refs': (json['deployment_strategy_refs'].map(_1.DeploymentStrategyReferenceFromJSON)),
|
|
34
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
33
35
|
'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
34
36
|
'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
35
37
|
'image': !(0, runtime_1.exists)(json, 'image') ? undefined : json['image'],
|
|
@@ -78,6 +80,8 @@ function ModelMetadataToJSON(value) {
|
|
|
78
80
|
'author': value.author,
|
|
79
81
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
80
82
|
'canonical': (0, _1.CanonicalToJSON)(value.canonical),
|
|
83
|
+
'deployment_strategy_refs': (value.deployment_strategy_refs.map(_1.DeploymentStrategyReferenceToJSON)),
|
|
84
|
+
'description': value.description,
|
|
81
85
|
'edge_optimized': value.edge_optimized,
|
|
82
86
|
'finetuning_datasets': value.finetuning_datasets,
|
|
83
87
|
'image': value.image,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './BadRequestResponse';
|
|
|
11
11
|
export * from './Canonical';
|
|
12
12
|
export * from './CreateModelMetadataBody';
|
|
13
13
|
export * from './CreateModelMetadataResponse';
|
|
14
|
+
export * from './DeploymentStrategyReference';
|
|
14
15
|
export * from './DiscoverModelsByPlatformResponse';
|
|
15
16
|
export * from './DiscoverModelsResponse';
|
|
16
17
|
export * from './DiscoveryCriteria';
|
package/dist/models/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./BadRequestResponse"), exports);
|
|
|
29
29
|
__exportStar(require("./Canonical"), exports);
|
|
30
30
|
__exportStar(require("./CreateModelMetadataBody"), exports);
|
|
31
31
|
__exportStar(require("./CreateModelMetadataResponse"), exports);
|
|
32
|
+
__exportStar(require("./DeploymentStrategyReference"), exports);
|
|
32
33
|
__exportStar(require("./DiscoverModelsByPlatformResponse"), exports);
|
|
33
34
|
__exportStar(require("./DiscoverModelsResponse"), exports);
|
|
34
35
|
__exportStar(require("./DiscoveryCriteria"), exports);
|
package/package.json
CHANGED
|
@@ -46,6 +46,12 @@ export interface CreateModelMetadataBody {
|
|
|
46
46
|
* @memberof CreateModelMetadataBody
|
|
47
47
|
*/
|
|
48
48
|
bias_evaluation_score?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateModelMetadataBody
|
|
53
|
+
*/
|
|
54
|
+
description?: string | null;
|
|
49
55
|
/**
|
|
50
56
|
*
|
|
51
57
|
* @type {boolean}
|
|
@@ -259,6 +265,7 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
259
265
|
|
|
260
266
|
'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
|
|
261
267
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
268
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
262
269
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
263
270
|
'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
264
271
|
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
@@ -306,6 +313,7 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
|
|
|
306
313
|
|
|
307
314
|
'annotations': value.annotations,
|
|
308
315
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
316
|
+
'description': value.description,
|
|
309
317
|
'edge_optimized': value.edge_optimized,
|
|
310
318
|
'finetuning_datasets': value.finetuning_datasets,
|
|
311
319
|
'image': value.image,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Models API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
Platform,
|
|
18
|
+
PlatformFromJSON,
|
|
19
|
+
PlatformFromJSONTyped,
|
|
20
|
+
PlatformToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DeploymentStrategyReference
|
|
27
|
+
*/
|
|
28
|
+
export interface DeploymentStrategyReference {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DeploymentStrategyReference
|
|
33
|
+
*/
|
|
34
|
+
description?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DeploymentStrategyReference
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Platform}
|
|
44
|
+
* @memberof DeploymentStrategyReference
|
|
45
|
+
*/
|
|
46
|
+
platform: Platform;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DeploymentStrategyReferenceFromJSON(json: any): DeploymentStrategyReference {
|
|
50
|
+
return DeploymentStrategyReferenceFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DeploymentStrategyReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentStrategyReference {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'platform': PlatformFromJSON(json['platform']),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function DeploymentStrategyReferenceToJSON(value?: DeploymentStrategyReference | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'description': value.description,
|
|
75
|
+
'name': value.name,
|
|
76
|
+
'platform': PlatformToJSON(value.platform),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ModelMetadata,
|
|
18
|
+
ModelMetadataFromJSON,
|
|
19
|
+
ModelMetadataFromJSONTyped,
|
|
20
|
+
ModelMetadataToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -33,10 +40,10 @@ export interface GetModelResponse {
|
|
|
33
40
|
metadata: object;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
|
-
* @type {
|
|
43
|
+
* @type {ModelMetadata}
|
|
37
44
|
* @memberof GetModelResponse
|
|
38
45
|
*/
|
|
39
|
-
result:
|
|
46
|
+
result: ModelMetadata;
|
|
40
47
|
/**
|
|
41
48
|
*
|
|
42
49
|
* @type {number}
|
|
@@ -63,7 +70,7 @@ export function GetModelResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
63
70
|
|
|
64
71
|
'message': json['message'],
|
|
65
72
|
'metadata': json['metadata'],
|
|
66
|
-
'result': json['result'],
|
|
73
|
+
'result': ModelMetadataFromJSON(json['result']),
|
|
67
74
|
'status': json['status'],
|
|
68
75
|
'version': json['version'],
|
|
69
76
|
};
|
|
@@ -80,7 +87,7 @@ export function GetModelResponseToJSON(value?: GetModelResponse | null): any {
|
|
|
80
87
|
|
|
81
88
|
'message': value.message,
|
|
82
89
|
'metadata': value.metadata,
|
|
83
|
-
'result': value.result,
|
|
90
|
+
'result': ModelMetadataToJSON(value.result),
|
|
84
91
|
'status': value.status,
|
|
85
92
|
'version': value.version,
|
|
86
93
|
};
|
|
@@ -18,6 +18,10 @@ import {
|
|
|
18
18
|
CanonicalFromJSON,
|
|
19
19
|
CanonicalFromJSONTyped,
|
|
20
20
|
CanonicalToJSON,
|
|
21
|
+
DeploymentStrategyReference,
|
|
22
|
+
DeploymentStrategyReferenceFromJSON,
|
|
23
|
+
DeploymentStrategyReferenceFromJSONTyped,
|
|
24
|
+
DeploymentStrategyReferenceToJSON,
|
|
21
25
|
HardwareRequirements,
|
|
22
26
|
HardwareRequirementsFromJSON,
|
|
23
27
|
HardwareRequirementsFromJSONTyped,
|
|
@@ -62,6 +66,18 @@ export interface ModelMetadata {
|
|
|
62
66
|
* @memberof ModelMetadata
|
|
63
67
|
*/
|
|
64
68
|
canonical?: Canonical;
|
|
69
|
+
/**
|
|
70
|
+
* Deployment strategy references
|
|
71
|
+
* @type {Array<DeploymentStrategyReference>}
|
|
72
|
+
* @memberof ModelMetadata
|
|
73
|
+
*/
|
|
74
|
+
deployment_strategy_refs: Array<DeploymentStrategyReference>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ModelMetadata
|
|
79
|
+
*/
|
|
80
|
+
description?: string | null;
|
|
65
81
|
/**
|
|
66
82
|
*
|
|
67
83
|
* @type {boolean}
|
|
@@ -283,6 +299,8 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
283
299
|
'author': json['author'],
|
|
284
300
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
285
301
|
'canonical': !exists(json, 'canonical') ? undefined : CanonicalFromJSON(json['canonical']),
|
|
302
|
+
'deployment_strategy_refs': ((json['deployment_strategy_refs'] as Array<any>).map(DeploymentStrategyReferenceFromJSON)),
|
|
303
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
286
304
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
287
305
|
'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
288
306
|
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
@@ -333,6 +351,8 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
|
|
|
333
351
|
'author': value.author,
|
|
334
352
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
335
353
|
'canonical': CanonicalToJSON(value.canonical),
|
|
354
|
+
'deployment_strategy_refs': ((value.deployment_strategy_refs as Array<any>).map(DeploymentStrategyReferenceToJSON)),
|
|
355
|
+
'description': value.description,
|
|
336
356
|
'edge_optimized': value.edge_optimized,
|
|
337
357
|
'finetuning_datasets': value.finetuning_datasets,
|
|
338
358
|
'image': value.image,
|
package/src/models/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './BadRequestResponse';
|
|
|
13
13
|
export * from './Canonical';
|
|
14
14
|
export * from './CreateModelMetadataBody';
|
|
15
15
|
export * from './CreateModelMetadataResponse';
|
|
16
|
+
export * from './DeploymentStrategyReference';
|
|
16
17
|
export * from './DiscoverModelsByPlatformResponse';
|
|
17
18
|
export * from './DiscoverModelsResponse';
|
|
18
19
|
export * from './DiscoveryCriteria';
|