@salesforce/lds-adapters-service-einstein-copilot-bot 1.287.0-dev16 → 1.287.0-dev17

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/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$4, StoreKeyMap, createResourceParams as createResourceParams$6, typeCheckConfig as typeCheckConfig$6 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -122,9 +122,9 @@ function createLink(ref) {
122
122
  };
123
123
  }
124
124
 
125
- const TTL$6 = 30000;
126
- const VERSION$c = "ab85410a28124cfed3d8eae7b8236853";
127
- function validate$j(obj, path = 'CopilotBotInfoRepresentation') {
125
+ const TTL$7 = 30000;
126
+ const VERSION$e = "ab85410a28124cfed3d8eae7b8236853";
127
+ function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
128
128
  const v_error = (() => {
129
129
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
130
130
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -151,14 +151,14 @@ function validate$j(obj, path = 'CopilotBotInfoRepresentation') {
151
151
  })();
152
152
  return v_error === undefined ? null : v_error;
153
153
  }
154
- const RepresentationType$6 = 'CopilotBotInfoRepresentation';
155
- function normalize$6(input, existing, path, luvio, store, timestamp) {
154
+ const RepresentationType$7 = 'CopilotBotInfoRepresentation';
155
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
156
156
  return input;
157
157
  }
158
- const select$i = function CopilotBotInfoRepresentationSelect() {
158
+ const select$l = function CopilotBotInfoRepresentationSelect() {
159
159
  return {
160
160
  kind: 'Fragment',
161
- version: VERSION$c,
161
+ version: VERSION$e,
162
162
  private: [],
163
163
  selections: [
164
164
  {
@@ -178,7 +178,7 @@ const select$i = function CopilotBotInfoRepresentationSelect() {
178
178
  ]
179
179
  };
180
180
  };
181
- function equals$c(existing, incoming) {
181
+ function equals$e(existing, incoming) {
182
182
  const existing_isSuccess = existing.isSuccess;
183
183
  const incoming_isSuccess = incoming.isSuccess;
184
184
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -212,7 +212,272 @@ function equals$c(existing, incoming) {
212
212
  }
213
213
  return true;
214
214
  }
215
- const ingest$6 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
215
+ const ingest$7 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
216
+ if (process.env.NODE_ENV !== 'production') {
217
+ const validateError = validate$l(input);
218
+ if (validateError !== null) {
219
+ throw validateError;
220
+ }
221
+ }
222
+ const key = path.fullPath;
223
+ const ttlToUse = TTL$7;
224
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$e, RepresentationType$7, equals$e);
225
+ return createLink(key);
226
+ };
227
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
228
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
229
+ const rootKey = fullPathFactory();
230
+ rootKeySet.set(rootKey, {
231
+ namespace: keyPrefix,
232
+ representationName: RepresentationType$7,
233
+ mergeable: false
234
+ });
235
+ }
236
+
237
+ function select$k(luvio, params) {
238
+ return select$l();
239
+ }
240
+ function keyBuilder$c(luvio, params) {
241
+ return keyPrefix + '::CopilotBotInfoRepresentation:(' + ')';
242
+ }
243
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
244
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$c());
245
+ }
246
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
247
+ const { body } = response;
248
+ const key = keyBuilder$c();
249
+ luvio.storeIngest(key, ingest$7, body);
250
+ const snapshot = luvio.storeLookup({
251
+ recordId: key,
252
+ node: select$k(),
253
+ variables: {},
254
+ }, snapshotRefresh);
255
+ if (process.env.NODE_ENV !== 'production') {
256
+ if (snapshot.state !== 'Fulfilled') {
257
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
258
+ }
259
+ }
260
+ deepFreeze(snapshot.data);
261
+ return snapshot;
262
+ }
263
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
264
+ const key = keyBuilder$c();
265
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
266
+ const storeMetadataParams = {
267
+ ttl: TTL$7,
268
+ namespace: keyPrefix,
269
+ version: VERSION$e,
270
+ representationName: RepresentationType$7
271
+ };
272
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
273
+ return errorSnapshot;
274
+ }
275
+ function createResourceRequest$6(config) {
276
+ const headers = {};
277
+ return {
278
+ baseUri: '/services/data/v61.0',
279
+ basePath: '/connect/conversation-runtime-proxy',
280
+ method: 'get',
281
+ body: null,
282
+ urlParams: {},
283
+ queryParams: {},
284
+ headers,
285
+ priority: 'normal',
286
+ };
287
+ }
288
+
289
+ const adapterName$6 = 'getBotId';
290
+ const getBotId_ConfigPropertyMetadata = [];
291
+ const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getBotId_ConfigPropertyMetadata);
292
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getBotId_ConfigPropertyMetadata);
293
+ function keyBuilder$b(luvio, config) {
294
+ createResourceParams$6(config);
295
+ return keyBuilder$c();
296
+ }
297
+ function typeCheckConfig$6(untrustedConfig) {
298
+ const config = {};
299
+ return config;
300
+ }
301
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
302
+ if (!untrustedIsObject(untrustedConfig)) {
303
+ return null;
304
+ }
305
+ if (process.env.NODE_ENV !== 'production') {
306
+ validateConfig(untrustedConfig, configPropertyNames);
307
+ }
308
+ const config = typeCheckConfig$6();
309
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
310
+ return null;
311
+ }
312
+ return config;
313
+ }
314
+ function adapterFragment$4(luvio, config) {
315
+ createResourceParams$6(config);
316
+ return select$k();
317
+ }
318
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
319
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
320
+ config,
321
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
322
+ });
323
+ return luvio.storeBroadcast().then(() => snapshot);
324
+ }
325
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
326
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
327
+ config,
328
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
329
+ });
330
+ return luvio.storeBroadcast().then(() => snapshot);
331
+ }
332
+ function buildNetworkSnapshot$6(luvio, config, options) {
333
+ const resourceParams = createResourceParams$6(config);
334
+ const request = createResourceRequest$6();
335
+ return luvio.dispatchResourceRequest(request, options)
336
+ .then((response) => {
337
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
338
+ const cache = new StoreKeyMap();
339
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
340
+ return cache;
341
+ });
342
+ }, (response) => {
343
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
344
+ });
345
+ }
346
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
347
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
348
+ }
349
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
350
+ const { luvio, config } = context;
351
+ const selector = {
352
+ recordId: keyBuilder$b(luvio, config),
353
+ node: adapterFragment$4(luvio, config),
354
+ variables: {},
355
+ };
356
+ const cacheSnapshot = storeLookup(selector, {
357
+ config,
358
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
359
+ });
360
+ return cacheSnapshot;
361
+ }
362
+ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(untrustedConfig, requestContext) {
363
+ const config = validateAdapterConfig$6(untrustedConfig, getBotId_ConfigPropertyNames);
364
+ // Invalid or incomplete config
365
+ if (config === null) {
366
+ return null;
367
+ }
368
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
369
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
370
+ };
371
+
372
+ const VERSION$d = "24d61d5f37ff09155ee4a9d90eb4fcb5";
373
+ function validate$k(obj, path = 'CopilotObjectInfoRepresentation') {
374
+ const v_error = (() => {
375
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
376
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
377
+ }
378
+ const obj_apiName = obj.apiName;
379
+ const path_apiName = path + '.apiName';
380
+ if (typeof obj_apiName !== 'string') {
381
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
382
+ }
383
+ const obj_label = obj.label;
384
+ const path_label = path + '.label';
385
+ if (typeof obj_label !== 'string') {
386
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
387
+ }
388
+ })();
389
+ return v_error === undefined ? null : v_error;
390
+ }
391
+ const select$j = function CopilotObjectInfoRepresentationSelect() {
392
+ return {
393
+ kind: 'Fragment',
394
+ version: VERSION$d,
395
+ private: [],
396
+ selections: [
397
+ {
398
+ name: 'apiName',
399
+ kind: 'Scalar'
400
+ },
401
+ {
402
+ name: 'label',
403
+ kind: 'Scalar'
404
+ }
405
+ ]
406
+ };
407
+ };
408
+ function equals$d(existing, incoming) {
409
+ const existing_apiName = existing.apiName;
410
+ const incoming_apiName = incoming.apiName;
411
+ if (!(existing_apiName === incoming_apiName)) {
412
+ return false;
413
+ }
414
+ const existing_label = existing.label;
415
+ const incoming_label = incoming.label;
416
+ if (!(existing_label === incoming_label)) {
417
+ return false;
418
+ }
419
+ return true;
420
+ }
421
+
422
+ const TTL$6 = 900000;
423
+ const VERSION$c = "ca1aedcbd4e34795fadf2dcaf66e5825";
424
+ function validate$j(obj, path = 'CopilotObjectListRepresentation') {
425
+ const v_error = (() => {
426
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
427
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
428
+ }
429
+ const obj_objects = obj.objects;
430
+ const path_objects = path + '.objects';
431
+ if (!ArrayIsArray(obj_objects)) {
432
+ return new TypeError('Expected "array" but received "' + typeof obj_objects + '" (at "' + path_objects + '")');
433
+ }
434
+ for (let i = 0; i < obj_objects.length; i++) {
435
+ const obj_objects_item = obj_objects[i];
436
+ const path_objects_item = path_objects + '[' + i + ']';
437
+ const referencepath_objects_itemValidationError = validate$k(obj_objects_item, path_objects_item);
438
+ if (referencepath_objects_itemValidationError !== null) {
439
+ let message = 'Object doesn\'t match CopilotObjectInfoRepresentation (at "' + path_objects_item + '")\n';
440
+ message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
441
+ return new TypeError(message);
442
+ }
443
+ }
444
+ })();
445
+ return v_error === undefined ? null : v_error;
446
+ }
447
+ const RepresentationType$6 = 'CopilotObjectListRepresentation';
448
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
449
+ return input;
450
+ }
451
+ const select$i = function CopilotObjectListRepresentationSelect() {
452
+ const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$j();
453
+ return {
454
+ kind: 'Fragment',
455
+ version: VERSION$c,
456
+ private: [],
457
+ selections: [
458
+ {
459
+ name: 'objects',
460
+ kind: 'Object',
461
+ plural: true,
462
+ selections: CopilotObjectInfoRepresentation__selections
463
+ }
464
+ ]
465
+ };
466
+ };
467
+ function equals$c(existing, incoming) {
468
+ const existing_objects = existing.objects;
469
+ const incoming_objects = incoming.objects;
470
+ const equals_objects_items = equalsArray(existing_objects, incoming_objects, (existing_objects_item, incoming_objects_item) => {
471
+ if (!(equals$d(existing_objects_item, incoming_objects_item))) {
472
+ return false;
473
+ }
474
+ });
475
+ if (equals_objects_items === false) {
476
+ return false;
477
+ }
478
+ return true;
479
+ }
480
+ const ingest$6 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
216
481
  if (process.env.NODE_ENV !== 'production') {
217
482
  const validateError = validate$j(input);
218
483
  if (validateError !== null) {
@@ -238,14 +503,14 @@ function select$h(luvio, params) {
238
503
  return select$i();
239
504
  }
240
505
  function keyBuilder$a(luvio, params) {
241
- return keyPrefix + '::CopilotBotInfoRepresentation:(' + ')';
506
+ return keyPrefix + '::CopilotObjectListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'searchTerm:' + params.queryParams.searchTerm + ')';
242
507
  }
243
508
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
244
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a());
509
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
245
510
  }
