@salesforce/lds-adapters-service-einstein-copilot-bot 1.450.0 → 1.451.0-dev10
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.
- package/dist/es/es2018/service-einstein-copilot-bot.js +102 -2
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/MessagingChannelInfoRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +103 -3
- package/src/raml/api.raml +16 -0
|
@@ -4370,7 +4370,7 @@ function equals$3(existing, incoming) {
|
|
|
4370
4370
|
return true;
|
|
4371
4371
|
}
|
|
4372
4372
|
|
|
4373
|
-
const VERSION$2 = "
|
|
4373
|
+
const VERSION$2 = "4492f233566d9ccb17479ad53eed09e8";
|
|
4374
4374
|
function validate$2(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
4375
4375
|
const v_error = (() => {
|
|
4376
4376
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4400,6 +4400,13 @@ function validate$2(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
}
|
|
4403
|
+
if (obj.isFeedbackEnabled !== undefined) {
|
|
4404
|
+
const obj_isFeedbackEnabled = obj.isFeedbackEnabled;
|
|
4405
|
+
const path_isFeedbackEnabled = path + '.isFeedbackEnabled';
|
|
4406
|
+
if (typeof obj_isFeedbackEnabled !== 'boolean') {
|
|
4407
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFeedbackEnabled + '" (at "' + path_isFeedbackEnabled + '")');
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4403
4410
|
if (obj.messagingChannelPlatformKey !== undefined) {
|
|
4404
4411
|
const obj_messagingChannelPlatformKey = obj.messagingChannelPlatformKey;
|
|
4405
4412
|
const path_messagingChannelPlatformKey = path + '.messagingChannelPlatformKey';
|
|
@@ -4429,6 +4436,11 @@ const select$3 = function MessagingChannelInfoRepresentationSelect() {
|
|
|
4429
4436
|
selections: EsDeploymentInfoRepresentation__selections,
|
|
4430
4437
|
required: false
|
|
4431
4438
|
},
|
|
4439
|
+
{
|
|
4440
|
+
name: 'isFeedbackEnabled',
|
|
4441
|
+
kind: 'Scalar',
|
|
4442
|
+
required: false
|
|
4443
|
+
},
|
|
4432
4444
|
{
|
|
4433
4445
|
name: 'messagingChannelPlatformKey',
|
|
4434
4446
|
kind: 'Scalar',
|
|
@@ -4438,6 +4450,19 @@ const select$3 = function MessagingChannelInfoRepresentationSelect() {
|
|
|
4438
4450
|
};
|
|
4439
4451
|
};
|
|
4440
4452
|
function equals$2(existing, incoming) {
|
|
4453
|
+
const existing_isFeedbackEnabled = existing.isFeedbackEnabled;
|
|
4454
|
+
const incoming_isFeedbackEnabled = incoming.isFeedbackEnabled;
|
|
4455
|
+
// if at least one of these optionals is defined
|
|
4456
|
+
if (existing_isFeedbackEnabled !== undefined || incoming_isFeedbackEnabled !== undefined) {
|
|
4457
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4458
|
+
// not equal
|
|
4459
|
+
if (existing_isFeedbackEnabled === undefined || incoming_isFeedbackEnabled === undefined) {
|
|
4460
|
+
return false;
|
|
4461
|
+
}
|
|
4462
|
+
if (!(existing_isFeedbackEnabled === incoming_isFeedbackEnabled)) {
|
|
4463
|
+
return false;
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4441
4466
|
const existing_authMode = existing.authMode;
|
|
4442
4467
|
const incoming_authMode = incoming.authMode;
|
|
4443
4468
|
// if at least one of these optionals is defined
|
|
@@ -4485,12 +4510,19 @@ function equals$2(existing, incoming) {
|
|
|
4485
4510
|
return true;
|
|
4486
4511
|
}
|
|
4487
4512
|
|
|
4488
|
-
const VERSION$1 = "
|
|
4513
|
+
const VERSION$1 = "3585a67e9604dbc1415da254caeadf75";
|
|
4489
4514
|
function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
4490
4515
|
const v_error = (() => {
|
|
4491
4516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4492
4517
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4493
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
|
+
}
|
|
4494
4526
|
if (obj.agentType !== undefined) {
|
|
4495
4527
|
const obj_agentType = obj.agentType;
|
|
4496
4528
|
const path_agentType = path + '.agentType';
|
|
@@ -4531,6 +4563,20 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
4531
4563
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
4532
4564
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
4533
4565
|
}
|
|
4566
|
+
if (obj.isUserSkillsEnabled !== undefined) {
|
|
4567
|
+
const obj_isUserSkillsEnabled = obj.isUserSkillsEnabled;
|
|
4568
|
+
const path_isUserSkillsEnabled = path + '.isUserSkillsEnabled';
|
|
4569
|
+
if (typeof obj_isUserSkillsEnabled !== 'boolean') {
|
|
4570
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUserSkillsEnabled + '" (at "' + path_isUserSkillsEnabled + '")');
|
|
4571
|
+
}
|
|
4572
|
+
}
|
|
4573
|
+
if (obj.isVoiceEnabled !== undefined) {
|
|
4574
|
+
const obj_isVoiceEnabled = obj.isVoiceEnabled;
|
|
4575
|
+
const path_isVoiceEnabled = path + '.isVoiceEnabled';
|
|
4576
|
+
if (typeof obj_isVoiceEnabled !== 'boolean') {
|
|
4577
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVoiceEnabled + '" (at "' + path_isVoiceEnabled + '")');
|
|
4578
|
+
}
|
|
4579
|
+
}
|
|
4534
4580
|
if (obj.label !== undefined) {
|
|
4535
4581
|
const obj_label = obj.label;
|
|
4536
4582
|
const path_label = path + '.label';
|
|
@@ -4579,6 +4625,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4579
4625
|
version: VERSION$1,
|
|
4580
4626
|
private: [],
|
|
4581
4627
|
selections: [
|
|
4628
|
+
{
|
|
4629
|
+
name: 'agentTemplate',
|
|
4630
|
+
kind: 'Scalar',
|
|
4631
|
+
required: false
|
|
4632
|
+
},
|
|
4582
4633
|
{
|
|
4583
4634
|
name: 'agentType',
|
|
4584
4635
|
kind: 'Scalar',
|
|
@@ -4608,6 +4659,16 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4608
4659
|
name: 'isSuccess',
|
|
4609
4660
|
kind: 'Scalar'
|
|
4610
4661
|
},
|
|
4662
|
+
{
|
|
4663
|
+
name: 'isUserSkillsEnabled',
|
|
4664
|
+
kind: 'Scalar',
|
|
4665
|
+
required: false
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
name: 'isVoiceEnabled',
|
|
4669
|
+
kind: 'Scalar',
|
|
4670
|
+
required: false
|
|
4671
|
+
},
|
|
4611
4672
|
{
|
|
4612
4673
|
name: 'label',
|
|
4613
4674
|
kind: 'Scalar',
|
|
@@ -4652,6 +4713,32 @@ function equals$1(existing, incoming) {
|
|
|
4652
4713
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
4653
4714
|
return false;
|
|
4654
4715
|
}
|
|
4716
|
+
const existing_isUserSkillsEnabled = existing.isUserSkillsEnabled;
|
|
4717
|
+
const incoming_isUserSkillsEnabled = incoming.isUserSkillsEnabled;
|
|
4718
|
+
// if at least one of these optionals is defined
|
|
4719
|
+
if (existing_isUserSkillsEnabled !== undefined || incoming_isUserSkillsEnabled !== undefined) {
|
|
4720
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4721
|
+
// not equal
|
|
4722
|
+
if (existing_isUserSkillsEnabled === undefined || incoming_isUserSkillsEnabled === undefined) {
|
|
4723
|
+
return false;
|
|
4724
|
+
}
|
|
4725
|
+
if (!(existing_isUserSkillsEnabled === incoming_isUserSkillsEnabled)) {
|
|
4726
|
+
return false;
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
const existing_isVoiceEnabled = existing.isVoiceEnabled;
|
|
4730
|
+
const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
|
|
4731
|
+
// if at least one of these optionals is defined
|
|
4732
|
+
if (existing_isVoiceEnabled !== undefined || incoming_isVoiceEnabled !== undefined) {
|
|
4733
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4734
|
+
// not equal
|
|
4735
|
+
if (existing_isVoiceEnabled === undefined || incoming_isVoiceEnabled === undefined) {
|
|
4736
|
+
return false;
|
|
4737
|
+
}
|
|
4738
|
+
if (!(existing_isVoiceEnabled === incoming_isVoiceEnabled)) {
|
|
4739
|
+
return false;
|
|
4740
|
+
}
|
|
4741
|
+
}
|
|
4655
4742
|
const existing_stopRecPrompts = existing.stopRecPrompts;
|
|
4656
4743
|
const incoming_stopRecPrompts = incoming.stopRecPrompts;
|
|
4657
4744
|
// if at least one of these optionals is defined
|
|
@@ -4678,6 +4765,19 @@ function equals$1(existing, incoming) {
|
|
|
4678
4765
|
return false;
|
|
4679
4766
|
}
|
|
4680
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
|
+
}
|
|
4681
4781
|
const existing_agentType = existing.agentType;
|
|
4682
4782
|
const incoming_agentType = incoming.agentType;
|
|
4683
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 = "
|
|
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 */
|
|
@@ -27,6 +29,10 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
|
|
|
27
29
|
isDefault?: boolean;
|
|
28
30
|
/** Success indicator of the get operation. */
|
|
29
31
|
isSuccess: boolean;
|
|
32
|
+
/** Indicates whether the agent has skills authored (per-agent). */
|
|
33
|
+
isUserSkillsEnabled?: boolean;
|
|
34
|
+
/** Indicates whether the Agent is voice enabled for ACC and mobile */
|
|
35
|
+
isVoiceEnabled?: boolean;
|
|
30
36
|
/** display label of the agent */
|
|
31
37
|
label?: string;
|
|
32
38
|
/** List of EmbeddedMessaging channels provisioned for this Agent. */
|
|
@@ -43,12 +49,15 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
|
|
|
43
49
|
* (none)
|
|
44
50
|
*/
|
|
45
51
|
export interface AgentforceAgentBotInfoRepresentation {
|
|
52
|
+
agentTemplate?: string;
|
|
46
53
|
agentType?: string;
|
|
47
54
|
botId?: string;
|
|
48
55
|
description?: string;
|
|
49
56
|
errorMessage?: string;
|
|
50
57
|
isDefault?: boolean;
|
|
51
58
|
isSuccess: boolean;
|
|
59
|
+
isUserSkillsEnabled?: boolean;
|
|
60
|
+
isVoiceEnabled?: boolean;
|
|
52
61
|
label?: string;
|
|
53
62
|
messagingChannels?: Array<MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation>;
|
|
54
63
|
stopRecPrompts?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EsDeploymentInfoRepresentation as EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation } from './EsDeploymentInfoRepresentation';
|
|
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 = "
|
|
3
|
+
export declare const VERSION = "4492f233566d9ccb17479ad53eed09e8";
|
|
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: MessagingChannelInfoRepresentation, existing: MessagingChannelInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MessagingChannelInfoRepresentationNormalized;
|
|
@@ -19,6 +19,8 @@ export interface MessagingChannelInfoRepresentationNormalized {
|
|
|
19
19
|
authMode?: string;
|
|
20
20
|
/** List of EmbeddedServiceConfig deployments linked to this messaging channel. */
|
|
21
21
|
deployments?: Array<EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation>;
|
|
22
|
+
/** Indicates whether message feedback is enabled for this messaging channel. */
|
|
23
|
+
isFeedbackEnabled?: boolean;
|
|
22
24
|
/** Messaging platform key of the EmbeddedMessaging channel. */
|
|
23
25
|
messagingChannelPlatformKey?: string;
|
|
24
26
|
}
|
|
@@ -31,5 +33,6 @@ export interface MessagingChannelInfoRepresentationNormalized {
|
|
|
31
33
|
export interface MessagingChannelInfoRepresentation {
|
|
32
34
|
authMode?: string;
|
|
33
35
|
deployments?: Array<EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation>;
|
|
36
|
+
isFeedbackEnabled?: boolean;
|
|
34
37
|
messagingChannelPlatformKey?: string;
|
|
35
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.451.0-dev10",
|
|
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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.451.0-dev10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev10"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -219,7 +219,7 @@ function equals$l(existing, incoming) {
|
|
|
219
219
|
return true;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
const VERSION$k = "
|
|
222
|
+
const VERSION$k = "4492f233566d9ccb17479ad53eed09e8";
|
|
223
223
|
function validate$r(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
224
224
|
const v_error = (() => {
|
|
225
225
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -249,6 +249,13 @@ function validate$r(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
+
if (obj.isFeedbackEnabled !== undefined) {
|
|
253
|
+
const obj_isFeedbackEnabled = obj.isFeedbackEnabled;
|
|
254
|
+
const path_isFeedbackEnabled = path + '.isFeedbackEnabled';
|
|
255
|
+
if (typeof obj_isFeedbackEnabled !== 'boolean') {
|
|
256
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFeedbackEnabled + '" (at "' + path_isFeedbackEnabled + '")');
|
|
257
|
+
}
|
|
258
|
+
}
|
|
252
259
|
if (obj.messagingChannelPlatformKey !== undefined) {
|
|
253
260
|
const obj_messagingChannelPlatformKey = obj.messagingChannelPlatformKey;
|
|
254
261
|
const path_messagingChannelPlatformKey = path + '.messagingChannelPlatformKey';
|
|
@@ -278,6 +285,11 @@ const select$u = function MessagingChannelInfoRepresentationSelect() {
|
|
|
278
285
|
selections: EsDeploymentInfoRepresentation__selections,
|
|
279
286
|
required: false
|
|
280
287
|
},
|
|
288
|
+
{
|
|
289
|
+
name: 'isFeedbackEnabled',
|
|
290
|
+
kind: 'Scalar',
|
|
291
|
+
required: false
|
|
292
|
+
},
|
|
281
293
|
{
|
|
282
294
|
name: 'messagingChannelPlatformKey',
|
|
283
295
|
kind: 'Scalar',
|
|
@@ -287,6 +299,19 @@ const select$u = function MessagingChannelInfoRepresentationSelect() {
|
|
|
287
299
|
};
|
|
288
300
|
};
|
|
289
301
|
function equals$k(existing, incoming) {
|
|
302
|
+
const existing_isFeedbackEnabled = existing.isFeedbackEnabled;
|
|
303
|
+
const incoming_isFeedbackEnabled = incoming.isFeedbackEnabled;
|
|
304
|
+
// if at least one of these optionals is defined
|
|
305
|
+
if (existing_isFeedbackEnabled !== undefined || incoming_isFeedbackEnabled !== undefined) {
|
|
306
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
307
|
+
// not equal
|
|
308
|
+
if (existing_isFeedbackEnabled === undefined || incoming_isFeedbackEnabled === undefined) {
|
|
309
|
+
return false;
|
|
310
|
+
}
|
|
311
|
+
if (!(existing_isFeedbackEnabled === incoming_isFeedbackEnabled)) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
290
315
|
const existing_authMode = existing.authMode;
|
|
291
316
|
const incoming_authMode = incoming.authMode;
|
|
292
317
|
// if at least one of these optionals is defined
|
|
@@ -334,12 +359,19 @@ function equals$k(existing, incoming) {
|
|
|
334
359
|
return true;
|
|
335
360
|
}
|
|
336
361
|
|
|
337
|
-
const VERSION$j = "
|
|
362
|
+
const VERSION$j = "3585a67e9604dbc1415da254caeadf75";
|
|
338
363
|
function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
339
364
|
const v_error = (() => {
|
|
340
365
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
341
366
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
342
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
|
+
}
|
|
343
375
|
if (obj.agentType !== undefined) {
|
|
344
376
|
const obj_agentType = obj.agentType;
|
|
345
377
|
const path_agentType = path + '.agentType';
|
|
@@ -380,6 +412,20 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
380
412
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
381
413
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
382
414
|
}
|
|
415
|
+
if (obj.isUserSkillsEnabled !== undefined) {
|
|
416
|
+
const obj_isUserSkillsEnabled = obj.isUserSkillsEnabled;
|
|
417
|
+
const path_isUserSkillsEnabled = path + '.isUserSkillsEnabled';
|
|
418
|
+
if (typeof obj_isUserSkillsEnabled !== 'boolean') {
|
|
419
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUserSkillsEnabled + '" (at "' + path_isUserSkillsEnabled + '")');
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
if (obj.isVoiceEnabled !== undefined) {
|
|
423
|
+
const obj_isVoiceEnabled = obj.isVoiceEnabled;
|
|
424
|
+
const path_isVoiceEnabled = path + '.isVoiceEnabled';
|
|
425
|
+
if (typeof obj_isVoiceEnabled !== 'boolean') {
|
|
426
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVoiceEnabled + '" (at "' + path_isVoiceEnabled + '")');
|
|
427
|
+
}
|
|
428
|
+
}
|
|
383
429
|
if (obj.label !== undefined) {
|
|
384
430
|
const obj_label = obj.label;
|
|
385
431
|
const path_label = path + '.label';
|
|
@@ -428,6 +474,11 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
428
474
|
version: VERSION$j,
|
|
429
475
|
private: [],
|
|
430
476
|
selections: [
|
|
477
|
+
{
|
|
478
|
+
name: 'agentTemplate',
|
|
479
|
+
kind: 'Scalar',
|
|
480
|
+
required: false
|
|
481
|
+
},
|
|
431
482
|
{
|
|
432
483
|
name: 'agentType',
|
|
433
484
|
kind: 'Scalar',
|
|
@@ -457,6 +508,16 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
457
508
|
name: 'isSuccess',
|
|
458
509
|
kind: 'Scalar'
|
|
459
510
|
},
|
|
511
|
+
{
|
|
512
|
+
name: 'isUserSkillsEnabled',
|
|
513
|
+
kind: 'Scalar',
|
|
514
|
+
required: false
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
name: 'isVoiceEnabled',
|
|
518
|
+
kind: 'Scalar',
|
|
519
|
+
required: false
|
|
520
|
+
},
|
|
460
521
|
{
|
|
461
522
|
name: 'label',
|
|
462
523
|
kind: 'Scalar',
|
|
@@ -501,6 +562,32 @@ function equals$j(existing, incoming) {
|
|
|
501
562
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
502
563
|
return false;
|
|
503
564
|
}
|
|
565
|
+
const existing_isUserSkillsEnabled = existing.isUserSkillsEnabled;
|
|
566
|
+
const incoming_isUserSkillsEnabled = incoming.isUserSkillsEnabled;
|
|
567
|
+
// if at least one of these optionals is defined
|
|
568
|
+
if (existing_isUserSkillsEnabled !== undefined || incoming_isUserSkillsEnabled !== undefined) {
|
|
569
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
570
|
+
// not equal
|
|
571
|
+
if (existing_isUserSkillsEnabled === undefined || incoming_isUserSkillsEnabled === undefined) {
|
|
572
|
+
return false;
|
|
573
|
+
}
|
|
574
|
+
if (!(existing_isUserSkillsEnabled === incoming_isUserSkillsEnabled)) {
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
const existing_isVoiceEnabled = existing.isVoiceEnabled;
|
|
579
|
+
const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
|
|
580
|
+
// if at least one of these optionals is defined
|
|
581
|
+
if (existing_isVoiceEnabled !== undefined || incoming_isVoiceEnabled !== undefined) {
|
|
582
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
583
|
+
// not equal
|
|
584
|
+
if (existing_isVoiceEnabled === undefined || incoming_isVoiceEnabled === undefined) {
|
|
585
|
+
return false;
|
|
586
|
+
}
|
|
587
|
+
if (!(existing_isVoiceEnabled === incoming_isVoiceEnabled)) {
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
504
591
|
const existing_stopRecPrompts = existing.stopRecPrompts;
|
|
505
592
|
const incoming_stopRecPrompts = incoming.stopRecPrompts;
|
|
506
593
|
// if at least one of these optionals is defined
|
|
@@ -527,6 +614,19 @@ function equals$j(existing, incoming) {
|
|
|
527
614
|
return false;
|
|
528
615
|
}
|
|
529
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
|
+
}
|
|
530
630
|
const existing_agentType = existing.agentType;
|
|
531
631
|
const incoming_agentType = incoming.agentType;
|
|
532
632
|
// if at least one of these optionals is defined
|
|
@@ -5296,4 +5396,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5296
5396
|
});
|
|
5297
5397
|
|
|
5298
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 };
|
|
5299
|
-
// version: 1.
|
|
5399
|
+
// version: 1.451.0-dev10-1dd3380fb3
|
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
|
|
@@ -640,6 +644,14 @@ types:
|
|
|
640
644
|
description: Indicates whether the Agent will show Welcome prompts
|
|
641
645
|
type: boolean
|
|
642
646
|
required: false
|
|
647
|
+
isVoiceEnabled:
|
|
648
|
+
description: Indicates whether the Agent is voice enabled for ACC and mobile
|
|
649
|
+
type: boolean
|
|
650
|
+
required: false
|
|
651
|
+
isUserSkillsEnabled:
|
|
652
|
+
description: Indicates whether the agent has skills authored (per-agent).
|
|
653
|
+
type: boolean
|
|
654
|
+
required: false
|
|
643
655
|
messagingChannels:
|
|
644
656
|
description: List of EmbeddedMessaging channels provisioned for this Agent.
|
|
645
657
|
type: array
|
|
@@ -705,6 +717,10 @@ types:
|
|
|
705
717
|
required: false
|
|
706
718
|
items:
|
|
707
719
|
type: EsDeploymentInfoRepresentation
|
|
720
|
+
isFeedbackEnabled:
|
|
721
|
+
description: Indicates whether message feedback is enabled for this messaging channel.
|
|
722
|
+
type: boolean
|
|
723
|
+
required: false
|
|
708
724
|
EsDeploymentInfoRepresentation:
|
|
709
725
|
description: Represents an EmbeddedServiceConfig deployment linked to a messaging channel
|
|
710
726
|
type: object
|