@salesforce/lds-adapters-service-einstein-copilot-bot 1.451.0-dev8 → 1.451.0-dev9

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.
@@ -4510,12 +4510,19 @@ function equals$2(existing, incoming) {
4510
4510
  return true;
4511
4511
  }
4512
4512
 
4513
- const VERSION$1 = "2d4ada37263c79110685209e1033f411";
4513
+ const VERSION$1 = "3585a67e9604dbc1415da254caeadf75";
4514
4514
  function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4515
4515
  const v_error = (() => {
4516
4516
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4517
4517
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4518
4518
  }
4519
+ if (obj.agentTemplate !== undefined) {
4520
+ const obj_agentTemplate = obj.agentTemplate;
4521
+ const path_agentTemplate = path + '.agentTemplate';
4522
+ if (typeof obj_agentTemplate !== 'string') {
4523
+ return new TypeError('Expected "string" but received "' + typeof obj_agentTemplate + '" (at "' + path_agentTemplate + '")');
4524
+ }
4525
+ }
4519
4526
  if (obj.agentType !== undefined) {
4520
4527
  const obj_agentType = obj.agentType;
4521
4528
  const path_agentType = path + '.agentType';
@@ -4618,6 +4625,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
4618
4625
  version: VERSION$1,
4619
4626
  private: [],
4620
4627
  selections: [
4628
+ {
4629
+ name: 'agentTemplate',
4630
+ kind: 'Scalar',
4631
+ required: false
4632
+ },
4621
4633
  {
4622
4634
  name: 'agentType',
4623
4635
  kind: 'Scalar',
@@ -4753,6 +4765,19 @@ function equals$1(existing, incoming) {
4753
4765
  return false;
4754
4766
  }
4755
4767
  }
4768
+ const existing_agentTemplate = existing.agentTemplate;
4769
+ const incoming_agentTemplate = incoming.agentTemplate;
4770
+ // if at least one of these optionals is defined
4771
+ if (existing_agentTemplate !== undefined || incoming_agentTemplate !== undefined) {
4772
+ // if one of these is not defined we know the other is defined and therefore
4773
+ // not equal
4774
+ if (existing_agentTemplate === undefined || incoming_agentTemplate === undefined) {
4775
+ return false;
4776
+ }
4777
+ if (!(existing_agentTemplate === incoming_agentTemplate)) {
4778
+ return false;
4779
+ }
4780
+ }
4756
4781
  const existing_agentType = existing.agentType;
4757
4782
  const incoming_agentType = incoming.agentType;
4758
4783
  // if at least one of these optionals is defined
@@ -1,6 +1,6 @@
1
1
  import { MessagingChannelInfoRepresentation as MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation } from './MessagingChannelInfoRepresentation';
2
2
  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';
3
- export declare const VERSION = "2d4ada37263c79110685209e1033f411";
3
+ export declare const VERSION = "3585a67e9604dbc1415da254caeadf75";
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: AgentforceAgentBotInfoRepresentation, existing: AgentforceAgentBotInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentforceAgentBotInfoRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface AgentforceAgentBotInfoRepresentationNormalized {
18
+ /** The AgentTemplate the Agentforce Agent was created from. */
19
+ agentTemplate?: string;
18
20
  /** internal agent type api name */
19
21
  agentType?: string;
20
22
  /** ID of the internal Copilot bot ID - used in the URL when starting agent sessions */
@@ -47,6 +49,7 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
47
49
  * (none)
48
50
  */
49
51
  export interface AgentforceAgentBotInfoRepresentation {
52
+ agentTemplate?: string;
50
53
  agentType?: string;
51
54
  botId?: string;
52
55
  description?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.451.0-dev8",
3
+ "version": "1.451.0-dev9",
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.451.0-dev8"
43
+ "@salesforce/lds-bindings": "^1.451.0-dev9"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.451.0-dev8"
46
+ "@salesforce/lds-compiler-plugins": "^1.451.0-dev9"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -359,12 +359,19 @@ function equals$k(existing, incoming) {
359
359
  return true;
360
360
  }
361
361
 
362
- const VERSION$j = "2d4ada37263c79110685209e1033f411";
362
+ const VERSION$j = "3585a67e9604dbc1415da254caeadf75";
363
363
  function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
364
364
  const v_error = (() => {
365
365
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
366
366
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
367
367
  }
368
+ if (obj.agentTemplate !== undefined) {
369
+ const obj_agentTemplate = obj.agentTemplate;
370
+ const path_agentTemplate = path + '.agentTemplate';
371
+ if (typeof obj_agentTemplate !== 'string') {
372
+ return new TypeError('Expected "string" but received "' + typeof obj_agentTemplate + '" (at "' + path_agentTemplate + '")');
373
+ }
374
+ }
368
375
  if (obj.agentType !== undefined) {
369
376
  const obj_agentType = obj.agentType;
370
377
  const path_agentType = path + '.agentType';
@@ -467,6 +474,11 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
467
474
  version: VERSION$j,
468
475
  private: [],
469
476
  selections: [
477
+ {
478
+ name: 'agentTemplate',
479
+ kind: 'Scalar',
480
+ required: false
481
+ },
470
482
  {
471
483
  name: 'agentType',
472
484
  kind: 'Scalar',
@@ -602,6 +614,19 @@ function equals$j(existing, incoming) {
602
614
  return false;
603
615
  }
604
616
  }
617
+ const existing_agentTemplate = existing.agentTemplate;
618
+ const incoming_agentTemplate = incoming.agentTemplate;
619
+ // if at least one of these optionals is defined
620
+ if (existing_agentTemplate !== undefined || incoming_agentTemplate !== undefined) {
621
+ // if one of these is not defined we know the other is defined and therefore
622
+ // not equal
623
+ if (existing_agentTemplate === undefined || incoming_agentTemplate === undefined) {
624
+ return false;
625
+ }
626
+ if (!(existing_agentTemplate === incoming_agentTemplate)) {
627
+ return false;
628
+ }
629
+ }
605
630
  const existing_agentType = existing.agentType;
606
631
  const incoming_agentType = incoming.agentType;
607
632
  // if at least one of these optionals is defined
@@ -5371,4 +5396,4 @@ withDefaultLuvio((luvio) => {
5371
5396
  });
5372
5397
 
5373
5398
  export { getAgents, getAgents_imperative, getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, getRecommendedUtterances, getRecommendedUtterances_imperative, getWelcomeUtterances, getWelcomeUtterances_imperative, sendMessage, submitFeedback };
5374
- // version: 1.451.0-dev8-96df37bcf3
5399
+ // version: 1.451.0-dev9-853b00a2ff
package/src/raml/api.raml CHANGED
@@ -616,6 +616,10 @@ types:
616
616
  description: ID of the internal Copilot bot ID - used in the URL when starting agent sessions
617
617
  type: string
618
618
  required: false
619
+ agentTemplate:
620
+ description: The AgentTemplate the Agentforce Agent was created from.
621
+ type: string
622
+ required: false
619
623
  label:
620
624
  description: display label of the agent
621
625
  type: string