@salesforce/lds-adapters-service-einstein-copilot-bot 1.368.0 → 1.369.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.
- package/dist/es/es2018/service-einstein-copilot-bot.js +28 -2
- package/dist/es/es2018/types/src/generated/adapters/getAgents.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectAgentforceAgentInfo.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +29 -3
- package/src/raml/api.raml +7 -0
|
@@ -4271,7 +4271,7 @@ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBo
|
|
|
4271
4271
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
4272
4272
|
};
|
|
4273
4273
|
|
|
4274
|
-
const VERSION$1 = "
|
|
4274
|
+
const VERSION$1 = "7a87adc3d8a8fd18ed9d866f43ab1431";
|
|
4275
4275
|
function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
4276
4276
|
const v_error = (() => {
|
|
4277
4277
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4305,6 +4305,13 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
4305
4305
|
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
|
+
if (obj.isDefault !== undefined) {
|
|
4309
|
+
const obj_isDefault = obj.isDefault;
|
|
4310
|
+
const path_isDefault = path + '.isDefault';
|
|
4311
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
4312
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4308
4315
|
const obj_isSuccess = obj.isSuccess;
|
|
4309
4316
|
const path_isSuccess = path + '.isSuccess';
|
|
4310
4317
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
@@ -4346,6 +4353,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4346
4353
|
kind: 'Scalar',
|
|
4347
4354
|
required: false
|
|
4348
4355
|
},
|
|
4356
|
+
{
|
|
4357
|
+
name: 'isDefault',
|
|
4358
|
+
kind: 'Scalar',
|
|
4359
|
+
required: false
|
|
4360
|
+
},
|
|
4349
4361
|
{
|
|
4350
4362
|
name: 'isSuccess',
|
|
4351
4363
|
kind: 'Scalar'
|
|
@@ -4359,6 +4371,19 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4359
4371
|
};
|
|
4360
4372
|
};
|
|
4361
4373
|
function equals$1(existing, incoming) {
|
|
4374
|
+
const existing_isDefault = existing.isDefault;
|
|
4375
|
+
const incoming_isDefault = incoming.isDefault;
|
|
4376
|
+
// if at least one of these optionals is defined
|
|
4377
|
+
if (existing_isDefault !== undefined || incoming_isDefault !== undefined) {
|
|
4378
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4379
|
+
// not equal
|
|
4380
|
+
if (existing_isDefault === undefined || incoming_isDefault === undefined) {
|
|
4381
|
+
return false;
|
|
4382
|
+
}
|
|
4383
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
4384
|
+
return false;
|
|
4385
|
+
}
|
|
4386
|
+
}
|
|
4362
4387
|
const existing_isSuccess = existing.isSuccess;
|
|
4363
4388
|
const incoming_isSuccess = incoming.isSuccess;
|
|
4364
4389
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -4680,7 +4705,7 @@ function select(luvio, params) {
|
|
|
4680
4705
|
return select$1();
|
|
4681
4706
|
}
|
|
4682
4707
|
function keyBuilder$1(luvio, params) {
|
|
4683
|
-
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
|
|
4708
|
+
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ',' + 'appName:' + params.queryParams.appName + ')';
|
|
4684
4709
|
}
|
|
4685
4710
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
4686
4711
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -4731,6 +4756,7 @@ function createResourceRequest(config) {
|
|
|
4731
4756
|
const adapterName = 'getAgents';
|
|
4732
4757
|
const getAgents_ConfigPropertyMetadata = [
|
|
4733
4758
|
generateParamConfigMetadata('agentType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4759
|
+
generateParamConfigMetadata('appName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4734
4760
|
];
|
|
4735
4761
|
const getAgents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAgents_ConfigPropertyMetadata);
|
|
4736
4762
|
const createResourceParams = /*#__PURE__*/ createResourceParams$a(getAgents_ConfigPropertyMetadata);
|
|
@@ -7,6 +7,7 @@ export declare const getAgents_ConfigPropertyMetadata: $64$luvio_engine_AdapterC
|
|
|
7
7
|
export declare const getAgents_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetAgentsConfig {
|
|
9
9
|
agentType: string;
|
|
10
|
+
appName?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetAgentsConfig) => resources_getConnectAgentforceAgentInfo_ResourceRequestConfig;
|
|
12
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig): string;
|
|
@@ -3,6 +3,7 @@ import { AgentforceAgentBotInfoListRepresentation as types_AgentforceAgentBotInf
|
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
5
|
agentType: string;
|
|
6
|
+
appName?: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -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 = "7a87adc3d8a8fd18ed9d866f43ab1431";
|
|
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;
|
|
@@ -22,6 +22,8 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
|
|
|
22
22
|
description?: string;
|
|
23
23
|
/** Error message for the failed get operation. */
|
|
24
24
|
errorMessage?: string;
|
|
25
|
+
/** Indicates weather the Agent is default */
|
|
26
|
+
isDefault?: boolean;
|
|
25
27
|
/** Success indicator of the get operation. */
|
|
26
28
|
isSuccess: boolean;
|
|
27
29
|
/** display label of the agent */
|
|
@@ -38,6 +40,7 @@ export interface AgentforceAgentBotInfoRepresentation {
|
|
|
38
40
|
botId?: string;
|
|
39
41
|
description?: string;
|
|
40
42
|
errorMessage?: string;
|
|
43
|
+
isDefault?: boolean;
|
|
41
44
|
isSuccess: boolean;
|
|
42
45
|
label?: string;
|
|
43
46
|
}
|
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.369.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.369.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.369.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 = "7a87adc3d8a8fd18ed9d866f43ab1431";
|
|
126
126
|
function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -156,6 +156,13 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
156
156
|
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
if (obj.isDefault !== undefined) {
|
|
160
|
+
const obj_isDefault = obj.isDefault;
|
|
161
|
+
const path_isDefault = path + '.isDefault';
|
|
162
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
163
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
164
|
+
}
|
|
165
|
+
}
|
|
159
166
|
const obj_isSuccess = obj.isSuccess;
|
|
160
167
|
const path_isSuccess = path + '.isSuccess';
|
|
161
168
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
@@ -197,6 +204,11 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
197
204
|
kind: 'Scalar',
|
|
198
205
|
required: false
|
|
199
206
|
},
|
|
207
|
+
{
|
|
208
|
+
name: 'isDefault',
|
|
209
|
+
kind: 'Scalar',
|
|
210
|
+
required: false
|
|
211
|
+
},
|
|
200
212
|
{
|
|
201
213
|
name: 'isSuccess',
|
|
202
214
|
kind: 'Scalar'
|
|
@@ -210,6 +222,19 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
210
222
|
};
|
|
211
223
|
};
|
|
212
224
|
function equals$j(existing, incoming) {
|
|
225
|
+
const existing_isDefault = existing.isDefault;
|
|
226
|
+
const incoming_isDefault = incoming.isDefault;
|
|
227
|
+
// if at least one of these optionals is defined
|
|
228
|
+
if (existing_isDefault !== undefined || incoming_isDefault !== undefined) {
|
|
229
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
230
|
+
// not equal
|
|
231
|
+
if (existing_isDefault === undefined || incoming_isDefault === undefined) {
|
|
232
|
+
return false;
|
|
233
|
+
}
|
|
234
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
213
238
|
const existing_isSuccess = existing.isSuccess;
|
|
214
239
|
const incoming_isSuccess = incoming.isSuccess;
|
|
215
240
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -531,7 +556,7 @@ function select$r(luvio, params) {
|
|
|
531
556
|
return select$s();
|
|
532
557
|
}
|
|
533
558
|
function keyBuilder$i(luvio, params) {
|
|
534
|
-
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
|
|
559
|
+
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ',' + 'appName:' + params.queryParams.appName + ')';
|
|
535
560
|
}
|
|
536
561
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
537
562
|
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
|
|
@@ -582,6 +607,7 @@ function createResourceRequest$9(config) {
|
|
|
582
607
|
const adapterName$9 = 'getAgents';
|
|
583
608
|
const getAgents_ConfigPropertyMetadata = [
|
|
584
609
|
generateParamConfigMetadata('agentType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
610
|
+
generateParamConfigMetadata('appName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
585
611
|
];
|
|
586
612
|
const getAgents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAgents_ConfigPropertyMetadata);
|
|
587
613
|
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getAgents_ConfigPropertyMetadata);
|
|
@@ -4938,4 +4964,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4938
4964
|
});
|
|
4939
4965
|
|
|
4940
4966
|
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 };
|
|
4941
|
-
// version: 1.
|
|
4967
|
+
// version: 1.369.0-7bf258f54c
|
package/src/raml/api.raml
CHANGED
|
@@ -628,6 +628,10 @@ types:
|
|
|
628
628
|
description: internal agent type api name
|
|
629
629
|
type: string
|
|
630
630
|
required: false
|
|
631
|
+
isDefault:
|
|
632
|
+
description: Indicates weather the Agent is default
|
|
633
|
+
type: boolean
|
|
634
|
+
required: false
|
|
631
635
|
AgentforceAgentBotInfoListRepresentation:
|
|
632
636
|
description: Represents the resultant list with agents per agent type including bot metadata
|
|
633
637
|
type: object
|
|
@@ -850,3 +854,6 @@ types:
|
|
|
850
854
|
agentType:
|
|
851
855
|
type: string
|
|
852
856
|
required: true
|
|
857
|
+
appName:
|
|
858
|
+
type: string
|
|
859
|
+
required: false
|