@salesforce/lds-adapters-service-einstein-copilot-bot 1.446.0 → 1.447.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 +478 -198
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/EsDeploymentInfoRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/MessagingChannelInfoRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +283 -3
- package/src/raml/api.raml +44 -0
package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentforceAgentBotInfoRepresentation as AgentforceAgentBotInfoRepresentation_AgentforceAgentBotInfoRepresentation } from './AgentforceAgentBotInfoRepresentation';
|
|
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
3
|
export declare const TTL = 30000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "230e5ddacb2457f15873cf4b932e3703";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: AgentforceAgentBotInfoListRepresentation, existing: AgentforceAgentBotInfoListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentforceAgentBotInfoListRepresentationNormalized;
|
|
@@ -26,6 +26,8 @@ export interface AgentforceAgentBotInfoListRepresentationNormalized {
|
|
|
26
26
|
falconInstance?: string;
|
|
27
27
|
/** Success indicator of the get operation. */
|
|
28
28
|
isSuccess: boolean;
|
|
29
|
+
/** SCRT2 my-domain URL for the org. */
|
|
30
|
+
scrtUrl?: string;
|
|
29
31
|
/** Indicates the SFAP Url */
|
|
30
32
|
sfapUrl?: string;
|
|
31
33
|
/** Target runtime region - pass through x-salesforce-region header for SFAP */
|
|
@@ -45,6 +47,7 @@ export interface AgentforceAgentBotInfoListRepresentation {
|
|
|
45
47
|
errorMessage?: string;
|
|
46
48
|
falconInstance?: string;
|
|
47
49
|
isSuccess: boolean;
|
|
50
|
+
scrtUrl?: string;
|
|
48
51
|
sfapUrl?: string;
|
|
49
52
|
targetRegion?: string;
|
|
50
53
|
tenantGuid?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { MessagingChannelInfoRepresentation as MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation } from './MessagingChannelInfoRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "4218ec9c1b9a06ae07be1342f42b1d36";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
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;
|
|
@@ -28,6 +29,8 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
|
|
|
28
29
|
isSuccess: boolean;
|
|
29
30
|
/** display label of the agent */
|
|
30
31
|
label?: string;
|
|
32
|
+
/** List of EmbeddedMessaging channels provisioned for this Agent. */
|
|
33
|
+
messagingChannels?: Array<MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation>;
|
|
31
34
|
/** Indicates whether the Agent will show Recommended prompts */
|
|
32
35
|
stopRecPrompts?: boolean;
|
|
33
36
|
/** Indicates whether the Agent will show Welcome prompts */
|
|
@@ -47,6 +50,7 @@ export interface AgentforceAgentBotInfoRepresentation {
|
|
|
47
50
|
isDefault?: boolean;
|
|
48
51
|
isSuccess: boolean;
|
|
49
52
|
label?: string;
|
|
53
|
+
messagingChannels?: Array<MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation>;
|
|
50
54
|
stopRecPrompts?: boolean;
|
|
51
55
|
stopWelcomePrompts?: boolean;
|
|
52
56
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = "46249d201efadd7e3dcf7cfbe6728f48";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EsDeploymentInfoRepresentation, existing: EsDeploymentInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EsDeploymentInfoRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EsDeploymentInfoRepresentationNormalized, incoming: EsDeploymentInfoRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EsDeploymentInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents an EmbeddedServiceConfig deployment linked to a messaging channel
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EsDeploymentInfoRepresentationNormalized {
|
|
17
|
+
/** DeploymentType of the EmbeddedServiceConfig deployment. */
|
|
18
|
+
deploymentType?: string;
|
|
19
|
+
/** DeveloperName of the EmbeddedServiceConfig deployment. */
|
|
20
|
+
developerName?: string;
|
|
21
|
+
/** NamespacePrefix of the EmbeddedServiceConfig deployment. */
|
|
22
|
+
namespacePrefix?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents an EmbeddedServiceConfig deployment linked to a messaging channel
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface EsDeploymentInfoRepresentation {
|
|
31
|
+
deploymentType?: string;
|
|
32
|
+
developerName?: string;
|
|
33
|
+
namespacePrefix?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EsDeploymentInfoRepresentation as EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation } from './EsDeploymentInfoRepresentation';
|
|
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 = "c946e14d9f53600016e83b9a0291dd95";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
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;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: MessagingChannelInfoRepresentationNormalized, incoming: MessagingChannelInfoRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MessagingChannelInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents a MessagingChannel linked to an Agentforce agent, including auth mode and deployments
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface MessagingChannelInfoRepresentationNormalized {
|
|
18
|
+
/** Auth mode of the EmbeddedMessaging channel (e.g. Auth, UnAuth). */
|
|
19
|
+
authMode?: string;
|
|
20
|
+
/** List of EmbeddedServiceConfig deployments linked to this messaging channel. */
|
|
21
|
+
deployments?: Array<EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation>;
|
|
22
|
+
/** Messaging platform key of the EmbeddedMessaging channel. */
|
|
23
|
+
messagingChannelPlatformKey?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents a MessagingChannel linked to an Agentforce agent, including auth mode and deployments
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface MessagingChannelInfoRepresentation {
|
|
32
|
+
authMode?: string;
|
|
33
|
+
deployments?: Array<EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation>;
|
|
34
|
+
messagingChannelPlatformKey?: string;
|
|
35
|
+
}
|
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.447.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.447.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.447.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -122,7 +122,219 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
125
|
+
const VERSION$l = "46249d201efadd7e3dcf7cfbe6728f48";
|
|
126
|
+
function validate$s(obj, path = 'EsDeploymentInfoRepresentation') {
|
|
127
|
+
const v_error = (() => {
|
|
128
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
130
|
+
}
|
|
131
|
+
if (obj.deploymentType !== undefined) {
|
|
132
|
+
const obj_deploymentType = obj.deploymentType;
|
|
133
|
+
const path_deploymentType = path + '.deploymentType';
|
|
134
|
+
if (typeof obj_deploymentType !== 'string') {
|
|
135
|
+
return new TypeError('Expected "string" but received "' + typeof obj_deploymentType + '" (at "' + path_deploymentType + '")');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (obj.developerName !== undefined) {
|
|
139
|
+
const obj_developerName = obj.developerName;
|
|
140
|
+
const path_developerName = path + '.developerName';
|
|
141
|
+
if (typeof obj_developerName !== 'string') {
|
|
142
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (obj.namespacePrefix !== undefined) {
|
|
146
|
+
const obj_namespacePrefix = obj.namespacePrefix;
|
|
147
|
+
const path_namespacePrefix = path + '.namespacePrefix';
|
|
148
|
+
if (typeof obj_namespacePrefix !== 'string') {
|
|
149
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
})();
|
|
153
|
+
return v_error === undefined ? null : v_error;
|
|
154
|
+
}
|
|
155
|
+
const select$v = function EsDeploymentInfoRepresentationSelect() {
|
|
156
|
+
return {
|
|
157
|
+
kind: 'Fragment',
|
|
158
|
+
version: VERSION$l,
|
|
159
|
+
private: [],
|
|
160
|
+
selections: [
|
|
161
|
+
{
|
|
162
|
+
name: 'deploymentType',
|
|
163
|
+
kind: 'Scalar',
|
|
164
|
+
required: false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'developerName',
|
|
168
|
+
kind: 'Scalar',
|
|
169
|
+
required: false
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'namespacePrefix',
|
|
173
|
+
kind: 'Scalar',
|
|
174
|
+
required: false
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
function equals$l(existing, incoming) {
|
|
180
|
+
const existing_deploymentType = existing.deploymentType;
|
|
181
|
+
const incoming_deploymentType = incoming.deploymentType;
|
|
182
|
+
// if at least one of these optionals is defined
|
|
183
|
+
if (existing_deploymentType !== undefined || incoming_deploymentType !== undefined) {
|
|
184
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
185
|
+
// not equal
|
|
186
|
+
if (existing_deploymentType === undefined || incoming_deploymentType === undefined) {
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
if (!(existing_deploymentType === incoming_deploymentType)) {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const existing_developerName = existing.developerName;
|
|
194
|
+
const incoming_developerName = incoming.developerName;
|
|
195
|
+
// if at least one of these optionals is defined
|
|
196
|
+
if (existing_developerName !== undefined || incoming_developerName !== undefined) {
|
|
197
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
198
|
+
// not equal
|
|
199
|
+
if (existing_developerName === undefined || incoming_developerName === undefined) {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const existing_namespacePrefix = existing.namespacePrefix;
|
|
207
|
+
const incoming_namespacePrefix = incoming.namespacePrefix;
|
|
208
|
+
// if at least one of these optionals is defined
|
|
209
|
+
if (existing_namespacePrefix !== undefined || incoming_namespacePrefix !== undefined) {
|
|
210
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
211
|
+
// not equal
|
|
212
|
+
if (existing_namespacePrefix === undefined || incoming_namespacePrefix === undefined) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
if (!(existing_namespacePrefix === incoming_namespacePrefix)) {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const VERSION$k = "c946e14d9f53600016e83b9a0291dd95";
|
|
223
|
+
function validate$r(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
224
|
+
const v_error = (() => {
|
|
225
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
226
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
227
|
+
}
|
|
228
|
+
if (obj.authMode !== undefined) {
|
|
229
|
+
const obj_authMode = obj.authMode;
|
|
230
|
+
const path_authMode = path + '.authMode';
|
|
231
|
+
if (typeof obj_authMode !== 'string') {
|
|
232
|
+
return new TypeError('Expected "string" but received "' + typeof obj_authMode + '" (at "' + path_authMode + '")');
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (obj.deployments !== undefined) {
|
|
236
|
+
const obj_deployments = obj.deployments;
|
|
237
|
+
const path_deployments = path + '.deployments';
|
|
238
|
+
if (!ArrayIsArray(obj_deployments)) {
|
|
239
|
+
return new TypeError('Expected "array" but received "' + typeof obj_deployments + '" (at "' + path_deployments + '")');
|
|
240
|
+
}
|
|
241
|
+
for (let i = 0; i < obj_deployments.length; i++) {
|
|
242
|
+
const obj_deployments_item = obj_deployments[i];
|
|
243
|
+
const path_deployments_item = path_deployments + '[' + i + ']';
|
|
244
|
+
const referencepath_deployments_itemValidationError = validate$s(obj_deployments_item, path_deployments_item);
|
|
245
|
+
if (referencepath_deployments_itemValidationError !== null) {
|
|
246
|
+
let message = 'Object doesn\'t match EsDeploymentInfoRepresentation (at "' + path_deployments_item + '")\n';
|
|
247
|
+
message += referencepath_deployments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
248
|
+
return new TypeError(message);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
if (obj.messagingChannelPlatformKey !== undefined) {
|
|
253
|
+
const obj_messagingChannelPlatformKey = obj.messagingChannelPlatformKey;
|
|
254
|
+
const path_messagingChannelPlatformKey = path + '.messagingChannelPlatformKey';
|
|
255
|
+
if (typeof obj_messagingChannelPlatformKey !== 'string') {
|
|
256
|
+
return new TypeError('Expected "string" but received "' + typeof obj_messagingChannelPlatformKey + '" (at "' + path_messagingChannelPlatformKey + '")');
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
})();
|
|
260
|
+
return v_error === undefined ? null : v_error;
|
|
261
|
+
}
|
|
262
|
+
const select$u = function MessagingChannelInfoRepresentationSelect() {
|
|
263
|
+
const { selections: EsDeploymentInfoRepresentation__selections, opaque: EsDeploymentInfoRepresentation__opaque, } = select$v();
|
|
264
|
+
return {
|
|
265
|
+
kind: 'Fragment',
|
|
266
|
+
version: VERSION$k,
|
|
267
|
+
private: [],
|
|
268
|
+
selections: [
|
|
269
|
+
{
|
|
270
|
+
name: 'authMode',
|
|
271
|
+
kind: 'Scalar',
|
|
272
|
+
required: false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: 'deployments',
|
|
276
|
+
kind: 'Object',
|
|
277
|
+
plural: true,
|
|
278
|
+
selections: EsDeploymentInfoRepresentation__selections,
|
|
279
|
+
required: false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'messagingChannelPlatformKey',
|
|
283
|
+
kind: 'Scalar',
|
|
284
|
+
required: false
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
function equals$k(existing, incoming) {
|
|
290
|
+
const existing_authMode = existing.authMode;
|
|
291
|
+
const incoming_authMode = incoming.authMode;
|
|
292
|
+
// if at least one of these optionals is defined
|
|
293
|
+
if (existing_authMode !== undefined || incoming_authMode !== undefined) {
|
|
294
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
295
|
+
// not equal
|
|
296
|
+
if (existing_authMode === undefined || incoming_authMode === undefined) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
if (!(existing_authMode === incoming_authMode)) {
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
const existing_messagingChannelPlatformKey = existing.messagingChannelPlatformKey;
|
|
304
|
+
const incoming_messagingChannelPlatformKey = incoming.messagingChannelPlatformKey;
|
|
305
|
+
// if at least one of these optionals is defined
|
|
306
|
+
if (existing_messagingChannelPlatformKey !== undefined || incoming_messagingChannelPlatformKey !== undefined) {
|
|
307
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
308
|
+
// not equal
|
|
309
|
+
if (existing_messagingChannelPlatformKey === undefined || incoming_messagingChannelPlatformKey === undefined) {
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
if (!(existing_messagingChannelPlatformKey === incoming_messagingChannelPlatformKey)) {
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
const existing_deployments = existing.deployments;
|
|
317
|
+
const incoming_deployments = incoming.deployments;
|
|
318
|
+
// if at least one of these optionals is defined
|
|
319
|
+
if (existing_deployments !== undefined || incoming_deployments !== undefined) {
|
|
320
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
321
|
+
// not equal
|
|
322
|
+
if (existing_deployments === undefined || incoming_deployments === undefined) {
|
|
323
|
+
return false;
|
|
324
|
+
}
|
|
325
|
+
const equals_deployments_items = equalsArray(existing_deployments, incoming_deployments, (existing_deployments_item, incoming_deployments_item) => {
|
|
326
|
+
if (!(equals$l(existing_deployments_item, incoming_deployments_item))) {
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
if (equals_deployments_items === false) {
|
|
331
|
+
return false;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const VERSION$j = "4218ec9c1b9a06ae07be1342f42b1d36";
|
|
126
338
|
function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
127
339
|
const v_error = (() => {
|
|
128
340
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -175,6 +387,23 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
175
387
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
176
388
|
}
|
|
177
389
|
}
|
|
390
|
+
if (obj.messagingChannels !== undefined) {
|
|
391
|
+
const obj_messagingChannels = obj.messagingChannels;
|
|
392
|
+
const path_messagingChannels = path + '.messagingChannels';
|
|
393
|
+
if (!ArrayIsArray(obj_messagingChannels)) {
|
|
394
|
+
return new TypeError('Expected "array" but received "' + typeof obj_messagingChannels + '" (at "' + path_messagingChannels + '")');
|
|
395
|
+
}
|
|
396
|
+
for (let i = 0; i < obj_messagingChannels.length; i++) {
|
|
397
|
+
const obj_messagingChannels_item = obj_messagingChannels[i];
|
|
398
|
+
const path_messagingChannels_item = path_messagingChannels + '[' + i + ']';
|
|
399
|
+
const referencepath_messagingChannels_itemValidationError = validate$r(obj_messagingChannels_item, path_messagingChannels_item);
|
|
400
|
+
if (referencepath_messagingChannels_itemValidationError !== null) {
|
|
401
|
+
let message = 'Object doesn\'t match MessagingChannelInfoRepresentation (at "' + path_messagingChannels_item + '")\n';
|
|
402
|
+
message += referencepath_messagingChannels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
403
|
+
return new TypeError(message);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
178
407
|
if (obj.stopRecPrompts !== undefined) {
|
|
179
408
|
const obj_stopRecPrompts = obj.stopRecPrompts;
|
|
180
409
|
const path_stopRecPrompts = path + '.stopRecPrompts';
|
|
@@ -193,6 +422,7 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
193
422
|
return v_error === undefined ? null : v_error;
|
|
194
423
|
}
|
|
195
424
|
const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
425
|
+
const { selections: MessagingChannelInfoRepresentation__selections, opaque: MessagingChannelInfoRepresentation__opaque, } = select$u();
|
|
196
426
|
return {
|
|
197
427
|
kind: 'Fragment',
|
|
198
428
|
version: VERSION$j,
|
|
@@ -232,6 +462,13 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
232
462
|
kind: 'Scalar',
|
|
233
463
|
required: false
|
|
234
464
|
},
|
|
465
|
+
{
|
|
466
|
+
name: 'messagingChannels',
|
|
467
|
+
kind: 'Object',
|
|
468
|
+
plural: true,
|
|
469
|
+
selections: MessagingChannelInfoRepresentation__selections,
|
|
470
|
+
required: false
|
|
471
|
+
},
|
|
235
472
|
{
|
|
236
473
|
name: 'stopRecPrompts',
|
|
237
474
|
kind: 'Scalar',
|
|
@@ -355,11 +592,29 @@ function equals$j(existing, incoming) {
|
|
|
355
592
|
return false;
|
|
356
593
|
}
|
|
357
594
|
}
|
|
595
|
+
const existing_messagingChannels = existing.messagingChannels;
|
|
596
|
+
const incoming_messagingChannels = incoming.messagingChannels;
|
|
597
|
+
// if at least one of these optionals is defined
|
|
598
|
+
if (existing_messagingChannels !== undefined || incoming_messagingChannels !== undefined) {
|
|
599
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
600
|
+
// not equal
|
|
601
|
+
if (existing_messagingChannels === undefined || incoming_messagingChannels === undefined) {
|
|
602
|
+
return false;
|
|
603
|
+
}
|
|
604
|
+
const equals_messagingChannels_items = equalsArray(existing_messagingChannels, incoming_messagingChannels, (existing_messagingChannels_item, incoming_messagingChannels_item) => {
|
|
605
|
+
if (!(equals$k(existing_messagingChannels_item, incoming_messagingChannels_item))) {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
if (equals_messagingChannels_items === false) {
|
|
610
|
+
return false;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
358
613
|
return true;
|
|
359
614
|
}
|
|
360
615
|
|
|
361
616
|
const TTL$a = 30000;
|
|
362
|
-
const VERSION$i = "
|
|
617
|
+
const VERSION$i = "230e5ddacb2457f15873cf4b932e3703";
|
|
363
618
|
function validate$p(obj, path = 'AgentforceAgentBotInfoListRepresentation') {
|
|
364
619
|
const v_error = (() => {
|
|
365
620
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -406,6 +661,13 @@ function validate$p(obj, path = 'AgentforceAgentBotInfoListRepresentation') {
|
|
|
406
661
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
407
662
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
408
663
|
}
|
|
664
|
+
if (obj.scrtUrl !== undefined) {
|
|
665
|
+
const obj_scrtUrl = obj.scrtUrl;
|
|
666
|
+
const path_scrtUrl = path + '.scrtUrl';
|
|
667
|
+
if (typeof obj_scrtUrl !== 'string') {
|
|
668
|
+
return new TypeError('Expected "string" but received "' + typeof obj_scrtUrl + '" (at "' + path_scrtUrl + '")');
|
|
669
|
+
}
|
|
670
|
+
}
|
|
409
671
|
if (obj.sfapUrl !== undefined) {
|
|
410
672
|
const obj_sfapUrl = obj.sfapUrl;
|
|
411
673
|
const path_sfapUrl = path + '.sfapUrl';
|
|
@@ -466,6 +728,11 @@ const select$s = function AgentforceAgentBotInfoListRepresentationSelect() {
|
|
|
466
728
|
name: 'isSuccess',
|
|
467
729
|
kind: 'Scalar'
|
|
468
730
|
},
|
|
731
|
+
{
|
|
732
|
+
name: 'scrtUrl',
|
|
733
|
+
kind: 'Scalar',
|
|
734
|
+
required: false
|
|
735
|
+
},
|
|
469
736
|
{
|
|
470
737
|
name: 'sfapUrl',
|
|
471
738
|
kind: 'Scalar',
|
|
@@ -529,6 +796,19 @@ function equals$i(existing, incoming) {
|
|
|
529
796
|
return false;
|
|
530
797
|
}
|
|
531
798
|
}
|
|
799
|
+
const existing_scrtUrl = existing.scrtUrl;
|
|
800
|
+
const incoming_scrtUrl = incoming.scrtUrl;
|
|
801
|
+
// if at least one of these optionals is defined
|
|
802
|
+
if (existing_scrtUrl !== undefined || incoming_scrtUrl !== undefined) {
|
|
803
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
804
|
+
// not equal
|
|
805
|
+
if (existing_scrtUrl === undefined || incoming_scrtUrl === undefined) {
|
|
806
|
+
return false;
|
|
807
|
+
}
|
|
808
|
+
if (!(existing_scrtUrl === incoming_scrtUrl)) {
|
|
809
|
+
return false;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
532
812
|
const existing_sfapUrl = existing.sfapUrl;
|
|
533
813
|
const incoming_sfapUrl = incoming.sfapUrl;
|
|
534
814
|
// if at least one of these optionals is defined
|
|
@@ -5016,4 +5296,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5016
5296
|
});
|
|
5017
5297
|
|
|
5018
5298
|
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.
|
|
5299
|
+
// version: 1.447.0-b75721e8dd
|
package/src/raml/api.raml
CHANGED
|
@@ -640,6 +640,12 @@ types:
|
|
|
640
640
|
description: Indicates whether the Agent will show Welcome prompts
|
|
641
641
|
type: boolean
|
|
642
642
|
required: false
|
|
643
|
+
messagingChannels:
|
|
644
|
+
description: List of EmbeddedMessaging channels provisioned for this Agent.
|
|
645
|
+
type: array
|
|
646
|
+
required: false
|
|
647
|
+
items:
|
|
648
|
+
type: MessagingChannelInfoRepresentation
|
|
643
649
|
AgentforceAgentBotInfoListRepresentation:
|
|
644
650
|
description: Represents the resultant list with agents per agent type including bot metadata
|
|
645
651
|
type: object
|
|
@@ -672,11 +678,49 @@ types:
|
|
|
672
678
|
description: Indicates the SFAP Url
|
|
673
679
|
type: string
|
|
674
680
|
required: false
|
|
681
|
+
scrtUrl:
|
|
682
|
+
description: SCRT2 my-domain URL for the org.
|
|
683
|
+
type: string
|
|
684
|
+
required: false
|
|
675
685
|
agents:
|
|
676
686
|
description: List of agents
|
|
677
687
|
type: array
|
|
678
688
|
items:
|
|
679
689
|
type: AgentforceAgentBotInfoRepresentation
|
|
690
|
+
MessagingChannelInfoRepresentation:
|
|
691
|
+
description: Represents a MessagingChannel linked to an Agentforce agent, including auth mode and deployments
|
|
692
|
+
type: object
|
|
693
|
+
properties:
|
|
694
|
+
messagingChannelPlatformKey:
|
|
695
|
+
description: Messaging platform key of the EmbeddedMessaging channel.
|
|
696
|
+
type: string
|
|
697
|
+
required: false
|
|
698
|
+
authMode:
|
|
699
|
+
description: Auth mode of the EmbeddedMessaging channel (e.g. Auth, UnAuth).
|
|
700
|
+
type: string
|
|
701
|
+
required: false
|
|
702
|
+
deployments:
|
|
703
|
+
description: List of EmbeddedServiceConfig deployments linked to this messaging channel.
|
|
704
|
+
type: array
|
|
705
|
+
required: false
|
|
706
|
+
items:
|
|
707
|
+
type: EsDeploymentInfoRepresentation
|
|
708
|
+
EsDeploymentInfoRepresentation:
|
|
709
|
+
description: Represents an EmbeddedServiceConfig deployment linked to a messaging channel
|
|
710
|
+
type: object
|
|
711
|
+
properties:
|
|
712
|
+
developerName:
|
|
713
|
+
description: DeveloperName of the EmbeddedServiceConfig deployment.
|
|
714
|
+
type: string
|
|
715
|
+
required: false
|
|
716
|
+
namespacePrefix:
|
|
717
|
+
description: NamespacePrefix of the EmbeddedServiceConfig deployment.
|
|
718
|
+
type: string
|
|
719
|
+
required: false
|
|
720
|
+
deploymentType:
|
|
721
|
+
description: DeploymentType of the EmbeddedServiceConfig deployment.
|
|
722
|
+
type: string
|
|
723
|
+
required: false
|
|
680
724
|
|
|
681
725
|
/connect:
|
|
682
726
|
/conversation-runtime-proxy:
|