@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.
Files changed (132) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/ArtifactsApi.d.ts +37 -0
  6. package/dist/apis/ArtifactsApi.js +158 -0
  7. package/dist/apis/IngestionsApi.d.ts +37 -0
  8. package/dist/apis/IngestionsApi.js +158 -0
  9. package/dist/apis/MetadataApi.d.ts +30 -0
  10. package/dist/apis/MetadataApi.js +122 -0
  11. package/dist/apis/PlatformsApi.d.ts +74 -0
  12. package/dist/apis/PlatformsApi.js +306 -0
  13. package/dist/apis/PublicationsApi.d.ts +60 -0
  14. package/dist/apis/PublicationsApi.js +251 -0
  15. package/dist/apis/index.d.ts +5 -0
  16. package/dist/apis/index.js +12 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +10 -0
  19. package/dist/models/Accelerator.d.ts +46 -0
  20. package/dist/models/Accelerator.js +48 -0
  21. package/dist/models/Artifact.d.ts +46 -0
  22. package/dist/models/Artifact.js +47 -0
  23. package/dist/models/ArtifactIngestion.d.ts +70 -0
  24. package/dist/models/ArtifactIngestion.js +56 -0
  25. package/dist/models/ArtifactIngestionStatus.d.ts +30 -0
  26. package/dist/models/ArtifactIngestionStatus.js +44 -0
  27. package/dist/models/ArtifactPublication.d.ts +70 -0
  28. package/dist/models/ArtifactPublication.js +56 -0
  29. package/dist/models/ArtifactPublicationStatus.d.ts +31 -0
  30. package/dist/models/ArtifactPublicationStatus.js +45 -0
  31. package/dist/models/ArtifactType.d.ts +23 -0
  32. package/dist/models/ArtifactType.js +37 -0
  33. package/dist/models/BadRequestResponse.d.ts +51 -0
  34. package/dist/models/BadRequestResponse.js +48 -0
  35. package/dist/models/CreateModelMetadataResponse.d.ts +51 -0
  36. package/dist/models/CreateModelMetadataResponse.js +48 -0
  37. package/dist/models/DiscoverModelsByPlatformResponse.d.ts +51 -0
  38. package/dist/models/DiscoverModelsByPlatformResponse.js +48 -0
  39. package/dist/models/DiscoveryCriteria.d.ts +34 -0
  40. package/dist/models/DiscoveryCriteria.js +44 -0
  41. package/dist/models/GetModelArtifactResponse.d.ts +52 -0
  42. package/dist/models/GetModelArtifactResponse.js +49 -0
  43. package/dist/models/GetModelByPlatformResponse.d.ts +51 -0
  44. package/dist/models/GetModelByPlatformResponse.js +48 -0
  45. package/dist/models/GetModelIngestionResponse.d.ts +52 -0
  46. package/dist/models/GetModelIngestionResponse.js +49 -0
  47. package/dist/models/GetModelPublicationResponse.d.ts +52 -0
  48. package/dist/models/GetModelPublicationResponse.js +49 -0
  49. package/dist/models/HardwareRequirements.d.ts +52 -0
  50. package/dist/models/HardwareRequirements.js +50 -0
  51. package/dist/models/IngestArtifactRequest.d.ts +45 -0
  52. package/dist/models/IngestArtifactRequest.js +47 -0
  53. package/dist/models/IngestModelArtifactResponse.d.ts +52 -0
  54. package/dist/models/IngestModelArtifactResponse.js +49 -0
  55. package/dist/models/ListModelArtifactResponse.d.ts +52 -0
  56. package/dist/models/ListModelArtifactResponse.js +49 -0
  57. package/dist/models/ListModelIngestionsResponse.d.ts +52 -0
  58. package/dist/models/ListModelIngestionsResponse.js +49 -0
  59. package/dist/models/ListModelPublicationsForArtifactResponse.d.ts +52 -0
  60. package/dist/models/ListModelPublicationsForArtifactResponse.js +49 -0
  61. package/dist/models/ListModelPublicationsResponse.d.ts +52 -0
  62. package/dist/models/ListModelPublicationsResponse.js +49 -0
  63. package/dist/models/ListModelsByPlatformResponse.d.ts +53 -0
  64. package/dist/models/ListModelsByPlatformResponse.js +48 -0
  65. package/dist/models/ListPlatformsResponse.d.ts +52 -0
  66. package/dist/models/ListPlatformsResponse.js +49 -0
  67. package/dist/models/ModelIO.d.ts +33 -0
  68. package/dist/models/ModelIO.js +43 -0
  69. package/dist/models/ModelMetadata.d.ts +239 -0
  70. package/dist/models/ModelMetadata.js +112 -0
  71. package/dist/models/NotFoundResponse.d.ts +51 -0
  72. package/dist/models/NotFoundResponse.js +48 -0
  73. package/dist/models/Platform.d.ts +30 -0
  74. package/dist/models/Platform.js +44 -0
  75. package/dist/models/PlatformDetails.d.ts +34 -0
  76. package/dist/models/PlatformDetails.js +43 -0
  77. package/dist/models/PublishArtifactRequest.d.ts +33 -0
  78. package/dist/models/PublishArtifactRequest.js +43 -0
  79. package/dist/models/PublishModelArtifactResponse.d.ts +52 -0
  80. package/dist/models/PublishModelArtifactResponse.js +49 -0
  81. package/dist/models/ServerErrorResponse.d.ts +51 -0
  82. package/dist/models/ServerErrorResponse.js +48 -0
  83. package/dist/models/SystemRequirement.d.ts +33 -0
  84. package/dist/models/SystemRequirement.js +42 -0
  85. package/dist/models/index.d.ts +33 -0
  86. package/dist/models/index.js +40 -0
  87. package/dist/runtime.d.ts +140 -0
  88. package/dist/runtime.js +420 -0
  89. package/package.json +15 -0
  90. package/src/apis/ArtifactsApi.ts +100 -0
  91. package/src/apis/IngestionsApi.ts +100 -0
  92. package/src/apis/MetadataApi.ts +82 -0
  93. package/src/apis/PlatformsApi.ts +246 -0
  94. package/src/apis/PublicationsApi.ts +185 -0
  95. package/src/apis/index.ts +7 -0
  96. package/src/index.ts +5 -0
  97. package/src/models/Accelerator.ts +87 -0
  98. package/src/models/Artifact.ts +87 -0
  99. package/src/models/ArtifactIngestion.ts +119 -0
  100. package/src/models/ArtifactIngestionStatus.ts +43 -0
  101. package/src/models/ArtifactPublication.ts +119 -0
  102. package/src/models/ArtifactPublicationStatus.ts +44 -0
  103. package/src/models/ArtifactType.ts +36 -0
  104. package/src/models/BadRequestResponse.ts +88 -0
  105. package/src/models/CreateModelMetadataResponse.ts +88 -0
  106. package/src/models/DiscoverModelsByPlatformResponse.ts +88 -0
  107. package/src/models/DiscoveryCriteria.ts +71 -0
  108. package/src/models/GetModelArtifactResponse.ts +95 -0
  109. package/src/models/GetModelByPlatformResponse.ts +88 -0
  110. package/src/models/GetModelIngestionResponse.ts +95 -0
  111. package/src/models/GetModelPublicationResponse.ts +95 -0
  112. package/src/models/HardwareRequirements.ts +95 -0
  113. package/src/models/IngestArtifactRequest.ts +80 -0
  114. package/src/models/IngestModelArtifactResponse.ts +95 -0
  115. package/src/models/ListModelArtifactResponse.ts +95 -0
  116. package/src/models/ListModelIngestionsResponse.ts +95 -0
  117. package/src/models/ListModelPublicationsForArtifactResponse.ts +95 -0
  118. package/src/models/ListModelPublicationsResponse.ts +95 -0
  119. package/src/models/ListModelsByPlatformResponse.ts +88 -0
  120. package/src/models/ListPlatformsResponse.ts +95 -0
  121. package/src/models/ModelIO.ts +64 -0
  122. package/src/models/ModelMetadata.ts +348 -0
  123. package/src/models/NotFoundResponse.ts +88 -0
  124. package/src/models/Platform.ts +43 -0
  125. package/src/models/PlatformDetails.ts +71 -0
  126. package/src/models/PublishArtifactRequest.ts +64 -0
  127. package/src/models/PublishModelArtifactResponse.ts +95 -0
  128. package/src/models/ServerErrorResponse.ts +88 -0
  129. package/src/models/SystemRequirement.ts +64 -0
  130. package/src/models/index.ts +35 -0
  131. package/src/runtime.ts +320 -0
  132. package/tsconfig.json +20 -0
