@mlhub/models-ts-sdk 0.0.7 → 0.1.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 (67) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/ArtifactsApi.js +20 -13
  3. package/dist/apis/IngestionsApi.js +17 -10
  4. package/dist/apis/ModelsApi.d.ts +17 -4
  5. package/dist/apis/ModelsApi.js +76 -26
  6. package/dist/apis/PlatformsApi.js +25 -18
  7. package/dist/apis/PublicationsApi.js +22 -15
  8. package/dist/apis/TasksApi.js +15 -8
  9. package/dist/apis/index.js +20 -9
  10. package/dist/index.js +17 -6
  11. package/dist/models/Accelerator.js +5 -5
  12. package/dist/models/Artifact.js +5 -5
  13. package/dist/models/ArtifactIngestion.js +7 -7
  14. package/dist/models/ArtifactIngestionStatus.js +5 -4
  15. package/dist/models/ArtifactPublication.js +6 -6
  16. package/dist/models/ArtifactPublicationStatus.js +5 -4
  17. package/dist/models/ArtifactType.js +5 -4
  18. package/dist/models/AssociateModelMetadata.js +3 -3
  19. package/dist/models/AssociateModelMetadataResponse.js +3 -3
  20. package/dist/models/BadRequestResponse.js +3 -3
  21. package/dist/models/CreateModelMetadataResponse.js +3 -3
  22. package/dist/models/DiscoverModelsByPlatformResponse.js +3 -3
  23. package/dist/models/DiscoverModelsResponse.js +3 -3
  24. package/dist/models/DiscoveryCriteria.js +5 -5
  25. package/dist/models/DiscoveryCriterion.d.ts +2 -2
  26. package/dist/models/DiscoveryCriterion.js +42 -42
  27. package/dist/models/GetModelArtifactResponse.js +5 -5
  28. package/dist/models/GetModelByPlatformResponse.js +3 -3
  29. package/dist/models/GetModelIngestionResponse.js +5 -5
  30. package/dist/models/GetModelPublicationResponse.js +5 -5
  31. package/dist/models/GetModelResponse.js +3 -3
  32. package/dist/models/HardwareRequirements.js +8 -8
  33. package/dist/models/IngestArtifactRequest.js +6 -6
  34. package/dist/models/IngestModelArtifactResponse.js +5 -5
  35. package/dist/models/ListModelArtifactResponse.js +3 -3
  36. package/dist/models/ListModelIngestionsResponse.js +3 -3
  37. package/dist/models/ListModelPublicationsForArtifactResponse.js +3 -3
  38. package/dist/models/ListModelPublicationsResponse.js +3 -3
  39. package/dist/models/ListModelsByPlatformResponse.js +3 -3
  40. package/dist/models/ListModelsResponse.js +3 -3
  41. package/dist/models/ListPlatformsResponse.js +3 -3
  42. package/dist/models/ListTasksResponse.js +3 -3
  43. package/dist/models/ModelArtifact.d.ts +1 -1
  44. package/dist/models/ModelArtifact.js +7 -7
  45. package/dist/models/ModelIO.js +5 -5
  46. package/dist/models/ModelMetadata.d.ts +2 -2
  47. package/dist/models/ModelMetadata.js +41 -41
  48. package/dist/models/NotFoundResponse.js +3 -3
  49. package/dist/models/Platform.d.ts +3 -2
  50. package/dist/models/Platform.js +8 -6
  51. package/dist/models/PlatformDetails.js +5 -5
  52. package/dist/models/PublishArtifactRequest.js +4 -4
  53. package/dist/models/PublishModelArtifactResponse.js +5 -5
  54. package/dist/models/ServerErrorResponse.js +3 -3
  55. package/dist/models/SystemRequirement.js +3 -3
  56. package/dist/models/Task.js +5 -4
  57. package/dist/models/index.js +56 -45
  58. package/dist/runtime.d.ts +18 -18
  59. package/dist/runtime.js +45 -35
  60. package/package.json +3 -3
  61. package/src/apis/ModelsApi.ts +56 -15
  62. package/src/apis/PlatformsApi.ts +1 -1
  63. package/src/models/DiscoveryCriterion.ts +2 -2
  64. package/src/models/ModelArtifact.ts +1 -1
  65. package/src/models/ModelMetadata.ts +2 -2
  66. package/src/models/Platform.ts +3 -2
  67. package/src/runtime.ts +1 -1
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DiscoverModelsResponseFromJSON = DiscoverModelsResponseFromJSON;
17
+ exports.DiscoverModelsResponseFromJSONTyped = DiscoverModelsResponseFromJSONTyped;
18
+ exports.DiscoverModelsResponseToJSON = DiscoverModelsResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function DiscoverModelsResponseFromJSON(json) {
18
21
  return DiscoverModelsResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.DiscoverModelsResponseFromJSON = DiscoverModelsResponseFromJSON;
21
23
  function DiscoverModelsResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -30,7 +32,6 @@ function DiscoverModelsResponseFromJSONTyped(json, ignoreDiscriminator) {
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.DiscoverModelsResponseFromJSONTyped = DiscoverModelsResponseFromJSONTyped;
34
35
  function DiscoverModelsResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -46,4 +47,3 @@ function DiscoverModelsResponseToJSON(value) {
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.DiscoverModelsResponseToJSON = DiscoverModelsResponseToJSON;
@@ -13,23 +13,24 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DiscoveryCriteriaFromJSON = DiscoveryCriteriaFromJSON;
17
+ exports.DiscoveryCriteriaFromJSONTyped = DiscoveryCriteriaFromJSONTyped;
18
+ exports.DiscoveryCriteriaToJSON = DiscoveryCriteriaToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  var _1 = require("./");
18
21
  function DiscoveryCriteriaFromJSON(json) {
19
22
  return DiscoveryCriteriaFromJSONTyped(json, false);
20
23
  }
21
- exports.DiscoveryCriteriaFromJSON = DiscoveryCriteriaFromJSON;
22
24
  function DiscoveryCriteriaFromJSONTyped(json, ignoreDiscriminator) {
23
25
  if ((json === undefined) || (json === null)) {
24
26
  return json;
25
27
  }
26
28
  return {
27
- 'confidence_threshold': !runtime_1.exists(json, 'confidence_threshold') ? undefined : json['confidence_threshold'],
29
+ 'confidence_threshold': !(0, runtime_1.exists)(json, 'confidence_threshold') ? undefined : json['confidence_threshold'],
28
30
  'criteria': (json['criteria'].map(_1.DiscoveryCriterionFromJSON)),
29
- 'prompt': !runtime_1.exists(json, 'prompt') ? undefined : json['prompt'],
31
+ 'prompt': !(0, runtime_1.exists)(json, 'prompt') ? undefined : json['prompt'],
30
32
  };
31
33
  }
32
- exports.DiscoveryCriteriaFromJSONTyped = DiscoveryCriteriaFromJSONTyped;
33
34
  function DiscoveryCriteriaToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -43,4 +44,3 @@ function DiscoveryCriteriaToJSON(value) {
43
44
  'prompt': value.prompt,
44
45
  };
45
46
  }
46
- exports.DiscoveryCriteriaToJSON = DiscoveryCriteriaToJSON;
@@ -63,7 +63,7 @@ export interface DiscoveryCriterion {
63
63
  * @type {HardwareRequirements}
64
64
  * @memberof DiscoveryCriterion
65
65
  */
66
- inference_hardware?: HardwareRequirements | null;
66
+ inference_hardware?: HardwareRequirements;
67
67
  /**
68
68
  *
69
69
  * @type {number}
@@ -214,7 +214,7 @@ export interface DiscoveryCriterion {
214
214
  * @type {HardwareRequirements}
215
215
  * @memberof DiscoveryCriterion
216
216
  */
217
- training_hardware?: HardwareRequirements | null;
217
+ training_hardware?: HardwareRequirements;
218
218
  /**
219
219
  * Training performance fields
220
220
  * @type {number}
@@ -13,57 +13,58 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DiscoveryCriterionFromJSON = DiscoveryCriterionFromJSON;
17
+ exports.DiscoveryCriterionFromJSONTyped = DiscoveryCriterionFromJSONTyped;
18
+ exports.DiscoveryCriterionToJSON = DiscoveryCriterionToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  var _1 = require("./");
18
21
  function DiscoveryCriterionFromJSON(json) {
19
22
  return DiscoveryCriterionFromJSONTyped(json, false);
20
23
  }
21
- exports.DiscoveryCriterionFromJSON = DiscoveryCriterionFromJSON;
22
24
  function DiscoveryCriterionFromJSONTyped(json, ignoreDiscriminator) {
23
25
  if ((json === undefined) || (json === null)) {
24
26
  return json;
25
27
  }
26
28
  return {
27
- 'annotations': !runtime_1.exists(json, 'annotations') ? undefined : json['annotations'],
28
- 'author': !runtime_1.exists(json, 'author') ? undefined : json['author'],
29
- 'bias_evaluation_score': !runtime_1.exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
30
- 'edge_optimized': !runtime_1.exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
31
- 'finetuning_datasets': !runtime_1.exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
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
- 'libraries': !runtime_1.exists(json, 'libraries') ? undefined : json['libraries'],
44
- 'license': !runtime_1.exists(json, 'license') ? undefined : json['license'],
45
- 'model_inputs': !runtime_1.exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
46
- 'model_outputs': !runtime_1.exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : json['model_outputs'].map(_1.ModelIOFromJSON)),
47
- 'model_type': !runtime_1.exists(json, 'model_type') ? undefined : json['model_type'],
48
- 'multi_modal': !runtime_1.exists(json, 'multi_modal') ? undefined : json['multi_modal'],
49
- 'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
50
- 'pretrained': !runtime_1.exists(json, 'pretrained') ? undefined : json['pretrained'],
51
- 'pretraining_datasets': !runtime_1.exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
52
- 'pruned': !runtime_1.exists(json, 'pruned') ? undefined : json['pruned'],
53
- 'quantization_aware': !runtime_1.exists(json, 'quantization_aware') ? undefined : json['quantization_aware'],
54
- 'regulatory': !runtime_1.exists(json, 'regulatory') ? undefined : json['regulatory'],
55
- 'slimmed': !runtime_1.exists(json, 'slimmed') ? undefined : json['slimmed'],
56
- 'supports_quantization': !runtime_1.exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
57
- 'task_types': !runtime_1.exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
58
- 'training_distributed': !runtime_1.exists(json, 'training_distributed') ? undefined : json['training_distributed'],
59
- 'training_hardware': !runtime_1.exists(json, 'training_hardware') ? undefined : _1.HardwareRequirementsFromJSON(json['training_hardware']),
60
- 'training_max_energy_consumption_watts': !runtime_1.exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
61
- 'training_precision': !runtime_1.exists(json, 'training_precision') ? undefined : json['training_precision'],
62
- 'training_time': !runtime_1.exists(json, 'training_time') ? undefined : json['training_time'],
63
- 'version': !runtime_1.exists(json, 'version') ? undefined : json['version'],
29
+ 'annotations': !(0, runtime_1.exists)(json, 'annotations') ? undefined : json['annotations'],
30
+ 'author': !(0, runtime_1.exists)(json, 'author') ? undefined : json['author'],
31
+ 'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
32
+ 'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
33
+ 'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
34
+ 'image': !(0, runtime_1.exists)(json, 'image') ? undefined : json['image'],
35
+ 'inference_distributed': !(0, runtime_1.exists)(json, 'inference_distributed') ? undefined : json['inference_distributed'],
36
+ 'inference_hardware': !(0, runtime_1.exists)(json, 'inference_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['inference_hardware']),
37
+ 'inference_max_compute_utilization_percentage': !(0, runtime_1.exists)(json, 'inference_max_compute_utilization_percentage') ? undefined : json['inference_max_compute_utilization_percentage'],
38
+ 'inference_max_energy_consumption_watts': !(0, runtime_1.exists)(json, 'inference_max_energy_consumption_watts') ? undefined : json['inference_max_energy_consumption_watts'],
39
+ 'inference_max_latency_ms': !(0, runtime_1.exists)(json, 'inference_max_latency_ms') ? undefined : json['inference_max_latency_ms'],
40
+ 'inference_max_memory_usage_mb': !(0, runtime_1.exists)(json, 'inference_max_memory_usage_mb') ? undefined : json['inference_max_memory_usage_mb'],
41
+ 'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
42
+ 'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
43
+ 'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
44
+ 'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
45
+ 'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
46
+ 'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
47
+ 'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
48
+ 'model_outputs': !(0, runtime_1.exists)(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : json['model_outputs'].map(_1.ModelIOFromJSON)),
49
+ 'model_type': !(0, runtime_1.exists)(json, 'model_type') ? undefined : json['model_type'],
50
+ 'multi_modal': !(0, runtime_1.exists)(json, 'multi_modal') ? undefined : json['multi_modal'],
51
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
52
+ 'pretrained': !(0, runtime_1.exists)(json, 'pretrained') ? undefined : json['pretrained'],
53
+ 'pretraining_datasets': !(0, runtime_1.exists)(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
54
+ 'pruned': !(0, runtime_1.exists)(json, 'pruned') ? undefined : json['pruned'],
55
+ 'quantization_aware': !(0, runtime_1.exists)(json, 'quantization_aware') ? undefined : json['quantization_aware'],
56
+ 'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
57
+ 'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
58
+ 'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
59
+ 'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
60
+ 'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
61
+ 'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
62
+ 'training_max_energy_consumption_watts': !(0, runtime_1.exists)(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
63
+ 'training_precision': !(0, runtime_1.exists)(json, 'training_precision') ? undefined : json['training_precision'],
64
+ 'training_time': !(0, runtime_1.exists)(json, 'training_time') ? undefined : json['training_time'],
65
+ 'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
64
66
  };
65
67
  }
66
- exports.DiscoveryCriterionFromJSONTyped = DiscoveryCriterionFromJSONTyped;
67
68
  function DiscoveryCriterionToJSON(value) {
68
69
  if (value === undefined) {
69
70
  return undefined;
@@ -79,7 +80,7 @@ function DiscoveryCriterionToJSON(value) {
79
80
  'finetuning_datasets': value.finetuning_datasets,
80
81
  'image': value.image,
81
82
  'inference_distributed': value.inference_distributed,
82
- 'inference_hardware': _1.HardwareRequirementsToJSON(value.inference_hardware),
83
+ 'inference_hardware': (0, _1.HardwareRequirementsToJSON)(value.inference_hardware),
83
84
  'inference_max_compute_utilization_percentage': value.inference_max_compute_utilization_percentage,
84
85
  'inference_max_energy_consumption_watts': value.inference_max_energy_consumption_watts,
85
86
  'inference_max_latency_ms': value.inference_max_latency_ms,
@@ -104,11 +105,10 @@ function DiscoveryCriterionToJSON(value) {
104
105
  'supports_quantization': value.supports_quantization,
105
106
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
106
107
  'training_distributed': value.training_distributed,
107
- 'training_hardware': _1.HardwareRequirementsToJSON(value.training_hardware),
108
+ 'training_hardware': (0, _1.HardwareRequirementsToJSON)(value.training_hardware),
108
109
  'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
109
110
  'training_precision': value.training_precision,
110
111
  'training_time': value.training_time,
111
112
  'version': value.version,
112
113
  };
113
114
  }
114
- exports.DiscoveryCriterionToJSON = DiscoveryCriterionToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetModelArtifactResponseFromJSON = GetModelArtifactResponseFromJSON;
17
+ exports.GetModelArtifactResponseFromJSONTyped = GetModelArtifactResponseFromJSONTyped;
18
+ exports.GetModelArtifactResponseToJSON = GetModelArtifactResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function GetModelArtifactResponseFromJSON(json) {
18
21
  return GetModelArtifactResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.GetModelArtifactResponseFromJSON = GetModelArtifactResponseFromJSON;
21
23
  function GetModelArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -25,12 +27,11 @@ function GetModelArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
25
27
  return {
26
28
  'message': json['message'],
27
29
  'metadata': json['metadata'],
28
- 'result': _1.ModelArtifactFromJSON(json['result']),
30
+ 'result': (0, _1.ModelArtifactFromJSON)(json['result']),
29
31
  'status': json['status'],
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.GetModelArtifactResponseFromJSONTyped = GetModelArtifactResponseFromJSONTyped;
34
35
  function GetModelArtifactResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -41,9 +42,8 @@ function GetModelArtifactResponseToJSON(value) {
41
42
  return {
42
43
  'message': value.message,
43
44
  'metadata': value.metadata,
44
- 'result': _1.ModelArtifactToJSON(value.result),
45
+ 'result': (0, _1.ModelArtifactToJSON)(value.result),
45
46
  'status': value.status,
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.GetModelArtifactResponseToJSON = GetModelArtifactResponseToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetModelByPlatformResponseFromJSON = GetModelByPlatformResponseFromJSON;
17
+ exports.GetModelByPlatformResponseFromJSONTyped = GetModelByPlatformResponseFromJSONTyped;
18
+ exports.GetModelByPlatformResponseToJSON = GetModelByPlatformResponseToJSON;
16
19
  function GetModelByPlatformResponseFromJSON(json) {
17
20
  return GetModelByPlatformResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.GetModelByPlatformResponseFromJSON = GetModelByPlatformResponseFromJSON;
20
22
  function GetModelByPlatformResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function GetModelByPlatformResponseFromJSONTyped(json, ignoreDiscriminator) {
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.GetModelByPlatformResponseFromJSONTyped = GetModelByPlatformResponseFromJSONTyped;
33
34
  function GetModelByPlatformResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function GetModelByPlatformResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.GetModelByPlatformResponseToJSON = GetModelByPlatformResponseToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetModelIngestionResponseFromJSON = GetModelIngestionResponseFromJSON;
17
+ exports.GetModelIngestionResponseFromJSONTyped = GetModelIngestionResponseFromJSONTyped;
18
+ exports.GetModelIngestionResponseToJSON = GetModelIngestionResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function GetModelIngestionResponseFromJSON(json) {
18
21
  return GetModelIngestionResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.GetModelIngestionResponseFromJSON = GetModelIngestionResponseFromJSON;
21
23
  function GetModelIngestionResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -25,12 +27,11 @@ function GetModelIngestionResponseFromJSONTyped(json, ignoreDiscriminator) {
25
27
  return {
26
28
  'message': json['message'],
27
29
  'metadata': json['metadata'],
28
- 'result': _1.ArtifactIngestionFromJSON(json['result']),
30
+ 'result': (0, _1.ArtifactIngestionFromJSON)(json['result']),
29
31
  'status': json['status'],
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.GetModelIngestionResponseFromJSONTyped = GetModelIngestionResponseFromJSONTyped;
34
35
  function GetModelIngestionResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -41,9 +42,8 @@ function GetModelIngestionResponseToJSON(value) {
41
42
  return {
42
43
  'message': value.message,
43
44
  'metadata': value.metadata,
44
- 'result': _1.ArtifactIngestionToJSON(value.result),
45
+ 'result': (0, _1.ArtifactIngestionToJSON)(value.result),
45
46
  'status': value.status,
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.GetModelIngestionResponseToJSON = GetModelIngestionResponseToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetModelPublicationResponseFromJSON = GetModelPublicationResponseFromJSON;
17
+ exports.GetModelPublicationResponseFromJSONTyped = GetModelPublicationResponseFromJSONTyped;
18
+ exports.GetModelPublicationResponseToJSON = GetModelPublicationResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function GetModelPublicationResponseFromJSON(json) {
18
21
  return GetModelPublicationResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.GetModelPublicationResponseFromJSON = GetModelPublicationResponseFromJSON;
21
23
  function GetModelPublicationResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -25,12 +27,11 @@ function GetModelPublicationResponseFromJSONTyped(json, ignoreDiscriminator) {
25
27
  return {
26
28
  'message': json['message'],
27
29
  'metadata': json['metadata'],
28
- 'result': _1.ArtifactPublicationFromJSON(json['result']),
30
+ 'result': (0, _1.ArtifactPublicationFromJSON)(json['result']),
29
31
  'status': json['status'],
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.GetModelPublicationResponseFromJSONTyped = GetModelPublicationResponseFromJSONTyped;
34
35
  function GetModelPublicationResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -41,9 +42,8 @@ function GetModelPublicationResponseToJSON(value) {
41
42
  return {
42
43
  'message': value.message,
43
44
  'metadata': value.metadata,
44
- 'result': _1.ArtifactPublicationToJSON(value.result),
45
+ 'result': (0, _1.ArtifactPublicationToJSON)(value.result),
45
46
  'status': value.status,
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.GetModelPublicationResponseToJSON = GetModelPublicationResponseToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetModelResponseFromJSON = GetModelResponseFromJSON;
17
+ exports.GetModelResponseFromJSONTyped = GetModelResponseFromJSONTyped;
18
+ exports.GetModelResponseToJSON = GetModelResponseToJSON;
16
19
  function GetModelResponseFromJSON(json) {
17
20
  return GetModelResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.GetModelResponseFromJSON = GetModelResponseFromJSON;
20
22
  function GetModelResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function GetModelResponseFromJSONTyped(json, ignoreDiscriminator) {
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.GetModelResponseFromJSONTyped = GetModelResponseFromJSONTyped;
33
34
  function GetModelResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function GetModelResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.GetModelResponseToJSON = GetModelResponseToJSON;
@@ -13,25 +13,26 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.HardwareRequirementsFromJSON = HardwareRequirementsFromJSON;
17
+ exports.HardwareRequirementsFromJSONTyped = HardwareRequirementsFromJSONTyped;
18
+ exports.HardwareRequirementsToJSON = HardwareRequirementsToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  var _1 = require("./");
18
21
  function HardwareRequirementsFromJSON(json) {
19
22
  return HardwareRequirementsFromJSONTyped(json, false);
20
23
  }
21
- exports.HardwareRequirementsFromJSON = HardwareRequirementsFromJSON;
22
24
  function HardwareRequirementsFromJSONTyped(json, ignoreDiscriminator) {
23
25
  if ((json === undefined) || (json === null)) {
24
26
  return json;
25
27
  }
26
28
  return {
27
- 'accelerators': !runtime_1.exists(json, 'accelerators') ? undefined : (json['accelerators'] === null ? null : json['accelerators'].map(_1.AcceleratorFromJSON)),
28
- 'architectures': !runtime_1.exists(json, 'architectures') ? undefined : json['architectures'],
29
- 'cpus': !runtime_1.exists(json, 'cpus') ? undefined : json['cpus'],
30
- 'disk_gb': !runtime_1.exists(json, 'disk_gb') ? undefined : json['disk_gb'],
31
- 'memory_gb': !runtime_1.exists(json, 'memory_gb') ? undefined : json['memory_gb'],
29
+ 'accelerators': !(0, runtime_1.exists)(json, 'accelerators') ? undefined : (json['accelerators'] === null ? null : json['accelerators'].map(_1.AcceleratorFromJSON)),
30
+ 'architectures': !(0, runtime_1.exists)(json, 'architectures') ? undefined : json['architectures'],
31
+ 'cpus': !(0, runtime_1.exists)(json, 'cpus') ? undefined : json['cpus'],
32
+ 'disk_gb': !(0, runtime_1.exists)(json, 'disk_gb') ? undefined : json['disk_gb'],
33
+ 'memory_gb': !(0, runtime_1.exists)(json, 'memory_gb') ? undefined : json['memory_gb'],
32
34
  };
33
35
  }
34
- exports.HardwareRequirementsFromJSONTyped = HardwareRequirementsFromJSONTyped;
35
36
  function HardwareRequirementsToJSON(value) {
36
37
  if (value === undefined) {
37
38
  return undefined;
@@ -47,4 +48,3 @@ function HardwareRequirementsToJSON(value) {
47
48
  'memory_gb': value.memory_gb,
48
49
  };
49
50
  }
50
- exports.HardwareRequirementsToJSON = HardwareRequirementsToJSON;
@@ -13,23 +13,24 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IngestArtifactRequestFromJSON = IngestArtifactRequestFromJSON;
17
+ exports.IngestArtifactRequestFromJSONTyped = IngestArtifactRequestFromJSONTyped;
18
+ exports.IngestArtifactRequestToJSON = IngestArtifactRequestToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  function IngestArtifactRequestFromJSON(json) {
18
21
  return IngestArtifactRequestFromJSONTyped(json, false);
19
22
  }
20
- exports.IngestArtifactRequestFromJSON = IngestArtifactRequestFromJSON;
21
23
  function IngestArtifactRequestFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
24
26
  }
25
27
  return {
26
- 'exclude_paths': !runtime_1.exists(json, 'exclude_paths') ? undefined : json['exclude_paths'],
27
- 'include_paths': !runtime_1.exists(json, 'include_paths') ? undefined : json['include_paths'],
28
+ 'exclude_paths': !(0, runtime_1.exists)(json, 'exclude_paths') ? undefined : json['exclude_paths'],
29
+ 'include_paths': !(0, runtime_1.exists)(json, 'include_paths') ? undefined : json['include_paths'],
28
30
  'params': json['params'],
29
- 'webhook_url': !runtime_1.exists(json, 'webhook_url') ? undefined : json['webhook_url'],
31
+ 'webhook_url': !(0, runtime_1.exists)(json, 'webhook_url') ? undefined : json['webhook_url'],
30
32
  };
31
33
  }
32
- exports.IngestArtifactRequestFromJSONTyped = IngestArtifactRequestFromJSONTyped;
33
34
  function IngestArtifactRequestToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -44,4 +45,3 @@ function IngestArtifactRequestToJSON(value) {
44
45
  'webhook_url': value.webhook_url,
45
46
  };
46
47
  }
47
- exports.IngestArtifactRequestToJSON = IngestArtifactRequestToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IngestModelArtifactResponseFromJSON = IngestModelArtifactResponseFromJSON;
17
+ exports.IngestModelArtifactResponseFromJSONTyped = IngestModelArtifactResponseFromJSONTyped;
18
+ exports.IngestModelArtifactResponseToJSON = IngestModelArtifactResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function IngestModelArtifactResponseFromJSON(json) {
18
21
  return IngestModelArtifactResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.IngestModelArtifactResponseFromJSON = IngestModelArtifactResponseFromJSON;
21
23
  function IngestModelArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -25,12 +27,11 @@ function IngestModelArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
25
27
  return {
26
28
  'message': json['message'],
27
29
  'metadata': json['metadata'],
28
- 'result': _1.ArtifactIngestionFromJSON(json['result']),
30
+ 'result': (0, _1.ArtifactIngestionFromJSON)(json['result']),
29
31
  'status': json['status'],
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.IngestModelArtifactResponseFromJSONTyped = IngestModelArtifactResponseFromJSONTyped;
34
35
  function IngestModelArtifactResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -41,9 +42,8 @@ function IngestModelArtifactResponseToJSON(value) {
41
42
  return {
42
43
  'message': value.message,
43
44
  'metadata': value.metadata,
44
- 'result': _1.ArtifactIngestionToJSON(value.result),
45
+ 'result': (0, _1.ArtifactIngestionToJSON)(value.result),
45
46
  'status': value.status,
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.IngestModelArtifactResponseToJSON = IngestModelArtifactResponseToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListModelArtifactResponseFromJSON = ListModelArtifactResponseFromJSON;
17
+ exports.ListModelArtifactResponseFromJSONTyped = ListModelArtifactResponseFromJSONTyped;
18
+ exports.ListModelArtifactResponseToJSON = ListModelArtifactResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function ListModelArtifactResponseFromJSON(json) {
18
21
  return ListModelArtifactResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.ListModelArtifactResponseFromJSON = ListModelArtifactResponseFromJSON;
21
23
  function ListModelArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -30,7 +32,6 @@ function ListModelArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.ListModelArtifactResponseFromJSONTyped = ListModelArtifactResponseFromJSONTyped;
34
35
  function ListModelArtifactResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -46,4 +47,3 @@ function ListModelArtifactResponseToJSON(value) {
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.ListModelArtifactResponseToJSON = ListModelArtifactResponseToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListModelIngestionsResponseFromJSON = ListModelIngestionsResponseFromJSON;
17
+ exports.ListModelIngestionsResponseFromJSONTyped = ListModelIngestionsResponseFromJSONTyped;
18
+ exports.ListModelIngestionsResponseToJSON = ListModelIngestionsResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function ListModelIngestionsResponseFromJSON(json) {
18
21
  return ListModelIngestionsResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.ListModelIngestionsResponseFromJSON = ListModelIngestionsResponseFromJSON;
21
23
  function ListModelIngestionsResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -30,7 +32,6 @@ function ListModelIngestionsResponseFromJSONTyped(json, ignoreDiscriminator) {
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.ListModelIngestionsResponseFromJSONTyped = ListModelIngestionsResponseFromJSONTyped;
34
35
  function ListModelIngestionsResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -46,4 +47,3 @@ function ListModelIngestionsResponseToJSON(value) {
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.ListModelIngestionsResponseToJSON = ListModelIngestionsResponseToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListModelPublicationsForArtifactResponseFromJSON = ListModelPublicationsForArtifactResponseFromJSON;
17
+ exports.ListModelPublicationsForArtifactResponseFromJSONTyped = ListModelPublicationsForArtifactResponseFromJSONTyped;
18
+ exports.ListModelPublicationsForArtifactResponseToJSON = ListModelPublicationsForArtifactResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function ListModelPublicationsForArtifactResponseFromJSON(json) {
18
21
  return ListModelPublicationsForArtifactResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.ListModelPublicationsForArtifactResponseFromJSON = ListModelPublicationsForArtifactResponseFromJSON;
21
23
  function ListModelPublicationsForArtifactResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -30,7 +32,6 @@ function ListModelPublicationsForArtifactResponseFromJSONTyped(json, ignoreDiscr
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.ListModelPublicationsForArtifactResponseFromJSONTyped = ListModelPublicationsForArtifactResponseFromJSONTyped;
34
35
  function ListModelPublicationsForArtifactResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -46,4 +47,3 @@ function ListModelPublicationsForArtifactResponseToJSON(value) {
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.ListModelPublicationsForArtifactResponseToJSON = ListModelPublicationsForArtifactResponseToJSON;
@@ -13,11 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListModelPublicationsResponseFromJSON = ListModelPublicationsResponseFromJSON;
17
+ exports.ListModelPublicationsResponseFromJSONTyped = ListModelPublicationsResponseFromJSONTyped;
18
+ exports.ListModelPublicationsResponseToJSON = ListModelPublicationsResponseToJSON;
16
19
  var _1 = require("./");
17
20
  function ListModelPublicationsResponseFromJSON(json) {
18
21
  return ListModelPublicationsResponseFromJSONTyped(json, false);
19
22
  }
20
- exports.ListModelPublicationsResponseFromJSON = ListModelPublicationsResponseFromJSON;
21
23
  function ListModelPublicationsResponseFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
@@ -30,7 +32,6 @@ function ListModelPublicationsResponseFromJSONTyped(json, ignoreDiscriminator) {
30
32
  'version': json['version'],
31
33
  };
32
34
  }
33
- exports.ListModelPublicationsResponseFromJSONTyped = ListModelPublicationsResponseFromJSONTyped;
34
35
  function ListModelPublicationsResponseToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -46,4 +47,3 @@ function ListModelPublicationsResponseToJSON(value) {
46
47
  'version': value.version,
47
48
  };
48
49
  }
49
- exports.ListModelPublicationsResponseToJSON = ListModelPublicationsResponseToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListModelsByPlatformResponseFromJSON = ListModelsByPlatformResponseFromJSON;
17
+ exports.ListModelsByPlatformResponseFromJSONTyped = ListModelsByPlatformResponseFromJSONTyped;
18
+ exports.ListModelsByPlatformResponseToJSON = ListModelsByPlatformResponseToJSON;
16
19
  function ListModelsByPlatformResponseFromJSON(json) {
17
20
  return ListModelsByPlatformResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.ListModelsByPlatformResponseFromJSON = ListModelsByPlatformResponseFromJSON;
20
22
  function ListModelsByPlatformResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function ListModelsByPlatformResponseFromJSONTyped(json, ignoreDiscriminator) {
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.ListModelsByPlatformResponseFromJSONTyped = ListModelsByPlatformResponseFromJSONTyped;
33
34
  function ListModelsByPlatformResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function ListModelsByPlatformResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.ListModelsByPlatformResponseToJSON = ListModelsByPlatformResponseToJSON;