@salesforce/lds-adapters-platform-cdp-machine-learning 1.283.0 → 1.284.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 (25) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +1598 -495
  2. package/dist/es/es2018/types/src/generated/adapters/createMlConfiguredModel.d.ts +22 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModelCollection.d.ts +1 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getMlConfiguredModel.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getMlConfiguredModelCollection.d.ts +36 -0
  6. package/dist/es/es2018/types/src/generated/adapters/updateMlConfiguredModel.d.ts +23 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -1
  9. package/dist/es/es2018/types/src/generated/resources/getSsotMachineLearningConfiguredModels.d.ts +24 -0
  10. package/dist/es/es2018/types/src/generated/resources/getSsotMachineLearningConfiguredModelsByConfiguredModelIdOrName.d.ts +19 -0
  11. package/dist/es/es2018/types/src/generated/resources/getSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +3 -0
  12. package/dist/es/es2018/types/src/generated/resources/patchSsotMachineLearningConfiguredModelsByConfiguredModelIdOrName.d.ts +22 -0
  13. package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningConfiguredModels.d.ts +19 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +20 -1
  15. package/dist/es/es2018/types/src/generated/types/MlConfiguredModelCollectionRepresentation.d.ts +39 -0
  16. package/dist/es/es2018/types/src/generated/types/MlConfiguredModelInputRepresentation.d.ts +45 -0
  17. package/dist/es/es2018/types/src/generated/types/MlConfiguredModelRepresentation.d.ts +98 -0
  18. package/dist/es/es2018/types/src/generated/types/MlConnectorEndpointRepresentation.d.ts +65 -0
  19. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningConfiguredModelsByConfiguredModelIdOrName/keyBuilder.d.ts +3 -0
  20. package/dist/es/es2018/types/src/raml-artifacts/types/MlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
  21. package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +1 -0
  22. package/package.json +3 -3
  23. package/sfdc/index.js +3002 -1821
  24. package/src/raml/api.raml +387 -0
  25. package/src/raml/luvio.raml +26 -0
package/src/raml/api.raml CHANGED
@@ -87,6 +87,79 @@ types:
87
87
  url?:
88
88
  description: Url
89
89
  type: string | nil
90
+ MlConnectorEndpointRepresentation:
91
+ description: Representation for Cdp Ml Connector Endpoint
92
+ type: object
93
+ properties:
94
+ authHeader?:
95
+ description: The authentication header
96
+ type: string
97
+ authentication?:
98
+ description: Connector endpoint authentication type - jwt or authkey based
99
+ type: string
100
+ enum:
101
+ - ApiKey
102
+ - GoogleSac
103
+ - Jwt
104
+ - Oauth
105
+ connectorType?:
106
+ description: The connector type
107
+ type: string
108
+ enum:
109
+ - Anthropic
110
+ - AzureOpenAI
111
+ - Databricks
112
+ - EinsteinText
113
+ - Generic
114
+ - OpenAI
115
+ - SageMaker
116
+ - VertexAI
117
+ endpointUrl?:
118
+ description: URL of the connect endpoint
119
+ type: string
120
+ foundationalModelName?:
121
+ description: Foundational model name
122
+ type: string
123
+ label?:
124
+ description: label
125
+ type: string
126
+ name?:
127
+ description: name
128
+ type: string
129
+ namedCredential?:
130
+ description: Named Credential used in the endpoint
131
+ type: CdpAssetReferenceRepresentation
132
+ privateKeyId?:
133
+ description: The private key ID
134
+ type: string
135
+ registeredModelApiName?:
136
+ description: Registered Model API name on the Provider
137
+ type: string
138
+ requestFormat?:
139
+ description: Connector endpoint request format
140
+ type: string
141
+ enum:
142
+ - Csv
143
+ - DataFrameRecords
144
+ - DataFrameSplit
145
+ - Json
146
+ - JsonDense
147
+ - NumpyInput
148
+ - NumpyInstance
149
+ responseFormat?:
150
+ description: Connector endpoint response format
151
+ type: string
152
+ enum:
153
+ - Csv
154
+ - DataFrameRecords
155
+ - DataFrameSplit
156
+ - Json
157
+ - JsonDense
158
+ - NumpyInput
159
+ - NumpyInstance
160
+ serviceAccountEmail?:
161
+ description: The service account email
162
+ type: string
90
163
  CdpMlConfiguredModelCollectionRepresentation:
91
164
  description: Represents Cdp Ml Configured Model Collection
92
165
  type: object
