@salesforce/lds-adapters-service-einsteinllm 1.332.0-dev13 → 1.332.0-dev14
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.
|
@@ -1891,7 +1891,7 @@ function validate$d(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
const TTL$3 = 100;
|
|
1894
|
-
const VERSION$a = "
|
|
1894
|
+
const VERSION$a = "2d1628544b54fc1701aa9b4eff05127b";
|
|
1895
1895
|
function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
1896
1896
|
const v_error = (() => {
|
|
1897
1897
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1915,11 +1915,18 @@ function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
1915
1915
|
const key = obj_childRelationships_keys[i];
|
|
1916
1916
|
const obj_childRelationships_prop = obj_childRelationships[key];
|
|
1917
1917
|
const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1918
|
+
if (!ArrayIsArray(obj_childRelationships_prop)) {
|
|
1919
|
+
return new TypeError('Expected "array" but received "' + typeof obj_childRelationships_prop + '" (at "' + path_childRelationships_prop + '")');
|
|
1920
|
+
}
|
|
1921
|
+
for (let i = 0; i < obj_childRelationships_prop.length; i++) {
|
|
1922
|
+
const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
|
|
1923
|
+
const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
|
|
1924
|
+
const referencepath_childRelationships_prop_itemValidationError = validate$c(obj_childRelationships_prop_item, path_childRelationships_prop_item);
|
|
1925
|
+
if (referencepath_childRelationships_prop_itemValidationError !== null) {
|
|
1926
|
+
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
|
|
1927
|
+
message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1928
|
+
return new TypeError(message);
|
|
1929
|
+
}
|
|
1923
1930
|
}
|
|
1924
1931
|
}
|
|
1925
1932
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EinsteinPromptRecordFieldRepresentation as EinsteinPromptRecordFieldRepresentation_EinsteinPromptRecordFieldRepresentation } from './EinsteinPromptRecordFieldRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 100;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "2d1628544b54fc1701aa9b4eff05127b";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: EinsteinPromptRecordRepresentation, existing: EinsteinPromptRecordRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptRecordRepresentationNormalized;
|
|
@@ -20,7 +20,7 @@ export interface EinsteinPromptRecordRepresentationNormalized {
|
|
|
20
20
|
apiName?: string;
|
|
21
21
|
/** Prompt Record ChildRelationships */
|
|
22
22
|
childRelationships?: {
|
|
23
|
-
[key: string]:
|
|
23
|
+
[key: string]: Array<$64$luvio_engine_StoreLink>;
|
|
24
24
|
};
|
|
25
25
|
/** GenAiPromptTemplate Fields */
|
|
26
26
|
fields?: {
|
|
@@ -38,7 +38,7 @@ export interface EinsteinPromptRecordRepresentationNormalized {
|
|
|
38
38
|
export interface EinsteinPromptRecordRepresentation {
|
|
39
39
|
apiName?: string;
|
|
40
40
|
childRelationships?: {
|
|
41
|
-
[key: string]: EinsteinPromptRecordRepresentation
|
|
41
|
+
[key: string]: Array<EinsteinPromptRecordRepresentation>;
|
|
42
42
|
};
|
|
43
43
|
fields?: {
|
|
44
44
|
[key: string]: EinsteinPromptRecordFieldRepresentation_EinsteinPromptRecordFieldRepresentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev14",
|
|
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.332.0-
|
|
47
|
+
"@salesforce/lds-bindings": "^1.332.0-dev14"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
51
|
-
"@salesforce/lds-karma": "^1.332.0-
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev14",
|
|
51
|
+
"@salesforce/lds-karma": "^1.332.0-dev14"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -3267,7 +3267,7 @@ function validate$2(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
|
3267
3267
|
}
|
|
3268
3268
|
|
|
3269
3269
|
const TTL$1 = 100;
|
|
3270
|
-
const VERSION$1 = "
|
|
3270
|
+
const VERSION$1 = "2d1628544b54fc1701aa9b4eff05127b";
|
|
3271
3271
|
function validate$1(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
3272
3272
|
const v_error = (() => {
|
|
3273
3273
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3291,11 +3291,18 @@ function validate$1(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
3291
3291
|
const key = obj_childRelationships_keys[i];
|
|
3292
3292
|
const obj_childRelationships_prop = obj_childRelationships[key];
|
|
3293
3293
|
const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3294
|
+
if (!ArrayIsArray(obj_childRelationships_prop)) {
|
|
3295
|
+
return new TypeError('Expected "array" but received "' + typeof obj_childRelationships_prop + '" (at "' + path_childRelationships_prop + '")');
|
|
3296
|
+
}
|
|
3297
|
+
for (let i = 0; i < obj_childRelationships_prop.length; i++) {
|
|
3298
|
+
const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
|
|
3299
|
+
const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
|
|
3300
|
+
const referencepath_childRelationships_prop_itemValidationError = validate$1(obj_childRelationships_prop_item, path_childRelationships_prop_item);
|
|
3301
|
+
if (referencepath_childRelationships_prop_itemValidationError !== null) {
|
|
3302
|
+
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
|
|
3303
|
+
message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3304
|
+
return new TypeError(message);
|
|
3305
|
+
}
|
|
3299
3306
|
}
|
|
3300
3307
|
}
|
|
3301
3308
|
}
|
|
@@ -3798,4 +3805,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3798
3805
|
});
|
|
3799
3806
|
|
|
3800
3807
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative };
|
|
3801
|
-
// version: 1.332.0-
|
|
3808
|
+
// version: 1.332.0-dev14-759af80034
|
package/src/raml/api.raml
CHANGED