246
511
  function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
247
512
  const { body } = response;
248
- const key = keyBuilder$a();
513
+ const key = keyBuilder$a(luvio, resourceParams);
249
514
  luvio.storeIngest(key, ingest$6, body);
250
515
  const snapshot = luvio.storeLookup({
251
516
  recordId: key,
@@ -261,7 +526,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
261
526
  return snapshot;
262
527
  }
263
528
  function ingestError$3(luvio, params, error, snapshotRefresh) {
264
- const key = keyBuilder$a();
529
+ const key = keyBuilder$a(luvio, params);
265
530
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
266
531
  const storeMetadataParams = {
267
532
  ttl: TTL$6,
@@ -276,26 +541,30 @@ function createResourceRequest$5(config) {
276
541
  const headers = {};
277
542
  return {
278
543
  baseUri: '/services/data/v61.0',
279
- basePath: '/connect/conversation-runtime-proxy',
544
+ basePath: '/connect/copilot/objects',
280
545
  method: 'get',
281
546
  body: null,
282
547
  urlParams: {},
283
- queryParams: {},
548
+ queryParams: config.queryParams,
284
549
  headers,
285
550
  priority: 'normal',
286
551
  };
287
552
  }
288
553
 
289
- const adapterName$5 = 'getBotId';
290
- const getBotId_ConfigPropertyMetadata = [];
291
- const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBotId_ConfigPropertyMetadata);
292
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(getBotId_ConfigPropertyMetadata);
554
+ const adapterName$5 = 'getCopilotObjects';
555
+ const getCopilotObjects_ConfigPropertyMetadata = [
556
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
557
+ generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
558
+ ];
559
+ const getCopilotObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCopilotObjects_ConfigPropertyMetadata);
560
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getCopilotObjects_ConfigPropertyMetadata);
293
561
  function keyBuilder$9(luvio, config) {
294
- createResourceParams$5(config);
295
- return keyBuilder$a();
562
+ const resourceParams = createResourceParams$5(config);
563
+ return keyBuilder$a(luvio, resourceParams);
296
564
  }
