@salesforce/lds-adapters-service-einstein-copilot-bot 1.449.0 → 1.451.0-dev1

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.
@@ -4485,7 +4485,7 @@ function equals$2(existing, incoming) {
4485
4485
  return true;
4486
4486
  }
4487
4487
 
4488
- const VERSION$1 = "4218ec9c1b9a06ae07be1342f42b1d36";
4488
+ const VERSION$1 = "cf68a6675dbf94d7cf47a934ca7a85d3";
4489
4489
  function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4490
4490
  const v_error = (() => {
4491
4491
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4531,6 +4531,13 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4531
4531
  if (typeof obj_isSuccess !== 'boolean') {
4532
4532
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4533
4533
  }
4534
+ if (obj.isVoiceEnabled !== undefined) {
4535
+ const obj_isVoiceEnabled = obj.isVoiceEnabled;
4536
+ const path_isVoiceEnabled = path + '.isVoiceEnabled';
4537
+ if (typeof obj_isVoiceEnabled !== 'boolean') {
4538
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isVoiceEnabled + '" (at "' + path_isVoiceEnabled + '")');
4539
+ }
4540
+ }
4534
4541
  if (obj.label !== undefined) {
4535
4542
  const obj_label = obj.label;
4536
4543
  const path_label = path + '.label';
@@ -4608,6 +4615,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
4608
4615
  name: 'isSuccess',
4609
4616
  kind: 'Scalar'
4610
4617
  },
4618
+ {
4619
+ name: 'isVoiceEnabled',
4620
+ kind: 'Scalar',
4621
+ required: false
4622
+ },
4611
4623
  {
4612
4624
  name: 'label',
4613
4625
  kind: 'Scalar',
@@ -4652,6 +4664,19 @@ function equals$1(existing, incoming) {
4652
4664
  if (!(existing_isSuccess === incoming_isSuccess)) {
4653
4665
  return false;
4654
4666
  }
4667
+ const existing_isVoiceEnabled = existing.isVoiceEnabled;
4668
+ const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
4669
+ // if at least one of these optionals is defined
4670
+ if (existing_isVoiceEnabled !== undefined || incoming_isVoiceEnabled !== undefined) {
4671
+ // if one of these is not defined we know the other is defined and therefore
4672
+ // not equal
4673
+ if (existing_isVoiceEnabled === undefined || incoming_isVoiceEnabled === undefined) {
4674
+ return false;
4675
+ }
4676
+ if (!(existing_isVoiceEnabled === incoming_isVoiceEnabled)) {
4677
+ return false;
4678
+ }
4679
+ }
4655
4680
  const existing_stopRecPrompts = existing.stopRecPrompts;
4656
4681
  const incoming_stopRecPrompts = incoming.stopRecPrompts;
4657
4682
  // 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 = "4218ec9c1b9a06ae07be1342f42b1d36";
3
+ export declare const VERSION = "cf68a6675dbf94d7cf47a934ca7a85d3";
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;
@@ -27,6 +27,8 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
27
27
  isDefault?: boolean;
28
28
  /** Success indicator of the get operation. */
29
29
  isSuccess: boolean;
30
+ /** Indicates whether the Agent is voice enabled for ACC and mobile */
31
+ isVoiceEnabled?: boolean;
30
32
  /** display label of the agent */
31
33
  label?: string;
32
34
  /** List of EmbeddedMessaging channels provisioned for this Agent. */
@@ -49,6 +51,7 @@ export interface AgentforceAgentBotInfoRepresentation {
49
51
  errorMessage?: string;
50
52
  isDefault?: boolean;
51
53
  isSuccess: boolean;
54
+ isVoiceEnabled?: boolean;
52
55
  label?: string;
53
56
  messagingChannels?: Array<MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation>;
54
57
  stopRecPrompts?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.449.0",
3
+ "version": "1.451.0-dev1",
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.449.0"
43
+ "@salesforce/lds-bindings": "^1.451.0-dev1"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.449.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.451.0-dev1"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -334,7 +334,7 @@ function equals$k(existing, incoming) {
334
334
  return true;
335
335
  }
336
336
 
337
- const VERSION$j = "4218ec9c1b9a06ae07be1342f42b1d36";
337
+ const VERSION$j = "cf68a6675dbf94d7cf47a934ca7a85d3";
338
338
  function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
339
339
  const v_error = (() => {
340
340
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -380,6 +380,13 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
380
380
  if (typeof obj_isSuccess !== 'boolean') {
381
381
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
382
382
  }
383
+ if (obj.isVoiceEnabled !== undefined) {
384
+ const obj_isVoiceEnabled = obj.isVoiceEnabled;
385
+ const path_isVoiceEnabled = path + '.isVoiceEnabled';
386
+ if (typeof obj_isVoiceEnabled !== 'boolean') {
387
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isVoiceEnabled + '" (at "' + path_isVoiceEnabled + '")');
388
+ }
389
+ }
383
390
  if (obj.label !== undefined) {
384
391
  const obj_label = obj.label;
385
392
  const path_label = path + '.label';
@@ -457,6 +464,11 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
457
464
  name: 'isSuccess',
458
465
  kind: 'Scalar'
459
466
  },
467
+ {
468
+ name: 'isVoiceEnabled',
469
+ kind: 'Scalar',
470
+ required: false
471
+ },
460
472
  {
461
473
  name: 'label',
462
474
  kind: 'Scalar',
@@ -501,6 +513,19 @@ function equals$j(existing, incoming) {
501
513
  if (!(existing_isSuccess === incoming_isSuccess)) {
502
514
  return false;
503
515
  }
516
+ const existing_isVoiceEnabled = existing.isVoiceEnabled;
517
+ const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
518
+ // if at least one of these optionals is defined
519
+ if (existing_isVoiceEnabled !== undefined || incoming_isVoiceEnabled !== undefined) {
520
+ // if one of these is not defined we know the other is defined and therefore
521
+ // not equal
522
+ if (existing_isVoiceEnabled === undefined || incoming_isVoiceEnabled === undefined) {
523
+ return false;
524
+ }
525
+ if (!(existing_isVoiceEnabled === incoming_isVoiceEnabled)) {
526
+ return false;
527
+ }
528
+ }
504
529
  const existing_stopRecPrompts = existing.stopRecPrompts;
505
530
  const incoming_stopRecPrompts = incoming.stopRecPrompts;
506
531
  // if at least one of these optionals is defined
@@ -5296,4 +5321,4 @@ withDefaultLuvio((luvio) => {
5296
5321
  });
5297
5322
 
5298
5323
  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 };
5299
- // version: 1.449.0-7b415dc950
5324
+ // version: 1.451.0-dev1-70d3966695
package/src/raml/api.raml CHANGED
@@ -640,6 +640,10 @@ types:
640
640
  description: Indicates whether the Agent will show Welcome prompts
641
641
  type: boolean
642
642
  required: false
643
+ isVoiceEnabled:
644
+ description: Indicates whether the Agent is voice enabled for ACC and mobile
645
+ type: boolean
646
+ required: false
643
647
  messagingChannels:
644
648
  description: List of EmbeddedMessaging channels provisioned for this Agent.
645
649
  type: array