@salesforce/lds-adapters-service-einstein-copilot-bot 1.341.0 → 1.342.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 +1160 -617
- package/dist/es/es2018/types/src/generated/adapters/getAgents.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectAgentforceAgentInfo.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +43 -0
- package/package.json +3 -3
- package/sfdc/index.js +579 -28
- package/src/raml/api.raml +78 -0
- package/src/raml/luvio.raml +6 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$a, StoreKeyMap, createResourceParams as createResourceParams$a } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -122,6 +122,549 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
const VERSION$j = "5cdcbe9b9b5307f4d285345d68c3236c";
|
|
126
|
+
function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
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.agentType !== undefined) {
|
|
132
|
+
const obj_agentType = obj.agentType;
|
|
133
|
+
const path_agentType = path + '.agentType';
|
|
134
|
+
if (typeof obj_agentType !== 'string') {
|
|
135
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agentType + '" (at "' + path_agentType + '")');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (obj.botId !== undefined) {
|
|
139
|
+
const obj_botId = obj.botId;
|
|
140
|
+
const path_botId = path + '.botId';
|
|
141
|
+
if (typeof obj_botId !== 'string') {
|
|
142
|
+
return new TypeError('Expected "string" but received "' + typeof obj_botId + '" (at "' + path_botId + '")');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (obj.description !== undefined) {
|
|
146
|
+
const obj_description = obj.description;
|
|
147
|
+
const path_description = path + '.description';
|
|
148
|
+
if (typeof obj_description !== 'string') {
|
|
149
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (obj.errorMessage !== undefined) {
|
|
153
|
+
const obj_errorMessage = obj.errorMessage;
|
|
154
|
+
const path_errorMessage = path + '.errorMessage';
|
|
155
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
156
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const obj_isSuccess = obj.isSuccess;
|
|
160
|
+
const path_isSuccess = path + '.isSuccess';
|
|
161
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
162
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
163
|
+
}
|
|
164
|
+
if (obj.label !== undefined) {
|
|
165
|
+
const obj_label = obj.label;
|
|
166
|
+
const path_label = path + '.label';
|
|
167
|
+
if (typeof obj_label !== 'string') {
|
|
168
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
})();
|
|
172
|
+
return v_error === undefined ? null : v_error;
|
|
173
|
+
}
|
|
174
|
+
const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
175
|
+
return {
|
|
176
|
+
kind: 'Fragment',
|
|
177
|
+
version: VERSION$j,
|
|
178
|
+
private: [],
|
|
179
|
+
selections: [
|
|
180
|
+
{
|
|
181
|
+
name: 'agentType',
|
|
182
|
+
kind: 'Scalar',
|
|
183
|
+
required: false
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'botId',
|
|
187
|
+
kind: 'Scalar',
|
|
188
|
+
required: false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'description',
|
|
192
|
+
kind: 'Scalar',
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'errorMessage',
|
|
197
|
+
kind: 'Scalar',
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'isSuccess',
|
|
202
|
+
kind: 'Scalar'
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'label',
|
|
206
|
+
kind: 'Scalar',
|
|
207
|
+
required: false
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
function equals$j(existing, incoming) {
|
|
213
|
+
const existing_isSuccess = existing.isSuccess;
|
|
214
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
215
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
const existing_agentType = existing.agentType;
|
|
219
|
+
const incoming_agentType = incoming.agentType;
|
|
220
|
+
// if at least one of these optionals is defined
|
|
221
|
+
if (existing_agentType !== undefined || incoming_agentType !== undefined) {
|
|
222
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
223
|
+
// not equal
|
|
224
|
+
if (existing_agentType === undefined || incoming_agentType === undefined) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
if (!(existing_agentType === incoming_agentType)) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
const existing_botId = existing.botId;
|
|
232
|
+
const incoming_botId = incoming.botId;
|
|
233
|
+
// if at least one of these optionals is defined
|
|
234
|
+
if (existing_botId !== undefined || incoming_botId !== undefined) {
|
|
235
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
236
|
+
// not equal
|
|
237
|
+
if (existing_botId === undefined || incoming_botId === undefined) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
if (!(existing_botId === incoming_botId)) {
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const existing_description = existing.description;
|
|
245
|
+
const incoming_description = incoming.description;
|
|
246
|
+
// if at least one of these optionals is defined
|
|
247
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
248
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
249
|
+
// not equal
|
|
250
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
if (!(existing_description === incoming_description)) {
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
const existing_errorMessage = existing.errorMessage;
|
|
258
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
259
|
+
// if at least one of these optionals is defined
|
|
260
|
+
if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
|
|
261
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
262
|
+
// not equal
|
|
263
|
+
if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const existing_label = existing.label;
|
|
271
|
+
const incoming_label = incoming.label;
|
|
272
|
+
// if at least one of these optionals is defined
|
|
273
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
274
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
275
|
+
// not equal
|
|
276
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
if (!(existing_label === incoming_label)) {
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return true;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
const TTL$a = 30000;
|
|
287
|
+
const VERSION$i = "5b4c81cace1018ccf690bdfdf945fb37";
|
|
288
|
+
function validate$p(obj, path = 'AgentforceAgentBotInfoListRepresentation') {
|
|
289
|
+
const v_error = (() => {
|
|
290
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
291
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
292
|
+
}
|
|
293
|
+
const obj_agents = obj.agents;
|
|
294
|
+
const path_agents = path + '.agents';
|
|
295
|
+
if (!ArrayIsArray(obj_agents)) {
|
|
296
|
+
return new TypeError('Expected "array" but received "' + typeof obj_agents + '" (at "' + path_agents + '")');
|
|
297
|
+
}
|
|
298
|
+
for (let i = 0; i < obj_agents.length; i++) {
|
|
299
|
+
const obj_agents_item = obj_agents[i];
|
|
300
|
+
const path_agents_item = path_agents + '[' + i + ']';
|
|
301
|
+
const referencepath_agents_itemValidationError = validate$q(obj_agents_item, path_agents_item);
|
|
302
|
+
if (referencepath_agents_itemValidationError !== null) {
|
|
303
|
+
let message = 'Object doesn\'t match AgentforceAgentBotInfoRepresentation (at "' + path_agents_item + '")\n';
|
|
304
|
+
message += referencepath_agents_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
305
|
+
return new TypeError(message);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (obj.apiEndpoint !== undefined) {
|
|
309
|
+
const obj_apiEndpoint = obj.apiEndpoint;
|
|
310
|
+
const path_apiEndpoint = path + '.apiEndpoint';
|
|
311
|
+
if (typeof obj_apiEndpoint !== 'string') {
|
|
312
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiEndpoint + '" (at "' + path_apiEndpoint + '")');
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if (obj.errorMessage !== undefined) {
|
|
316
|
+
const obj_errorMessage = obj.errorMessage;
|
|
317
|
+
const path_errorMessage = path + '.errorMessage';
|
|
318
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
319
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (obj.falconInstance !== undefined) {
|
|
323
|
+
const obj_falconInstance = obj.falconInstance;
|
|
324
|
+
const path_falconInstance = path + '.falconInstance';
|
|
325
|
+
if (typeof obj_falconInstance !== 'string') {
|
|
326
|
+
return new TypeError('Expected "string" but received "' + typeof obj_falconInstance + '" (at "' + path_falconInstance + '")');
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
const obj_isSuccess = obj.isSuccess;
|
|
330
|
+
const path_isSuccess = path + '.isSuccess';
|
|
331
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
332
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
333
|
+
}
|
|
334
|
+
if (obj.sfapUrl !== undefined) {
|
|
335
|
+
const obj_sfapUrl = obj.sfapUrl;
|
|
336
|
+
const path_sfapUrl = path + '.sfapUrl';
|
|
337
|
+
if (typeof obj_sfapUrl !== 'string') {
|
|
338
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sfapUrl + '" (at "' + path_sfapUrl + '")');
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (obj.targetRegion !== undefined) {
|
|
342
|
+
const obj_targetRegion = obj.targetRegion;
|
|
343
|
+
const path_targetRegion = path + '.targetRegion';
|
|
344
|
+
if (typeof obj_targetRegion !== 'string') {
|
|
345
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetRegion + '" (at "' + path_targetRegion + '")');
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (obj.tenantGuid !== undefined) {
|
|
349
|
+
const obj_tenantGuid = obj.tenantGuid;
|
|
350
|
+
const path_tenantGuid = path + '.tenantGuid';
|
|
351
|
+
if (typeof obj_tenantGuid !== 'string') {
|
|
352
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tenantGuid + '" (at "' + path_tenantGuid + '")');
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
})();
|
|
356
|
+
return v_error === undefined ? null : v_error;
|
|
357
|
+
}
|
|
358
|
+
const RepresentationType$a = 'AgentforceAgentBotInfoListRepresentation';
|
|
359
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
360
|
+
return input;
|
|
361
|
+
}
|
|
362
|
+
const select$s = function AgentforceAgentBotInfoListRepresentationSelect() {
|
|
363
|
+
const { selections: AgentforceAgentBotInfoRepresentation__selections, opaque: AgentforceAgentBotInfoRepresentation__opaque, } = select$t();
|
|
364
|
+
return {
|
|
365
|
+
kind: 'Fragment',
|
|
366
|
+
version: VERSION$i,
|
|
367
|
+
private: [],
|
|
368
|
+
selections: [
|
|
369
|
+
{
|
|
370
|
+
name: 'agents',
|
|
371
|
+
kind: 'Object',
|
|
372
|
+
plural: true,
|
|
373
|
+
selections: AgentforceAgentBotInfoRepresentation__selections
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: 'apiEndpoint',
|
|
377
|
+
kind: 'Scalar',
|
|
378
|
+
required: false
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: 'errorMessage',
|
|
382
|
+
kind: 'Scalar',
|
|
383
|
+
required: false
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: 'falconInstance',
|
|
387
|
+
kind: 'Scalar',
|
|
388
|
+
required: false
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: 'isSuccess',
|
|
392
|
+
kind: 'Scalar'
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: 'sfapUrl',
|
|
396
|
+
kind: 'Scalar',
|
|
397
|
+
required: false
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: 'targetRegion',
|
|
401
|
+
kind: 'Scalar',
|
|
402
|
+
required: false
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: 'tenantGuid',
|
|
406
|
+
kind: 'Scalar',
|
|
407
|
+
required: false
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
function equals$i(existing, incoming) {
|
|
413
|
+
const existing_isSuccess = existing.isSuccess;
|
|
414
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
415
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
const existing_apiEndpoint = existing.apiEndpoint;
|
|
419
|
+
const incoming_apiEndpoint = incoming.apiEndpoint;
|
|
420
|
+
// if at least one of these optionals is defined
|
|
421
|
+
if (existing_apiEndpoint !== undefined || incoming_apiEndpoint !== undefined) {
|
|
422
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
423
|
+
// not equal
|
|
424
|
+
if (existing_apiEndpoint === undefined || incoming_apiEndpoint === undefined) {
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
if (!(existing_apiEndpoint === incoming_apiEndpoint)) {
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
const existing_errorMessage = existing.errorMessage;
|
|
432
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
433
|
+
// if at least one of these optionals is defined
|
|
434
|
+
if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
|
|
435
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
436
|
+
// not equal
|
|
437
|
+
if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
|
|
438
|
+
return false;
|
|
439
|
+
}
|
|
440
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
441
|
+
return false;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
const existing_falconInstance = existing.falconInstance;
|
|
445
|
+
const incoming_falconInstance = incoming.falconInstance;
|
|
446
|
+
// if at least one of these optionals is defined
|
|
447
|
+
if (existing_falconInstance !== undefined || incoming_falconInstance !== undefined) {
|
|
448
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
449
|
+
// not equal
|
|
450
|
+
if (existing_falconInstance === undefined || incoming_falconInstance === undefined) {
|
|
451
|
+
return false;
|
|
452
|
+
}
|
|
453
|
+
if (!(existing_falconInstance === incoming_falconInstance)) {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
const existing_sfapUrl = existing.sfapUrl;
|
|
458
|
+
const incoming_sfapUrl = incoming.sfapUrl;
|
|
459
|
+
// if at least one of these optionals is defined
|
|
460
|
+
if (existing_sfapUrl !== undefined || incoming_sfapUrl !== undefined) {
|
|
461
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
462
|
+
// not equal
|
|
463
|
+
if (existing_sfapUrl === undefined || incoming_sfapUrl === undefined) {
|
|
464
|
+
return false;
|
|
465
|
+
}
|
|
466
|
+
if (!(existing_sfapUrl === incoming_sfapUrl)) {
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
const existing_targetRegion = existing.targetRegion;
|
|
471
|
+
const incoming_targetRegion = incoming.targetRegion;
|
|
472
|
+
// if at least one of these optionals is defined
|
|
473
|
+
if (existing_targetRegion !== undefined || incoming_targetRegion !== undefined) {
|
|
474
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
475
|
+
// not equal
|
|
476
|
+
if (existing_targetRegion === undefined || incoming_targetRegion === undefined) {
|
|
477
|
+
return false;
|
|
478
|
+
}
|
|
479
|
+
if (!(existing_targetRegion === incoming_targetRegion)) {
|
|
480
|
+
return false;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
const existing_tenantGuid = existing.tenantGuid;
|
|
484
|
+
const incoming_tenantGuid = incoming.tenantGuid;
|
|
485
|
+
// if at least one of these optionals is defined
|
|
486
|
+
if (existing_tenantGuid !== undefined || incoming_tenantGuid !== undefined) {
|
|
487
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
488
|
+
// not equal
|
|
489
|
+
if (existing_tenantGuid === undefined || incoming_tenantGuid === undefined) {
|
|
490
|
+
return false;
|
|
491
|
+
}
|
|
492
|
+
if (!(existing_tenantGuid === incoming_tenantGuid)) {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
const existing_agents = existing.agents;
|
|
497
|
+
const incoming_agents = incoming.agents;
|
|
498
|
+
const equals_agents_items = equalsArray(existing_agents, incoming_agents, (existing_agents_item, incoming_agents_item) => {
|
|
499
|
+
if (!(equals$j(existing_agents_item, incoming_agents_item))) {
|
|
500
|
+
return false;
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
if (equals_agents_items === false) {
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
506
|
+
return true;
|
|
507
|
+
}
|
|
508
|
+
const ingest$a = function AgentforceAgentBotInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
509
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
510
|
+
const validateError = validate$p(input);
|
|
511
|
+
if (validateError !== null) {
|
|
512
|
+
throw validateError;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
const key = path.fullPath;
|
|
516
|
+
const ttlToUse = TTL$a;
|
|
517
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "einstein-copilot-bot", VERSION$i, RepresentationType$a, equals$i);
|
|
518
|
+
return createLink(key);
|
|
519
|
+
};
|
|
520
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
521
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
522
|
+
const rootKey = fullPathFactory();
|
|
523
|
+
rootKeySet.set(rootKey, {
|
|
524
|
+
namespace: keyPrefix,
|
|
525
|
+
representationName: RepresentationType$a,
|
|
526
|
+
mergeable: false
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
function select$r(luvio, params) {
|
|
531
|
+
return select$s();
|
|
532
|
+
}
|
|
533
|
+
function keyBuilder$i(luvio, params) {
|
|
534
|
+
return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
|
|
535
|
+
}
|
|
536
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
537
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
|
|
538
|
+
}
|
|
539
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
540
|
+
const { body } = response;
|
|
541
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
542
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
543
|
+
const snapshot = luvio.storeLookup({
|
|
544
|
+
recordId: key,
|
|
545
|
+
node: select$r(),
|
|
546
|
+
variables: {},
|
|
547
|
+
}, snapshotRefresh);
|
|
548
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
549
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
550
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
deepFreeze(snapshot.data);
|
|
554
|
+
return snapshot;
|
|
555
|
+
}
|
|
556
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
557
|
+
const key = keyBuilder$i(luvio, params);
|
|
558
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
559
|
+
const storeMetadataParams = {
|
|
560
|
+
ttl: TTL$a,
|
|
561
|
+
namespace: keyPrefix,
|
|
562
|
+
version: VERSION$i,
|
|
563
|
+
representationName: RepresentationType$a
|
|
564
|
+
};
|
|
565
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
566
|
+
return errorSnapshot;
|
|
567
|
+
}
|
|
568
|
+
function createResourceRequest$9(config) {
|
|
569
|
+
const headers = {};
|
|
570
|
+
return {
|
|
571
|
+
baseUri: '/services/data/v64.0',
|
|
572
|
+
basePath: '/connect/agentforce-agent-info',
|
|
573
|
+
method: 'get',
|
|
574
|
+
body: null,
|
|
575
|
+
urlParams: {},
|
|
576
|
+
queryParams: config.queryParams,
|
|
577
|
+
headers,
|
|
578
|
+
priority: 'normal',
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
const adapterName$9 = 'getAgents';
|
|
583
|
+
const getAgents_ConfigPropertyMetadata = [
|
|
584
|
+
generateParamConfigMetadata('agentType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
585
|
+
];
|
|
586
|
+
const getAgents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAgents_ConfigPropertyMetadata);
|
|
587
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getAgents_ConfigPropertyMetadata);
|
|
588
|
+
function keyBuilder$h(luvio, config) {
|
|
589
|
+
const resourceParams = createResourceParams$9(config);
|
|
590
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
591
|
+
}
|
|
592
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
593
|
+
const config = {};
|
|
594
|
+
typeCheckConfig$a(untrustedConfig, config, getAgents_ConfigPropertyMetadata);
|
|
595
|
+
return config;
|
|
596
|
+
}
|
|
597
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
598
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
599
|
+
return null;
|
|
600
|
+
}
|
|
601
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
602
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
603
|
+
}
|
|
604
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
605
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
606
|
+
return null;
|
|
607
|
+
}
|
|
608
|
+
return config;
|
|
609
|
+
}
|
|
610
|
+
function adapterFragment$7(luvio, config) {
|
|
611
|
+
createResourceParams$9(config);
|
|
612
|
+
return select$r();
|
|
613
|
+
}
|
|
614
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
615
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
616
|
+
config,
|
|
617
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
618
|
+
});
|
|
619
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
620
|
+
}
|
|
621
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
622
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
623
|
+
config,
|
|
624
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
625
|
+
});
|
|
626
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
627
|
+
}
|
|
628
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
629
|
+
const resourceParams = createResourceParams$9(config);
|
|
630
|
+
const request = createResourceRequest$9(resourceParams);
|
|
631
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
632
|
+
.then((response) => {
|
|
633
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
634
|
+
const cache = new StoreKeyMap();
|
|
635
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
636
|
+
return cache;
|
|
637
|
+
});
|
|
638
|
+
}, (response) => {
|
|
639
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
643
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
644
|
+
}
|
|
645
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
646
|
+
const { luvio, config } = context;
|
|
647
|
+
const selector = {
|
|
648
|
+
recordId: keyBuilder$h(luvio, config),
|
|
649
|
+
node: adapterFragment$7(luvio, config),
|
|
650
|
+
variables: {},
|
|
651
|
+
};
|
|
652
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
653
|
+
config,
|
|
654
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
655
|
+
});
|
|
656
|
+
return cacheSnapshot;
|
|
657
|
+
}
|
|
658
|
+
const getAgentsAdapterFactory = (luvio) => function einsteinCopilotBot__getAgents(untrustedConfig, requestContext) {
|
|
659
|
+
const config = validateAdapterConfig$9(untrustedConfig, getAgents_ConfigPropertyNames);
|
|
660
|
+
// Invalid or incomplete config
|
|
661
|
+
if (config === null) {
|
|
662
|
+
return null;
|
|
663
|
+
}
|
|
664
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
665
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
666
|
+
};
|
|
667
|
+
|
|
125
668
|
const TTL$9 = 30000;
|
|
126
669
|
const VERSION$h = "c27669d0d0ba84ade6d5a4c97336c0ef";
|
|
127
670
|
function validate$o(obj, path = 'CopilotBotInfoRepresentation') {
|
|
@@ -366,14 +909,14 @@ const getBotId_ConfigPropertyMetadata = [
|
|
|
366
909
|
generateParamConfigMetadata('agentType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
367
910
|
];
|
|
368
911
|
const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getBotId_ConfigPropertyMetadata);
|
|
369
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
912
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(getBotId_ConfigPropertyMetadata);
|
|
370
913
|
function keyBuilder$f(luvio, config) {
|
|
371
914
|
const resourceParams = createResourceParams$8(config);
|
|
372
915
|
return keyBuilder$g(luvio, resourceParams);
|
|
373
916
|
}
|
|
374
917
|
function typeCheckConfig$8(untrustedConfig) {
|
|
375
918
|
const config = {};
|
|
376
|
-
typeCheckConfig$
|
|
919
|
+
typeCheckConfig$a(untrustedConfig, config, getBotId_ConfigPropertyMetadata);
|
|
377
920
|
return config;
|
|
378
921
|
}
|
|
379
922
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -422,7 +965,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
422
965
|
});
|
|
423
966
|
}
|
|
424
967
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
425
|
-
return buildNetworkSnapshotCachePolicy$
|
|
968
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
426
969
|
}
|
|
427
970
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
428
971
|
const { luvio, config } = context;
|
|
@@ -635,14 +1178,14 @@ const getCopilotObjects_ConfigPropertyMetadata = [
|
|
|
635
1178
|
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
636
1179
|
];
|
|
637
1180
|
const getCopilotObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCopilotObjects_ConfigPropertyMetadata);
|
|
638
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
1181
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getCopilotObjects_ConfigPropertyMetadata);
|
|
639
1182
|
function keyBuilder$d(luvio, config) {
|
|
640
1183
|
const resourceParams = createResourceParams$7(config);
|
|
641
1184
|
return keyBuilder$e(luvio, resourceParams);
|
|
642
1185
|
}
|
|
643
1186
|
function typeCheckConfig$7(untrustedConfig) {
|
|
644
1187
|
const config = {};
|
|
645
|
-
typeCheckConfig$
|
|
1188
|
+
typeCheckConfig$a(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
|
|
646
1189
|
return config;
|
|
647
1190
|
}
|
|
648
1191
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -691,7 +1234,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
691
1234
|
});
|
|
692
1235
|
}
|
|
693
1236
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
694
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1237
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
695
1238
|
}
|
|
696
1239
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
697
1240
|
const { luvio, config } = context;
|
|
@@ -1142,14 +1685,14 @@ const getFollowUpActions_ConfigPropertyMetadata = [
|
|
|
1142
1685
|
generateParamConfigMetadata('followUpActionsInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1143
1686
|
];
|
|
1144
1687
|
const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFollowUpActions_ConfigPropertyMetadata);
|
|
1145
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
1688
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getFollowUpActions_ConfigPropertyMetadata);
|
|
1146
1689
|
function keyBuilder$b(luvio, config) {
|
|
1147
1690
|
const resourceParams = createResourceParams$6(config);
|
|
1148
1691
|
return keyBuilder$c(luvio, resourceParams);
|
|
1149
1692
|
}
|
|
1150
1693
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1151
1694
|
const config = {};
|
|
1152
|
-
typeCheckConfig$
|
|
1695
|
+
typeCheckConfig$a(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
|
|
1153
1696
|
const untrustedConfig_followUpActionsInputs = untrustedConfig.followUpActionsInputs;
|
|
1154
1697
|
if (ArrayIsArray$1(untrustedConfig_followUpActionsInputs)) {
|
|
1155
1698
|
const untrustedConfig_followUpActionsInputs_array = [];
|
|
@@ -1210,7 +1753,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1210
1753
|
});
|
|
1211
1754
|
}
|
|
1212
1755
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1213
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1756
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
|
|
1214
1757
|
}
|
|
1215
1758
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1216
1759
|
const { luvio, config } = context;
|
|
@@ -1829,14 +2372,14 @@ const getRecommendedActions_ConfigPropertyMetadata = [
|
|
|
1829
2372
|
generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1830
2373
|
];
|
|
1831
2374
|
const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getRecommendedActions_ConfigPropertyMetadata);
|
|
1832
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2375
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getRecommendedActions_ConfigPropertyMetadata);
|
|
1833
2376
|
function keyBuilder$9(luvio, config) {
|
|
1834
2377
|
const resourceParams = createResourceParams$5(config);
|
|
1835
2378
|
return keyBuilder$a(luvio, resourceParams);
|
|
1836
2379
|
}
|
|
1837
2380
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1838
2381
|
const config = {};
|
|
1839
|
-
typeCheckConfig$
|
|
2382
|
+
typeCheckConfig$a(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
|
|
1840
2383
|
return config;
|
|
1841
2384
|
}
|
|
1842
2385
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -1885,7 +2428,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
1885
2428
|
});
|
|
1886
2429
|
}
|
|
1887
2430
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1888
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2431
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
1889
2432
|
}
|
|
1890
2433
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1891
2434
|
const { luvio, config } = context;
|
|
@@ -2194,14 +2737,14 @@ const getRecommendedPlanTemplates_ConfigPropertyMetadata = [
|
|
|
2194
2737
|
generateParamConfigMetadata('objectType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2195
2738
|
];
|
|
2196
2739
|
const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecommendedPlanTemplates_ConfigPropertyMetadata);
|
|
2197
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
2740
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getRecommendedPlanTemplates_ConfigPropertyMetadata);
|
|
2198
2741
|
function keyBuilder$7(luvio, config) {
|
|
2199
2742
|
const resourceParams = createResourceParams$4(config);
|
|
2200
2743
|
return keyBuilder$8(luvio, resourceParams);
|
|
2201
2744
|
}
|
|
2202
2745
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2203
2746
|
const config = {};
|
|
2204
|
-
typeCheckConfig$
|
|
2747
|
+
typeCheckConfig$a(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
|
|
2205
2748
|
return config;
|
|
2206
2749
|
}
|
|
2207
2750
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -2250,7 +2793,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
2250
2793
|
});
|
|
2251
2794
|
}
|
|
2252
2795
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2253
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2796
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
2254
2797
|
}
|
|
2255
2798
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2256
2799
|
const { luvio, config } = context;
|
|
@@ -2446,14 +2989,14 @@ const getRecommendedUtterances_ConfigPropertyMetadata = [
|
|
|
2446
2989
|
generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
2447
2990
|
];
|
|
2448
2991
|
const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedUtterances_ConfigPropertyMetadata);
|
|
2449
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
2992
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getRecommendedUtterances_ConfigPropertyMetadata);
|
|
2450
2993
|
function keyBuilder$5(luvio, config) {
|
|
2451
2994
|
const resourceParams = createResourceParams$3(config);
|
|
2452
2995
|
return keyBuilder$6(luvio, resourceParams);
|
|
2453
2996
|
}
|
|
2454
2997
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2455
2998
|
const config = {};
|
|
2456
|
-
typeCheckConfig$
|
|
2999
|
+
typeCheckConfig$a(untrustedConfig, config, getRecommendedUtterances_ConfigPropertyMetadata);
|
|
2457
3000
|
return config;
|
|
2458
3001
|
}
|
|
2459
3002
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -2502,7 +3045,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2502
3045
|
});
|
|
2503
3046
|
}
|
|
2504
3047
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2505
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3048
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2506
3049
|
}
|
|
2507
3050
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2508
3051
|
const { luvio, config } = context;
|
|
@@ -2766,14 +3309,14 @@ const getWelcomeUtterances_ConfigPropertyMetadata = [
|
|
|
2766
3309
|
generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2767
3310
|
];
|
|
2768
3311
|
const getWelcomeUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getWelcomeUtterances_ConfigPropertyMetadata);
|
|
2769
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3312
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getWelcomeUtterances_ConfigPropertyMetadata);
|
|
2770
3313
|
function keyBuilder$3(luvio, config) {
|
|
2771
3314
|
const resourceParams = createResourceParams$2(config);
|
|
2772
3315
|
return keyBuilder$4(luvio, resourceParams);
|
|
2773
3316
|
}
|
|
2774
3317
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2775
3318
|
const config = {};
|
|
2776
|
-
typeCheckConfig$
|
|
3319
|
+
typeCheckConfig$a(untrustedConfig, config, getWelcomeUtterances_ConfigPropertyMetadata);
|
|
2777
3320
|
return config;
|
|
2778
3321
|
}
|
|
2779
3322
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2822,7 +3365,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2822
3365
|
});
|
|
2823
3366
|
}
|
|
2824
3367
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2825
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3368
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
2826
3369
|
}
|
|
2827
3370
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2828
3371
|
const { luvio, config } = context;
|
|
@@ -4027,10 +4570,10 @@ const sendMessage_ConfigPropertyMetadata = [
|
|
|
4027
4570
|
generateParamConfigMetadata('userUtterance', false, 2 /* Body */, 0 /* String */),
|
|
4028
4571
|
];
|
|
4029
4572
|
const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, sendMessage_ConfigPropertyMetadata);
|
|
4030
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4573
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(sendMessage_ConfigPropertyMetadata);
|
|
4031
4574
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4032
4575
|
const config = {};
|
|
4033
|
-
typeCheckConfig$
|
|
4576
|
+
typeCheckConfig$a(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
|
|
4034
4577
|
const untrustedConfig_planTemplateVariables = untrustedConfig.planTemplateVariables;
|
|
4035
4578
|
config.planTemplateVariables = untrustedConfig_planTemplateVariables;
|
|
4036
4579
|
const untrustedConfig_reply = untrustedConfig.reply;
|
|
@@ -4218,10 +4761,10 @@ const submitFeedback_ConfigPropertyMetadata = [
|
|
|
4218
4761
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
4219
4762
|
];
|
|
4220
4763
|
const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, submitFeedback_ConfigPropertyMetadata);
|
|
4221
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4764
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$a(submitFeedback_ConfigPropertyMetadata);
|
|
4222
4765
|
function typeCheckConfig(untrustedConfig) {
|
|
4223
4766
|
const config = {};
|
|
4224
|
-
typeCheckConfig$
|
|
4767
|
+
typeCheckConfig$a(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
|
|
4225
4768
|
const untrustedConfig_details = untrustedConfig.details;
|
|
4226
4769
|
if (untrustedIsObject(untrustedConfig_details)) {
|
|
4227
4770
|
const untrustedConfig_details_object = {};
|
|
@@ -4281,6 +4824,7 @@ const submitFeedbackAdapterFactory = (luvio) => {
|
|
|
4281
4824
|
};
|
|
4282
4825
|
};
|
|
4283
4826
|
|
|
4827
|
+
let getAgents;
|
|
4284
4828
|
let getBotId;
|
|
4285
4829
|
let getCopilotObjects;
|
|
4286
4830
|
let getFollowUpActions;
|
|
@@ -4291,6 +4835,7 @@ let getWelcomeUtterances;
|
|
|
4291
4835
|
let sendMessage;
|
|
4292
4836
|
let submitFeedback;
|
|
4293
4837
|
// Imperative GET Adapters
|
|
4838
|
+
let getAgents_imperative;
|
|
4294
4839
|
let getBotId_imperative;
|
|
4295
4840
|
let getCopilotObjects_imperative;
|
|
4296
4841
|
let getFollowUpActions_imperative;
|
|
@@ -4299,6 +4844,7 @@ let getRecommendedPlanTemplates_imperative;
|
|
|
4299
4844
|
let getRecommendedUtterances_imperative;
|
|
4300
4845
|
let getWelcomeUtterances_imperative;
|
|
4301
4846
|
// Adapter Metadata
|
|
4847
|
+
const getAgentsMetadata = { apiFamily: 'einsteincopilot-bot', name: 'getAgents', ttl: 30000 };
|
|
4302
4848
|
const getBotIdMetadata = { apiFamily: 'einsteincopilot-bot', name: 'getBotId', ttl: 30000 };
|
|
4303
4849
|
const getCopilotObjectsMetadata = {
|
|
4304
4850
|
apiFamily: 'einsteincopilot-bot',
|
|
@@ -4333,6 +4879,7 @@ const getWelcomeUtterancesMetadata = {
|
|
|
4333
4879
|
// Notify Update Available
|
|
4334
4880
|
function bindExportsTo(luvio) {
|
|
4335
4881
|
// LDS Adapters
|
|
4882
|
+
const getAgents_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAgents', getAgentsAdapterFactory), getAgentsMetadata);
|
|
4336
4883
|
const getBotId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getBotId', getBotIdAdapterFactory), getBotIdMetadata);
|
|
4337
4884
|
const getCopilotObjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCopilotObjects', getCopilotObjectsAdapterFactory), getCopilotObjectsMetadata);
|
|
4338
4885
|
const getFollowUpActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getFollowUpActions', getFollowUpActionsAdapterFactory), getFollowUpActionsMetadata);
|
|
@@ -4345,6 +4892,7 @@ function bindExportsTo(luvio) {
|
|
|
4345
4892
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
4346
4893
|
}
|
|
4347
4894
|
return {
|
|
4895
|
+
getAgents: createWireAdapterConstructor(luvio, getAgents_ldsAdapter, getAgentsMetadata),
|
|
4348
4896
|
getBotId: createWireAdapterConstructor(luvio, getBotId_ldsAdapter, getBotIdMetadata),
|
|
4349
4897
|
getCopilotObjects: createWireAdapterConstructor(luvio, getCopilotObjects_ldsAdapter, getCopilotObjectsMetadata),
|
|
4350
4898
|
getFollowUpActions: createWireAdapterConstructor(luvio, getFollowUpActions_ldsAdapter, getFollowUpActionsMetadata),
|
|
@@ -4355,6 +4903,7 @@ function bindExportsTo(luvio) {
|
|
|
4355
4903
|
sendMessage: unwrapSnapshotData(sendMessageAdapterFactory),
|
|
4356
4904
|
submitFeedback: unwrapSnapshotData(submitFeedbackAdapterFactory),
|
|
4357
4905
|
// Imperative GET Adapters
|
|
4906
|
+
getAgents_imperative: createImperativeAdapter(luvio, getAgents_ldsAdapter, getAgentsMetadata),
|
|
4358
4907
|
getBotId_imperative: createImperativeAdapter(luvio, getBotId_ldsAdapter, getBotIdMetadata),
|
|
4359
4908
|
getCopilotObjects_imperative: createImperativeAdapter(luvio, getCopilotObjects_ldsAdapter, getCopilotObjectsMetadata),
|
|
4360
4909
|
getFollowUpActions_imperative: createImperativeAdapter(luvio, getFollowUpActions_ldsAdapter, getFollowUpActionsMetadata),
|
|
@@ -4367,6 +4916,7 @@ function bindExportsTo(luvio) {
|
|
|
4367
4916
|
}
|
|
4368
4917
|
withDefaultLuvio((luvio) => {
|
|
4369
4918
|
({
|
|
4919
|
+
getAgents,
|
|
4370
4920
|
getBotId,
|
|
4371
4921
|
getCopilotObjects,
|
|
4372
4922
|
getFollowUpActions,
|
|
@@ -4376,6 +4926,7 @@ withDefaultLuvio((luvio) => {
|
|
|
4376
4926
|
getWelcomeUtterances,
|
|
4377
4927
|
sendMessage,
|
|
4378
4928
|
submitFeedback,
|
|
4929
|
+
getAgents_imperative,
|
|
4379
4930
|
getBotId_imperative,
|
|
4380
4931
|
getCopilotObjects_imperative,
|
|
4381
4932
|
getFollowUpActions_imperative,
|
|
@@ -4386,5 +4937,5 @@ withDefaultLuvio((luvio) => {
|
|
|
4386
4937
|
} = bindExportsTo(luvio));
|
|
4387
4938
|
});
|
|
4388
4939
|
|
|
4389
|
-
export { getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, getRecommendedUtterances, getRecommendedUtterances_imperative, getWelcomeUtterances, getWelcomeUtterances_imperative, sendMessage, submitFeedback };
|
|
4390
|
-
// version: 1.
|
|
4940
|
+
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.342.0-f478af8b93
|