297
565
  function typeCheckConfig$5(untrustedConfig) {
298
566
  const config = {};
567
+ typeCheckConfig$7(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
299
568
  return config;
300
569
  }
301
570
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -305,7 +574,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
305
574
  if (process.env.NODE_ENV !== 'production') {
306
575
  validateConfig(untrustedConfig, configPropertyNames);
307
576
  }
308
- const config = typeCheckConfig$5();
577
+ const config = typeCheckConfig$5(untrustedConfig);
309
578
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
310
579
  return null;
311
580
  }
@@ -331,7 +600,7 @@ function onFetchResponseError$3(luvio, config, resourceParams, response) {
331
600
  }
332
601
  function buildNetworkSnapshot$5(luvio, config, options) {
333
602
  const resourceParams = createResourceParams$5(config);
334
- const request = createResourceRequest$5();
603
+ const request = createResourceRequest$5(resourceParams);
335
604
  return luvio.dispatchResourceRequest(request, options)
336
605
  .then((response) => {
337
606
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
@@ -344,7 +613,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
344
613
  });
345
614
  }
346
615
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
347
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
616
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
348
617
  }
349
618
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
350
619
  const { luvio, config } = context;
@@ -359,8 +628,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
359
628
  });
360
629
  return cacheSnapshot;
