@salesforce/lds-adapters-service-einsteinllm 1.380.0-dev20 → 1.380.0-dev22

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.
@@ -1880,19 +1880,36 @@ function validate$q(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1880
1880
  }
1881
1881
  let obj_value_union3 = null;
1882
1882
  const obj_value_union3_error = (() => {
1883
- if (obj_value !== null) {
1884
- return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1883
+ if (!ArrayIsArray(obj_value)) {
1884
+ return new TypeError('Expected "array" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1885
+ }
1886
+ for (let i = 0; i < obj_value.length; i++) {
1887
+ const obj_value_item = obj_value[i];
1888
+ const path_value_item = path_value + '[' + i + ']';
1889
+ if (typeof obj_value_item !== 'string') {
1890
+ return new TypeError('Expected "string" but received "' + typeof obj_value_item + '" (at "' + path_value_item + '")');
1891
+ }
1885
1892
  }
1886
1893
  })();
1887
1894
  if (obj_value_union3_error != null) {
1888
1895
  obj_value_union3 = obj_value_union3_error.message;
1889
1896
  }
1890
- if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3) {
1897
+ let obj_value_union4 = null;
1898
+ const obj_value_union4_error = (() => {
1899
+ if (obj_value !== null) {
1900
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1901
+ }
1902
+ })();
1903
+ if (obj_value_union4_error != null) {
1904
+ obj_value_union4 = obj_value_union4_error.message;
1905
+ }
1906
+ if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3 && obj_value_union4) {
1891
1907
  let message = 'Object doesn\'t match union (at "' + path_value + '")';
1892
1908
  message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
1893
1909
  message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
1894
1910
  message += '\n' + obj_value_union2.split('\n').map((line) => '\t' + line).join('\n');
1895
1911
  message += '\n' + obj_value_union3.split('\n').map((line) => '\t' + line).join('\n');
1912
+ message += '\n' + obj_value_union4.split('\n').map((line) => '\t' + line).join('\n');
1896
1913
  return new TypeError(message);
1897
1914
  }
1898
1915
  })();
@@ -1,5 +1,5 @@
1
1
  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';
2
- export declare const VERSION = "09e69abc8abc6af87c364232c2ab6c8e";
2
+ export declare const VERSION = "c4993d997b5852ad9d11bd2a720192b3";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: EinsteinPromptRecordFieldRepresentation, existing: EinsteinPromptRecordFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptRecordFieldRepresentationNormalized;
@@ -17,7 +17,7 @@ export interface EinsteinPromptRecordFieldRepresentationNormalized {
17
17
  /** The displayable value for a field */
18
18
  displayValue: string;
19
19
  /** The value of a field in its raw data form. */
20
- value: boolean | number | string | null;
20
+ value: boolean | number | string | Array<string> | null;
21
21
  }
22
22
  /**
23
23
  * Contains both the raw and displayable field values for a field in a Record.
@@ -27,5 +27,5 @@ export interface EinsteinPromptRecordFieldRepresentationNormalized {
27
27
  */
28
28
  export interface EinsteinPromptRecordFieldRepresentation {
29
29
  displayValue: string;
30
- value: boolean | number | string | null;
30
+ value: boolean | number | string | Array<string> | null;
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.380.0-dev20",
3
+ "version": "1.380.0-dev22",
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.380.0-dev20"
47
+ "@salesforce/lds-bindings": "^1.380.0-dev22"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.380.0-dev20",
51
- "@salesforce/lds-karma": "^1.380.0-dev20"
50
+ "@salesforce/lds-compiler-plugins": "^1.380.0-dev22",
51
+ "@salesforce/lds-karma": "^1.380.0-dev22"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -5310,19 +5310,36 @@ function validate$5(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
5310
5310
  }
5311
5311
  let obj_value_union3 = null;
5312
5312
  const obj_value_union3_error = (() => {
5313
- if (obj_value !== null) {
5314
- return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
5313
+ if (!ArrayIsArray(obj_value)) {
5314
+ return new TypeError('Expected "array" but received "' + typeof obj_value + '" (at "' + path_value + '")');
5315
+ }
5316
+ for (let i = 0; i < obj_value.length; i++) {
5317
+ const obj_value_item = obj_value[i];
5318
+ const path_value_item = path_value + '[' + i + ']';
5319
+ if (typeof obj_value_item !== 'string') {
5320
+ return new TypeError('Expected "string" but received "' + typeof obj_value_item + '" (at "' + path_value_item + '")');
5321
+ }
5315
5322
  }
5316
5323
  })();
5317
5324
  if (obj_value_union3_error != null) {
5318
5325
  obj_value_union3 = obj_value_union3_error.message;
5319
5326
  }
5320
- if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3) {
5327
+ let obj_value_union4 = null;
5328
+ const obj_value_union4_error = (() => {
5329
+ if (obj_value !== null) {
5330
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
5331
+ }
5332
+ })();
5333
+ if (obj_value_union4_error != null) {
5334
+ obj_value_union4 = obj_value_union4_error.message;
5335
+ }
5336
+ if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3 && obj_value_union4) {
5321
5337
  let message = 'Object doesn\'t match union (at "' + path_value + '")';
5322
5338
  message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
5323
5339
  message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
5324
5340
  message += '\n' + obj_value_union2.split('\n').map((line) => '\t' + line).join('\n');
5325
5341
  message += '\n' + obj_value_union3.split('\n').map((line) => '\t' + line).join('\n');
5342
+ message += '\n' + obj_value_union4.split('\n').map((line) => '\t' + line).join('\n');
5326
5343
  return new TypeError(message);
5327
5344
  }
5328
5345
  })();
@@ -6905,4 +6922,4 @@ withDefaultLuvio((luvio) => {
6905
6922
  });
6906
6923
 
6907
6924
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
6908
- // version: 1.380.0-dev20-504301d774
6925
+ // version: 1.380.0-dev22-411853e059
package/src/raml/api.raml CHANGED
@@ -356,7 +356,7 @@ types:
356
356
  type: string
357
357
  value:
358
358
  description: The value of a field in its raw data form.
359
- type: boolean | integer | string | nil
359
+ type: boolean | integer | string | string[] | nil # TODO Hand-rolled W-20175352
360
360
  EinsteinPromptRecordInputRepresentation:
361
361
  description: Input representation for creating a prompt template
362
362
  type: object