@salesforce/lds-adapters-platform-cdp-machine-learning 1.265.0 → 1.266.0-dev10

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 (35) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +1949 -578
  2. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModel.d.ts +28 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModel.d.ts +5 -5
  4. package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +16 -13
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -2
  7. package/dist/es/es2018/types/src/generated/resources/{getSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +1 -1
  8. package/dist/es/es2018/types/src/generated/resources/{patchSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +14 -11
  9. package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +13 -10
  10. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +11 -11
  11. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceInputRepresentation.d.ts +34 -0
  12. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +19 -19
  13. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelCollectionRepresentation.d.ts +3 -3
  14. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +24 -21
  15. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +28 -28
  16. package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldDefinitionInputRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldInputRepresentation.d.ts +35 -0
  18. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +19 -19
  19. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactCollectionRepresentation.d.ts +3 -3
  20. package/dist/es/es2018/types/src/generated/types/CdpMlModelParameterOverrideInputRepresentation.d.ts +34 -0
  21. package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +7 -7
  22. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceCollectionRepresentation.d.ts +5 -5
  23. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +43 -43
  24. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +37 -37
  25. package/dist/es/es2018/types/src/generated/types/CdpPaginatedResponseBaseRepresentation.d.ts +3 -3
  26. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  27. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  28. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
  29. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
  30. package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
  31. package/package.json +16 -5
  32. package/sfdc/index.js +1878 -504
  33. package/src/raml/api.raml +202 -148
  34. package/src/raml/luvio.raml +6 -6
  35. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +0 -25
package/sfdc/index.js CHANGED
@@ -89,6 +89,245 @@ function createLink(ref) {
89
89
  };
90
90
  }
91
91
 
92
+ function validate$s(obj, path = 'CdpMlCustomizableFieldDefinitionInputRepresentation') {
93
+ const v_error = (() => {
94
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
95
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
96
+ }
97
+ const obj_filter = obj.filter;
98
+ const path_filter = path + '.filter';
99
+ if (typeof obj_filter !== 'object' || ArrayIsArray(obj_filter) || obj_filter === null) {
100
+ return new TypeError('Expected "object" but received "' + typeof obj_filter + '" (at "' + path_filter + '")');
101
+ }
102
+ const obj_templateText = obj.templateText;
103
+ const path_templateText = path + '.templateText';
104
+ if (typeof obj_templateText !== 'string') {
105
+ return new TypeError('Expected "string" but received "' + typeof obj_templateText + '" (at "' + path_templateText + '")');
106
+ }
107
+ })();
108
+ return v_error === undefined ? null : v_error;
109
+ }
110
+
111
+ function validate$r(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
112
+ const v_error = (() => {
113
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
114
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
115
+ }
116
+ const obj_customDefinitions = obj.customDefinitions;
117
+ const path_customDefinitions = path + '.customDefinitions';
118
+ if (!ArrayIsArray(obj_customDefinitions)) {
119
+ return new TypeError('Expected "array" but received "' + typeof obj_customDefinitions + '" (at "' + path_customDefinitions + '")');
120
+ }
121
+ for (let i = 0; i < obj_customDefinitions.length; i++) {
122
+ const obj_customDefinitions_item = obj_customDefinitions[i];
123
+ const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
124
+ const referencepath_customDefinitions_itemValidationError = validate$s(obj_customDefinitions_item, path_customDefinitions_item);
125
+ if (referencepath_customDefinitions_itemValidationError !== null) {
126
+ let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionInputRepresentation (at "' + path_customDefinitions_item + '")\n';
127
+ message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
128
+ return new TypeError(message);
129
+ }
130
+ }
131
+ const obj_name = obj.name;
132
+ const path_name = path + '.name';
133
+ if (typeof obj_name !== 'string') {
134
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
135
+ }
136
+ const obj_type = obj.type;
137
+ const path_type = path + '.type';
138
+ if (typeof obj_type !== 'string') {
139
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
140
+ }
141
+ })();
142
+ return v_error === undefined ? null : v_error;
143
+ }
144
+
145
+ function validate$q(obj, path = 'CdpAssetReferenceInputRepresentation') {
146
+ const v_error = (() => {
147
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
148
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
149
+ }
150
+ if (obj.id !== undefined) {
151
+ const obj_id = obj.id;
152
+ const path_id = path + '.id';
153
+ let obj_id_union0 = null;
154
+ const obj_id_union0_error = (() => {
155
+ if (typeof obj_id !== 'string') {
156
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
157
+ }
158
+ })();
159
+ if (obj_id_union0_error != null) {
160
+ obj_id_union0 = obj_id_union0_error.message;
161
+ }
162
+ let obj_id_union1 = null;
163
+ const obj_id_union1_error = (() => {
164
+ if (obj_id !== null) {
165
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
166
+ }
167
+ })();
168
+ if (obj_id_union1_error != null) {
169
+ obj_id_union1 = obj_id_union1_error.message;
170
+ }
171
+ if (obj_id_union0 && obj_id_union1) {
172
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
173
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
174
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
175
+ return new TypeError(message);
176
+ }
177
+ }
178
+ if (obj.name !== undefined) {
179
+ const obj_name = obj.name;
180
+ const path_name = path + '.name';
181
+ let obj_name_union0 = null;
182
+ const obj_name_union0_error = (() => {
183
+ if (typeof obj_name !== 'string') {
184
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
185
+ }
186
+ })();
187
+ if (obj_name_union0_error != null) {
188
+ obj_name_union0 = obj_name_union0_error.message;
189
+ }
190
+ let obj_name_union1 = null;
191
+ const obj_name_union1_error = (() => {
192
+ if (obj_name !== null) {
193
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
194
+ }
195
+ })();
196
+ if (obj_name_union1_error != null) {
197
+ obj_name_union1 = obj_name_union1_error.message;
198
+ }
199
+ if (obj_name_union0 && obj_name_union1) {
200
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
201
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
202
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
203
+ return new TypeError(message);
204
+ }
205
+ }
206
+ if (obj.namespace !== undefined) {
207
+ const obj_namespace = obj.namespace;
208
+ const path_namespace = path + '.namespace';
209
+ let obj_namespace_union0 = null;
210
+ const obj_namespace_union0_error = (() => {
211
+ if (typeof obj_namespace !== 'string') {
212
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
213
+ }
214
+ })();
215
+ if (obj_namespace_union0_error != null) {
216
+ obj_namespace_union0 = obj_namespace_union0_error.message;
217
+ }
218
+ let obj_namespace_union1 = null;
219
+ const obj_namespace_union1_error = (() => {
220
+ if (obj_namespace !== null) {
221
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
222
+ }
223
+ })();
224
+ if (obj_namespace_union1_error != null) {
225
+ obj_namespace_union1 = obj_namespace_union1_error.message;
226
+ }
227
+ if (obj_namespace_union0 && obj_namespace_union1) {
228
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
229
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
230
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
231
+ return new TypeError(message);
232
+ }
233
+ }
234
+ })();
235
+ return v_error === undefined ? null : v_error;
236
+ }
237
+
238
+ function validate$p(obj, path = 'CdpMlModelParameterOverrideInputRepresentation') {
239
+ const v_error = (() => {
240
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
241
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
242
+ }
243
+ if (obj.continuousValue !== undefined) {
244
+ const obj_continuousValue = obj.continuousValue;
245
+ const path_continuousValue = path + '.continuousValue';
246
+ let obj_continuousValue_union0 = null;
247
+ const obj_continuousValue_union0_error = (() => {
248
+ if (typeof obj_continuousValue !== 'number') {
249
+ return new TypeError('Expected "number" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
250
+ }
251
+ })();
252
+ if (obj_continuousValue_union0_error != null) {
253
+ obj_continuousValue_union0 = obj_continuousValue_union0_error.message;
254
+ }
255
+ let obj_continuousValue_union1 = null;
256
+ const obj_continuousValue_union1_error = (() => {
257
+ if (obj_continuousValue !== null) {
258
+ return new TypeError('Expected "null" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
259
+ }
260
+ })();
261
+ if (obj_continuousValue_union1_error != null) {
262
+ obj_continuousValue_union1 = obj_continuousValue_union1_error.message;
263
+ }
264
+ if (obj_continuousValue_union0 && obj_continuousValue_union1) {
265
+ let message = 'Object doesn\'t match union (at "' + path_continuousValue + '")';
266
+ message += '\n' + obj_continuousValue_union0.split('\n').map((line) => '\t' + line).join('\n');
267
+ message += '\n' + obj_continuousValue_union1.split('\n').map((line) => '\t' + line).join('\n');
268
+ return new TypeError(message);
269
+ }
270
+ }
271
+ if (obj.discreteValue !== undefined) {
272
+ const obj_discreteValue = obj.discreteValue;
273
+ const path_discreteValue = path + '.discreteValue';
274
+ let obj_discreteValue_union0 = null;
275
+ const obj_discreteValue_union0_error = (() => {
276
+ if (typeof obj_discreteValue !== 'string') {
277
+ return new TypeError('Expected "string" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
278
+ }
279
+ })();
280
+ if (obj_discreteValue_union0_error != null) {
281
+ obj_discreteValue_union0 = obj_discreteValue_union0_error.message;
282
+ }
283
+ let obj_discreteValue_union1 = null;
284
+ const obj_discreteValue_union1_error = (() => {
285
+ if (obj_discreteValue !== null) {
286
+ return new TypeError('Expected "null" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
287
+ }
288
+ })();
289
+ if (obj_discreteValue_union1_error != null) {
290
+ obj_discreteValue_union1 = obj_discreteValue_union1_error.message;
291
+ }
292
+ if (obj_discreteValue_union0 && obj_discreteValue_union1) {
293
+ let message = 'Object doesn\'t match union (at "' + path_discreteValue + '")';
294
+ message += '\n' + obj_discreteValue_union0.split('\n').map((line) => '\t' + line).join('\n');
295
+ message += '\n' + obj_discreteValue_union1.split('\n').map((line) => '\t' + line).join('\n');
296
+ return new TypeError(message);
297
+ }
298
+ }
299
+ if (obj.parameterName !== undefined) {
300
+ const obj_parameterName = obj.parameterName;
301
+ const path_parameterName = path + '.parameterName';
302
+ let obj_parameterName_union0 = null;
303
+ const obj_parameterName_union0_error = (() => {
304
+ if (typeof obj_parameterName !== 'string') {
305
+ return new TypeError('Expected "string" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
306
+ }
307
+ })();
308
+ if (obj_parameterName_union0_error != null) {
309
+ obj_parameterName_union0 = obj_parameterName_union0_error.message;
310
+ }
311
+ let obj_parameterName_union1 = null;
312
+ const obj_parameterName_union1_error = (() => {
313
+ if (obj_parameterName !== null) {
314
+ return new TypeError('Expected "null" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
315
+ }
316
+ })();
317
+ if (obj_parameterName_union1_error != null) {
318
+ obj_parameterName_union1 = obj_parameterName_union1_error.message;
319
+ }
320
+ if (obj_parameterName_union0 && obj_parameterName_union1) {
321
+ let message = 'Object doesn\'t match union (at "' + path_parameterName + '")';
322
+ message += '\n' + obj_parameterName_union0.split('\n').map((line) => '\t' + line).join('\n');
323
+ message += '\n' + obj_parameterName_union1.split('\n').map((line) => '\t' + line).join('\n');
324
+ return new TypeError(message);
325
+ }
326
+ }
327
+ })();
328
+ return v_error === undefined ? null : v_error;
329
+ }
330
+
92
331
  function validate$o(obj, path = 'CdpMlFilterValueRepresentation') {
93
332
  const v_error = (() => {
94
333
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -288,56 +527,200 @@ function validate$h(obj, path = 'CdpAssetReferenceRepresentation') {
288
527
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
289
528
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
290
529
  }
291
- const obj_createdBy = obj.createdBy;
292
- const path_createdBy = path + '.createdBy';
293
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
294
- if (referencepath_createdByValidationError !== null) {
295
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
296
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
297
- return new TypeError(message);
530
+ if (obj.createdBy !== undefined) {
531
+ const obj_createdBy = obj.createdBy;
532
+ const path_createdBy = path + '.createdBy';
533
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
534
+ if (referencepath_createdByValidationError !== null) {
535
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
536
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
537
+ return new TypeError(message);
538
+ }
539
+ }
540
+ if (obj.createdDate !== undefined) {
541
+ const obj_createdDate = obj.createdDate;
542
+ const path_createdDate = path + '.createdDate';
543
+ let obj_createdDate_union0 = null;
544
+ const obj_createdDate_union0_error = (() => {
545
+ if (typeof obj_createdDate !== 'string') {
546
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
547
+ }
548
+ })();
549
+ if (obj_createdDate_union0_error != null) {
550
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
551
+ }
552
+ let obj_createdDate_union1 = null;
553
+ const obj_createdDate_union1_error = (() => {
554
+ if (obj_createdDate !== null) {
555
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
556
+ }
557
+ })();
558
+ if (obj_createdDate_union1_error != null) {
559
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
560
+ }
561
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
562
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
563
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
564
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
565
+ return new TypeError(message);
566
+ }
298
567
  }
299
- const obj_createdDate = obj.createdDate;
300
- const path_createdDate = path + '.createdDate';
301
- if (typeof obj_createdDate !== 'string') {
302
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
568
+ if (obj.id !== undefined) {
569
+ const obj_id = obj.id;
570
+ const path_id = path + '.id';
571
+ if (typeof obj_id !== 'string') {
572
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
573
+ }
303
574
  }
304
- const obj_id = obj.id;
305
- const path_id = path + '.id';
306
- if (typeof obj_id !== 'string') {
307
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
575
+ if (obj.label !== undefined) {
576
+ const obj_label = obj.label;
577
+ const path_label = path + '.label';
578
+ let obj_label_union0 = null;
579
+ const obj_label_union0_error = (() => {
580
+ if (typeof obj_label !== 'string') {
581
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
582
+ }
583
+ })();
584
+ if (obj_label_union0_error != null) {
585
+ obj_label_union0 = obj_label_union0_error.message;
586
+ }
587
+ let obj_label_union1 = null;
588
+ const obj_label_union1_error = (() => {
589
+ if (obj_label !== null) {
590
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
591
+ }
592
+ })();
593
+ if (obj_label_union1_error != null) {
594
+ obj_label_union1 = obj_label_union1_error.message;
595
+ }
596
+ if (obj_label_union0 && obj_label_union1) {
597
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
598
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
599
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
600
+ return new TypeError(message);
601
+ }
308
602
  }
309
- const obj_label = obj.label;
310
- const path_label = path + '.label';
311
- if (typeof obj_label !== 'string') {
312
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
313
- }
314
- const obj_lastModifiedBy = obj.lastModifiedBy;
315
- const path_lastModifiedBy = path + '.lastModifiedBy';
316
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
317
- if (referencepath_lastModifiedByValidationError !== null) {
318
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
319
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
320
- return new TypeError(message);
603
+ if (obj.lastModifiedBy !== undefined) {
604
+ const obj_lastModifiedBy = obj.lastModifiedBy;
605
+ const path_lastModifiedBy = path + '.lastModifiedBy';
606
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
607
+ if (referencepath_lastModifiedByValidationError !== null) {
608
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
609
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
610
+ return new TypeError(message);
611
+ }
321
612
  }
322
- const obj_lastModifiedDate = obj.lastModifiedDate;
323
- const path_lastModifiedDate = path + '.lastModifiedDate';
324
- if (typeof obj_lastModifiedDate !== 'string') {
325
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
613
+ if (obj.lastModifiedDate !== undefined) {
614
+ const obj_lastModifiedDate = obj.lastModifiedDate;
615
+ const path_lastModifiedDate = path + '.lastModifiedDate';
616
+ let obj_lastModifiedDate_union0 = null;
617
+ const obj_lastModifiedDate_union0_error = (() => {
618
+ if (typeof obj_lastModifiedDate !== 'string') {
619
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
620
+ }
621
+ })();
622
+ if (obj_lastModifiedDate_union0_error != null) {
623
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
624
+ }
625
+ let obj_lastModifiedDate_union1 = null;
626
+ const obj_lastModifiedDate_union1_error = (() => {
627
+ if (obj_lastModifiedDate !== null) {
628
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
629
+ }
630
+ })();
631
+ if (obj_lastModifiedDate_union1_error != null) {
632
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
633
+ }
634
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
635
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
636
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
637
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
638
+ return new TypeError(message);
639
+ }
326
640
  }
327
- const obj_name = obj.name;
328
- const path_name = path + '.name';
329
- if (typeof obj_name !== 'string') {
330
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
641
+ if (obj.name !== undefined) {
642
+ const obj_name = obj.name;
643
+ const path_name = path + '.name';
644
+ let obj_name_union0 = null;
645
+ const obj_name_union0_error = (() => {
646
+ if (typeof obj_name !== 'string') {
647
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
648
+ }
649
+ })();
650
+ if (obj_name_union0_error != null) {
651
+ obj_name_union0 = obj_name_union0_error.message;
652
+ }
653
+ let obj_name_union1 = null;
654
+ const obj_name_union1_error = (() => {
655
+ if (obj_name !== null) {
656
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
657
+ }
658
+ })();
659
+ if (obj_name_union1_error != null) {
660
+ obj_name_union1 = obj_name_union1_error.message;
661
+ }
662
+ if (obj_name_union0 && obj_name_union1) {
663
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
664
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
665
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
666
+ return new TypeError(message);
667
+ }
331
668
  }
332
- const obj_namespace = obj.namespace;
333
- const path_namespace = path + '.namespace';
334
- if (typeof obj_namespace !== 'string') {
335
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
669
+ if (obj.namespace !== undefined) {
670
+ const obj_namespace = obj.namespace;
671
+ const path_namespace = path + '.namespace';
672
+ let obj_namespace_union0 = null;
673
+ const obj_namespace_union0_error = (() => {
674
+ if (typeof obj_namespace !== 'string') {
675
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
676
+ }
677
+ })();
678
+ if (obj_namespace_union0_error != null) {
679
+ obj_namespace_union0 = obj_namespace_union0_error.message;
680
+ }
681
+ let obj_namespace_union1 = null;
682
+ const obj_namespace_union1_error = (() => {
683
+ if (obj_namespace !== null) {
684
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
685
+ }
686
+ })();
687
+ if (obj_namespace_union1_error != null) {
688
+ obj_namespace_union1 = obj_namespace_union1_error.message;
689
+ }
690
+ if (obj_namespace_union0 && obj_namespace_union1) {
691
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
692
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
693
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
694
+ return new TypeError(message);
695
+ }
336
696
  }
337
- const obj_url = obj.url;
338
- const path_url = path + '.url';
339
- if (typeof obj_url !== 'string') {
340
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
697
+ if (obj.url !== undefined) {
698
+ const obj_url = obj.url;
699
+ const path_url = path + '.url';
700
+ let obj_url_union0 = null;
701
+ const obj_url_union0_error = (() => {
702
+ if (typeof obj_url !== 'string') {
703
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
704
+ }
705
+ })();
706
+ if (obj_url_union0_error != null) {
707
+ obj_url_union0 = obj_url_union0_error.message;
708
+ }
709
+ let obj_url_union1 = null;
710
+ const obj_url_union1_error = (() => {
711
+ if (obj_url !== null) {
712
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
713
+ }
714
+ })();
715
+ if (obj_url_union1_error != null) {
716
+ obj_url_union1 = obj_url_union1_error.message;
717
+ }
718
+ if (obj_url_union0 && obj_url_union1) {
719
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
720
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
721
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
722
+ return new TypeError(message);
723
+ }
341
724
  }
342
725
  })();
343
726
  return v_error === undefined ? null : v_error;
@@ -362,26 +745,36 @@ function validate$g(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
362
745
  return v_error === undefined ? null : v_error;
363
746
  }
364
747
 
748
+ // Should match with keyBuilder
749
+ function keyBuilderFromType$1(luvio, object) {
750
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
751
+ const urlArray = object.url.split('/');
752
+ const idOrName = urlArray[urlArray.length - 1];
753
+ return `${keyPrefix}::${RepresentationType$5}:(id:${idOrName},type:${type})`;
754
+ }
755
+
365
756
  const TTL$5 = 1000;
366
- const VERSION$5 = "fd6be4e2373b9db208417a21b7500f5f";
757
+ const VERSION$5 = "f9608bc4ae3825a8da2fc0992ae87b6e";
367
758
  function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
368
759
  const v_error = (() => {
369
760
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
370
761
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
371
762
  }
372
- const obj_actionableFields = obj.actionableFields;
373
- const path_actionableFields = path + '.actionableFields';
374
- if (!ArrayIsArray(obj_actionableFields)) {
375
- return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
376
- }
377
- for (let i = 0; i < obj_actionableFields.length; i++) {
378
- const obj_actionableFields_item = obj_actionableFields[i];
379
- const path_actionableFields_item = path_actionableFields + '[' + i + ']';
380
- const referencepath_actionableFields_itemValidationError = validate$j(obj_actionableFields_item, path_actionableFields_item);
381
- if (referencepath_actionableFields_itemValidationError !== null) {
382
- let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
383
- message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
384
- return new TypeError(message);
763
+ if (obj.actionableFields !== undefined) {
764
+ const obj_actionableFields = obj.actionableFields;
765
+ const path_actionableFields = path + '.actionableFields';
766
+ if (!ArrayIsArray(obj_actionableFields)) {
767
+ return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
768
+ }
769
+ for (let i = 0; i < obj_actionableFields.length; i++) {
770
+ const obj_actionableFields_item = obj_actionableFields[i];
771
+ const path_actionableFields_item = path_actionableFields + '[' + i + ']';
772
+ const referencepath_actionableFields_itemValidationError = validate$j(obj_actionableFields_item, path_actionableFields_item);
773
+ if (referencepath_actionableFields_itemValidationError !== null) {
774
+ let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
775
+ message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
776
+ return new TypeError(message);
777
+ }
385
778
  }
386
779
  }
387
780
  const obj_artifact = obj.artifact;
@@ -397,18 +790,43 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
397
790
  if (typeof obj_capability !== 'string') {
398
791
  return new TypeError('Expected "string" but received "' + typeof obj_capability + '" (at "' + path_capability + '")');
399
792
  }
400
- const obj_createdBy = obj.createdBy;
401
- const path_createdBy = path + '.createdBy';
402
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
403
- if (referencepath_createdByValidationError !== null) {
404
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
405
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
406
- return new TypeError(message);
793
+ if (obj.createdBy !== undefined) {
794
+ const obj_createdBy = obj.createdBy;
795
+ const path_createdBy = path + '.createdBy';
796
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
797
+ if (referencepath_createdByValidationError !== null) {
798
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
799
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
800
+ return new TypeError(message);
801
+ }
407
802
  }
408
- const obj_createdDate = obj.createdDate;
409
- const path_createdDate = path + '.createdDate';
410
- if (typeof obj_createdDate !== 'string') {
411
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
803
+ if (obj.createdDate !== undefined) {
804
+ const obj_createdDate = obj.createdDate;
805
+ const path_createdDate = path + '.createdDate';
806
+ let obj_createdDate_union0 = null;
807
+ const obj_createdDate_union0_error = (() => {
808
+ if (typeof obj_createdDate !== 'string') {
809
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
810
+ }
811
+ })();
812
+ if (obj_createdDate_union0_error != null) {
813
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
814
+ }
815
+ let obj_createdDate_union1 = null;
816
+ const obj_createdDate_union1_error = (() => {
817
+ if (obj_createdDate !== null) {
818
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
819
+ }
820
+ })();
821
+ if (obj_createdDate_union1_error != null) {
822
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
823
+ }
824
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
825
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
826
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
827
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
828
+ return new TypeError(message);
829
+ }
412
830
  }
413
831
  const obj_customizableFields = obj.customizableFields;
414
832
  const path_customizableFields = path + '.customizableFields';
@@ -425,10 +843,33 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
425
843
  return new TypeError(message);
426
844
  }
427
845
  }
428
- const obj_description = obj.description;
429
- const path_description = path + '.description';
430
- if (typeof obj_description !== 'string') {
431
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
846
+ if (obj.description !== undefined) {
847
+ const obj_description = obj.description;
848
+ const path_description = path + '.description';
849
+ let obj_description_union0 = null;
850
+ const obj_description_union0_error = (() => {
851
+ if (typeof obj_description !== 'string') {
852
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
853
+ }
854
+ })();
855
+ if (obj_description_union0_error != null) {
856
+ obj_description_union0 = obj_description_union0_error.message;
857
+ }
858
+ let obj_description_union1 = null;
859
+ const obj_description_union1_error = (() => {
860
+ if (obj_description !== null) {
861
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
862
+ }
863
+ })();
864
+ if (obj_description_union1_error != null) {
865
+ obj_description_union1 = obj_description_union1_error.message;
866
+ }
867
+ if (obj_description_union0 && obj_description_union1) {
868
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
869
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
870
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
871
+ return new TypeError(message);
872
+ }
432
873
  }
433
874
  const obj_filter = obj.filter;
434
875
  const path_filter = path + '.filter';
@@ -438,56 +879,156 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
438
879
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
439
880
  return new TypeError(message);
440
881
  }
441
- const obj_id = obj.id;
442
- const path_id = path + '.id';
443
- if (typeof obj_id !== 'string') {
444
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
882
+ if (obj.id !== undefined) {
883
+ const obj_id = obj.id;
884
+ const path_id = path + '.id';
885
+ if (typeof obj_id !== 'string') {
886
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
887
+ }
445
888
  }
446
- const obj_label = obj.label;
447
- const path_label = path + '.label';
448
- if (typeof obj_label !== 'string') {
449
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
450
- }
451
- const obj_lastActivatedBy = obj.lastActivatedBy;
452
- const path_lastActivatedBy = path + '.lastActivatedBy';
453
- const referencepath_lastActivatedByValidationError = validate$i(obj_lastActivatedBy, path_lastActivatedBy);
454
- if (referencepath_lastActivatedByValidationError !== null) {
455
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
456
- message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
457
- return new TypeError(message);
889
+ if (obj.label !== undefined) {
890
+ const obj_label = obj.label;
891
+ const path_label = path + '.label';
892
+ let obj_label_union0 = null;
893
+ const obj_label_union0_error = (() => {
894
+ if (typeof obj_label !== 'string') {
895
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
896
+ }
897
+ })();
898
+ if (obj_label_union0_error != null) {
899
+ obj_label_union0 = obj_label_union0_error.message;
900
+ }
901
+ let obj_label_union1 = null;
902
+ const obj_label_union1_error = (() => {
903
+ if (obj_label !== null) {
904
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
905
+ }
906
+ })();
907
+ if (obj_label_union1_error != null) {
908
+ obj_label_union1 = obj_label_union1_error.message;
909
+ }
910
+ if (obj_label_union0 && obj_label_union1) {
911
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
912
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
913
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
914
+ return new TypeError(message);
915
+ }
458
916
  }
459
- const obj_lastActivatedDate = obj.lastActivatedDate;
460
- const path_lastActivatedDate = path + '.lastActivatedDate';
461
- if (typeof obj_lastActivatedDate !== 'string') {
462
- return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
463
- }
464
- const obj_lastModifiedBy = obj.lastModifiedBy;
465
- const path_lastModifiedBy = path + '.lastModifiedBy';
466
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
467
- if (referencepath_lastModifiedByValidationError !== null) {
468
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
469
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
470
- return new TypeError(message);
917
+ if (obj.lastActivatedBy !== undefined) {
918
+ const obj_lastActivatedBy = obj.lastActivatedBy;
919
+ const path_lastActivatedBy = path + '.lastActivatedBy';
920
+ const referencepath_lastActivatedByValidationError = validate$i(obj_lastActivatedBy, path_lastActivatedBy);
921
+ if (referencepath_lastActivatedByValidationError !== null) {
922
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
923
+ message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
924
+ return new TypeError(message);
925
+ }
926
+ }
927
+ if (obj.lastActivatedDate !== undefined) {
928
+ const obj_lastActivatedDate = obj.lastActivatedDate;
929
+ const path_lastActivatedDate = path + '.lastActivatedDate';
930
+ if (typeof obj_lastActivatedDate !== 'string') {
931
+ return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
932
+ }
471
933
  }
472
- const obj_lastModifiedDate = obj.lastModifiedDate;
473
- const path_lastModifiedDate = path + '.lastModifiedDate';
474
- if (typeof obj_lastModifiedDate !== 'string') {
475
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
934
+ if (obj.lastModifiedBy !== undefined) {
935
+ const obj_lastModifiedBy = obj.lastModifiedBy;
936
+ const path_lastModifiedBy = path + '.lastModifiedBy';
937
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
938
+ if (referencepath_lastModifiedByValidationError !== null) {
939
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
940
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
941
+ return new TypeError(message);
942
+ }
943
+ }
944
+ if (obj.lastModifiedDate !== undefined) {
945
+ const obj_lastModifiedDate = obj.lastModifiedDate;
946
+ const path_lastModifiedDate = path + '.lastModifiedDate';
947
+ let obj_lastModifiedDate_union0 = null;
948
+ const obj_lastModifiedDate_union0_error = (() => {
949
+ if (typeof obj_lastModifiedDate !== 'string') {
950
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
951
+ }
952
+ })();
953
+ if (obj_lastModifiedDate_union0_error != null) {
954
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
955
+ }
956
+ let obj_lastModifiedDate_union1 = null;
957
+ const obj_lastModifiedDate_union1_error = (() => {
958
+ if (obj_lastModifiedDate !== null) {
959
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
960
+ }
961
+ })();
962
+ if (obj_lastModifiedDate_union1_error != null) {
963
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
964
+ }
965
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
966
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
967
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
968
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
969
+ return new TypeError(message);
970
+ }
476
971
  }
477
- const obj_metricsUrl = obj.metricsUrl;
478
- const path_metricsUrl = path + '.metricsUrl';
479
- if (typeof obj_metricsUrl !== 'string') {
480
- return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
972
+ if (obj.metricsUrl !== undefined) {
973
+ const obj_metricsUrl = obj.metricsUrl;
974
+ const path_metricsUrl = path + '.metricsUrl';
975
+ let obj_metricsUrl_union0 = null;
976
+ const obj_metricsUrl_union0_error = (() => {
977
+ if (typeof obj_metricsUrl !== 'string') {
978
+ return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
979
+ }
980
+ })();
981
+ if (obj_metricsUrl_union0_error != null) {
982
+ obj_metricsUrl_union0 = obj_metricsUrl_union0_error.message;
983
+ }
984
+ let obj_metricsUrl_union1 = null;
985
+ const obj_metricsUrl_union1_error = (() => {
986
+ if (obj_metricsUrl !== null) {
987
+ return new TypeError('Expected "null" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
988
+ }
989
+ })();
990
+ if (obj_metricsUrl_union1_error != null) {
991
+ obj_metricsUrl_union1 = obj_metricsUrl_union1_error.message;
992
+ }
993
+ if (obj_metricsUrl_union0 && obj_metricsUrl_union1) {
994
+ let message = 'Object doesn\'t match union (at "' + path_metricsUrl + '")';
995
+ message += '\n' + obj_metricsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
996
+ message += '\n' + obj_metricsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
997
+ return new TypeError(message);
998
+ }
481
999
  }
482
1000
  const obj_name = obj.name;
483
1001
  const path_name = path + '.name';
484
1002
  if (typeof obj_name !== 'string') {
485
1003
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
486
1004
  }
487
- const obj_namespace = obj.namespace;
488
- const path_namespace = path + '.namespace';
489
- if (typeof obj_namespace !== 'string') {
490
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1005
+ if (obj.namespace !== undefined) {
1006
+ const obj_namespace = obj.namespace;
1007
+ const path_namespace = path + '.namespace';
1008
+ let obj_namespace_union0 = null;
1009
+ const obj_namespace_union0_error = (() => {
1010
+ if (typeof obj_namespace !== 'string') {
1011
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1012
+ }
1013
+ })();
1014
+ if (obj_namespace_union0_error != null) {
1015
+ obj_namespace_union0 = obj_namespace_union0_error.message;
1016
+ }
1017
+ let obj_namespace_union1 = null;
1018
+ const obj_namespace_union1_error = (() => {
1019
+ if (obj_namespace !== null) {
1020
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1021
+ }
1022
+ })();
1023
+ if (obj_namespace_union1_error != null) {
1024
+ obj_namespace_union1 = obj_namespace_union1_error.message;
1025
+ }
1026
+ if (obj_namespace_union0 && obj_namespace_union1) {
1027
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
1028
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
1029
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
1030
+ return new TypeError(message);
1031
+ }
491
1032
  }
492
1033
  const obj_parameterOverrides = obj.parameterOverrides;
493
1034
  const path_parameterOverrides = path + '.parameterOverrides';
@@ -523,15 +1064,6 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
523
1064
  return v_error === undefined ? null : v_error;
524
1065
  }
525
1066
  const RepresentationType$5 = 'CdpMlConfiguredModelRepresentation';
526
- function keyBuilder$d(luvio, config) {
527
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.modelId;
528
- }
529
- function keyBuilderFromType$1(luvio, object) {
530
- const keyParams = {
531
- modelId: object.id
532
- };
533
- return keyBuilder$d(luvio, keyParams);
534
- }
535
1067
  function normalize$5(input, existing, path, luvio, store, timestamp) {
536
1068
  return input;
537
1069
  }
@@ -608,60 +1140,61 @@ function createResourceRequest$7(config) {
608
1140
  };
609
1141
  }
610
1142
 
611
- const adapterName$7 = 'createCdpMlConfiguredModelCollection';
612
- const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
1143
+ const adapterName$7 = 'createCdpMlConfiguredModel';
1144
+ const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
613
1145
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
614
- generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
615
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
616
- generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
617
- generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
618
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
619
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
620
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
621
- generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
622
- generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
623
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
1146
+ generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
1147
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
1148
+ generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
1149
+ generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
1150
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
1151
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
1152
+ generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
1153
+ generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
1154
+ generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
1155
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
624
1156
  ];
625
- const createCdpMlConfiguredModelCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
626
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
1157
+ const createCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createCdpMlConfiguredModel_ConfigPropertyMetadata);
1158
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModel_ConfigPropertyMetadata);
627
1159
  function typeCheckConfig$7(untrustedConfig) {
628
1160
  const config = {};
629
- typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
1161
+ typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
630
1162
  const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
631
1163
  if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
632
1164
  const untrustedConfig_actionableFields_array = [];
633
1165
  for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
634
1166
  const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
635
- if (untrustedIsObject(untrustedConfig_actionableFields_item)) {
636
- const untrustedConfig_actionableFields_item_object = {};
637
- if (untrustedConfig_actionableFields_item_object !== undefined && Object.keys(untrustedConfig_actionableFields_item_object).length >= 0) {
638
- untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
639
- }
1167
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_actionableFields_item);
1168
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
1169
+ untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
640
1170
  }
641
1171
  }
642
1172
  config.actionableFields = untrustedConfig_actionableFields_array;
643
1173
  }
644
1174
  const untrustedConfig_artifact = untrustedConfig.artifact;
645
- if (untrustedIsObject(untrustedConfig_artifact)) {
646
- const untrustedConfig_artifact_object = {};
647
- if (untrustedConfig_artifact_object !== undefined && Object.keys(untrustedConfig_artifact_object).length >= 0) {
648
- config.artifact = untrustedConfig_artifact_object;
649
- }
1175
+ const referenceCdpAssetReferenceInputRepresentationValidationError = validate$q(untrustedConfig_artifact);
1176
+ if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
1177
+ config.artifact = untrustedConfig_artifact;
650
1178
  }
651
1179
  const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
652
1180
  if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
653
1181
  const untrustedConfig_customizableFields_array = [];
654
1182
  for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
655
1183
  const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
656
- if (untrustedIsObject(untrustedConfig_customizableFields_item)) {
657
- const untrustedConfig_customizableFields_item_object = {};
658
- if (untrustedConfig_customizableFields_item_object !== undefined && Object.keys(untrustedConfig_customizableFields_item_object).length >= 0) {
659
- untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
660
- }
1184
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_customizableFields_item);
1185
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
1186
+ untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
661
1187
  }
662
1188
  }
663
1189
  config.customizableFields = untrustedConfig_customizableFields_array;
664
1190
  }
1191
+ const untrustedConfig_description = untrustedConfig.description;
1192
+ if (typeof untrustedConfig_description === 'string') {
1193
+ config.description = untrustedConfig_description;
1194
+ }
1195
+ if (untrustedConfig_description === null) {
1196
+ config.description = untrustedConfig_description;
1197
+ }
665
1198
  const untrustedConfig_filter = untrustedConfig.filter;
666
1199
  if (untrustedIsObject(untrustedConfig_filter)) {
667
1200
  const untrustedConfig_filter_object = {};
@@ -669,16 +1202,21 @@ function typeCheckConfig$7(untrustedConfig) {
669
1202
  config.filter = untrustedConfig_filter_object;
670
1203
  }
671
1204
  }
1205
+ const untrustedConfig_label = untrustedConfig.label;
1206
+ if (typeof untrustedConfig_label === 'string') {
1207
+ config.label = untrustedConfig_label;
1208
+ }
1209
+ if (untrustedConfig_label === null) {
1210
+ config.label = untrustedConfig_label;
1211
+ }
672
1212
  const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
673
1213
  if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
674
1214
  const untrustedConfig_parameterOverrides_array = [];
675
1215
  for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
676
1216
  const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
677
- if (untrustedIsObject(untrustedConfig_parameterOverrides_item)) {
678
- const untrustedConfig_parameterOverrides_item_object = {};
679
- if (untrustedConfig_parameterOverrides_item_object !== undefined && Object.keys(untrustedConfig_parameterOverrides_item_object).length >= 0) {
680
- untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
681
- }
1217
+ const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$p(untrustedConfig_parameterOverrides_item);
1218
+ if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
1219
+ untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
682
1220
  }
683
1221
  }
684
1222
  config.parameterOverrides = untrustedConfig_parameterOverrides_array;
@@ -716,25 +1254,32 @@ function buildNetworkSnapshot$7(luvio, config, options) {
716
1254
  throw response;
717
1255
  });
718
1256
  }
719
- const createCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => {
720
- return function createCdpMlConfiguredModelCollection(untrustedConfig) {
721
- const config = validateAdapterConfig$7(untrustedConfig, createCdpMlConfiguredModelCollection_ConfigPropertyNames);
1257
+ const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
1258
+ return function createCdpMlConfiguredModel(untrustedConfig) {
1259
+ const config = validateAdapterConfig$7(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
722
1260
  // Invalid or incomplete config
723
1261
  if (config === null) {
724
- throw new Error('Invalid config for "createCdpMlConfiguredModelCollection"');
1262
+ throw new Error('Invalid config for "createCdpMlConfiguredModel"');
725
1263
  }
726
1264
  return buildNetworkSnapshot$7(luvio, config);
727
1265
  };
728
1266
  };
729
1267
 
730
- function select$b(luvio, params) {
731
- return select$d();
1268
+ function IsWorkspaceId(workspaceIdOrName) {
1269
+ return workspaceIdOrName.indexOf('__') === -1 || workspaceIdOrName.startsWith('12s');
1270
+ }
1271
+ function IsModelId(modelIdOrName) {
1272
+ return modelIdOrName.startsWith('12r');
732
1273
  }
1274
+
733
1275
  function keyBuilder$c(luvio, params) {
734
- return keyBuilder$d(luvio, {
735
- modelId: params.urlParams.modelId,
736
- workspaceIdOrName: params.urlParams.workspaceIdOrName
737
- });
1276
+ const modelIdOrName = params.urlParams.modelIdOrName;
1277
+ const type = IsModelId(modelIdOrName) ? 'id' : 'name';
1278
+ return `${keyPrefix}::${RepresentationType$5}:(id:${params.urlParams.modelIdOrName},type:${type})`;
1279
+ }
1280
+
1281
+ function select$b(luvio, params) {
1282
+ return select$d();
738
1283
  }
739
1284
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
740
1285
  getTypeCacheKeys$5(storeKeyMap, luvio, response);
@@ -772,7 +1317,7 @@ function createResourceRequest$6(config) {
772
1317
  const headers = {};
773
1318
  return {
774
1319
  baseUri: '/services/data/v60.0',
775
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
1320
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
776
1321
  method: 'get',
777
1322
  body: null,
778
1323
  urlParams: config.urlParams,
@@ -784,7 +1329,7 @@ function createResourceRequest$6(config) {
784
1329
 
785
1330
  const adapterName$6 = 'getCdpMlConfiguredModel';
786
1331
  const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
787
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
1332
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
788
1333
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
789
1334
  ];
790
1335
  const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlConfiguredModel_ConfigPropertyMetadata);
@@ -870,25 +1415,27 @@ const getCdpMlConfiguredModelAdapterFactory = (luvio) => function cdpMachineLear
870
1415
  };
871
1416
 
872
1417
  const TTL$4 = 1000;
873
- const VERSION$4 = "06a9e2678743ed66dde7a06f3c7a39c6";
1418
+ const VERSION$4 = "2b3092c57f5f0a17513ae28d59875559";
874
1419
  function validate$e(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
875
1420
  const v_error = (() => {
876
1421
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
877
1422
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
878
1423
  }
879
- const obj_models = obj.models;
880
- const path_models = path + '.models';
881
- if (!ArrayIsArray(obj_models)) {
882
- return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
883
- }
884
- for (let i = 0; i < obj_models.length; i++) {
885
- const obj_models_item = obj_models[i];
886
- const path_models_item = path_models + '[' + i + ']';
887
- const referencepath_models_itemValidationError = validate$f(obj_models_item, path_models_item);
888
- if (referencepath_models_itemValidationError !== null) {
889
- let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
890
- message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
891
- return new TypeError(message);
1424
+ if (obj.models !== undefined) {
1425
+ const obj_models = obj.models;
1426
+ const path_models = path + '.models';
1427
+ if (!ArrayIsArray(obj_models)) {
1428
+ return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
1429
+ }
1430
+ for (let i = 0; i < obj_models.length; i++) {
1431
+ const obj_models_item = obj_models[i];
1432
+ const path_models_item = path_models + '[' + i + ']';
1433
+ const referencepath_models_itemValidationError = validate$f(obj_models_item, path_models_item);
1434
+ if (referencepath_models_itemValidationError !== null) {
1435
+ let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
1436
+ message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1437
+ return new TypeError(message);
1438
+ }
892
1439
  }
893
1440
  }
894
1441
  const obj_totalSize = obj.totalSize;
@@ -1126,34 +1673,84 @@ function validate$c(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
1126
1673
  }
1127
1674
 
1128
1675
  const TTL$3 = 1000;
1129
- const VERSION$3 = "00d91a5e9670906e48ab7002bbc53044";
1676
+ const VERSION$3 = "6d28f4bb028ba6cba885d3f305c117f4";
1130
1677
  function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1131
1678
  const v_error = (() => {
1132
1679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1133
1680
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1134
1681
  }
1135
- const obj_createdBy = obj.createdBy;
1136
- const path_createdBy = path + '.createdBy';
1137
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1138
- if (referencepath_createdByValidationError !== null) {
1139
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1140
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1141
- return new TypeError(message);
1142
- }
1143
- const obj_createdDate = obj.createdDate;
1144
- const path_createdDate = path + '.createdDate';
1145
- if (typeof obj_createdDate !== 'string') {
1146
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1682
+ if (obj.createdBy !== undefined) {
1683
+ const obj_createdBy = obj.createdBy;
1684
+ const path_createdBy = path + '.createdBy';
1685
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1686
+ if (referencepath_createdByValidationError !== null) {
1687
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1688
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1689
+ return new TypeError(message);
1690
+ }
1147
1691
  }
1148
- const obj_description = obj.description;
1149
- const path_description = path + '.description';
1150
- if (typeof obj_description !== 'string') {
1151
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1692
+ if (obj.createdDate !== undefined) {
1693
+ const obj_createdDate = obj.createdDate;
1694
+ const path_createdDate = path + '.createdDate';
1695
+ let obj_createdDate_union0 = null;
1696
+ const obj_createdDate_union0_error = (() => {
1697
+ if (typeof obj_createdDate !== 'string') {
1698
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1699
+ }
1700
+ })();
1701
+ if (obj_createdDate_union0_error != null) {
1702
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
1703
+ }
1704
+ let obj_createdDate_union1 = null;
1705
+ const obj_createdDate_union1_error = (() => {
1706
+ if (obj_createdDate !== null) {
1707
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1708
+ }
1709
+ })();
1710
+ if (obj_createdDate_union1_error != null) {
1711
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
1712
+ }
1713
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
1714
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
1715
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1716
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1717
+ return new TypeError(message);
1718
+ }
1152
1719
  }
1153
- const obj_id = obj.id;
1154
- const path_id = path + '.id';
1155
- if (typeof obj_id !== 'string') {
1156
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1720
+ if (obj.description !== undefined) {
1721
+ const obj_description = obj.description;
1722
+ const path_description = path + '.description';
1723
+ let obj_description_union0 = null;
1724
+ const obj_description_union0_error = (() => {
1725
+ if (typeof obj_description !== 'string') {
1726
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1727
+ }
1728
+ })();
1729
+ if (obj_description_union0_error != null) {
1730
+ obj_description_union0 = obj_description_union0_error.message;
1731
+ }
1732
+ let obj_description_union1 = null;
1733
+ const obj_description_union1_error = (() => {
1734
+ if (obj_description !== null) {
1735
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1736
+ }
1737
+ })();
1738
+ if (obj_description_union1_error != null) {
1739
+ obj_description_union1 = obj_description_union1_error.message;
1740
+ }
1741
+ if (obj_description_union0 && obj_description_union1) {
1742
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
1743
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1744
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
1745
+ return new TypeError(message);
1746
+ }
1747
+ }
1748
+ if (obj.id !== undefined) {
1749
+ const obj_id = obj.id;
1750
+ const path_id = path + '.id';
1751
+ if (typeof obj_id !== 'string') {
1752
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1753
+ }
1157
1754
  }
1158
1755
  const obj_inputFields = obj.inputFields;
1159
1756
  const path_inputFields = path + '.inputFields';
@@ -1170,23 +1767,71 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1170
1767
  return new TypeError(message);
1171
1768
  }
1172
1769
  }
1173
- const obj_label = obj.label;
1174
- const path_label = path + '.label';
1175
- if (typeof obj_label !== 'string') {
1176
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1770
+ if (obj.label !== undefined) {
1771
+ const obj_label = obj.label;
1772
+ const path_label = path + '.label';
1773
+ let obj_label_union0 = null;
1774
+ const obj_label_union0_error = (() => {
1775
+ if (typeof obj_label !== 'string') {
1776
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1777
+ }
1778
+ })();
1779
+ if (obj_label_union0_error != null) {
1780
+ obj_label_union0 = obj_label_union0_error.message;
1781
+ }
1782
+ let obj_label_union1 = null;
1783
+ const obj_label_union1_error = (() => {
1784
+ if (obj_label !== null) {
1785
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1786
+ }
1787
+ })();
1788
+ if (obj_label_union1_error != null) {
1789
+ obj_label_union1 = obj_label_union1_error.message;
1790
+ }
1791
+ if (obj_label_union0 && obj_label_union1) {
1792
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
1793
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
1794
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
1795
+ return new TypeError(message);
1796
+ }
1177
1797
  }
1178
- const obj_lastModifiedBy = obj.lastModifiedBy;
1179
- const path_lastModifiedBy = path + '.lastModifiedBy';
1180
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1181
- if (referencepath_lastModifiedByValidationError !== null) {
1182
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1183
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1184
- return new TypeError(message);
1798
+ if (obj.lastModifiedBy !== undefined) {
1799
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1800
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1801
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1802
+ if (referencepath_lastModifiedByValidationError !== null) {
1803
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1804
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1805
+ return new TypeError(message);
1806
+ }
1185
1807
  }
1186
- const obj_lastModifiedDate = obj.lastModifiedDate;
1187
- const path_lastModifiedDate = path + '.lastModifiedDate';
1188
- if (typeof obj_lastModifiedDate !== 'string') {
1189
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1808
+ if (obj.lastModifiedDate !== undefined) {
1809
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1810
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1811
+ let obj_lastModifiedDate_union0 = null;
1812
+ const obj_lastModifiedDate_union0_error = (() => {
1813
+ if (typeof obj_lastModifiedDate !== 'string') {
1814
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1815
+ }
1816
+ })();
1817
+ if (obj_lastModifiedDate_union0_error != null) {
1818
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
1819
+ }
1820
+ let obj_lastModifiedDate_union1 = null;
1821
+ const obj_lastModifiedDate_union1_error = (() => {
1822
+ if (obj_lastModifiedDate !== null) {
1823
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1824
+ }
1825
+ })();
1826
+ if (obj_lastModifiedDate_union1_error != null) {
1827
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
1828
+ }
1829
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
1830
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
1831
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1832
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1833
+ return new TypeError(message);
1834
+ }
1190
1835
  }
1191
1836
  const obj_modelType = obj.modelType;
1192
1837
  const path_modelType = path + '.modelType';
@@ -1198,10 +1843,33 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1198
1843
  if (typeof obj_name !== 'string') {
1199
1844
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1200
1845
  }
1201
- const obj_namespace = obj.namespace;
1202
- const path_namespace = path + '.namespace';
1203
- if (typeof obj_namespace !== 'string') {
1204
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1846
+ if (obj.namespace !== undefined) {
1847
+ const obj_namespace = obj.namespace;
1848
+ const path_namespace = path + '.namespace';
1849
+ let obj_namespace_union0 = null;
1850
+ const obj_namespace_union0_error = (() => {
1851
+ if (typeof obj_namespace !== 'string') {
1852
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1853
+ }
1854
+ })();
1855
+ if (obj_namespace_union0_error != null) {
1856
+ obj_namespace_union0 = obj_namespace_union0_error.message;
1857
+ }
1858
+ let obj_namespace_union1 = null;
1859
+ const obj_namespace_union1_error = (() => {
1860
+ if (obj_namespace !== null) {
1861
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1862
+ }
1863
+ })();
1864
+ if (obj_namespace_union1_error != null) {
1865
+ obj_namespace_union1 = obj_namespace_union1_error.message;
1866
+ }
1867
+ if (obj_namespace_union0 && obj_namespace_union1) {
1868
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
1869
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
1870
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
1871
+ return new TypeError(message);
1872
+ }
1205
1873
  }
1206
1874
  const obj_outputFields = obj.outputFields;
1207
1875
  const path_outputFields = path + '.outputFields';
@@ -1238,13 +1906,15 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1238
1906
  if (typeof obj_runtimeType !== 'string') {
1239
1907
  return new TypeError('Expected "string" but received "' + typeof obj_runtimeType + '" (at "' + path_runtimeType + '")');
1240
1908
  }
1241
- const obj_source = obj.source;
1242
- const path_source = path + '.source';
1243
- const referencepath_sourceValidationError = validate$h(obj_source, path_source);
1244
- if (referencepath_sourceValidationError !== null) {
1245
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
1246
- message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1247
- return new TypeError(message);
1909
+ if (obj.source !== undefined) {
1910
+ const obj_source = obj.source;
1911
+ const path_source = path + '.source';
1912
+ const referencepath_sourceValidationError = validate$h(obj_source, path_source);
1913
+ if (referencepath_sourceValidationError !== null) {
1914
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
1915
+ message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1916
+ return new TypeError(message);
1917
+ }
1248
1918
  }
1249
1919
  const obj_sourceType = obj.sourceType;
1250
1920
  const path_sourceType = path + '.sourceType';
@@ -1438,7 +2108,7 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
1438
2108
  };
1439
2109
 
1440
2110
  const TTL$2 = 1000;
1441
- const VERSION$2 = "11ef38d7d5daa2448f4bcad3c1a85425";
2111
+ const VERSION$2 = "31baba639dc891173a7ce2db82dae35f";
1442
2112
  function validate$a(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
1443
2113
  const v_error = (() => {
1444
2114
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1466,8 +2136,29 @@ function validate$a(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
1466
2136
  }
1467
2137
  const obj_nextPageUrl = obj.nextPageUrl;
1468
2138
  const path_nextPageUrl = path + '.nextPageUrl';
1469
- if (typeof obj_nextPageUrl !== 'string') {
1470
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2139
+ let obj_nextPageUrl_union0 = null;
2140
+ const obj_nextPageUrl_union0_error = (() => {
2141
+ if (typeof obj_nextPageUrl !== 'string') {
2142
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2143
+ }
2144
+ })();
2145
+ if (obj_nextPageUrl_union0_error != null) {
2146
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2147
+ }
2148
+ let obj_nextPageUrl_union1 = null;
2149
+ const obj_nextPageUrl_union1_error = (() => {
2150
+ if (obj_nextPageUrl !== null) {
2151
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2152
+ }
2153
+ })();
2154
+ if (obj_nextPageUrl_union1_error != null) {
2155
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2156
+ }
2157
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2158
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2159
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2160
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2161
+ return new TypeError(message);
1471
2162
  }
1472
2163
  const obj_totalSize = obj.totalSize;
1473
2164
  const path_totalSize = path + '.totalSize';
@@ -1663,20 +2354,89 @@ function validate$9(obj, path = 'CdpMlModelTypeRepresentation') {
1663
2354
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1664
2355
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1665
2356
  }
1666
- const obj_connectorType = obj.connectorType;
1667
- const path_connectorType = path + '.connectorType';
1668
- if (typeof obj_connectorType !== 'string') {
1669
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2357
+ if (obj.connectorType !== undefined) {
2358
+ const obj_connectorType = obj.connectorType;
2359
+ const path_connectorType = path + '.connectorType';
2360
+ let obj_connectorType_union0 = null;
2361
+ const obj_connectorType_union0_error = (() => {
2362
+ if (typeof obj_connectorType !== 'string') {
2363
+ return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2364
+ }
2365
+ })();
2366
+ if (obj_connectorType_union0_error != null) {
2367
+ obj_connectorType_union0 = obj_connectorType_union0_error.message;
2368
+ }
2369
+ let obj_connectorType_union1 = null;
2370
+ const obj_connectorType_union1_error = (() => {
2371
+ if (obj_connectorType !== null) {
2372
+ return new TypeError('Expected "null" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2373
+ }
2374
+ })();
2375
+ if (obj_connectorType_union1_error != null) {
2376
+ obj_connectorType_union1 = obj_connectorType_union1_error.message;
2377
+ }
2378
+ if (obj_connectorType_union0 && obj_connectorType_union1) {
2379
+ let message = 'Object doesn\'t match union (at "' + path_connectorType + '")';
2380
+ message += '\n' + obj_connectorType_union0.split('\n').map((line) => '\t' + line).join('\n');
2381
+ message += '\n' + obj_connectorType_union1.split('\n').map((line) => '\t' + line).join('\n');
2382
+ return new TypeError(message);
2383
+ }
1670
2384
  }
1671
- const obj_modelType = obj.modelType;
1672
- const path_modelType = path + '.modelType';
1673
- if (typeof obj_modelType !== 'string') {
1674
- return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
2385
+ if (obj.modelType !== undefined) {
2386
+ const obj_modelType = obj.modelType;
2387
+ const path_modelType = path + '.modelType';
2388
+ let obj_modelType_union0 = null;
2389
+ const obj_modelType_union0_error = (() => {
2390
+ if (typeof obj_modelType !== 'string') {
2391
+ return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
2392
+ }
2393
+ })();
2394
+ if (obj_modelType_union0_error != null) {
2395
+ obj_modelType_union0 = obj_modelType_union0_error.message;
2396
+ }
2397
+ let obj_modelType_union1 = null;
2398
+ const obj_modelType_union1_error = (() => {
2399
+ if (obj_modelType !== null) {
2400
+ return new TypeError('Expected "null" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
2401
+ }
2402
+ })();
2403
+ if (obj_modelType_union1_error != null) {
2404
+ obj_modelType_union1 = obj_modelType_union1_error.message;
2405
+ }
2406
+ if (obj_modelType_union0 && obj_modelType_union1) {
2407
+ let message = 'Object doesn\'t match union (at "' + path_modelType + '")';
2408
+ message += '\n' + obj_modelType_union0.split('\n').map((line) => '\t' + line).join('\n');
2409
+ message += '\n' + obj_modelType_union1.split('\n').map((line) => '\t' + line).join('\n');
2410
+ return new TypeError(message);
2411
+ }
1675
2412
  }
1676
- const obj_sourceType = obj.sourceType;
1677
- const path_sourceType = path + '.sourceType';
1678
- if (typeof obj_sourceType !== 'string') {
1679
- return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
2413
+ if (obj.sourceType !== undefined) {
2414
+ const obj_sourceType = obj.sourceType;
2415
+ const path_sourceType = path + '.sourceType';
2416
+ let obj_sourceType_union0 = null;
2417
+ const obj_sourceType_union0_error = (() => {
2418
+ if (typeof obj_sourceType !== 'string') {
2419
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
2420
+ }
2421
+ })();
2422
+ if (obj_sourceType_union0_error != null) {
2423
+ obj_sourceType_union0 = obj_sourceType_union0_error.message;
2424
+ }
2425
+ let obj_sourceType_union1 = null;
2426
+ const obj_sourceType_union1_error = (() => {
2427
+ if (obj_sourceType !== null) {
2428
+ return new TypeError('Expected "null" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
2429
+ }
2430
+ })();
2431
+ if (obj_sourceType_union1_error != null) {
2432
+ obj_sourceType_union1 = obj_sourceType_union1_error.message;
2433
+ }
2434
+ if (obj_sourceType_union0 && obj_sourceType_union1) {
2435
+ let message = 'Object doesn\'t match union (at "' + path_sourceType + '")';
2436
+ message += '\n' + obj_sourceType_union0.split('\n').map((line) => '\t' + line).join('\n');
2437
+ message += '\n' + obj_sourceType_union1.split('\n').map((line) => '\t' + line).join('\n');
2438
+ return new TypeError(message);
2439
+ }
1680
2440
  }
1681
2441
  })();
1682
2442
  return v_error === undefined ? null : v_error;
@@ -1846,8 +2606,16 @@ function validate$3(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
1846
2606
  return v_error === undefined ? null : v_error;
1847
2607
  }
1848
2608
 
2609
+ // Should match with keyBuilder
2610
+ function keyBuilderFromType(luvio, object) {
2611
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
2612
+ const urlArray = object.url.split('/');
2613
+ const idOrName = urlArray[urlArray.length - 1];
2614
+ return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
2615
+ }
2616
+
1849
2617
  const TTL$1 = 1000;
1850
- const VERSION$1 = "b700ad4033c4cc1a2f1373d916e31c4d";
2618
+ const VERSION$1 = "1cb47dd9b0cc811f1ad3318c7245d465";
1851
2619
  function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1852
2620
  const v_error = (() => {
1853
2621
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1865,141 +2633,433 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1865
2633
  return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
1866
2634
  }
1867
2635
  }
1868
- const obj_activeSetup = obj.activeSetup;
1869
- const path_activeSetup = path + '.activeSetup';
1870
- const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
1871
- if (referencepath_activeSetupValidationError !== null) {
1872
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1873
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1874
- return new TypeError(message);
2636
+ if (obj.activeSetup !== undefined) {
2637
+ const obj_activeSetup = obj.activeSetup;
2638
+ const path_activeSetup = path + '.activeSetup';
2639
+ const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
2640
+ if (referencepath_activeSetupValidationError !== null) {
2641
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
2642
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2643
+ return new TypeError(message);
2644
+ }
1875
2645
  }
1876
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1877
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1878
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1879
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1880
- }
1881
- const obj_createdBy = obj.createdBy;
1882
- const path_createdBy = path + '.createdBy';
1883
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1884
- if (referencepath_createdByValidationError !== null) {
1885
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1886
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1887
- return new TypeError(message);
2646
+ if (obj.activeSetupVersionNumber !== undefined) {
2647
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2648
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2649
+ let obj_activeSetupVersionNumber_union0 = null;
2650
+ const obj_activeSetupVersionNumber_union0_error = (() => {
2651
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2652
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2653
+ }
2654
+ })();
2655
+ if (obj_activeSetupVersionNumber_union0_error != null) {
2656
+ obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
2657
+ }
2658
+ let obj_activeSetupVersionNumber_union1 = null;
2659
+ const obj_activeSetupVersionNumber_union1_error = (() => {
2660
+ if (obj_activeSetupVersionNumber !== null) {
2661
+ return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2662
+ }
2663
+ })();
2664
+ if (obj_activeSetupVersionNumber_union1_error != null) {
2665
+ obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
2666
+ }
2667
+ if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
2668
+ let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
2669
+ message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
2670
+ message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
2671
+ return new TypeError(message);
2672
+ }
1888
2673
  }
1889
- const obj_createdDate = obj.createdDate;
1890
- const path_createdDate = path + '.createdDate';
1891
- if (typeof obj_createdDate !== 'string') {
1892
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2674
+ if (obj.createdBy !== undefined) {
2675
+ const obj_createdBy = obj.createdBy;
2676
+ const path_createdBy = path + '.createdBy';
2677
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
2678
+ if (referencepath_createdByValidationError !== null) {
2679
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2680
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2681
+ return new TypeError(message);
2682
+ }
1893
2683
  }
1894
- const obj_description = obj.description;
1895
- const path_description = path + '.description';
1896
- if (typeof obj_description !== 'string') {
1897
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2684
+ if (obj.createdDate !== undefined) {
2685
+ const obj_createdDate = obj.createdDate;
2686
+ const path_createdDate = path + '.createdDate';
2687
+ let obj_createdDate_union0 = null;
2688
+ const obj_createdDate_union0_error = (() => {
2689
+ if (typeof obj_createdDate !== 'string') {
2690
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2691
+ }
2692
+ })();
2693
+ if (obj_createdDate_union0_error != null) {
2694
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
2695
+ }
2696
+ let obj_createdDate_union1 = null;
2697
+ const obj_createdDate_union1_error = (() => {
2698
+ if (obj_createdDate !== null) {
2699
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2700
+ }
2701
+ })();
2702
+ if (obj_createdDate_union1_error != null) {
2703
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
2704
+ }
2705
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
2706
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
2707
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2708
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2709
+ return new TypeError(message);
2710
+ }
1898
2711
  }
1899
- const obj_historiesUrl = obj.historiesUrl;
1900
- const path_historiesUrl = path + '.historiesUrl';
1901
- if (typeof obj_historiesUrl !== 'string') {
1902
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2712
+ if (obj.description !== undefined) {
2713
+ const obj_description = obj.description;
2714
+ const path_description = path + '.description';
2715
+ let obj_description_union0 = null;
2716
+ const obj_description_union0_error = (() => {
2717
+ if (typeof obj_description !== 'string') {
2718
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2719
+ }
2720
+ })();
2721
+ if (obj_description_union0_error != null) {
2722
+ obj_description_union0 = obj_description_union0_error.message;
2723
+ }
2724
+ let obj_description_union1 = null;
2725
+ const obj_description_union1_error = (() => {
2726
+ if (obj_description !== null) {
2727
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2728
+ }
2729
+ })();
2730
+ if (obj_description_union1_error != null) {
2731
+ obj_description_union1 = obj_description_union1_error.message;
2732
+ }
2733
+ if (obj_description_union0 && obj_description_union1) {
2734
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
2735
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
2736
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
2737
+ return new TypeError(message);
2738
+ }
1903
2739
  }
1904
- const obj_id = obj.id;
1905
- const path_id = path + '.id';
1906
- if (typeof obj_id !== 'string') {
1907
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2740
+ if (obj.historiesUrl !== undefined) {
2741
+ const obj_historiesUrl = obj.historiesUrl;
2742
+ const path_historiesUrl = path + '.historiesUrl';
2743
+ let obj_historiesUrl_union0 = null;
2744
+ const obj_historiesUrl_union0_error = (() => {
2745
+ if (typeof obj_historiesUrl !== 'string') {
2746
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2747
+ }
2748
+ })();
2749
+ if (obj_historiesUrl_union0_error != null) {
2750
+ obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
2751
+ }
2752
+ let obj_historiesUrl_union1 = null;
2753
+ const obj_historiesUrl_union1_error = (() => {
2754
+ if (obj_historiesUrl !== null) {
2755
+ return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2756
+ }
2757
+ })();
2758
+ if (obj_historiesUrl_union1_error != null) {
2759
+ obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
2760
+ }
2761
+ if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
2762
+ let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
2763
+ message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2764
+ message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2765
+ return new TypeError(message);
2766
+ }
1908
2767
  }
1909
- const obj_label = obj.label;
1910
- const path_label = path + '.label';
1911
- if (typeof obj_label !== 'string') {
1912
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1913
- }
1914
- const obj_lastModifiedBy = obj.lastModifiedBy;
1915
- const path_lastModifiedBy = path + '.lastModifiedBy';
1916
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1917
- if (referencepath_lastModifiedByValidationError !== null) {
1918
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1919
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1920
- return new TypeError(message);
2768
+ if (obj.id !== undefined) {
2769
+ const obj_id = obj.id;
2770
+ const path_id = path + '.id';
2771
+ if (typeof obj_id !== 'string') {
2772
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2773
+ }
1921
2774
  }
1922
- const obj_lastModifiedDate = obj.lastModifiedDate;
1923
- const path_lastModifiedDate = path + '.lastModifiedDate';
1924
- if (typeof obj_lastModifiedDate !== 'string') {
1925
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1926
- }
1927
- const obj_latestSetup = obj.latestSetup;
1928
- const path_latestSetup = path + '.latestSetup';
1929
- const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
1930
- if (referencepath_latestSetupValidationError !== null) {
1931
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1932
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1933
- return new TypeError(message);
2775
+ if (obj.label !== undefined) {
2776
+ const obj_label = obj.label;
2777
+ const path_label = path + '.label';
2778
+ let obj_label_union0 = null;
2779
+ const obj_label_union0_error = (() => {
2780
+ if (typeof obj_label !== 'string') {
2781
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2782
+ }
2783
+ })();
2784
+ if (obj_label_union0_error != null) {
2785
+ obj_label_union0 = obj_label_union0_error.message;
2786
+ }
2787
+ let obj_label_union1 = null;
2788
+ const obj_label_union1_error = (() => {
2789
+ if (obj_label !== null) {
2790
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2791
+ }
2792
+ })();
2793
+ if (obj_label_union1_error != null) {
2794
+ obj_label_union1 = obj_label_union1_error.message;
2795
+ }
2796
+ if (obj_label_union0 && obj_label_union1) {
2797
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
2798
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
2799
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
2800
+ return new TypeError(message);
2801
+ }
2802
+ }
2803
+ if (obj.lastModifiedBy !== undefined) {
2804
+ const obj_lastModifiedBy = obj.lastModifiedBy;
2805
+ const path_lastModifiedBy = path + '.lastModifiedBy';
2806
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
2807
+ if (referencepath_lastModifiedByValidationError !== null) {
2808
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2809
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2810
+ return new TypeError(message);
2811
+ }
2812
+ }
2813
+ if (obj.lastModifiedDate !== undefined) {
2814
+ const obj_lastModifiedDate = obj.lastModifiedDate;
2815
+ const path_lastModifiedDate = path + '.lastModifiedDate';
2816
+ let obj_lastModifiedDate_union0 = null;
2817
+ const obj_lastModifiedDate_union0_error = (() => {
2818
+ if (typeof obj_lastModifiedDate !== 'string') {
2819
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2820
+ }
2821
+ })();
2822
+ if (obj_lastModifiedDate_union0_error != null) {
2823
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
2824
+ }
2825
+ let obj_lastModifiedDate_union1 = null;
2826
+ const obj_lastModifiedDate_union1_error = (() => {
2827
+ if (obj_lastModifiedDate !== null) {
2828
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2829
+ }
2830
+ })();
2831
+ if (obj_lastModifiedDate_union1_error != null) {
2832
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
2833
+ }
2834
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
2835
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
2836
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2837
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2838
+ return new TypeError(message);
2839
+ }
2840
+ }
2841
+ if (obj.latestSetup !== undefined) {
2842
+ const obj_latestSetup = obj.latestSetup;
2843
+ const path_latestSetup = path + '.latestSetup';
2844
+ const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
2845
+ if (referencepath_latestSetupValidationError !== null) {
2846
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2847
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2848
+ return new TypeError(message);
2849
+ }
1934
2850
  }
1935
2851
  const obj_modelCount = obj.modelCount;
1936
2852
  const path_modelCount = path + '.modelCount';
1937
2853
  if (typeof obj_modelCount !== 'number' || (typeof obj_modelCount === 'number' && Math.floor(obj_modelCount) !== obj_modelCount)) {
1938
2854
  return new TypeError('Expected "integer" but received "' + typeof obj_modelCount + '" (at "' + path_modelCount + '")');
1939
2855
  }
1940
- const obj_modelType = obj.modelType;
1941
- const path_modelType = path + '.modelType';
1942
- const referencepath_modelTypeValidationError = validate$9(obj_modelType, path_modelType);
1943
- if (referencepath_modelTypeValidationError !== null) {
1944
- let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
1945
- message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1946
- return new TypeError(message);
2856
+ if (obj.modelType !== undefined) {
2857
+ const obj_modelType = obj.modelType;
2858
+ const path_modelType = path + '.modelType';
2859
+ const referencepath_modelTypeValidationError = validate$9(obj_modelType, path_modelType);
2860
+ if (referencepath_modelTypeValidationError !== null) {
2861
+ let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
2862
+ message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2863
+ return new TypeError(message);
2864
+ }
1947
2865
  }
1948
- const obj_modelsUrl = obj.modelsUrl;
1949
- const path_modelsUrl = path + '.modelsUrl';
1950
- if (typeof obj_modelsUrl !== 'string') {
1951
- return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2866
+ if (obj.modelsUrl !== undefined) {
2867
+ const obj_modelsUrl = obj.modelsUrl;
2868
+ const path_modelsUrl = path + '.modelsUrl';
2869
+ let obj_modelsUrl_union0 = null;
2870
+ const obj_modelsUrl_union0_error = (() => {
2871
+ if (typeof obj_modelsUrl !== 'string') {
2872
+ return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2873
+ }
2874
+ })();
2875
+ if (obj_modelsUrl_union0_error != null) {
2876
+ obj_modelsUrl_union0 = obj_modelsUrl_union0_error.message;
2877
+ }
2878
+ let obj_modelsUrl_union1 = null;
2879
+ const obj_modelsUrl_union1_error = (() => {
2880
+ if (obj_modelsUrl !== null) {
2881
+ return new TypeError('Expected "null" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2882
+ }
2883
+ })();
2884
+ if (obj_modelsUrl_union1_error != null) {
2885
+ obj_modelsUrl_union1 = obj_modelsUrl_union1_error.message;
2886
+ }
2887
+ if (obj_modelsUrl_union0 && obj_modelsUrl_union1) {
2888
+ let message = 'Object doesn\'t match union (at "' + path_modelsUrl + '")';
2889
+ message += '\n' + obj_modelsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2890
+ message += '\n' + obj_modelsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2891
+ return new TypeError(message);
2892
+ }
1952
2893
  }
1953
2894
  const obj_name = obj.name;
1954
2895
  const path_name = path + '.name';
1955
2896
  if (typeof obj_name !== 'string') {
1956
2897
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1957
2898
  }
1958
- const obj_namespace = obj.namespace;
1959
- const path_namespace = path + '.namespace';
1960
- if (typeof obj_namespace !== 'string') {
1961
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1962
- }
1963
- const obj_outcomeDefinition = obj.outcomeDefinition;
1964
- const path_outcomeDefinition = path + '.outcomeDefinition';
1965
- const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
1966
- if (referencepath_outcomeDefinitionValidationError !== null) {
1967
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1968
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1969
- return new TypeError(message);
2899
+ if (obj.namespace !== undefined) {
2900
+ const obj_namespace = obj.namespace;
2901
+ const path_namespace = path + '.namespace';
2902
+ let obj_namespace_union0 = null;
2903
+ const obj_namespace_union0_error = (() => {
2904
+ if (typeof obj_namespace !== 'string') {
2905
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2906
+ }
2907
+ })();
2908
+ if (obj_namespace_union0_error != null) {
2909
+ obj_namespace_union0 = obj_namespace_union0_error.message;
2910
+ }
2911
+ let obj_namespace_union1 = null;
2912
+ const obj_namespace_union1_error = (() => {
2913
+ if (obj_namespace !== null) {
2914
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2915
+ }
2916
+ })();
2917
+ if (obj_namespace_union1_error != null) {
2918
+ obj_namespace_union1 = obj_namespace_union1_error.message;
2919
+ }
2920
+ if (obj_namespace_union0 && obj_namespace_union1) {
2921
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
2922
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
2923
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
2924
+ return new TypeError(message);
2925
+ }
1970
2926
  }
1971
- const obj_predictionType = obj.predictionType;
1972
- const path_predictionType = path + '.predictionType';
1973
- if (typeof obj_predictionType !== 'string') {
1974
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1975
- }
1976
- const obj_refreshConfig = obj.refreshConfig;
1977
- const path_refreshConfig = path + '.refreshConfig';
1978
- const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
1979
- if (referencepath_refreshConfigValidationError !== null) {
1980
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1981
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1982
- return new TypeError(message);
2927
+ if (obj.outcomeDefinition !== undefined) {
2928
+ const obj_outcomeDefinition = obj.outcomeDefinition;
2929
+ const path_outcomeDefinition = path + '.outcomeDefinition';
2930
+ const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
2931
+ if (referencepath_outcomeDefinitionValidationError !== null) {
2932
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2933
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2934
+ return new TypeError(message);
2935
+ }
1983
2936
  }
1984
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
1985
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
1986
- if (typeof obj_setupVersionsUrl !== 'string') {
1987
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2937
+ if (obj.predictionType !== undefined) {
2938
+ const obj_predictionType = obj.predictionType;
2939
+ const path_predictionType = path + '.predictionType';
2940
+ let obj_predictionType_union0 = null;
2941
+ const obj_predictionType_union0_error = (() => {
2942
+ if (typeof obj_predictionType !== 'string') {
2943
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2944
+ }
2945
+ })();
2946
+ if (obj_predictionType_union0_error != null) {
2947
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
2948
+ }
2949
+ let obj_predictionType_union1 = null;
2950
+ const obj_predictionType_union1_error = (() => {
2951
+ if (obj_predictionType !== null) {
2952
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2953
+ }
2954
+ })();
2955
+ if (obj_predictionType_union1_error != null) {
2956
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
2957
+ }
2958
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
2959
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
2960
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
2961
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
2962
+ return new TypeError(message);
2963
+ }
2964
+ }
2965
+ if (obj.refreshConfig !== undefined) {
2966
+ const obj_refreshConfig = obj.refreshConfig;
2967
+ const path_refreshConfig = path + '.refreshConfig';
2968
+ const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2969
+ if (referencepath_refreshConfigValidationError !== null) {
2970
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2971
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2972
+ return new TypeError(message);
2973
+ }
2974
+ }
2975
+ if (obj.setupVersionsUrl !== undefined) {
2976
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
2977
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
2978
+ let obj_setupVersionsUrl_union0 = null;
2979
+ const obj_setupVersionsUrl_union0_error = (() => {
2980
+ if (typeof obj_setupVersionsUrl !== 'string') {
2981
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2982
+ }
2983
+ })();
2984
+ if (obj_setupVersionsUrl_union0_error != null) {
2985
+ obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
2986
+ }
2987
+ let obj_setupVersionsUrl_union1 = null;
2988
+ const obj_setupVersionsUrl_union1_error = (() => {
2989
+ if (obj_setupVersionsUrl !== null) {
2990
+ return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2991
+ }
2992
+ })();
2993
+ if (obj_setupVersionsUrl_union1_error != null) {
2994
+ obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
2995
+ }
2996
+ if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
2997
+ let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
2998
+ message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2999
+ message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3000
+ return new TypeError(message);
3001
+ }
1988
3002
  }
1989
3003
  const obj_status = obj.status;
1990
3004
  const path_status = path + '.status';
1991
3005
  if (typeof obj_status !== 'string') {
1992
3006
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1993
3007
  }
1994
- const obj_totalInferenceCount = obj.totalInferenceCount;
1995
- const path_totalInferenceCount = path + '.totalInferenceCount';
1996
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1997
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3008
+ if (obj.totalInferenceCount !== undefined) {
3009
+ const obj_totalInferenceCount = obj.totalInferenceCount;
3010
+ const path_totalInferenceCount = path + '.totalInferenceCount';
3011
+ let obj_totalInferenceCount_union0 = null;
3012
+ const obj_totalInferenceCount_union0_error = (() => {
3013
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
3014
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3015
+ }
3016
+ })();
3017
+ if (obj_totalInferenceCount_union0_error != null) {
3018
+ obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
3019
+ }
3020
+ let obj_totalInferenceCount_union1 = null;
3021
+ const obj_totalInferenceCount_union1_error = (() => {
3022
+ if (obj_totalInferenceCount !== null) {
3023
+ return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3024
+ }
3025
+ })();
3026
+ if (obj_totalInferenceCount_union1_error != null) {
3027
+ obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
3028
+ }
3029
+ if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
3030
+ let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
3031
+ message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3032
+ message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3033
+ return new TypeError(message);
3034
+ }
1998
3035
  }
1999
- const obj_totalWarningsCount = obj.totalWarningsCount;
2000
- const path_totalWarningsCount = path + '.totalWarningsCount';
2001
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2002
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3036
+ if (obj.totalWarningsCount !== undefined) {
3037
+ const obj_totalWarningsCount = obj.totalWarningsCount;
3038
+ const path_totalWarningsCount = path + '.totalWarningsCount';
3039
+ let obj_totalWarningsCount_union0 = null;
3040
+ const obj_totalWarningsCount_union0_error = (() => {
3041
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
3042
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3043
+ }
3044
+ })();
3045
+ if (obj_totalWarningsCount_union0_error != null) {
3046
+ obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
3047
+ }
3048
+ let obj_totalWarningsCount_union1 = null;
3049
+ const obj_totalWarningsCount_union1_error = (() => {
3050
+ if (obj_totalWarningsCount !== null) {
3051
+ return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3052
+ }
3053
+ })();
3054
+ if (obj_totalWarningsCount_union1_error != null) {
3055
+ obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
3056
+ }
3057
+ if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
3058
+ let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
3059
+ message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3060
+ message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3061
+ return new TypeError(message);
3062
+ }
2003
3063
  }
2004
3064
  const obj_url = obj.url;
2005
3065
  const path_url = path + '.url';
@@ -2013,12 +3073,6 @@ const RepresentationType$1 = 'CdpMlWorkspaceDetailRepresentation';
2013
3073
  function keyBuilder$4(luvio, config) {
2014
3074
  return keyPrefix + '::' + RepresentationType$1 + ':' + config.workspaceIdOrName;
2015
3075
  }
2016
- function keyBuilderFromType(luvio, object) {
2017
- const keyParams = {
2018
- workspaceIdOrName: object.id
2019
- };
2020
- return keyBuilder$4(luvio, keyParams);
2021
- }
2022
3076
  function normalize$1(input, existing, path, luvio, store, timestamp) {
2023
3077
  return input;
2024
3078
  }
@@ -2058,14 +3112,15 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2058
3112
  });
2059
3113
  }
2060
3114
 
3115
+ function keyBuilder$3(luvio, params) {
3116
+ const idOrName = params.urlParams.workspaceIdOrName;
3117
+ const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
3118
+ return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
3119
+ }
3120
+
2061
3121
  function select$3(luvio, params) {
2062
3122
  return select$4();
2063
3123
  }
2064
- function keyBuilder$3(luvio, params) {
2065
- return keyBuilder$4(luvio, {
2066
- workspaceIdOrName: params.urlParams.workspaceIdOrName
2067
- });
2068
- }
2069
3124
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2070
3125
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
2071
3126
  }
@@ -2115,7 +3170,7 @@ function createResourceRequestFromRepresentation(representation) {
2115
3170
  const config = {
2116
3171
  urlParams: {},
2117
3172
  };
2118
- config.urlParams.workspaceIdOrName = representation.id;
3173
+ config.urlParams.workspaceIdOrName = representation.name;
2119
3174
  return createResourceRequest$2(config);
2120
3175
  }
2121
3176
 
@@ -2244,72 +3299,220 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2244
3299
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2245
3300
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2246
3301
  }
2247
- const obj_activeSetup = obj.activeSetup;
2248
- const path_activeSetup = path + '.activeSetup';
2249
- const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
2250
- if (referencepath_activeSetupValidationError !== null) {
2251
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
2252
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2253
- return new TypeError(message);
3302
+ if (obj.activeSetup !== undefined) {
3303
+ const obj_activeSetup = obj.activeSetup;
3304
+ const path_activeSetup = path + '.activeSetup';
3305
+ const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
3306
+ if (referencepath_activeSetupValidationError !== null) {
3307
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
3308
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3309
+ return new TypeError(message);
3310
+ }
2254
3311
  }
2255
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2256
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2257
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2258
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2259
- }
2260
- const obj_createdBy = obj.createdBy;
2261
- const path_createdBy = path + '.createdBy';
2262
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
2263
- if (referencepath_createdByValidationError !== null) {
2264
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2265
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2266
- return new TypeError(message);
3312
+ if (obj.activeSetupVersionNumber !== undefined) {
3313
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
3314
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
3315
+ let obj_activeSetupVersionNumber_union0 = null;
3316
+ const obj_activeSetupVersionNumber_union0_error = (() => {
3317
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
3318
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
3319
+ }
3320
+ })();
3321
+ if (obj_activeSetupVersionNumber_union0_error != null) {
3322
+ obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
3323
+ }
3324
+ let obj_activeSetupVersionNumber_union1 = null;
3325
+ const obj_activeSetupVersionNumber_union1_error = (() => {
3326
+ if (obj_activeSetupVersionNumber !== null) {
3327
+ return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
3328
+ }
3329
+ })();
3330
+ if (obj_activeSetupVersionNumber_union1_error != null) {
3331
+ obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
3332
+ }
3333
+ if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
3334
+ let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
3335
+ message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
3336
+ message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
3337
+ return new TypeError(message);
3338
+ }
2267
3339
  }
2268
- const obj_createdDate = obj.createdDate;
2269
- const path_createdDate = path + '.createdDate';
2270
- if (typeof obj_createdDate !== 'string') {
2271
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3340
+ if (obj.createdBy !== undefined) {
3341
+ const obj_createdBy = obj.createdBy;
3342
+ const path_createdBy = path + '.createdBy';
3343
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
3344
+ if (referencepath_createdByValidationError !== null) {
3345
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
3346
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3347
+ return new TypeError(message);
3348
+ }
2272
3349
  }
2273
- const obj_description = obj.description;
2274
- const path_description = path + '.description';
2275
- if (typeof obj_description !== 'string') {
2276
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3350
+ if (obj.createdDate !== undefined) {
3351
+ const obj_createdDate = obj.createdDate;
3352
+ const path_createdDate = path + '.createdDate';
3353
+ let obj_createdDate_union0 = null;
3354
+ const obj_createdDate_union0_error = (() => {
3355
+ if (typeof obj_createdDate !== 'string') {
3356
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3357
+ }
3358
+ })();
3359
+ if (obj_createdDate_union0_error != null) {
3360
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
3361
+ }
3362
+ let obj_createdDate_union1 = null;
3363
+ const obj_createdDate_union1_error = (() => {
3364
+ if (obj_createdDate !== null) {
3365
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3366
+ }
3367
+ })();
3368
+ if (obj_createdDate_union1_error != null) {
3369
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
3370
+ }
3371
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
3372
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
3373
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3374
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3375
+ return new TypeError(message);
3376
+ }
2277
3377
  }
2278
- const obj_historiesUrl = obj.historiesUrl;
2279
- const path_historiesUrl = path + '.historiesUrl';
2280
- if (typeof obj_historiesUrl !== 'string') {
2281
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
3378
+ if (obj.description !== undefined) {
3379
+ const obj_description = obj.description;
3380
+ const path_description = path + '.description';
3381
+ let obj_description_union0 = null;
3382
+ const obj_description_union0_error = (() => {
3383
+ if (typeof obj_description !== 'string') {
3384
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3385
+ }
3386
+ })();
3387
+ if (obj_description_union0_error != null) {
3388
+ obj_description_union0 = obj_description_union0_error.message;
3389
+ }
3390
+ let obj_description_union1 = null;
3391
+ const obj_description_union1_error = (() => {
3392
+ if (obj_description !== null) {
3393
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3394
+ }
3395
+ })();
3396
+ if (obj_description_union1_error != null) {
3397
+ obj_description_union1 = obj_description_union1_error.message;
3398
+ }
3399
+ if (obj_description_union0 && obj_description_union1) {
3400
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
3401
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
3402
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
3403
+ return new TypeError(message);
3404
+ }
2282
3405
  }
2283
- const obj_id = obj.id;
2284
- const path_id = path + '.id';
2285
- if (typeof obj_id !== 'string') {
2286
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3406
+ if (obj.historiesUrl !== undefined) {
3407
+ const obj_historiesUrl = obj.historiesUrl;
3408
+ const path_historiesUrl = path + '.historiesUrl';
3409
+ let obj_historiesUrl_union0 = null;
3410
+ const obj_historiesUrl_union0_error = (() => {
3411
+ if (typeof obj_historiesUrl !== 'string') {
3412
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
3413
+ }
3414
+ })();
3415
+ if (obj_historiesUrl_union0_error != null) {
3416
+ obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
3417
+ }
3418
+ let obj_historiesUrl_union1 = null;
3419
+ const obj_historiesUrl_union1_error = (() => {
3420
+ if (obj_historiesUrl !== null) {
3421
+ return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
3422
+ }
3423
+ })();
3424
+ if (obj_historiesUrl_union1_error != null) {
3425
+ obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
3426
+ }
3427
+ if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
3428
+ let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
3429
+ message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3430
+ message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3431
+ return new TypeError(message);
3432
+ }
2287
3433
  }
2288
- const obj_label = obj.label;
2289
- const path_label = path + '.label';
2290
- if (typeof obj_label !== 'string') {
2291
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2292
- }
2293
- const obj_lastModifiedBy = obj.lastModifiedBy;
2294
- const path_lastModifiedBy = path + '.lastModifiedBy';
2295
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
2296
- if (referencepath_lastModifiedByValidationError !== null) {
2297
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2298
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2299
- return new TypeError(message);
3434
+ if (obj.id !== undefined) {
3435
+ const obj_id = obj.id;
3436
+ const path_id = path + '.id';
3437
+ if (typeof obj_id !== 'string') {
3438
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3439
+ }
2300
3440
  }
2301
- const obj_lastModifiedDate = obj.lastModifiedDate;
2302
- const path_lastModifiedDate = path + '.lastModifiedDate';
2303
- if (typeof obj_lastModifiedDate !== 'string') {
2304
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2305
- }
2306
- const obj_latestSetup = obj.latestSetup;
2307
- const path_latestSetup = path + '.latestSetup';
2308
- const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
2309
- if (referencepath_latestSetupValidationError !== null) {
2310
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2311
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2312
- return new TypeError(message);
3441
+ if (obj.label !== undefined) {
3442
+ const obj_label = obj.label;
3443
+ const path_label = path + '.label';
3444
+ let obj_label_union0 = null;
3445
+ const obj_label_union0_error = (() => {
3446
+ if (typeof obj_label !== 'string') {
3447
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3448
+ }
3449
+ })();
3450
+ if (obj_label_union0_error != null) {
3451
+ obj_label_union0 = obj_label_union0_error.message;
3452
+ }
3453
+ let obj_label_union1 = null;
3454
+ const obj_label_union1_error = (() => {
3455
+ if (obj_label !== null) {
3456
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3457
+ }
3458
+ })();
3459
+ if (obj_label_union1_error != null) {
3460
+ obj_label_union1 = obj_label_union1_error.message;
3461
+ }
3462
+ if (obj_label_union0 && obj_label_union1) {
3463
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
3464
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
3465
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
3466
+ return new TypeError(message);
3467
+ }
3468
+ }
3469
+ if (obj.lastModifiedBy !== undefined) {
3470
+ const obj_lastModifiedBy = obj.lastModifiedBy;
3471
+ const path_lastModifiedBy = path + '.lastModifiedBy';
3472
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
3473
+ if (referencepath_lastModifiedByValidationError !== null) {
3474
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
3475
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3476
+ return new TypeError(message);
3477
+ }
3478
+ }
3479
+ if (obj.lastModifiedDate !== undefined) {
3480
+ const obj_lastModifiedDate = obj.lastModifiedDate;
3481
+ const path_lastModifiedDate = path + '.lastModifiedDate';
3482
+ let obj_lastModifiedDate_union0 = null;
3483
+ const obj_lastModifiedDate_union0_error = (() => {
3484
+ if (typeof obj_lastModifiedDate !== 'string') {
3485
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3486
+ }
3487
+ })();
3488
+ if (obj_lastModifiedDate_union0_error != null) {
3489
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
3490
+ }
3491
+ let obj_lastModifiedDate_union1 = null;
3492
+ const obj_lastModifiedDate_union1_error = (() => {
3493
+ if (obj_lastModifiedDate !== null) {
3494
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3495
+ }
3496
+ })();
3497
+ if (obj_lastModifiedDate_union1_error != null) {
3498
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
3499
+ }
3500
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
3501
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
3502
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3503
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3504
+ return new TypeError(message);
3505
+ }
3506
+ }
3507
+ if (obj.latestSetup !== undefined) {
3508
+ const obj_latestSetup = obj.latestSetup;
3509
+ const path_latestSetup = path + '.latestSetup';
3510
+ const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
3511
+ if (referencepath_latestSetupValidationError !== null) {
3512
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
3513
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3514
+ return new TypeError(message);
3515
+ }
2313
3516
  }
2314
3517
  const obj_modelCount = obj.modelCount;
2315
3518
  const path_modelCount = path + '.modelCount';
@@ -2334,51 +3537,170 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2334
3537
  if (typeof obj_name !== 'string') {
2335
3538
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2336
3539
  }
2337
- const obj_namespace = obj.namespace;
2338
- const path_namespace = path + '.namespace';
2339
- if (typeof obj_namespace !== 'string') {
2340
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2341
- }
2342
- const obj_outcomeDefinition = obj.outcomeDefinition;
2343
- const path_outcomeDefinition = path + '.outcomeDefinition';
2344
- const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
2345
- if (referencepath_outcomeDefinitionValidationError !== null) {
2346
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2347
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2348
- return new TypeError(message);
3540
+ if (obj.namespace !== undefined) {
3541
+ const obj_namespace = obj.namespace;
3542
+ const path_namespace = path + '.namespace';
3543
+ let obj_namespace_union0 = null;
3544
+ const obj_namespace_union0_error = (() => {
3545
+ if (typeof obj_namespace !== 'string') {
3546
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3547
+ }
3548
+ })();
3549
+ if (obj_namespace_union0_error != null) {
3550
+ obj_namespace_union0 = obj_namespace_union0_error.message;
3551
+ }
3552
+ let obj_namespace_union1 = null;
3553
+ const obj_namespace_union1_error = (() => {
3554
+ if (obj_namespace !== null) {
3555
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3556
+ }
3557
+ })();
3558
+ if (obj_namespace_union1_error != null) {
3559
+ obj_namespace_union1 = obj_namespace_union1_error.message;
3560
+ }
3561
+ if (obj_namespace_union0 && obj_namespace_union1) {
3562
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
3563
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
3564
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
3565
+ return new TypeError(message);
3566
+ }
2349
3567
  }
2350
- const obj_predictionType = obj.predictionType;
2351
- const path_predictionType = path + '.predictionType';
2352
- if (typeof obj_predictionType !== 'string') {
2353
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2354
- }
2355
- const obj_refreshConfig = obj.refreshConfig;
2356
- const path_refreshConfig = path + '.refreshConfig';
2357
- const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2358
- if (referencepath_refreshConfigValidationError !== null) {
2359
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2360
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2361
- return new TypeError(message);
3568
+ if (obj.outcomeDefinition !== undefined) {
3569
+ const obj_outcomeDefinition = obj.outcomeDefinition;
3570
+ const path_outcomeDefinition = path + '.outcomeDefinition';
3571
+ const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
3572
+ if (referencepath_outcomeDefinitionValidationError !== null) {
3573
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
3574
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3575
+ return new TypeError(message);
3576
+ }
3577
+ }
3578
+ if (obj.predictionType !== undefined) {
3579
+ const obj_predictionType = obj.predictionType;
3580
+ const path_predictionType = path + '.predictionType';
3581
+ let obj_predictionType_union0 = null;
3582
+ const obj_predictionType_union0_error = (() => {
3583
+ if (typeof obj_predictionType !== 'string') {
3584
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
3585
+ }
3586
+ })();
3587
+ if (obj_predictionType_union0_error != null) {
3588
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
3589
+ }
3590
+ let obj_predictionType_union1 = null;
3591
+ const obj_predictionType_union1_error = (() => {
3592
+ if (obj_predictionType !== null) {
3593
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
3594
+ }
3595
+ })();
3596
+ if (obj_predictionType_union1_error != null) {
3597
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
3598
+ }
3599
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
3600
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
3601
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
3602
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
3603
+ return new TypeError(message);
3604
+ }
2362
3605
  }
2363
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
2364
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
2365
- if (typeof obj_setupVersionsUrl !== 'string') {
2366
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
3606
+ if (obj.refreshConfig !== undefined) {
3607
+ const obj_refreshConfig = obj.refreshConfig;
3608
+ const path_refreshConfig = path + '.refreshConfig';
3609
+ const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
3610
+ if (referencepath_refreshConfigValidationError !== null) {
3611
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
3612
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3613
+ return new TypeError(message);
3614
+ }
3615
+ }
3616
+ if (obj.setupVersionsUrl !== undefined) {
3617
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
3618
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
3619
+ let obj_setupVersionsUrl_union0 = null;
3620
+ const obj_setupVersionsUrl_union0_error = (() => {
3621
+ if (typeof obj_setupVersionsUrl !== 'string') {
3622
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
3623
+ }
3624
+ })();
3625
+ if (obj_setupVersionsUrl_union0_error != null) {
3626
+ obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
3627
+ }
3628
+ let obj_setupVersionsUrl_union1 = null;
3629
+ const obj_setupVersionsUrl_union1_error = (() => {
3630
+ if (obj_setupVersionsUrl !== null) {
3631
+ return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
3632
+ }
3633
+ })();
3634
+ if (obj_setupVersionsUrl_union1_error != null) {
3635
+ obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
3636
+ }
3637
+ if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
3638
+ let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
3639
+ message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3640
+ message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3641
+ return new TypeError(message);
3642
+ }
2367
3643
  }
2368
3644
  const obj_status = obj.status;
2369
3645
  const path_status = path + '.status';
2370
3646
  if (typeof obj_status !== 'string') {
2371
3647
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
2372
3648
  }
2373
- const obj_totalInferenceCount = obj.totalInferenceCount;
2374
- const path_totalInferenceCount = path + '.totalInferenceCount';
2375
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2376
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3649
+ if (obj.totalInferenceCount !== undefined) {
3650
+ const obj_totalInferenceCount = obj.totalInferenceCount;
3651
+ const path_totalInferenceCount = path + '.totalInferenceCount';
3652
+ let obj_totalInferenceCount_union0 = null;
3653
+ const obj_totalInferenceCount_union0_error = (() => {
3654
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
3655
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3656
+ }
3657
+ })();
3658
+ if (obj_totalInferenceCount_union0_error != null) {
3659
+ obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
3660
+ }
3661
+ let obj_totalInferenceCount_union1 = null;
3662
+ const obj_totalInferenceCount_union1_error = (() => {
3663
+ if (obj_totalInferenceCount !== null) {
3664
+ return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3665
+ }
3666
+ })();
3667
+ if (obj_totalInferenceCount_union1_error != null) {
3668
+ obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
3669
+ }
3670
+ if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
3671
+ let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
3672
+ message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3673
+ message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3674
+ return new TypeError(message);
3675
+ }
2377
3676
  }
2378
- const obj_totalWarningsCount = obj.totalWarningsCount;
2379
- const path_totalWarningsCount = path + '.totalWarningsCount';
2380
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2381
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3677
+ if (obj.totalWarningsCount !== undefined) {
3678
+ const obj_totalWarningsCount = obj.totalWarningsCount;
3679
+ const path_totalWarningsCount = path + '.totalWarningsCount';
3680
+ let obj_totalWarningsCount_union0 = null;
3681
+ const obj_totalWarningsCount_union0_error = (() => {
3682
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
3683
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3684
+ }
3685
+ })();
3686
+ if (obj_totalWarningsCount_union0_error != null) {
3687
+ obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
3688
+ }
3689
+ let obj_totalWarningsCount_union1 = null;
3690
+ const obj_totalWarningsCount_union1_error = (() => {
3691
+ if (obj_totalWarningsCount !== null) {
3692
+ return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3693
+ }
3694
+ })();
3695
+ if (obj_totalWarningsCount_union1_error != null) {
3696
+ obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
3697
+ }
3698
+ if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
3699
+ let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
3700
+ message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3701
+ message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3702
+ return new TypeError(message);
3703
+ }
2382
3704
  }
2383
3705
  const obj_url = obj.url;
2384
3706
  const path_url = path + '.url';
@@ -2390,21 +3712,67 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2390
3712
  }
2391
3713
 
2392
3714
  const TTL = 1000;
2393
- const VERSION = "6f430e4ccb178c06b2e6b7450e3010c2";
3715
+ const VERSION = "e6a8612718f37385e9d7622527f26c5c";
2394
3716
  function validate(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
2395
3717
  const v_error = (() => {
2396
3718
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2397
3719
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2398
3720
  }
2399
- const obj_currentPageUrl = obj.currentPageUrl;
2400
- const path_currentPageUrl = path + '.currentPageUrl';
2401
- if (typeof obj_currentPageUrl !== 'string') {
2402
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3721
+ if (obj.currentPageUrl !== undefined) {
3722
+ const obj_currentPageUrl = obj.currentPageUrl;
3723
+ const path_currentPageUrl = path + '.currentPageUrl';
3724
+ let obj_currentPageUrl_union0 = null;
3725
+ const obj_currentPageUrl_union0_error = (() => {
3726
+ if (typeof obj_currentPageUrl !== 'string') {
3727
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3728
+ }
3729
+ })();
3730
+ if (obj_currentPageUrl_union0_error != null) {
3731
+ obj_currentPageUrl_union0 = obj_currentPageUrl_union0_error.message;
3732
+ }
3733
+ let obj_currentPageUrl_union1 = null;
3734
+ const obj_currentPageUrl_union1_error = (() => {
3735
+ if (obj_currentPageUrl !== null) {
3736
+ return new TypeError('Expected "null" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3737
+ }
3738
+ })();
3739
+ if (obj_currentPageUrl_union1_error != null) {
3740
+ obj_currentPageUrl_union1 = obj_currentPageUrl_union1_error.message;
3741
+ }
3742
+ if (obj_currentPageUrl_union0 && obj_currentPageUrl_union1) {
3743
+ let message = 'Object doesn\'t match union (at "' + path_currentPageUrl + '")';
3744
+ message += '\n' + obj_currentPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3745
+ message += '\n' + obj_currentPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3746
+ return new TypeError(message);
3747
+ }
2403
3748
  }
2404
- const obj_nextPageUrl = obj.nextPageUrl;
2405
- const path_nextPageUrl = path + '.nextPageUrl';
2406
- if (typeof obj_nextPageUrl !== 'string') {
2407
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3749
+ if (obj.nextPageUrl !== undefined) {
3750
+ const obj_nextPageUrl = obj.nextPageUrl;
3751
+ const path_nextPageUrl = path + '.nextPageUrl';
3752
+ let obj_nextPageUrl_union0 = null;
3753
+ const obj_nextPageUrl_union0_error = (() => {
3754
+ if (typeof obj_nextPageUrl !== 'string') {
3755
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3756
+ }
3757
+ })();
3758
+ if (obj_nextPageUrl_union0_error != null) {
3759
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
3760
+ }
3761
+ let obj_nextPageUrl_union1 = null;
3762
+ const obj_nextPageUrl_union1_error = (() => {
3763
+ if (obj_nextPageUrl !== null) {
3764
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3765
+ }
3766
+ })();
3767
+ if (obj_nextPageUrl_union1_error != null) {
3768
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
3769
+ }
3770
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
3771
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
3772
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3773
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3774
+ return new TypeError(message);
3775
+ }
2408
3776
  }
2409
3777
  const obj_totalSize = obj.totalSize;
2410
3778
  const path_totalSize = path + '.totalSize';
@@ -2640,7 +4008,7 @@ function createResourceRequest(config) {
2640
4008
  const headers = {};
2641
4009
  return {
2642
4010
  baseUri: '/services/data/v60.0',
2643
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
4011
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2644
4012
  method: 'patch',
2645
4013
  body: config.body,
2646
4014
  urlParams: config.urlParams,
@@ -2652,18 +4020,18 @@ function createResourceRequest(config) {
2652
4020
 
2653
4021
  const adapterName = 'updateCdpMlConfiguredModel';
2654
4022
  const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
2655
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
4023
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2656
4024
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2657
- generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2658
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
2659
- generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2660
- generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2661
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2662
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2663
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2664
- generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2665
- generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2666
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
4025
+ generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
4026
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
4027
+ generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
4028
+ generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
4029
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
4030
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
4031
+ generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
4032
+ generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
4033
+ generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
4034
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
2667
4035
  ];
2668
4036
  const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
2669
4037
  const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
@@ -2675,36 +4043,37 @@ function typeCheckConfig(untrustedConfig) {
2675
4043
  const untrustedConfig_actionableFields_array = [];
2676
4044
  for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
2677
4045
  const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
2678
- if (untrustedIsObject(untrustedConfig_actionableFields_item)) {
2679
- const untrustedConfig_actionableFields_item_object = {};
2680
- if (untrustedConfig_actionableFields_item_object !== undefined && Object.keys(untrustedConfig_actionableFields_item_object).length >= 0) {
2681
- untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
2682
- }
4046
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_actionableFields_item);
4047
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
4048
+ untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
2683
4049
  }
2684
4050
  }
2685
4051
  config.actionableFields = untrustedConfig_actionableFields_array;
2686
4052
  }
2687
4053
  const untrustedConfig_artifact = untrustedConfig.artifact;
2688
- if (untrustedIsObject(untrustedConfig_artifact)) {
2689
- const untrustedConfig_artifact_object = {};
2690
- if (untrustedConfig_artifact_object !== undefined && Object.keys(untrustedConfig_artifact_object).length >= 0) {
2691
- config.artifact = untrustedConfig_artifact_object;
2692
- }
4054
+ const referenceCdpAssetReferenceInputRepresentationValidationError = validate$q(untrustedConfig_artifact);
4055
+ if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
4056
+ config.artifact = untrustedConfig_artifact;
2693
4057
  }
2694
4058
  const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
2695
4059
  if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
2696
4060
  const untrustedConfig_customizableFields_array = [];
2697
4061
  for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
2698
4062
  const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
2699
- if (untrustedIsObject(untrustedConfig_customizableFields_item)) {
2700
- const untrustedConfig_customizableFields_item_object = {};
2701
- if (untrustedConfig_customizableFields_item_object !== undefined && Object.keys(untrustedConfig_customizableFields_item_object).length >= 0) {
2702
- untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
2703
- }
4063
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_customizableFields_item);
4064
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
4065
+ untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
2704
4066
  }
2705
4067
  }
2706
4068
  config.customizableFields = untrustedConfig_customizableFields_array;
2707
4069
  }
4070
+ const untrustedConfig_description = untrustedConfig.description;
4071
+ if (typeof untrustedConfig_description === 'string') {
4072
+ config.description = untrustedConfig_description;
4073
+ }
4074
+ if (untrustedConfig_description === null) {
4075
+ config.description = untrustedConfig_description;
4076
+ }
2708
4077
  const untrustedConfig_filter = untrustedConfig.filter;
2709
4078
  if (untrustedIsObject(untrustedConfig_filter)) {
2710
4079
  const untrustedConfig_filter_object = {};
@@ -2712,16 +4081,21 @@ function typeCheckConfig(untrustedConfig) {
2712
4081
  config.filter = untrustedConfig_filter_object;
2713
4082
  }
2714
4083
  }
4084
+ const untrustedConfig_label = untrustedConfig.label;
4085
+ if (typeof untrustedConfig_label === 'string') {
4086
+ config.label = untrustedConfig_label;
4087
+ }
4088
+ if (untrustedConfig_label === null) {
4089
+ config.label = untrustedConfig_label;
4090
+ }
2715
4091
  const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
2716
4092
  if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
2717
4093
  const untrustedConfig_parameterOverrides_array = [];
2718
4094
  for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
2719
4095
  const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
2720
- if (untrustedIsObject(untrustedConfig_parameterOverrides_item)) {
2721
- const untrustedConfig_parameterOverrides_item_object = {};
2722
- if (untrustedConfig_parameterOverrides_item_object !== undefined && Object.keys(untrustedConfig_parameterOverrides_item_object).length >= 0) {
2723
- untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
2724
- }
4096
+ const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$p(untrustedConfig_parameterOverrides_item);
4097
+ if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
4098
+ untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
2725
4099
  }
2726
4100
  }
2727
4101
  config.parameterOverrides = untrustedConfig_parameterOverrides_array;
@@ -2770,7 +4144,7 @@ const updateCdpMlConfiguredModelAdapterFactory = (luvio) => {
2770
4144
  };
2771
4145
  };
2772
4146
 
2773
- let createCdpMlConfiguredModelCollection;
4147
+ let createCdpMlConfiguredModel;
2774
4148
  let getCdpMlConfiguredModel;
2775
4149
  let getCdpMlConfiguredModelCollection;
2776
4150
  let getCdpMlModelArtifact;
@@ -2830,7 +4204,7 @@ function bindExportsTo(luvio) {
2830
4204
  return (config) => adapter(config).then((snapshot) => snapshot.data);
2831
4205
  }
2832
4206
  return {
2833
- createCdpMlConfiguredModelCollection: unwrapSnapshotData(createCdpMlConfiguredModelCollectionAdapterFactory),
4207
+ createCdpMlConfiguredModel: unwrapSnapshotData(createCdpMlConfiguredModelAdapterFactory),
2834
4208
  getCdpMlConfiguredModel: createWireAdapterConstructor(luvio, getCdpMlConfiguredModel_ldsAdapter, getCdpMlConfiguredModelMetadata),
2835
4209
  getCdpMlConfiguredModelCollection: createWireAdapterConstructor(luvio, getCdpMlConfiguredModelCollection_ldsAdapter, getCdpMlConfiguredModelCollectionMetadata),
2836
4210
  getCdpMlModelArtifact: createWireAdapterConstructor(luvio, getCdpMlModelArtifact_ldsAdapter, getCdpMlModelArtifactMetadata),
@@ -2851,7 +4225,7 @@ function bindExportsTo(luvio) {
2851
4225
  }
2852
4226
  withDefaultLuvio((luvio) => {
2853
4227
  ({
2854
- createCdpMlConfiguredModelCollection,
4228
+ createCdpMlConfiguredModel,
2855
4229
  getCdpMlConfiguredModel,
2856
4230
  getCdpMlConfiguredModelCollection,
2857
4231
  getCdpMlModelArtifact,
@@ -2869,5 +4243,5 @@ withDefaultLuvio((luvio) => {
2869
4243
  } = bindExportsTo(luvio));
2870
4244
  });
2871
4245
 
2872
- export { createCdpMlConfiguredModelCollection, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
2873
- // version: 1.265.0-25488bd30
4246
+ export { createCdpMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
4247
+ // version: 1.266.0-dev10-3275d4bf8