361
630
  }
362
- const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(untrustedConfig, requestContext) {
363
- const config = validateAdapterConfig$5(untrustedConfig, getBotId_ConfigPropertyNames);
631
+ const getCopilotObjectsAdapterFactory = (luvio) => function einsteinCopilotBot__getCopilotObjects(untrustedConfig, requestContext) {
632
+ const config = validateAdapterConfig$5(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
364
633
  // Invalid or incomplete config
365
634
  if (config === null) {
366
635
  return null;
@@ -770,14 +1039,14 @@ const getFollowUpActions_ConfigPropertyMetadata = [
770
1039
  generateParamConfigMetadata('followUpActionsInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
771
1040
  ];
772
1041
  const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFollowUpActions_ConfigPropertyMetadata);
773
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(getFollowUpActions_ConfigPropertyMetadata);
1042
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getFollowUpActions_ConfigPropertyMetadata);
774
1043
  function keyBuilder$7(luvio, config) {
775
1044
  const resourceParams = createResourceParams$4(config);
776
1045
  return keyBuilder$8(luvio, resourceParams);
777
1046
  }
778
1047
  function typeCheckConfig$4(untrustedConfig) {
779
1048
  const config = {};
780
- typeCheckConfig$6(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
1049
+ typeCheckConfig$7(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
781
1050
  const untrustedConfig_followUpActionsInputs = untrustedConfig.followUpActionsInputs;
782
1051
  if (ArrayIsArray$1(untrustedConfig_followUpActionsInputs)) {
783
1052
  const untrustedConfig_followUpActionsInputs_array = [];
@@ -838,7 +1107,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
838
1107
  });
839
1108
  }
840
1109
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
841
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
1110
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
842
1111
  }
843
1112
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
844
1113
  const { luvio, config } = context;
@@ -1449,22 +1718,22 @@ function createResourceRequest$3(config) {
1449
1718
  const adapterName$3 = 'getRecommendedActions';
1450
1719
  const getRecommendedActions_ConfigPropertyMetadata = [
1451
1720
  generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
1452
- generateParamConfigMetadata('pageType', false, 1 /* QueryParameter */, 0 /* String */),
1721
+ generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
1453
1722
  generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
1454
1723
  generateParamConfigMetadata('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
1455
- generateParamConfigMetadata('customApplicationName', false, 1 /* QueryParameter */, 0 /* String */),
1456
- generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
1457
- generateParamConfigMetadata('formFactor', false, 1 /* QueryParameter */, 0 /* String */),
1724
+ generateParamConfigMetadata('customApplicationName', true, 1 /* QueryParameter */, 0 /* String */),
1725
+ generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
1726
+ generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
1458
1727
  ];
1459
1728
  const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedActions_ConfigPropertyMetadata);
1460
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(getRecommendedActions_ConfigPropertyMetadata);
1729
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getRecommendedActions_ConfigPropertyMetadata);
1461
1730
  function keyBuilder$5(luvio, config) {
1462
1731
  const resourceParams = createResourceParams$3(config);
1463
1732
  return keyBuilder$6(luvio, resourceParams);
1464
1733
  }
1465
1734
  function typeCheckConfig$3(untrustedConfig) {
1466
1735
  const config = {};
1467
- typeCheckConfig$6(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
1736
+ typeCheckConfig$7(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
1468
1737
  return config;
1469
1738
  }
1470
1739
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -1513,7 +1782,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1513
1782
  });
1514
1783
  }
1515
1784
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1516
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
1785
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
1517
1786
  }
1518
1787
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1519
1788
  const { luvio, config } = context;
@@ -1822,14 +2091,14 @@ const getRecommendedPlanTemplates_ConfigPropertyMetadata = [
1822
2091
  generateParamConfigMetadata('objectType', true, 0 /* UrlParameter */, 0 /* String */),
1823
2092
  ];
1824
2093
  const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1825
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(getRecommendedPlanTemplates_ConfigPropertyMetadata);
2094
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1826
2095
  function keyBuilder$3(luvio, config) {
1827
2096
  const resourceParams = createResourceParams$2(config);
1828
2097
  return keyBuilder$4(luvio, resourceParams);
1829
2098
  }
1830
2099
  function typeCheckConfig$2(untrustedConfig) {
1831
2100
  const config = {};
1832
- typeCheckConfig$6(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
2101
+ typeCheckConfig$7(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1833
2102
  return config;
1834
2103
  }
1835
2104
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1878,7 +2147,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1878
2147
  });
1879
2148
  }
