@salesforce/lds-adapters-service-einsteinllm 1.354.0-dev16 → 1.354.0-dev18
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.
|
@@ -2479,7 +2479,7 @@ function equals$9(existing, incoming) {
|
|
|
2479
2479
|
return true;
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
|
-
const VERSION$8 = "
|
|
2482
|
+
const VERSION$8 = "b85a5621c60125d9f1644af130f67680";
|
|
2483
2483
|
function validate$8(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2484
2484
|
const v_error = (() => {
|
|
2485
2485
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2510,6 +2510,13 @@ function validate$8(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2510
2510
|
if (typeof obj_latestPublishedVersion !== 'string') {
|
|
2511
2511
|
return new TypeError('Expected "string" but received "' + typeof obj_latestPublishedVersion + '" (at "' + path_latestPublishedVersion + '")');
|
|
2512
2512
|
}
|
|
2513
|
+
if (obj.parentName !== undefined) {
|
|
2514
|
+
const obj_parentName = obj.parentName;
|
|
2515
|
+
const path_parentName = path + '.parentName';
|
|
2516
|
+
if (typeof obj_parentName !== 'string') {
|
|
2517
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentName + '" (at "' + path_parentName + '")');
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2513
2520
|
const obj_title = obj.title;
|
|
2514
2521
|
const path_title = path + '.title';
|
|
2515
2522
|
if (typeof obj_title !== 'string') {
|
|
@@ -2543,6 +2550,11 @@ const select$a = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2543
2550
|
name: 'latestPublishedVersion',
|
|
2544
2551
|
kind: 'Scalar'
|
|
2545
2552
|
},
|
|
2553
|
+
{
|
|
2554
|
+
name: 'parentName',
|
|
2555
|
+
kind: 'Scalar',
|
|
2556
|
+
required: false
|
|
2557
|
+
},
|
|
2546
2558
|
{
|
|
2547
2559
|
name: 'title',
|
|
2548
2560
|
kind: 'Scalar'
|
|
@@ -2566,6 +2578,19 @@ function equals$8(existing, incoming) {
|
|
|
2566
2578
|
if (!(existing_latestPublishedVersion === incoming_latestPublishedVersion)) {
|
|
2567
2579
|
return false;
|
|
2568
2580
|
}
|
|
2581
|
+
const existing_parentName = existing.parentName;
|
|
2582
|
+
const incoming_parentName = incoming.parentName;
|
|
2583
|
+
// if at least one of these optionals is defined
|
|
2584
|
+
if (existing_parentName !== undefined || incoming_parentName !== undefined) {
|
|
2585
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2586
|
+
// not equal
|
|
2587
|
+
if (existing_parentName === undefined || incoming_parentName === undefined) {
|
|
2588
|
+
return false;
|
|
2589
|
+
}
|
|
2590
|
+
if (!(existing_parentName === incoming_parentName)) {
|
|
2591
|
+
return false;
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2569
2594
|
const existing_title = existing.title;
|
|
2570
2595
|
const incoming_title = incoming.title;
|
|
2571
2596
|
if (!(existing_title === incoming_title)) {
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EinsteinPromptTemplateAttachmentExclusionInfoRepresentation as EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation } from './EinsteinPromptTemplateAttachmentExclusionInfoRepresentation';
|
|
2
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 = "
|
|
3
|
+
export declare const VERSION = "b85a5621c60125d9f1644af130f67680";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: EinsteinPromptTemplateAttachmentRepresentation, existing: EinsteinPromptTemplateAttachmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateAttachmentRepresentationNormalized;
|
|
@@ -22,6 +22,8 @@ export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
|
22
22
|
id: string;
|
|
23
23
|
/** ContentVersion of the latest published version of the file attachment */
|
|
24
24
|
latestPublishedVersion: string;
|
|
25
|
+
/** ParentName of the file attachment */
|
|
26
|
+
parentName?: string;
|
|
25
27
|
/** title of the attachment file */
|
|
26
28
|
title: string;
|
|
27
29
|
}
|
|
@@ -36,5 +38,6 @@ export interface EinsteinPromptTemplateAttachmentRepresentation {
|
|
|
36
38
|
fileExtension: string;
|
|
37
39
|
id: string;
|
|
38
40
|
latestPublishedVersion: string;
|
|
41
|
+
parentName?: string;
|
|
39
42
|
title: string;
|
|
40
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.0-dev18",
|
|
4
4
|
"description": "Connect family for Einstein LLM generations",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-einsteinllm.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest --config=./jest.config.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.354.0-
|
|
47
|
+
"@salesforce/lds-bindings": "^1.354.0-dev18"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
51
|
-
"@salesforce/lds-karma": "^1.354.0-
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev18",
|
|
51
|
+
"@salesforce/lds-karma": "^1.354.0-dev18"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1959,7 +1959,7 @@ function equals$b(existing, incoming) {
|
|
|
1959
1959
|
return true;
|
|
1960
1960
|
}
|
|
1961
1961
|
|
|
1962
|
-
const VERSION$a = "
|
|
1962
|
+
const VERSION$a = "b85a5621c60125d9f1644af130f67680";
|
|
1963
1963
|
function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
1964
1964
|
const v_error = (() => {
|
|
1965
1965
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1990,6 +1990,13 @@ function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
1990
1990
|
if (typeof obj_latestPublishedVersion !== 'string') {
|
|
1991
1991
|
return new TypeError('Expected "string" but received "' + typeof obj_latestPublishedVersion + '" (at "' + path_latestPublishedVersion + '")');
|
|
1992
1992
|
}
|
|
1993
|
+
if (obj.parentName !== undefined) {
|
|
1994
|
+
const obj_parentName = obj.parentName;
|
|
1995
|
+
const path_parentName = path + '.parentName';
|
|
1996
|
+
if (typeof obj_parentName !== 'string') {
|
|
1997
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentName + '" (at "' + path_parentName + '")');
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
1993
2000
|
const obj_title = obj.title;
|
|
1994
2001
|
const path_title = path + '.title';
|
|
1995
2002
|
if (typeof obj_title !== 'string') {
|
|
@@ -2023,6 +2030,11 @@ const select$e = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2023
2030
|
name: 'latestPublishedVersion',
|
|
2024
2031
|
kind: 'Scalar'
|
|
2025
2032
|
},
|
|
2033
|
+
{
|
|
2034
|
+
name: 'parentName',
|
|
2035
|
+
kind: 'Scalar',
|
|
2036
|
+
required: false
|
|
2037
|
+
},
|
|
2026
2038
|
{
|
|
2027
2039
|
name: 'title',
|
|
2028
2040
|
kind: 'Scalar'
|
|
@@ -2046,6 +2058,19 @@ function equals$a(existing, incoming) {
|
|
|
2046
2058
|
if (!(existing_latestPublishedVersion === incoming_latestPublishedVersion)) {
|
|
2047
2059
|
return false;
|
|
2048
2060
|
}
|
|
2061
|
+
const existing_parentName = existing.parentName;
|
|
2062
|
+
const incoming_parentName = incoming.parentName;
|
|
2063
|
+
// if at least one of these optionals is defined
|
|
2064
|
+
if (existing_parentName !== undefined || incoming_parentName !== undefined) {
|
|
2065
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2066
|
+
// not equal
|
|
2067
|
+
if (existing_parentName === undefined || incoming_parentName === undefined) {
|
|
2068
|
+
return false;
|
|
2069
|
+
}
|
|
2070
|
+
if (!(existing_parentName === incoming_parentName)) {
|
|
2071
|
+
return false;
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2049
2074
|
const existing_title = existing.title;
|
|
2050
2075
|
const incoming_title = incoming.title;
|
|
2051
2076
|
if (!(existing_title === incoming_title)) {
|
|
@@ -3885,4 +3910,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3885
3910
|
});
|
|
3886
3911
|
|
|
3887
3912
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative };
|
|
3888
|
-
// version: 1.354.0-
|
|
3913
|
+
// version: 1.354.0-dev18-42dc52a64b
|
package/src/raml/api.raml
CHANGED
|
@@ -500,6 +500,10 @@ types:
|
|
|
500
500
|
latestPublishedVersion:
|
|
501
501
|
description: ContentVersion of the latest published version of the file attachment
|
|
502
502
|
type: string
|
|
503
|
+
parentName:
|
|
504
|
+
description: ParentName of the file attachment
|
|
505
|
+
type: string
|
|
506
|
+
required: false # TODO Hand-rolled W-17793327
|
|
503
507
|
EinsteinPromptTemplateAttachmentExclusionInfoRepresentation:
|
|
504
508
|
description: Representation for info of file exclusion from LLM requests
|
|
505
509
|
type: object
|