@mlhub/models-ts-sdk 0.6.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/DeploymentStrategyReference.d.ts +40 -0
- package/dist/models/DeploymentStrategyReference.js +46 -0
- package/dist/models/ModelMetadata.d.ts +7 -1
- package/dist/models/ModelMetadata.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/DeploymentStrategyReference.ts +79 -0
- package/src/models/ModelMetadata.ts +12 -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):_
|
|
@@ -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,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,12 @@ 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>;
|
|
43
49
|
/**
|
|
44
50
|
*
|
|
45
51
|
* @type {string}
|
|
@@ -30,6 +30,7 @@ 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)),
|
|
33
34
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
34
35
|
'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
35
36
|
'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
@@ -79,6 +80,7 @@ function ModelMetadataToJSON(value) {
|
|
|
79
80
|
'author': value.author,
|
|
80
81
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
81
82
|
'canonical': (0, _1.CanonicalToJSON)(value.canonical),
|
|
83
|
+
'deployment_strategy_refs': (value.deployment_strategy_refs.map(_1.DeploymentStrategyReferenceToJSON)),
|
|
82
84
|
'description': value.description,
|
|
83
85
|
'edge_optimized': value.edge_optimized,
|
|
84
86
|
'finetuning_datasets': value.finetuning_datasets,
|
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
|
@@ -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
|
+
|
|
@@ -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,12 @@ 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>;
|
|
65
75
|
/**
|
|
66
76
|
*
|
|
67
77
|
* @type {string}
|
|
@@ -289,6 +299,7 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
289
299
|
'author': json['author'],
|
|
290
300
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
291
301
|
'canonical': !exists(json, 'canonical') ? undefined : CanonicalFromJSON(json['canonical']),
|
|
302
|
+
'deployment_strategy_refs': ((json['deployment_strategy_refs'] as Array<any>).map(DeploymentStrategyReferenceFromJSON)),
|
|
292
303
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
293
304
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
294
305
|
'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
@@ -340,6 +351,7 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
|
|
|
340
351
|
'author': value.author,
|
|
341
352
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
342
353
|
'canonical': CanonicalToJSON(value.canonical),
|
|
354
|
+
'deployment_strategy_refs': ((value.deployment_strategy_refs as Array<any>).map(DeploymentStrategyReferenceToJSON)),
|
|
343
355
|
'description': value.description,
|
|
344
356
|
'edge_optimized': value.edge_optimized,
|
|
345
357
|
'finetuning_datasets': value.finetuning_datasets,
|
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';
|