@salesforce/lds-adapters-platform-cdp-machine-learning 1.266.0-dev6 → 1.266.0-dev8

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 (25) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +1474 -283
  2. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModel.d.ts +28 -0
  3. package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +12 -9
  4. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
  5. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -2
  6. package/dist/es/es2018/types/src/generated/resources/patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts +12 -9
  7. package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +12 -9
  8. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +7 -7
  9. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceInputRepresentation.d.ts +34 -0
  10. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +13 -13
  11. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +22 -19
  12. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +15 -15
  13. package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldDefinitionInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldInputRepresentation.d.ts +35 -0
  15. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +11 -11
  16. package/dist/es/es2018/types/src/generated/types/CdpMlModelParameterOverrideInputRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +7 -7
  18. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceCollectionRepresentation.d.ts +5 -5
  19. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +27 -27
  20. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +23 -23
  21. package/package.json +3 -3
  22. package/sfdc/index.js +1406 -215
  23. package/src/raml/api.raml +131 -77
  24. package/src/raml/luvio.raml +1 -1
  25. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +0 -25
package/src/raml/api.raml CHANGED
@@ -34,7 +34,7 @@ types:
34
34
  type: CdpUserRepresentation
35
35
  createdDate?:
36
36
  description: Created date
37
- type: string
37
+ type: string | nil
38
38
  id:
39
39
  description: The 18 character ID of the asset
40
40
  type: string
@@ -46,13 +46,13 @@ types:
46
46
  type: CdpUserRepresentation
47
47
  lastModifiedDate?:
48
48
  description: Last modified date
49
- type: string
49
+ type: string | nil
50
50
  name:
51
51
  description: Name of the asset
52
52
  type: string
53
53
  namespace?:
54
54
  description: Namespace of the asset
55
- type: string
55
+ type: string | nil
56
56
  url:
57
57
  description: Url
58
58
  type: string
@@ -65,28 +65,28 @@ types:
65
65
  type: CdpUserRepresentation
66
66
  createdDate?:
67
67
  description: Created date
68
- type: string
68
+ type: string | nil
69
69
  id?:
70
70
  description: The 18 character ID of the asset
71
71
  type: string
72
72
  label?:
73
73
  description: Label of the asset
74
- type: string
74
+ type: string | nil
75
75
  lastModifiedBy?:
76
76
  description: Last modified by
77
77
  type: CdpUserRepresentation
78
78
  lastModifiedDate?:
79
79
  description: Last modified date
80
- type: string
80
+ type: string | nil
81
81
  name?:
82
82
  description: Name of the asset
83
- type: string
83
+ type: string | nil
84
84
  namespace?:
85
85
  description: Namespace of the asset
86
- type: string
86
+ type: string | nil
87
87
  url?:
88
88
  description: Url
89
- type: string
89
+ type: string | nil
90
90
  CdpMlConfiguredModelCollectionRepresentation:
91
91
  description: Represents Cdp Ml Configured Model Collection
92
92
  type: object
@@ -136,7 +136,7 @@ types:
136
136
  properties:
137
137
  description?:
138
138
  description: Description
139
- type: string
139
+ type: string | nil
140
140
  inputFields:
141
141
  description: Input Fields
142
142
  type: array
@@ -164,7 +164,7 @@ types:
164
164
  enum:
165
165
  - External
166
166
  - Internal
167
- source?: # TODO hand rolled. W-14560715
167
+ source?:
168
168
  description: Source
169
169
  type: CdpAssetReferenceRepresentation
170
170
  sourceType:
@@ -174,75 +174,129 @@ types:
174
174
  - EdcNoCode
175
175
  - ModelConnector
176
176
  - OutOfTheBox
177
- createdBy?: # TODO hand rolled. W-14560715
177
+ createdBy?:
178
178
  description: Created by
179
179
  type: CdpUserRepresentation
180
- createdDate?: # TODO hand rolled. W-14560715
180
+ createdDate?:
181
181
  description: Created date
