@salesforce/lds-adapters-service-einstein-copilot-bot 1.308.0-dev1 → 1.308.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.
@@ -2599,7 +2599,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2599
2599
  return v_error === undefined ? null : v_error;
2600
2600
  }
2601
2601
 
2602
- const VERSION$3 = "f3b8da658dda1468e0357f1fad159c79";
2602
+ const VERSION$3 = "38e904794d03177700e02a0dbd234d01";
2603
2603
  function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2604
2604
  const v_error = (() => {
2605
2605
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2615,6 +2615,13 @@ function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2615
2615
  if (obj_blockRenderers === undefined) {
2616
2616
  return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
2617
2617
  }
2618
+ if (obj.descriptor !== undefined) {
2619
+ const obj_descriptor = obj.descriptor;
2620
+ const path_descriptor = path + '.descriptor';
2621
+ if (typeof obj_descriptor !== 'string') {
2622
+ return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
2623
+ }
2624
+ }
2618
2625
  })();
2619
2626
  return v_error === undefined ? null : v_error;
2620
2627
  }
@@ -2633,11 +2640,29 @@ const select$5 = function FollowUpActionsRepresentationSelect() {
2633
2640
  name: 'blockRenderers',
2634
2641
  kind: 'Object',
2635
2642
  // any
2643
+ },
2644
+ {
2645
+ name: 'descriptor',
2646
+ kind: 'Scalar',
2647
+ required: false
2636
2648
  }
2637
2649
  ]
2638
2650
  };
2639
2651
  };
2640
2652
  function equals$3(existing, incoming) {
2653
+ const existing_descriptor = existing.descriptor;
2654
+ const incoming_descriptor = incoming.descriptor;
2655
+ // if at least one of these optionals is defined
2656
+ if (existing_descriptor !== undefined || incoming_descriptor !== undefined) {
2657
+ // if one of these is not defined we know the other is defined and therefore
2658
+ // not equal
2659
+ if (existing_descriptor === undefined || incoming_descriptor === undefined) {
2660
+ return false;
2661
+ }
2662
+ if (!(existing_descriptor === incoming_descriptor)) {
2663
+ return false;
2664
+ }
2665
+ }
2641
2666
  const existing_actions = existing.actions;
2642
2667
  const incoming_actions = incoming.actions;
2643
2668
  if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
@@ -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 = "f3b8da658dda1468e0357f1fad159c79";
2
+ export declare const VERSION = "38e904794d03177700e02a0dbd234d01";
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: FollowUpActionsRepresentation, existing: FollowUpActionsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FollowUpActionsRepresentationNormalized;
@@ -16,6 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface FollowUpActionsRepresentationNormalized {
17
17
  actions: unknown;
18
18
  blockRenderers: unknown;
19
+ descriptor?: string;
19
20
  }
20
21
  /**
21
22
  * basic output item type of /connect/follow-up-actions endpoint
@@ -26,4 +27,5 @@ export interface FollowUpActionsRepresentationNormalized {
26
27
  export interface FollowUpActionsRepresentation {
27
28
  actions: unknown;
28
29
  blockRenderers: unknown;
30
+ descriptor?: string;
29
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.308.0-dev1",
3
+ "version": "1.308.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.308.0-dev1"
43
+ "@salesforce/lds-bindings": "^1.308.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.308.0-dev1"
46
+ "@salesforce/lds-compiler-plugins": "^1.308.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -810,7 +810,7 @@ function validate$d(obj, path = 'FollowUpActionsInputRepresentation') {
810
810
  return v_error === undefined ? null : v_error;
811
811
  }
812
812
 
813
- const VERSION$b = "f3b8da658dda1468e0357f1fad159c79";
813
+ const VERSION$b = "38e904794d03177700e02a0dbd234d01";
814
814
  function validate$c(obj, path = 'FollowUpActionsRepresentation') {
815
815
  const v_error = (() => {
816
816
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -826,6 +826,13 @@ function validate$c(obj, path = 'FollowUpActionsRepresentation') {
826
826
  if (obj_blockRenderers === undefined) {
827
827
  return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
828
828
  }
829
+ if (obj.descriptor !== undefined) {
830
+ const obj_descriptor = obj.descriptor;
831
+ const path_descriptor = path + '.descriptor';
832
+ if (typeof obj_descriptor !== 'string') {
833
+ return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
834
+ }
835
+ }
829
836
  })();
830
837
  return v_error === undefined ? null : v_error;
831
838
  }
@@ -844,11 +851,29 @@ const select$g = function FollowUpActionsRepresentationSelect() {
844
851
  name: 'blockRenderers',
845
852
  kind: 'Object',
846
853
  // any
854
+ },
855
+ {
856
+ name: 'descriptor',
857
+ kind: 'Scalar',
858
+ required: false
847
859
  }
848
860
  ]
849
861
  };
850
862
  };
851
863
  function equals$b(existing, incoming) {
864
+ const existing_descriptor = existing.descriptor;
865
+ const incoming_descriptor = incoming.descriptor;
866
+ // if at least one of these optionals is defined
867
+ if (existing_descriptor !== undefined || incoming_descriptor !== undefined) {
868
+ // if one of these is not defined we know the other is defined and therefore
869
+ // not equal
870
+ if (existing_descriptor === undefined || incoming_descriptor === undefined) {
871
+ return false;
872
+ }
873
+ if (!(existing_descriptor === incoming_descriptor)) {
874
+ return false;
875
+ }
876
+ }
852
877
  const existing_actions = existing.actions;
853
878
  const incoming_actions = incoming.actions;
854
879
  if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
@@ -3688,4 +3713,4 @@ withDefaultLuvio((luvio) => {
3688
3713
  });
3689
3714
 
3690
3715
  export { getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage, submitFeedback };
3691
- // version: 1.308.0-dev1-36d38ba652
3716
+ // version: 1.308.0-e148a73d6a
package/src/raml/api.raml CHANGED
@@ -369,6 +369,9 @@ types:
369
369
  description: basic output item type of /connect/follow-up-actions endpoint
370
370
  type: object
371
371
  properties:
372
+ descriptor:
373
+ type: string
374
+ required: false
372
375
  actions:
373
376
  type: any
374
377
  blockRenderers: