@salesforce/lds-adapters-service-einstein-copilot-bot 1.288.0 → 1.290.0

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.
@@ -265,7 +265,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
265
265
  function createResourceRequest$3(config) {
266
266
  const headers = {};
267
267
  return {
268
- baseUri: '/services/data/v61.0',
268
+ baseUri: '/services/data/v62.0',
269
269
  basePath: '/connect/conversation-runtime-proxy',
270
270
  method: 'get',
271
271
  body: null,
@@ -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
  })();
@@ -1480,7 +1485,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1480
1485
  function createResourceRequest$2(config) {
1481
1486
  const headers = {};
1482
1487
  return {
1483
- baseUri: '/services/data/v61.0',
1488
+ baseUri: '/services/data/v62.0',
1484
1489
  basePath: '/connect/conversation-runtime-proxy',
1485
1490
  method: 'post',
1486
1491
  body: config.body,
@@ -1850,7 +1855,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
1850
1855
  function createResourceRequest$1(config) {
1851
1856
  const headers = {};
1852
1857
  return {
1853
- baseUri: '/services/data/v61.0',
1858
+ baseUri: '/services/data/v62.0',
1854
1859
  basePath: '/connect/recommended-plan-templates/' + config.urlParams.pageType + '/' + config.urlParams.objectType + '',
1855
1860
  method: 'get',
1856
1861
  body: null,
@@ -2520,7 +2525,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
2520
2525
  function createResourceRequest(config) {
2521
2526
  const headers = {};
2522
2527
  return {
2523
- baseUri: '/services/data/v61.0',
2528
+ baseUri: '/services/data/v62.0',
2524
2529
  basePath: '/connect/recommended-actions',
2525
2530
  method: 'get',
2526
2531
  body: null,
@@ -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.288.0",
3
+ "version": "1.290.0",
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.288.0"
43
+ "@salesforce/lds-bindings": "^1.290.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.288.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.290.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -275,7 +275,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
275
275
  function createResourceRequest$3(config) {
276
276
  const headers = {};
277
277
  return {
278
- baseUri: '/services/data/v61.0',
278
+ baseUri: '/services/data/v62.0',
279
279
  basePath: '/connect/conversation-runtime-proxy',
280
280
  method: 'get',
281
281
  body: null,
@@ -941,7 +941,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
941
941
  function createResourceRequest$2(config) {
942
942
  const headers = {};
943
943
  return {
944
- baseUri: '/services/data/v61.0',
944
+ baseUri: '/services/data/v62.0',
945
945
  basePath: '/connect/recommended-actions',
946
946
  method: 'get',
947
947
  body: null,
@@ -1311,7 +1311,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
1311
1311
  function createResourceRequest$1(config) {
1312
1312
  const headers = {};
1313
1313
  return {
1314
- baseUri: '/services/data/v61.0',
1314
+ baseUri: '/services/data/v62.0',
1315
1315
  basePath: '/connect/recommended-plan-templates/' + config.urlParams.pageType + '/' + config.urlParams.objectType + '',
1316
1316
  method: 'get',
1317
1317
  body: null,
@@ -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
  })();
@@ -2530,7 +2535,7 @@ function ingestSuccess(luvio, resourceParams, response) {
2530
2535
  function createResourceRequest(config) {
2531
2536
  const headers = {};
2532
2537
  return {
2533
- baseUri: '/services/data/v61.0',
2538
+ baseUri: '/services/data/v62.0',
2534
2539
  basePath: '/connect/conversation-runtime-proxy',
2535
2540
  method: 'post',
2536
2541
  body: config.body,
@@ -2688,4 +2693,4 @@ withDefaultLuvio((luvio) => {
2688
2693
  });
2689
2694
 
2690
2695
  export { getBotId, getBotId_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage };
2691
- // version: 1.288.0-a5619da7d
2696
+ // version: 1.290.0-e2ccd0161
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '60.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v61.0
9
+ baseUri: /services/data/v62.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -332,9 +332,12 @@ types:
332
332
  name:
333
333
  description: Name of the variable
334
334
  type: string
335
+ type:
336
+ description: Type of the variable
337
+ type: string
335
338
  value:
336
339
  description: Value of the variable
337
- type: string
340
+ type: any
338
341
  required: false
339
342
  PlanTemplateRepresentation:
340
343
  description: Represents a plan template which can be executed by a Copilot client.