@salesforce/lds-adapters-service-einsteinllm 1.399.0 → 1.401.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.
- package/dist/es/es2018/service-einsteinllm.js +1770 -1028
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplate.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplateVersion.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplateVersion.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplateVersions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getTemplateType.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePromptTemplateVersion.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplateTypesByTemplateTypeName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplates.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordInputRepresentation.d.ts +5 -8
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeRecordRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeSchemaInputFieldRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeSchemaRepresentation.d.ts +35 -0
- package/package.json +4 -4
- package/sfdc/index.js +1648 -874
- package/src/raml/api.raml +103 -9
- package/src/raml/luvio.raml +13 -0
package/src/raml/api.raml
CHANGED
|
@@ -372,19 +372,14 @@ types:
|
|
|
372
372
|
type: any # TODO Hand-rolled W-18886332
|
|
373
373
|
fields:
|
|
374
374
|
description: GenAiPromptTemplate Fields
|
|
375
|
-
type:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
//:
|
|
380
|
-
type: any # TODO Hand-rolled W-18886332
|
|
375
|
+
type: object
|
|
376
|
+
properties:
|
|
377
|
+
//:
|
|
378
|
+
type: any # TODO Hand-rolled W-18886332
|
|
381
379
|
id:
|
|
382
380
|
description: The ID of the prompt template
|
|
383
381
|
type: string
|
|
384
382
|
required: false # TODO Hand-rolled W-18886332
|
|
385
|
-
isStandard:
|
|
386
|
-
description: isStandard
|
|
387
|
-
type: boolean
|
|
388
383
|
EinsteinPromptRecordRepresentation:
|
|
389
384
|
description: Representation of a single Prompt Template
|
|
390
385
|
type: object
|
|
@@ -489,6 +484,9 @@ types:
|
|
|
489
484
|
prompt:
|
|
490
485
|
description: Prompt used for the generation
|
|
491
486
|
type: string | nil # Hand-rolled union 'nil'
|
|
487
|
+
rawPrompt:
|
|
488
|
+
description: Raw prompt with unresolved merge fields
|
|
489
|
+
type: string | nil # Hand-rolled union 'nil'
|
|
492
490
|
promptTemplateDevName:
|
|
493
491
|
description: generated prompt template promptTemplateDevName
|
|
494
492
|
type: string
|
|
@@ -688,6 +686,56 @@ types:
|
|
|
688
686
|
languageDisplayName:
|
|
689
687
|
description: Language Display Name
|
|
690
688
|
type: string
|
|
689
|
+
EinsteinPromptTypeRecordRepresentation:
|
|
690
|
+
description: Representation of a single Prompt Template Type
|
|
691
|
+
type: object
|
|
692
|
+
properties:
|
|
693
|
+
excludedGlobalVariables:
|
|
694
|
+
description: The list of excluded global variables
|
|
695
|
+
type: array
|
|
696
|
+
items:
|
|
697
|
+
type: string
|
|
698
|
+
schema:
|
|
699
|
+
description: The schema of the prompt template type
|
|
700
|
+
type: EinsteinPromptTypeSchemaRepresentation
|
|
701
|
+
templateTypeName:
|
|
702
|
+
description: The unique name of the prompt template type
|
|
703
|
+
type: string
|
|
704
|
+
EinsteinPromptTypeSchemaInputFieldRepresentation:
|
|
705
|
+
description: Representation of an input in the schema of Prompt Template Type
|
|
706
|
+
type: object
|
|
707
|
+
properties:
|
|
708
|
+
apiName:
|
|
709
|
+
description: The unique API name of the input
|
|
710
|
+
type: string
|
|
711
|
+
label:
|
|
712
|
+
description: The label of the input
|
|
713
|
+
type: string
|
|
714
|
+
required: false
|
|
715
|
+
referenceName:
|
|
716
|
+
description: The reference name of the input
|
|
717
|
+
type: string
|
|
718
|
+
required: false
|
|
719
|
+
typeDefinition:
|
|
720
|
+
description: The type definition of the input
|
|
721
|
+
type: string
|
|
722
|
+
required: false
|
|
723
|
+
EinsteinPromptTypeSchemaRepresentation:
|
|
724
|
+
description: Representation of the schema of a Prompt Template type
|
|
725
|
+
type: object
|
|
726
|
+
properties:
|
|
727
|
+
allowInputExtension:
|
|
728
|
+
description: Whether to allow input extension
|
|
729
|
+
type: boolean
|
|
730
|
+
inputs:
|
|
731
|
+
description: Inputs in this template type
|
|
732
|
+
type: array
|
|
733
|
+
items:
|
|
734
|
+
type: EinsteinPromptTypeSchemaInputFieldRepresentation
|
|
735
|
+
primaryObjectId:
|
|
736
|
+
description: The ID of the primary object in the template type
|
|
737
|
+
type: string
|
|
738
|
+
required: false
|
|
691
739
|
PromptTemplateDataProviderDiscoveryInputRepresentation:
|
|
692
740
|
description: Input for data provider discovery API to find available data providers
|
|
693
741
|
based on criteria
|
|
@@ -1124,6 +1172,22 @@ types:
|
|
|
1124
1172
|
type: string
|
|
1125
1173
|
required: true
|
|
1126
1174
|
/versions:
|
|
1175
|
+
get:
|
|
1176
|
+
displayName: getEinsteinPromptTemplateVersions
|
|
1177
|
+
description: Get Prompt Template Versions by DeveloperName
|
|
1178
|
+
responses:
|
|
1179
|
+
'200':
|
|
1180
|
+
description: Success
|
|
1181
|
+
body:
|
|
1182
|
+
application/json:
|
|
1183
|
+
type: EinsteinPromptRecordRepresentation
|
|
1184
|
+
queryParameters:
|
|
1185
|
+
includingContent:
|
|
1186
|
+
type: boolean
|
|
1187
|
+
required: false
|
|
1188
|
+
includingVersionDetail:
|
|
1189
|
+
type: boolean
|
|
1190
|
+
required: false
|
|
1127
1191
|
post:
|
|
1128
1192
|
displayName: postEinsteinPromptTemplateVersion
|
|
1129
1193
|
description: Create a prompt template Version
|
|
@@ -1142,6 +1206,22 @@ types:
|
|
|
1142
1206
|
type: string
|
|
1143
1207
|
required: true
|
|
1144
1208
|
/versions/{versionId}:
|
|
1209
|
+
get:
|
|
1210
|
+
displayName: getEinsteinPromptTemplateVersion
|
|
1211
|
+
description: Get Prompt Template Version by DeveloperName and VersionId
|
|
1212
|
+
responses:
|
|
1213
|
+
'200':
|
|
1214
|
+
description: Success
|
|
1215
|
+
body:
|
|
1216
|
+
application/json:
|
|
1217
|
+
type: EinsteinPromptRecordRepresentation
|
|
1218
|
+
queryParameters:
|
|
1219
|
+
includingContent:
|
|
1220
|
+
type: boolean
|
|
1221
|
+
required: false
|
|
1222
|
+
includingVersionDetail:
|
|
1223
|
+
type: boolean
|
|
1224
|
+
required: false
|
|
1145
1225
|
put:
|
|
1146
1226
|
displayName: putEinsteinPromptTemplateVersion
|
|
1147
1227
|
description: Modify a prompt template Version
|
|
@@ -1209,6 +1289,20 @@ types:
|
|
|
1209
1289
|
promptTemplateDevName:
|
|
1210
1290
|
type: string
|
|
1211
1291
|
required: true
|
|
1292
|
+
/prompt-template-types/{templateTypeName}:
|
|
1293
|
+
get:
|
|
1294
|
+
displayName: getEinsteinPromptTemplateType
|
|
1295
|
+
description: Get A Prompt Type Configuration by templateTypeName
|
|
1296
|
+
responses:
|
|
1297
|
+
'200':
|
|
1298
|
+
description: Success
|
|
1299
|
+
body:
|
|
1300
|
+
application/json:
|
|
1301
|
+
type: EinsteinPromptTypeRecordRepresentation
|
|
1302
|
+
uriParameters:
|
|
1303
|
+
templateTypeName:
|
|
1304
|
+
type: string
|
|
1305
|
+
required: true
|
|
1212
1306
|
/prompt-template/{promptTemplateDevName}/output-languages:
|
|
1213
1307
|
get:
|
|
1214
1308
|
displayName: getEinsteinPromptTemplateOutputLanguages
|
package/src/raml/luvio.raml
CHANGED
|
@@ -42,6 +42,8 @@ types:
|
|
|
42
42
|
PromptTemplateDataProviderTypeConfigCollectionRepresentation:
|
|
43
43
|
(luvio.ttl): 300
|
|
44
44
|
(luvio.opaque): true
|
|
45
|
+
EinsteinPromptTypeRecordRepresentation:
|
|
46
|
+
(luvio.ttl): 300
|
|
45
47
|
|
|
46
48
|
/einstein/llm/prompt/generations:
|
|
47
49
|
post:
|
|
@@ -94,11 +96,17 @@ types:
|
|
|
94
96
|
post:
|
|
95
97
|
(luvio.adapter):
|
|
96
98
|
name: createPromptTemplateVersion
|
|
99
|
+
get:
|
|
100
|
+
(luvio.adapter):
|
|
101
|
+
name: getPromptTemplateVersions
|
|
97
102
|
|
|
98
103
|
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}:
|
|
99
104
|
put:
|
|
100
105
|
(luvio.adapter):
|
|
101
106
|
name: updatePromptTemplateVersion
|
|
107
|
+
get:
|
|
108
|
+
(luvio.adapter):
|
|
109
|
+
name: getPromptTemplateVersion
|
|
102
110
|
|
|
103
111
|
/einstein/prompt-template/{promptTemplateDevName}/output-languages:
|
|
104
112
|
get:
|
|
@@ -120,3 +128,8 @@ types:
|
|
|
120
128
|
put:
|
|
121
129
|
(luvio.adapter):
|
|
122
130
|
name: putEinsteinPromptTemplateVersionStatus
|
|
131
|
+
|
|
132
|
+
/einstein/prompt-template-types/{templateTypeName}:
|
|
133
|
+
get:
|
|
134
|
+
(luvio.adapter):
|
|
135
|
+
name: getTemplateType
|