@salesforce/lds-adapters-service-einsteinllm 1.332.0-dev2 → 1.332.0-dev20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einsteinllm.js +1071 -369
- package/dist/es/es2018/types/src/generated/adapters/getOutputLanguages.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplate.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplateOutputLanguagesByPromptTemplateDevName.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesByPromptTemplateDevName.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordCollectionOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordRepresentation.d.ts +6 -5
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateSupportedLanguageErrorRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateSupportedLanguageRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateVersionOutputLanguagesRepresentation.d.ts +43 -0
- package/package.json +4 -4
- package/sfdc/index.js +1024 -302
- package/src/raml/api.raml +109 -2
- package/src/raml/luvio.raml +15 -0
package/src/raml/api.raml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
securedBy:
|
|
3
3
|
- OAuth2
|
|
4
4
|
title: Salesforce Connect API
|
|
5
|
-
version: '
|
|
5
|
+
version: '63.0'
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
@@ -371,7 +371,9 @@ types:
|
|
|
371
371
|
required: false
|
|
372
372
|
properties:
|
|
373
373
|
//:
|
|
374
|
-
type:
|
|
374
|
+
type: array
|
|
375
|
+
items:
|
|
376
|
+
type: EinsteinPromptRecordRepresentation
|
|
375
377
|
fields:
|
|
376
378
|
description: GenAiPromptTemplate Fields
|
|
377
379
|
type: object
|
|
@@ -472,6 +474,28 @@ types:
|
|
|
472
474
|
type: array
|
|
473
475
|
items:
|
|
474
476
|
type: EinsteinPromptTemplateMaskDataRepresentation
|
|
477
|
+
fileData:
|
|
478
|
+
description: file info of the input files used in generation
|
|
479
|
+
type: array
|
|
480
|
+
required: false # TODO Hand-rolled W-17552098
|
|
481
|
+
items:
|
|
482
|
+
type: EinsteinPromptTemplateAttachmentRepresentation
|
|
483
|
+
EinsteinPromptTemplateAttachmentRepresentation:
|
|
484
|
+
description: Representation of file data for prompt template attachments
|
|
485
|
+
type: object
|
|
486
|
+
properties:
|
|
487
|
+
id:
|
|
488
|
+
description: ContentDocument Id of file attached to prompt template
|
|
489
|
+
type: string
|
|
490
|
+
title:
|
|
491
|
+
description: title of the attachment file
|
|
492
|
+
type: string
|
|
493
|
+
fileExtension:
|
|
494
|
+
description: extension of the file attachment
|
|
495
|
+
type: string
|
|
496
|
+
latestPublishedVersion:
|
|
497
|
+
description: ContentVersion of the latest published version of the file attachment
|
|
498
|
+
type: string
|
|
475
499
|
EinsteinPromptTemplateMaskContentRepresentation:
|
|
476
500
|
description: Output of a einstein mask data request and response for given prompt template
|
|
477
501
|
type: object
|
|
@@ -507,6 +531,50 @@ types:
|
|
|
507
531
|
enableModeration:
|
|
508
532
|
description: enable moderation value
|
|
509
533
|
type: boolean
|
|
534
|
+
EinsteinPromptTemplateSupportedLanguageErrorRepresentation:
|
|
535
|
+
description: Representation of an error encountered when returning the Prompt Template Version Supported Languages.
|
|
536
|
+
type: object
|
|
537
|
+
properties:
|
|
538
|
+
errorMessage:
|
|
539
|
+
description: Error message for this error
|
|
540
|
+
type: string
|
|
541
|
+
messageCode:
|
|
542
|
+
description: Message Code for this error.
|
|
543
|
+
type: string
|
|
544
|
+
EinsteinPromptTemplateSupportedLanguageRepresentation:
|
|
545
|
+
description: Representation of a single Prompt Template Version Supported Language
|
|
546
|
+
type: object
|
|
547
|
+
properties:
|
|
548
|
+
languageCode:
|
|
549
|
+
description: Language Code
|
|
550
|
+
type: string
|
|
551
|
+
languageDisplayName:
|
|
552
|
+
description: Language Display Name
|
|
553
|
+
type: string
|
|
554
|
+
EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
|
|
555
|
+
description: Representation of all supported output languages for a given Prompt
|
|
556
|
+
Template Version
|
|
557
|
+
type: object
|
|
558
|
+
properties:
|
|
559
|
+
errors:
|
|
560
|
+
description: Supported Language Errors
|
|
561
|
+
type: array
|
|
562
|
+
items:
|
|
563
|
+
type: EinsteinPromptTemplateSupportedLanguageErrorRepresentation
|
|
564
|
+
isSuccess:
|
|
565
|
+
description: Did this call succeed or not.
|
|
566
|
+
type: boolean
|
|
567
|
+
promptTemplateDevName:
|
|
568
|
+
description: Prompt Template Developer Name
|
|
569
|
+
type: string
|
|
570
|
+
supportedLanguages:
|
|
571
|
+
description: Supported Languages
|
|
572
|
+
type: array
|
|
573
|
+
items:
|
|
574
|
+
type: EinsteinPromptTemplateSupportedLanguageRepresentation
|
|
575
|
+
versionId:
|
|
576
|
+
description: Prompt Template Version Id
|
|
577
|
+
type: string
|
|
510
578
|
WrappedListString:
|
|
511
579
|
description: Wrapped list of String for use in Apex.
|
|
512
580
|
type: object
|
|
@@ -629,6 +697,24 @@ types:
|
|
|
629
697
|
sortBy:
|
|
630
698
|
type: string
|
|
631
699
|
required: false
|
|
700
|
+
/prompt-templates/{promptTemplateDevName}:
|
|
701
|
+
get:
|
|
702
|
+
displayName: getEinsteinPromptTemplate
|
|
703
|
+
description: Get A Prompt Template by DeveloperName and Version Id
|
|
704
|
+
responses:
|
|
705
|
+
'200':
|
|
706
|
+
description: Success
|
|
707
|
+
body:
|
|
708
|
+
application/json:
|
|
709
|
+
type: EinsteinPromptRecordRepresentation
|
|
710
|
+
queryParameters:
|
|
711
|
+
versionId:
|
|
712
|
+
type: string
|
|
713
|
+
required: false
|
|
714
|
+
uriParameters:
|
|
715
|
+
promptTemplateDevName:
|
|
716
|
+
type: string
|
|
717
|
+
required: true
|
|
632
718
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
633
719
|
post:
|
|
634
720
|
displayName: postEinsteinPromptTemplateGenerations
|
|
@@ -652,3 +738,24 @@ types:
|
|
|
652
738
|
promptTemplateDevName:
|
|
653
739
|
type: string
|
|
654
740
|
required: true
|
|
741
|
+
/prompt-template/{promptTemplateDevName}/output-languages:
|
|
742
|
+
get:
|
|
743
|
+
displayName: getEinsteinPromptTemplateOutputLanguages
|
|
744
|
+
description: Get A Prompt Template by DeveloperName and Version Id
|
|
745
|
+
responses:
|
|
746
|
+
'200':
|
|
747
|
+
description: Success
|
|
748
|
+
body:
|
|
749
|
+
application/json:
|
|
750
|
+
type: EinsteinPromptTemplateVersionOutputLanguagesRepresentation
|
|
751
|
+
queryParameters:
|
|
752
|
+
useStandardVersion:
|
|
753
|
+
type: boolean
|
|
754
|
+
required: false
|
|
755
|
+
versionId:
|
|
756
|
+
type: string
|
|
757
|
+
required: false
|
|
758
|
+
uriParameters:
|
|
759
|
+
promptTemplateDevName:
|
|
760
|
+
type: string
|
|
761
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -24,6 +24,11 @@ types:
|
|
|
24
24
|
EinsteinPromptRecordCollectionOutputRepresentation:
|
|
25
25
|
(luvio.ttl): 100
|
|
26
26
|
(luvio.opaque): true
|
|
27
|
+
EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
|
|
28
|
+
(luvio.ttl): 100
|
|
29
|
+
EinsteinPromptRecordRepresentation:
|
|
30
|
+
(luvio.ttl): 100
|
|
31
|
+
(luvio.opaque): true
|
|
27
32
|
|
|
28
33
|
/einstein/llm/prompt/generations:
|
|
29
34
|
post:
|
|
@@ -35,11 +40,21 @@ types:
|
|
|
35
40
|
(luvio.adapter):
|
|
36
41
|
name: getPromptTemplates
|
|
37
42
|
|
|
43
|
+
/einstein/prompt-templates/{promptTemplateDevName}:
|
|
44
|
+
get:
|
|
45
|
+
(luvio.adapter):
|
|
46
|
+
name: getPromptTemplate
|
|
47
|
+
|
|
38
48
|
/einstein/prompt-templates/{promptTemplateDevName}/generations:
|
|
39
49
|
post:
|
|
40
50
|
(luvio.adapter):
|
|
41
51
|
name: createGenerationsForPromptTemplate
|
|
42
52
|
|
|
53
|
+
/einstein/prompt-template/{promptTemplateDevName}/output-languages:
|
|
54
|
+
get:
|
|
55
|
+
(luvio.adapter):
|
|
56
|
+
name: getOutputLanguages
|
|
57
|
+
|
|
43
58
|
/einstein/llm/feedback:
|
|
44
59
|
post:
|
|
45
60
|
(luvio.adapter):
|