182
- type: string
183
- id?: # TODO hand rolled. W-14560715
182
+ type: string | nil
183
+ id?:
184
184
  description: The 18 character ID of the asset
185
185
  type: string
186
186
  label?:
187
187
  description: Label of the asset
188
- type: string
189
- lastModifiedBy?: # TODO hand rolled. W-14560715
188
+ type: string | nil
189
+ lastModifiedBy?:
190
190
  description: Last modified by
191
191
  type: CdpUserRepresentation
192
- lastModifiedDate?: # TODO hand rolled. W-14560715
192
+ lastModifiedDate?:
193
193
  description: Last modified date
194
- type: string
194
+ type: string | nil
195
195
  name:
196
196
  description: Name of the asset
197
197
  type: string
198
198
  namespace?:
199
199
  description: Namespace of the asset
200
- type: string
200
+ type: string | nil
201
201
  url:
202
202
  description: Url
203
203
  type: string
204
+ CdpMlModelParameterOverrideInputRepresentation:
205
+ description: Input representation for a Cdp Ml Model Parameter Override
206
+ type: object
207
+ properties:
208
+ continuousValue?:
209
+ description: Model parameter continuous value
210
+ type: number | nil
211
+ discreteValue?:
212
+ description: Model parameter discrete value
213
+ type: string | nil
214
+ parameterName?:
215
+ description: Model parameter definition Id to which override is provided
216
+ type: string | nil
217
+ CdpAssetReferenceInputRepresentation:
218
+ description: Represents an asset
219
+ type: object
220
+ properties:
221
+ id?:
222
+ description: Id
223
+ type: string | nil
224
+ name?:
225
+ description: Name
226
+ type: string | nil
227
+ namespace?:
228
+ description: Namespace
229
+ type: string | nil
230
+ CdpMlCustomizableFieldDefinitionInputRepresentation:
231
+ description: Input representation for a Cdp Ml Customizable Field Definition
232
+ type: object
233
+ properties:
234
+ filter:
235
+ description: Filter
236
+ type: object
237
+ templateText:
238
+ description: Template Text
239
+ type: string
240
+ CdpMlCustomizableFieldInputRepresentation:
241
+ description: Input representation for a Cdp Ml Customizable Field
242
+ type: object
243
+ properties:
244
+ customDefinitions:
245
+ description: Custom Definitions
246
+ type: array
247
+ items:
248
+ type: CdpMlCustomizableFieldDefinitionInputRepresentation
249
+ name:
250
+ description: Name
251
+ type: string
252
+ type:
253
+ description: Type
254
+ type: string
255
+ enum:
256
+ - ActionableVariable
257
+ - TopFactor
204
258
  CdpMlConfiguredModelInputRepresentation:
205
259
  description: Input representation for a Cdp Ml Configured Model (Active Partition)
206
260
  type: object
207
261
  properties:
208
- actionableFields:
262
+ actionableFields?:
209
263
  description: Actionable Fields
210
264
  type: array
211
265
  items:
212
- type: object
266
+ type: CdpMlCustomizableFieldInputRepresentation
213
267
  artifact?:
214
268
  description: Artifact
215
- type: object
216
- capability:
269
+ type: CdpAssetReferenceInputRepresentation
270
+ capability?:
217
271
  description: Model capability
218
272
  type: string
219
273
  enum:
220
274
  - ChatCompletion
221
275
  - Completion
222
276
  - Embedding
223
- customizableFields:
277
+ customizableFields?:
224
278
  description: Customizable Fields
225
279
  type: array
226
280
  items:
227
- type: object
281
+ type: CdpMlCustomizableFieldInputRepresentation
228
282
  description?:
229
283
  description: Model description
230
- type: string
284
+ type: string | nil
231
285
  filter?:
232
286
  description: Filter
233
287
  type: object
234
288
  label?:
235
289
  description: Model label
236
- type: string
237
- parameterOverrides:
290
+ type: string | nil
291
+ parameterOverrides?:
238
292
  description: Model Parameter override
239
293
  type: array
