@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev23 → 1.266.0-dev25

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.
@@ -466,11 +466,16 @@ function validate$8(obj, path = 'VariableRepresentation') {
466
466
  if (typeof obj_name !== 'string') {
467
467
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
468
468
  }
469
+ const obj_type = obj.type;
470
+ const path_type = path + '.type';
471
+ if (typeof obj_type !== 'string') {
472
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
473
+ }
469
474
  if (obj.value !== undefined) {
470
475
  const obj_value = obj.value;
471
476
  const path_value = path + '.value';
472
- if (typeof obj_value !== 'string') {
473
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
477
+ if (obj_value === undefined) {
478
+ return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
474
479
  }
475
480
  }
476
481
  })();
@@ -1,6 +1,6 @@
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
2
  export declare const TTL = 30000;
3
- export declare const VERSION = "b26ba8c95ca250aaeef6b6d3dfff8b40";
3
+ export declare const VERSION = "8191aab1c05f40fcbe0348ce5e5b5406";
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: VariableRepresentation, existing: VariableRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): VariableRepresentationNormalized;
@@ -17,8 +17,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  export interface VariableRepresentationNormalized {
18
18
  /** Name of the variable */
19
19
  name: string;
20
+ /** Type of the variable */
21
+ type: string;
20
22
  /** Value of the variable */
21
- value?: string;
23
+ value?: unknown;
22
24
  }
23
25
  /**
24
26
  * Represents a single variable for an operation to set variables
@@ -28,5 +30,6 @@ export interface VariableRepresentationNormalized {
28
30
  */
29
31
  export interface VariableRepresentation {
30
32
  name: string;
31
- value?: string;
33
+ type: string;
34
+ value?: unknown;
32
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.266.0-dev23",
3
+ "version": "1.266.0-dev25",
4
4
  "description": "Einstein Copilot Bot API Family",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einstein-copilot-bot.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.266.0-dev23"
43
+ "@salesforce/lds-bindings": "^1.266.0-dev25"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.266.0-dev23"
46
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev25"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1516,11 +1516,16 @@ function validate$4(obj, path = 'VariableRepresentation') {
1516
1516
  if (typeof obj_name !== 'string') {
1517
1517
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1518
1518
  }
1519
+ const obj_type = obj.type;
1520
+ const path_type = path + '.type';
1521
+ if (typeof obj_type !== 'string') {
1522
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1523
+ }
1519
1524
  if (obj.value !== undefined) {
1520
1525
  const obj_value = obj.value;
1521
1526
  const path_value = path + '.value';
1522
- if (typeof obj_value !== 'string') {
1523
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1527
+ if (obj_value === undefined) {
1528
+ return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1524
1529
  }
1525
1530
  }
1526
1531
  })();
@@ -2734,4 +2739,4 @@ withDefaultLuvio((luvio) => {
2734
2739
  });
2735
2740
 
2736
2741
  export { getBotId, getBotId_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage };
2737
- // version: 1.266.0-dev23-ee4a925f1
2742
+ // version: 1.266.0-dev25-12da0454b
package/src/raml/api.raml CHANGED
@@ -336,9 +336,12 @@ types:
336
336
  name:
337
337
  description: Name of the variable
338
338
  type: string
339
+ type:
340
+ description: Type of the variable
341
+ type: string
339
342
  value:
340
343
  description: Value of the variable
341
- type: string
344
+ type: any
342
345
  required: false
343
346
  PlanTemplateRepresentation:
344
347
  description: Represents a plan template which can be executed by a Copilot client.