@salesforce/lds-adapters-platform-cdp-machine-learning 1.311.0 → 1.312.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +37 -50
  2. package/dist/es/es2018/types/src/generated/types/CdpMlBinaryClassificationPredictionResultRepresentation.d.ts +33 -0
  3. package/dist/es/es2018/types/src/generated/types/CdpMlFieldValueRepresentation.d.ts +31 -0
  4. package/dist/es/es2018/types/src/generated/types/CdpMlGenericPredictionOutputValueRepresentation.d.ts +34 -0
  5. package/dist/es/es2018/types/src/generated/types/CdpMlGenericPredictionResultRepresentation.d.ts +31 -0
  6. package/dist/es/es2018/types/src/generated/types/CdpMlPredictResultRepresentation.d.ts +7 -5
  7. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionBaseRepresentation.d.ts +11 -6
  8. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionContributionBaseRepresentation.d.ts +32 -0
  9. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionContributionFieldRepresentation.d.ts +34 -0
  10. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionErrorRepresentation.d.ts +33 -0
  11. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionFieldCustomTextRepresentation.d.ts +33 -0
  12. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionSuccessBaseRepresentation.d.ts +51 -0
  13. package/dist/es/es2018/types/src/generated/types/CdpMlPredictionWarningsRepresentation.d.ts +32 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpMlRegressionPredictionResultRepresentation.d.ts +30 -0
  15. package/package.json +3 -3
  16. package/sfdc/index.js +38 -51
  17. package/src/raml/api.raml +162 -4
  18. package/src/raml/luvio.raml +0 -3