@@ -142,12 +215,19 @@ types:
142
215
  type: array
143
216
  items:
144
217
  type: CdpMlModelInputFieldBaseRepresentation
218
+ modelConnectorEndpoint?:
219
+ description: Model connector endpoint definition
220
+ type: MlConnectorEndpointRepresentation
221
+ modelCount?:
222
+ description: Number of configured models from this model artifact
223
+ type: integer
145
224
  modelType:
146
225
  description: Model Type
147
226
  type: string
148
227
  enum:
149
228
  - Generative
150
229
  - Predictive
230
+ - Unknown
151
231
  outputFields:
152
232
  description: Output Fields
153
233
  type: array
@@ -164,9 +244,15 @@ types:
164
244
  enum:
165
245
  - External
166
246
  - Internal
247
+ setupContainer?:
248
+ description: Setup Container
249
+ type: CdpAssetReferenceRepresentation
167
250
  source?:
168
251
  description: Source
169
252
  type: CdpAssetReferenceRepresentation
253
+ sourceContainer?:
254
+ description: Source Container
255
+ type: CdpAssetReferenceRepresentation
170
256
  sourceType:
171
257
  description: SourceType
172
258
  type: string
@@ -174,6 +260,20 @@ types:
174
260
  - EdcNoCode
175
261
  - ModelConnector
176
262
  - OutOfTheBox
263
+ status?:
264
+ description: Model artifact status
265
+ type: string
266
+ enum:
267
+ - Disabled
268
+ - Enabled
269
+ syncStatus?:
270
+ description: Sync status
271
+ type: string
272
+ enum:
273
+ - Error
274
+ - NotSynced
275
+ - Synced
276
+ - Syncing
177
277
  createdBy?:
178
278
  description: Created by
179
279
  type: CdpUserRepresentation
@@ -977,6 +1077,159 @@ types:
977
1077
  time:
978
1078
  description: Schedule Time
979
1079
  type: CdpTimeRepresentation
1080
+ MlConfiguredModelCollectionRepresentation:
1081
+ description: Represents Ml Configured Model Collection
1082
+ type: object
1083
+ properties:
1084
+ configuredModels:
1085
+ description: List of configured models
1086
+ type: array
1087
+ items:
1088
+ type: MlConfiguredModelRepresentation
1089
+ currentPageUrl?:
1090
+ description: Current page url
1091
+ type: string
1092
+ nextPageUrl?:
1093
+ description: Next page url if it exists
1094
+ type: string | nil
1095
+ totalSize?:
1096
+ description: Total size of collection
1097
+ type: integer
1098
+ MlConfiguredModelRepresentation:
1099
+ description: Represents Ml Configured Model
1100
+ type: object
1101
+ properties:
1102
+ activations?:
1103
+ description: List of activations
1104
+ type: array
1105
+ items:
1106
+ type: string
1107
+ enum:
1108
+ - Flow
1109
+ - PredictionJob
1110
+ artifact:
1111
+ description: Model Artifact
1112
+ type: CdpAssetReferenceRepresentation
1113
+ capability:
1114
+ description: Model capability
1115
+ type: string
1116
+ enum:
1117
+ - BinaryClassification
1118
+ - ChatCompletion
1119
+ - Completion
1120
+ - Embedding
1121
+ - Generic
1122
+ - MulticlassClassification
1123
+ - Regression
1124
+ connectorType?:
1125
+ description: Connector Type, if the configured model is referencing a model
1126
+ connector
1127
+ type: string | nil
1128
+ enum:
1129
+ - Anthropic
1130
+ - AzureOpenAI
1131
+ - Databricks
1132
+ - EinsteinText
1133
+ - Generic
1134
+ - OpenAI
1135
+ - SageMaker
1136
+ - VertexAI
1137
+ description?:
1138
+ description: User defined description
1139
+ type: string | nil
1140
+ lastActivatedBy?:
1141
+ description: Last activated by
1142
+ type: CdpUserRepresentation
1143
+ lastActivatedDate?:
1144
+ description: Last activated date
1145
+ type: string
1146
+ modelType?:
1147
+ description: Referenced model type
1148
+ type: string
1149
+ enum:
1150
+ - Generative
1151
+ - Predictive
1152
+ - Unknown
1153
+ parameterOverrides?:
1154
+ description: List of Model Parameter Overrides
1155
+ type: array
1156
+ items:
1157
+ type: CdpMlModelParameterOverrideBaseRepresentation
1158
+ setupType?:
1159
+ description: Referenced setup type
1160
+ type: string
1161
+ enum:
1162
+ - EdcNoCode
1163
+ - ModelConnector
1164
+ - OutOfTheBox
1165
+ status?:
1166
+ description: Model status
1167
+ type: string
1168
+ enum:
1169
+ - Disabled
1170
+ - Enabled
1171
+ createdBy?:
1172
+ description: Created by
1173
+ type: CdpUserRepresentation
1174
+ createdDate?:
1175
+ description: Created date
1176
+ type: string | nil
1177
+ id?:
1178
+ description: The 18 character ID of the asset
1179
+ type: string
1180
+ label?:
1181
+ description: Label of the asset
1182
+ type: string
1183
+ lastModifiedBy?:
1184
+ description: Last modified by
1185
+ type: CdpUserRepresentation
1186
+ lastModifiedDate?:
1187
+ description: Last modified date
1188
+ type: string | nil
1189
+ name:
1190
+ description: Name of the asset
1191
+ type: string
1192
+ namespace?:
1193
+ description: Namespace of the asset
1194
+ type: string | nil
1195
+ url:
1196
+ description: Url
1197
+ type: string
1198
+ MlConfiguredModelInputRepresentation:
1199
+ description: Input representation for a Ml Configured Model
1200
+ type: object
1201
+ properties:
1202
+ artifact?:
1203
+ description: Artifact
1204
+ type: CdpAssetReferenceInputRepresentation
1205
+ capability?:
1206
+ description: Model capability
1207
+ type: string
1208
+ enum:
1209
+ - BinaryClassification
1210
+ - ChatCompletion
1211
+ - Completion
1212
+ - Embedding
1213
+ - Generic
1214
+ - MulticlassClassification
1215
+ - Regression
1216
+ description?:
1217
+ description: Model description
1218
+ type: string
1219
+ label?:
1220
+ description: Model label
1221
+ type: string
1222
+ parameterOverrides?:
1223
+ description: Model Parameter override
1224
+ type: array
1225
+ items:
1226
+ type: CdpMlModelParameterOverrideInputRepresentation
1227
+ status?:
1228
+ description: Model status
1229
+ type: string
1230
+ enum:
1231
+ - Disabled
1232
+ - Enabled
980
1233
  /ssot:
