@mlhub/models-ts-sdk 0.0.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 +48 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/ArtifactsApi.d.ts +37 -0
- package/dist/apis/ArtifactsApi.js +158 -0
- package/dist/apis/IngestionsApi.d.ts +37 -0
- package/dist/apis/IngestionsApi.js +158 -0
- package/dist/apis/MetadataApi.d.ts +30 -0
- package/dist/apis/MetadataApi.js +122 -0
- package/dist/apis/PlatformsApi.d.ts +74 -0
- package/dist/apis/PlatformsApi.js +306 -0
- package/dist/apis/PublicationsApi.d.ts +60 -0
- package/dist/apis/PublicationsApi.js +251 -0
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +10 -0
- package/dist/models/Accelerator.d.ts +46 -0
- package/dist/models/Accelerator.js +48 -0
- package/dist/models/Artifact.d.ts +46 -0
- package/dist/models/Artifact.js +47 -0
- package/dist/models/ArtifactIngestion.d.ts +70 -0
- package/dist/models/ArtifactIngestion.js +56 -0
- package/dist/models/ArtifactIngestionStatus.d.ts +30 -0
- package/dist/models/ArtifactIngestionStatus.js +44 -0
- package/dist/models/ArtifactPublication.d.ts +70 -0
- package/dist/models/ArtifactPublication.js +56 -0
- package/dist/models/ArtifactPublicationStatus.d.ts +31 -0
- package/dist/models/ArtifactPublicationStatus.js +45 -0
- package/dist/models/ArtifactType.d.ts +23 -0
- package/dist/models/ArtifactType.js +37 -0
- package/dist/models/BadRequestResponse.d.ts +51 -0
- package/dist/models/BadRequestResponse.js +48 -0
- package/dist/models/CreateModelMetadataResponse.d.ts +51 -0
- package/dist/models/CreateModelMetadataResponse.js +48 -0
- package/dist/models/DiscoverModelsByPlatformResponse.d.ts +51 -0
- package/dist/models/DiscoverModelsByPlatformResponse.js +48 -0
- package/dist/models/DiscoveryCriteria.d.ts +34 -0
- package/dist/models/DiscoveryCriteria.js +44 -0
- package/dist/models/GetModelArtifactResponse.d.ts +52 -0
- package/dist/models/GetModelArtifactResponse.js +49 -0
- package/dist/models/GetModelByPlatformResponse.d.ts +51 -0
- package/dist/models/GetModelByPlatformResponse.js +48 -0
- package/dist/models/GetModelIngestionResponse.d.ts +52 -0
- package/dist/models/GetModelIngestionResponse.js +49 -0
- package/dist/models/GetModelPublicationResponse.d.ts +52 -0
- package/dist/models/GetModelPublicationResponse.js +49 -0
- package/dist/models/HardwareRequirements.d.ts +52 -0
- package/dist/models/HardwareRequirements.js +50 -0
- package/dist/models/IngestArtifactRequest.d.ts +45 -0
- package/dist/models/IngestArtifactRequest.js +47 -0
- package/dist/models/IngestModelArtifactResponse.d.ts +52 -0
- package/dist/models/IngestModelArtifactResponse.js +49 -0
- package/dist/models/ListModelArtifactResponse.d.ts +52 -0
- package/dist/models/ListModelArtifactResponse.js +49 -0
- package/dist/models/ListModelIngestionsResponse.d.ts +52 -0
- package/dist/models/ListModelIngestionsResponse.js +49 -0
- package/dist/models/ListModelPublicationsForArtifactResponse.d.ts +52 -0
- package/dist/models/ListModelPublicationsForArtifactResponse.js +49 -0
- package/dist/models/ListModelPublicationsResponse.d.ts +52 -0
- package/dist/models/ListModelPublicationsResponse.js +49 -0
- package/dist/models/ListModelsByPlatformResponse.d.ts +53 -0
- package/dist/models/ListModelsByPlatformResponse.js +48 -0
- package/dist/models/ListPlatformsResponse.d.ts +52 -0
- package/dist/models/ListPlatformsResponse.js +49 -0
- package/dist/models/ModelIO.d.ts +33 -0
- package/dist/models/ModelIO.js +43 -0
- package/dist/models/ModelMetadata.d.ts +239 -0
- package/dist/models/ModelMetadata.js +112 -0
- package/dist/models/NotFoundResponse.d.ts +51 -0
- package/dist/models/NotFoundResponse.js +48 -0
- package/dist/models/Platform.d.ts +30 -0
- package/dist/models/Platform.js +44 -0
- package/dist/models/PlatformDetails.d.ts +34 -0
- package/dist/models/PlatformDetails.js +43 -0
- package/dist/models/PublishArtifactRequest.d.ts +33 -0
- package/dist/models/PublishArtifactRequest.js +43 -0
- package/dist/models/PublishModelArtifactResponse.d.ts +52 -0
- package/dist/models/PublishModelArtifactResponse.js +49 -0
- package/dist/models/ServerErrorResponse.d.ts +51 -0
- package/dist/models/ServerErrorResponse.js +48 -0
- package/dist/models/SystemRequirement.d.ts +33 -0
- package/dist/models/SystemRequirement.js +42 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.js +40 -0
- package/dist/runtime.d.ts +140 -0
- package/dist/runtime.js +420 -0
- package/package.json +15 -0
- package/src/apis/ArtifactsApi.ts +100 -0
- package/src/apis/IngestionsApi.ts +100 -0
- package/src/apis/MetadataApi.ts +82 -0
- package/src/apis/PlatformsApi.ts +246 -0
- package/src/apis/PublicationsApi.ts +185 -0
- package/src/apis/index.ts +7 -0
- package/src/index.ts +5 -0
- package/src/models/Accelerator.ts +87 -0
- package/src/models/Artifact.ts +87 -0
- package/src/models/ArtifactIngestion.ts +119 -0
- package/src/models/ArtifactIngestionStatus.ts +43 -0
- package/src/models/ArtifactPublication.ts +119 -0
- package/src/models/ArtifactPublicationStatus.ts +44 -0
- package/src/models/ArtifactType.ts +36 -0
- package/src/models/BadRequestResponse.ts +88 -0
- package/src/models/CreateModelMetadataResponse.ts +88 -0
- package/src/models/DiscoverModelsByPlatformResponse.ts +88 -0
- package/src/models/DiscoveryCriteria.ts +71 -0
- package/src/models/GetModelArtifactResponse.ts +95 -0
- package/src/models/GetModelByPlatformResponse.ts +88 -0
- package/src/models/GetModelIngestionResponse.ts +95 -0
- package/src/models/GetModelPublicationResponse.ts +95 -0
- package/src/models/HardwareRequirements.ts +95 -0
- package/src/models/IngestArtifactRequest.ts +80 -0
- package/src/models/IngestModelArtifactResponse.ts +95 -0
- package/src/models/ListModelArtifactResponse.ts +95 -0
- package/src/models/ListModelIngestionsResponse.ts +95 -0
- package/src/models/ListModelPublicationsForArtifactResponse.ts +95 -0
- package/src/models/ListModelPublicationsResponse.ts +95 -0
- package/src/models/ListModelsByPlatformResponse.ts +88 -0
- package/src/models/ListPlatformsResponse.ts +95 -0
- package/src/models/ModelIO.ts +64 -0
- package/src/models/ModelMetadata.ts +348 -0
- package/src/models/NotFoundResponse.ts +88 -0
- package/src/models/Platform.ts +43 -0
- package/src/models/PlatformDetails.ts +71 -0
- package/src/models/PublishArtifactRequest.ts +64 -0
- package/src/models/PublishModelArtifactResponse.ts +95 -0
- package/src/models/ServerErrorResponse.ts +88 -0
- package/src/models/SystemRequirement.ts +64 -0
- package/src/models/index.ts +35 -0
- package/src/runtime.ts +320 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,70 @@
|
|
|
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 { ArtifactPublicationStatus } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ArtifactPublication
|
|
17
|
+
*/
|
|
18
|
+
export interface ArtifactPublication {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ArtifactPublication
|
|
23
|
+
*/
|
|
24
|
+
artifact_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ArtifactPublication
|
|
29
|
+
*/
|
|
30
|
+
attempts: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ArtifactPublication
|
|
35
|
+
*/
|
|
36
|
+
created_at: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ArtifactPublication
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ArtifactPublication
|
|
47
|
+
*/
|
|
48
|
+
last_message?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ArtifactPublication
|
|
53
|
+
*/
|
|
54
|
+
last_modified: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ArtifactPublicationStatus}
|
|
58
|
+
* @memberof ArtifactPublication
|
|
59
|
+
*/
|
|
60
|
+
status: ArtifactPublicationStatus;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ArtifactPublication
|
|
65
|
+
*/
|
|
66
|
+
target_platform: string;
|
|
67
|
+
}
|
|
68
|
+
export declare function ArtifactPublicationFromJSON(json: any): ArtifactPublication;
|
|
69
|
+
export declare function ArtifactPublicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactPublication;
|
|
70
|
+
export declare function ArtifactPublicationToJSON(value?: ArtifactPublication | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
var _1 = require("./");
|
|
18
|
+
function ArtifactPublicationFromJSON(json) {
|
|
19
|
+
return ArtifactPublicationFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ArtifactPublicationFromJSON = ArtifactPublicationFromJSON;
|
|
22
|
+
function ArtifactPublicationFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'artifact_id': json['artifact_id'],
|
|
28
|
+
'attempts': json['attempts'],
|
|
29
|
+
'created_at': json['created_at'],
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
'last_message': !runtime_1.exists(json, 'last_message') ? undefined : json['last_message'],
|
|
32
|
+
'last_modified': json['last_modified'],
|
|
33
|
+
'status': _1.ArtifactPublicationStatusFromJSON(json['status']),
|
|
34
|
+
'target_platform': json['target_platform'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.ArtifactPublicationFromJSONTyped = ArtifactPublicationFromJSONTyped;
|
|
38
|
+
function ArtifactPublicationToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'artifact_id': value.artifact_id,
|
|
47
|
+
'attempts': value.attempts,
|
|
48
|
+
'created_at': value.created_at,
|
|
49
|
+
'id': value.id,
|
|
50
|
+
'last_message': value.last_message,
|
|
51
|
+
'last_modified': value.last_modified,
|
|
52
|
+
'status': _1.ArtifactPublicationStatusToJSON(value.status),
|
|
53
|
+
'target_platform': value.target_platform,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.ArtifactPublicationToJSON = ArtifactPublicationToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ArtifactPublicationStatus {
|
|
18
|
+
Submitted = "Submitted",
|
|
19
|
+
Pending = "Pending",
|
|
20
|
+
Extracting = "Extracting",
|
|
21
|
+
Extracted = "Extracted",
|
|
22
|
+
PublishingMetadata = "PublishingMetadata",
|
|
23
|
+
PublishedMetadata = "PublishedMetadata",
|
|
24
|
+
PublishingArtifact = "PublishingArtifact",
|
|
25
|
+
PublishedArtifact = "PublishedArtifact",
|
|
26
|
+
Finished = "Finished",
|
|
27
|
+
Failed = "Failed"
|
|
28
|
+
}
|
|
29
|
+
export declare function ArtifactPublicationStatusFromJSON(json: any): ArtifactPublicationStatus;
|
|
30
|
+
export declare function ArtifactPublicationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactPublicationStatus;
|
|
31
|
+
export declare function ArtifactPublicationStatusToJSON(value?: ArtifactPublicationStatus | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var ArtifactPublicationStatus;
|
|
22
|
+
(function (ArtifactPublicationStatus) {
|
|
23
|
+
ArtifactPublicationStatus["Submitted"] = "Submitted";
|
|
24
|
+
ArtifactPublicationStatus["Pending"] = "Pending";
|
|
25
|
+
ArtifactPublicationStatus["Extracting"] = "Extracting";
|
|
26
|
+
ArtifactPublicationStatus["Extracted"] = "Extracted";
|
|
27
|
+
ArtifactPublicationStatus["PublishingMetadata"] = "PublishingMetadata";
|
|
28
|
+
ArtifactPublicationStatus["PublishedMetadata"] = "PublishedMetadata";
|
|
29
|
+
ArtifactPublicationStatus["PublishingArtifact"] = "PublishingArtifact";
|
|
30
|
+
ArtifactPublicationStatus["PublishedArtifact"] = "PublishedArtifact";
|
|
31
|
+
ArtifactPublicationStatus["Finished"] = "Finished";
|
|
32
|
+
ArtifactPublicationStatus["Failed"] = "Failed";
|
|
33
|
+
})(ArtifactPublicationStatus = exports.ArtifactPublicationStatus || (exports.ArtifactPublicationStatus = {}));
|
|
34
|
+
function ArtifactPublicationStatusFromJSON(json) {
|
|
35
|
+
return ArtifactPublicationStatusFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.ArtifactPublicationStatusFromJSON = ArtifactPublicationStatusFromJSON;
|
|
38
|
+
function ArtifactPublicationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
exports.ArtifactPublicationStatusFromJSONTyped = ArtifactPublicationStatusFromJSONTyped;
|
|
42
|
+
function ArtifactPublicationStatusToJSON(value) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
exports.ArtifactPublicationStatusToJSON = ArtifactPublicationStatusToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ArtifactType {
|
|
18
|
+
Model = "Model",
|
|
19
|
+
Dataset = "Dataset"
|
|
20
|
+
}
|
|
21
|
+
export declare function ArtifactTypeFromJSON(json: any): ArtifactType;
|
|
22
|
+
export declare function ArtifactTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactType;
|
|
23
|
+
export declare function ArtifactTypeToJSON(value?: ArtifactType | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var ArtifactType;
|
|
22
|
+
(function (ArtifactType) {
|
|
23
|
+
ArtifactType["Model"] = "Model";
|
|
24
|
+
ArtifactType["Dataset"] = "Dataset";
|
|
25
|
+
})(ArtifactType = exports.ArtifactType || (exports.ArtifactType = {}));
|
|
26
|
+
function ArtifactTypeFromJSON(json) {
|
|
27
|
+
return ArtifactTypeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ArtifactTypeFromJSON = ArtifactTypeFromJSON;
|
|
30
|
+
function ArtifactTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.ArtifactTypeFromJSONTyped = ArtifactTypeFromJSONTyped;
|
|
34
|
+
function ArtifactTypeToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.ArtifactTypeToJSON = ArtifactTypeToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 BadRequestResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface BadRequestResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BadRequestResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof BadRequestResponse
|
|
28
|
+
*/
|
|
29
|
+
metadata: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof BadRequestResponse
|
|
34
|
+
*/
|
|
35
|
+
result: any | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof BadRequestResponse
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BadRequestResponse
|
|
46
|
+
*/
|
|
47
|
+
version: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function BadRequestResponseFromJSON(json: any): BadRequestResponse;
|
|
50
|
+
export declare function BadRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BadRequestResponse;
|
|
51
|
+
export declare function BadRequestResponseToJSON(value?: BadRequestResponse | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
function BadRequestResponseFromJSON(json) {
|
|
17
|
+
return BadRequestResponseFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
exports.BadRequestResponseFromJSON = BadRequestResponseFromJSON;
|
|
20
|
+
function BadRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'message': json['message'],
|
|
26
|
+
'metadata': json['metadata'],
|
|
27
|
+
'result': json['result'],
|
|
28
|
+
'status': json['status'],
|
|
29
|
+
'version': json['version'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.BadRequestResponseFromJSONTyped = BadRequestResponseFromJSONTyped;
|
|
33
|
+
function BadRequestResponseToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'message': value.message,
|
|
42
|
+
'metadata': value.metadata,
|
|
43
|
+
'result': value.result,
|
|
44
|
+
'status': value.status,
|
|
45
|
+
'version': value.version,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.BadRequestResponseToJSON = BadRequestResponseToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 CreateModelMetadataResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateModelMetadataResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateModelMetadataResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof CreateModelMetadataResponse
|
|
28
|
+
*/
|
|
29
|
+
metadata: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof CreateModelMetadataResponse
|
|
34
|
+
*/
|
|
35
|
+
result: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CreateModelMetadataResponse
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateModelMetadataResponse
|
|
46
|
+
*/
|
|
47
|
+
version: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function CreateModelMetadataResponseFromJSON(json: any): CreateModelMetadataResponse;
|
|
50
|
+
export declare function CreateModelMetadataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateModelMetadataResponse;
|
|
51
|
+
export declare function CreateModelMetadataResponseToJSON(value?: CreateModelMetadataResponse | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
function CreateModelMetadataResponseFromJSON(json) {
|
|
17
|
+
return CreateModelMetadataResponseFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
exports.CreateModelMetadataResponseFromJSON = CreateModelMetadataResponseFromJSON;
|
|
20
|
+
function CreateModelMetadataResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'message': json['message'],
|
|
26
|
+
'metadata': json['metadata'],
|
|
27
|
+
'result': json['result'],
|
|
28
|
+
'status': json['status'],
|
|
29
|
+
'version': json['version'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.CreateModelMetadataResponseFromJSONTyped = CreateModelMetadataResponseFromJSONTyped;
|
|
33
|
+
function CreateModelMetadataResponseToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'message': value.message,
|
|
42
|
+
'metadata': value.metadata,
|
|
43
|
+
'result': value.result,
|
|
44
|
+
'status': value.status,
|
|
45
|
+
'version': value.version,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.CreateModelMetadataResponseToJSON = CreateModelMetadataResponseToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 DiscoverModelsByPlatformResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DiscoverModelsByPlatformResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DiscoverModelsByPlatformResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof DiscoverModelsByPlatformResponse
|
|
28
|
+
*/
|
|
29
|
+
metadata: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof DiscoverModelsByPlatformResponse
|
|
34
|
+
*/
|
|
35
|
+
result: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DiscoverModelsByPlatformResponse
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DiscoverModelsByPlatformResponse
|
|
46
|
+
*/
|
|
47
|
+
version: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function DiscoverModelsByPlatformResponseFromJSON(json: any): DiscoverModelsByPlatformResponse;
|
|
50
|
+
export declare function DiscoverModelsByPlatformResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscoverModelsByPlatformResponse;
|
|
51
|
+
export declare function DiscoverModelsByPlatformResponseToJSON(value?: DiscoverModelsByPlatformResponse | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
function DiscoverModelsByPlatformResponseFromJSON(json) {
|
|
17
|
+
return DiscoverModelsByPlatformResponseFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
exports.DiscoverModelsByPlatformResponseFromJSON = DiscoverModelsByPlatformResponseFromJSON;
|
|
20
|
+
function DiscoverModelsByPlatformResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'message': json['message'],
|
|
26
|
+
'metadata': json['metadata'],
|
|
27
|
+
'result': json['result'],
|
|
28
|
+
'status': json['status'],
|
|
29
|
+
'version': json['version'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.DiscoverModelsByPlatformResponseFromJSONTyped = DiscoverModelsByPlatformResponseFromJSONTyped;
|
|
33
|
+
function DiscoverModelsByPlatformResponseToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'message': value.message,
|
|
42
|
+
'metadata': value.metadata,
|
|
43
|
+
'result': value.result,
|
|
44
|
+
'status': value.status,
|
|
45
|
+
'version': value.version,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.DiscoverModelsByPlatformResponseToJSON = DiscoverModelsByPlatformResponseToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { ModelMetadata } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DiscoveryCriteria
|
|
17
|
+
*/
|
|
18
|
+
export interface DiscoveryCriteria {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof DiscoveryCriteria
|
|
23
|
+
*/
|
|
24
|
+
confidence_threshold?: Array<string> | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<ModelMetadata>}
|
|
28
|
+
* @memberof DiscoveryCriteria
|
|
29
|
+
*/
|
|
30
|
+
criteria: Array<ModelMetadata>;
|
|
31
|
+
}
|
|
32
|
+
export declare function DiscoveryCriteriaFromJSON(json: any): DiscoveryCriteria;
|
|
33
|
+
export declare function DiscoveryCriteriaFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscoveryCriteria;
|
|
34
|
+
export declare function DiscoveryCriteriaToJSON(value?: DiscoveryCriteria | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
var _1 = require("./");
|
|
18
|
+
function DiscoveryCriteriaFromJSON(json) {
|
|
19
|
+
return DiscoveryCriteriaFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.DiscoveryCriteriaFromJSON = DiscoveryCriteriaFromJSON;
|
|
22
|
+
function DiscoveryCriteriaFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'confidence_threshold': !runtime_1.exists(json, 'confidence_threshold') ? undefined : json['confidence_threshold'],
|
|
28
|
+
'criteria': (json['criteria'].map(_1.ModelMetadataFromJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.DiscoveryCriteriaFromJSONTyped = DiscoveryCriteriaFromJSONTyped;
|
|
32
|
+
function DiscoveryCriteriaToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'confidence_threshold': value.confidence_threshold,
|
|
41
|
+
'criteria': (value.criteria.map(_1.ModelMetadataToJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.DiscoveryCriteriaToJSON = DiscoveryCriteriaToJSON;
|