@salesforce/lds-adapters-service-einstein-copilot-bot 1.428.0-dev21 → 1.428.0-dev23

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.
@@ -4273,7 +4273,7 @@ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBo
4273
4273
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4274
4274
  };
4275
4275
 
4276
- const VERSION$1 = "fffa53e7ae99db49035d39bf934a0dfb";
4276
+ const VERSION$1 = "1530b465c01fcfed2f061739d41ba6c4";
4277
4277
  function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4278
4278
  const v_error = (() => {
4279
4279
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4319,6 +4319,13 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4319
4319
  if (typeof obj_isSuccess !== 'boolean') {
4320
4320
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4321
4321
  }
4322
+ if (obj.isVoiceEnabled !== undefined) {
4323
+ const obj_isVoiceEnabled = obj.isVoiceEnabled;
4324
+ const path_isVoiceEnabled = path + '.isVoiceEnabled';
4325
+ if (typeof obj_isVoiceEnabled !== 'boolean') {
4326
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isVoiceEnabled + '" (at "' + path_isVoiceEnabled + '")');
4327
+ }
4328
+ }
4322
4329
  if (obj.label !== undefined) {
4323
4330
  const obj_label = obj.label;
4324
4331
  const path_label = path + '.label';
@@ -4378,6 +4385,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
4378
4385
  name: 'isSuccess',
4379
4386
  kind: 'Scalar'
4380
4387
  },
4388
+ {
4389
+ name: 'isVoiceEnabled',
4390
+ kind: 'Scalar',
4391
+ required: false
4392
+ },
4381
4393
  {
4382
4394
  name: 'label',
4383
4395
  kind: 'Scalar',
@@ -4415,6 +4427,19 @@ function equals$1(existing, incoming) {
4415
4427
  if (!(existing_isSuccess === incoming_isSuccess)) {
4416
4428
  return false;
4417
4429
  }
4430
+ const existing_isVoiceEnabled = existing.isVoiceEnabled;
4431
+ const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
4432
+ // if at least one of these optionals is defined
4433
+ if (existing_isVoiceEnabled !== undefined || incoming_isVoiceEnabled !== undefined) {
4434
+ // if one of these is not defined we know the other is defined and therefore
4435
+ // not equal
4436
+ if (existing_isVoiceEnabled === undefined || incoming_isVoiceEnabled === undefined) {
4437
+ return false;
4438
+ }
4439
+ if (!(existing_isVoiceEnabled === incoming_isVoiceEnabled)) {
4440
+ return false;
4441
+ }
4442
+ }
4418
4443
  const existing_stopRecPrompts = existing.stopRecPrompts;
4419
4444
  const incoming_stopRecPrompts = incoming.stopRecPrompts;
4420
4445
  // if at least one of these optionals is defined
@@ -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 = "fffa53e7ae99db49035d39bf934a0dfb";
2
+ export declare const VERSION = "1530b465c01fcfed2f061739d41ba6c4";
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: AgentforceAgentBotInfoRepresentation, existing: AgentforceAgentBotInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentforceAgentBotInfoRepresentationNormalized;
@@ -26,6 +26,8 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
26
26
  isDefault?: boolean;
27
27
  /** Success indicator of the get operation. */
28
28
  isSuccess: boolean;
29
+ /** Indicates whether the Agent is voice enabled for ACC and mobile */
30
+ isVoiceEnabled?: boolean;
29
31
  /** display label of the agent */
30
32
  label?: string;
31
33
  /** Indicates whether the Agent will show Recommended prompts */
@@ -46,6 +48,7 @@ export interface AgentforceAgentBotInfoRepresentation {
46
48
  errorMessage?: string;
47
49
  isDefault?: boolean;
48
50
  isSuccess: boolean;
51
+ isVoiceEnabled?: boolean;
49
52
  label?: string;
50
53
  stopRecPrompts?: boolean;
51
54
  stopWelcomePrompts?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.428.0-dev21",
3
+ "version": "1.428.0-dev23",
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.428.0-dev21"
43
+ "@salesforce/lds-bindings": "^1.428.0-dev23"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.428.0-dev21"
46
+ "@salesforce/lds-compiler-plugins": "^1.428.0-dev23"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -122,7 +122,7 @@ function createLink(ref) {
122
122
  };
123
123
  }
124
124
 
125
- const VERSION$j = "fffa53e7ae99db49035d39bf934a0dfb";
125
+ const VERSION$j = "1530b465c01fcfed2f061739d41ba6c4";
126
126
  function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
127
127
  const v_error = (() => {
128
128
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -168,6 +168,13 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
168
168
  if (typeof obj_isSuccess !== 'boolean') {
169
169
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
170
170
  }
171
+ if (obj.isVoiceEnabled !== undefined) {
172
+ const obj_isVoiceEnabled = obj.isVoiceEnabled;
173
+ const path_isVoiceEnabled = path + '.isVoiceEnabled';
174
+ if (typeof obj_isVoiceEnabled !== 'boolean') {
175
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isVoiceEnabled + '" (at "' + path_isVoiceEnabled + '")');
176
+ }
177
+ }
171
178
  if (obj.label !== undefined) {
172
179
  const obj_label = obj.label;
173
180
  const path_label = path + '.label';
@@ -227,6 +234,11 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
227
234
  name: 'isSuccess',
228
235
  kind: 'Scalar'
229
236
  },
237
+ {
238
+ name: 'isVoiceEnabled',
239
+ kind: 'Scalar',
240
+ required: false
241
+ },
230
242
  {
231
243
  name: 'label',
232
244
  kind: 'Scalar',
@@ -264,6 +276,19 @@ function equals$j(existing, incoming) {
264
276
  if (!(existing_isSuccess === incoming_isSuccess)) {
265
277
  return false;
266
278
  }
279
+ const existing_isVoiceEnabled = existing.isVoiceEnabled;
280
+ const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
281
+ // if at least one of these optionals is defined
282
+ if (existing_isVoiceEnabled !== undefined || incoming_isVoiceEnabled !== undefined) {
283
+ // if one of these is not defined we know the other is defined and therefore
284
+ // not equal
285
+ if (existing_isVoiceEnabled === undefined || incoming_isVoiceEnabled === undefined) {
286
+ return false;
287
+ }
288
+ if (!(existing_isVoiceEnabled === incoming_isVoiceEnabled)) {
289
+ return false;
290
+ }
291
+ }
267
292
  const existing_stopRecPrompts = existing.stopRecPrompts;
268
293
  const incoming_stopRecPrompts = incoming.stopRecPrompts;
269
294
  // if at least one of these optionals is defined
@@ -5016,4 +5041,4 @@ withDefaultLuvio((luvio) => {
5016
5041
  });
5017
5042
 
5018
5043
  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 };
5019
- // version: 1.428.0-dev21-133a7da4f5
5044
+ // version: 1.428.0-dev23-5c08206b9b
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
  AgentforceAgentBotInfoListRepresentation:
644
648
  description: Represents the resultant list with agents per agent type including bot metadata
645
649
  type: object