@salesforce/lds-adapters-service-einstein-copilot-bot 1.377.1 → 1.379.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.
|
@@ -4273,7 +4273,7 @@ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBo
|
|
|
4273
4273
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
4274
4274
|
};
|
|
4275
4275
|
|
|
4276
|
-
const VERSION$1 = "
|
|
4276
|
+
const VERSION$1 = "fffa53e7ae99db49035d39bf934a0dfb";
|
|
4277
4277
|
function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
4278
4278
|
const v_error = (() => {
|
|
4279
4279
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4326,6 +4326,20 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
4326
4326
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4327
4327
|
}
|
|
4328
4328
|
}
|
|
4329
|
+
if (obj.stopRecPrompts !== undefined) {
|
|
4330
|
+
const obj_stopRecPrompts = obj.stopRecPrompts;
|
|
4331
|
+
const path_stopRecPrompts = path + '.stopRecPrompts';
|
|
4332
|
+
if (typeof obj_stopRecPrompts !== 'boolean') {
|
|
4333
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_stopRecPrompts + '" (at "' + path_stopRecPrompts + '")');
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
if (obj.stopWelcomePrompts !== undefined) {
|
|
4337
|
+
const obj_stopWelcomePrompts = obj.stopWelcomePrompts;
|
|
4338
|
+
const path_stopWelcomePrompts = path + '.stopWelcomePrompts';
|
|
4339
|
+
if (typeof obj_stopWelcomePrompts !== 'boolean') {
|
|
4340
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_stopWelcomePrompts + '" (at "' + path_stopWelcomePrompts + '")');
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4329
4343
|
})();
|
|
4330
4344
|
return v_error === undefined ? null : v_error;
|
|
4331
4345
|
}
|
|
@@ -4368,6 +4382,16 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4368
4382
|
name: 'label',
|
|
4369
4383
|
kind: 'Scalar',
|
|
4370
4384
|
required: false
|
|
4385
|
+
},
|
|
4386
|
+
{
|
|
4387
|
+
name: 'stopRecPrompts',
|
|
4388
|
+
kind: 'Scalar',
|
|
4389
|
+
required: false
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
name: 'stopWelcomePrompts',
|
|
4393
|
+
kind: 'Scalar',
|
|
4394
|
+
required: false
|
|
4371
4395
|
}
|
|
4372
4396
|
]
|
|
4373
4397
|
};
|
|
@@ -4391,6 +4415,32 @@ function equals$1(existing, incoming) {
|
|
|
4391
4415
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
4392
4416
|
return false;
|
|
4393
4417
|
}
|
|
4418
|
+
const existing_stopRecPrompts = existing.stopRecPrompts;
|
|
4419
|
+
const incoming_stopRecPrompts = incoming.stopRecPrompts;
|
|
4420
|
+
// if at least one of these optionals is defined
|
|
4421
|
+
if (existing_stopRecPrompts !== undefined || incoming_stopRecPrompts !== undefined) {
|
|
4422
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4423
|
+
// not equal
|
|
4424
|
+
if (existing_stopRecPrompts === undefined || incoming_stopRecPrompts === undefined) {
|
|
4425
|
+
return false;
|
|
4426
|
+
}
|
|
4427
|
+
if (!(existing_stopRecPrompts === incoming_stopRecPrompts)) {
|
|
4428
|
+
return false;
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
4431
|
+
const existing_stopWelcomePrompts = existing.stopWelcomePrompts;
|
|
4432
|
+
const incoming_stopWelcomePrompts = incoming.stopWelcomePrompts;
|
|
4433
|
+
// if at least one of these optionals is defined
|
|
4434
|
+
if (existing_stopWelcomePrompts !== undefined || incoming_stopWelcomePrompts !== undefined) {
|
|
4435
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4436
|
+
// not equal
|
|
4437
|
+
if (existing_stopWelcomePrompts === undefined || incoming_stopWelcomePrompts === undefined) {
|
|
4438
|
+
return false;
|
|
4439
|
+
}
|
|
4440
|
+
if (!(existing_stopWelcomePrompts === incoming_stopWelcomePrompts)) {
|
|
4441
|
+
return false;
|
|
4442
|
+
}
|
|
4443
|
+
}
|
|
4394
4444
|
const existing_agentType = existing.agentType;
|
|
4395
4445
|
const incoming_agentType = incoming.agentType;
|
|
4396
4446
|
// 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 = "
|
|
2
|
+
export declare const VERSION = "fffa53e7ae99db49035d39bf934a0dfb";
|
|
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;
|
|
@@ -28,6 +28,10 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
|
|
|
28
28
|
isSuccess: boolean;
|
|
29
29
|
/** display label of the agent */
|
|
30
30
|
label?: string;
|
|
31
|
+
/** Indicates whether the Agent will show Recommended prompts */
|
|
32
|
+
stopRecPrompts?: boolean;
|
|
33
|
+
/** Indicates whether the Agent will show Welcome prompts */
|
|
34
|
+
stopWelcomePrompts?: boolean;
|
|
31
35
|
}
|
|
32
36
|
/**
|
|
33
37
|
* User defined Agent metadata per agent type
|
|
@@ -43,4 +47,6 @@ export interface AgentforceAgentBotInfoRepresentation {
|
|
|
43
47
|
isDefault?: boolean;
|
|
44
48
|
isSuccess: boolean;
|
|
45
49
|
label?: string;
|
|
50
|
+
stopRecPrompts?: boolean;
|
|
51
|
+
stopWelcomePrompts?: boolean;
|
|
46
52
|
}
|
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.379.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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.379.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.379.0"
|
|
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 = "
|
|
125
|
+
const VERSION$j = "fffa53e7ae99db49035d39bf934a0dfb";
|
|
126
126
|
function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -175,6 +175,20 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
175
175
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
+
if (obj.stopRecPrompts !== undefined) {
|
|
179
|
+
const obj_stopRecPrompts = obj.stopRecPrompts;
|
|
180
|
+
const path_stopRecPrompts = path + '.stopRecPrompts';
|
|
181
|
+
if (typeof obj_stopRecPrompts !== 'boolean') {
|
|
182
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_stopRecPrompts + '" (at "' + path_stopRecPrompts + '")');
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (obj.stopWelcomePrompts !== undefined) {
|
|
186
|
+
const obj_stopWelcomePrompts = obj.stopWelcomePrompts;
|
|
187
|
+
const path_stopWelcomePrompts = path + '.stopWelcomePrompts';
|
|
188
|
+
if (typeof obj_stopWelcomePrompts !== 'boolean') {
|
|
189
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_stopWelcomePrompts + '" (at "' + path_stopWelcomePrompts + '")');
|
|
190
|
+
}
|
|
191
|
+
}
|
|
178
192
|
})();
|
|
179
193
|
return v_error === undefined ? null : v_error;
|
|
180
194
|
}
|
|
@@ -217,6 +231,16 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
217
231
|
name: 'label',
|
|
218
232
|
kind: 'Scalar',
|
|
219
233
|
required: false
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'stopRecPrompts',
|
|
237
|
+
kind: 'Scalar',
|
|
238
|
+
required: false
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: 'stopWelcomePrompts',
|
|
242
|
+
kind: 'Scalar',
|
|
243
|
+
required: false
|
|
220
244
|
}
|
|
221
245
|
]
|
|
222
246
|
};
|
|
@@ -240,6 +264,32 @@ function equals$j(existing, incoming) {
|
|
|
240
264
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
241
265
|
return false;
|
|
242
266
|
}
|
|
267
|
+
const existing_stopRecPrompts = existing.stopRecPrompts;
|
|
268
|
+
const incoming_stopRecPrompts = incoming.stopRecPrompts;
|
|
269
|
+
// if at least one of these optionals is defined
|
|
270
|
+
if (existing_stopRecPrompts !== undefined || incoming_stopRecPrompts !== undefined) {
|
|
271
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
272
|
+
// not equal
|
|
273
|
+
if (existing_stopRecPrompts === undefined || incoming_stopRecPrompts === undefined) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
if (!(existing_stopRecPrompts === incoming_stopRecPrompts)) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
const existing_stopWelcomePrompts = existing.stopWelcomePrompts;
|
|
281
|
+
const incoming_stopWelcomePrompts = incoming.stopWelcomePrompts;
|
|
282
|
+
// if at least one of these optionals is defined
|
|
283
|
+
if (existing_stopWelcomePrompts !== undefined || incoming_stopWelcomePrompts !== undefined) {
|
|
284
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
285
|
+
// not equal
|
|
286
|
+
if (existing_stopWelcomePrompts === undefined || incoming_stopWelcomePrompts === undefined) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
if (!(existing_stopWelcomePrompts === incoming_stopWelcomePrompts)) {
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
243
293
|
const existing_agentType = existing.agentType;
|
|
244
294
|
const incoming_agentType = incoming.agentType;
|
|
245
295
|
// if at least one of these optionals is defined
|
|
@@ -4966,4 +5016,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4966
5016
|
});
|
|
4967
5017
|
|
|
4968
5018
|
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 };
|
|
4969
|
-
// version: 1.
|
|
5019
|
+
// version: 1.379.0-a57c798add
|
package/src/raml/api.raml
CHANGED
|
@@ -632,6 +632,14 @@ types:
|
|
|
632
632
|
description: Indicates weather the Agent is default
|
|
633
633
|
type: boolean
|
|
634
634
|
required: false
|
|
635
|
+
stopRecPrompts:
|
|
636
|
+
description: Indicates whether the Agent will show Recommended prompts
|
|
637
|
+
type: boolean
|
|
638
|
+
required: false
|
|
639
|
+
stopWelcomePrompts:
|
|
640
|
+
description: Indicates whether the Agent will show Welcome prompts
|
|
641
|
+
type: boolean
|
|
642
|
+
required: false
|
|
635
643
|
AgentforceAgentBotInfoListRepresentation:
|
|
636
644
|
description: Represents the resultant list with agents per agent type including bot metadata
|
|
637
645
|
type: object
|