981
1234
  /machine-learning:
982
1235
  /model-artifacts:
@@ -999,6 +1252,7 @@ types:
999
1252
  enum:
1000
1253
  - Generative
1001
1254
  - Predictive
1255
+ - Unknown
1002
1256
  offset:
1003
1257
  type: integer
1004
1258
  required: false
@@ -1023,6 +1277,122 @@ types:
1023
1277
  modelArtifactIdOrName:
1024
1278
  type: string
1025
1279
  required: true
1280
+ /configured-models:
1281
+ get:
1282
+ displayName: getMlConfiguredModelCollection
1283
+ description: Get configured models
1284
+ responses:
1285
+ '200':
1286
+ description: Success
1287
+ body:
1288
+ application/json:
1289
+ type: MlConfiguredModelCollectionRepresentation
1290
+ queryParameters:
1291
+ assetIdOrName:
1292
+ type: string
1293
+ required: false
1294
+ assetType:
1295
+ type: string
1296
+ required: false
1297
+ enum:
1298
+ - ModelArtifact
1299
+ - ModelSetup
1300
+ capabilities:
1301
+ type: array
1302
+ required: false
1303
+ items:
1304
+ type: string
1305
+ enum:
1306
+ - BinaryClassification
1307
+ - ChatCompletion
1308
+ - Completion
1309
+ - Embedding
1310
+ - Generic
1311
+ - MulticlassClassification
1312
+ - Regression
1313
+ (oas-collectionFormat): csv
1314
+ connectorType:
1315
+ type: string
1316
+ required: false
1317
+ enum:
1318
+ - Anthropic
1319
+ - AzureOpenAI
1320
+ - Databricks
1321
+ - EinsteinText
1322
+ - Generic
1323
+ - OpenAI
1324
+ - SageMaker
1325
+ - VertexAI
1326
+ limit:
1327
+ type: integer
1328
+ required: false
1329
+ modelType:
1330
+ type: string
1331
+ required: false
1332
+ enum:
1333
+ - Generative
1334
+ - Predictive
1335
+ - Unknown
1336
+ offset:
1337
+ type: integer
1338
+ required: false
1339
+ outOfTheBox:
1340
+ type: boolean
1341
+ required: false
1342
+ search:
1343
+ type: string
1344
+ required: false
1345
+ sourceType:
1346
+ type: string
1347
+ required: false
1348
+ enum:
1349
+ - EdcNoCode
1350
+ - ModelConnector
1351
+ - OutOfTheBox
1352
+ post:
1353
+ displayName: createMlConfiguredModel
1354
+ description: Create a new configured model
1355
+ responses:
1356
+ '200':
1357
+ description: Success
1358
+ body:
1359
+ application/json:
1360
+ type: MlConfiguredModelRepresentation
1361
+ body:
1362
+ application/json:
1363
+ type: MlConfiguredModelInputRepresentation
1364
+ (oas-body-name): configuredModel
1365
+ /configured-models/{configuredModelIdOrName}:
1366
+ get:
1367
+ displayName: getMlConfiguredModel
1368
+ description: Get a configured model
1369
+ responses:
1370
+ '200':
1371
+ description: Success
1372
+ body:
1373
+ application/json:
1374
+ type: MlConfiguredModelRepresentation
1375
+ queryParameters:
1376
+ filterGroup:
1377
+ type: string
1378
+ required: false
1379
+ patch:
1380
+ displayName: updateMlConfiguredModel
1381
+ description: Update a configured model
1382
+ responses:
1383
+ '200':
1384
+ description: Success
1385
+ body:
1386
+ application/json:
1387
+ type: MlConfiguredModelRepresentation
1388
+ body:
1389
+ application/json:
1390
+ type: MlConfiguredModelInputRepresentation
1391
+ (oas-body-name): configuredModel
1392
+ uriParameters:
1393
+ configuredModelIdOrName:
1394
+ type: string
1395
+ required: true
1026
1396
  /workspaces:
