@salesforce/lds-adapters-service-einstein-copilot-bot 1.354.0-dev2 → 1.354.0-dev20
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 +32 -4
- package/dist/es/es2018/types/src/generated/adapters/getAgents.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedActions.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedUtterances.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectAgentforceAgentInfo.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedActions.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedUtterances.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 +33 -5
- package/src/raml/api.raml +13 -0
|
@@ -3142,7 +3142,7 @@ function select$9(luvio, params) {
|
|
|
3142
3142
|
return select$a();
|
|
3143
3143
|
}
|
|
3144
3144
|
function keyBuilder$7(luvio, params) {
|
|
3145
|
-
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
3145
|
+
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
3146
3146
|
}
|
|
3147
3147
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3148
3148
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
@@ -3192,6 +3192,7 @@ function createResourceRequest$3(config) {
|
|
|
3192
3192
|
|
|
3193
3193
|
const adapterName$3 = 'getRecommendedUtterances';
|
|
3194
3194
|
const getRecommendedUtterances_ConfigPropertyMetadata = [
|
|
3195
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3195
3196
|
generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3196
3197
|
];
|
|
3197
3198
|
const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedUtterances_ConfigPropertyMetadata);
|
|
@@ -3811,7 +3812,7 @@ function select$6(luvio, params) {
|
|
|
3811
3812
|
return select$7();
|
|
3812
3813
|
}
|
|
3813
3814
|
function keyBuilder$5(luvio, params) {
|
|
3814
|
-
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
3815
|
+
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
3815
3816
|
}
|
|
3816
3817
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3817
3818
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
@@ -3861,6 +3862,7 @@ function createResourceRequest$2(config) {
|
|
|
3861
3862
|
|
|
3862
3863
|
const adapterName$2 = 'getRecommendedActions';
|
|
3863
3864
|
const getRecommendedActions_ConfigPropertyMetadata = [
|
|
3865
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3864
3866
|
generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3865
3867
|
generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3866
3868
|
generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4271,7 +4273,7 @@ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBo
|
|
|
4271
4273
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
4272
4274
|
};
|
|
4273
4275
|
|
|
4274
|
-
const VERSION$1 = "
|
|
4276
|
+
const VERSION$1 = "7a87adc3d8a8fd18ed9d866f43ab1431";
|
|
4275
4277
|
function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
4276
4278
|
const v_error = (() => {
|
|
4277
4279
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4305,6 +4307,13 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
4305
4307
|
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
4306
4308
|
}
|
|
4307
4309
|
}
|
|
4310
|
+
if (obj.isDefault !== undefined) {
|
|
4311
|
+
const obj_isDefault = obj.isDefault;
|
|
4312
|
+
const path_isDefault = path + '.isDefault';
|
|
4313
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
4314
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4308
4317
|
const obj_isSuccess = obj.isSuccess;
|
|
4309
4318
|
const path_isSuccess = path + '.isSuccess';
|
|
4310
4319
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
@@ -4346,6 +4355,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4346
4355
|
kind: 'Scalar',
|
|
4347
4356
|
required: false
|
|
4348
4357
|
},
|
|
4358
|
+
{
|
|
4359
|
+
name: 'isDefault',
|
|
4360
|
+
kind: 'Scalar',
|
|
4361
|
+
required: false
|
|
4362
|
+
},
|
|
4349
4363
|
{
|
|
4350
4364
|
name: 'isSuccess',
|
|
4351
4365
|
kind: 'Scalar'
|
|
@@ -4359,6 +4373,19 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4359
4373
|
};
|
|
4360
4374
|
};
|
|
4361
4375
|
function equals$1(existing, incoming) {
|
|
4376
|
+
const existing_isDefault = existing.isDefault;
|
|
4377
|
+
const incoming_isDefault = incoming.isDefault;
|
|
4378
|
+
// if at least one of these optionals is defined
|
|
4379
|
+
if (existing_isDefault !== undefined || incoming_isDefault !== undefined) {
|
|
4380
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4381
|
+
// not equal
|
|
4382
|
+
if (existing_isDefault === undefined || incoming_isDefault === undefined) {
|
|
4383
|
+
return false;
|
|
4384
|
+
}
|
|
4385
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
4386
|
+
return false;
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4362
4389
|
const existing_isSuccess = existing.isSuccess;
|
|
4363
4390
|
const incoming_isSuccess = incoming.isSuccess;
|
|
4364
4391
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -4680,7 +4707,7 @@ function select(luvio, params) {
|
|
|
4680
4707
|
return select$1();
|
|
4681
4708
|
}
|
|
4682
4709
|
function keyBuilder$1(luvio, params) {
|
|
4683
|
-
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
|
|
4710
|
+
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ',' + 'appName:' + params.queryParams.appName + ')';
|
|
4684
4711
|
}
|
|
4685
4712
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
4686
4713
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -4731,6 +4758,7 @@ function createResourceRequest(config) {
|
|
|
4731
4758
|
const adapterName = 'getAgents';
|
|
4732
4759
|
const getAgents_ConfigPropertyMetadata = [
|
|
4733
4760
|
generateParamConfigMetadata('agentType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4761
|
+
generateParamConfigMetadata('appName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4734
4762
|
];
|
|
4735
4763
|
const getAgents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAgents_ConfigPropertyMetadata);
|
|
4736
4764
|
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;
|
|
@@ -6,6 +6,7 @@ export declare const adapterName = "getRecommendedActions";
|
|
|
6
6
|
export declare const getRecommendedActions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getRecommendedActions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetRecommendedActionsConfig {
|
|
9
|
+
agentId?: string;
|
|
9
10
|
pageName?: string;
|
|
10
11
|
pageType: string;
|
|
11
12
|
actionName?: string;
|
|
@@ -6,6 +6,7 @@ export declare const adapterName = "getRecommendedUtterances";
|
|
|
6
6
|
export declare const getRecommendedUtterances_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getRecommendedUtterances_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetRecommendedUtterancesConfig {
|
|
9
|
+
agentId?: string;
|
|
9
10
|
sessionId: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetRecommendedUtterancesConfig) => resources_getConnectRecommendedUtterances_ResourceRequestConfig;
|
|
@@ -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;
|
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { RecommendedActionsRepresentation as types_RecommendedActionsRepresentation_RecommendedActionsRepresentation } from '../types/RecommendedActionsRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
agentId?: string;
|
|
5
6
|
pageName?: string;
|
|
6
7
|
pageType: string;
|
|
7
8
|
actionName?: string;
|
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { RecommendedUtterancesRepresentation as types_RecommendedUtterancesRepresentation_RecommendedUtterancesRepresentation } from '../types/RecommendedUtterancesRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
agentId?: string;
|
|
5
6
|
sessionId: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
@@ -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.354.0-
|
|
3
|
+
"version": "1.354.0-dev20",
|
|
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.354.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.354.0-dev20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev20"
|
|
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);
|
|
@@ -2313,7 +2339,7 @@ function select$g(luvio, params) {
|
|
|
2313
2339
|
return select$h();
|
|
2314
2340
|
}
|
|
2315
2341
|
function keyBuilder$a(luvio, params) {
|
|
2316
|
-
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
2342
|
+
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
2317
2343
|
}
|
|
2318
2344
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2319
2345
|
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
@@ -2363,6 +2389,7 @@ function createResourceRequest$5(config) {
|
|
|
2363
2389
|
|
|
2364
2390
|
const adapterName$5 = 'getRecommendedActions';
|
|
2365
2391
|
const getRecommendedActions_ConfigPropertyMetadata = [
|
|
2392
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2366
2393
|
generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2367
2394
|
generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
2368
2395
|
generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2936,7 +2963,7 @@ function select$b(luvio, params) {
|
|
|
2936
2963
|
return select$c();
|
|
2937
2964
|
}
|
|
2938
2965
|
function keyBuilder$6(luvio, params) {
|
|
2939
|
-
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
2966
|
+
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
2940
2967
|
}
|
|
2941
2968
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2942
2969
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -2986,6 +3013,7 @@ function createResourceRequest$3(config) {
|
|
|
2986
3013
|
|
|
2987
3014
|
const adapterName$3 = 'getRecommendedUtterances';
|
|
2988
3015
|
const getRecommendedUtterances_ConfigPropertyMetadata = [
|
|
3016
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2989
3017
|
generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
2990
3018
|
];
|
|
2991
3019
|
const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedUtterances_ConfigPropertyMetadata);
|
|
@@ -4938,4 +4966,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4938
4966
|
});
|
|
4939
4967
|
|
|
4940
4968
|
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.354.0-
|
|
4969
|
+
// version: 1.354.0-dev20-c23c23e6bf
|
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
|
|
@@ -783,6 +787,9 @@ types:
|
|
|
783
787
|
application/json:
|
|
784
788
|
type: RecommendedUtterancesRepresentation
|
|
785
789
|
queryParameters:
|
|
790
|
+
agentId:
|
|
791
|
+
type: string
|
|
792
|
+
required: false
|
|
786
793
|
sessionId:
|
|
787
794
|
type: string
|
|
788
795
|
required: true
|
|
@@ -797,6 +804,9 @@ types:
|
|
|
797
804
|
application/json:
|
|
798
805
|
type: RecommendedActionsRepresentation
|
|
799
806
|
queryParameters:
|
|
807
|
+
agentId:
|
|
808
|
+
type: string
|
|
809
|
+
required: false
|
|
800
810
|
pageName:
|
|
801
811
|
type: string
|
|
802
812
|
required: false
|
|
@@ -850,3 +860,6 @@ types:
|
|
|
850
860
|
agentType:
|
|
851
861
|
type: string
|
|
852
862
|
required: true
|
|
863
|
+
appName:
|
|
864
|
+
type: string
|
|
865
|
+
required: false
|