@salesforce/lds-adapters-platform-cdp-machine-learning 1.266.0-dev2 → 1.266.0-dev20

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 (33) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +1885 -568
  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 +11 -11
  19. package/dist/es/es2018/types/src/generated/types/CdpMlModelParameterOverrideInputRepresentation.d.ts +34 -0
  20. package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +7 -7
  21. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceCollectionRepresentation.d.ts +5 -5
  22. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +43 -43
  23. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +37 -37
  24. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  25. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  26. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
  27. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
  28. package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
  29. package/package.json +16 -5
  30. package/sfdc/index.js +1810 -490
  31. package/src/raml/api.raml +202 -148
  32. package/src/raml/luvio.raml +6 -6
  33. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +0 -25
@@ -79,7 +79,7 @@ function createLink(ref) {
79
79
  };
80
80
  }
81
81
 
82
- function validate$o(obj, path = 'CdpUserRepresentation') {
82
+ function validate$s(obj, path = 'CdpUserRepresentation') {
83
83
  const v_error = (() => {
84
84
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
85
85
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -103,7 +103,7 @@ function validate$o(obj, path = 'CdpUserRepresentation') {
103
103
  return v_error === undefined ? null : v_error;
104
104
  }
105
105
 
106
- function validate$n(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
106
+ function validate$r(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
107
107
  const v_error = (() => {
108
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
109
109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -137,7 +137,7 @@ function validate$n(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
137
137
  return v_error === undefined ? null : v_error;
138
138
  }
139
139
 
140
- function validate$m(obj, path = 'CdpMlModelOutputFieldRepresentation') {
140
+ function validate$q(obj, path = 'CdpMlModelOutputFieldRepresentation') {
141
141
  const v_error = (() => {
142
142
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
143
143
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -156,7 +156,7 @@ function validate$m(obj, path = 'CdpMlModelOutputFieldRepresentation') {
156
156
  return v_error === undefined ? null : v_error;
157
157
  }
158
158
 
159
- function validate$l(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation') {
159
+ function validate$p(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation') {
160
160
  const v_error = (() => {
161
161
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
162
162
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -180,69 +180,213 @@ function validate$l(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
180
180
  return v_error === undefined ? null : v_error;
181
181
  }
182
182
 
183
- function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
183
+ function validate$o(obj, path = 'CdpAssetReferenceRepresentation') {
184
184
  const v_error = (() => {
185
185
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
186
186
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
187
187
  }
188
- const obj_createdBy = obj.createdBy;
189
- const path_createdBy = path + '.createdBy';
190
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
191
- if (referencepath_createdByValidationError !== null) {
192
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
193
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
194
- return new TypeError(message);
188
+ if (obj.createdBy !== undefined) {
189
+ const obj_createdBy = obj.createdBy;
190
+ const path_createdBy = path + '.createdBy';
191
+ const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
192
+ if (referencepath_createdByValidationError !== null) {
193
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
194
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
195
+ return new TypeError(message);
196
+ }
195
197
  }
196
- const obj_createdDate = obj.createdDate;
197
- const path_createdDate = path + '.createdDate';
198
- if (typeof obj_createdDate !== 'string') {
199
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
198
+ if (obj.createdDate !== undefined) {
199
+ const obj_createdDate = obj.createdDate;
200
+ const path_createdDate = path + '.createdDate';
201
+ let obj_createdDate_union0 = null;
202
+ const obj_createdDate_union0_error = (() => {
203
+ if (typeof obj_createdDate !== 'string') {
204
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
205
+ }
206
+ })();
207
+ if (obj_createdDate_union0_error != null) {
208
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
209
+ }
210
+ let obj_createdDate_union1 = null;
211
+ const obj_createdDate_union1_error = (() => {
212
+ if (obj_createdDate !== null) {
213
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
214
+ }
215
+ })();
216
+ if (obj_createdDate_union1_error != null) {
217
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
218
+ }
219
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
220
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
221
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
222
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
223
+ return new TypeError(message);
224
+ }
200
225
  }
201
- const obj_id = obj.id;
202
- const path_id = path + '.id';
203
- if (typeof obj_id !== 'string') {
204
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
226
+ if (obj.id !== undefined) {
227
+ const obj_id = obj.id;
228
+ const path_id = path + '.id';
229
+ if (typeof obj_id !== 'string') {
230
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
231
+ }
205
232
  }
206
- const obj_label = obj.label;
207
- const path_label = path + '.label';
208
- if (typeof obj_label !== 'string') {
209
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
210
- }
211
- const obj_lastModifiedBy = obj.lastModifiedBy;
212
- const path_lastModifiedBy = path + '.lastModifiedBy';
213
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
214
- if (referencepath_lastModifiedByValidationError !== null) {
215
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
216
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
217
- return new TypeError(message);
233
+ if (obj.label !== undefined) {
234
+ const obj_label = obj.label;
235
+ const path_label = path + '.label';
236
+ let obj_label_union0 = null;
237
+ const obj_label_union0_error = (() => {
238
+ if (typeof obj_label !== 'string') {
239
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
240
+ }
241
+ })();
242
+ if (obj_label_union0_error != null) {
243
+ obj_label_union0 = obj_label_union0_error.message;
244
+ }
245
+ let obj_label_union1 = null;
246
+ const obj_label_union1_error = (() => {
247
+ if (obj_label !== null) {
248
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
249
+ }
250
+ })();
251
+ if (obj_label_union1_error != null) {
252
+ obj_label_union1 = obj_label_union1_error.message;
253
+ }
254
+ if (obj_label_union0 && obj_label_union1) {
255
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
256
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
257
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
258
+ return new TypeError(message);
259
+ }
218
260
  }
219
- const obj_lastModifiedDate = obj.lastModifiedDate;
220
- const path_lastModifiedDate = path + '.lastModifiedDate';
221
- if (typeof obj_lastModifiedDate !== 'string') {
222
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
261
+ if (obj.lastModifiedBy !== undefined) {
262
+ const obj_lastModifiedBy = obj.lastModifiedBy;
263
+ const path_lastModifiedBy = path + '.lastModifiedBy';
264
+ const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
265
+ if (referencepath_lastModifiedByValidationError !== null) {
266
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
267
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
268
+ return new TypeError(message);
269
+ }
223
270
  }
224
- const obj_name = obj.name;
225
- const path_name = path + '.name';
226
- if (typeof obj_name !== 'string') {
227
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
271
+ if (obj.lastModifiedDate !== undefined) {
272
+ const obj_lastModifiedDate = obj.lastModifiedDate;
273
+ const path_lastModifiedDate = path + '.lastModifiedDate';
274
+ let obj_lastModifiedDate_union0 = null;
275
+ const obj_lastModifiedDate_union0_error = (() => {
276
+ if (typeof obj_lastModifiedDate !== 'string') {
277
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
278
+ }
279
+ })();
280
+ if (obj_lastModifiedDate_union0_error != null) {
281
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
282
+ }
283
+ let obj_lastModifiedDate_union1 = null;
284
+ const obj_lastModifiedDate_union1_error = (() => {
285
+ if (obj_lastModifiedDate !== null) {
286
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
287
+ }
288
+ })();
289
+ if (obj_lastModifiedDate_union1_error != null) {
290
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
291
+ }
292
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
293
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
294
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
295
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
296
+ return new TypeError(message);
297
+ }
228
298
  }
229
- const obj_namespace = obj.namespace;
230
- const path_namespace = path + '.namespace';
231
- if (typeof obj_namespace !== 'string') {
232
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
299
+ if (obj.name !== undefined) {
300
+ const obj_name = obj.name;
301
+ const path_name = path + '.name';
302
+ let obj_name_union0 = null;
303
+ const obj_name_union0_error = (() => {
304
+ if (typeof obj_name !== 'string') {
305
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
306
+ }
307
+ })();
308
+ if (obj_name_union0_error != null) {
309
+ obj_name_union0 = obj_name_union0_error.message;
310
+ }
311
+ let obj_name_union1 = null;
312
+ const obj_name_union1_error = (() => {
313
+ if (obj_name !== null) {
314
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
315
+ }
316
+ })();
317
+ if (obj_name_union1_error != null) {
318
+ obj_name_union1 = obj_name_union1_error.message;
319
+ }
320
+ if (obj_name_union0 && obj_name_union1) {
321
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
322
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
323
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
324
+ return new TypeError(message);
325
+ }
233
326
  }
234
- const obj_url = obj.url;
235
- const path_url = path + '.url';
236
- if (typeof obj_url !== 'string') {
237
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
327
+ if (obj.namespace !== undefined) {
328
+ const obj_namespace = obj.namespace;
329
+ const path_namespace = path + '.namespace';
330
+ let obj_namespace_union0 = null;
331
+ const obj_namespace_union0_error = (() => {
332
+ if (typeof obj_namespace !== 'string') {
333
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
334
+ }
335
+ })();
336
+ if (obj_namespace_union0_error != null) {
337
+ obj_namespace_union0 = obj_namespace_union0_error.message;
338
+ }
339
+ let obj_namespace_union1 = null;
340
+ const obj_namespace_union1_error = (() => {
341
+ if (obj_namespace !== null) {
342
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
343
+ }
344
+ })();
345
+ if (obj_namespace_union1_error != null) {
346
+ obj_namespace_union1 = obj_namespace_union1_error.message;
347
+ }
348
+ if (obj_namespace_union0 && obj_namespace_union1) {
349
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
350
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
351
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
352
+ return new TypeError(message);
353
+ }
354
+ }
355
+ if (obj.url !== undefined) {
356
+ const obj_url = obj.url;
357
+ const path_url = path + '.url';
358
+ let obj_url_union0 = null;
359
+ const obj_url_union0_error = (() => {
360
+ if (typeof obj_url !== 'string') {
361
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
362
+ }
363
+ })();
364
+ if (obj_url_union0_error != null) {
365
+ obj_url_union0 = obj_url_union0_error.message;
366
+ }
367
+ let obj_url_union1 = null;
368
+ const obj_url_union1_error = (() => {
369
+ if (obj_url !== null) {
370
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
371
+ }
372
+ })();
373
+ if (obj_url_union1_error != null) {
374
+ obj_url_union1 = obj_url_union1_error.message;
375
+ }
376
+ if (obj_url_union0 && obj_url_union1) {
377
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
378
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
379
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
380
+ return new TypeError(message);
381
+ }
238
382
  }
239
383
  })();
240
384
  return v_error === undefined ? null : v_error;
241
385
  }
242
386
 
243
387
  const TTL$5 = 1000;
244
- const VERSION$5 = "9ed2828bcb548d3096bd7f51010ee720";
245
- function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
388
+ const VERSION$5 = "6d28f4bb028ba6cba885d3f305c117f4";
389
+ function validate$n(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
246
390
  const v_error = (() => {
247
391
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
248
392
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -250,7 +394,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
250
394
  if (obj.createdBy !== undefined) {
251
395
  const obj_createdBy = obj.createdBy;
252
396
  const path_createdBy = path + '.createdBy';
253
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
397
+ const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
254
398
  if (referencepath_createdByValidationError !== null) {
255
399
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
256
400
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -260,14 +404,58 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
260
404
  if (obj.createdDate !== undefined) {
261
405
  const obj_createdDate = obj.createdDate;
262
406
  const path_createdDate = path + '.createdDate';
263
- if (typeof obj_createdDate !== 'string') {
264
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
407
+ let obj_createdDate_union0 = null;
408
+ const obj_createdDate_union0_error = (() => {
409
+ if (typeof obj_createdDate !== 'string') {
410
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
411
+ }
412
+ })();
413
+ if (obj_createdDate_union0_error != null) {
414
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
415
+ }
416
+ let obj_createdDate_union1 = null;
417
+ const obj_createdDate_union1_error = (() => {
418
+ if (obj_createdDate !== null) {
419
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
420
+ }
421
+ })();
422
+ if (obj_createdDate_union1_error != null) {
423
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
424
+ }
425
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
426
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
427
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
428
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
429
+ return new TypeError(message);
265
430
  }
266
431
  }
267
- const obj_description = obj.description;
268
- const path_description = path + '.description';
269
- if (typeof obj_description !== 'string') {
270
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
432
+ if (obj.description !== undefined) {
433
+ const obj_description = obj.description;
434
+ const path_description = path + '.description';
435
+ let obj_description_union0 = null;
436
+ const obj_description_union0_error = (() => {
437
+ if (typeof obj_description !== 'string') {
438
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
439
+ }
440
+ })();
441
+ if (obj_description_union0_error != null) {
442
+ obj_description_union0 = obj_description_union0_error.message;
443
+ }
444
+ let obj_description_union1 = null;
445
+ const obj_description_union1_error = (() => {
446
+ if (obj_description !== null) {
447
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
448
+ }
449
+ })();
450
+ if (obj_description_union1_error != null) {
451
+ obj_description_union1 = obj_description_union1_error.message;
452
+ }
453
+ if (obj_description_union0 && obj_description_union1) {
454
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
455
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
456
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
457
+ return new TypeError(message);
458
+ }
271
459
  }
272
460
  if (obj.id !== undefined) {
273
461
  const obj_id = obj.id;
@@ -284,22 +472,45 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
284
472
  for (let i = 0; i < obj_inputFields.length; i++) {
285
473
  const obj_inputFields_item = obj_inputFields[i];
286
474
  const path_inputFields_item = path_inputFields + '[' + i + ']';
287
- const referencepath_inputFields_itemValidationError = validate$n(obj_inputFields_item, path_inputFields_item);
475
+ const referencepath_inputFields_itemValidationError = validate$r(obj_inputFields_item, path_inputFields_item);
288
476
  if (referencepath_inputFields_itemValidationError !== null) {
289
477
  let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_inputFields_item + '")\n';
290
478
  message += referencepath_inputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
291
479
  return new TypeError(message);
292
480
  }
293
481
  }
294
- const obj_label = obj.label;
295
- const path_label = path + '.label';
296
- if (typeof obj_label !== 'string') {
297
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
482
+ if (obj.label !== undefined) {
483
+ const obj_label = obj.label;
484
+ const path_label = path + '.label';
485
+ let obj_label_union0 = null;
486
+ const obj_label_union0_error = (() => {
487
+ if (typeof obj_label !== 'string') {
488
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
489
+ }
490
+ })();
491
+ if (obj_label_union0_error != null) {
492
+ obj_label_union0 = obj_label_union0_error.message;
493
+ }
494
+ let obj_label_union1 = null;
495
+ const obj_label_union1_error = (() => {
496
+ if (obj_label !== null) {
497
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
498
+ }
499
+ })();
500
+ if (obj_label_union1_error != null) {
501
+ obj_label_union1 = obj_label_union1_error.message;
502
+ }
503
+ if (obj_label_union0 && obj_label_union1) {
504
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
505
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
506
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
507
+ return new TypeError(message);
508
+ }
298
509
  }
299
510
  if (obj.lastModifiedBy !== undefined) {
300
511
  const obj_lastModifiedBy = obj.lastModifiedBy;
301
512
  const path_lastModifiedBy = path + '.lastModifiedBy';
302
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
513
+ const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
303
514
  if (referencepath_lastModifiedByValidationError !== null) {
304
515
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
305
516
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -309,8 +520,29 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
309
520
  if (obj.lastModifiedDate !== undefined) {
310
521
  const obj_lastModifiedDate = obj.lastModifiedDate;
311
522
  const path_lastModifiedDate = path + '.lastModifiedDate';
312
- if (typeof obj_lastModifiedDate !== 'string') {
313
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
523
+ let obj_lastModifiedDate_union0 = null;
524
+ const obj_lastModifiedDate_union0_error = (() => {
525
+ if (typeof obj_lastModifiedDate !== 'string') {
526
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
527
+ }
528
+ })();
529
+ if (obj_lastModifiedDate_union0_error != null) {
530
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
531
+ }
532
+ let obj_lastModifiedDate_union1 = null;
533
+ const obj_lastModifiedDate_union1_error = (() => {
534
+ if (obj_lastModifiedDate !== null) {
535
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
536
+ }
537
+ })();
538
+ if (obj_lastModifiedDate_union1_error != null) {
539
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
540
+ }
541
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
542
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
543
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
544
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
545
+ return new TypeError(message);
314
546
  }
315
547
  }
316
548
  const obj_modelType = obj.modelType;
@@ -323,10 +555,33 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
323
555
  if (typeof obj_name !== 'string') {
324
556
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
325
557
  }
326
- const obj_namespace = obj.namespace;
327
- const path_namespace = path + '.namespace';
328
- if (typeof obj_namespace !== 'string') {
329
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
558
+ if (obj.namespace !== undefined) {
559
+ const obj_namespace = obj.namespace;
560
+ const path_namespace = path + '.namespace';
561
+ let obj_namespace_union0 = null;
562
+ const obj_namespace_union0_error = (() => {
563
+ if (typeof obj_namespace !== 'string') {
564
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
565
+ }
566
+ })();
567
+ if (obj_namespace_union0_error != null) {
568
+ obj_namespace_union0 = obj_namespace_union0_error.message;
569
+ }
570
+ let obj_namespace_union1 = null;
571
+ const obj_namespace_union1_error = (() => {
572
+ if (obj_namespace !== null) {
573
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
574
+ }
575
+ })();
576
+ if (obj_namespace_union1_error != null) {
577
+ obj_namespace_union1 = obj_namespace_union1_error.message;
578
+ }
579
+ if (obj_namespace_union0 && obj_namespace_union1) {
580
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
581
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
582
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
583
+ return new TypeError(message);
584
+ }
330
585
  }
331
586
  const obj_outputFields = obj.outputFields;
332
587
  const path_outputFields = path + '.outputFields';
@@ -336,7 +591,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
336
591
  for (let i = 0; i < obj_outputFields.length; i++) {
337
592
  const obj_outputFields_item = obj_outputFields[i];
338
593
  const path_outputFields_item = path_outputFields + '[' + i + ']';
339
- const referencepath_outputFields_itemValidationError = validate$m(obj_outputFields_item, path_outputFields_item);
594
+ const referencepath_outputFields_itemValidationError = validate$q(obj_outputFields_item, path_outputFields_item);
340
595
  if (referencepath_outputFields_itemValidationError !== null) {
341
596
  let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_outputFields_item + '")\n';
342
597
  message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -351,7 +606,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
351
606
  for (let i = 0; i < obj_parameters.length; i++) {
352
607
  const obj_parameters_item = obj_parameters[i];
353
608
  const path_parameters_item = path_parameters + '[' + i + ']';
354
- const referencepath_parameters_itemValidationError = validate$l(obj_parameters_item, path_parameters_item);
609
+ const referencepath_parameters_itemValidationError = validate$p(obj_parameters_item, path_parameters_item);
355
610
  if (referencepath_parameters_itemValidationError !== null) {
356
611
  let message = 'Object doesn\'t match CdpMlModelParameterDefinitionBaseRepresentation (at "' + path_parameters_item + '")\n';
357
612
  message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -366,7 +621,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
366
621
  if (obj.source !== undefined) {
367
622
  const obj_source = obj.source;
368
623
  const path_source = path + '.source';
369
- const referencepath_sourceValidationError = validate$k(obj_source, path_source);
624
+ const referencepath_sourceValidationError = validate$o(obj_source, path_source);
370
625
  if (referencepath_sourceValidationError !== null) {
371
626
  let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
372
627
  message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -406,7 +661,7 @@ function equals$5(existing, incoming) {
406
661
  }
407
662
  const ingest$5 = function CdpMlModelArtifactBaseRepresentationIngest(input, path, luvio, store, timestamp) {
408
663
  if (process.env.NODE_ENV !== 'production') {
409
- const validateError = validate$j(input);
664
+ const validateError = validate$n(input);
410
665
  if (validateError !== null) {
411
666
  throw validateError;
412
667
  }
@@ -428,7 +683,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
428
683
 
429
684
  const TTL$4 = 1000;
430
685
  const VERSION$4 = "31baba639dc891173a7ce2db82dae35f";
431
- function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
686
+ function validate$m(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
432
687
  const v_error = (() => {
433
688
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
434
689
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -446,7 +701,7 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
446
701
  for (let i = 0; i < obj_modelArtifacts.length; i++) {
447
702
  const obj_modelArtifacts_item = obj_modelArtifacts[i];
448
703
  const path_modelArtifacts_item = path_modelArtifacts + '[' + i + ']';
449
- const referencepath_modelArtifacts_itemValidationError = validate$j(obj_modelArtifacts_item, path_modelArtifacts_item);
704
+ const referencepath_modelArtifacts_itemValidationError = validate$n(obj_modelArtifacts_item, path_modelArtifacts_item);
450
705
  if (referencepath_modelArtifacts_itemValidationError !== null) {
451
706
  let message = 'Object doesn\'t match CdpMlModelArtifactBaseRepresentation (at "' + path_modelArtifacts_item + '")\n';
452
707
  message += referencepath_modelArtifacts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -507,7 +762,7 @@ function equals$4(existing, incoming) {
507
762
  }
508
763
  const ingest$4 = function CdpMlModelArtifactCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
509
764
  if (process.env.NODE_ENV !== 'production') {
510
- const validateError = validate$i(input);
765
+ const validateError = validate$m(input);
511
766
  if (validateError !== null) {
512
767
  throw validateError;
513
768
  }
@@ -530,15 +785,15 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
530
785
  function select$b(luvio, params) {
531
786
  return select$c();
532
787
  }
533
- function keyBuilder$d(luvio, params) {
788
+ function keyBuilder$b(luvio, params) {
534
789
  return keyPrefix + '::CdpMlModelArtifactCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'sourceType:' + params.queryParams.sourceType + ')';
535
790
  }
536
791
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
537
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
792
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
538
793
  }
539
794
  function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
540
795
  const { body } = response;
541
- const key = keyBuilder$d(luvio, resourceParams);
796
+ const key = keyBuilder$b(luvio, resourceParams);
542
797
  luvio.storeIngest(key, ingest$4, body);
543
798
  const snapshot = luvio.storeLookup({
544
799
  recordId: key,
@@ -554,7 +809,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
554
809
  return snapshot;
555
810
  }
556
811
  function ingestError$5(luvio, params, error, snapshotRefresh) {
557
- const key = keyBuilder$d(luvio, params);
812
+ const key = keyBuilder$b(luvio, params);
558
813
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
559
814
  const storeMetadataParams = {
560
815
  ttl: TTL$4,
@@ -588,9 +843,9 @@ const getCdpMlModelArtifactCollection_ConfigPropertyMetadata = [
588
843
  ];
589
844
  const getCdpMlModelArtifactCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
590
845
  const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
591
- function keyBuilder$c(luvio, config) {
846
+ function keyBuilder$a(luvio, config) {
592
847
  const resourceParams = createResourceParams$7(config);
593
- return keyBuilder$d(luvio, resourceParams);
848
+ return keyBuilder$b(luvio, resourceParams);
594
849
  }
595
850
  function typeCheckConfig$7(untrustedConfig) {
596
851
  const config = {};
@@ -648,7 +903,7 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
648
903
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
649
904
  const { luvio, config } = context;
650
905
  const selector = {
651
- recordId: keyBuilder$c(luvio, config),
906
+ recordId: keyBuilder$a(luvio, config),
652
907
  node: adapterFragment$5(luvio, config),
653
908
  variables: {},
654
909
  };
@@ -671,15 +926,15 @@ const getCdpMlModelArtifactCollectionAdapterFactory = (luvio) => function cdpMac
671
926
  function select$a(luvio, params) {
672
927
  return select$d();
673
928
  }
674
- function keyBuilder$b(luvio, params) {
929
+ function keyBuilder$9(luvio, params) {
675
930
  return keyPrefix + '::CdpMlModelArtifactBaseRepresentation:(' + 'modelArtifactIdOrName:' + params.urlParams.modelArtifactIdOrName + ')';
676
931
  }
677
932
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
678
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
933
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
679
934
  }
680
935
  function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
681
936
  const { body } = response;
682
- const key = keyBuilder$b(luvio, resourceParams);
937
+ const key = keyBuilder$9(luvio, resourceParams);
683
938
  luvio.storeIngest(key, ingest$5, body);
684
939
  const snapshot = luvio.storeLookup({
685
940
  recordId: key,
@@ -695,7 +950,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
695
950
  return snapshot;
696
951
  }
697
952
  function ingestError$4(luvio, params, error, snapshotRefresh) {
698
- const key = keyBuilder$b(luvio, params);
953
+ const key = keyBuilder$9(luvio, params);
699
954
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
700
955
  const storeMetadataParams = {
701
956
  ttl: TTL$5,
@@ -726,9 +981,9 @@ const getCdpMlModelArtifact_ConfigPropertyMetadata = [
726
981
  ];
727
982
  const getCdpMlModelArtifact_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlModelArtifact_ConfigPropertyMetadata);
728
983
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifact_ConfigPropertyMetadata);
729
- function keyBuilder$a(luvio, config) {
984
+ function keyBuilder$8(luvio, config) {
730
985
  const resourceParams = createResourceParams$6(config);
731
- return keyBuilder$b(luvio, resourceParams);
986
+ return keyBuilder$9(luvio, resourceParams);
732
987
  }
733
988
  function typeCheckConfig$6(untrustedConfig) {
734
989
  const config = {};
@@ -786,7 +1041,7 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
786
1041
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
787
1042
  const { luvio, config } = context;
788
1043
  const selector = {
789
- recordId: keyBuilder$a(luvio, config),
1044
+ recordId: keyBuilder$8(luvio, config),
790
1045
  node: adapterFragment$4(luvio, config),
791
1046
  variables: {},
792
1047
  };
@@ -806,31 +1061,100 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
806
1061
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
807
1062
  };
808
1063
 
809
- function validate$h(obj, path = 'CdpMlModelTypeRepresentation') {
1064
+ function validate$l(obj, path = 'CdpMlModelTypeRepresentation') {
810
1065
  const v_error = (() => {
811
1066
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
812
1067
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
813
1068
  }
814
- const obj_connectorType = obj.connectorType;
815
- const path_connectorType = path + '.connectorType';
816
- if (typeof obj_connectorType !== 'string') {
817
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
1069
+ if (obj.connectorType !== undefined) {
1070
+ const obj_connectorType = obj.connectorType;
1071
+ const path_connectorType = path + '.connectorType';
1072
+ let obj_connectorType_union0 = null;
1073
+ const obj_connectorType_union0_error = (() => {
1074
+ if (typeof obj_connectorType !== 'string') {
1075
+ return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
1076
+ }
1077
+ })();
1078
+ if (obj_connectorType_union0_error != null) {
1079
+ obj_connectorType_union0 = obj_connectorType_union0_error.message;
1080
+ }
1081
+ let obj_connectorType_union1 = null;
1082
+ const obj_connectorType_union1_error = (() => {
1083
+ if (obj_connectorType !== null) {
1084
+ return new TypeError('Expected "null" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
1085
+ }
1086
+ })();
1087
+ if (obj_connectorType_union1_error != null) {
1088
+ obj_connectorType_union1 = obj_connectorType_union1_error.message;
1089
+ }
1090
+ if (obj_connectorType_union0 && obj_connectorType_union1) {
1091
+ let message = 'Object doesn\'t match union (at "' + path_connectorType + '")';
1092
+ message += '\n' + obj_connectorType_union0.split('\n').map((line) => '\t' + line).join('\n');
1093
+ message += '\n' + obj_connectorType_union1.split('\n').map((line) => '\t' + line).join('\n');
1094
+ return new TypeError(message);
1095
+ }
818
1096
  }
819
- const obj_modelType = obj.modelType;
820
- const path_modelType = path + '.modelType';
821
- if (typeof obj_modelType !== 'string') {
822
- return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
1097
+ if (obj.modelType !== undefined) {
1098
+ const obj_modelType = obj.modelType;
1099
+ const path_modelType = path + '.modelType';
1100
+ let obj_modelType_union0 = null;
1101
+ const obj_modelType_union0_error = (() => {
1102
+ if (typeof obj_modelType !== 'string') {
1103
+ return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
1104
+ }
1105
+ })();
1106
+ if (obj_modelType_union0_error != null) {
1107
+ obj_modelType_union0 = obj_modelType_union0_error.message;
1108
+ }
1109
+ let obj_modelType_union1 = null;
1110
+ const obj_modelType_union1_error = (() => {
1111
+ if (obj_modelType !== null) {
1112
+ return new TypeError('Expected "null" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
1113
+ }
1114
+ })();
1115
+ if (obj_modelType_union1_error != null) {
1116
+ obj_modelType_union1 = obj_modelType_union1_error.message;
1117
+ }
1118
+ if (obj_modelType_union0 && obj_modelType_union1) {
1119
+ let message = 'Object doesn\'t match union (at "' + path_modelType + '")';
1120
+ message += '\n' + obj_modelType_union0.split('\n').map((line) => '\t' + line).join('\n');
1121
+ message += '\n' + obj_modelType_union1.split('\n').map((line) => '\t' + line).join('\n');
1122
+ return new TypeError(message);
1123
+ }
823
1124
  }
824
- const obj_sourceType = obj.sourceType;
825
- const path_sourceType = path + '.sourceType';
826
- if (typeof obj_sourceType !== 'string') {
827
- return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
1125
+ if (obj.sourceType !== undefined) {
1126
+ const obj_sourceType = obj.sourceType;
1127
+ const path_sourceType = path + '.sourceType';
1128
+ let obj_sourceType_union0 = null;
1129
+ const obj_sourceType_union0_error = (() => {
1130
+ if (typeof obj_sourceType !== 'string') {
1131
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
1132
+ }
1133
+ })();
1134
+ if (obj_sourceType_union0_error != null) {
1135
+ obj_sourceType_union0 = obj_sourceType_union0_error.message;
1136
+ }
1137
+ let obj_sourceType_union1 = null;
1138
+ const obj_sourceType_union1_error = (() => {
1139
+ if (obj_sourceType !== null) {
1140
+ return new TypeError('Expected "null" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
1141
+ }
1142
+ })();
1143
+ if (obj_sourceType_union1_error != null) {
1144
+ obj_sourceType_union1 = obj_sourceType_union1_error.message;
1145
+ }
1146
+ if (obj_sourceType_union0 && obj_sourceType_union1) {
1147
+ let message = 'Object doesn\'t match union (at "' + path_sourceType + '")';
1148
+ message += '\n' + obj_sourceType_union0.split('\n').map((line) => '\t' + line).join('\n');
1149
+ message += '\n' + obj_sourceType_union1.split('\n').map((line) => '\t' + line).join('\n');
1150
+ return new TypeError(message);
1151
+ }
828
1152
  }
829
1153
  })();
830
1154
  return v_error === undefined ? null : v_error;
831
1155
  }
832
1156
 
833
- function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
1157
+ function validate$k(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
834
1158
  const v_error = (() => {
835
1159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
836
1160
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -843,7 +1167,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
843
1167
  for (let i = 0; i < obj_fields.length; i++) {
844
1168
  const obj_fields_item = obj_fields[i];
845
1169
  const path_fields_item = path_fields + '[' + i + ']';
846
- const referencepath_fields_itemValidationError = validate$m(obj_fields_item, path_fields_item);
1170
+ const referencepath_fields_itemValidationError = validate$q(obj_fields_item, path_fields_item);
847
1171
  if (referencepath_fields_itemValidationError !== null) {
848
1172
  let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_fields_item + '")\n';
849
1173
  message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -859,7 +1183,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
859
1183
  return v_error === undefined ? null : v_error;
860
1184
  }
861
1185
 
862
- function validate$f(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
1186
+ function validate$j(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
863
1187
  const v_error = (() => {
864
1188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
865
1189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -883,7 +1207,7 @@ function validate$f(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
883
1207
  return v_error === undefined ? null : v_error;
884
1208
  }
885
1209
 
886
- function validate$e(obj, path = 'CdpTimeZoneRepresentation') {
1210
+ function validate$i(obj, path = 'CdpTimeZoneRepresentation') {
887
1211
  const v_error = (() => {
888
1212
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
889
1213
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -903,7 +1227,7 @@ function validate$e(obj, path = 'CdpTimeZoneRepresentation') {
903
1227
  return v_error === undefined ? null : v_error;
904
1228
  }
905
1229
 
906
- function validate$d(obj, path = 'CdpTimeRepresentation') {
1230
+ function validate$h(obj, path = 'CdpTimeRepresentation') {
907
1231
  const v_error = (() => {
908
1232
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
909
1233
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -920,7 +1244,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
920
1244
  }
921
1245
  const obj_timezone = obj.timezone;
922
1246
  const path_timezone = path + '.timezone';
923
- const referencepath_timezoneValidationError = validate$e(obj_timezone, path_timezone);
1247
+ const referencepath_timezoneValidationError = validate$i(obj_timezone, path_timezone);
924
1248
  if (referencepath_timezoneValidationError !== null) {
925
1249
  let message = 'Object doesn\'t match CdpTimeZoneRepresentation (at "' + path_timezone + '")\n';
926
1250
  message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -930,7 +1254,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
930
1254
  return v_error === undefined ? null : v_error;
931
1255
  }
932
1256
 
933
- function validate$c(obj, path = 'CdpScheduleRepresentation') {
1257
+ function validate$g(obj, path = 'CdpScheduleRepresentation') {
934
1258
  const v_error = (() => {
935
1259
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
936
1260
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -947,7 +1271,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
947
1271
  }
948
1272
  const obj_time = obj.time;
949
1273
  const path_time = path + '.time';
950
- const referencepath_timeValidationError = validate$d(obj_time, path_time);
1274
+ const referencepath_timeValidationError = validate$h(obj_time, path_time);
951
1275
  if (referencepath_timeValidationError !== null) {
952
1276
  let message = 'Object doesn\'t match CdpTimeRepresentation (at "' + path_time + '")\n';
953
1277
  message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -957,7 +1281,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
957
1281
  return v_error === undefined ? null : v_error;
958
1282
  }
959
1283
 
960
- function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
1284
+ function validate$f(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
961
1285
  const v_error = (() => {
962
1286
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
963
1287
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -975,7 +1299,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
975
1299
  for (let i = 0; i < obj_recipients.length; i++) {
976
1300
  const obj_recipients_item = obj_recipients[i];
977
1301
  const path_recipients_item = path_recipients + '[' + i + ']';
978
- const referencepath_recipients_itemValidationError = validate$f(obj_recipients_item, path_recipients_item);
1302
+ const referencepath_recipients_itemValidationError = validate$j(obj_recipients_item, path_recipients_item);
979
1303
  if (referencepath_recipients_itemValidationError !== null) {
980
1304
  let message = 'Object doesn\'t match CdpMlModelRefreshRecipientRepresentation (at "' + path_recipients_item + '")\n';
981
1305
  message += referencepath_recipients_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -984,7 +1308,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
984
1308
  }
985
1309
  const obj_schedule = obj.schedule;
986
1310
  const path_schedule = path + '.schedule';
987
- const referencepath_scheduleValidationError = validate$c(obj_schedule, path_schedule);
1311
+ const referencepath_scheduleValidationError = validate$g(obj_schedule, path_schedule);
988
1312
  if (referencepath_scheduleValidationError !== null) {
989
1313
  let message = 'Object doesn\'t match CdpScheduleRepresentation (at "' + path_schedule + '")\n';
990
1314
  message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -994,77 +1318,225 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
994
1318
  return v_error === undefined ? null : v_error;
995
1319
  }
996
1320
 
997
- function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
1321
+ function validate$e(obj, path = 'CdpMlWorkspaceRepresentation') {
998
1322
  const v_error = (() => {
999
1323
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1000
1324
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1001
1325
  }
1002
- const obj_activeSetup = obj.activeSetup;
1003
- const path_activeSetup = path + '.activeSetup';
1004
- const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
1005
- if (referencepath_activeSetupValidationError !== null) {
1006
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1007
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1008
- return new TypeError(message);
1326
+ if (obj.activeSetup !== undefined) {
1327
+ const obj_activeSetup = obj.activeSetup;
1328
+ const path_activeSetup = path + '.activeSetup';
1329
+ const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
1330
+ if (referencepath_activeSetupValidationError !== null) {
1331
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1332
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1333
+ return new TypeError(message);
1334
+ }
1009
1335
  }
1010
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1011
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1012
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1013
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1014
- }
1015
- const obj_createdBy = obj.createdBy;
1016
- const path_createdBy = path + '.createdBy';
1017
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1018
- if (referencepath_createdByValidationError !== null) {
1019
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1020
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1021
- return new TypeError(message);
1336
+ if (obj.activeSetupVersionNumber !== undefined) {
1337
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1338
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1339
+ let obj_activeSetupVersionNumber_union0 = null;
1340
+ const obj_activeSetupVersionNumber_union0_error = (() => {
1341
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1342
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1343
+ }
1344
+ })();
1345
+ if (obj_activeSetupVersionNumber_union0_error != null) {
1346
+ obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
1347
+ }
1348
+ let obj_activeSetupVersionNumber_union1 = null;
1349
+ const obj_activeSetupVersionNumber_union1_error = (() => {
1350
+ if (obj_activeSetupVersionNumber !== null) {
1351
+ return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1352
+ }
1353
+ })();
1354
+ if (obj_activeSetupVersionNumber_union1_error != null) {
1355
+ obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
1356
+ }
1357
+ if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
1358
+ let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
1359
+ message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
1360
+ message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
1361
+ return new TypeError(message);
1362
+ }
1022
1363
  }
1023
- const obj_createdDate = obj.createdDate;
1024
- const path_createdDate = path + '.createdDate';
1025
- if (typeof obj_createdDate !== 'string') {
1026
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1364
+ if (obj.createdBy !== undefined) {
1365
+ const obj_createdBy = obj.createdBy;
1366
+ const path_createdBy = path + '.createdBy';
1367
+ const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
1368
+ if (referencepath_createdByValidationError !== null) {
1369
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1370
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1371
+ return new TypeError(message);
1372
+ }
1027
1373
  }
1028
- const obj_description = obj.description;
1029
- const path_description = path + '.description';
1030
- if (typeof obj_description !== 'string') {
1031
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1374
+ if (obj.createdDate !== undefined) {
1375
+ const obj_createdDate = obj.createdDate;
1376
+ const path_createdDate = path + '.createdDate';
1377
+ let obj_createdDate_union0 = null;
1378
+ const obj_createdDate_union0_error = (() => {
1379
+ if (typeof obj_createdDate !== 'string') {
1380
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1381
+ }
1382
+ })();
1383
+ if (obj_createdDate_union0_error != null) {
1384
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
1385
+ }
1386
+ let obj_createdDate_union1 = null;
1387
+ const obj_createdDate_union1_error = (() => {
1388
+ if (obj_createdDate !== null) {
1389
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1390
+ }
1391
+ })();
1392
+ if (obj_createdDate_union1_error != null) {
1393
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
1394
+ }
1395
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
1396
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
1397
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1398
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1399
+ return new TypeError(message);
1400
+ }
1032
1401
  }
1033
- const obj_historiesUrl = obj.historiesUrl;
1034
- const path_historiesUrl = path + '.historiesUrl';
1035
- if (typeof obj_historiesUrl !== 'string') {
1036
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1402
+ if (obj.description !== undefined) {
1403
+ const obj_description = obj.description;
1404
+ const path_description = path + '.description';
1405
+ let obj_description_union0 = null;
1406
+ const obj_description_union0_error = (() => {
1407
+ if (typeof obj_description !== 'string') {
1408
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1409
+ }
1410
+ })();
1411
+ if (obj_description_union0_error != null) {
1412
+ obj_description_union0 = obj_description_union0_error.message;
1413
+ }
1414
+ let obj_description_union1 = null;
1415
+ const obj_description_union1_error = (() => {
1416
+ if (obj_description !== null) {
1417
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1418
+ }
1419
+ })();
1420
+ if (obj_description_union1_error != null) {
1421
+ obj_description_union1 = obj_description_union1_error.message;
1422
+ }
1423
+ if (obj_description_union0 && obj_description_union1) {
1424
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
1425
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1426
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
1427
+ return new TypeError(message);
1428
+ }
1037
1429
  }
1038
- const obj_id = obj.id;
1039
- const path_id = path + '.id';
1040
- if (typeof obj_id !== 'string') {
1041
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1430
+ if (obj.historiesUrl !== undefined) {
1431
+ const obj_historiesUrl = obj.historiesUrl;
1432
+ const path_historiesUrl = path + '.historiesUrl';
1433
+ let obj_historiesUrl_union0 = null;
1434
+ const obj_historiesUrl_union0_error = (() => {
1435
+ if (typeof obj_historiesUrl !== 'string') {
1436
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1437
+ }
1438
+ })();
1439
+ if (obj_historiesUrl_union0_error != null) {
1440
+ obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
1441
+ }
1442
+ let obj_historiesUrl_union1 = null;
1443
+ const obj_historiesUrl_union1_error = (() => {
1444
+ if (obj_historiesUrl !== null) {
1445
+ return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1446
+ }
1447
+ })();
1448
+ if (obj_historiesUrl_union1_error != null) {
1449
+ obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
1450
+ }
1451
+ if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
1452
+ let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
1453
+ message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1454
+ message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1455
+ return new TypeError(message);
1456
+ }
1042
1457
  }
1043
- const obj_label = obj.label;
1044
- const path_label = path + '.label';
1045
- if (typeof obj_label !== 'string') {
1046
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1047
- }
1048
- const obj_lastModifiedBy = obj.lastModifiedBy;
1049
- const path_lastModifiedBy = path + '.lastModifiedBy';
1050
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
1051
- if (referencepath_lastModifiedByValidationError !== null) {
1052
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1053
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1054
- return new TypeError(message);
1458
+ if (obj.id !== undefined) {
1459
+ const obj_id = obj.id;
1460
+ const path_id = path + '.id';
1461
+ if (typeof obj_id !== 'string') {
1462
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1463
+ }
1055
1464
  }
1056
- const obj_lastModifiedDate = obj.lastModifiedDate;
1057
- const path_lastModifiedDate = path + '.lastModifiedDate';
1058
- if (typeof obj_lastModifiedDate !== 'string') {
1059
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1060
- }
1061
- const obj_latestSetup = obj.latestSetup;
1062
- const path_latestSetup = path + '.latestSetup';
1063
- const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
1064
- if (referencepath_latestSetupValidationError !== null) {
1065
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1066
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1067
- return new TypeError(message);
1465
+ if (obj.label !== undefined) {
1466
+ const obj_label = obj.label;
1467
+ const path_label = path + '.label';
1468
+ let obj_label_union0 = null;
1469
+ const obj_label_union0_error = (() => {
1470
+ if (typeof obj_label !== 'string') {
1471
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1472
+ }
1473
+ })();
1474
+ if (obj_label_union0_error != null) {
1475
+ obj_label_union0 = obj_label_union0_error.message;
1476
+ }
1477
+ let obj_label_union1 = null;
1478
+ const obj_label_union1_error = (() => {
1479
+ if (obj_label !== null) {
1480
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1481
+ }
1482
+ })();
1483
+ if (obj_label_union1_error != null) {
1484
+ obj_label_union1 = obj_label_union1_error.message;
1485
+ }
1486
+ if (obj_label_union0 && obj_label_union1) {
1487
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
1488
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
1489
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
1490
+ return new TypeError(message);
1491
+ }
1492
+ }
1493
+ if (obj.lastModifiedBy !== undefined) {
1494
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1495
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1496
+ const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
1497
+ if (referencepath_lastModifiedByValidationError !== null) {
1498
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1499
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1500
+ return new TypeError(message);
1501
+ }
1502
+ }
1503
+ if (obj.lastModifiedDate !== undefined) {
1504
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1505
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1506
+ let obj_lastModifiedDate_union0 = null;
1507
+ const obj_lastModifiedDate_union0_error = (() => {
1508
+ if (typeof obj_lastModifiedDate !== 'string') {
1509
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1510
+ }
1511
+ })();
1512
+ if (obj_lastModifiedDate_union0_error != null) {
1513
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
1514
+ }
1515
+ let obj_lastModifiedDate_union1 = null;
1516
+ const obj_lastModifiedDate_union1_error = (() => {
1517
+ if (obj_lastModifiedDate !== null) {
1518
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1519
+ }
1520
+ })();
1521
+ if (obj_lastModifiedDate_union1_error != null) {
1522
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
1523
+ }
1524
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
1525
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
1526
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1527
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1528
+ return new TypeError(message);
1529
+ }
1530
+ }
1531
+ if (obj.latestSetup !== undefined) {
1532
+ const obj_latestSetup = obj.latestSetup;
1533
+ const path_latestSetup = path + '.latestSetup';
1534
+ const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
1535
+ if (referencepath_latestSetupValidationError !== null) {
1536
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1537
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1538
+ return new TypeError(message);
1539
+ }
1068
1540
  }
1069
1541
  const obj_modelCount = obj.modelCount;
1070
1542
  const path_modelCount = path + '.modelCount';
@@ -1073,7 +1545,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
1073
1545
  }
1074
1546
  const obj_modelType = obj.modelType;
1075
1547
  const path_modelType = path + '.modelType';
1076
- const referencepath_modelTypeValidationError = validate$h(obj_modelType, path_modelType);
1548
+ const referencepath_modelTypeValidationError = validate$l(obj_modelType, path_modelType);
1077
1549
  if (referencepath_modelTypeValidationError !== null) {
1078
1550
  let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
1079
1551
  message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1089,51 +1561,170 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
1089
1561
  if (typeof obj_name !== 'string') {
1090
1562
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1091
1563
  }
1092
- const obj_namespace = obj.namespace;
1093
- const path_namespace = path + '.namespace';
1094
- if (typeof obj_namespace !== 'string') {
1095
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1096
- }
1097
- const obj_outcomeDefinition = obj.outcomeDefinition;
1098
- const path_outcomeDefinition = path + '.outcomeDefinition';
1099
- const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
1100
- if (referencepath_outcomeDefinitionValidationError !== null) {
1101
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1102
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1103
- return new TypeError(message);
1564
+ if (obj.namespace !== undefined) {
1565
+ const obj_namespace = obj.namespace;
1566
+ const path_namespace = path + '.namespace';
1567
+ let obj_namespace_union0 = null;
1568
+ const obj_namespace_union0_error = (() => {
1569
+ if (typeof obj_namespace !== 'string') {
1570
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1571
+ }
1572
+ })();
1573
+ if (obj_namespace_union0_error != null) {
1574
+ obj_namespace_union0 = obj_namespace_union0_error.message;
1575
+ }
1576
+ let obj_namespace_union1 = null;
1577
+ const obj_namespace_union1_error = (() => {
1578
+ if (obj_namespace !== null) {
1579
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1580
+ }
1581
+ })();
1582
+ if (obj_namespace_union1_error != null) {
1583
+ obj_namespace_union1 = obj_namespace_union1_error.message;
1584
+ }
1585
+ if (obj_namespace_union0 && obj_namespace_union1) {
1586
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
1587
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
1588
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
1589
+ return new TypeError(message);
1590
+ }
1104
1591
  }
1105
- const obj_predictionType = obj.predictionType;
1106
- const path_predictionType = path + '.predictionType';
1107
- if (typeof obj_predictionType !== 'string') {
1108
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1109
- }
1110
- const obj_refreshConfig = obj.refreshConfig;
1111
- const path_refreshConfig = path + '.refreshConfig';
1112
- const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
1113
- if (referencepath_refreshConfigValidationError !== null) {
1114
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1115
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1116
- return new TypeError(message);
1592
+ if (obj.outcomeDefinition !== undefined) {
1593
+ const obj_outcomeDefinition = obj.outcomeDefinition;
1594
+ const path_outcomeDefinition = path + '.outcomeDefinition';
1595
+ const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
1596
+ if (referencepath_outcomeDefinitionValidationError !== null) {
1597
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1598
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1599
+ return new TypeError(message);
1600
+ }
1601
+ }
1602
+ if (obj.predictionType !== undefined) {
1603
+ const obj_predictionType = obj.predictionType;
1604
+ const path_predictionType = path + '.predictionType';
1605
+ let obj_predictionType_union0 = null;
1606
+ const obj_predictionType_union0_error = (() => {
1607
+ if (typeof obj_predictionType !== 'string') {
1608
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1609
+ }
1610
+ })();
1611
+ if (obj_predictionType_union0_error != null) {
1612
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
1613
+ }
1614
+ let obj_predictionType_union1 = null;
1615
+ const obj_predictionType_union1_error = (() => {
1616
+ if (obj_predictionType !== null) {
1617
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1618
+ }
1619
+ })();
1620
+ if (obj_predictionType_union1_error != null) {
1621
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
1622
+ }
1623
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
1624
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
1625
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
1626
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
1627
+ return new TypeError(message);
1628
+ }
1629
+ }
1630
+ if (obj.refreshConfig !== undefined) {
1631
+ const obj_refreshConfig = obj.refreshConfig;
1632
+ const path_refreshConfig = path + '.refreshConfig';
1633
+ const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
1634
+ if (referencepath_refreshConfigValidationError !== null) {
1635
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1636
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1637
+ return new TypeError(message);
1638
+ }
1117
1639
  }
1118
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
1119
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
1120
- if (typeof obj_setupVersionsUrl !== 'string') {
1121
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1640
+ if (obj.setupVersionsUrl !== undefined) {
1641
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
1642
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
1643
+ let obj_setupVersionsUrl_union0 = null;
1644
+ const obj_setupVersionsUrl_union0_error = (() => {
1645
+ if (typeof obj_setupVersionsUrl !== 'string') {
1646
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1647
+ }
1648
+ })();
1649
+ if (obj_setupVersionsUrl_union0_error != null) {
1650
+ obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
1651
+ }
1652
+ let obj_setupVersionsUrl_union1 = null;
1653
+ const obj_setupVersionsUrl_union1_error = (() => {
1654
+ if (obj_setupVersionsUrl !== null) {
1655
+ return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1656
+ }
1657
+ })();
1658
+ if (obj_setupVersionsUrl_union1_error != null) {
1659
+ obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
1660
+ }
1661
+ if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
1662
+ let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
1663
+ message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1664
+ message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1665
+ return new TypeError(message);
1666
+ }
1122
1667
  }
1123
1668
  const obj_status = obj.status;
1124
1669
  const path_status = path + '.status';
1125
1670
  if (typeof obj_status !== 'string') {
1126
1671
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1127
1672
  }
1128
- const obj_totalInferenceCount = obj.totalInferenceCount;
1129
- const path_totalInferenceCount = path + '.totalInferenceCount';
1130
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1131
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1673
+ if (obj.totalInferenceCount !== undefined) {
1674
+ const obj_totalInferenceCount = obj.totalInferenceCount;
1675
+ const path_totalInferenceCount = path + '.totalInferenceCount';
1676
+ let obj_totalInferenceCount_union0 = null;
1677
+ const obj_totalInferenceCount_union0_error = (() => {
1678
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1679
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1680
+ }
1681
+ })();
1682
+ if (obj_totalInferenceCount_union0_error != null) {
1683
+ obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
1684
+ }
1685
+ let obj_totalInferenceCount_union1 = null;
1686
+ const obj_totalInferenceCount_union1_error = (() => {
1687
+ if (obj_totalInferenceCount !== null) {
1688
+ return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1689
+ }
1690
+ })();
1691
+ if (obj_totalInferenceCount_union1_error != null) {
1692
+ obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
1693
+ }
1694
+ if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
1695
+ let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
1696
+ message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
1697
+ message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
1698
+ return new TypeError(message);
1699
+ }
1132
1700
  }
1133
- const obj_totalWarningsCount = obj.totalWarningsCount;
1134
- const path_totalWarningsCount = path + '.totalWarningsCount';
1135
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1136
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1701
+ if (obj.totalWarningsCount !== undefined) {
1702
+ const obj_totalWarningsCount = obj.totalWarningsCount;
1703
+ const path_totalWarningsCount = path + '.totalWarningsCount';
1704
+ let obj_totalWarningsCount_union0 = null;
1705
+ const obj_totalWarningsCount_union0_error = (() => {
1706
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1707
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1708
+ }
1709
+ })();
1710
+ if (obj_totalWarningsCount_union0_error != null) {
1711
+ obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
1712
+ }
1713
+ let obj_totalWarningsCount_union1 = null;
1714
+ const obj_totalWarningsCount_union1_error = (() => {
1715
+ if (obj_totalWarningsCount !== null) {
1716
+ return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1717
+ }
1718
+ })();
1719
+ if (obj_totalWarningsCount_union1_error != null) {
1720
+ obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
1721
+ }
1722
+ if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
1723
+ let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
1724
+ message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
1725
+ message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
1726
+ return new TypeError(message);
1727
+ }
1137
1728
  }
1138
1729
  const obj_url = obj.url;
1139
1730
  const path_url = path + '.url';
@@ -1145,42 +1736,67 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
1145
1736
  }
1146
1737
 
1147
1738
  const TTL$3 = 1000;
1148
- const VERSION$3 = "26d1c35f9633e3491b79dec55637990a";
1149
- function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
1739
+ const VERSION$3 = "e6a8612718f37385e9d7622527f26c5c";
1740
+ function validate$d(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
1150
1741
  const v_error = (() => {
1151
1742
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1152
1743
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1153
1744
  }
1154
- const obj_currentPageUrl = obj.currentPageUrl;
1155
- const path_currentPageUrl = path + '.currentPageUrl';
1156
- if (typeof obj_currentPageUrl !== 'string') {
1157
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
1158
- }
1159
- const obj_nextPageUrl = obj.nextPageUrl;
1160
- const path_nextPageUrl = path + '.nextPageUrl';
1161
- let obj_nextPageUrl_union0 = null;
1162
- const obj_nextPageUrl_union0_error = (() => {
1163
- if (typeof obj_nextPageUrl !== 'string') {
1164
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1745
+ if (obj.currentPageUrl !== undefined) {
1746
+ const obj_currentPageUrl = obj.currentPageUrl;
1747
+ const path_currentPageUrl = path + '.currentPageUrl';
1748
+ let obj_currentPageUrl_union0 = null;
1749
+ const obj_currentPageUrl_union0_error = (() => {
1750
+ if (typeof obj_currentPageUrl !== 'string') {
1751
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
1752
+ }
1753
+ })();
1754
+ if (obj_currentPageUrl_union0_error != null) {
1755
+ obj_currentPageUrl_union0 = obj_currentPageUrl_union0_error.message;
1165
1756
  }
1166
- })();
1167
- if (obj_nextPageUrl_union0_error != null) {
1168
- obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
1169
- }
1170
- let obj_nextPageUrl_union1 = null;
1171
- const obj_nextPageUrl_union1_error = (() => {
1172
- if (obj_nextPageUrl !== null) {
1173
- return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1757
+ let obj_currentPageUrl_union1 = null;
1758
+ const obj_currentPageUrl_union1_error = (() => {
1759
+ if (obj_currentPageUrl !== null) {
1760
+ return new TypeError('Expected "null" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
1761
+ }
1762
+ })();
1763
+ if (obj_currentPageUrl_union1_error != null) {
1764
+ obj_currentPageUrl_union1 = obj_currentPageUrl_union1_error.message;
1765
+ }
1766
+ if (obj_currentPageUrl_union0 && obj_currentPageUrl_union1) {
1767
+ let message = 'Object doesn\'t match union (at "' + path_currentPageUrl + '")';
1768
+ message += '\n' + obj_currentPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1769
+ message += '\n' + obj_currentPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1770
+ return new TypeError(message);
1174
1771
  }
1175
- })();
1176
- if (obj_nextPageUrl_union1_error != null) {
1177
- obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
1178
1772
  }
1179
- if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
1180
- let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
1181
- message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1182
- message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1183
- return new TypeError(message);
1773
+ if (obj.nextPageUrl !== undefined) {
1774
+ const obj_nextPageUrl = obj.nextPageUrl;
1775
+ const path_nextPageUrl = path + '.nextPageUrl';
1776
+ let obj_nextPageUrl_union0 = null;
1777
+ const obj_nextPageUrl_union0_error = (() => {
1778
+ if (typeof obj_nextPageUrl !== 'string') {
1779
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1780
+ }
1781
+ })();
1782
+ if (obj_nextPageUrl_union0_error != null) {
1783
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
1784
+ }
1785
+ let obj_nextPageUrl_union1 = null;
1786
+ const obj_nextPageUrl_union1_error = (() => {
1787
+ if (obj_nextPageUrl !== null) {
1788
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1789
+ }
1790
+ })();
1791
+ if (obj_nextPageUrl_union1_error != null) {
1792
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
1793
+ }
1794
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
1795
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
1796
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1797
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1798
+ return new TypeError(message);
1799
+ }
1184
1800
  }
1185
1801
  const obj_totalSize = obj.totalSize;
1186
1802
  const path_totalSize = path + '.totalSize';
@@ -1195,7 +1811,7 @@ function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
1195
1811
  for (let i = 0; i < obj_workspaces.length; i++) {
1196
1812
  const obj_workspaces_item = obj_workspaces[i];
1197
1813
  const path_workspaces_item = path_workspaces + '[' + i + ']';
1198
- const referencepath_workspaces_itemValidationError = validate$a(obj_workspaces_item, path_workspaces_item);
1814
+ const referencepath_workspaces_itemValidationError = validate$e(obj_workspaces_item, path_workspaces_item);
1199
1815
  if (referencepath_workspaces_itemValidationError !== null) {
1200
1816
  let message = 'Object doesn\'t match CdpMlWorkspaceRepresentation (at "' + path_workspaces_item + '")\n';
1201
1817
  message += referencepath_workspaces_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1225,7 +1841,7 @@ function equals$3(existing, incoming) {
1225
1841
  }
1226
1842
  const ingest$3 = function CdpMlWorkspaceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1227
1843
  if (process.env.NODE_ENV !== 'production') {
1228
- const validateError = validate$9(input);
1844
+ const validateError = validate$d(input);
1229
1845
  if (validateError !== null) {
1230
1846
  throw validateError;
1231
1847
  }
@@ -1248,15 +1864,15 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1248
1864
  function select$8(luvio, params) {
1249
1865
  return select$9();
1250
1866
  }
1251
- function keyBuilder$9(luvio, params) {
1867
+ function keyBuilder$7(luvio, params) {
1252
1868
  return keyPrefix + '::CdpMlWorkspaceCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'predictionType:' + params.queryParams.predictionType + ',' + 'search:' + params.queryParams.search + ',' + 'sourceType:' + params.queryParams.sourceType + ',' + 'status:' + params.queryParams.status + ')';
1253
1869
  }
1254
1870
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1255
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1871
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1256
1872
  }
1257
1873
  function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1258
1874
  const { body } = response;
1259
- const key = keyBuilder$9(luvio, resourceParams);
1875
+ const key = keyBuilder$7(luvio, resourceParams);
1260
1876
  luvio.storeIngest(key, ingest$3, body);
1261
1877
  const snapshot = luvio.storeLookup({
1262
1878
  recordId: key,
@@ -1272,7 +1888,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1272
1888
  return snapshot;
1273
1889
  }
1274
1890
  function ingestError$3(luvio, params, error, snapshotRefresh) {
1275
- const key = keyBuilder$9(luvio, params);
1891
+ const key = keyBuilder$7(luvio, params);
1276
1892
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1277
1893
  const storeMetadataParams = {
1278
1894
  ttl: TTL$3,
@@ -1309,9 +1925,9 @@ const getCdpMlWorkspaceCollection_ConfigPropertyMetadata = [
1309
1925
  ];
1310
1926
  const getCdpMlWorkspaceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
1311
1927
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
1312
- function keyBuilder$8(luvio, config) {
1928
+ function keyBuilder$6(luvio, config) {
1313
1929
  const resourceParams = createResourceParams$5(config);
1314
- return keyBuilder$9(luvio, resourceParams);
1930
+ return keyBuilder$7(luvio, resourceParams);
1315
1931
  }
1316
1932
  function typeCheckConfig$5(untrustedConfig) {
1317
1933
  const config = {};
@@ -1369,7 +1985,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
1369
1985
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1370
1986
  const { luvio, config } = context;
1371
1987
  const selector = {
1372
- recordId: keyBuilder$8(luvio, config),
1988
+ recordId: keyBuilder$6(luvio, config),
1373
1989
  node: adapterFragment$3(luvio, config),
1374
1990
  variables: {},
1375
1991
  };
@@ -1389,9 +2005,17 @@ const getCdpMlWorkspaceCollectionAdapterFactory = (luvio) => function cdpMachine
1389
2005
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1390
2006
  };
1391
2007
 
2008
+ // Should match with keyBuilder
2009
+ function keyBuilderFromType$1(luvio, object) {
2010
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
2011
+ const urlArray = object.url.split('/');
2012
+ const idOrName = urlArray[urlArray.length - 1];
2013
+ return `${keyPrefix}::${RepresentationType$2}:(id:${idOrName},type:${type})`;
2014
+ }
2015
+
1392
2016
  const TTL$2 = 1000;
1393
- const VERSION$2 = "b700ad4033c4cc1a2f1373d916e31c4d";
1394
- function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2017
+ const VERSION$2 = "1cb47dd9b0cc811f1ad3318c7245d465";
2018
+ function validate$c(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1395
2019
  const v_error = (() => {
1396
2020
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1397
2021
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1408,141 +2032,433 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1408
2032
  return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
1409
2033
  }
1410
2034
  }
1411
- const obj_activeSetup = obj.activeSetup;
1412
- const path_activeSetup = path + '.activeSetup';
1413
- const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
1414
- if (referencepath_activeSetupValidationError !== null) {
1415
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1416
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1417
- return new TypeError(message);
2035
+ if (obj.activeSetup !== undefined) {
2036
+ const obj_activeSetup = obj.activeSetup;
2037
+ const path_activeSetup = path + '.activeSetup';
2038
+ const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
2039
+ if (referencepath_activeSetupValidationError !== null) {
2040
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
2041
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2042
+ return new TypeError(message);
2043
+ }
1418
2044
  }
1419
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1420
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1421
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1422
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1423
- }
1424
- const obj_createdBy = obj.createdBy;
1425
- const path_createdBy = path + '.createdBy';
1426
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1427
- if (referencepath_createdByValidationError !== null) {
1428
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1429
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1430
- return new TypeError(message);
2045
+ if (obj.activeSetupVersionNumber !== undefined) {
2046
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2047
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2048
+ let obj_activeSetupVersionNumber_union0 = null;
2049
+ const obj_activeSetupVersionNumber_union0_error = (() => {
2050
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2051
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2052
+ }
2053
+ })();
2054
+ if (obj_activeSetupVersionNumber_union0_error != null) {
2055
+ obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
2056
+ }
2057
+ let obj_activeSetupVersionNumber_union1 = null;
2058
+ const obj_activeSetupVersionNumber_union1_error = (() => {
2059
+ if (obj_activeSetupVersionNumber !== null) {
2060
+ return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2061
+ }
2062
+ })();
2063
+ if (obj_activeSetupVersionNumber_union1_error != null) {
2064
+ obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
2065
+ }
2066
+ if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
2067
+ let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
2068
+ message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
2069
+ message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
2070
+ return new TypeError(message);
2071
+ }
1431
2072
  }
1432
- const obj_createdDate = obj.createdDate;
1433
- const path_createdDate = path + '.createdDate';
1434
- if (typeof obj_createdDate !== 'string') {
1435
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2073
+ if (obj.createdBy !== undefined) {
2074
+ const obj_createdBy = obj.createdBy;
2075
+ const path_createdBy = path + '.createdBy';
2076
+ const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
2077
+ if (referencepath_createdByValidationError !== null) {
2078
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2079
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2080
+ return new TypeError(message);
2081
+ }
1436
2082
  }
1437
- const obj_description = obj.description;
1438
- const path_description = path + '.description';
1439
- if (typeof obj_description !== 'string') {
1440
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2083
+ if (obj.createdDate !== undefined) {
2084
+ const obj_createdDate = obj.createdDate;
2085
+ const path_createdDate = path + '.createdDate';
2086
+ let obj_createdDate_union0 = null;
2087
+ const obj_createdDate_union0_error = (() => {
2088
+ if (typeof obj_createdDate !== 'string') {
2089
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2090
+ }
2091
+ })();
2092
+ if (obj_createdDate_union0_error != null) {
2093
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
2094
+ }
2095
+ let obj_createdDate_union1 = null;
2096
+ const obj_createdDate_union1_error = (() => {
2097
+ if (obj_createdDate !== null) {
2098
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2099
+ }
2100
+ })();
2101
+ if (obj_createdDate_union1_error != null) {
2102
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
2103
+ }
2104
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
2105
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
2106
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2107
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2108
+ return new TypeError(message);
2109
+ }
1441
2110
  }
1442
- const obj_historiesUrl = obj.historiesUrl;
1443
- const path_historiesUrl = path + '.historiesUrl';
1444
- if (typeof obj_historiesUrl !== 'string') {
1445
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2111
+ if (obj.description !== undefined) {
2112
+ const obj_description = obj.description;
2113
+ const path_description = path + '.description';
2114
+ let obj_description_union0 = null;
2115
+ const obj_description_union0_error = (() => {
2116
+ if (typeof obj_description !== 'string') {
2117
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2118
+ }
2119
+ })();
2120
+ if (obj_description_union0_error != null) {
2121
+ obj_description_union0 = obj_description_union0_error.message;
2122
+ }
2123
+ let obj_description_union1 = null;
2124
+ const obj_description_union1_error = (() => {
2125
+ if (obj_description !== null) {
2126
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2127
+ }
2128
+ })();
2129
+ if (obj_description_union1_error != null) {
2130
+ obj_description_union1 = obj_description_union1_error.message;
2131
+ }
2132
+ if (obj_description_union0 && obj_description_union1) {
2133
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
2134
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
2135
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
2136
+ return new TypeError(message);
2137
+ }
1446
2138
  }
1447
- const obj_id = obj.id;
1448
- const path_id = path + '.id';
1449
- if (typeof obj_id !== 'string') {
1450
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2139
+ if (obj.historiesUrl !== undefined) {
2140
+ const obj_historiesUrl = obj.historiesUrl;
2141
+ const path_historiesUrl = path + '.historiesUrl';
2142
+ let obj_historiesUrl_union0 = null;
2143
+ const obj_historiesUrl_union0_error = (() => {
2144
+ if (typeof obj_historiesUrl !== 'string') {
2145
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2146
+ }
2147
+ })();
2148
+ if (obj_historiesUrl_union0_error != null) {
2149
+ obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
2150
+ }
2151
+ let obj_historiesUrl_union1 = null;
2152
+ const obj_historiesUrl_union1_error = (() => {
2153
+ if (obj_historiesUrl !== null) {
2154
+ return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2155
+ }
2156
+ })();
2157
+ if (obj_historiesUrl_union1_error != null) {
2158
+ obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
2159
+ }
2160
+ if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
2161
+ let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
2162
+ message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2163
+ message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2164
+ return new TypeError(message);
2165
+ }
1451
2166
  }
1452
- const obj_label = obj.label;
1453
- const path_label = path + '.label';
1454
- if (typeof obj_label !== 'string') {
1455
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1456
- }
1457
- const obj_lastModifiedBy = obj.lastModifiedBy;
1458
- const path_lastModifiedBy = path + '.lastModifiedBy';
1459
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
1460
- if (referencepath_lastModifiedByValidationError !== null) {
1461
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1462
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1463
- return new TypeError(message);
2167
+ if (obj.id !== undefined) {
2168
+ const obj_id = obj.id;
2169
+ const path_id = path + '.id';
2170
+ if (typeof obj_id !== 'string') {
2171
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2172
+ }
1464
2173
  }
1465
- const obj_lastModifiedDate = obj.lastModifiedDate;
1466
- const path_lastModifiedDate = path + '.lastModifiedDate';
1467
- if (typeof obj_lastModifiedDate !== 'string') {
1468
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1469
- }
1470
- const obj_latestSetup = obj.latestSetup;
1471
- const path_latestSetup = path + '.latestSetup';
1472
- const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
1473
- if (referencepath_latestSetupValidationError !== null) {
1474
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1475
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1476
- return new TypeError(message);
2174
+ if (obj.label !== undefined) {
2175
+ const obj_label = obj.label;
2176
+ const path_label = path + '.label';
2177
+ let obj_label_union0 = null;
2178
+ const obj_label_union0_error = (() => {
2179
+ if (typeof obj_label !== 'string') {
2180
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2181
+ }
2182
+ })();
2183
+ if (obj_label_union0_error != null) {
2184
+ obj_label_union0 = obj_label_union0_error.message;
2185
+ }
2186
+ let obj_label_union1 = null;
2187
+ const obj_label_union1_error = (() => {
2188
+ if (obj_label !== null) {
2189
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2190
+ }
2191
+ })();
2192
+ if (obj_label_union1_error != null) {
2193
+ obj_label_union1 = obj_label_union1_error.message;
2194
+ }
2195
+ if (obj_label_union0 && obj_label_union1) {
2196
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
2197
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
2198
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
2199
+ return new TypeError(message);
2200
+ }
2201
+ }
2202
+ if (obj.lastModifiedBy !== undefined) {
2203
+ const obj_lastModifiedBy = obj.lastModifiedBy;
2204
+ const path_lastModifiedBy = path + '.lastModifiedBy';
2205
+ const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
2206
+ if (referencepath_lastModifiedByValidationError !== null) {
2207
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2208
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2209
+ return new TypeError(message);
2210
+ }
2211
+ }
2212
+ if (obj.lastModifiedDate !== undefined) {
2213
+ const obj_lastModifiedDate = obj.lastModifiedDate;
2214
+ const path_lastModifiedDate = path + '.lastModifiedDate';
2215
+ let obj_lastModifiedDate_union0 = null;
2216
+ const obj_lastModifiedDate_union0_error = (() => {
2217
+ if (typeof obj_lastModifiedDate !== 'string') {
2218
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2219
+ }
2220
+ })();
2221
+ if (obj_lastModifiedDate_union0_error != null) {
2222
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
2223
+ }
2224
+ let obj_lastModifiedDate_union1 = null;
2225
+ const obj_lastModifiedDate_union1_error = (() => {
2226
+ if (obj_lastModifiedDate !== null) {
2227
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2228
+ }
2229
+ })();
2230
+ if (obj_lastModifiedDate_union1_error != null) {
2231
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
2232
+ }
2233
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
2234
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
2235
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2236
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2237
+ return new TypeError(message);
2238
+ }
2239
+ }
2240
+ if (obj.latestSetup !== undefined) {
2241
+ const obj_latestSetup = obj.latestSetup;
2242
+ const path_latestSetup = path + '.latestSetup';
2243
+ const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
2244
+ if (referencepath_latestSetupValidationError !== null) {
2245
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2246
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2247
+ return new TypeError(message);
2248
+ }
1477
2249
  }
1478
2250
  const obj_modelCount = obj.modelCount;
1479
2251
  const path_modelCount = path + '.modelCount';
1480
2252
  if (typeof obj_modelCount !== 'number' || (typeof obj_modelCount === 'number' && Math.floor(obj_modelCount) !== obj_modelCount)) {
1481
2253
  return new TypeError('Expected "integer" but received "' + typeof obj_modelCount + '" (at "' + path_modelCount + '")');
1482
2254
  }
1483
- const obj_modelType = obj.modelType;
1484
- const path_modelType = path + '.modelType';
1485
- const referencepath_modelTypeValidationError = validate$h(obj_modelType, path_modelType);
1486
- if (referencepath_modelTypeValidationError !== null) {
1487
- let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
1488
- message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1489
- return new TypeError(message);
2255
+ if (obj.modelType !== undefined) {
2256
+ const obj_modelType = obj.modelType;
2257
+ const path_modelType = path + '.modelType';
2258
+ const referencepath_modelTypeValidationError = validate$l(obj_modelType, path_modelType);
2259
+ if (referencepath_modelTypeValidationError !== null) {
2260
+ let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
2261
+ message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2262
+ return new TypeError(message);
2263
+ }
1490
2264
  }
1491
- const obj_modelsUrl = obj.modelsUrl;
1492
- const path_modelsUrl = path + '.modelsUrl';
1493
- if (typeof obj_modelsUrl !== 'string') {
1494
- return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2265
+ if (obj.modelsUrl !== undefined) {
2266
+ const obj_modelsUrl = obj.modelsUrl;
2267
+ const path_modelsUrl = path + '.modelsUrl';
2268
+ let obj_modelsUrl_union0 = null;
2269
+ const obj_modelsUrl_union0_error = (() => {
2270
+ if (typeof obj_modelsUrl !== 'string') {
2271
+ return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2272
+ }
2273
+ })();
2274
+ if (obj_modelsUrl_union0_error != null) {
2275
+ obj_modelsUrl_union0 = obj_modelsUrl_union0_error.message;
2276
+ }
2277
+ let obj_modelsUrl_union1 = null;
2278
+ const obj_modelsUrl_union1_error = (() => {
2279
+ if (obj_modelsUrl !== null) {
2280
+ return new TypeError('Expected "null" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2281
+ }
2282
+ })();
2283
+ if (obj_modelsUrl_union1_error != null) {
2284
+ obj_modelsUrl_union1 = obj_modelsUrl_union1_error.message;
2285
+ }
2286
+ if (obj_modelsUrl_union0 && obj_modelsUrl_union1) {
2287
+ let message = 'Object doesn\'t match union (at "' + path_modelsUrl + '")';
2288
+ message += '\n' + obj_modelsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2289
+ message += '\n' + obj_modelsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2290
+ return new TypeError(message);
2291
+ }
1495
2292
  }
1496
2293
  const obj_name = obj.name;
1497
2294
  const path_name = path + '.name';
1498
2295
  if (typeof obj_name !== 'string') {
1499
2296
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1500
2297
  }
1501
- const obj_namespace = obj.namespace;
1502
- const path_namespace = path + '.namespace';
1503
- if (typeof obj_namespace !== 'string') {
1504
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1505
- }
1506
- const obj_outcomeDefinition = obj.outcomeDefinition;
1507
- const path_outcomeDefinition = path + '.outcomeDefinition';
1508
- const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
1509
- if (referencepath_outcomeDefinitionValidationError !== null) {
1510
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1511
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1512
- return new TypeError(message);
2298
+ if (obj.namespace !== undefined) {
2299
+ const obj_namespace = obj.namespace;
2300
+ const path_namespace = path + '.namespace';
2301
+ let obj_namespace_union0 = null;
2302
+ const obj_namespace_union0_error = (() => {
2303
+ if (typeof obj_namespace !== 'string') {
2304
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2305
+ }
2306
+ })();
2307
+ if (obj_namespace_union0_error != null) {
2308
+ obj_namespace_union0 = obj_namespace_union0_error.message;
2309
+ }
2310
+ let obj_namespace_union1 = null;
2311
+ const obj_namespace_union1_error = (() => {
2312
+ if (obj_namespace !== null) {
2313
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2314
+ }
2315
+ })();
2316
+ if (obj_namespace_union1_error != null) {
2317
+ obj_namespace_union1 = obj_namespace_union1_error.message;
2318
+ }
2319
+ if (obj_namespace_union0 && obj_namespace_union1) {
2320
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
2321
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
2322
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
2323
+ return new TypeError(message);
2324
+ }
1513
2325
  }
1514
- const obj_predictionType = obj.predictionType;
1515
- const path_predictionType = path + '.predictionType';
1516
- if (typeof obj_predictionType !== 'string') {
1517
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1518
- }
1519
- const obj_refreshConfig = obj.refreshConfig;
1520
- const path_refreshConfig = path + '.refreshConfig';
1521
- const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
1522
- if (referencepath_refreshConfigValidationError !== null) {
1523
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1524
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1525
- return new TypeError(message);
2326
+ if (obj.outcomeDefinition !== undefined) {
2327
+ const obj_outcomeDefinition = obj.outcomeDefinition;
2328
+ const path_outcomeDefinition = path + '.outcomeDefinition';
2329
+ const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
2330
+ if (referencepath_outcomeDefinitionValidationError !== null) {
2331
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2332
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2333
+ return new TypeError(message);
2334
+ }
2335
+ }
2336
+ if (obj.predictionType !== undefined) {
2337
+ const obj_predictionType = obj.predictionType;
2338
+ const path_predictionType = path + '.predictionType';
2339
+ let obj_predictionType_union0 = null;
2340
+ const obj_predictionType_union0_error = (() => {
2341
+ if (typeof obj_predictionType !== 'string') {
2342
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2343
+ }
2344
+ })();
2345
+ if (obj_predictionType_union0_error != null) {
2346
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
2347
+ }
2348
+ let obj_predictionType_union1 = null;
2349
+ const obj_predictionType_union1_error = (() => {
2350
+ if (obj_predictionType !== null) {
2351
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2352
+ }
2353
+ })();
2354
+ if (obj_predictionType_union1_error != null) {
2355
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
2356
+ }
2357
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
2358
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
2359
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
2360
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
2361
+ return new TypeError(message);
2362
+ }
2363
+ }
2364
+ if (obj.refreshConfig !== undefined) {
2365
+ const obj_refreshConfig = obj.refreshConfig;
2366
+ const path_refreshConfig = path + '.refreshConfig';
2367
+ const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
2368
+ if (referencepath_refreshConfigValidationError !== null) {
2369
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2370
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2371
+ return new TypeError(message);
2372
+ }
1526
2373
  }
1527
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
1528
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
1529
- if (typeof obj_setupVersionsUrl !== 'string') {
1530
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2374
+ if (obj.setupVersionsUrl !== undefined) {
2375
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
2376
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
2377
+ let obj_setupVersionsUrl_union0 = null;
2378
+ const obj_setupVersionsUrl_union0_error = (() => {
2379
+ if (typeof obj_setupVersionsUrl !== 'string') {
2380
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2381
+ }
2382
+ })();
2383
+ if (obj_setupVersionsUrl_union0_error != null) {
2384
+ obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
2385
+ }
2386
+ let obj_setupVersionsUrl_union1 = null;
2387
+ const obj_setupVersionsUrl_union1_error = (() => {
2388
+ if (obj_setupVersionsUrl !== null) {
2389
+ return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2390
+ }
2391
+ })();
2392
+ if (obj_setupVersionsUrl_union1_error != null) {
2393
+ obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
2394
+ }
2395
+ if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
2396
+ let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
2397
+ message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2398
+ message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2399
+ return new TypeError(message);
2400
+ }
1531
2401
  }
1532
2402
  const obj_status = obj.status;
1533
2403
  const path_status = path + '.status';
1534
2404
  if (typeof obj_status !== 'string') {
1535
2405
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1536
2406
  }
1537
- const obj_totalInferenceCount = obj.totalInferenceCount;
1538
- const path_totalInferenceCount = path + '.totalInferenceCount';
1539
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1540
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2407
+ if (obj.totalInferenceCount !== undefined) {
2408
+ const obj_totalInferenceCount = obj.totalInferenceCount;
2409
+ const path_totalInferenceCount = path + '.totalInferenceCount';
2410
+ let obj_totalInferenceCount_union0 = null;
2411
+ const obj_totalInferenceCount_union0_error = (() => {
2412
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2413
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2414
+ }
2415
+ })();
2416
+ if (obj_totalInferenceCount_union0_error != null) {
2417
+ obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
2418
+ }
2419
+ let obj_totalInferenceCount_union1 = null;
2420
+ const obj_totalInferenceCount_union1_error = (() => {
2421
+ if (obj_totalInferenceCount !== null) {
2422
+ return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2423
+ }
2424
+ })();
2425
+ if (obj_totalInferenceCount_union1_error != null) {
2426
+ obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
2427
+ }
2428
+ if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
2429
+ let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
2430
+ message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2431
+ message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2432
+ return new TypeError(message);
2433
+ }
1541
2434
  }
1542
- const obj_totalWarningsCount = obj.totalWarningsCount;
1543
- const path_totalWarningsCount = path + '.totalWarningsCount';
1544
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1545
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2435
+ if (obj.totalWarningsCount !== undefined) {
2436
+ const obj_totalWarningsCount = obj.totalWarningsCount;
2437
+ const path_totalWarningsCount = path + '.totalWarningsCount';
2438
+ let obj_totalWarningsCount_union0 = null;
2439
+ const obj_totalWarningsCount_union0_error = (() => {
2440
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2441
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2442
+ }
2443
+ })();
2444
+ if (obj_totalWarningsCount_union0_error != null) {
2445
+ obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
2446
+ }
2447
+ let obj_totalWarningsCount_union1 = null;
2448
+ const obj_totalWarningsCount_union1_error = (() => {
2449
+ if (obj_totalWarningsCount !== null) {
2450
+ return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2451
+ }
2452
+ })();
2453
+ if (obj_totalWarningsCount_union1_error != null) {
2454
+ obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
2455
+ }
2456
+ if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
2457
+ let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
2458
+ message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2459
+ message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2460
+ return new TypeError(message);
2461
+ }
1546
2462
  }
1547
2463
  const obj_url = obj.url;
1548
2464
  const path_url = path + '.url';
@@ -1553,15 +2469,6 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1553
2469
  return v_error === undefined ? null : v_error;
1554
2470
  }
1555
2471
  const RepresentationType$2 = 'CdpMlWorkspaceDetailRepresentation';
1556
- function keyBuilder$7(luvio, config) {
1557
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.workspaceIdOrName;
1558
- }
1559
- function keyBuilderFromType$1(luvio, object) {
1560
- const keyParams = {
1561
- workspaceIdOrName: object.id
1562
- };
1563
- return keyBuilder$7(luvio, keyParams);
1564
- }
1565
2472
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1566
2473
  return input;
1567
2474
  }
@@ -1581,7 +2488,7 @@ function equals$2(existing, incoming) {
1581
2488
  }
1582
2489
  const ingest$2 = function CdpMlWorkspaceDetailRepresentationIngest(input, path, luvio, store, timestamp) {
1583
2490
  if (process.env.NODE_ENV !== 'production') {
1584
- const validateError = validate$8(input);
2491
+ const validateError = validate$c(input);
1585
2492
  if (validateError !== null) {
1586
2493
  throw validateError;
1587
2494
  }
@@ -1601,20 +2508,28 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1601
2508
  });
1602
2509
  }
1603
2510
 
2511
+ function IsWorkspaceId(workspaceIdOrName) {
2512
+ return workspaceIdOrName.indexOf('__') === -1 || workspaceIdOrName.startsWith('12s');
2513
+ }
2514
+ function IsModelId(modelIdOrName) {
2515
+ return modelIdOrName.startsWith('12r');
2516
+ }
2517
+
2518
+ function keyBuilder$5(luvio, params) {
2519
+ const idOrName = params.urlParams.workspaceIdOrName;
2520
+ const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
2521
+ return `${keyPrefix}::${RepresentationType$2}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
2522
+ }
2523
+
1604
2524
  function select$6(luvio, params) {
1605
2525
  return select$7();
1606
2526
  }
1607
- function keyBuilder$6(luvio, params) {
1608
- return keyBuilder$7(luvio, {
1609
- workspaceIdOrName: params.urlParams.workspaceIdOrName
1610
- });
1611
- }
1612
2527
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1613
2528
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
1614
2529
  }
1615
2530
  function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1616
2531
  const { body } = response;
1617
- const key = keyBuilder$6(luvio, resourceParams);
2532
+ const key = keyBuilder$5(luvio, resourceParams);
1618
2533
  luvio.storeIngest(key, ingest$2, body);
1619
2534
  const snapshot = luvio.storeLookup({
1620
2535
  recordId: key,
@@ -1630,7 +2545,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1630
2545
  return snapshot;
1631
2546
  }
1632
2547
  function ingestError$2(luvio, params, error, snapshotRefresh) {
1633
- const key = keyBuilder$6(luvio, params);
2548
+ const key = keyBuilder$5(luvio, params);
1634
2549
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1635
2550
  const storeMetadataParams = {
1636
2551
  ttl: TTL$2,
@@ -1661,9 +2576,9 @@ const getCdpMlWorkspace_ConfigPropertyMetadata = [
1661
2576
  ];
1662
2577
  const getCdpMlWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCdpMlWorkspace_ConfigPropertyMetadata);
1663
2578
  const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspace_ConfigPropertyMetadata);
1664
- function keyBuilder$5(luvio, config) {
2579
+ function keyBuilder$4(luvio, config) {
1665
2580
  const resourceParams = createResourceParams$4(config);
1666
- return keyBuilder$6(luvio, resourceParams);
2581
+ return keyBuilder$5(luvio, resourceParams);
1667
2582
  }
1668
2583
  function typeCheckConfig$4(untrustedConfig) {
1669
2584
  const config = {};
@@ -1721,7 +2636,7 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
1721
2636
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1722
2637
  const { luvio, config } = context;
1723
2638
  const selector = {
1724
- recordId: keyBuilder$5(luvio, config),
2639
+ recordId: keyBuilder$4(luvio, config),
1725
2640
  node: adapterFragment$2(luvio, config),
1726
2641
  variables: {},
1727
2642
  };
@@ -1741,7 +2656,7 @@ const getCdpMlWorkspaceAdapterFactory = (luvio) => function cdpMachineLearning__
1741
2656
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1742
2657
  };
1743
2658
 
1744
- function validate$7(obj, path = 'CdpMlFilterValueRepresentation') {
2659
+ function validate$b(obj, path = 'CdpMlFilterValueRepresentation') {
1745
2660
  const v_error = (() => {
1746
2661
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1747
2662
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1760,7 +2675,7 @@ function validate$7(obj, path = 'CdpMlFilterValueRepresentation') {
1760
2675
  return v_error === undefined ? null : v_error;
1761
2676
  }
1762
2677
 
1763
- function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
2678
+ function validate$a(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
1764
2679
  const v_error = (() => {
1765
2680
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1766
2681
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1783,7 +2698,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
1783
2698
  for (let i = 0; i < obj_values.length; i++) {
1784
2699
  const obj_values_item = obj_values[i];
1785
2700
  const path_values_item = path_values + '[' + i + ']';
1786
- const referencepath_values_itemValidationError = validate$7(obj_values_item, path_values_item);
2701
+ const referencepath_values_itemValidationError = validate$b(obj_values_item, path_values_item);
1787
2702
  if (referencepath_values_itemValidationError !== null) {
1788
2703
  let message = 'Object doesn\'t match CdpMlFilterValueRepresentation (at "' + path_values_item + '")\n';
1789
2704
  message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1794,7 +2709,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
1794
2709
  return v_error === undefined ? null : v_error;
1795
2710
  }
1796
2711
 
1797
- function validate$5(obj, path = 'CdpMlFilterRepresentation') {
2712
+ function validate$9(obj, path = 'CdpMlFilterRepresentation') {
1798
2713
  const v_error = (() => {
1799
2714
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1800
2715
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1807,7 +2722,7 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
1807
2722
  for (let i = 0; i < obj_criteria.length; i++) {
1808
2723
  const obj_criteria_item = obj_criteria[i];
1809
2724
  const path_criteria_item = path_criteria + '[' + i + ']';
1810
- const referencepath_criteria_itemValidationError = validate$6(obj_criteria_item, path_criteria_item);
2725
+ const referencepath_criteria_itemValidationError = validate$a(obj_criteria_item, path_criteria_item);
1811
2726
  if (referencepath_criteria_itemValidationError !== null) {
1812
2727
  let message = 'Object doesn\'t match CdpMlFilterCriterionBaseRepresentation (at "' + path_criteria_item + '")\n';
1813
2728
  message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1818,14 +2733,14 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
1818
2733
  return v_error === undefined ? null : v_error;
1819
2734
  }
1820
2735
 
1821
- function validate$4(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation') {
2736
+ function validate$8(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation') {
1822
2737
  const v_error = (() => {
1823
2738
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1824
2739
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1825
2740
  }
1826
2741
  const obj_filter = obj.filter;
1827
2742
  const path_filter = path + '.filter';
1828
- const referencepath_filterValidationError = validate$5(obj_filter, path_filter);
2743
+ const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
1829
2744
  if (referencepath_filterValidationError !== null) {
1830
2745
  let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
1831
2746
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1840,7 +2755,7 @@ function validate$4(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation'
1840
2755
  return v_error === undefined ? null : v_error;
1841
2756
  }
1842
2757
 
1843
- function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
2758
+ function validate$7(obj, path = 'CdpMlCustomizableFieldRepresentation') {
1844
2759
  const v_error = (() => {
1845
2760
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1846
2761
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1853,7 +2768,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
1853
2768
  for (let i = 0; i < obj_customDefinitions.length; i++) {
1854
2769
  const obj_customDefinitions_item = obj_customDefinitions[i];
1855
2770
  const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
1856
- const referencepath_customDefinitions_itemValidationError = validate$4(obj_customDefinitions_item, path_customDefinitions_item);
2771
+ const referencepath_customDefinitions_itemValidationError = validate$8(obj_customDefinitions_item, path_customDefinitions_item);
1857
2772
  if (referencepath_customDefinitions_itemValidationError !== null) {
1858
2773
  let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionRepresentation (at "' + path_customDefinitions_item + '")\n';
1859
2774
  message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1862,7 +2777,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
1862
2777
  }
1863
2778
  const obj_field = obj.field;
1864
2779
  const path_field = path + '.field';
1865
- const referencepath_fieldValidationError = validate$n(obj_field, path_field);
2780
+ const referencepath_fieldValidationError = validate$r(obj_field, path_field);
1866
2781
  if (referencepath_fieldValidationError !== null) {
1867
2782
  let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_field + '")\n';
1868
2783
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1877,7 +2792,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
1877
2792
  return v_error === undefined ? null : v_error;
1878
2793
  }
1879
2794
 
1880
- function validate$2(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation') {
2795
+ function validate$6(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation') {
1881
2796
  const v_error = (() => {
1882
2797
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1883
2798
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1896,31 +2811,41 @@ function validate$2(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
1896
2811
  return v_error === undefined ? null : v_error;
1897
2812
  }
1898
2813
 
2814
+ // Should match with keyBuilder
2815
+ function keyBuilderFromType(luvio, object) {
2816
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
2817
+ const urlArray = object.url.split('/');
2818
+ const idOrName = urlArray[urlArray.length - 1];
2819
+ return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
2820
+ }
2821
+
1899
2822
  const TTL$1 = 1000;
1900
- const VERSION$1 = "fd6be4e2373b9db208417a21b7500f5f";
1901
- function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
2823
+ const VERSION$1 = "f9608bc4ae3825a8da2fc0992ae87b6e";
2824
+ function validate$5(obj, path = 'CdpMlConfiguredModelRepresentation') {
1902
2825
  const v_error = (() => {
1903
2826
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1904
2827
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1905
2828
  }
1906
- const obj_actionableFields = obj.actionableFields;
1907
- const path_actionableFields = path + '.actionableFields';
1908
- if (!ArrayIsArray(obj_actionableFields)) {
1909
- return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
1910
- }
1911
- for (let i = 0; i < obj_actionableFields.length; i++) {
1912
- const obj_actionableFields_item = obj_actionableFields[i];
1913
- const path_actionableFields_item = path_actionableFields + '[' + i + ']';
1914
- const referencepath_actionableFields_itemValidationError = validate$3(obj_actionableFields_item, path_actionableFields_item);
1915
- if (referencepath_actionableFields_itemValidationError !== null) {
1916
- let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
1917
- message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1918
- return new TypeError(message);
2829
+ if (obj.actionableFields !== undefined) {
2830
+ const obj_actionableFields = obj.actionableFields;
2831
+ const path_actionableFields = path + '.actionableFields';
2832
+ if (!ArrayIsArray(obj_actionableFields)) {
2833
+ return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
2834
+ }
2835
+ for (let i = 0; i < obj_actionableFields.length; i++) {
2836
+ const obj_actionableFields_item = obj_actionableFields[i];
2837
+ const path_actionableFields_item = path_actionableFields + '[' + i + ']';
2838
+ const referencepath_actionableFields_itemValidationError = validate$7(obj_actionableFields_item, path_actionableFields_item);
2839
+ if (referencepath_actionableFields_itemValidationError !== null) {
2840
+ let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
2841
+ message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2842
+ return new TypeError(message);
2843
+ }
1919
2844
  }
1920
2845
  }
1921
2846
  const obj_artifact = obj.artifact;
1922
2847
  const path_artifact = path + '.artifact';
1923
- const referencepath_artifactValidationError = validate$k(obj_artifact, path_artifact);
2848
+ const referencepath_artifactValidationError = validate$o(obj_artifact, path_artifact);
1924
2849
  if (referencepath_artifactValidationError !== null) {
1925
2850
  let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
1926
2851
  message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1931,18 +2856,43 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
1931
2856
  if (typeof obj_capability !== 'string') {
1932
2857
  return new TypeError('Expected "string" but received "' + typeof obj_capability + '" (at "' + path_capability + '")');
1933
2858
  }
1934
- const obj_createdBy = obj.createdBy;
1935
- const path_createdBy = path + '.createdBy';
1936
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1937
- if (referencepath_createdByValidationError !== null) {
1938
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1939
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1940
- return new TypeError(message);
2859
+ if (obj.createdBy !== undefined) {
2860
+ const obj_createdBy = obj.createdBy;
2861
+ const path_createdBy = path + '.createdBy';
2862
+ const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
2863
+ if (referencepath_createdByValidationError !== null) {
2864
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2865
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2866
+ return new TypeError(message);
2867
+ }
1941
2868
  }
1942
- const obj_createdDate = obj.createdDate;
1943
- const path_createdDate = path + '.createdDate';
1944
- if (typeof obj_createdDate !== 'string') {
1945
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2869
+ if (obj.createdDate !== undefined) {
2870
+ const obj_createdDate = obj.createdDate;
2871
+ const path_createdDate = path + '.createdDate';
2872
+ let obj_createdDate_union0 = null;
2873
+ const obj_createdDate_union0_error = (() => {
2874
+ if (typeof obj_createdDate !== 'string') {
2875
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2876
+ }
2877
+ })();
2878
+ if (obj_createdDate_union0_error != null) {
2879
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
2880
+ }
2881
+ let obj_createdDate_union1 = null;
2882
+ const obj_createdDate_union1_error = (() => {
2883
+ if (obj_createdDate !== null) {
2884
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2885
+ }
2886
+ })();
2887
+ if (obj_createdDate_union1_error != null) {
2888
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
2889
+ }
2890
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
2891
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
2892
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2893
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2894
+ return new TypeError(message);
2895
+ }
1946
2896
  }
1947
2897
  const obj_customizableFields = obj.customizableFields;
1948
2898
  const path_customizableFields = path + '.customizableFields';
@@ -1952,76 +2902,199 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
1952
2902
  for (let i = 0; i < obj_customizableFields.length; i++) {
1953
2903
  const obj_customizableFields_item = obj_customizableFields[i];
1954
2904
  const path_customizableFields_item = path_customizableFields + '[' + i + ']';
1955
- const referencepath_customizableFields_itemValidationError = validate$3(obj_customizableFields_item, path_customizableFields_item);
2905
+ const referencepath_customizableFields_itemValidationError = validate$7(obj_customizableFields_item, path_customizableFields_item);
1956
2906
  if (referencepath_customizableFields_itemValidationError !== null) {
1957
2907
  let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_customizableFields_item + '")\n';
1958
2908
  message += referencepath_customizableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1959
2909
  return new TypeError(message);
1960
2910
  }
1961
2911
  }
1962
- const obj_description = obj.description;
1963
- const path_description = path + '.description';
1964
- if (typeof obj_description !== 'string') {
1965
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2912
+ if (obj.description !== undefined) {
2913
+ const obj_description = obj.description;
2914
+ const path_description = path + '.description';
2915
+ let obj_description_union0 = null;
2916
+ const obj_description_union0_error = (() => {
2917
+ if (typeof obj_description !== 'string') {
2918
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2919
+ }
2920
+ })();
2921
+ if (obj_description_union0_error != null) {
2922
+ obj_description_union0 = obj_description_union0_error.message;
2923
+ }
2924
+ let obj_description_union1 = null;
2925
+ const obj_description_union1_error = (() => {
2926
+ if (obj_description !== null) {
2927
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2928
+ }
2929
+ })();
2930
+ if (obj_description_union1_error != null) {
2931
+ obj_description_union1 = obj_description_union1_error.message;
2932
+ }
2933
+ if (obj_description_union0 && obj_description_union1) {
2934
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
2935
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
2936
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
2937
+ return new TypeError(message);
2938
+ }
1966
2939
  }
1967
2940
  const obj_filter = obj.filter;
1968
2941
  const path_filter = path + '.filter';
1969
- const referencepath_filterValidationError = validate$5(obj_filter, path_filter);
2942
+ const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
1970
2943
  if (referencepath_filterValidationError !== null) {
1971
2944
  let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
1972
2945
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1973
2946
  return new TypeError(message);
1974
2947
  }
1975
- const obj_id = obj.id;
1976
- const path_id = path + '.id';
1977
- if (typeof obj_id !== 'string') {
1978
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2948
+ if (obj.id !== undefined) {
2949
+ const obj_id = obj.id;
2950
+ const path_id = path + '.id';
2951
+ if (typeof obj_id !== 'string') {
2952
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2953
+ }
1979
2954
  }
1980
- const obj_label = obj.label;
1981
- const path_label = path + '.label';
1982
- if (typeof obj_label !== 'string') {
1983
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1984
- }
1985
- const obj_lastActivatedBy = obj.lastActivatedBy;
1986
- const path_lastActivatedBy = path + '.lastActivatedBy';
1987
- const referencepath_lastActivatedByValidationError = validate$o(obj_lastActivatedBy, path_lastActivatedBy);
1988
- if (referencepath_lastActivatedByValidationError !== null) {
1989
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
1990
- message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1991
- return new TypeError(message);
2955
+ if (obj.label !== undefined) {
2956
+ const obj_label = obj.label;
2957
+ const path_label = path + '.label';
2958
+ let obj_label_union0 = null;
2959
+ const obj_label_union0_error = (() => {
2960
+ if (typeof obj_label !== 'string') {
2961
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2962
+ }
2963
+ })();
2964
+ if (obj_label_union0_error != null) {
2965
+ obj_label_union0 = obj_label_union0_error.message;
2966
+ }
2967
+ let obj_label_union1 = null;
2968
+ const obj_label_union1_error = (() => {
2969
+ if (obj_label !== null) {
2970
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2971
+ }
2972
+ })();
2973
+ if (obj_label_union1_error != null) {
2974
+ obj_label_union1 = obj_label_union1_error.message;
2975
+ }
2976
+ if (obj_label_union0 && obj_label_union1) {
2977
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
2978
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
2979
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
2980
+ return new TypeError(message);
2981
+ }
1992
2982
  }
1993
- const obj_lastActivatedDate = obj.lastActivatedDate;
1994
- const path_lastActivatedDate = path + '.lastActivatedDate';
1995
- if (typeof obj_lastActivatedDate !== 'string') {
1996
- return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
1997
- }
1998
- const obj_lastModifiedBy = obj.lastModifiedBy;
1999
- const path_lastModifiedBy = path + '.lastModifiedBy';
2000
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
2001
- if (referencepath_lastModifiedByValidationError !== null) {
2002
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2003
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2004
- return new TypeError(message);
2983
+ if (obj.lastActivatedBy !== undefined) {
2984
+ const obj_lastActivatedBy = obj.lastActivatedBy;
2985
+ const path_lastActivatedBy = path + '.lastActivatedBy';
2986
+ const referencepath_lastActivatedByValidationError = validate$s(obj_lastActivatedBy, path_lastActivatedBy);
2987
+ if (referencepath_lastActivatedByValidationError !== null) {
2988
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
2989
+ message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2990
+ return new TypeError(message);
2991
+ }
2992
+ }
2993
+ if (obj.lastActivatedDate !== undefined) {
2994
+ const obj_lastActivatedDate = obj.lastActivatedDate;
2995
+ const path_lastActivatedDate = path + '.lastActivatedDate';
2996
+ if (typeof obj_lastActivatedDate !== 'string') {
2997
+ return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
2998
+ }
2999
+ }
3000
+ if (obj.lastModifiedBy !== undefined) {
3001
+ const obj_lastModifiedBy = obj.lastModifiedBy;
3002
+ const path_lastModifiedBy = path + '.lastModifiedBy';
3003
+ const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
3004
+ if (referencepath_lastModifiedByValidationError !== null) {
3005
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
3006
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3007
+ return new TypeError(message);
3008
+ }
2005
3009
  }
2006
- const obj_lastModifiedDate = obj.lastModifiedDate;
2007
- const path_lastModifiedDate = path + '.lastModifiedDate';
2008
- if (typeof obj_lastModifiedDate !== 'string') {
2009
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3010
+ if (obj.lastModifiedDate !== undefined) {
3011
+ const obj_lastModifiedDate = obj.lastModifiedDate;
3012
+ const path_lastModifiedDate = path + '.lastModifiedDate';
3013
+ let obj_lastModifiedDate_union0 = null;
3014
+ const obj_lastModifiedDate_union0_error = (() => {
3015
+ if (typeof obj_lastModifiedDate !== 'string') {
3016
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3017
+ }
3018
+ })();
3019
+ if (obj_lastModifiedDate_union0_error != null) {
3020
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
3021
+ }
3022
+ let obj_lastModifiedDate_union1 = null;
3023
+ const obj_lastModifiedDate_union1_error = (() => {
3024
+ if (obj_lastModifiedDate !== null) {
3025
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3026
+ }
3027
+ })();
3028
+ if (obj_lastModifiedDate_union1_error != null) {
3029
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
3030
+ }
3031
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
3032
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
3033
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3034
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3035
+ return new TypeError(message);
3036
+ }
2010
3037
  }
2011
- const obj_metricsUrl = obj.metricsUrl;
2012
- const path_metricsUrl = path + '.metricsUrl';
2013
- if (typeof obj_metricsUrl !== 'string') {
2014
- return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
3038
+ if (obj.metricsUrl !== undefined) {
3039
+ const obj_metricsUrl = obj.metricsUrl;
3040
+ const path_metricsUrl = path + '.metricsUrl';
3041
+ let obj_metricsUrl_union0 = null;
3042
+ const obj_metricsUrl_union0_error = (() => {
3043
+ if (typeof obj_metricsUrl !== 'string') {
3044
+ return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
3045
+ }
3046
+ })();
3047
+ if (obj_metricsUrl_union0_error != null) {
3048
+ obj_metricsUrl_union0 = obj_metricsUrl_union0_error.message;
3049
+ }
3050
+ let obj_metricsUrl_union1 = null;
3051
+ const obj_metricsUrl_union1_error = (() => {
3052
+ if (obj_metricsUrl !== null) {
3053
+ return new TypeError('Expected "null" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
3054
+ }
3055
+ })();
3056
+ if (obj_metricsUrl_union1_error != null) {
3057
+ obj_metricsUrl_union1 = obj_metricsUrl_union1_error.message;
3058
+ }
3059
+ if (obj_metricsUrl_union0 && obj_metricsUrl_union1) {
3060
+ let message = 'Object doesn\'t match union (at "' + path_metricsUrl + '")';
3061
+ message += '\n' + obj_metricsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3062
+ message += '\n' + obj_metricsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3063
+ return new TypeError(message);
3064
+ }
2015
3065
  }
2016
3066
  const obj_name = obj.name;
2017
3067
  const path_name = path + '.name';
2018
3068
  if (typeof obj_name !== 'string') {
2019
3069
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2020
3070
  }
2021
- const obj_namespace = obj.namespace;
2022
- const path_namespace = path + '.namespace';
2023
- if (typeof obj_namespace !== 'string') {
2024
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3071
+ if (obj.namespace !== undefined) {
3072
+ const obj_namespace = obj.namespace;
3073
+ const path_namespace = path + '.namespace';
3074
+ let obj_namespace_union0 = null;
3075
+ const obj_namespace_union0_error = (() => {
3076
+ if (typeof obj_namespace !== 'string') {
3077
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3078
+ }
3079
+ })();
3080
+ if (obj_namespace_union0_error != null) {
3081
+ obj_namespace_union0 = obj_namespace_union0_error.message;
3082
+ }
3083
+ let obj_namespace_union1 = null;
3084
+ const obj_namespace_union1_error = (() => {
3085
+ if (obj_namespace !== null) {
3086
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3087
+ }
3088
+ })();
3089
+ if (obj_namespace_union1_error != null) {
3090
+ obj_namespace_union1 = obj_namespace_union1_error.message;
3091
+ }
3092
+ if (obj_namespace_union0 && obj_namespace_union1) {
3093
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
3094
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
3095
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
3096
+ return new TypeError(message);
3097
+ }
2025
3098
  }
2026
3099
  const obj_parameterOverrides = obj.parameterOverrides;
2027
3100
  const path_parameterOverrides = path + '.parameterOverrides';
@@ -2031,7 +3104,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
2031
3104
  for (let i = 0; i < obj_parameterOverrides.length; i++) {
2032
3105
  const obj_parameterOverrides_item = obj_parameterOverrides[i];
2033
3106
  const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
2034
- const referencepath_parameterOverrides_itemValidationError = validate$2(obj_parameterOverrides_item, path_parameterOverrides_item);
3107
+ const referencepath_parameterOverrides_itemValidationError = validate$6(obj_parameterOverrides_item, path_parameterOverrides_item);
2035
3108
  if (referencepath_parameterOverrides_itemValidationError !== null) {
2036
3109
  let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
2037
3110
  message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2057,15 +3130,6 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
2057
3130
  return v_error === undefined ? null : v_error;
2058
3131
  }
2059
3132
  const RepresentationType$1 = 'CdpMlConfiguredModelRepresentation';
2060
- function keyBuilder$4(luvio, config) {
2061
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.modelId;
2062
- }
2063
- function keyBuilderFromType(luvio, object) {
2064
- const keyParams = {
2065
- modelId: object.id
2066
- };
2067
- return keyBuilder$4(luvio, keyParams);
2068
- }
2069
3133
  function normalize$1(input, existing, path, luvio, store, timestamp) {
2070
3134
  return input;
2071
3135
  }
@@ -2085,7 +3149,7 @@ function equals$1(existing, incoming) {
2085
3149
  }
2086
3150
  const ingest$1 = function CdpMlConfiguredModelRepresentationIngest(input, path, luvio, store, timestamp) {
2087
3151
  if (process.env.NODE_ENV !== 'production') {
2088
- const validateError = validate$1(input);
3152
+ const validateError = validate$5(input);
2089
3153
  if (validateError !== null) {
2090
3154
  throw validateError;
2091
3155
  }
@@ -2106,25 +3170,27 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2106
3170
  }
2107
3171
 
2108
3172
  const TTL = 1000;
2109
- const VERSION = "06a9e2678743ed66dde7a06f3c7a39c6";
2110
- function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
3173
+ const VERSION = "2b3092c57f5f0a17513ae28d59875559";
3174
+ function validate$4(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
2111
3175
  const v_error = (() => {
2112
3176
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2113
3177
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2114
3178
  }
2115
- const obj_models = obj.models;
2116
- const path_models = path + '.models';
2117
- if (!ArrayIsArray(obj_models)) {
2118
- return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
2119
- }
2120
- for (let i = 0; i < obj_models.length; i++) {
2121
- const obj_models_item = obj_models[i];
2122
- const path_models_item = path_models + '[' + i + ']';
2123
- const referencepath_models_itemValidationError = validate$1(obj_models_item, path_models_item);
2124
- if (referencepath_models_itemValidationError !== null) {
2125
- let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
2126
- message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2127
- return new TypeError(message);
3179
+ if (obj.models !== undefined) {
3180
+ const obj_models = obj.models;
3181
+ const path_models = path + '.models';
3182
+ if (!ArrayIsArray(obj_models)) {
3183
+ return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
3184
+ }
3185
+ for (let i = 0; i < obj_models.length; i++) {
3186
+ const obj_models_item = obj_models[i];
3187
+ const path_models_item = path_models + '[' + i + ']';
3188
+ const referencepath_models_itemValidationError = validate$5(obj_models_item, path_models_item);
3189
+ if (referencepath_models_itemValidationError !== null) {
3190
+ let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
3191
+ message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3192
+ return new TypeError(message);
3193
+ }
2128
3194
  }
2129
3195
  }
2130
3196
  const obj_totalSize = obj.totalSize;
@@ -2160,7 +3226,7 @@ function equals(existing, incoming) {
2160
3226
  }
2161
3227
  const ingest = function CdpMlConfiguredModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2162
3228
  if (process.env.NODE_ENV !== 'production') {
2163
- const validateError = validate(input);
3229
+ const validateError = validate$4(input);
2164
3230
  if (validateError !== null) {
2165
3231
  throw validateError;
2166
3232
  }
@@ -2318,6 +3384,245 @@ const getCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => function cdpM
2318
3384
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2319
3385
  };
2320
3386
 
3387
+ function validate$3(obj, path = 'CdpMlCustomizableFieldDefinitionInputRepresentation') {
3388
+ const v_error = (() => {
3389
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3390
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3391
+ }
3392
+ const obj_filter = obj.filter;
3393
+ const path_filter = path + '.filter';
3394
+ if (typeof obj_filter !== 'object' || ArrayIsArray(obj_filter) || obj_filter === null) {
3395
+ return new TypeError('Expected "object" but received "' + typeof obj_filter + '" (at "' + path_filter + '")');
3396
+ }
3397
+ const obj_templateText = obj.templateText;
3398
+ const path_templateText = path + '.templateText';
3399
+ if (typeof obj_templateText !== 'string') {
3400
+ return new TypeError('Expected "string" but received "' + typeof obj_templateText + '" (at "' + path_templateText + '")');
3401
+ }
3402
+ })();
3403
+ return v_error === undefined ? null : v_error;
3404
+ }
3405
+
3406
+ function validate$2(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
3407
+ const v_error = (() => {
3408
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3409
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3410
+ }
3411
+ const obj_customDefinitions = obj.customDefinitions;
3412
+ const path_customDefinitions = path + '.customDefinitions';
3413
+ if (!ArrayIsArray(obj_customDefinitions)) {
3414
+ return new TypeError('Expected "array" but received "' + typeof obj_customDefinitions + '" (at "' + path_customDefinitions + '")');
3415
+ }
3416
+ for (let i = 0; i < obj_customDefinitions.length; i++) {
3417
+ const obj_customDefinitions_item = obj_customDefinitions[i];
3418
+ const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
3419
+ const referencepath_customDefinitions_itemValidationError = validate$3(obj_customDefinitions_item, path_customDefinitions_item);
3420
+ if (referencepath_customDefinitions_itemValidationError !== null) {
3421
+ let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionInputRepresentation (at "' + path_customDefinitions_item + '")\n';
3422
+ message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3423
+ return new TypeError(message);
3424
+ }
3425
+ }
3426
+ const obj_name = obj.name;
3427
+ const path_name = path + '.name';
3428
+ if (typeof obj_name !== 'string') {
3429
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3430
+ }
3431
+ const obj_type = obj.type;
3432
+ const path_type = path + '.type';
3433
+ if (typeof obj_type !== 'string') {
3434
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
3435
+ }
3436
+ })();
3437
+ return v_error === undefined ? null : v_error;
3438
+ }
3439
+
3440
+ function validate$1(obj, path = 'CdpAssetReferenceInputRepresentation') {
3441
+ const v_error = (() => {
3442
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3443
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3444
+ }
3445
+ if (obj.id !== undefined) {
3446
+ const obj_id = obj.id;
3447
+ const path_id = path + '.id';
3448
+ let obj_id_union0 = null;
3449
+ const obj_id_union0_error = (() => {
3450
+ if (typeof obj_id !== 'string') {
3451
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3452
+ }
3453
+ })();
3454
+ if (obj_id_union0_error != null) {
3455
+ obj_id_union0 = obj_id_union0_error.message;
3456
+ }
3457
+ let obj_id_union1 = null;
3458
+ const obj_id_union1_error = (() => {
3459
+ if (obj_id !== null) {
3460
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3461
+ }
3462
+ })();
3463
+ if (obj_id_union1_error != null) {
3464
+ obj_id_union1 = obj_id_union1_error.message;
3465
+ }
3466
+ if (obj_id_union0 && obj_id_union1) {
3467
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
3468
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
3469
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
3470
+ return new TypeError(message);
3471
+ }
3472
+ }
3473
+ if (obj.name !== undefined) {
3474
+ const obj_name = obj.name;
3475
+ const path_name = path + '.name';
3476
+ let obj_name_union0 = null;
3477
+ const obj_name_union0_error = (() => {
3478
+ if (typeof obj_name !== 'string') {
3479
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3480
+ }
3481
+ })();
3482
+ if (obj_name_union0_error != null) {
3483
+ obj_name_union0 = obj_name_union0_error.message;
3484
+ }
3485
+ let obj_name_union1 = null;
3486
+ const obj_name_union1_error = (() => {
3487
+ if (obj_name !== null) {
3488
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3489
+ }
3490
+ })();
3491
+ if (obj_name_union1_error != null) {
3492
+ obj_name_union1 = obj_name_union1_error.message;
3493
+ }
3494
+ if (obj_name_union0 && obj_name_union1) {
3495
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
3496
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
3497
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
3498
+ return new TypeError(message);
3499
+ }
3500
+ }
3501
+ if (obj.namespace !== undefined) {
3502
+ const obj_namespace = obj.namespace;
3503
+ const path_namespace = path + '.namespace';
3504
+ let obj_namespace_union0 = null;
3505
+ const obj_namespace_union0_error = (() => {
3506
+ if (typeof obj_namespace !== 'string') {
3507
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3508
+ }
3509
+ })();
3510
+ if (obj_namespace_union0_error != null) {
3511
+ obj_namespace_union0 = obj_namespace_union0_error.message;
3512
+ }
3513
+ let obj_namespace_union1 = null;
3514
+ const obj_namespace_union1_error = (() => {
3515
+ if (obj_namespace !== null) {
3516
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3517
+ }
3518
+ })();
3519
+ if (obj_namespace_union1_error != null) {
3520
+ obj_namespace_union1 = obj_namespace_union1_error.message;
3521
+ }
3522
+ if (obj_namespace_union0 && obj_namespace_union1) {
3523
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
3524
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
3525
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
3526
+ return new TypeError(message);
3527
+ }
3528
+ }
3529
+ })();
3530
+ return v_error === undefined ? null : v_error;
3531
+ }
3532
+
3533
+ function validate(obj, path = 'CdpMlModelParameterOverrideInputRepresentation') {
3534
+ const v_error = (() => {
3535
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3536
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3537
+ }
3538
+ if (obj.continuousValue !== undefined) {
3539
+ const obj_continuousValue = obj.continuousValue;
3540
+ const path_continuousValue = path + '.continuousValue';
3541
+ let obj_continuousValue_union0 = null;
3542
+ const obj_continuousValue_union0_error = (() => {
3543
+ if (typeof obj_continuousValue !== 'number') {
3544
+ return new TypeError('Expected "number" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
3545
+ }
3546
+ })();
3547
+ if (obj_continuousValue_union0_error != null) {
3548
+ obj_continuousValue_union0 = obj_continuousValue_union0_error.message;
3549
+ }
3550
+ let obj_continuousValue_union1 = null;
3551
+ const obj_continuousValue_union1_error = (() => {
3552
+ if (obj_continuousValue !== null) {
3553
+ return new TypeError('Expected "null" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
3554
+ }
3555
+ })();
3556
+ if (obj_continuousValue_union1_error != null) {
3557
+ obj_continuousValue_union1 = obj_continuousValue_union1_error.message;
3558
+ }
3559
+ if (obj_continuousValue_union0 && obj_continuousValue_union1) {
3560
+ let message = 'Object doesn\'t match union (at "' + path_continuousValue + '")';
3561
+ message += '\n' + obj_continuousValue_union0.split('\n').map((line) => '\t' + line).join('\n');
3562
+ message += '\n' + obj_continuousValue_union1.split('\n').map((line) => '\t' + line).join('\n');
3563
+ return new TypeError(message);
3564
+ }
3565
+ }
3566
+ if (obj.discreteValue !== undefined) {
3567
+ const obj_discreteValue = obj.discreteValue;
3568
+ const path_discreteValue = path + '.discreteValue';
3569
+ let obj_discreteValue_union0 = null;
3570
+ const obj_discreteValue_union0_error = (() => {
3571
+ if (typeof obj_discreteValue !== 'string') {
3572
+ return new TypeError('Expected "string" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
3573
+ }
3574
+ })();
3575
+ if (obj_discreteValue_union0_error != null) {
3576
+ obj_discreteValue_union0 = obj_discreteValue_union0_error.message;
3577
+ }
3578
+ let obj_discreteValue_union1 = null;
3579
+ const obj_discreteValue_union1_error = (() => {
3580
+ if (obj_discreteValue !== null) {
3581
+ return new TypeError('Expected "null" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
3582
+ }
3583
+ })();
3584
+ if (obj_discreteValue_union1_error != null) {
3585
+ obj_discreteValue_union1 = obj_discreteValue_union1_error.message;
3586
+ }
3587
+ if (obj_discreteValue_union0 && obj_discreteValue_union1) {
3588
+ let message = 'Object doesn\'t match union (at "' + path_discreteValue + '")';
3589
+ message += '\n' + obj_discreteValue_union0.split('\n').map((line) => '\t' + line).join('\n');
3590
+ message += '\n' + obj_discreteValue_union1.split('\n').map((line) => '\t' + line).join('\n');
3591
+ return new TypeError(message);
3592
+ }
3593
+ }
3594
+ if (obj.parameterName !== undefined) {
3595
+ const obj_parameterName = obj.parameterName;
3596
+ const path_parameterName = path + '.parameterName';
3597
+ let obj_parameterName_union0 = null;
3598
+ const obj_parameterName_union0_error = (() => {
3599
+ if (typeof obj_parameterName !== 'string') {
3600
+ return new TypeError('Expected "string" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
3601
+ }
3602
+ })();
3603
+ if (obj_parameterName_union0_error != null) {
3604
+ obj_parameterName_union0 = obj_parameterName_union0_error.message;
3605
+ }
3606
+ let obj_parameterName_union1 = null;
3607
+ const obj_parameterName_union1_error = (() => {
3608
+ if (obj_parameterName !== null) {
3609
+ return new TypeError('Expected "null" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
3610
+ }
3611
+ })();
3612
+ if (obj_parameterName_union1_error != null) {
3613
+ obj_parameterName_union1 = obj_parameterName_union1_error.message;
3614
+ }
3615
+ if (obj_parameterName_union0 && obj_parameterName_union1) {
3616
+ let message = 'Object doesn\'t match union (at "' + path_parameterName + '")';
3617
+ message += '\n' + obj_parameterName_union0.split('\n').map((line) => '\t' + line).join('\n');
3618
+ message += '\n' + obj_parameterName_union1.split('\n').map((line) => '\t' + line).join('\n');
3619
+ return new TypeError(message);
3620
+ }
3621
+ }
3622
+ })();
3623
+ return v_error === undefined ? null : v_error;
3624
+ }
3625
+
2321
3626
  function select$2(luvio, params) {
2322
3627
  return select$5();
2323
3628
  }
@@ -2355,60 +3660,61 @@ function createResourceRequest$2(config) {
2355
3660
  };
2356
3661
  }
2357
3662
 
2358
- const adapterName$2 = 'createCdpMlConfiguredModelCollection';
2359
- const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
3663
+ const adapterName$2 = 'createCdpMlConfiguredModel';
3664
+ const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
2360
3665
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2361
- generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2362
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
2363
- generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2364
- generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2365
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2366
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2367
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2368
- generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2369
- generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2370
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
3666
+ generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
3667
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
3668
+ generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
3669
+ generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
3670
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
3671
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
3672
+ generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
3673
+ generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
3674
+ generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
3675
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
2371
3676
  ];
2372
- const createCdpMlConfiguredModelCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
2373
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
3677
+ const createCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createCdpMlConfiguredModel_ConfigPropertyMetadata);
3678
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModel_ConfigPropertyMetadata);
2374
3679
  function typeCheckConfig$2(untrustedConfig) {
2375
3680
  const config = {};
2376
- typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
3681
+ typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
2377
3682
  const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
2378
3683
  if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
2379
3684
  const untrustedConfig_actionableFields_array = [];
2380
3685
  for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
2381
3686
  const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
2382
- if (untrustedIsObject(untrustedConfig_actionableFields_item)) {
2383
- const untrustedConfig_actionableFields_item_object = {};
2384
- if (untrustedConfig_actionableFields_item_object !== undefined && Object.keys(untrustedConfig_actionableFields_item_object).length >= 0) {
2385
- untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
2386
- }
3687
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
3688
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
3689
+ untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
2387
3690
  }
2388
3691
  }
2389
3692
  config.actionableFields = untrustedConfig_actionableFields_array;
2390
3693
  }
2391
3694
  const untrustedConfig_artifact = untrustedConfig.artifact;
2392
- if (untrustedIsObject(untrustedConfig_artifact)) {
2393
- const untrustedConfig_artifact_object = {};
2394
- if (untrustedConfig_artifact_object !== undefined && Object.keys(untrustedConfig_artifact_object).length >= 0) {
2395
- config.artifact = untrustedConfig_artifact_object;
2396
- }
3695
+ const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
3696
+ if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
3697
+ config.artifact = untrustedConfig_artifact;
2397
3698
  }
2398
3699
  const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
2399
3700
  if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
2400
3701
  const untrustedConfig_customizableFields_array = [];
2401
3702
  for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
2402
3703
  const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
2403
- if (untrustedIsObject(untrustedConfig_customizableFields_item)) {
2404
- const untrustedConfig_customizableFields_item_object = {};
2405
- if (untrustedConfig_customizableFields_item_object !== undefined && Object.keys(untrustedConfig_customizableFields_item_object).length >= 0) {
2406
- untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
2407
- }
3704
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
3705
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
3706
+ untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
2408
3707
  }
2409
3708
  }
2410
3709
  config.customizableFields = untrustedConfig_customizableFields_array;
2411
3710
  }
3711
+ const untrustedConfig_description = untrustedConfig.description;
3712
+ if (typeof untrustedConfig_description === 'string') {
3713
+ config.description = untrustedConfig_description;
3714
+ }
3715
+ if (untrustedConfig_description === null) {
3716
+ config.description = untrustedConfig_description;
3717
+ }
2412
3718
  const untrustedConfig_filter = untrustedConfig.filter;
2413
3719
  if (untrustedIsObject(untrustedConfig_filter)) {
2414
3720
  const untrustedConfig_filter_object = {};
@@ -2416,16 +3722,21 @@ function typeCheckConfig$2(untrustedConfig) {
2416
3722
  config.filter = untrustedConfig_filter_object;
2417
3723
  }
2418
3724
  }
3725
+ const untrustedConfig_label = untrustedConfig.label;
3726
+ if (typeof untrustedConfig_label === 'string') {
3727
+ config.label = untrustedConfig_label;
3728
+ }
3729
+ if (untrustedConfig_label === null) {
3730
+ config.label = untrustedConfig_label;
3731
+ }
2419
3732
  const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
2420
3733
  if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
2421
3734
  const untrustedConfig_parameterOverrides_array = [];
2422
3735
  for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
2423
3736
  const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
2424
- if (untrustedIsObject(untrustedConfig_parameterOverrides_item)) {
2425
- const untrustedConfig_parameterOverrides_item_object = {};
2426
- if (untrustedConfig_parameterOverrides_item_object !== undefined && Object.keys(untrustedConfig_parameterOverrides_item_object).length >= 0) {
2427
- untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
2428
- }
3737
+ const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
3738
+ if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
3739
+ untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
2429
3740
  }
2430
3741
  }
2431
3742
  config.parameterOverrides = untrustedConfig_parameterOverrides_array;
@@ -2463,26 +3774,26 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2463
3774
  throw response;
2464
3775
  });
2465
3776
  }
2466
- const createCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => {
2467
- return function createCdpMlConfiguredModelCollection(untrustedConfig) {
2468
- const config = validateAdapterConfig$2(untrustedConfig, createCdpMlConfiguredModelCollection_ConfigPropertyNames);
3777
+ const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
3778
+ return function createCdpMlConfiguredModel(untrustedConfig) {
3779
+ const config = validateAdapterConfig$2(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
2469
3780
  // Invalid or incomplete config
2470
3781
  if (config === null) {
2471
- throw new Error('Invalid config for "createCdpMlConfiguredModelCollection"');
3782
+ throw new Error('Invalid config for "createCdpMlConfiguredModel"');
2472
3783
  }
2473
3784
  return buildNetworkSnapshot$2(luvio, config);
2474
3785
  };
2475
3786
  };
2476
3787
 
3788
+ function keyBuilder$1(luvio, params) {
3789
+ const modelIdOrName = params.urlParams.modelIdOrName;
3790
+ const type = IsModelId(modelIdOrName) ? 'id' : 'name';
3791
+ return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.modelIdOrName},type:${type})`;
3792
+ }
3793
+
2477
3794
  function select$1(luvio, params) {
2478
3795
  return select$5();
2479
3796
  }
2480
- function keyBuilder$1(luvio, params) {
2481
- return keyBuilder$4(luvio, {
2482
- modelId: params.urlParams.modelId,
2483
- workspaceIdOrName: params.urlParams.workspaceIdOrName
2484
- });
2485
- }
2486
3797
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2487
3798
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
2488
3799
  }
@@ -2519,7 +3830,7 @@ function createResourceRequest$1(config) {
2519
3830
  const headers = {};
2520
3831
  return {
2521
3832
  baseUri: '/services/data/v60.0',
2522
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
3833
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2523
3834
  method: 'get',
2524
3835
  body: null,
2525
3836
  urlParams: config.urlParams,
@@ -2531,7 +3842,7 @@ function createResourceRequest$1(config) {
2531
3842
 
2532
3843
  const adapterName$1 = 'getCdpMlConfiguredModel';
2533
3844
  const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
2534
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
3845
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2535
3846
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2536
3847
  ];
2537
3848
  const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCdpMlConfiguredModel_ConfigPropertyMetadata);
@@ -2643,7 +3954,7 @@ function createResourceRequest(config) {
2643
3954
  const headers = {};
2644
3955
  return {
2645
3956
  baseUri: '/services/data/v60.0',
2646
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
3957
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2647
3958
  method: 'patch',
2648
3959
  body: config.body,
2649
3960
  urlParams: config.urlParams,
@@ -2655,18 +3966,18 @@ function createResourceRequest(config) {
2655
3966
 
2656
3967
  const adapterName = 'updateCdpMlConfiguredModel';
2657
3968
  const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
2658
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
3969
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2659
3970
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2660
- generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2661
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
2662
- generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2663
- generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2664
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2665
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2666
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2667
- generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2668
- generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2669
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
3971
+ generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
3972
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
3973
+ generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
3974
+ generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
3975
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
3976
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
3977
+ generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
3978
+ generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
3979
+ generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
3980
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
2670
3981
  ];
2671
3982
  const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
2672
3983
  const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
@@ -2678,36 +3989,37 @@ function typeCheckConfig(untrustedConfig) {
2678
3989
  const untrustedConfig_actionableFields_array = [];
2679
3990
  for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
2680
3991
  const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
2681
- if (untrustedIsObject(untrustedConfig_actionableFields_item)) {
2682
- const untrustedConfig_actionableFields_item_object = {};
2683
- if (untrustedConfig_actionableFields_item_object !== undefined && Object.keys(untrustedConfig_actionableFields_item_object).length >= 0) {
2684
- untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
2685
- }
3992
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
3993
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
3994
+ untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
2686
3995
  }
2687
3996
  }
2688
3997
  config.actionableFields = untrustedConfig_actionableFields_array;
2689
3998
  }
2690
3999
  const untrustedConfig_artifact = untrustedConfig.artifact;
2691
- if (untrustedIsObject(untrustedConfig_artifact)) {
2692
- const untrustedConfig_artifact_object = {};
2693
- if (untrustedConfig_artifact_object !== undefined && Object.keys(untrustedConfig_artifact_object).length >= 0) {
2694
- config.artifact = untrustedConfig_artifact_object;
2695
- }
4000
+ const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
4001
+ if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
4002
+ config.artifact = untrustedConfig_artifact;
2696
4003
  }
2697
4004
  const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
2698
4005
  if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
2699
4006
  const untrustedConfig_customizableFields_array = [];
2700
4007
  for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
2701
4008
  const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
2702
- if (untrustedIsObject(untrustedConfig_customizableFields_item)) {
2703
- const untrustedConfig_customizableFields_item_object = {};
2704
- if (untrustedConfig_customizableFields_item_object !== undefined && Object.keys(untrustedConfig_customizableFields_item_object).length >= 0) {
2705
- untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
2706
- }
4009
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
4010
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
4011
+ untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
2707
4012
  }
2708
4013
  }
2709
4014
  config.customizableFields = untrustedConfig_customizableFields_array;
2710
4015
  }
4016
+ const untrustedConfig_description = untrustedConfig.description;
4017
+ if (typeof untrustedConfig_description === 'string') {
4018
+ config.description = untrustedConfig_description;
4019
+ }
4020
+ if (untrustedConfig_description === null) {
4021
+ config.description = untrustedConfig_description;
4022
+ }
2711
4023
  const untrustedConfig_filter = untrustedConfig.filter;
2712
4024
  if (untrustedIsObject(untrustedConfig_filter)) {
2713
4025
  const untrustedConfig_filter_object = {};
@@ -2715,16 +4027,21 @@ function typeCheckConfig(untrustedConfig) {
2715
4027
  config.filter = untrustedConfig_filter_object;
2716
4028
  }
2717
4029
  }
4030
+ const untrustedConfig_label = untrustedConfig.label;
4031
+ if (typeof untrustedConfig_label === 'string') {
4032
+ config.label = untrustedConfig_label;
4033
+ }
4034
+ if (untrustedConfig_label === null) {
4035
+ config.label = untrustedConfig_label;
4036
+ }
2718
4037
  const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
2719
4038
  if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
2720
4039
  const untrustedConfig_parameterOverrides_array = [];
2721
4040
  for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
2722
4041
  const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
2723
- if (untrustedIsObject(untrustedConfig_parameterOverrides_item)) {
2724
- const untrustedConfig_parameterOverrides_item_object = {};
2725
- if (untrustedConfig_parameterOverrides_item_object !== undefined && Object.keys(untrustedConfig_parameterOverrides_item_object).length >= 0) {
2726
- untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
2727
- }
4042
+ const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
4043
+ if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
4044
+ untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
2728
4045
  }
2729
4046
  }
2730
4047
  config.parameterOverrides = untrustedConfig_parameterOverrides_array;
@@ -2773,4 +4090,4 @@ const updateCdpMlConfiguredModelAdapterFactory = (luvio) => {
2773
4090
  };
2774
4091
  };
2775
4092
 
2776
- export { createCdpMlConfiguredModelCollectionAdapterFactory, getCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelCollectionAdapterFactory, getCdpMlModelArtifactAdapterFactory, getCdpMlModelArtifactCollectionAdapterFactory, getCdpMlWorkspaceAdapterFactory, getCdpMlWorkspaceCollectionAdapterFactory, updateCdpMlConfiguredModelAdapterFactory };
4093
+ export { createCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelCollectionAdapterFactory, getCdpMlModelArtifactAdapterFactory, getCdpMlModelArtifactCollectionAdapterFactory, getCdpMlWorkspaceAdapterFactory, getCdpMlWorkspaceCollectionAdapterFactory, updateCdpMlConfiguredModelAdapterFactory };