240
294
  items:
241
- type: object
242
- position:
295
+ type: CdpMlModelParameterOverrideInputRepresentation
296
+ position?:
243
297
  description: Position
244
298
  type: integer
245
- status:
299
+ status?:
246
300
  description: Model status
247
301
  type: string
248
302
  enum:
@@ -252,7 +306,7 @@ types:
252
306
  description: Represents Cdp Ml Configured Model (Active Partition)
253
307
  type: object
254
308
  properties:
255
- actionableFields:
309
+ actionableFields?:
256
310
  description: List of actionable fields
257
311
  type: array
258
312
  items:
@@ -274,7 +328,7 @@ types:
274
328
  type: CdpMlCustomizableFieldRepresentation
275
329
  description?:
276
330
  description: Model description
277
- type: string
331
+ type: string | nil
278
332
  filter:
279
333
  description: Model filters
280
334
  type: CdpMlFilterRepresentation
@@ -286,7 +340,7 @@ types:
286
340
  type: string
287
341
  metricsUrl?:
288
342
  description: Live metrics url
289
- type: string
343
+ type: string | nil
290
344
  parameterOverrides:
291
345
  description: List of Model Parameter Overrides
292
346
  type: array
@@ -306,25 +360,25 @@ types:
306
360
  type: CdpUserRepresentation
307
361
  createdDate?:
308
362
  description: Created date
309
- type: string
363
+ type: string | nil
310
364
  id?:
311
365
  description: The 18 character ID of the asset
312
366
  type: string
313
367
  label?:
314
368
  description: Label of the asset
315
- type: string
369
+ type: string | nil
316
370
  lastModifiedBy?:
317
371
  description: Last modified by
318
372
  type: CdpUserRepresentation
319
373
  lastModifiedDate?:
320
374
  description: Last modified date
321
- type: string
375
+ type: string | nil
322
376
  name:
323
377
  description: Name of the asset
324
378
  type: string
325
- namespace:
379
+ namespace?:
326
380
  description: Namespace of the asset
327
- type: string
381
+ type: string | nil
328
382
  url:
329
383
  description: Url
330
384
  type: string
@@ -462,7 +516,7 @@ types:
462
516
  type: string
463
517
  nextPageUrl:
464
518
  description: Next page url if it exists
465
- type: string | nil # TODO hand rolled. W-14560715
519
+ type: string | nil
466
520
  totalSize:
467
521
  description: Total size of collection
468
522
  type: integer
@@ -480,7 +534,7 @@ types:
480
534
  type: string
481
535
  nextPageUrl:
482
536
  description: Next page url if it exists
483
- type: string | nil # TODO hand rolled. W-14560715
537
+ type: string | nil
484
538
  totalSize:
485
539
  description: Total size of collection
486
540
  type: integer
@@ -549,19 +603,19 @@ types:
549
603
  properties:
550
604
  connectorType?:
551
605
  description: Connector Type
552
- type: string
606
+ type: string | nil
553
607
  enum:
554
608
  - OpenAI
555
609
  - SageMaker
556
- modelType:
610
+ modelType?:
557
611
  description: Model type
558
- type: string
612
+ type: string | nil
559
613
  enum:
560
614
  - Generative
561
615
  - Predictive
562
- sourceType:
616
+ sourceType?:
563
617
  description: Source type
564
- type: string
618
+ type: string | nil
565
619
  enum:
566
620
  - EdcNoCode
567
621
  - ModelConnector
@@ -698,31 +752,31 @@ types:
698
752
  type: CdpAssetReferenceRepresentation
699
753
  activeSetupVersionNumber?:
700
754
  description: The version number of the active setup
701
- type: integer
755
+ type: integer | nil
702
756
  description?:
703
757
  description: Model description
704
- type: string
758
+ type: string | nil
705
759
  historiesUrl?:
706
760
  description: Histories URL
707
- type: string
761
+ type: string | nil
708
762
  latestSetup?:
709
763
  description: The latest setup, if it exists
710
764
  type: CdpAssetReferenceRepresentation