@@ -0,0 +1,33 @@
1
+ /**
2
+ * MLHub Models API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ModelIO
16
+ */
17
+ export interface ModelIO {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ModelIO
22
+ */
23
+ data_type?: string | null;
24
+ /**
25
+ *
26
+ * @type {Array<number>}
27
+ * @memberof ModelIO
28
+ */
29
+ shape?: Array<number> | null;
30
+ }
31
+ export declare function ModelIOFromJSON(json: any): ModelIO;
32
+ export declare function ModelIOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelIO;
33
+ export declare function ModelIOToJSON(value?: ModelIO | null): any;
@@ -0,0 +1,43 @@
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
+ function ModelIOFromJSON(json) {
18
+ return ModelIOFromJSONTyped(json, false);
19
+ }
20
+ exports.ModelIOFromJSON = ModelIOFromJSON;
21
+ function ModelIOFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'data_type': !runtime_1.exists(json, 'data_type') ? undefined : json['data_type'],
27
+ 'shape': !runtime_1.exists(json, 'shape') ? undefined : json['shape'],
28
+ };
29
+ }
30
+ exports.ModelIOFromJSONTyped = ModelIOFromJSONTyped;
31
+ function ModelIOToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'data_type': value.data_type,
40
+ 'shape': value.shape,
41
+ };
42
+ }
43
+ exports.ModelIOToJSON = ModelIOToJSON;
@@ -0,0 +1,239 @@
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 { HardwareRequirements, ModelIO } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ModelMetadata
17
+ */
18
+ export interface ModelMetadata {
19
+ /**
20
+ *
21
+ * @type {any}
22
+ * @memberof ModelMetadata
23
+ */
24
+ annotation?: any | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ModelMetadata
29
+ */
30
+ bias_evaluation_score?: number | null;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof ModelMetadata
35
+ */
36
+ edge_optimized?: boolean | null;
37
+ /**
38
+ *
39
+ * @type {Array<string>}
40
+ * @memberof ModelMetadata
41
+ */
42
+ finetuning_datasets?: Array<string> | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ModelMetadata
47
+ */
48
+ framework?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ModelMetadata
53
+ */
54
+ image?: string | null;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof ModelMetadata
59
+ */
60
+ inference_distributed?: boolean | null;
61
+ /**
62
+ *
63
+ * @type {HardwareRequirements}
64
+ * @memberof ModelMetadata
65
+ */
66
+ inference_hardware?: HardwareRequirements | null;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof ModelMetadata
71
+ */
72
+ inference_max_compute_utilization_percentage?: number | null;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof ModelMetadata
77
+ */
78
+ inference_max_energy_consumption_watts?: number | null;
79
+ /**
80
+ * Inference performance fields
81
+ * @type {number}
82
+ * @memberof ModelMetadata
83
+ */
84
+ inference_max_latency_ms?: number | null;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof ModelMetadata
89
+ */
90
+ inference_max_memory_usage_mb?: number | null;
91
+ /**
92
+ *
93
+ * @type {number}
94
+ * @memberof ModelMetadata
95
+ */
96
+ inference_min_throughput?: number | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof ModelMetadata
101
+ */
102
+ inference_precision?: string | null;
103
+ /**
104
+ *
105
+ * @type {Array<string>}
106
+ * @memberof ModelMetadata
107
+ */
108
+ inference_software_dependencies?: Array<string> | null;
109
+ /**
110
+ * Arbitrary labels
111
+ * @type {Array<string>}
112
+ * @memberof ModelMetadata
113
+ */
114
+ keywords?: Array<string> | null;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof ModelMetadata
119
+ */
120
+ license?: string | null;
121
+ /**
122
+ *
123
+ * @type {Array<ModelIO>}
124
+ * @memberof ModelMetadata
125
+ */
126
+ model_inputs?: Array<ModelIO> | null;
127
+ /**
128
+ *
129
+ * @type {Array<ModelIO>}
130
+ * @memberof ModelMetadata
131
+ */
132
+ model_outputs?: Array<ModelIO> | null;
133
+ /**
134
+ *
135
+ * @type {string}
136
+ * @memberof ModelMetadata
137
+ */
138
+ model_type?: string | null;
139
+ /**
140
+ * Architecture fields
141
+ * @type {boolean}
142
+ * @memberof ModelMetadata
143
+ */
144
+ multi_modal?: boolean | null;
145
+ /**
146
+ *
147
+ * @type {string}
148
+ * @memberof ModelMetadata
149
+ */
150
+ name?: string | null;
151
+ /**
152
+ *
153
+ * @type {boolean}
154
+ * @memberof ModelMetadata
155
+ */
156
+ pretrained?: boolean | null;
157
+ /**
158
+ *
159
+ * @type {Array<string>}
160
+ * @memberof ModelMetadata
161
+ */
162
+ pretraining_datasets?: Array<string> | null;
163
+ /**
164
+ *
165
+ * @type {boolean}
166
+ * @memberof ModelMetadata
167
+ */
168
+ pruned?: boolean | null;
169
+ /**
170
+ *
171
+ * @type {boolean}
172
+ * @memberof ModelMetadata
173
+ */
174
+ quantization_aware?: boolean | null;
175
+ /**
176
+ * Regulatory and Compliance Fields
177
+ * A vector or strings that represent regulatory standards. Ex HIPPA
178
+ * @type {Array<string>}
179
+ * @memberof ModelMetadata
180
+ */
181
+ regulatory?: Array<string> | null;
182
+ /**
183
+ *
184
+ * @type {boolean}
185
+ * @memberof ModelMetadata
186
+ */
187
+ slimmed?: boolean | null;
188
+ /**
189
+ *
190
+ * @type {boolean}
191
+ * @memberof ModelMetadata
192
+ */
193
+ supports_quantization?: boolean | null;
194
+ /**
195
+ * Inference Fields
196
+ * @type {Array<string>}
197
+ * @memberof ModelMetadata
198
+ */
199
+ task_types?: Array<string> | null;
200
+ /**
201
+ *
202
+ * @type {boolean}
203
+ * @memberof ModelMetadata
204
+ */
205
+ training_distributed?: boolean | null;
206
+ /**
207
+ *
208
+ * @type {HardwareRequirements}
209
+ * @memberof ModelMetadata
210
+ */
211
+ training_hardware?: HardwareRequirements | null;
212
+ /**
213
+ * Training performance fields
214
+ * @type {number}
215
+ * @memberof ModelMetadata
216
+ */
217
+ training_max_energy_consumption_watts?: number | null;
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof ModelMetadata
222
+ */
223
+ training_precision?: string | null;
224
+ /**
225
+ * Training-related Fields
226
+ * @type {number}
227
+ * @memberof ModelMetadata
228
+ */
229
+ training_time?: number | null;
230
+ /**
231
+ *
232
+ * @type {string}
233
+ * @memberof ModelMetadata
234
+ */
235
+ version?: string | null;
236
+ }
237
+ export declare function ModelMetadataFromJSON(json: any): ModelMetadata;
238
+ export declare function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelMetadata;
239
+ export declare function ModelMetadataToJSON(value?: ModelMetadata | null): any;
@@ -0,0 +1,112 @@
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 ModelMetadataFromJSON(json) {
19
+ return ModelMetadataFromJSONTyped(json, false);
20
+ }
21
+ exports.ModelMetadataFromJSON = ModelMetadataFromJSON;
22
+ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'annotation': !runtime_1.exists(json, 'annotation') ? undefined : json['annotation'],
28
+ 'bias_evaluation_score': !runtime_1.exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
29
+ 'edge_optimized': !runtime_1.exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
30
+ 'finetuning_datasets': !runtime_1.exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
31
+ 'framework': !runtime_1.exists(json, 'framework') ? undefined : json['framework'],
32
+ 'image': !runtime_1.exists(json, 'image') ? undefined : json['image'],
33
+ 'inference_distributed': !runtime_1.exists(json, 'inference_distributed') ? undefined : json['inference_distributed'],
34
+ 'inference_hardware': !runtime_1.exists(json, 'inference_hardware') ? undefined : _1.HardwareRequirementsFromJSON(json['inference_hardware']),
35
+ 'inference_max_compute_utilization_percentage': !runtime_1.exists(json, 'inference_max_compute_utilization_percentage') ? undefined : json['inference_max_compute_utilization_percentage'],
36
+ 'inference_max_energy_consumption_watts': !runtime_1.exists(json, 'inference_max_energy_consumption_watts') ? undefined : json['inference_max_energy_consumption_watts'],
37
+ 'inference_max_latency_ms': !runtime_1.exists(json, 'inference_max_latency_ms') ? undefined : json['inference_max_latency_ms'],
38
+ 'inference_max_memory_usage_mb': !runtime_1.exists(json, 'inference_max_memory_usage_mb') ? undefined : json['inference_max_memory_usage_mb'],
39
+ 'inference_min_throughput': !runtime_1.exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
40
+ 'inference_precision': !runtime_1.exists(json, 'inference_precision') ? undefined : json['inference_precision'],
41
+ 'inference_software_dependencies': !runtime_1.exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
42
+ 'keywords': !runtime_1.exists(json, 'keywords') ? undefined : json['keywords'],
43
+ 'license': !runtime_1.exists(json, 'license') ? undefined : json['license'],
44
+ 'model_inputs': !runtime_1.exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
45
+ 'model_outputs': !runtime_1.exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : json['model_outputs'].map(_1.ModelIOFromJSON)),
46
+ 'model_type': !runtime_1.exists(json, 'model_type') ? undefined : json['model_type'],
47
+ 'multi_modal': !runtime_1.exists(json, 'multi_modal') ? undefined : json['multi_modal'],
48
+ 'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
49
+ 'pretrained': !runtime_1.exists(json, 'pretrained') ? undefined : json['pretrained'],
50
+ 'pretraining_datasets': !runtime_1.exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
51
+ 'pruned': !runtime_1.exists(json, 'pruned') ? undefined : json['pruned'],
52
+ 'quantization_aware': !runtime_1.exists(json, 'quantization_aware') ? undefined : json['quantization_aware'],
53
+ 'regulatory': !runtime_1.exists(json, 'regulatory') ? undefined : json['regulatory'],
54
+ 'slimmed': !runtime_1.exists(json, 'slimmed') ? undefined : json['slimmed'],
55
+ 'supports_quantization': !runtime_1.exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
56
+ 'task_types': !runtime_1.exists(json, 'task_types') ? undefined : json['task_types'],
57
+ 'training_distributed': !runtime_1.exists(json, 'training_distributed') ? undefined : json['training_distributed'],
58
+ 'training_hardware': !runtime_1.exists(json, 'training_hardware') ? undefined : _1.HardwareRequirementsFromJSON(json['training_hardware']),
59
+ 'training_max_energy_consumption_watts': !runtime_1.exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
60
+ 'training_precision': !runtime_1.exists(json, 'training_precision') ? undefined : json['training_precision'],
61
+ 'training_time': !runtime_1.exists(json, 'training_time') ? undefined : json['training_time'],
62
+ 'version': !runtime_1.exists(json, 'version') ? undefined : json['version'],
63
+ };
64
+ }
65
+ exports.ModelMetadataFromJSONTyped = ModelMetadataFromJSONTyped;
66
+ function ModelMetadataToJSON(value) {
67
+ if (value === undefined) {
68
+ return undefined;
69
+ }
70
+ if (value === null) {
71
+ return null;
72
+ }
73
+ return {
74
+ 'annotation': value.annotation,
75
+ 'bias_evaluation_score': value.bias_evaluation_score,
76
+ 'edge_optimized': value.edge_optimized,
77
+ 'finetuning_datasets': value.finetuning_datasets,
78
+ 'framework': value.framework,
79
+ 'image': value.image,
80
+ 'inference_distributed': value.inference_distributed,
81
+ 'inference_hardware': _1.HardwareRequirementsToJSON(value.inference_hardware),
82
+ 'inference_max_compute_utilization_percentage': value.inference_max_compute_utilization_percentage,
83
+ 'inference_max_energy_consumption_watts': value.inference_max_energy_consumption_watts,
84
+ 'inference_max_latency_ms': value.inference_max_latency_ms,
85
+ 'inference_max_memory_usage_mb': value.inference_max_memory_usage_mb,
86
+ 'inference_min_throughput': value.inference_min_throughput,
87
+ 'inference_precision': value.inference_precision,
88
+ 'inference_software_dependencies': value.inference_software_dependencies,
89
+ 'keywords': value.keywords,
90
+ 'license': value.license,
91
+ 'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
92
+ 'model_outputs': value.model_outputs === undefined ? undefined : (value.model_outputs === null ? null : value.model_outputs.map(_1.ModelIOToJSON)),
93
+ 'model_type': value.model_type,
94
+ 'multi_modal': value.multi_modal,
95
+ 'name': value.name,
96
+ 'pretrained': value.pretrained,
97
+ 'pretraining_datasets': value.pretraining_datasets,
98
+ 'pruned': value.pruned,
99
+ 'quantization_aware': value.quantization_aware,
100
+ 'regulatory': value.regulatory,
101
+ 'slimmed': value.slimmed,
102
+ 'supports_quantization': value.supports_quantization,
103
+ 'task_types': value.task_types,
104
+ 'training_distributed': value.training_distributed,
105
+ 'training_hardware': _1.HardwareRequirementsToJSON(value.training_hardware),
106
+ 'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
107
+ 'training_precision': value.training_precision,
108
+ 'training_time': value.training_time,
109
+ 'version': value.version,
110
+ };
111
+ }
112
+ exports.ModelMetadataToJSON = ModelMetadataToJSON;
@@ -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 NotFoundResponse
16
+ */
17
+ export interface NotFoundResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof NotFoundResponse
22
+ */
23
+ message: string;
24
+ /**
25
+ *
26
+ * @type {object}
27
+ * @memberof NotFoundResponse
28
+ */
29
+ metadata: object;
30
+ /**
31
+ *
32
+ * @type {any}
33
+ * @memberof NotFoundResponse
34
+ */
35
+ result: any | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof NotFoundResponse
40
+ */
41
+ status: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof NotFoundResponse
46
+ */
47
+ version: string;
48
+ }
49
+ export declare function NotFoundResponseFromJSON(json: any): NotFoundResponse;
50
+ export declare function NotFoundResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundResponse;
51
+ export declare function NotFoundResponseToJSON(value?: NotFoundResponse | 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 NotFoundResponseFromJSON(json) {
17
+ return NotFoundResponseFromJSONTyped(json, false);
18
+ }
19
+ exports.NotFoundResponseFromJSON = NotFoundResponseFromJSON;
20
+ function NotFoundResponseFromJSONTyped(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.NotFoundResponseFromJSONTyped = NotFoundResponseFromJSONTyped;
33
+ function NotFoundResponseToJSON(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.NotFoundResponseToJSON = NotFoundResponseToJSON;
@@ -0,0 +1,30 @@
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
+ * Represents a platform for which there are clients registered for one or more of
14
+ * the following APIs: Models, Datasets, Inference, Training. The strum(serialize="")
15
+ * attribute corresponds to the desired "platform" path parameter passed to the
16
+ * `get_client` method of a registrar.
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export declare enum Platform {
21
+ Huggingface = "huggingface",
22
+ Github = "github",
23
+ Git = "git",
24
+ Patra = "patra",
25
+ TaccTapis = "tacc-tapis",
26
+ S3 = "s3"
27
+ }
28
+ export declare function PlatformFromJSON(json: any): Platform;
29
+ export declare function PlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): Platform;
30
+ export declare function PlatformToJSON(value?: Platform | 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
+ /**
17
+ * Represents a platform for which there are clients registered for one or more of
18
+ * the following APIs: Models, Datasets, Inference, Training. The strum(serialize="")
19
+ * attribute corresponds to the desired "platform" path parameter passed to the
20
+ * `get_client` method of a registrar.
21
+ * @export
22
+ * @enum {string}
23
+ */
24
+ var Platform;
25
+ (function (Platform) {
26
+ Platform["Huggingface"] = "huggingface";
27
+ Platform["Github"] = "github";
28
+ Platform["Git"] = "git";
29
+ Platform["Patra"] = "patra";
30
+ Platform["TaccTapis"] = "tacc-tapis";
31
+ Platform["S3"] = "s3";
32
+ })(Platform = exports.Platform || (exports.Platform = {}));
33
+ function PlatformFromJSON(json) {
34
+ return PlatformFromJSONTyped(json, false);
35
+ }
36
+ exports.PlatformFromJSON = PlatformFromJSON;
37
+ function PlatformFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ exports.PlatformFromJSONTyped = PlatformFromJSONTyped;
41
+ function PlatformToJSON(value) {
42
+ return value;
43
+ }
44
+ exports.PlatformToJSON = PlatformToJSON;
@@ -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 { Platform } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PlatformDetails
17
+ */
18
+ export interface PlatformDetails {
19
+ /**
20
+ *
21
+ * @type {Array<string>}
22
+ * @memberof PlatformDetails
23
+ */
24
+ capabilities: Array<string>;
25
+ /**
26
+ *
27
+ * @type {Platform}
28
+ * @memberof PlatformDetails
29
+ */
30
+ name: Platform;
31
+ }
32
+ export declare function PlatformDetailsFromJSON(json: any): PlatformDetails;
33
+ export declare function PlatformDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformDetails;
34
+ export declare function PlatformDetailsToJSON(value?: PlatformDetails | null): any;
@@ -0,0 +1,43 @@
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 _1 = require("./");
17
+ function PlatformDetailsFromJSON(json) {
18
+ return PlatformDetailsFromJSONTyped(json, false);
19
+ }
20
+ exports.PlatformDetailsFromJSON = PlatformDetailsFromJSON;
21
+ function PlatformDetailsFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'capabilities': json['capabilities'],
27
+ 'name': _1.PlatformFromJSON(json['name']),
28
+ };
29
+ }
30
+ exports.PlatformDetailsFromJSONTyped = PlatformDetailsFromJSONTyped;
31
+ function PlatformDetailsToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'capabilities': value.capabilities,
40
+ 'name': _1.PlatformToJSON(value.name),
41
+ };
42
+ }
43
+ exports.PlatformDetailsToJSON = PlatformDetailsToJSON;