@@ -984,7 +984,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
984
984
  function createResourceRequest$c(config) {
985
985
  const headers = {};
986
986
  return {
987
- baseUri: '/services/data/v62.0',
987
+ baseUri: '/services/data/v63.0',
988
988
  basePath: '/ssot/machine-learning/model-artifacts',
989
989
  method: 'get',
990
990
  body: null,
@@ -1125,7 +1125,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
1125
1125
  function createResourceRequest$b(config) {
1126
1126
  const headers = {};
1127
1127
  return {
1128
- baseUri: '/services/data/v62.0',
1128
+ baseUri: '/services/data/v63.0',
1129
1129
  basePath: '/ssot/machine-learning/model-artifacts/' + config.urlParams.modelArtifactIdOrName + '',
1130
1130
  method: 'get',
1131
1131
  body: null,
@@ -1720,7 +1720,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
1720
1720
  function createResourceRequest$a(config) {
1721
1721
  const headers = {};
1722
1722
  return {
1723
- baseUri: '/services/data/v62.0',
1723
+ baseUri: '/services/data/v63.0',
1724
1724
  basePath: '/ssot/machine-learning/configured-models',
1725
1725
  method: 'get',
1726
1726
  body: null,
@@ -2038,7 +2038,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
2038
2038
  function createResourceRequest$9(config) {
2039
2039
  const headers = {};
2040
2040
  return {
2041
- baseUri: '/services/data/v62.0',
2041
+ baseUri: '/services/data/v63.0',
2042
2042
  basePath: '/ssot/machine-learning/configured-models',
2043
2043
  method: 'post',
2044
2044
  body: config.body,
@@ -2178,7 +2178,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
2178
2178
  function createResourceRequest$8(config) {
2179
2179
  const headers = {};
2180
2180
  return {
2181
- baseUri: '/services/data/v62.0',
2181
+ baseUri: '/services/data/v63.0',
2182
2182
  basePath: '/ssot/machine-learning/configured-models/' + config.urlParams.configuredModelIdOrName + '',
2183
2183
  method: 'get',
2184
2184
  body: null,
@@ -2302,7 +2302,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2302
2302
  function createResourceRequest$7(config) {
2303
2303
  const headers = {};
2304
2304
  return {
2305
- baseUri: '/services/data/v62.0',
2305
+ baseUri: '/services/data/v63.0',
2306
2306
  basePath: '/ssot/machine-learning/configured-models/' + config.urlParams.configuredModelIdOrName + '',
2307
2307
  method: 'patch',
2308
2308
  body: config.body,
@@ -3230,7 +3230,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
3230
3230
  function createResourceRequest$6(config) {
3231
3231
  const headers = {};
3232
3232
  return {
3233
- baseUri: '/services/data/v62.0',
3233
+ baseUri: '/services/data/v63.0',
3234
3234
  basePath: '/ssot/machine-learning/workspaces',
3235
3235
  method: 'get',
3236
3236
  body: null,
@@ -3880,7 +3880,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
3880
3880
  function createResourceRequest$5(config) {
3881
3881
  const headers = {};
3882
3882
  return {
3883
- baseUri: '/services/data/v62.0',
3883
+ baseUri: '/services/data/v63.0',
3884
3884
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '',
3885
3885
  method: 'get',
3886
3886
  body: null,
@@ -4589,7 +4589,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4589
4589
  function createResourceRequest$4(config) {
4590
4590
  const headers = {};
4591
4591
  return {
4592
- baseUri: '/services/data/v62.0',
4592
+ baseUri: '/services/data/v63.0',
4593
4593
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models',
4594
4594
  method: 'get',
4595
4595
  body: null,
@@ -4766,7 +4766,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
4766
4766
  function createResourceRequest$3(config) {
4767
4767
  const headers = {};
4768
4768
  return {
4769
- baseUri: '/services/data/v62.0',
4769
+ baseUri: '/services/data/v63.0',
4770
4770
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models',
4771
4771
  method: 'post',
4772
4772
  body: config.body,
@@ -4946,7 +4946,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
4946
4946
  function createResourceRequest$2(config) {
4947
4947
  const headers = {};
4948
4948
  return {
4949
- baseUri: '/services/data/v62.0',
4949
+ baseUri: '/services/data/v63.0',
4950
4950
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
4951
4951
  method: 'get',
4952
4952
  body: null,
@@ -5070,7 +5070,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
5070
5070
  function createResourceRequest$1(config) {
5071
5071
  const headers = {};
5072
5072
  return {
5073
- baseUri: '/services/data/v62.0',
5073
+ baseUri: '/services/data/v63.0',
5074
5074
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
5075
5075
  method: 'patch',
5076
5076
  body: config.body,
@@ -5325,38 +5325,27 @@ function validate$3(obj, path = 'CdpMlAggregatePredictionRepresentation') {
5325
5325
  return v_error === undefined ? null : v_error;
5326
5326
  }
5327
5327
 
5328
+ var DiscriminatorValues$1;
5329
+ (function (DiscriminatorValues) {
5330
+ DiscriminatorValues["Regression"] = "Regression";
5331
+ DiscriminatorValues["BinaryClassification"] = "BinaryClassification";
5332
+ DiscriminatorValues["Generic"] = "Generic";
5333
+ })(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
5334
+
5335
+ var DiscriminatorValues;
5336
+ (function (DiscriminatorValues) {
5337
+ DiscriminatorValues["Success"] = "Success";
5338
+ DiscriminatorValues["Error"] = "Error";
5339
+ })(DiscriminatorValues || (DiscriminatorValues = {}));
5328
5340
  function validate$2(obj, path = 'CdpMlPredictionBaseRepresentation') {
5329
5341
  const v_error = (() => {
5330
5342
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5331
5343
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5332
5344
  }
5333
- if (obj.status !== undefined) {
5334
- const obj_status = obj.status;
5335
- const path_status = path + '.status';
5336
- let obj_status_union0 = null;
5337
- const obj_status_union0_error = (() => {
5338
- if (typeof obj_status !== 'string') {
5339
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
5340
- }
5341
- })();
5342
- if (obj_status_union0_error != null) {
5343
- obj_status_union0 = obj_status_union0_error.message;
5344
- }
5345
- let obj_status_union1 = null;
5346
- const obj_status_union1_error = (() => {
5347
- if (obj_status !== null) {
5348
- return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
5349
- }
5350
- })();
5351
- if (obj_status_union1_error != null) {
5352
- obj_status_union1 = obj_status_union1_error.message;
5353
- }
5354
- if (obj_status_union0 && obj_status_union1) {
5355
- let message = 'Object doesn\'t match union (at "' + path_status + '")';
5356
- message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
5357
- message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
5358
- return new TypeError(message);
5359
- }
5345
+ const obj_status = obj.status;
5346
+ const path_status = path + '.status';
5347
+ if (typeof obj_status !== 'string') {
5348
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
5360
5349
  }
5361
5350
  })();
5362
5351
  return v_error === undefined ? null : v_error;
@@ -5428,7 +5417,7 @@ function validate$1(obj, path = 'CdpMlPredictSettingsInputRepresentation') {
5428
5417
  }
5429
5418
 
5430
5419
  const TTL = 1000;
5431
- const VERSION = "53acf0a695382123e58156e703232cb5";
5420
+ const VERSION = "db91153fa53c91ab59ff4d2ae3000258";
5432
5421
  function validate(obj, path = 'CdpMlPredictResultRepresentation') {
5433
5422
  const v_error = (() => {
5434
5423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5481,15 +5470,13 @@ function validate(obj, path = 'CdpMlPredictResultRepresentation') {
5481
5470
  }
5482
5471
  }
5483
5472
  }
5484
- if (obj.settings !== undefined) {
5485
- const obj_settings = obj.settings;
5486
- const path_settings = path + '.settings';
5487
- const referencepath_settingsValidationError = validate$1(obj_settings, path_settings);
5488
- if (referencepath_settingsValidationError !== null) {
5489
- let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
5490
- message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5491
- return new TypeError(message);
5492
- }
5473
+ const obj_settings = obj.settings;
5474
+ const path_settings = path + '.settings';
5475
+ const referencepath_settingsValidationError = validate$1(obj_settings, path_settings);
5476
+ if (referencepath_settingsValidationError !== null) {
5477
+ let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
5478
+ message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5479
+ return new TypeError(message);
5493
5480
  }
5494
5481
  })();
5495
5482
  return v_error === undefined ? null : v_error;
@@ -5569,7 +5556,7 @@ function ingestSuccess(luvio, resourceParams, response) {
5569
5556
  function createResourceRequest(config) {
5570
5557
  const headers = {};
5571
5558
  return {
5572
- baseUri: '/services/data/v62.0',
5559
+ baseUri: '/services/data/v63.0',
5573
5560
  basePath: '/ssot/machine-learning/predict',
5574
5561
  method: 'post',
5575
5562
  body: config.body,
@@ -0,0 +1,33 @@
1
+ import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "d7942f3dfad1625fd2e3fb2d7ba81498";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpMlBinaryClassificationPredictionResultRepresentation, existing: CdpMlBinaryClassificationPredictionResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlBinaryClassificationPredictionResultRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpMlBinaryClassificationPredictionResultRepresentationNormalized, incoming: CdpMlBinaryClassificationPredictionResultRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlBinaryClassificationPredictionResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation for a successful binary classification prediction result
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpMlBinaryClassificationPredictionResultRepresentationNormalized extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
18
+ /** Predicted value */
19
+ predictedValue: number;
20
+ /** Threshold used */
21
+ threshold: number;
22
+ }
23
+ /**
24
+ * Representation for a successful binary classification prediction result
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface CdpMlBinaryClassificationPredictionResultRepresentation extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
30
+ predictedValue: number;
31
+ threshold: number;
32
+ type: 'BinaryClassification';
33
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "52b36f94dc6725557282372c9912e7cd";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpMlFieldValueRepresentation, existing: CdpMlFieldValueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlFieldValueRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpMlFieldValueRepresentationNormalized, incoming: CdpMlFieldValueRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlFieldValueRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Cdp Ml Field Value
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpMlFieldValueRepresentationNormalized {
17
+ /** Count of the value */
18
+ count: number;
19
+ /** Field value */
20
+ value: string;
21
+ }
22
+ /**
23
+ * Cdp Ml Field Value
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface CdpMlFieldValueRepresentation {
29
+ count: number;
30
+ value: string;
31
+ }
@@ -0,0 +1,34 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "36c5eb04623915c81d60b731bde083fe";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpMlGenericPredictionOutputValueRepresentation, existing: CdpMlGenericPredictionOutputValueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlGenericPredictionOutputValueRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpMlGenericPredictionOutputValueRepresentationNormalized, incoming: CdpMlGenericPredictionOutputValueRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlGenericPredictionOutputValueRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation for a successful generic prediction result
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpMlGenericPredictionOutputValueRepresentationNormalized {
17
+ /** Name */
18
+ name: string;
19
+ /** Output Data type */
20
+ type: string;
21
+ /** Output Value */
22
+ value: {};
23
+ }
24
+ /**
25
+ * Representation for a successful generic prediction result
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface CdpMlGenericPredictionOutputValueRepresentation {
31
+ name: string;
32
+ type: string;
33
+ value: {};
34
+ }
@@ -0,0 +1,31 @@
1
+ import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
2
+ import { CdpMlGenericPredictionOutputValueRepresentation as CdpMlGenericPredictionOutputValueRepresentation_CdpMlGenericPredictionOutputValueRepresentation } from './CdpMlGenericPredictionOutputValueRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const VERSION = "5e7012033c0bfc12c74b010090ffd1a4";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: CdpMlGenericPredictionResultRepresentation, existing: CdpMlGenericPredictionResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlGenericPredictionResultRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: CdpMlGenericPredictionResultRepresentationNormalized, incoming: CdpMlGenericPredictionResultRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlGenericPredictionResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Representation for a successful generic prediction result
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface CdpMlGenericPredictionResultRepresentationNormalized extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
19
+ /** Name */
20
+ outputs: Array<CdpMlGenericPredictionOutputValueRepresentation_CdpMlGenericPredictionOutputValueRepresentation>;
21
+ }
22
+ /**
23
+ * Representation for a successful generic prediction result
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface CdpMlGenericPredictionResultRepresentation extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
29
+ outputs: Array<CdpMlGenericPredictionOutputValueRepresentation_CdpMlGenericPredictionOutputValueRepresentation>;
30
+ type: 'Generic';
31
+ }
@@ -3,8 +3,10 @@ import { CdpAssetReferenceRepresentation as CdpAssetReferenceRepresentation_CdpA
3
3
  import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
4
4
  import { CdpMlPredictSettingsInputRepresentation as CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation } from './CdpMlPredictSettingsInputRepresentation';
5
5
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
6
+ import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
7
+ import { CdpMlPredictionErrorRepresentation as CdpMlPredictionErrorRepresentation_CdpMlPredictionErrorRepresentation } from './CdpMlPredictionErrorRepresentation';
6
8
  export declare const TTL = 1000;
7
- export declare const VERSION = "53acf0a695382123e58156e703232cb5";
9
+ export declare const VERSION = "db91153fa53c91ab59ff4d2ae3000258";
8
10
  export declare function validate(obj: any, path?: string): TypeError | null;
9
11
  export declare const RepresentationType: string;
10
12
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -35,9 +37,9 @@ export interface CdpMlPredictResultRepresentationNormalized {
35
37
  /** Prediction Type */
36
38
  predictionType: string;
37
39
  /** A list of prediction results */
38
- predictions?: Array<$64$luvio_engine_StoreLink>;
40
+ predictions?: Array<CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation>;
39
41
  /** Settings used for the prediction */
40
- settings?: $64$luvio_engine_StoreLink;
42
+ settings: $64$luvio_engine_StoreLink;
41
43
  }
42
44
  /**
43
45
  * Cdp Ml Prediction result representation
@@ -49,6 +51,6 @@ export interface CdpMlPredictResultRepresentation {
49
51
  aggregatePredictions?: Array<CdpMlAggregatePredictionRepresentation_CdpMlAggregatePredictionRepresentation>;
50
52
  model: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
51
53
  predictionType: string;
52
- predictions?: Array<CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation>;
53
- settings?: CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation;
54
+ predictions?: Array<CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation | CdpMlPredictionErrorRepresentation_CdpMlPredictionErrorRepresentation>;
55
+ settings: CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation;
54
56
  }
@@ -1,12 +1,17 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const TTL = 1000;
3
- export declare const VERSION = "c99d4c0679fe8e8779d08458cac72034";
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare enum DiscriminatorValues {
3
+ Success = "Success",
4
+ Error = "Error"
5
+ }
6
+ export declare const VERSION = "150f60aeac8cde473d8e16cd52f1f0b7";
4
7
  export declare function validate(obj: any, path?: string): TypeError | null;
5
8
  export declare const RepresentationType: string;
6
9
  export declare function normalize(input: CdpMlPredictionBaseRepresentation, existing: CdpMlPredictionBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionBaseRepresentationNormalized;
7
- export declare const select: () => $64$luvio_engine_BaseFragment;
10
+ export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
11
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
12
  export declare function equals(existing: CdpMlPredictionBaseRepresentationNormalized, incoming: CdpMlPredictionBaseRepresentationNormalized): boolean;
9
13
  export declare const ingest: $64$luvio_engine_ResourceIngest;
14
+ export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
10
15
  export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
16
  /**
12
17
  * Base representation for a prediction result
@@ -16,7 +21,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
21
  */
17
22
  export interface CdpMlPredictionBaseRepresentationNormalized {
18
23
  /** prediction status */
19
- status?: string | null;
24
+ status: string;
20
25
  }
21
26
  /**
22
27
  * Base representation for a prediction result
@@ -25,5 +30,5 @@ export interface CdpMlPredictionBaseRepresentationNormalized {
25
30
  * (none)
26
31
  */
27
32
  export interface CdpMlPredictionBaseRepresentation {
28
- status?: string | null;
33
+ status: string;
29
34
  }
@@ -0,0 +1,32 @@
1
+ import { CdpMlPredictionContributionFieldRepresentation as CdpMlPredictionContributionFieldRepresentation_CdpMlPredictionContributionFieldRepresentation } from './CdpMlPredictionContributionFieldRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "ae3c9ebdbac9d1ad93d3dfd0d3f73b83";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpMlPredictionContributionBaseRepresentation, existing: CdpMlPredictionContributionBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionContributionBaseRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpMlPredictionContributionBaseRepresentationNormalized, incoming: CdpMlPredictionContributionBaseRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionContributionBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Base representation for a Prediction Contribution
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpMlPredictionContributionBaseRepresentationNormalized {
18
+ /** List of field and values that have the same contribution value */
19
+ fields: Array<CdpMlPredictionContributionFieldRepresentation_CdpMlPredictionContributionFieldRepresentation>;
20
+ /** Contribution value */
21
+ value: number;
22
+ }
23
+ /**
24
+ * Base representation for a Prediction Contribution
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface CdpMlPredictionContributionBaseRepresentation {
30
+ fields: Array<CdpMlPredictionContributionFieldRepresentation_CdpMlPredictionContributionFieldRepresentation>;
31
+ value: number;
32
+ }
@@ -0,0 +1,34 @@
1
+ import { CdpMlPredictionFieldCustomTextRepresentation as CdpMlPredictionFieldCustomTextRepresentation_CdpMlPredictionFieldCustomTextRepresentation } from './CdpMlPredictionFieldCustomTextRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "06fa1155071dedd86272aef35857bf3a";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpMlPredictionContributionFieldRepresentation, existing: CdpMlPredictionContributionFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionContributionFieldRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpMlPredictionContributionFieldRepresentationNormalized, incoming: CdpMlPredictionContributionFieldRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionContributionFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Cdp Ml Prediction Contribution Field
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpMlPredictionContributionFieldRepresentationNormalized {
18
+ customText: CdpMlPredictionFieldCustomTextRepresentation_CdpMlPredictionFieldCustomTextRepresentation;
19
+ /** Input value used for this field */
20
+ inputValue: string;
21
+ /** Model output value for the field (i.e. recommended value to improve prediction) */
22
+ prescribedValue: string;
23
+ }
24
+ /**
25
+ * Cdp Ml Prediction Contribution Field
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface CdpMlPredictionContributionFieldRepresentation {
31
+ customText: CdpMlPredictionFieldCustomTextRepresentation_CdpMlPredictionFieldCustomTextRepresentation;
32
+ inputValue: string;
33
+ prescribedValue: string;
34
+ }
@@ -0,0 +1,33 @@
1
+ import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "ed179e110e66d8254956a4b1c6fb0e56";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpMlPredictionErrorRepresentation, existing: CdpMlPredictionErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionErrorRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpMlPredictionErrorRepresentationNormalized, incoming: CdpMlPredictionErrorRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Failed prediction
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpMlPredictionErrorRepresentationNormalized extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
18
+ /** Error Code for the Error Message */
19
+ errorCode: string;
20
+ /** Error Message for Predict Error */
21
+ message: string;
22
+ }
23
+ /**
24
+ * Failed prediction
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface CdpMlPredictionErrorRepresentation extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
30
+ errorCode: string;
31
+ message: string;
32
+ status: 'Error';
33
+ }
@@ -0,0 +1,33 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "7f612f2ff2c7896ac46cf1e8d7571b87";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpMlPredictionFieldCustomTextRepresentation, existing: CdpMlPredictionFieldCustomTextRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionFieldCustomTextRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpMlPredictionFieldCustomTextRepresentationNormalized, incoming: CdpMlPredictionFieldCustomTextRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionFieldCustomTextRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Cdp Ml Prediction Field Custom Text
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpMlPredictionFieldCustomTextRepresentationNormalized {
17
+ isHidden: boolean;
18
+ /** Provides placeholder to resolved value defined in the template text. Null if there are no placeholders. */
19
+ mergeFieldValues: unknown;
20
+ /** Template text if custom override is defined for the column. */
21
+ templateText: string;
22
+ }
23
+ /**
24
+ * Cdp Ml Prediction Field Custom Text
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface CdpMlPredictionFieldCustomTextRepresentation {
30
+ isHidden: boolean;
31
+ mergeFieldValues: unknown;
32
+ templateText: string;
33
+ }
@@ -0,0 +1,51 @@
1
+ import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
2
+ import { CdpMlPredictionContributionBaseRepresentation as CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation } from './CdpMlPredictionContributionBaseRepresentation';
3
+ import { CdpAssetReferenceRepresentation as CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation } from './CdpAssetReferenceRepresentation';
4
+ import { CdpMlPredictionWarningsRepresentation as CdpMlPredictionWarningsRepresentation_CdpMlPredictionWarningsRepresentation } from './CdpMlPredictionWarningsRepresentation';
5
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
6
+ export declare enum DiscriminatorValues {
7
+ Regression = "Regression",
8
+ BinaryClassification = "BinaryClassification",
9
+ Generic = "Generic"
10
+ }
11
+ export declare const VERSION = "4bf69752af5d0c61c2fdac87e45db8a2";
12
+ export declare function validate(obj: any, path?: string): TypeError | null;
13
+ export declare const RepresentationType: string;
14
+ export declare function normalize(input: CdpMlPredictionSuccessBaseRepresentation, existing: CdpMlPredictionSuccessBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionSuccessBaseRepresentationNormalized;
15
+ export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: CdpMlPredictionSuccessBaseRepresentationNormalized, incoming: CdpMlPredictionSuccessBaseRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionSuccessBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * Base representation for a successful prediction result
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface CdpMlPredictionSuccessBaseRepresentationNormalized extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
28
+ /** A list of top factors associated with prediction */
29
+ factors: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
30
+ /** Model partition that's used for this prediction */
31
+ partition: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
32
+ /** A list of recommendations associated with this prediction */
33
+ prescriptions: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
34
+ /** Prediction type */
35
+ type: string;
36
+ warnings: CdpMlPredictionWarningsRepresentation_CdpMlPredictionWarningsRepresentation;
37
+ }
38
+ /**
39
+ * Base representation for a successful prediction result
40
+ *
41
+ * Keys:
42
+ * (none)
43
+ */
44
+ export interface CdpMlPredictionSuccessBaseRepresentation extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
45
+ factors: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
46
+ partition: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
47
+ prescriptions: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
48
+ type: string;
49
+ warnings: CdpMlPredictionWarningsRepresentation_CdpMlPredictionWarningsRepresentation;
50
+ status: 'Success';
51
+ }
@@ -0,0 +1,32 @@
1
+ import { CdpMlFieldValueRepresentation as CdpMlFieldValueRepresentation_CdpMlFieldValueRepresentation } from './CdpMlFieldValueRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "510be89ce5315c3840efaaaad36fabb8";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpMlPredictionWarningsRepresentation, existing: CdpMlPredictionWarningsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionWarningsRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpMlPredictionWarningsRepresentationNormalized, incoming: CdpMlPredictionWarningsRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionWarningsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation for prediction warnings
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpMlPredictionWarningsRepresentationNormalized {
18
+ /** A list of missing field names */
19
+ missingFielsNames: Array<string>;
20
+ /** A list of fields that contain values that are not seen in the model */
21
+ outOfBoundsFields: Array<CdpMlFieldValueRepresentation_CdpMlFieldValueRepresentation>;
22
+ }
23
+ /**
24
+ * Representation for prediction warnings
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface CdpMlPredictionWarningsRepresentation {
30
+ missingFielsNames: Array<string>;
31
+ outOfBoundsFields: Array<CdpMlFieldValueRepresentation_CdpMlFieldValueRepresentation>;
32
+ }
@@ -0,0 +1,30 @@
1
+ import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "167c8a12564b59d3c74be73a5be6145d";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpMlRegressionPredictionResultRepresentation, existing: CdpMlRegressionPredictionResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlRegressionPredictionResultRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpMlRegressionPredictionResultRepresentationNormalized, incoming: CdpMlRegressionPredictionResultRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlRegressionPredictionResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation for a successful regression prediction result
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpMlRegressionPredictionResultRepresentationNormalized extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
18
+ /** Representation for a successful regression prediction result */
19
+ predictedValue: number;
20
+ }
21
+ /**
22
+ * Representation for a successful regression prediction result
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface CdpMlRegressionPredictionResultRepresentation extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
28
+ predictedValue: number;
29
+ type: 'Regression';
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-cdp-machine-learning",
3
- "version": "1.311.0",
3
+ "version": "1.312.0",
4
4
  "description": "machine learning for data cloud",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-cdp-machine-learning.js",
@@ -41,10 +41,10 @@
41
41
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.311.0"
44
+ "@salesforce/lds-bindings": "^1.312.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.311.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.312.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -1129,7 +1129,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
1129
1129
  function createResourceRequest$c(config) {
1130
1130
  const headers = {};
1131
1131
  return {
1132
- baseUri: '/services/data/v62.0',
1132
+ baseUri: '/services/data/v63.0',
1133
1133
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models',
1134
1134
  method: 'post',
1135
1135
  body: config.body,
@@ -1383,38 +1383,27 @@ function validate$l(obj, path = 'CdpMlAggregatePredictionRepresentation') {
1383
1383
  return v_error === undefined ? null : v_error;
1384
1384
  }
1385
1385
 
1386
+ var DiscriminatorValues$1;
1387
+ (function (DiscriminatorValues) {
1388
+ DiscriminatorValues["Regression"] = "Regression";
1389
+ DiscriminatorValues["BinaryClassification"] = "BinaryClassification";
1390
+ DiscriminatorValues["Generic"] = "Generic";
1391
+ })(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
1392
+
1393
+ var DiscriminatorValues;
1394
+ (function (DiscriminatorValues) {
1395
+ DiscriminatorValues["Success"] = "Success";
1396
+ DiscriminatorValues["Error"] = "Error";
1397
+ })(DiscriminatorValues || (DiscriminatorValues = {}));
1386
1398
  function validate$k(obj, path = 'CdpMlPredictionBaseRepresentation') {
1387
1399
  const v_error = (() => {
1388
1400
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1389
1401
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1390
1402
  }
1391
- if (obj.status !== undefined) {
1392
- const obj_status = obj.status;
1393
- const path_status = path + '.status';
1394
- let obj_status_union0 = null;
1395
- const obj_status_union0_error = (() => {
1396
- if (typeof obj_status !== 'string') {
1397
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1398
- }
1399
- })();
1400
- if (obj_status_union0_error != null) {
1401
- obj_status_union0 = obj_status_union0_error.message;
1402
- }
1403
- let obj_status_union1 = null;
1404
- const obj_status_union1_error = (() => {
1405
- if (obj_status !== null) {
1406
- return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1407
- }
1408
- })();
1409
- if (obj_status_union1_error != null) {
1410
- obj_status_union1 = obj_status_union1_error.message;
1411
- }
1412
- if (obj_status_union0 && obj_status_union1) {
1413
- let message = 'Object doesn\'t match union (at "' + path_status + '")';
1414
- message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
1415
- message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
1416
- return new TypeError(message);
1417
- }
1403
+ const obj_status = obj.status;
1404
+ const path_status = path + '.status';
1405
+ if (typeof obj_status !== 'string') {
1406
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1418
1407
  }
1419
1408
  })();
1420
1409
  return v_error === undefined ? null : v_error;
@@ -1486,7 +1475,7 @@ function validate$j(obj, path = 'CdpMlPredictSettingsInputRepresentation') {
1486
1475
  }
1487
1476
 
1488
1477
  const TTL$7 = 1000;
1489
- const VERSION$7 = "53acf0a695382123e58156e703232cb5";
1478
+ const VERSION$7 = "db91153fa53c91ab59ff4d2ae3000258";
1490
1479
  function validate$i(obj, path = 'CdpMlPredictResultRepresentation') {
1491
1480
  const v_error = (() => {
1492
1481
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1539,15 +1528,13 @@ function validate$i(obj, path = 'CdpMlPredictResultRepresentation') {
1539
1528
  }
1540
1529
  }
1541
1530
  }
1542
- if (obj.settings !== undefined) {
1543
- const obj_settings = obj.settings;
1544
- const path_settings = path + '.settings';
1545
- const referencepath_settingsValidationError = validate$j(obj_settings, path_settings);
1546
- if (referencepath_settingsValidationError !== null) {
1547
- let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
1548
- message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1549
- return new TypeError(message);
1550
- }
1531
+ const obj_settings = obj.settings;
1532
+ const path_settings = path + '.settings';
1533
+ const referencepath_settingsValidationError = validate$j(obj_settings, path_settings);
1534
+ if (referencepath_settingsValidationError !== null) {
1535
+ let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
1536
+ message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1537
+ return new TypeError(message);
1551
1538
  }
1552
1539
  })();
1553
1540
  return v_error === undefined ? null : v_error;
@@ -1627,7 +1614,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
1627
1614
  function createResourceRequest$b(config) {
1628
1615
  const headers = {};
1629
1616
  return {
1630
- baseUri: '/services/data/v62.0',
1617
+ baseUri: '/services/data/v63.0',
1631
1618
  basePath: '/ssot/machine-learning/predict',
1632
1619
  method: 'post',
1633
1620
  body: config.body,
@@ -2077,7 +2064,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
2077
2064
  function createResourceRequest$a(config) {
2078
2065
  const headers = {};
2079
2066
  return {
2080
- baseUri: '/services/data/v62.0',
2067
+ baseUri: '/services/data/v63.0',
2081
2068
  basePath: '/ssot/machine-learning/configured-models',
2082
2069
  method: 'post',
2083
2070
  body: config.body,
@@ -2217,7 +2204,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
2217
2204
  function createResourceRequest$9(config) {
2218
2205
  const headers = {};
2219
2206
  return {
2220
- baseUri: '/services/data/v62.0',
2207
+ baseUri: '/services/data/v63.0',
2221
2208
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2222
2209
  method: 'get',
2223
2210
  body: null,
@@ -2433,7 +2420,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
2433
2420
  function createResourceRequest$8(config) {
2434
2421
  const headers = {};
2435
2422
  return {
2436
- baseUri: '/services/data/v62.0',
2423
+ baseUri: '/services/data/v63.0',
2437
2424
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models',
2438
2425
  method: 'get',
2439
2426
  body: null,
@@ -3073,7 +3060,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
3073
3060
  function createResourceRequest$7(config) {
3074
3061
  const headers = {};
3075
3062
  return {
3076
- baseUri: '/services/data/v62.0',
3063
+ baseUri: '/services/data/v63.0',
3077
3064
  basePath: '/ssot/machine-learning/model-artifacts/' + config.urlParams.modelArtifactIdOrName + '',
3078
3065
  method: 'get',
3079
3066
  body: null,
@@ -3312,7 +3299,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
3312
3299
  function createResourceRequest$6(config) {
3313
3300
  const headers = {};
3314
3301
  return {
3315
- baseUri: '/services/data/v62.0',
3302
+ baseUri: '/services/data/v63.0',
3316
3303
  basePath: '/ssot/machine-learning/model-artifacts',
3317
3304
  method: 'get',
3318
3305
  body: null,
@@ -4219,7 +4206,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4219
4206
  function createResourceRequest$5(config) {
4220
4207
  const headers = {};
4221
4208
  return {
4222
- baseUri: '/services/data/v62.0',
4209
+ baseUri: '/services/data/v63.0',
4223
4210
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '',
4224
4211
  method: 'get',
4225
4212
  body: null,
@@ -4941,7 +4928,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4941
4928
  function createResourceRequest$4(config) {
4942
4929
  const headers = {};
4943
4930
  return {
4944
- baseUri: '/services/data/v62.0',
4931
+ baseUri: '/services/data/v63.0',
4945
4932
  basePath: '/ssot/machine-learning/workspaces',
4946
4933
  method: 'get',
4947
4934
  body: null,
@@ -5088,7 +5075,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
5088
5075
  function createResourceRequest$3(config) {
5089
5076
  const headers = {};
5090
5077
  return {
5091
- baseUri: '/services/data/v62.0',
5078
+ baseUri: '/services/data/v63.0',
5092
5079
  basePath: '/ssot/machine-learning/configured-models/' + config.urlParams.configuredModelIdOrName + '',
5093
5080
  method: 'get',
5094
5081
  body: null,
@@ -5376,7 +5363,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
5376
5363
  function createResourceRequest$2(config) {
5377
5364
  const headers = {};
5378
5365
  return {
5379
- baseUri: '/services/data/v62.0',
5366
+ baseUri: '/services/data/v63.0',
5380
5367
  basePath: '/ssot/machine-learning/configured-models',
5381
5368
  method: 'get',
5382
5369
  body: null,
@@ -5508,7 +5495,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
5508
5495
  function createResourceRequest$1(config) {
5509
5496
  const headers = {};
5510
5497
  return {
5511
- baseUri: '/services/data/v62.0',
5498
+ baseUri: '/services/data/v63.0',
5512
5499
  basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
5513
5500
  method: 'patch',
5514
5501
  body: config.body,
@@ -5671,7 +5658,7 @@ function ingestSuccess(luvio, resourceParams, response) {
5671
5658
  function createResourceRequest(config) {
5672
5659
  const headers = {};
5673
5660
  return {
5674
- baseUri: '/services/data/v62.0',
5661
+ baseUri: '/services/data/v63.0',
5675
5662
  basePath: '/ssot/machine-learning/configured-models/' + config.urlParams.configuredModelIdOrName + '',
5676
5663
  method: 'patch',
5677
5664
  body: config.body,
@@ -5894,4 +5881,4 @@ withDefaultLuvio((luvio) => {
5894
5881
  });
5895
5882
 
5896
5883
  export { createCdpMlConfiguredModel, createCdpMlPredictResult, createMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, getMlConfiguredModel, getMlConfiguredModelCollection, getMlConfiguredModelCollection_imperative, getMlConfiguredModelNotifyChange, getMlConfiguredModel_imperative, updateCdpMlConfiguredModel, updateMlConfiguredModel };
5897
- // version: 1.311.0-5f03b383b7
5884
+ // version: 1.312.0-0d267bac6a
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '61.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v62.0
9
+ baseUri: /services/data/v63.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -1214,14 +1214,172 @@ types:
1214
1214
  type: integer
1215
1215
  CdpMlPredictionBaseRepresentation:
1216
1216
  description: Base representation for a prediction result
1217
+ discriminator: status
1217
1218
  type: object
1218
1219
  properties:
1219
- status?:
1220
+ status:
1220
1221
  description: prediction status
1221
- type: string | nil
1222
+ type: string
1222
1223
  enum:
1223
1224
  - Success
1224
1225
  - Error
1226
+ CdpMlPredictionErrorRepresentation:
1227
+ description: Failed prediction
1228
+ type: CdpMlPredictionBaseRepresentation
1229
+ discriminatorValue: Error
1230
+ properties:
1231
+ errorCode:
1232
+ description: Error Code for the Error Message
1233
+ type: string
1234
+ enum:
1235
+ - TimedOut
1236
+ - NoMatch
1237
+ - Error
1238
+ message:
1239
+ description: Error Message for Predict Error
1240
+ type: string
1241
+ CdpMlPredictionSuccessBaseRepresentation:
1242
+ description: Base representation for a successful prediction result
1243
+ type: CdpMlPredictionBaseRepresentation
1244
+ discriminator: type
1245
+ discriminatorValue: Success
1246
+ properties:
1247
+ type:
1248
+ description: Prediction type
1249
+ type: string
1250
+ enum:
1251
+ - Regression
1252
+ - BinaryClassification
1253
+ - Generic
1254
+ partition:
1255
+ description: Model partition that's used for this prediction
1256
+ type: CdpAssetReferenceRepresentation
1257
+ warnings:
1258
+ description: Warnings that are generated by the prediction
1259
+ type: CdpMlPredictionWarningsRepresentation
1260
+ factors:
1261
+ description: A list of top factors associated with prediction
1262
+ type: array
1263
+ items:
1264
+ type: CdpMlPredictionContributionBaseRepresentation
1265
+ prescriptions:
1266
+ description: A list of recommendations associated with this prediction
1267
+ type: array
1268
+ items:
1269
+ type: CdpMlPredictionContributionBaseRepresentation
1270
+ CdpMlRegressionPredictionResultRepresentation:
1271
+ description: Representation for a successful regression prediction result
1272
+ type: CdpMlPredictionSuccessBaseRepresentation
1273
+ discriminatorValue: Regression
1274
+ properties:
1275
+ predictedValue:
1276
+ description: Representation for a successful regression prediction result
1277
+ format: double
1278
+ type: number
1279
+ CdpMlBinaryClassificationPredictionResultRepresentation:
1280
+ description: Representation for a successful binary classification prediction result
1281
+ type: CdpMlPredictionSuccessBaseRepresentation
1282
+ discriminatorValue: BinaryClassification
1283
+ properties:
1284
+ predictedValue:
1285
+ description: Predicted value
1286
+ format: double
1287
+ type: number
1288
+ threshold:
1289
+ description: Threshold used
1290
+ format: double
1291
+ type: number
1292
+ CdpMlGenericPredictionResultRepresentation:
1293
+ description: Representation for a successful generic prediction result
1294
+ type: CdpMlPredictionSuccessBaseRepresentation
1295
+ discriminatorValue: Generic
1296
+ properties:
1297
+ outputs:
1298
+ description: Name
1299
+ type: array
1300
+ items:
1301
+ type: CdpMlGenericPredictionOutputValueRepresentation
1302
+ CdpMlGenericPredictionOutputValueRepresentation:
1303
+ description: Representation for a successful generic prediction result
1304
+ type: object
1305
+ properties:
1306
+ name:
1307
+ description: Name
1308
+ type: string
1309
+ value:
1310
+ description: Output Value
1311
+ type: object
1312
+ type:
1313
+ description: Output Data type
1314
+ type: string
1315
+ enum:
1316
+ - Text
1317
+ - Number
1318
+ - Date
1319
+ - Boolean
1320
+ CdpMlPredictionContributionBaseRepresentation:
1321
+ description: Base representation for a Prediction Contribution
1322
+ type: object
1323
+ properties:
1324
+ value:
1325
+ description: Contribution value
1326
+ format: double
1327
+ type: number
1328
+ fields:
1329
+ description: List of field and values that have the same contribution value
1330
+ type: array
1331
+ items:
1332
+ type: CdpMlPredictionContributionFieldRepresentation
1333
+ CdpMlPredictionContributionFieldRepresentation:
1334
+ description: Cdp Ml Prediction Contribution Field
1335
+ type: object
1336
+ properties:
1337
+ prescribedValue:
1338
+ description: Model output value for the field (i.e. recommended value to improve prediction)
1339
+ type: string
1340
+ inputValue:
1341
+ description: Input value used for this field
1342
+ type: string
1343
+ customText:
1344
+ description:
1345
+ type: CdpMlPredictionFieldCustomTextRepresentation
1346
+ CdpMlPredictionFieldCustomTextRepresentation:
1347
+ description: Cdp Ml Prediction Field Custom Text
1348
+ type: object
1349
+ properties:
1350
+ templateText:
1351
+ description: Template text if custom override is defined for the column.
1352
+ type: string
1353
+ mergeFieldValues:
1354
+ description: Provides placeholder to resolved value defined in the template text. Null if there are no placeholders.
1355
+ type: any
1356
+ isHidden:
1357
+ description:
1358
+ type: boolean
1359
+ CdpMlPredictionWarningsRepresentation:
1360
+ description: Representation for prediction warnings
1361
+ type: object
1362
+ properties:
1363
+ outOfBoundsFields:
1364
+ description: A list of fields that contain values that are not seen in the model
1365
+ type: array
1366
+ items:
1367
+ type: CdpMlFieldValueRepresentation
1368
+ missingFielsNames:
1369
+ description: A list of missing field names
1370
+ type: array
1371
+ items:
1372
+ type: string
1373
+ CdpMlFieldValueRepresentation:
1374
+ description: Cdp Ml Field Value
1375
+ type: object
1376
+ properties:
1377
+ value:
1378
+ description: Field value
1379
+ type: string
1380
+ count:
1381
+ description: Count of the value
1382
+ type: integer
1225
1383
  CdpMlAggregatePredictionRepresentation:
1226
1384
  description: Cdp Ml Prediction result representation
1227
1385
  type: object
@@ -1296,7 +1454,7 @@ types:
1296
1454
  type: array
1297
1455
  items:
1298
1456
  type: CdpMlAggregatePredictionRepresentation
1299
- settings?:
1457
+ settings:
1300
1458
  description: Settings used for the prediction
1301
1459
  type: CdpMlPredictSettingsInputRepresentation
1302
1460
  MlConfiguredModelInputRepresentation:
@@ -43,9 +43,6 @@ types:
43
43
  CdpMlAggregatePredictConditionRepresentation:
44
44
  (luvio.ttl): 1000
45
45
  (luvio.opaque): true
46
- CdpMlPredictionBaseRepresentation:
47
- (luvio.ttl): 1000
48
- (luvio.opaque): true
49
46
  CdpMlAggregatePredictionRepresentation:
50
47
  (luvio.ttl): 1000
51
48
  (luvio.opaque): true