1027
1397
  get:
1028
1398
  displayName: getCdpMlWorkspaceCollection
@@ -1043,6 +1413,7 @@ types:
1043
1413
  enum:
1044
1414
  - Generative
1045
1415
  - Predictive
1416
+ - Unknown
1046
1417
  offset:
1047
1418
  type: integer
1048
1419
  required: false
@@ -1051,6 +1422,7 @@ types:
1051
1422
  required: false
1052
1423
  enum:
1053
1424
  - BinaryClassification
1425
+ - Generic
1054
1426
  - MulticlassClassification
1055
1427
  - Regression
1056
1428
  search:
@@ -1094,6 +1466,21 @@ types:
1094
1466
  body:
1095
1467
  application/json:
1096
1468
  type: CdpMlConfiguredModelCollectionRepresentation
1469
+ queryParameters:
1470
+ capabilities:
1471
+ type: array
1472
+ required: false
1473
+ items:
1474
+ type: string
1475
+ enum:
1476
+ - BinaryClassification
1477
+ - ChatCompletion
1478
+ - Completion
1479
+ - Embedding
1480
+ - Generic
1481
+ - MulticlassClassification
1482
+ - Regression
1483
+ (oas-collectionFormat): csv
1097
1484
  post:
1098
1485
  displayName: createCdpMlConfiguredModel
1099
1486
  description: Create a new configured model
@@ -32,6 +32,14 @@ types:
32
32
  CdpMlWorkspaceCollectionRepresentation:
33
33
  (luvio.ttl): 1000
34
34
  (luvio.opaque): true
35
+ MlConfiguredModelCollectionRepresentation:
36
+ (luvio.ttl): 1000
37
+ (luvio.opaque): true
38
+ MlConfiguredModelRepresentation:
39
+ (luvio.ttl): 1000
40
+ (luvio.opaque): true
41
+ (luvio.key):
42
+ configuredModelIdOrName: name
35
43
 
36
44
  /ssot:
37
45
  /machine-learning:
@@ -45,6 +53,24 @@ types:
45
53
  name: getCdpMlModelArtifact
46
54
  uriParameters:
47
55
  modelArtifactIdOrName:
56
+ /configured-models:
57
+ get:
58
+ (luvio.adapter):
59
+ name: getMlConfiguredModelCollection
60
+ post:
61
+ (luvio.adapter):
62
+ name: createMlConfiguredModel
63
+ /configured-models/{configuredModelIdOrName}:
64
+ get:
65
+ (luvio.adapter):
66
+ name: getMlConfiguredModel
67
+ (luvio.key):
68
+ configuredModelIdOrName: urlParams.configuredModelIdOrName
69
+ patch:
70
+ (luvio.adapter):
71
+ name: updateMlConfiguredModel
72
+ uriParameters:
73
+ configuredModelIdOrName:
48
74
  /workspaces:
49
75
  get:
50
76
  (luvio.adapter):