1880
2149
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1881
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2150
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1882
2151
  }
1883
2152
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1884
2153
  const { luvio, config } = context;
@@ -2189,7 +2458,7 @@ function equals$3(existing, incoming) {
2189
2458
  }
2190
2459
 
2191
2460
  const TTL$2 = 30000;
2192
- const VERSION$2 = "55ac02bd055f57a2a12aa0fa4844d1a2";
2461
+ const VERSION$2 = "983ede912bc103cfd2e2c2758140c5c9";
2193
2462
  function validate$2(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
2194
2463
  const v_error = (() => {
2195
2464
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2321,6 +2590,13 @@ function validate$2(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
2321
2590
  if (typeof obj_id !== 'string') {
2322
2591
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2323
2592
  }
2593
+ if (obj.isContentSafe !== undefined) {
2594
+ const obj_isContentSafe = obj.isContentSafe;
2595
+ const path_isContentSafe = path + '.isContentSafe';
2596
+ if (typeof obj_isContentSafe !== 'boolean') {
2597
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isContentSafe + '" (at "' + path_isContentSafe + '")');
2598
+ }
2599
+ }
2324
2600
  if (obj.message !== undefined) {
2325
2601
  const obj_message = obj.message;
2326
2602
  const path_message = path + '.message';
@@ -2551,6 +2827,11 @@ const select$4 = function ConversationRuntimeProxyMessageRepresentationSelect()
2551
2827
  name: 'id',
2552
2828
  kind: 'Scalar'
2553
2829
  },
2830
+ {
2831
+ name: 'isContentSafe',
2832
+ kind: 'Scalar',
2833
+ required: false
2834
+ },
2554
2835
  {
2555
2836
  name: 'message',
2556
2837
  kind: 'Scalar',
@@ -2592,6 +2873,19 @@ const select$4 = function ConversationRuntimeProxyMessageRepresentationSelect()
2592
2873
  };
2593
2874
  };
2594
2875
  function equals$2(existing, incoming) {
2876
+ const existing_isContentSafe = existing.isContentSafe;
2877
+ const incoming_isContentSafe = incoming.isContentSafe;
2878
+ // if at least one of these optionals is defined
2879
+ if (existing_isContentSafe !== undefined || incoming_isContentSafe !== undefined) {
2880
+ // if one of these is not defined we know the other is defined and therefore
2881
+ // not equal
2882
+ if (existing_isContentSafe === undefined || incoming_isContentSafe === undefined) {
2883
+ return false;
2884
+ }
2885
+ if (!(existing_isContentSafe === incoming_isContentSafe)) {
2886
+ return false;
2887
+ }
2888
+ }
2595
2889
  const existing_id = existing.id;
2596
2890
  const incoming_id = incoming.id;
2597
2891
  if (!(existing_id === incoming_id)) {
@@ -3058,10 +3352,10 @@ const sendMessage_ConfigPropertyMetadata = [
3058
3352
  generateParamConfigMetadata('userUtterance', false, 2 /* Body */, 0 /* String */),
3059
3353
  ];
3060
3354
  const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, sendMessage_ConfigPropertyMetadata);
3061
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(sendMessage_ConfigPropertyMetadata);
3355
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(sendMessage_ConfigPropertyMetadata);
3062
3356
  function typeCheckConfig$1(untrustedConfig) {
3063
3357
  const config = {};
3064
- typeCheckConfig$6(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
3358
+ typeCheckConfig$7(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
3065
3359
  const untrustedConfig_planTemplateVariables = untrustedConfig.planTemplateVariables;
3066
3360
  config.planTemplateVariables = untrustedConfig_planTemplateVariables;
3067
3361
  const untrustedConfig_reply = untrustedConfig.reply;
@@ -3249,10 +3543,10 @@ const submitFeedback_ConfigPropertyMetadata = [
3249
3543
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
3250
3544
  ];
3251
3545
  const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, submitFeedback_ConfigPropertyMetadata);
3252
- const createResourceParams = /*#__PURE__*/ createResourceParams$6(submitFeedback_ConfigPropertyMetadata);
3546
+ const createResourceParams = /*#__PURE__*/ createResourceParams$7(submitFeedback_ConfigPropertyMetadata);
3253
3547
  function typeCheckConfig(untrustedConfig) {
3254
3548
  const config = {};
3255
- typeCheckConfig$6(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
3549
+ typeCheckConfig$7(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
3256
3550
  const untrustedConfig_details = untrustedConfig.details;
3257
3551
  if (untrustedIsObject(untrustedConfig_details)) {
3258
3552
  const untrustedConfig_details_object = {};
@@ -3313,6 +3607,7 @@ const submitFeedbackAdapterFactory = (luvio) => {
3313
3607
  };
3314
3608
 
3315
3609
  let getBotId;
3610
+ let getCopilotObjects;
3316
3611
  let getFollowUpActions;
3317
3612
  let getRecommendedActions;
3318
3613
  let getRecommendedPlanTemplates;
@@ -3320,11 +3615,17 @@ let sendMessage;
3320
3615
  let submitFeedback;
3321
3616
  // Imperative GET Adapters
3322
3617
  let getBotId_imperative;
3618
+ let getCopilotObjects_imperative;
3323
3619
  let getFollowUpActions_imperative;
3324
3620
  let getRecommendedActions_imperative;
3325
3621
  let getRecommendedPlanTemplates_imperative;
3326
3622
  // Adapter Metadata
3327
3623
  const getBotIdMetadata = { apiFamily: 'einsteincopilot-bot', name: 'getBotId', ttl: 30000 };
3624
+ const getCopilotObjectsMetadata = {
3625
+ apiFamily: 'einsteincopilot-bot',
3626
+ name: 'getCopilotObjects',
3627
+ ttl: 900000,
3628
+ };
3328
3629
  const getFollowUpActionsMetadata = {
3329
3630
  apiFamily: 'einsteincopilot-bot',
3330
3631
  name: 'getFollowUpActions',
@@ -3344,6 +3645,7 @@ const getRecommendedPlanTemplatesMetadata = {
3344
3645
  function bindExportsTo(luvio) {
3345
3646
  // LDS Adapters
3346
3647
  const getBotId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getBotId', getBotIdAdapterFactory), getBotIdMetadata);
3648
+ const getCopilotObjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCopilotObjects', getCopilotObjectsAdapterFactory), getCopilotObjectsMetadata);
3347
3649
  const getFollowUpActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getFollowUpActions', getFollowUpActionsAdapterFactory), getFollowUpActionsMetadata);
3348
3650
  const getRecommendedActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecommendedActions', getRecommendedActionsAdapterFactory), getRecommendedActionsMetadata);
3349
3651
  const getRecommendedPlanTemplates_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecommendedPlanTemplates', getRecommendedPlanTemplatesAdapterFactory), getRecommendedPlanTemplatesMetadata);
@@ -3353,6 +3655,7 @@ function bindExportsTo(luvio) {
3353
3655
  }
3354
3656
  return {
3355
3657
  getBotId: createWireAdapterConstructor(luvio, getBotId_ldsAdapter, getBotIdMetadata),
3658
+ getCopilotObjects: createWireAdapterConstructor(luvio, getCopilotObjects_ldsAdapter, getCopilotObjectsMetadata),
3356
3659
  getFollowUpActions: createWireAdapterConstructor(luvio, getFollowUpActions_ldsAdapter, getFollowUpActionsMetadata),
3357
3660
  getRecommendedActions: createWireAdapterConstructor(luvio, getRecommendedActions_ldsAdapter, getRecommendedActionsMetadata),
3358
3661
  getRecommendedPlanTemplates: createWireAdapterConstructor(luvio, getRecommendedPlanTemplates_ldsAdapter, getRecommendedPlanTemplatesMetadata),
@@ -3360,6 +3663,7 @@ function bindExportsTo(luvio) {
3360
3663
  submitFeedback: unwrapSnapshotData(submitFeedbackAdapterFactory),
3361
3664
  // Imperative GET Adapters
3362
3665
  getBotId_imperative: createImperativeAdapter(luvio, getBotId_ldsAdapter, getBotIdMetadata),
3666
+ getCopilotObjects_imperative: createImperativeAdapter(luvio, getCopilotObjects_ldsAdapter, getCopilotObjectsMetadata),
3363
3667
  getFollowUpActions_imperative: createImperativeAdapter(luvio, getFollowUpActions_ldsAdapter, getFollowUpActionsMetadata),
3364
3668
  getRecommendedActions_imperative: createImperativeAdapter(luvio, getRecommendedActions_ldsAdapter, getRecommendedActionsMetadata),
3365
3669
  getRecommendedPlanTemplates_imperative: createImperativeAdapter(luvio, getRecommendedPlanTemplates_ldsAdapter, getRecommendedPlanTemplatesMetadata),
@@ -3369,17 +3673,19 @@ function bindExportsTo(luvio) {
3369
3673
  withDefaultLuvio((luvio) => {
3370
3674
  ({
3371
3675
  getBotId,
3676
+ getCopilotObjects,
3372
3677
  getFollowUpActions,
3373
3678
  getRecommendedActions,
3374
3679
  getRecommendedPlanTemplates,
3375
3680
  sendMessage,
3376
3681
  submitFeedback,
3377
3682
  getBotId_imperative,
3683
+ getCopilotObjects_imperative,
3378
3684
  getFollowUpActions_imperative,
3379
3685
  getRecommendedActions_imperative,
3380
3686
  getRecommendedPlanTemplates_imperative,
3381
3687
  } = bindExportsTo(luvio));
3382
3688
  });
3383
3689
 
3384
- export { getBotId, getBotId_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage, submitFeedback };
3385
- // version: 1.287.0-dev16-4d742a2467
3690
+ export { getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage, submitFeedback };
3691
+ // version: 1.287.0-dev17-71a1131fd3