@salesforce/lds-adapters-platform-cdp-machine-learning 1.272.0 → 1.273.1

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 (27) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +1538 -293
  2. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModel.d.ts +28 -0
  3. package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +12 -9
  4. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
  5. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -2
  6. package/dist/es/es2018/types/src/generated/resources/patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts +12 -9
  7. package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +12 -9
  8. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +7 -7
  9. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceInputRepresentation.d.ts +34 -0
  10. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +13 -13
  11. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +22 -19
  12. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +15 -15
  13. package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldDefinitionInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldInputRepresentation.d.ts +35 -0
  15. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +19 -19
  16. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactCollectionRepresentation.d.ts +3 -3
  17. package/dist/es/es2018/types/src/generated/types/CdpMlModelParameterOverrideInputRepresentation.d.ts +34 -0
  18. package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +7 -7
  19. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceCollectionRepresentation.d.ts +5 -5
  20. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +27 -27
  21. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +23 -23
  22. package/dist/es/es2018/types/src/generated/types/CdpPaginatedResponseBaseRepresentation.d.ts +3 -3
  23. package/package.json +3 -3
  24. package/sfdc/index.js +1473 -228
  25. package/src/raml/api.raml +132 -78
  26. package/src/raml/luvio.raml +1 -1
  27. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +0 -25
package/sfdc/index.js CHANGED
@@ -89,6 +89,245 @@ function createLink(ref) {
89
89
  };
90
90
  }
91
91
 
