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

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