711
765
  modelCount:
712
766
  description: Model count
713
767
  type: integer
714
- modelType:
768
+ modelType?:
715
769
  description: Model type
716
770
  type: CdpMlModelTypeRepresentation
717
771
  modelsUrl?:
718
772
  description: Models URL
719
- type: string
773
+ type: string | nil
720
774
  outcomeDefinition?:
721
775
  description: Model outcome definition
722
776
  type: CdpMlModelOutcomeDefinitionRepresentation
723
777
  predictionType?:
724
778
  description: Model prediction type
725
- type: string
779
+ type: string | nil
726
780
  enum:
727
781
  - BinaryClassification
728
782
  - MulticlassClassification
@@ -732,7 +786,7 @@ types:
732
786
  type: CdpMlModelRefreshConfigRepresentation
733
787
  setupVersionsUrl?:
734
788
  description: Setup versions URL
735
- type: string
789
+ type: string | nil
736
790
  status:
737
791
  description: Model status
738
792
  type: string
@@ -742,34 +796,34 @@ types:
742
796
  - Enabled
743
797
  totalInferenceCount?:
744
798
  description: Model total inference count
745
- type: integer
799
+ type: integer | nil
746
800
  totalWarningsCount?:
747
801
  description: Model total warnings count
748
- type: integer
802
+ type: integer | nil
749
803
  createdBy?:
750
804
  description: Created by
751
805
  type: CdpUserRepresentation
752
806
  createdDate?:
753
807
  description: Created date
754
- type: string
808
+ type: string | nil
755
809
  id?:
756
810
  description: The 18 character ID of the asset
757
811
  type: string
758
812
  label?:
759
813
  description: Label of the asset
760
- type: string
814
+ type: string | nil
761
815
  lastModifiedBy?:
762
816
  description: Last modified by
763
817
  type: CdpUserRepresentation
764
818
  lastModifiedDate?:
765
819
  description: Last modified date
766
- type: string
820
+ type: string | nil
767
821
  name:
768
822
  description: Name of the asset
769
823
  type: string
770
824
  namespace?:
771
825
  description: Namespace of the asset
772
- type: string
826
+ type: string | nil
773
827
  url:
774
828
  description: Url
775
829
  type: string
@@ -782,13 +836,13 @@ types:
782
836
  type: CdpAssetReferenceRepresentation
783
837
  activeSetupVersionNumber?:
784
838
  description: The version number of the active setup
785
- type: integer
839
+ type: integer | nil
786
840
  description?:
787
841
  description: Model description
788
- type: string
842
+ type: string | nil
789
843
  historiesUrl?:
790
844
  description: Histories URL
791
- type: string
845
+ type: string | nil
792
846
  latestSetup?:
793
847
  description: The latest setup, if it exists
794
848
  type: CdpAssetReferenceRepresentation
@@ -806,7 +860,7 @@ types:
806
860
  type: CdpMlModelOutcomeDefinitionRepresentation
807
861
  predictionType?:
808
862
  description: Model prediction type
809
- type: string
863
+ type: string | nil
810
864
  enum:
811
865
  - BinaryClassification
812
866
  - MulticlassClassification
@@ -816,7 +870,7 @@ types:
816
870
  type: CdpMlModelRefreshConfigRepresentation
817
871
  setupVersionsUrl?:
818
872
  description: Setup versions URL
819
- type: string
873
+ type: string | nil
820
874
  status:
821
875
  description: Model status
822
876
  type: string
@@ -826,34 +880,34 @@ types:
826
880
  - Enabled
827
881
  totalInferenceCount?:
828
882
  description: Model total inference count
829
- type: integer
883
+ type: integer | nil
830
884
  totalWarningsCount?:
831
885
  description: Model total warnings count
832
- type: integer
886
+ type: integer | nil
833
887
  createdBy?:
834
888
  description: Created by
835
889
  type: CdpUserRepresentation
836
890
  createdDate?:
837
891
  description: Created date