92
+ function validate$s(obj, path = 'CdpMlCustomizableFieldDefinitionInputRepresentation') {
93
+ const v_error = (() => {
94
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
95
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
96
+ }
97
+ const obj_filter = obj.filter;
98
+ const path_filter = path + '.filter';
99
+ if (typeof obj_filter !== 'object' || ArrayIsArray(obj_filter) || obj_filter === null) {
100
+ return new TypeError('Expected "object" but received "' + typeof obj_filter + '" (at "' + path_filter + '")');
101
+ }
102
+ const obj_templateText = obj.templateText;
103
+ const path_templateText = path + '.templateText';
104
+ if (typeof obj_templateText !== 'string') {
105
+ return new TypeError('Expected "string" but received "' + typeof obj_templateText + '" (at "' + path_templateText + '")');
106
+ }
107
+ })();
108
+ return v_error === undefined ? null : v_error;
109
+ }
110
+
111
+ function validate$r(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
112
+ const v_error = (() => {
113
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
114
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
115
+ }
116
+ const obj_customDefinitions = obj.customDefinitions;
117
+ const path_customDefinitions = path + '.customDefinitions';
118
+ if (!ArrayIsArray(obj_customDefinitions)) {
119
+ return new TypeError('Expected "array" but received "' + typeof obj_customDefinitions + '" (at "' + path_customDefinitions + '")');
120
+ }
121
+ for (let i = 0; i < obj_customDefinitions.length; i++) {
122
+ const obj_customDefinitions_item = obj_customDefinitions[i];
123
+ const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
124
+ const referencepath_customDefinitions_itemValidationError = validate$s(obj_customDefinitions_item, path_customDefinitions_item);
125
+ if (referencepath_customDefinitions_itemValidationError !== null) {
126
+ let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionInputRepresentation (at "' + path_customDefinitions_item + '")\n';
127
+ message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
128
+ return new TypeError(message);
129
+ }
130
+ }
131
+ const obj_name = obj.name;
132
+ const path_name = path + '.name';
133
+ if (typeof obj_name !== 'string') {
134
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
135
+ }
136
+ const obj_type = obj.type;
137
+ const path_type = path + '.type';
138
+ if (typeof obj_type !== 'string') {
139
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
140
+ }
141
+ })();
142
+ return v_error === undefined ? null : v_error;
143
+ }
144
+
145
+ function validate$q(obj, path = 'CdpAssetReferenceInputRepresentation') {
146
+ const v_error = (() => {
147
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
148
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
149
+ }
150
+ if (obj.id !== undefined) {
151
+ const obj_id = obj.id;
152
+ const path_id = path + '.id';
153
+ let obj_id_union0 = null;
154
+ const obj_id_union0_error = (() => {
155
+ if (typeof obj_id !== 'string') {
156
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
157
+ }
158
+ })();
159
+ if (obj_id_union0_error != null) {
160
+ obj_id_union0 = obj_id_union0_error.message;
161
+ }
162
+ let obj_id_union1 = null;
163
+ const obj_id_union1_error = (() => {
164
+ if (obj_id !== null) {
165
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
166
+ }
167
+ })();
168
+ if (obj_id_union1_error != null) {
169
+ obj_id_union1 = obj_id_union1_error.message;
170
+ }
171
+ if (obj_id_union0 && obj_id_union1) {
172
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
173
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
174
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
175
+ return new TypeError(message);
176
+ }
177
+ }
178
+ if (obj.name !== undefined) {
179
+ const obj_name = obj.name;
180
+ const path_name = path + '.name';
181
+ let obj_name_union0 = null;
182
+ const obj_name_union0_error = (() => {
183
+ if (typeof obj_name !== 'string') {
184
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
185
+ }
186
+ })();
187
+ if (obj_name_union0_error != null) {
188
+ obj_name_union0 = obj_name_union0_error.message;
189
+ }
190
+ let obj_name_union1 = null;
191
+ const obj_name_union1_error = (() => {
192
+ if (obj_name !== null) {
193
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
194
+ }
195
+ })();
196
+ if (obj_name_union1_error != null) {
197
+ obj_name_union1 = obj_name_union1_error.message;
198
+ }
199
+ if (obj_name_union0 && obj_name_union1) {
200
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
201
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
202
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
203
+ return new TypeError(message);
204
+ }
205
+ }
206
+ if (obj.namespace !== undefined) {
207
+ const obj_namespace = obj.namespace;
208
+ const path_namespace = path + '.namespace';
209
+ let obj_namespace_union0 = null;
210
+ const obj_namespace_union0_error = (() => {
211
+ if (typeof obj_namespace !== 'string') {
212
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
213
+ }
214
+ })();
215
+ if (obj_namespace_union0_error != null) {
216
+ obj_namespace_union0 = obj_namespace_union0_error.message;
217
+ }
218
+ let obj_namespace_union1 = null;
219
+ const obj_namespace_union1_error = (() => {
220
+ if (obj_namespace !== null) {
221
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
222
+ }
223
+ })();
224
+ if (obj_namespace_union1_error != null) {
225
+ obj_namespace_union1 = obj_namespace_union1_error.message;
226
+ }
227
+ if (obj_namespace_union0 && obj_namespace_union1) {
228
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
229
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
230
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
231
+ return new TypeError(message);
232
+ }
233
+ }
234
+ })();
235
+ return v_error === undefined ? null : v_error;
236
+ }
237
+
238
+ function validate$p(obj, path = 'CdpMlModelParameterOverrideInputRepresentation') {
239
+ const v_error = (() => {
240
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
241
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
242
+ }
243
+ if (obj.continuousValue !== undefined) {
244
+ const obj_continuousValue = obj.continuousValue;
245
+ const path_continuousValue = path + '.continuousValue';
246
+ let obj_continuousValue_union0 = null;
247
+ const obj_continuousValue_union0_error = (() => {
248
+ if (typeof obj_continuousValue !== 'number') {
249
+ return new TypeError('Expected "number" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
250
+ }
251
+ })();
252
+ if (obj_continuousValue_union0_error != null) {
253
+ obj_continuousValue_union0 = obj_continuousValue_union0_error.message;
254
+ }
255
+ let obj_continuousValue_union1 = null;
256
+ const obj_continuousValue_union1_error = (() => {
257
+ if (obj_continuousValue !== null) {
258
+ return new TypeError('Expected "null" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
259
+ }
260
+ })();
261
+ if (obj_continuousValue_union1_error != null) {
262
+ obj_continuousValue_union1 = obj_continuousValue_union1_error.message;
263
+ }
264
+ if (obj_continuousValue_union0 && obj_continuousValue_union1) {
265
+ let message = 'Object doesn\'t match union (at "' + path_continuousValue + '")';
266
+ message += '\n' + obj_continuousValue_union0.split('\n').map((line) => '\t' + line).join('\n');
267
+ message += '\n' + obj_continuousValue_union1.split('\n').map((line) => '\t' + line).join('\n');
268
+ return new TypeError(message);
269
+ }
270
+ }
271
+ if (obj.discreteValue !== undefined) {
272
+ const obj_discreteValue = obj.discreteValue;
273
+ const path_discreteValue = path + '.discreteValue';
274
+ let obj_discreteValue_union0 = null;
275
+ const obj_discreteValue_union0_error = (() => {
276
+ if (typeof obj_discreteValue !== 'string') {
277
+ return new TypeError('Expected "string" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
278
+ }
279
+ })();
280
+ if (obj_discreteValue_union0_error != null) {
281
+ obj_discreteValue_union0 = obj_discreteValue_union0_error.message;
282
+ }
283
+ let obj_discreteValue_union1 = null;
284
+ const obj_discreteValue_union1_error = (() => {
285
+ if (obj_discreteValue !== null) {
286
+ return new TypeError('Expected "null" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
287
+ }
288
+ })();
289
+ if (obj_discreteValue_union1_error != null) {
290
+ obj_discreteValue_union1 = obj_discreteValue_union1_error.message;
291
+ }
292
+ if (obj_discreteValue_union0 && obj_discreteValue_union1) {
293
+ let message = 'Object doesn\'t match union (at "' + path_discreteValue + '")';
294
+ message += '\n' + obj_discreteValue_union0.split('\n').map((line) => '\t' + line).join('\n');
295
+ message += '\n' + obj_discreteValue_union1.split('\n').map((line) => '\t' + line).join('\n');
296
+ return new TypeError(message);
297
+ }
298
+ }
299
+ if (obj.parameterName !== undefined) {
300
+ const obj_parameterName = obj.parameterName;
301
+ const path_parameterName = path + '.parameterName';
302
+ let obj_parameterName_union0 = null;
303
+ const obj_parameterName_union0_error = (() => {
304
+ if (typeof obj_parameterName !== 'string') {
305
+ return new TypeError('Expected "string" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
306
+ }
307
+ })();
308
+ if (obj_parameterName_union0_error != null) {
309
+ obj_parameterName_union0 = obj_parameterName_union0_error.message;
310
+ }
311
+ let obj_parameterName_union1 = null;
312
+ const obj_parameterName_union1_error = (() => {
313
+ if (obj_parameterName !== null) {
314
+ return new TypeError('Expected "null" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
315
+ }
316
+ })();
317
+ if (obj_parameterName_union1_error != null) {
318
+ obj_parameterName_union1 = obj_parameterName_union1_error.message;
319
+ }
320
+ if (obj_parameterName_union0 && obj_parameterName_union1) {
321
+ let message = 'Object doesn\'t match union (at "' + path_parameterName + '")';
322
+ message += '\n' + obj_parameterName_union0.split('\n').map((line) => '\t' + line).join('\n');
323
+ message += '\n' + obj_parameterName_union1.split('\n').map((line) => '\t' + line).join('\n');
324
+ return new TypeError(message);
325
+ }
326
+ }
327
+ })();
328
+ return v_error === undefined ? null : v_error;
329
+ }
330
+
92
331
  function validate$o(obj, path = 'CdpMlFilterValueRepresentation') {
93
332
  const v_error = (() => {
94
333
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -301,8 +540,29 @@ function validate$h(obj, path = 'CdpAssetReferenceRepresentation') {
301
540
  if (obj.createdDate !== undefined) {
302
541
  const obj_createdDate = obj.createdDate;
303
542
  const path_createdDate = path + '.createdDate';
304
- if (typeof obj_createdDate !== 'string') {
305
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
543
+ let obj_createdDate_union0 = null;
544
+ const obj_createdDate_union0_error = (() => {
545
+ if (typeof obj_createdDate !== 'string') {
546
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
547
+ }
548
+ })();
549
+ if (obj_createdDate_union0_error != null) {
550
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
551
+ }
552
+ let obj_createdDate_union1 = null;
553
+ const obj_createdDate_union1_error = (() => {
554
+ if (obj_createdDate !== null) {
555
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
556
+ }
557
+ })();
558
+ if (obj_createdDate_union1_error != null) {
559
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
560
+ }
561
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
562
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
563
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
564
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
565
+ return new TypeError(message);
306
566
  }
307
567
  }
308
568
  if (obj.id !== undefined) {
@@ -315,8 +575,29 @@ function validate$h(obj, path = 'CdpAssetReferenceRepresentation') {
315
575
  if (obj.label !== undefined) {
316
576
  const obj_label = obj.label;
317
577
  const path_label = path + '.label';
318
- if (typeof obj_label !== 'string') {
319
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
578
+ let obj_label_union0 = null;
579
+ const obj_label_union0_error = (() => {
580
+ if (typeof obj_label !== 'string') {
581
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
582
+ }
583
+ })();
584
+ if (obj_label_union0_error != null) {
585
+ obj_label_union0 = obj_label_union0_error.message;
586
+ }
587
+ let obj_label_union1 = null;
588
+ const obj_label_union1_error = (() => {
589
+ if (obj_label !== null) {
590
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
591
+ }
592
+ })();
593
+ if (obj_label_union1_error != null) {
594
+ obj_label_union1 = obj_label_union1_error.message;
595
+ }
596
+ if (obj_label_union0 && obj_label_union1) {
597
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
598
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
599
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
600
+ return new TypeError(message);
320
601
  }
321
602
  }
322
603
  if (obj.lastModifiedBy !== undefined) {
@@ -332,29 +613,113 @@ function validate$h(obj, path = 'CdpAssetReferenceRepresentation') {
332
613
  if (obj.lastModifiedDate !== undefined) {
333
614
  const obj_lastModifiedDate = obj.lastModifiedDate;
334
615
  const path_lastModifiedDate = path + '.lastModifiedDate';
335
- if (typeof obj_lastModifiedDate !== 'string') {
336
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
616
+ let obj_lastModifiedDate_union0 = null;
617
+ const obj_lastModifiedDate_union0_error = (() => {
618
+ if (typeof obj_lastModifiedDate !== 'string') {
619
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
620
+ }
621
+ })();
622
+ if (obj_lastModifiedDate_union0_error != null) {
623
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
624
+ }
625
+ let obj_lastModifiedDate_union1 = null;
626
+ const obj_lastModifiedDate_union1_error = (() => {
627
+ if (obj_lastModifiedDate !== null) {
628
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
629
+ }
630
+ })();
631
+ if (obj_lastModifiedDate_union1_error != null) {
632
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
633
+ }
634
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
635
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
636
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
637
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
638
+ return new TypeError(message);
337
639
  }
338
640
  }
339
641
  if (obj.name !== undefined) {
340
642
  const obj_name = obj.name;
341
643
  const path_name = path + '.name';
342
- if (typeof obj_name !== 'string') {
343
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
644
+ let obj_name_union0 = null;
645
+ const obj_name_union0_error = (() => {
646
+ if (typeof obj_name !== 'string') {
647
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
648
+ }
649
+ })();
650
+ if (obj_name_union0_error != null) {
651
+ obj_name_union0 = obj_name_union0_error.message;
652
+ }
653
+ let obj_name_union1 = null;
654
+ const obj_name_union1_error = (() => {
655
+ if (obj_name !== null) {
656
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
657
+ }
658
+ })();
659
+ if (obj_name_union1_error != null) {
660
+ obj_name_union1 = obj_name_union1_error.message;
661
+ }
662
+ if (obj_name_union0 && obj_name_union1) {
663
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
664
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
665
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
666
+ return new TypeError(message);
344
667
  }
345
668
  }
346
669
  if (obj.namespace !== undefined) {
347
670
  const obj_namespace = obj.namespace;
348
671
  const path_namespace = path + '.namespace';
349
- if (typeof obj_namespace !== 'string') {
350
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
672
+ let obj_namespace_union0 = null;
673
+ const obj_namespace_union0_error = (() => {
674
+ if (typeof obj_namespace !== 'string') {
675
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
676
+ }
677
+ })();
678
+ if (obj_namespace_union0_error != null) {
679
+ obj_namespace_union0 = obj_namespace_union0_error.message;
680
+ }
681
+ let obj_namespace_union1 = null;
682
+ const obj_namespace_union1_error = (() => {
683
+ if (obj_namespace !== null) {
684
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
685
+ }
686
+ })();
687
+ if (obj_namespace_union1_error != null) {
688
+ obj_namespace_union1 = obj_namespace_union1_error.message;
689
+ }
690
+ if (obj_namespace_union0 && obj_namespace_union1) {
691
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
692
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
693
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
694
+ return new TypeError(message);
351
695
  }
352
696
  }
353
697
  if (obj.url !== undefined) {
354
698
  const obj_url = obj.url;
355
699
  const path_url = path + '.url';
356
- if (typeof obj_url !== 'string') {
357
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
700
+ let obj_url_union0 = null;
701
+ const obj_url_union0_error = (() => {
702
+ if (typeof obj_url !== 'string') {
703
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
704
+ }
705
+ })();
706
+ if (obj_url_union0_error != null) {
707
+ obj_url_union0 = obj_url_union0_error.message;
708
+ }
709
+ let obj_url_union1 = null;
710
+ const obj_url_union1_error = (() => {
711
+ if (obj_url !== null) {
712
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
713
+ }
714
+ })();
715
+ if (obj_url_union1_error != null) {
716
+ obj_url_union1 = obj_url_union1_error.message;
717
+ }
718
+ if (obj_url_union0 && obj_url_union1) {
719
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
720
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
721
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
722
+ return new TypeError(message);
358
723
  }
359
724
  }
360
725
  })();
@@ -389,25 +754,27 @@ function keyBuilderFromType$1(luvio, object) {
389
754
  }
390
755
 
391
756
  const TTL$5 = 1000;
392
- const VERSION$5 = "8cbcca9da420023a34b1f2bef797cf75";
757
+ const VERSION$5 = "f9608bc4ae3825a8da2fc0992ae87b6e";
393
758
  function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
394
759
  const v_error = (() => {
395
760
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
396
761
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
397
762
  }
398
- const obj_actionableFields = obj.actionableFields;
399
- const path_actionableFields = path + '.actionableFields';
400
- if (!ArrayIsArray(obj_actionableFields)) {
401
- return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
402
- }
403
- for (let i = 0; i < obj_actionableFields.length; i++) {
404
- const obj_actionableFields_item = obj_actionableFields[i];
405
- const path_actionableFields_item = path_actionableFields + '[' + i + ']';
406
- const referencepath_actionableFields_itemValidationError = validate$j(obj_actionableFields_item, path_actionableFields_item);
407
- if (referencepath_actionableFields_itemValidationError !== null) {
408
- let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
409
- message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
410
- return new TypeError(message);
763
+ if (obj.actionableFields !== undefined) {
764
+ const obj_actionableFields = obj.actionableFields;
765
+ const path_actionableFields = path + '.actionableFields';
766
+ if (!ArrayIsArray(obj_actionableFields)) {
767
+ return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
768
+ }
769
+ for (let i = 0; i < obj_actionableFields.length; i++) {
770
+ const obj_actionableFields_item = obj_actionableFields[i];
771
+ const path_actionableFields_item = path_actionableFields + '[' + i + ']';
772
+ const referencepath_actionableFields_itemValidationError = validate$j(obj_actionableFields_item, path_actionableFields_item);
773
+ if (referencepath_actionableFields_itemValidationError !== null) {
774
+ let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
775
+ message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
776
+ return new TypeError(message);
777
+ }
411
778
  }
412
779
  }
413
780
  const obj_artifact = obj.artifact;
@@ -436,8 +803,29 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
436
803
  if (obj.createdDate !== undefined) {
437
804
  const obj_createdDate = obj.createdDate;
438
805
  const path_createdDate = path + '.createdDate';
439
- if (typeof obj_createdDate !== 'string') {
440
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
806
+ let obj_createdDate_union0 = null;
807
+ const obj_createdDate_union0_error = (() => {
808
+ if (typeof obj_createdDate !== 'string') {
809
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
810
+ }
811
+ })();
812
+ if (obj_createdDate_union0_error != null) {
813
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
814
+ }
815
+ let obj_createdDate_union1 = null;
816
+ const obj_createdDate_union1_error = (() => {
817
+ if (obj_createdDate !== null) {
818
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
819
+ }
820
+ })();
821
+ if (obj_createdDate_union1_error != null) {
822
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
823
+ }
824
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
825
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
826
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
827
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
828
+ return new TypeError(message);
441
829
  }
442
830
  }
443
831
  const obj_customizableFields = obj.customizableFields;
@@ -458,8 +846,29 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
458
846
  if (obj.description !== undefined) {
459
847
  const obj_description = obj.description;
460
848
  const path_description = path + '.description';
461
- if (typeof obj_description !== 'string') {
462
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
849
+ let obj_description_union0 = null;
850
+ const obj_description_union0_error = (() => {
851
+ if (typeof obj_description !== 'string') {
852
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
853
+ }
854
+ })();
855
+ if (obj_description_union0_error != null) {
856
+ obj_description_union0 = obj_description_union0_error.message;
857
+ }
858
+ let obj_description_union1 = null;
859
+ const obj_description_union1_error = (() => {
860
+ if (obj_description !== null) {
861
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
862
+ }
863
+ })();
864
+ if (obj_description_union1_error != null) {
865
+ obj_description_union1 = obj_description_union1_error.message;
866
+ }
867
+ if (obj_description_union0 && obj_description_union1) {
868
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
869
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
870
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
871
+ return new TypeError(message);
463
872
  }
464
873
  }
465
874
  const obj_filter = obj.filter;
@@ -480,8 +889,29 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
480
889
  if (obj.label !== undefined) {
481
890
  const obj_label = obj.label;
482
891
  const path_label = path + '.label';
483
- if (typeof obj_label !== 'string') {
484
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
892
+ let obj_label_union0 = null;
893
+ const obj_label_union0_error = (() => {
894
+ if (typeof obj_label !== 'string') {
895
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
896
+ }
897
+ })();
898
+ if (obj_label_union0_error != null) {
899
+ obj_label_union0 = obj_label_union0_error.message;
900
+ }
901
+ let obj_label_union1 = null;
902
+ const obj_label_union1_error = (() => {
903
+ if (obj_label !== null) {
904
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
905
+ }
906
+ })();
907
+ if (obj_label_union1_error != null) {
908
+ obj_label_union1 = obj_label_union1_error.message;
909
+ }
910
+ if (obj_label_union0 && obj_label_union1) {
911
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
912
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
913
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
914
+ return new TypeError(message);
485
915
  }
486
916
  }
487
917
  if (obj.lastActivatedBy !== undefined) {
@@ -514,15 +944,57 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
514
944
  if (obj.lastModifiedDate !== undefined) {
515
945
  const obj_lastModifiedDate = obj.lastModifiedDate;
516
946
  const path_lastModifiedDate = path + '.lastModifiedDate';
517
- if (typeof obj_lastModifiedDate !== 'string') {
518
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
947
+ let obj_lastModifiedDate_union0 = null;
948
+ const obj_lastModifiedDate_union0_error = (() => {
949
+ if (typeof obj_lastModifiedDate !== 'string') {
950
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
951
+ }
952
+ })();
953
+ if (obj_lastModifiedDate_union0_error != null) {
954
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
955
+ }
956
+ let obj_lastModifiedDate_union1 = null;
957
+ const obj_lastModifiedDate_union1_error = (() => {
958
+ if (obj_lastModifiedDate !== null) {
959
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
960
+ }
961
+ })();
962
+ if (obj_lastModifiedDate_union1_error != null) {
963
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
964
+ }
965
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
966
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
967
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
968
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
969
+ return new TypeError(message);
519
970
  }
520
971
  }
521
972
  if (obj.metricsUrl !== undefined) {
522
973
  const obj_metricsUrl = obj.metricsUrl;
523
974
  const path_metricsUrl = path + '.metricsUrl';
524
- if (typeof obj_metricsUrl !== 'string') {
525
- return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
975
+ let obj_metricsUrl_union0 = null;
976
+ const obj_metricsUrl_union0_error = (() => {
977
+ if (typeof obj_metricsUrl !== 'string') {
978
+ return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
979
+ }
980
+ })();
981
+ if (obj_metricsUrl_union0_error != null) {
982
+ obj_metricsUrl_union0 = obj_metricsUrl_union0_error.message;
983
+ }
984
+ let obj_metricsUrl_union1 = null;
985
+ const obj_metricsUrl_union1_error = (() => {
986
+ if (obj_metricsUrl !== null) {
987
+ return new TypeError('Expected "null" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
988
+ }
989
+ })();
990
+ if (obj_metricsUrl_union1_error != null) {
991
+ obj_metricsUrl_union1 = obj_metricsUrl_union1_error.message;
992
+ }
993
+ if (obj_metricsUrl_union0 && obj_metricsUrl_union1) {
994
+ let message = 'Object doesn\'t match union (at "' + path_metricsUrl + '")';
995
+ message += '\n' + obj_metricsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
996
+ message += '\n' + obj_metricsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
997
+ return new TypeError(message);
526
998
  }
527
999
  }
528
1000
  const obj_name = obj.name;
@@ -530,10 +1002,33 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
530
1002
  if (typeof obj_name !== 'string') {
531
1003
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
532
1004
  }
533
- const obj_namespace = obj.namespace;
534
- const path_namespace = path + '.namespace';
535
- if (typeof obj_namespace !== 'string') {
536
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1005
+ if (obj.namespace !== undefined) {
1006
+ const obj_namespace = obj.namespace;
1007
+ const path_namespace = path + '.namespace';
1008
+ let obj_namespace_union0 = null;
1009
+ const obj_namespace_union0_error = (() => {
1010
+ if (typeof obj_namespace !== 'string') {
1011
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1012
+ }
1013
+ })();
1014
+ if (obj_namespace_union0_error != null) {
1015
+ obj_namespace_union0 = obj_namespace_union0_error.message;
1016
+ }
1017
+ let obj_namespace_union1 = null;
1018
+ const obj_namespace_union1_error = (() => {
1019
+ if (obj_namespace !== null) {
1020
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1021
+ }
1022
+ })();
1023
+ if (obj_namespace_union1_error != null) {
1024
+ obj_namespace_union1 = obj_namespace_union1_error.message;
1025
+ }
1026
+ if (obj_namespace_union0 && obj_namespace_union1) {
1027
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
1028
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
1029
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
1030
+ return new TypeError(message);
1031
+ }
537
1032
  }
538
1033
  const obj_parameterOverrides = obj.parameterOverrides;
539
1034
  const path_parameterOverrides = path + '.parameterOverrides';
@@ -645,60 +1140,61 @@ function createResourceRequest$7(config) {
645
1140
  };
646
1141
  }
647
1142
 
648
- const adapterName$7 = 'createCdpMlConfiguredModelCollection';
649
- const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
1143
+ const adapterName$7 = 'createCdpMlConfiguredModel';
1144
+ const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
650
1145
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
651
- generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
1146
+ generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
652
1147
  generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
653
- generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
654
- generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
655
- generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
1148
+ generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
1149
+ generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
1150
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
656
1151
  generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
657
- generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
658
- generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
659
- generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
660
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
1152
+ generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
1153
+ generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
1154
+ generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
1155
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
661
1156
  ];
662
- const createCdpMlConfiguredModelCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
663
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
1157
+ const createCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createCdpMlConfiguredModel_ConfigPropertyMetadata);
1158
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModel_ConfigPropertyMetadata);
664
1159
  function typeCheckConfig$7(untrustedConfig) {
665
1160
  const config = {};
666
- typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
1161
+ typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
667
1162
  const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
668
1163
  if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
669
1164
  const untrustedConfig_actionableFields_array = [];
670
1165
  for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
671
1166
  const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
672
- if (untrustedIsObject(untrustedConfig_actionableFields_item)) {
673
- const untrustedConfig_actionableFields_item_object = {};
674
- if (untrustedConfig_actionableFields_item_object !== undefined && Object.keys(untrustedConfig_actionableFields_item_object).length >= 0) {
675
- untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
676
- }
1167
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_actionableFields_item);
1168
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
1169
+ untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
677
1170
  }
678
1171
  }
679
1172
  config.actionableFields = untrustedConfig_actionableFields_array;
680
1173
  }
681
1174
  const untrustedConfig_artifact = untrustedConfig.artifact;
682
- if (untrustedIsObject(untrustedConfig_artifact)) {
683
- const untrustedConfig_artifact_object = {};
684
- if (untrustedConfig_artifact_object !== undefined && Object.keys(untrustedConfig_artifact_object).length >= 0) {
685
- config.artifact = untrustedConfig_artifact_object;
686
- }
1175
+ const referenceCdpAssetReferenceInputRepresentationValidationError = validate$q(untrustedConfig_artifact);
1176
+ if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
1177
+ config.artifact = untrustedConfig_artifact;
687
1178
  }
688
1179
  const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
689
1180
  if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
690
1181
  const untrustedConfig_customizableFields_array = [];
691
1182
  for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
692
1183
  const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
693
- if (untrustedIsObject(untrustedConfig_customizableFields_item)) {
694
- const untrustedConfig_customizableFields_item_object = {};
695
- if (untrustedConfig_customizableFields_item_object !== undefined && Object.keys(untrustedConfig_customizableFields_item_object).length >= 0) {
696
- untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
697
- }
1184
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_customizableFields_item);
1185
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
1186
+ untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
698
1187
  }
699
1188
  }
700
1189
  config.customizableFields = untrustedConfig_customizableFields_array;
701
1190
  }
1191
+ const untrustedConfig_description = untrustedConfig.description;
1192
+ if (typeof untrustedConfig_description === 'string') {
1193
+ config.description = untrustedConfig_description;
1194
+ }
1195
+ if (untrustedConfig_description === null) {
1196
+ config.description = untrustedConfig_description;
1197
+ }
702
1198
  const untrustedConfig_filter = untrustedConfig.filter;
703
1199
  if (untrustedIsObject(untrustedConfig_filter)) {
704
1200
  const untrustedConfig_filter_object = {};
@@ -706,16 +1202,21 @@ function typeCheckConfig$7(untrustedConfig) {
706
1202
  config.filter = untrustedConfig_filter_object;
707
1203
  }
708
1204
  }
1205
+ const untrustedConfig_label = untrustedConfig.label;
1206
+ if (typeof untrustedConfig_label === 'string') {
1207
+ config.label = untrustedConfig_label;
1208
+ }
1209
+ if (untrustedConfig_label === null) {
1210
+ config.label = untrustedConfig_label;
1211
+ }
709
1212
  const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
710
1213
  if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
711
1214
  const untrustedConfig_parameterOverrides_array = [];
712
1215
  for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
713
1216
  const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
714
- if (untrustedIsObject(untrustedConfig_parameterOverrides_item)) {
715
- const untrustedConfig_parameterOverrides_item_object = {};
716
- if (untrustedConfig_parameterOverrides_item_object !== undefined && Object.keys(untrustedConfig_parameterOverrides_item_object).length >= 0) {
717
- untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
718
- }
1217
+ const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$p(untrustedConfig_parameterOverrides_item);
1218
+ if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
1219
+ untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
719
1220
  }
720
1221
  }
721
1222
  config.parameterOverrides = untrustedConfig_parameterOverrides_array;
@@ -753,12 +1254,12 @@ function buildNetworkSnapshot$7(luvio, config, options) {
753
1254
  throw response;
754
1255
  });
755
1256
  }
756
- const createCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => {
757
- return function createCdpMlConfiguredModelCollection(untrustedConfig) {
758
- const config = validateAdapterConfig$7(untrustedConfig, createCdpMlConfiguredModelCollection_ConfigPropertyNames);
1257
+ const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
1258
+ return function createCdpMlConfiguredModel(untrustedConfig) {
1259
+ const config = validateAdapterConfig$7(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
759
1260
  // Invalid or incomplete config
760
1261
  if (config === null) {
761
- throw new Error('Invalid config for "createCdpMlConfiguredModelCollection"');
1262
+ throw new Error('Invalid config for "createCdpMlConfiguredModel"');
762
1263
  }
763
1264
  return buildNetworkSnapshot$7(luvio, config);
764
1265
  };
@@ -1172,36 +1673,84 @@ function validate$c(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
1172
1673
  }
1173
1674
 
1174
1675
  const TTL$3 = 1000;
1175
- const VERSION$3 = "6367fbb84e5d44f20b66ff347cdd5487";
1676
+ const VERSION$3 = "6d28f4bb028ba6cba885d3f305c117f4";
1176
1677
  function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1177
1678
  const v_error = (() => {
1178
1679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1179
1680
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1180
1681
  }
1181
- const obj_createdBy = obj.createdBy;
1182
- const path_createdBy = path + '.createdBy';
1183
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1184
- if (referencepath_createdByValidationError !== null) {
1185
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1186
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1187
- return new TypeError(message);
1682
+ if (obj.createdBy !== undefined) {
1683
+ const obj_createdBy = obj.createdBy;
1684
+ const path_createdBy = path + '.createdBy';
1685
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1686
+ if (referencepath_createdByValidationError !== null) {
1687
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1688
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1689
+ return new TypeError(message);
1690
+ }
1188
1691
  }
1189
- const obj_createdDate = obj.createdDate;
1190
- const path_createdDate = path + '.createdDate';
1191
- if (typeof obj_createdDate !== 'string') {
1192
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1692
+ if (obj.createdDate !== undefined) {
1693
+ const obj_createdDate = obj.createdDate;
1694
+ const path_createdDate = path + '.createdDate';
1695
+ let obj_createdDate_union0 = null;
1696
+ const obj_createdDate_union0_error = (() => {
1697
+ if (typeof obj_createdDate !== 'string') {
1698
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1699
+ }
1700
+ })();
1701
+ if (obj_createdDate_union0_error != null) {
1702
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
1703
+ }
1704
+ let obj_createdDate_union1 = null;
1705
+ const obj_createdDate_union1_error = (() => {
1706
+ if (obj_createdDate !== null) {
1707
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1708
+ }
1709
+ })();
1710
+ if (obj_createdDate_union1_error != null) {
1711
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
1712
+ }
1713
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
1714
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
1715
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1716
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1717
+ return new TypeError(message);
1718
+ }
1193
1719
  }
1194
1720
  if (obj.description !== undefined) {
1195
1721
  const obj_description = obj.description;
1196
1722
  const path_description = path + '.description';
1197
- if (typeof obj_description !== 'string') {
1198
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1723
+ let obj_description_union0 = null;
1724
+ const obj_description_union0_error = (() => {
1725
+ if (typeof obj_description !== 'string') {
1726
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1727
+ }
1728
+ })();
1729
+ if (obj_description_union0_error != null) {
1730
+ obj_description_union0 = obj_description_union0_error.message;
1731
+ }
1732
+ let obj_description_union1 = null;
1733
+ const obj_description_union1_error = (() => {
1734
+ if (obj_description !== null) {
1735
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1736
+ }
1737
+ })();
1738
+ if (obj_description_union1_error != null) {
1739
+ obj_description_union1 = obj_description_union1_error.message;
1740
+ }
1741
+ if (obj_description_union0 && obj_description_union1) {
1742
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
1743
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1744
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
1745
+ return new TypeError(message);
1199
1746
  }
1200
1747
  }
1201
- const obj_id = obj.id;
1202
- const path_id = path + '.id';
1203
- if (typeof obj_id !== 'string') {
1204
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1748
+ if (obj.id !== undefined) {
1749
+ const obj_id = obj.id;
1750
+ const path_id = path + '.id';
1751
+ if (typeof obj_id !== 'string') {
1752
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1753
+ }
1205
1754
  }
1206
1755
  const obj_inputFields = obj.inputFields;
1207
1756
  const path_inputFields = path + '.inputFields';
@@ -1221,22 +1770,68 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1221
1770
  if (obj.label !== undefined) {
1222
1771
  const obj_label = obj.label;
1223
1772
  const path_label = path + '.label';
1224
- if (typeof obj_label !== 'string') {
1225
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1773
+ let obj_label_union0 = null;
1774
+ const obj_label_union0_error = (() => {
1775
+ if (typeof obj_label !== 'string') {
1776
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1777
+ }
1778
+ })();
1779
+ if (obj_label_union0_error != null) {
1780
+ obj_label_union0 = obj_label_union0_error.message;
1781
+ }
1782
+ let obj_label_union1 = null;
1783
+ const obj_label_union1_error = (() => {
1784
+ if (obj_label !== null) {
1785
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1786
+ }
1787
+ })();
1788
+ if (obj_label_union1_error != null) {
1789
+ obj_label_union1 = obj_label_union1_error.message;
1790
+ }
1791
+ if (obj_label_union0 && obj_label_union1) {
1792
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
1793
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
1794
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
1795
+ return new TypeError(message);
1226
1796
  }
1227
1797
  }
1228
- const obj_lastModifiedBy = obj.lastModifiedBy;
1229
- const path_lastModifiedBy = path + '.lastModifiedBy';
1230
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1231
- if (referencepath_lastModifiedByValidationError !== null) {
1232
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1233
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1234
- return new TypeError(message);
1798
+ if (obj.lastModifiedBy !== undefined) {
1799
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1800
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1801
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1802
+ if (referencepath_lastModifiedByValidationError !== null) {
1803
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1804
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1805
+ return new TypeError(message);
1806
+ }
1235
1807
  }
1236
- const obj_lastModifiedDate = obj.lastModifiedDate;
1237
- const path_lastModifiedDate = path + '.lastModifiedDate';
1238
- if (typeof obj_lastModifiedDate !== 'string') {
1239
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1808
+ if (obj.lastModifiedDate !== undefined) {
1809
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1810
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1811
+ let obj_lastModifiedDate_union0 = null;
1812
+ const obj_lastModifiedDate_union0_error = (() => {
1813
+ if (typeof obj_lastModifiedDate !== 'string') {
1814
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1815
+ }
1816
+ })();
1817
+ if (obj_lastModifiedDate_union0_error != null) {
1818
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
1819
+ }
1820
+ let obj_lastModifiedDate_union1 = null;
1821
+ const obj_lastModifiedDate_union1_error = (() => {
1822
+ if (obj_lastModifiedDate !== null) {
1823
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1824
+ }
1825
+ })();
1826
+ if (obj_lastModifiedDate_union1_error != null) {
1827
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
1828
+ }
1829
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
1830
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
1831
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1832
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1833
+ return new TypeError(message);
1834
+ }
1240
1835
  }
1241
1836
  const obj_modelType = obj.modelType;
1242
1837
  const path_modelType = path + '.modelType';
@@ -1251,8 +1846,29 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1251
1846
  if (obj.namespace !== undefined) {
1252
1847
  const obj_namespace = obj.namespace;
1253
1848
  const path_namespace = path + '.namespace';
1254
- if (typeof obj_namespace !== 'string') {
1255
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1849
+ let obj_namespace_union0 = null;
1850
+ const obj_namespace_union0_error = (() => {
1851
+ if (typeof obj_namespace !== 'string') {
1852
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1853
+ }
1854
+ })();
1855
+ if (obj_namespace_union0_error != null) {
1856
+ obj_namespace_union0 = obj_namespace_union0_error.message;
1857
+ }
1858
+ let obj_namespace_union1 = null;
1859
+ const obj_namespace_union1_error = (() => {
1860
+ if (obj_namespace !== null) {
1861
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1862
+ }
1863
+ })();
1864
+ if (obj_namespace_union1_error != null) {
1865
+ obj_namespace_union1 = obj_namespace_union1_error.message;
1866
+ }
1867
+ if (obj_namespace_union0 && obj_namespace_union1) {
1868
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
1869
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
1870
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
1871
+ return new TypeError(message);
1256
1872
  }
1257
1873
  }
1258
1874
  const obj_outputFields = obj.outputFields;
@@ -1290,13 +1906,15 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1290
1906
  if (typeof obj_runtimeType !== 'string') {
1291
1907
  return new TypeError('Expected "string" but received "' + typeof obj_runtimeType + '" (at "' + path_runtimeType + '")');
1292
1908
  }
1293
- const obj_source = obj.source;
1294
- const path_source = path + '.source';
1295
- const referencepath_sourceValidationError = validate$h(obj_source, path_source);
1296
- if (referencepath_sourceValidationError !== null) {
1297
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
1298
- message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1299
- return new TypeError(message);
1909
+ if (obj.source !== undefined) {
1910
+ const obj_source = obj.source;
1911
+ const path_source = path + '.source';
1912
+ const referencepath_sourceValidationError = validate$h(obj_source, path_source);
1913
+ if (referencepath_sourceValidationError !== null) {
1914
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
1915
+ message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1916
+ return new TypeError(message);
1917
+ }
1300
1918
  }
1301
1919
  const obj_sourceType = obj.sourceType;
1302
1920
  const path_sourceType = path + '.sourceType';
@@ -1490,7 +2108,7 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
1490
2108
  };
1491
2109
 
1492
2110
  const TTL$2 = 1000;
1493
- const VERSION$2 = "11ef38d7d5daa2448f4bcad3c1a85425";
2111
+ const VERSION$2 = "31baba639dc891173a7ce2db82dae35f";
1494
2112
  function validate$a(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
1495
2113
  const v_error = (() => {
1496
2114
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1518,8 +2136,29 @@ function validate$a(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
1518
2136
  }
1519
2137
  const obj_nextPageUrl = obj.nextPageUrl;
1520
2138
  const path_nextPageUrl = path + '.nextPageUrl';
1521
- if (typeof obj_nextPageUrl !== 'string') {
1522
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2139
+ let obj_nextPageUrl_union0 = null;
2140
+ const obj_nextPageUrl_union0_error = (() => {
2141
+ if (typeof obj_nextPageUrl !== 'string') {
2142
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2143
+ }
2144
+ })();
2145
+ if (obj_nextPageUrl_union0_error != null) {
2146
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2147
+ }
2148
+ let obj_nextPageUrl_union1 = null;
2149
+ const obj_nextPageUrl_union1_error = (() => {
2150
+ if (obj_nextPageUrl !== null) {
2151
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2152
+ }
2153
+ })();
2154
+ if (obj_nextPageUrl_union1_error != null) {
2155
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2156
+ }
2157
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2158
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2159
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2160
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2161
+ return new TypeError(message);
1523
2162
  }
1524
2163
  const obj_totalSize = obj.totalSize;
1525
2164
  const path_totalSize = path + '.totalSize';
@@ -1718,19 +2357,86 @@ function validate$9(obj, path = 'CdpMlModelTypeRepresentation') {
1718
2357
  if (obj.connectorType !== undefined) {
1719
2358
  const obj_connectorType = obj.connectorType;
1720
2359
  const path_connectorType = path + '.connectorType';
1721
- if (typeof obj_connectorType !== 'string') {
1722
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2360
+ let obj_connectorType_union0 = null;
2361
+ const obj_connectorType_union0_error = (() => {
2362
+ if (typeof obj_connectorType !== 'string') {
2363
+ return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2364
+ }
2365
+ })();
2366
+ if (obj_connectorType_union0_error != null) {
2367
+ obj_connectorType_union0 = obj_connectorType_union0_error.message;
2368
+ }
2369
+ let obj_connectorType_union1 = null;
2370
+ const obj_connectorType_union1_error = (() => {
2371
+ if (obj_connectorType !== null) {
2372
+ return new TypeError('Expected "null" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2373
+ }
2374
+ })();
2375
+ if (obj_connectorType_union1_error != null) {
2376
+ obj_connectorType_union1 = obj_connectorType_union1_error.message;
2377
+ }
2378
+ if (obj_connectorType_union0 && obj_connectorType_union1) {
2379
+ let message = 'Object doesn\'t match union (at "' + path_connectorType + '")';
2380
+ message += '\n' + obj_connectorType_union0.split('\n').map((line) => '\t' + line).join('\n');
2381
+ message += '\n' + obj_connectorType_union1.split('\n').map((line) => '\t' + line).join('\n');
2382
+ return new TypeError(message);
1723
2383
  }
1724
2384
  }
1725
- const obj_modelType = obj.modelType;
1726
- const path_modelType = path + '.modelType';
1727
- if (typeof obj_modelType !== 'string') {
1728
- return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
2385
+ if (obj.modelType !== undefined) {
2386
+ const obj_modelType = obj.modelType;
2387
+ const path_modelType = path + '.modelType';
2388
+ let obj_modelType_union0 = null;
2389
+ const obj_modelType_union0_error = (() => {
2390
+ if (typeof obj_modelType !== 'string') {
2391
+ return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
2392
+ }
2393
+ })();
2394
+ if (obj_modelType_union0_error != null) {
2395
+ obj_modelType_union0 = obj_modelType_union0_error.message;
2396
+ }
2397
+ let obj_modelType_union1 = null;
2398
+ const obj_modelType_union1_error = (() => {
2399
+ if (obj_modelType !== null) {
2400
+ return new TypeError('Expected "null" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
2401
+ }
2402
+ })();
2403
+ if (obj_modelType_union1_error != null) {
2404
+ obj_modelType_union1 = obj_modelType_union1_error.message;
2405
+ }
2406
+ if (obj_modelType_union0 && obj_modelType_union1) {
2407
+ let message = 'Object doesn\'t match union (at "' + path_modelType + '")';
2408
+ message += '\n' + obj_modelType_union0.split('\n').map((line) => '\t' + line).join('\n');
2409
+ message += '\n' + obj_modelType_union1.split('\n').map((line) => '\t' + line).join('\n');
2410
+ return new TypeError(message);
2411
+ }
1729
2412
  }
1730
- const obj_sourceType = obj.sourceType;
1731
- const path_sourceType = path + '.sourceType';
1732
- if (typeof obj_sourceType !== 'string') {
1733
- return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
2413
+ if (obj.sourceType !== undefined) {
2414
+ const obj_sourceType = obj.sourceType;
2415
+ const path_sourceType = path + '.sourceType';
2416
+ let obj_sourceType_union0 = null;
2417
+ const obj_sourceType_union0_error = (() => {
2418
+ if (typeof obj_sourceType !== 'string') {
2419
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
2420
+ }
2421
+ })();
2422
+ if (obj_sourceType_union0_error != null) {
2423
+ obj_sourceType_union0 = obj_sourceType_union0_error.message;
2424
+ }
2425
+ let obj_sourceType_union1 = null;
2426
+ const obj_sourceType_union1_error = (() => {
2427
+ if (obj_sourceType !== null) {
2428
+ return new TypeError('Expected "null" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
2429
+ }
2430
+ })();
2431
+ if (obj_sourceType_union1_error != null) {
2432
+ obj_sourceType_union1 = obj_sourceType_union1_error.message;
2433
+ }
2434
+ if (obj_sourceType_union0 && obj_sourceType_union1) {
2435
+ let message = 'Object doesn\'t match union (at "' + path_sourceType + '")';
2436
+ message += '\n' + obj_sourceType_union0.split('\n').map((line) => '\t' + line).join('\n');
2437
+ message += '\n' + obj_sourceType_union1.split('\n').map((line) => '\t' + line).join('\n');
2438
+ return new TypeError(message);
2439
+ }
1734
2440
  }
1735
2441
  })();
1736
2442
  return v_error === undefined ? null : v_error;
@@ -1909,7 +2615,7 @@ function keyBuilderFromType(luvio, object) {
1909
2615
  }
1910
2616
 
1911
2617
  const TTL$1 = 1000;
1912
- const VERSION$1 = "1b661a85ba4e745b802d9861a883d1b6";
2618
+ const VERSION$1 = "1cb47dd9b0cc811f1ad3318c7245d465";
1913
2619
  function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1914
2620
  const v_error = (() => {
1915
2621
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1940,8 +2646,29 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1940
2646
  if (obj.activeSetupVersionNumber !== undefined) {
1941
2647
  const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1942
2648
  const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1943
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1944
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2649
+ let obj_activeSetupVersionNumber_union0 = null;
2650
+ const obj_activeSetupVersionNumber_union0_error = (() => {
2651
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2652
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2653
+ }
2654
+ })();
2655
+ if (obj_activeSetupVersionNumber_union0_error != null) {
2656
+ obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
2657
+ }
2658
+ let obj_activeSetupVersionNumber_union1 = null;
2659
+ const obj_activeSetupVersionNumber_union1_error = (() => {
2660
+ if (obj_activeSetupVersionNumber !== null) {
2661
+ return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2662
+ }
2663
+ })();
2664
+ if (obj_activeSetupVersionNumber_union1_error != null) {
2665
+ obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
2666
+ }
2667
+ if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
2668
+ let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
2669
+ message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
2670
+ message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
2671
+ return new TypeError(message);
1945
2672
  }
1946
2673
  }
1947
2674
  if (obj.createdBy !== undefined) {
@@ -1957,22 +2684,85 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1957
2684
  if (obj.createdDate !== undefined) {
1958
2685
  const obj_createdDate = obj.createdDate;
1959
2686
  const path_createdDate = path + '.createdDate';
1960
- if (typeof obj_createdDate !== 'string') {
1961
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2687
+ let obj_createdDate_union0 = null;
2688
+ const obj_createdDate_union0_error = (() => {
2689
+ if (typeof obj_createdDate !== 'string') {
2690
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2691
+ }
2692
+ })();
2693
+ if (obj_createdDate_union0_error != null) {
2694
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
2695
+ }
2696
+ let obj_createdDate_union1 = null;
2697
+ const obj_createdDate_union1_error = (() => {
2698
+ if (obj_createdDate !== null) {
2699
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2700
+ }
2701
+ })();
2702
+ if (obj_createdDate_union1_error != null) {
2703
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
2704
+ }
2705
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
2706
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
2707
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2708
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2709
+ return new TypeError(message);
1962
2710
  }
1963
2711
  }
1964
2712
  if (obj.description !== undefined) {
1965
2713
  const obj_description = obj.description;
1966
2714
  const path_description = path + '.description';
1967
- if (typeof obj_description !== 'string') {
1968
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2715
+ let obj_description_union0 = null;
2716
+ const obj_description_union0_error = (() => {
2717
+ if (typeof obj_description !== 'string') {
2718
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2719
+ }
2720
+ })();
2721
+ if (obj_description_union0_error != null) {
2722
+ obj_description_union0 = obj_description_union0_error.message;
2723
+ }
2724
+ let obj_description_union1 = null;
2725
+ const obj_description_union1_error = (() => {
2726
+ if (obj_description !== null) {
2727
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2728
+ }
2729
+ })();
2730
+ if (obj_description_union1_error != null) {
2731
+ obj_description_union1 = obj_description_union1_error.message;
2732
+ }
2733
+ if (obj_description_union0 && obj_description_union1) {
2734
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
2735
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
2736
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
2737
+ return new TypeError(message);
1969
2738
  }
1970
2739
  }
1971
2740
  if (obj.historiesUrl !== undefined) {
1972
2741
  const obj_historiesUrl = obj.historiesUrl;
1973
2742
  const path_historiesUrl = path + '.historiesUrl';
1974
- if (typeof obj_historiesUrl !== 'string') {
1975
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2743
+ let obj_historiesUrl_union0 = null;
2744
+ const obj_historiesUrl_union0_error = (() => {
2745
+ if (typeof obj_historiesUrl !== 'string') {
2746
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2747
+ }
2748
+ })();
2749
+ if (obj_historiesUrl_union0_error != null) {
2750
+ obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
2751
+ }
2752
+ let obj_historiesUrl_union1 = null;
2753
+ const obj_historiesUrl_union1_error = (() => {
2754
+ if (obj_historiesUrl !== null) {
2755
+ return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2756
+ }
2757
+ })();
2758
+ if (obj_historiesUrl_union1_error != null) {
2759
+ obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
2760
+ }
2761
+ if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
2762
+ let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
2763
+ message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2764
+ message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2765
+ return new TypeError(message);
1976
2766
  }
1977
2767
  }
1978
2768
  if (obj.id !== undefined) {
@@ -1985,8 +2775,29 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1985
2775
  if (obj.label !== undefined) {
1986
2776
  const obj_label = obj.label;
1987
2777
  const path_label = path + '.label';
1988
- if (typeof obj_label !== 'string') {
1989
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2778
+ let obj_label_union0 = null;
2779
+ const obj_label_union0_error = (() => {
2780
+ if (typeof obj_label !== 'string') {
2781
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2782
+ }
2783
+ })();
2784
+ if (obj_label_union0_error != null) {
2785
+ obj_label_union0 = obj_label_union0_error.message;
2786
+ }
2787
+ let obj_label_union1 = null;
2788
+ const obj_label_union1_error = (() => {
2789
+ if (obj_label !== null) {
2790
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2791
+ }
2792
+ })();
2793
+ if (obj_label_union1_error != null) {
2794
+ obj_label_union1 = obj_label_union1_error.message;
2795
+ }
2796
+ if (obj_label_union0 && obj_label_union1) {
2797
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
2798
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
2799
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
2800
+ return new TypeError(message);
1990
2801
  }
1991
2802
  }
1992
2803
  if (obj.lastModifiedBy !== undefined) {
@@ -2002,8 +2813,29 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2002
2813
  if (obj.lastModifiedDate !== undefined) {
2003
2814
  const obj_lastModifiedDate = obj.lastModifiedDate;
2004
2815
  const path_lastModifiedDate = path + '.lastModifiedDate';
2005
- if (typeof obj_lastModifiedDate !== 'string') {
2006
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2816
+ let obj_lastModifiedDate_union0 = null;
2817
+ const obj_lastModifiedDate_union0_error = (() => {
2818
+ if (typeof obj_lastModifiedDate !== 'string') {
2819
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2820
+ }
2821
+ })();
2822
+ if (obj_lastModifiedDate_union0_error != null) {
2823
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
2824
+ }
2825
+ let obj_lastModifiedDate_union1 = null;
2826
+ const obj_lastModifiedDate_union1_error = (() => {
2827
+ if (obj_lastModifiedDate !== null) {
2828
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2829
+ }
2830
+ })();
2831
+ if (obj_lastModifiedDate_union1_error != null) {
2832
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
2833
+ }
2834
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
2835
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
2836
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2837
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2838
+ return new TypeError(message);
2007
2839
  }
2008
2840
  }
2009
2841
  if (obj.latestSetup !== undefined) {
@@ -2021,19 +2853,42 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2021
2853
  if (typeof obj_modelCount !== 'number' || (typeof obj_modelCount === 'number' && Math.floor(obj_modelCount) !== obj_modelCount)) {
2022
2854
  return new TypeError('Expected "integer" but received "' + typeof obj_modelCount + '" (at "' + path_modelCount + '")');
2023
2855
  }
2024
- const obj_modelType = obj.modelType;
2025
- const path_modelType = path + '.modelType';
2026
- const referencepath_modelTypeValidationError = validate$9(obj_modelType, path_modelType);
2027
- if (referencepath_modelTypeValidationError !== null) {
2028
- let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
2029
- message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2030
- return new TypeError(message);
2856
+ if (obj.modelType !== undefined) {
2857
+ const obj_modelType = obj.modelType;
2858
+ const path_modelType = path + '.modelType';
2859
+ const referencepath_modelTypeValidationError = validate$9(obj_modelType, path_modelType);
2860
+ if (referencepath_modelTypeValidationError !== null) {
2861
+ let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
2862
+ message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2863
+ return new TypeError(message);
2864
+ }
2031
2865
  }
2032
2866
  if (obj.modelsUrl !== undefined) {
2033
2867
  const obj_modelsUrl = obj.modelsUrl;
2034
2868
  const path_modelsUrl = path + '.modelsUrl';
2035
- if (typeof obj_modelsUrl !== 'string') {
2036
- return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2869
+ let obj_modelsUrl_union0 = null;
2870
+ const obj_modelsUrl_union0_error = (() => {
2871
+ if (typeof obj_modelsUrl !== 'string') {
2872
+ return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2873
+ }
2874
+ })();
2875
+ if (obj_modelsUrl_union0_error != null) {
2876
+ obj_modelsUrl_union0 = obj_modelsUrl_union0_error.message;
2877
+ }
2878
+ let obj_modelsUrl_union1 = null;
2879
+ const obj_modelsUrl_union1_error = (() => {
2880
+ if (obj_modelsUrl !== null) {
2881
+ return new TypeError('Expected "null" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2882
+ }
2883
+ })();
2884
+ if (obj_modelsUrl_union1_error != null) {
2885
+ obj_modelsUrl_union1 = obj_modelsUrl_union1_error.message;
2886
+ }
2887
+ if (obj_modelsUrl_union0 && obj_modelsUrl_union1) {
2888
+ let message = 'Object doesn\'t match union (at "' + path_modelsUrl + '")';
2889
+ message += '\n' + obj_modelsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2890
+ message += '\n' + obj_modelsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2891
+ return new TypeError(message);
2037
2892
  }
2038
2893
  }
2039
2894
  const obj_name = obj.name;
@@ -2044,8 +2899,29 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2044
2899
  if (obj.namespace !== undefined) {
2045
2900
  const obj_namespace = obj.namespace;
2046
2901
  const path_namespace = path + '.namespace';
2047
- if (typeof obj_namespace !== 'string') {
2048
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2902
+ let obj_namespace_union0 = null;
2903
+ const obj_namespace_union0_error = (() => {
2904
+ if (typeof obj_namespace !== 'string') {
2905
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2906
+ }
2907
+ })();
2908
+ if (obj_namespace_union0_error != null) {
2909
+ obj_namespace_union0 = obj_namespace_union0_error.message;
2910
+ }
2911
+ let obj_namespace_union1 = null;
2912
+ const obj_namespace_union1_error = (() => {
2913
+ if (obj_namespace !== null) {
2914
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2915
+ }
2916
+ })();
2917
+ if (obj_namespace_union1_error != null) {
2918
+ obj_namespace_union1 = obj_namespace_union1_error.message;
2919
+ }
2920
+ if (obj_namespace_union0 && obj_namespace_union1) {
2921
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
2922
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
2923
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
2924
+ return new TypeError(message);
2049
2925
  }
2050
2926
  }
2051
2927
  if (obj.outcomeDefinition !== undefined) {
@@ -2061,8 +2937,29 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2061
2937
  if (obj.predictionType !== undefined) {
2062
2938
  const obj_predictionType = obj.predictionType;
2063
2939
  const path_predictionType = path + '.predictionType';
2064
- if (typeof obj_predictionType !== 'string') {
2065
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2940
+ let obj_predictionType_union0 = null;
2941
+ const obj_predictionType_union0_error = (() => {
2942
+ if (typeof obj_predictionType !== 'string') {
2943
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2944
+ }
2945
+ })();
2946
+ if (obj_predictionType_union0_error != null) {
2947
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
2948
+ }
2949
+ let obj_predictionType_union1 = null;
2950
+ const obj_predictionType_union1_error = (() => {
2951
+ if (obj_predictionType !== null) {
2952
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2953
+ }
2954
+ })();
2955
+ if (obj_predictionType_union1_error != null) {
2956
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
2957
+ }
2958
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
2959
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
2960
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
2961
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
2962
+ return new TypeError(message);
2066
2963
  }
2067
2964
  }
2068
2965
  if (obj.refreshConfig !== undefined) {
@@ -2078,8 +2975,29 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2078
2975
  if (obj.setupVersionsUrl !== undefined) {
2079
2976
  const obj_setupVersionsUrl = obj.setupVersionsUrl;
2080
2977
  const path_setupVersionsUrl = path + '.setupVersionsUrl';
2081
- if (typeof obj_setupVersionsUrl !== 'string') {
2082
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2978
+ let obj_setupVersionsUrl_union0 = null;
2979
+ const obj_setupVersionsUrl_union0_error = (() => {
2980
+ if (typeof obj_setupVersionsUrl !== 'string') {
2981
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2982
+ }
2983
+ })();
2984
+ if (obj_setupVersionsUrl_union0_error != null) {
2985
+ obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
2986
+ }
2987
+ let obj_setupVersionsUrl_union1 = null;
2988
+ const obj_setupVersionsUrl_union1_error = (() => {
2989
+ if (obj_setupVersionsUrl !== null) {
2990
+ return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2991
+ }
2992
+ })();
2993
+ if (obj_setupVersionsUrl_union1_error != null) {
2994
+ obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
2995
+ }
2996
+ if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
2997
+ let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
2998
+ message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2999
+ message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3000
+ return new TypeError(message);
2083
3001
  }
2084
3002
  }
2085
3003
  const obj_status = obj.status;
@@ -2090,15 +3008,57 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
2090
3008
  if (obj.totalInferenceCount !== undefined) {
2091
3009
  const obj_totalInferenceCount = obj.totalInferenceCount;
2092
3010
  const path_totalInferenceCount = path + '.totalInferenceCount';
2093
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2094
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3011
+ let obj_totalInferenceCount_union0 = null;
3012
+ const obj_totalInferenceCount_union0_error = (() => {
3013
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
3014
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3015
+ }
3016
+ })();
3017
+ if (obj_totalInferenceCount_union0_error != null) {
3018
+ obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
3019
+ }
3020
+ let obj_totalInferenceCount_union1 = null;
3021
+ const obj_totalInferenceCount_union1_error = (() => {
3022
+ if (obj_totalInferenceCount !== null) {
3023
+ return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3024
+ }
3025
+ })();
3026
+ if (obj_totalInferenceCount_union1_error != null) {
3027
+ obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
3028
+ }
3029
+ if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
3030
+ let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
3031
+ message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3032
+ message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3033
+ return new TypeError(message);
2095
3034
  }
2096
3035
  }
2097
3036
  if (obj.totalWarningsCount !== undefined) {
2098
3037
  const obj_totalWarningsCount = obj.totalWarningsCount;
2099
3038
  const path_totalWarningsCount = path + '.totalWarningsCount';
2100
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2101
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3039
+ let obj_totalWarningsCount_union0 = null;
3040
+ const obj_totalWarningsCount_union0_error = (() => {
3041
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
3042
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3043
+ }
3044
+ })();
3045
+ if (obj_totalWarningsCount_union0_error != null) {
3046
+ obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
3047
+ }
3048
+ let obj_totalWarningsCount_union1 = null;
3049
+ const obj_totalWarningsCount_union1_error = (() => {
3050
+ if (obj_totalWarningsCount !== null) {
3051
+ return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3052
+ }
3053
+ })();
3054
+ if (obj_totalWarningsCount_union1_error != null) {
3055
+ obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
3056
+ }
3057
+ if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
3058
+ let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
3059
+ message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3060
+ message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3061
+ return new TypeError(message);
2102
3062
  }
2103
3063
  }
2104
3064
  const obj_url = obj.url;
@@ -2352,8 +3312,29 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2352
3312
  if (obj.activeSetupVersionNumber !== undefined) {
2353
3313
  const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2354
3314
  const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2355
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2356
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
3315
+ let obj_activeSetupVersionNumber_union0 = null;
3316
+ const obj_activeSetupVersionNumber_union0_error = (() => {
3317
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
3318
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
3319
+ }
3320
+ })();
3321
+ if (obj_activeSetupVersionNumber_union0_error != null) {
3322
+ obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
3323
+ }
3324
+ let obj_activeSetupVersionNumber_union1 = null;
3325
+ const obj_activeSetupVersionNumber_union1_error = (() => {
3326
+ if (obj_activeSetupVersionNumber !== null) {
3327
+ return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
3328
+ }
3329
+ })();
3330
+ if (obj_activeSetupVersionNumber_union1_error != null) {
3331
+ obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
3332
+ }
3333
+ if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
3334
+ let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
3335
+ message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
3336
+ message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
3337
+ return new TypeError(message);
2357
3338
  }
2358
3339
  }
2359
3340
  if (obj.createdBy !== undefined) {
@@ -2369,22 +3350,85 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2369
3350
  if (obj.createdDate !== undefined) {
2370
3351
  const obj_createdDate = obj.createdDate;
2371
3352
  const path_createdDate = path + '.createdDate';
2372
- if (typeof obj_createdDate !== 'string') {
2373
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3353
+ let obj_createdDate_union0 = null;
3354
+ const obj_createdDate_union0_error = (() => {
3355
+ if (typeof obj_createdDate !== 'string') {
3356
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3357
+ }
3358
+ })();
3359
+ if (obj_createdDate_union0_error != null) {
3360
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
3361
+ }
3362
+ let obj_createdDate_union1 = null;
3363
+ const obj_createdDate_union1_error = (() => {
3364
+ if (obj_createdDate !== null) {
3365
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3366
+ }
3367
+ })();
3368
+ if (obj_createdDate_union1_error != null) {
3369
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
3370
+ }
3371
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
3372
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
3373
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3374
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3375
+ return new TypeError(message);
2374
3376
  }
2375
3377
  }
2376
3378
  if (obj.description !== undefined) {
2377
3379
  const obj_description = obj.description;
2378
3380
  const path_description = path + '.description';
2379
- if (typeof obj_description !== 'string') {
2380
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3381
+ let obj_description_union0 = null;
3382
+ const obj_description_union0_error = (() => {
3383
+ if (typeof obj_description !== 'string') {
3384
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3385
+ }
3386
+ })();
3387
+ if (obj_description_union0_error != null) {
3388
+ obj_description_union0 = obj_description_union0_error.message;
3389
+ }
3390
+ let obj_description_union1 = null;
3391
+ const obj_description_union1_error = (() => {
3392
+ if (obj_description !== null) {
3393
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3394
+ }
3395
+ })();
3396
+ if (obj_description_union1_error != null) {
3397
+ obj_description_union1 = obj_description_union1_error.message;
3398
+ }
3399
+ if (obj_description_union0 && obj_description_union1) {
3400
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
3401
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
3402
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
3403
+ return new TypeError(message);
2381
3404
  }
2382
3405
  }
2383
3406
  if (obj.historiesUrl !== undefined) {
2384
3407
  const obj_historiesUrl = obj.historiesUrl;
2385
3408
  const path_historiesUrl = path + '.historiesUrl';
2386
- if (typeof obj_historiesUrl !== 'string') {
2387
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
3409
+ let obj_historiesUrl_union0 = null;
3410
+ const obj_historiesUrl_union0_error = (() => {
3411
+ if (typeof obj_historiesUrl !== 'string') {
3412
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
3413
+ }
3414
+ })();
3415
+ if (obj_historiesUrl_union0_error != null) {
3416
+ obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
3417
+ }
3418
+ let obj_historiesUrl_union1 = null;
3419
+ const obj_historiesUrl_union1_error = (() => {
3420
+ if (obj_historiesUrl !== null) {
3421
+ return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
3422
+ }
3423
+ })();
3424
+ if (obj_historiesUrl_union1_error != null) {
3425
+ obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
3426
+ }
3427
+ if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
3428
+ let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
3429
+ message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3430
+ message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3431
+ return new TypeError(message);
2388
3432
  }
2389
3433
  }
2390
3434
  if (obj.id !== undefined) {
@@ -2397,8 +3441,29 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2397
3441
  if (obj.label !== undefined) {
2398
3442
  const obj_label = obj.label;
2399
3443
  const path_label = path + '.label';
2400
- if (typeof obj_label !== 'string') {
2401
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3444
+ let obj_label_union0 = null;
3445
+ const obj_label_union0_error = (() => {
3446
+ if (typeof obj_label !== 'string') {
3447
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3448
+ }
3449
+ })();
3450
+ if (obj_label_union0_error != null) {
3451
+ obj_label_union0 = obj_label_union0_error.message;
3452
+ }
3453
+ let obj_label_union1 = null;
3454
+ const obj_label_union1_error = (() => {
3455
+ if (obj_label !== null) {
3456
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3457
+ }
3458
+ })();
3459
+ if (obj_label_union1_error != null) {
3460
+ obj_label_union1 = obj_label_union1_error.message;
3461
+ }
3462
+ if (obj_label_union0 && obj_label_union1) {
3463
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
3464
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
3465
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
3466
+ return new TypeError(message);
2402
3467
  }
2403
3468
  }
2404
3469
  if (obj.lastModifiedBy !== undefined) {
@@ -2414,8 +3479,29 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2414
3479
  if (obj.lastModifiedDate !== undefined) {
2415
3480
  const obj_lastModifiedDate = obj.lastModifiedDate;
2416
3481
  const path_lastModifiedDate = path + '.lastModifiedDate';
2417
- if (typeof obj_lastModifiedDate !== 'string') {
2418
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3482
+ let obj_lastModifiedDate_union0 = null;
3483
+ const obj_lastModifiedDate_union0_error = (() => {
3484
+ if (typeof obj_lastModifiedDate !== 'string') {
3485
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3486
+ }
3487
+ })();
3488
+ if (obj_lastModifiedDate_union0_error != null) {
3489
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
3490
+ }
3491
+ let obj_lastModifiedDate_union1 = null;
3492
+ const obj_lastModifiedDate_union1_error = (() => {
3493
+ if (obj_lastModifiedDate !== null) {
3494
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3495
+ }
3496
+ })();
3497
+ if (obj_lastModifiedDate_union1_error != null) {
3498
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
3499
+ }
3500
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
3501
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
3502
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3503
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3504
+ return new TypeError(message);
2419
3505
  }
2420
3506
  }
2421
3507
  if (obj.latestSetup !== undefined) {
@@ -2451,10 +3537,33 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2451
3537
  if (typeof obj_name !== 'string') {
2452
3538
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2453
3539
  }
2454
- const obj_namespace = obj.namespace;
2455
- const path_namespace = path + '.namespace';
2456
- if (typeof obj_namespace !== 'string') {
2457
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3540
+ if (obj.namespace !== undefined) {
3541
+ const obj_namespace = obj.namespace;
3542
+ const path_namespace = path + '.namespace';
3543
+ let obj_namespace_union0 = null;
3544
+ const obj_namespace_union0_error = (() => {
3545
+ if (typeof obj_namespace !== 'string') {
3546
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3547
+ }
3548
+ })();
3549
+ if (obj_namespace_union0_error != null) {
3550
+ obj_namespace_union0 = obj_namespace_union0_error.message;
3551
+ }
3552
+ let obj_namespace_union1 = null;
3553
+ const obj_namespace_union1_error = (() => {
3554
+ if (obj_namespace !== null) {
3555
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3556
+ }
3557
+ })();
3558
+ if (obj_namespace_union1_error != null) {
3559
+ obj_namespace_union1 = obj_namespace_union1_error.message;
3560
+ }
3561
+ if (obj_namespace_union0 && obj_namespace_union1) {
3562
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
3563
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
3564
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
3565
+ return new TypeError(message);
3566
+ }
2458
3567
  }
2459
3568
  if (obj.outcomeDefinition !== undefined) {
2460
3569
  const obj_outcomeDefinition = obj.outcomeDefinition;
@@ -2469,8 +3578,29 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2469
3578
  if (obj.predictionType !== undefined) {
2470
3579
  const obj_predictionType = obj.predictionType;
2471
3580
  const path_predictionType = path + '.predictionType';
2472
- if (typeof obj_predictionType !== 'string') {
2473
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
3581
+ let obj_predictionType_union0 = null;
3582
+ const obj_predictionType_union0_error = (() => {
3583
+ if (typeof obj_predictionType !== 'string') {
3584
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
3585
+ }
3586
+ })();
3587
+ if (obj_predictionType_union0_error != null) {
3588
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
3589
+ }
3590
+ let obj_predictionType_union1 = null;
3591
+ const obj_predictionType_union1_error = (() => {
3592
+ if (obj_predictionType !== null) {
3593
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
3594
+ }
3595
+ })();
3596
+ if (obj_predictionType_union1_error != null) {
3597
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
3598
+ }
3599
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
3600
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
3601
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
3602
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
3603
+ return new TypeError(message);
2474
3604
  }
2475
3605
  }
2476
3606
  if (obj.refreshConfig !== undefined) {
@@ -2486,8 +3616,29 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2486
3616
  if (obj.setupVersionsUrl !== undefined) {
2487
3617
  const obj_setupVersionsUrl = obj.setupVersionsUrl;
2488
3618
  const path_setupVersionsUrl = path + '.setupVersionsUrl';
2489
- if (typeof obj_setupVersionsUrl !== 'string') {
2490
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
3619
+ let obj_setupVersionsUrl_union0 = null;
3620
+ const obj_setupVersionsUrl_union0_error = (() => {
3621
+ if (typeof obj_setupVersionsUrl !== 'string') {
3622
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
3623
+ }
3624
+ })();
3625
+ if (obj_setupVersionsUrl_union0_error != null) {
3626
+ obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
3627
+ }
3628
+ let obj_setupVersionsUrl_union1 = null;
3629
+ const obj_setupVersionsUrl_union1_error = (() => {
3630
+ if (obj_setupVersionsUrl !== null) {
3631
+ return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
3632
+ }
3633
+ })();
3634
+ if (obj_setupVersionsUrl_union1_error != null) {
3635
+ obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
3636
+ }
3637
+ if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
3638
+ let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
3639
+ message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3640
+ message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3641
+ return new TypeError(message);
2491
3642
  }
2492
3643
  }
2493
3644
  const obj_status = obj.status;
@@ -2498,15 +3649,57 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2498
3649
  if (obj.totalInferenceCount !== undefined) {
2499
3650
  const obj_totalInferenceCount = obj.totalInferenceCount;
2500
3651
  const path_totalInferenceCount = path + '.totalInferenceCount';
2501
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2502
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3652
+ let obj_totalInferenceCount_union0 = null;
3653
+ const obj_totalInferenceCount_union0_error = (() => {
3654
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
3655
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3656
+ }
3657
+ })();
3658
+ if (obj_totalInferenceCount_union0_error != null) {
3659
+ obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
3660
+ }
3661
+ let obj_totalInferenceCount_union1 = null;
3662
+ const obj_totalInferenceCount_union1_error = (() => {
3663
+ if (obj_totalInferenceCount !== null) {
3664
+ return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
3665
+ }
3666
+ })();
3667
+ if (obj_totalInferenceCount_union1_error != null) {
3668
+ obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
3669
+ }
3670
+ if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
3671
+ let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
3672
+ message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3673
+ message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3674
+ return new TypeError(message);
2503
3675
  }
2504
3676
  }
2505
3677
  if (obj.totalWarningsCount !== undefined) {
2506
3678
  const obj_totalWarningsCount = obj.totalWarningsCount;
2507
3679
  const path_totalWarningsCount = path + '.totalWarningsCount';
2508
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2509
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3680
+ let obj_totalWarningsCount_union0 = null;
3681
+ const obj_totalWarningsCount_union0_error = (() => {
3682
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
3683
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3684
+ }
3685
+ })();
3686
+ if (obj_totalWarningsCount_union0_error != null) {
3687
+ obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
3688
+ }
3689
+ let obj_totalWarningsCount_union1 = null;
3690
+ const obj_totalWarningsCount_union1_error = (() => {
3691
+ if (obj_totalWarningsCount !== null) {
3692
+ return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
3693
+ }
3694
+ })();
3695
+ if (obj_totalWarningsCount_union1_error != null) {
3696
+ obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
3697
+ }
3698
+ if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
3699
+ let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
3700
+ message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
3701
+ message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3702
+ return new TypeError(message);
2510
3703
  }
2511
3704
  }
2512
3705
  const obj_url = obj.url;
@@ -2519,21 +3712,67 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2519
3712
  }
2520
3713
 
2521
3714
  const TTL = 1000;
2522
- const VERSION = "6f430e4ccb178c06b2e6b7450e3010c2";
3715
+ const VERSION = "e6a8612718f37385e9d7622527f26c5c";
2523
3716
  function validate(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
2524
3717
  const v_error = (() => {
2525
3718
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2526
3719
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2527
3720
  }
2528
- const obj_currentPageUrl = obj.currentPageUrl;
2529
- const path_currentPageUrl = path + '.currentPageUrl';
2530
- if (typeof obj_currentPageUrl !== 'string') {
2531
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3721
+ if (obj.currentPageUrl !== undefined) {
3722
+ const obj_currentPageUrl = obj.currentPageUrl;
3723
+ const path_currentPageUrl = path + '.currentPageUrl';
3724
+ let obj_currentPageUrl_union0 = null;
3725
+ const obj_currentPageUrl_union0_error = (() => {
3726
+ if (typeof obj_currentPageUrl !== 'string') {
3727
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3728
+ }
3729
+ })();
3730
+ if (obj_currentPageUrl_union0_error != null) {
3731
+ obj_currentPageUrl_union0 = obj_currentPageUrl_union0_error.message;
3732
+ }
3733
+ let obj_currentPageUrl_union1 = null;
3734
+ const obj_currentPageUrl_union1_error = (() => {
3735
+ if (obj_currentPageUrl !== null) {
3736
+ return new TypeError('Expected "null" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3737
+ }
3738
+ })();
3739
+ if (obj_currentPageUrl_union1_error != null) {
3740
+ obj_currentPageUrl_union1 = obj_currentPageUrl_union1_error.message;
3741
+ }
3742
+ if (obj_currentPageUrl_union0 && obj_currentPageUrl_union1) {
3743
+ let message = 'Object doesn\'t match union (at "' + path_currentPageUrl + '")';
3744
+ message += '\n' + obj_currentPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3745
+ message += '\n' + obj_currentPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3746
+ return new TypeError(message);
3747
+ }
2532
3748
  }
2533
- const obj_nextPageUrl = obj.nextPageUrl;
2534
- const path_nextPageUrl = path + '.nextPageUrl';
2535
- if (typeof obj_nextPageUrl !== 'string') {
2536
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3749
+ if (obj.nextPageUrl !== undefined) {
3750
+ const obj_nextPageUrl = obj.nextPageUrl;
3751
+ const path_nextPageUrl = path + '.nextPageUrl';
3752
+ let obj_nextPageUrl_union0 = null;
3753
+ const obj_nextPageUrl_union0_error = (() => {
3754
+ if (typeof obj_nextPageUrl !== 'string') {
3755
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3756
+ }
3757
+ })();
3758
+ if (obj_nextPageUrl_union0_error != null) {
3759
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
3760
+ }
3761
+ let obj_nextPageUrl_union1 = null;
3762
+ const obj_nextPageUrl_union1_error = (() => {
3763
+ if (obj_nextPageUrl !== null) {
3764
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3765
+ }
3766
+ })();
3767
+ if (obj_nextPageUrl_union1_error != null) {
3768
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
3769
+ }
3770
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
3771
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
3772
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3773
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3774
+ return new TypeError(message);
3775
+ }
2537
3776
  }
2538
3777
  const obj_totalSize = obj.totalSize;
2539
3778
  const path_totalSize = path + '.totalSize';
@@ -2783,16 +4022,16 @@ const adapterName = 'updateCdpMlConfiguredModel';
2783
4022
  const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
2784
4023
  generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2785
4024
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2786
- generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
4025
+ generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
2787
4026
  generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
2788
- generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2789
- generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2790
- generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
4027
+ generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
4028
+ generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
4029
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
2791
4030
  generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
2792
- generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
2793
- generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2794
- generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2795
- generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
4031
+ generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
4032
+ generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
4033
+ generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
4034
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
2796
4035
  ];
2797
4036
  const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
2798
4037
  const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
@@ -2804,36 +4043,37 @@ function typeCheckConfig(untrustedConfig) {
2804
4043
  const untrustedConfig_actionableFields_array = [];
2805
4044
  for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
2806
4045
  const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
2807
- if (untrustedIsObject(untrustedConfig_actionableFields_item)) {
2808
- const untrustedConfig_actionableFields_item_object = {};
2809
- if (untrustedConfig_actionableFields_item_object !== undefined && Object.keys(untrustedConfig_actionableFields_item_object).length >= 0) {
2810
- untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
2811
- }
4046
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_actionableFields_item);
4047
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
4048
+ untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
2812
4049
  }
2813
4050
  }
2814
4051
  config.actionableFields = untrustedConfig_actionableFields_array;
2815
4052
  }
2816
4053
  const untrustedConfig_artifact = untrustedConfig.artifact;
2817
- if (untrustedIsObject(untrustedConfig_artifact)) {
2818
- const untrustedConfig_artifact_object = {};
2819
- if (untrustedConfig_artifact_object !== undefined && Object.keys(untrustedConfig_artifact_object).length >= 0) {
2820
- config.artifact = untrustedConfig_artifact_object;
2821
- }
4054
+ const referenceCdpAssetReferenceInputRepresentationValidationError = validate$q(untrustedConfig_artifact);
4055
+ if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
4056
+ config.artifact = untrustedConfig_artifact;
2822
4057
  }
2823
4058
  const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
2824
4059
  if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
2825
4060
  const untrustedConfig_customizableFields_array = [];
2826
4061
  for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
2827
4062
  const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
2828
- if (untrustedIsObject(untrustedConfig_customizableFields_item)) {
2829
- const untrustedConfig_customizableFields_item_object = {};
2830
- if (untrustedConfig_customizableFields_item_object !== undefined && Object.keys(untrustedConfig_customizableFields_item_object).length >= 0) {
2831
- untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
2832
- }
4063
+ const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$r(untrustedConfig_customizableFields_item);
4064
+ if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
4065
+ untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
2833
4066
  }
2834
4067
  }
2835
4068
  config.customizableFields = untrustedConfig_customizableFields_array;
2836
4069
  }
4070
+ const untrustedConfig_description = untrustedConfig.description;
4071
+ if (typeof untrustedConfig_description === 'string') {
4072
+ config.description = untrustedConfig_description;
4073
+ }
4074
+ if (untrustedConfig_description === null) {
4075
+ config.description = untrustedConfig_description;
4076
+ }
2837
4077
  const untrustedConfig_filter = untrustedConfig.filter;
2838
4078
  if (untrustedIsObject(untrustedConfig_filter)) {
2839
4079
  const untrustedConfig_filter_object = {};
@@ -2841,16 +4081,21 @@ function typeCheckConfig(untrustedConfig) {
2841
4081
  config.filter = untrustedConfig_filter_object;
2842
4082
  }
2843
4083
  }
4084
+ const untrustedConfig_label = untrustedConfig.label;
4085
+ if (typeof untrustedConfig_label === 'string') {
4086
+ config.label = untrustedConfig_label;
4087
+ }
4088
+ if (untrustedConfig_label === null) {
4089
+ config.label = untrustedConfig_label;
4090
+ }
2844
4091
  const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
2845
4092
  if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
2846
4093
  const untrustedConfig_parameterOverrides_array = [];
2847
4094
  for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
2848
4095
  const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
2849
- if (untrustedIsObject(untrustedConfig_parameterOverrides_item)) {
2850
- const untrustedConfig_parameterOverrides_item_object = {};
2851
- if (untrustedConfig_parameterOverrides_item_object !== undefined && Object.keys(untrustedConfig_parameterOverrides_item_object).length >= 0) {
2852
- untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
2853
- }
4096
+ const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$p(untrustedConfig_parameterOverrides_item);
4097
+ if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
4098
+ untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
2854
4099
  }
2855
4100
  }
2856
4101
  config.parameterOverrides = untrustedConfig_parameterOverrides_array;
@@ -2899,7 +4144,7 @@ const updateCdpMlConfiguredModelAdapterFactory = (luvio) => {
2899
4144
  };
2900
4145
  };
2901
4146
 
2902
- let createCdpMlConfiguredModelCollection;
4147
+ let createCdpMlConfiguredModel;
2903
4148
  let getCdpMlConfiguredModel;
2904
4149
  let getCdpMlConfiguredModelCollection;
2905
4150
  let getCdpMlModelArtifact;
@@ -2959,7 +4204,7 @@ function bindExportsTo(luvio) {
2959
4204
  return (config) => adapter(config).then((snapshot) => snapshot.data);
2960
4205
  }
2961
4206
  return {
2962
- createCdpMlConfiguredModelCollection: unwrapSnapshotData(createCdpMlConfiguredModelCollectionAdapterFactory),
4207
+ createCdpMlConfiguredModel: unwrapSnapshotData(createCdpMlConfiguredModelAdapterFactory),
2963
4208
  getCdpMlConfiguredModel: createWireAdapterConstructor(luvio, getCdpMlConfiguredModel_ldsAdapter, getCdpMlConfiguredModelMetadata),
2964
4209
  getCdpMlConfiguredModelCollection: createWireAdapterConstructor(luvio, getCdpMlConfiguredModelCollection_ldsAdapter, getCdpMlConfiguredModelCollectionMetadata),
2965
4210
  getCdpMlModelArtifact: createWireAdapterConstructor(luvio, getCdpMlModelArtifact_ldsAdapter, getCdpMlModelArtifactMetadata),
@@ -2980,7 +4225,7 @@ function bindExportsTo(luvio) {
2980
4225
  }
2981
4226
  withDefaultLuvio((luvio) => {
2982
4227
  ({
2983
- createCdpMlConfiguredModelCollection,
4228
+ createCdpMlConfiguredModel,
2984
4229
  getCdpMlConfiguredModel,
2985
4230
  getCdpMlConfiguredModelCollection,
2986
4231
  getCdpMlModelArtifact,
@@ -2998,5 +4243,5 @@ withDefaultLuvio((luvio) => {
2998
4243
  } = bindExportsTo(luvio));
2999
4244
  });
3000
4245
 
3001
- export { createCdpMlConfiguredModelCollection, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
3002
- // version: 1.272.0-579ff1ba0
4246
+ export { createCdpMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
4247
+ // version: 1.273.1-e93c18811