838
- type: string
892
+ type: string | nil
839
893
  id?:
840
894
  description: The 18 character ID of the asset
841
895
  type: string
842
896
  label?:
843
897
  description: Label of the asset
844
- type: string
898
+ type: string | nil
845
899
  lastModifiedBy?:
846
900
  description: Last modified by
847
901
  type: CdpUserRepresentation
848
902
  lastModifiedDate?:
849
903
  description: Last modified date
850
- type: string
904
+ type: string | nil
851
905
  name:
852
906
  description: Name of the asset
853
907
  type: string
854
- namespace:
908
+ namespace?:
855
909
  description: Namespace of the asset
856
- type: string
910
+ type: string | nil
857
911
  url:
858
912
  description: Url
859
913
  type: string
@@ -866,12 +920,12 @@ types:
866
920
  type: array
867
921
  items:
868
922
  type: CdpMlWorkspaceRepresentation
869
- currentPageUrl:
923
+ currentPageUrl?:
870
924
  description: Current page url
871
- type: string
872
- nextPageUrl:
925
+ type: string | nil
926
+ nextPageUrl?:
873
927
  description: Next page url if it exists
874
- type: string | nil # TODO hand rolled. W-14560715
928
+ type: string | nil
875
929
  totalSize:
876
930
  description: Total size of collection
877
931
  type: integer
@@ -1041,7 +1095,7 @@ types:
1041
1095
  application/json:
1042
1096
  type: CdpMlConfiguredModelCollectionRepresentation
1043
1097
  post:
1044
- displayName: createCdpMlConfiguredModelCollection
1098
+ displayName: createCdpMlConfiguredModel
1045
1099
  description: Create a new configured model
1046
1100
  responses:
1047
1101
  '200':
@@ -63,7 +63,7 @@ types:
63
63
  name: getCdpMlConfiguredModelCollection
64
64
  post:
65
65
  (luvio.adapter):
66
- name: createCdpMlConfiguredModelCollection
66
+ name: createCdpMlConfiguredModel
67
67
  /models/{modelIdOrName}:
68
68
  get:
69
69
  (luvio.adapter):
@@ -1,25 +0,0 @@
1
- import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
- import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName_ResourceRequestConfig } from '../resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName';
4
- import { CdpMlConfiguredModelRepresentation as types_CdpMlConfiguredModelRepresentation_CdpMlConfiguredModelRepresentation } from '../types/CdpMlConfiguredModelRepresentation';
5
- export declare const adapterName = "createCdpMlConfiguredModelCollection";
6
- export declare const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
- export declare const createCdpMlConfiguredModelCollection_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
- export interface CreateCdpMlConfiguredModelCollectionConfig {
9
- workspaceIdOrName: string;
10
- actionableFields: Array<{}>;
11
- artifact?: {};
12
- capability: string;
13
- customizableFields: Array<{}>;
14
- description?: string;
15
- filter?: {};
16
- label?: string;
17
- parameterOverrides: Array<{}>;
18
- position: number;
19
- status: string;
20
- }
21
- export declare const createResourceParams: (config: CreateCdpMlConfiguredModelCollectionConfig) => resources_postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName_ResourceRequestConfig;
22
- export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateCdpMlConfiguredModelCollectionConfig>): adapter$45$utils_Untrusted<CreateCdpMlConfiguredModelCollectionConfig>;
23
- export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateCdpMlConfiguredModelCollectionConfig | null;
24
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateCdpMlConfiguredModelCollectionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CdpMlConfiguredModelRepresentation_CdpMlConfiguredModelRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CdpMlConfiguredModelRepresentation_CdpMlConfiguredModelRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CdpMlConfiguredModelRepresentation_CdpMlConfiguredModelRepresentation, any>>;
25
- export declare const createCdpMlConfiguredModelCollectionAdapterFactory: $64$luvio_engine_AdapterFactory<CreateCdpMlConfiguredModelCollectionConfig, types_CdpMlConfiguredModelRepresentation_CdpMlConfiguredModelRepresentation>;