@salesforce/lds-adapters-service-einstein-copilot-bot 1.309.0-dev14 → 1.309.0-dev16

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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -112,9 +112,9 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const TTL$7 = 30000;
116
- const VERSION$e = "c27669d0d0ba84ade6d5a4c97336c0ef";
117
- function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
115
+ const TTL$9 = 30000;
116
+ const VERSION$h = "c27669d0d0ba84ade6d5a4c97336c0ef";
117
+ function validate$o(obj, path = 'CopilotBotInfoRepresentation') {
118
118
  const v_error = (() => {
119
119
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
120
120
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -162,14 +162,14 @@ function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
162
162
  })();
163
163
  return v_error === undefined ? null : v_error;
164
164
  }
165
- const RepresentationType$7 = 'CopilotBotInfoRepresentation';
166
- function normalize$7(input, existing, path, luvio, store, timestamp) {
165
+ const RepresentationType$9 = 'CopilotBotInfoRepresentation';
166
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
167
167
  return input;
168
168
  }
169
- const select$l = function CopilotBotInfoRepresentationSelect() {
169
+ const select$q = function CopilotBotInfoRepresentationSelect() {
170
170
  return {
171
171
  kind: 'Fragment',
172
- version: VERSION$e,
172
+ version: VERSION$h,
173
173
  private: [],
174
174
  selections: [
175
175
  {
@@ -204,7 +204,7 @@ const select$l = function CopilotBotInfoRepresentationSelect() {
204
204
  ]
205
205
  };
206
206
  };
207
- function equals$e(existing, incoming) {
207
+ function equals$h(existing, incoming) {
208
208
  const existing_isSuccess = existing.isSuccess;
209
209
  const incoming_isSuccess = incoming.isSuccess;
210
210
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -277,44 +277,44 @@ function equals$e(existing, incoming) {
277
277
  }
278
278
  return true;
279
279
  }
280
- const ingest$7 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
280
+ const ingest$9 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
281
281
  if (process.env.NODE_ENV !== 'production') {
282
- const validateError = validate$l(input);
282
+ const validateError = validate$o(input);
283
283
  if (validateError !== null) {
284
284
  throw validateError;
285
285
  }
286
286
  }
287
287
  const key = path.fullPath;
288
- const ttlToUse = TTL$7;
289
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$e, RepresentationType$7, equals$e);
288
+ const ttlToUse = TTL$9;
289
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "einstein-copilot-bot", VERSION$h, RepresentationType$9, equals$h);
290
290
  return createLink(key);
291
291
  };
292
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
292
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
293
293
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
294
294
  const rootKey = fullPathFactory();
295
295
  rootKeySet.set(rootKey, {
296
296
  namespace: keyPrefix,
297
- representationName: RepresentationType$7,
297
+ representationName: RepresentationType$9,
298
298
  mergeable: false
299
299
  });
300
300
  }
301
301
 
302
- function select$k(luvio, params) {
303
- return select$l();
302
+ function select$p(luvio, params) {
303
+ return select$q();
304
304
  }
305
- function keyBuilder$c(luvio, params) {
305
+ function keyBuilder$g(luvio, params) {
306
306
  return keyPrefix + '::CopilotBotInfoRepresentation:(' + ')';
307
307
  }
308
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
309
- getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$c());
308
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
309
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g());
310
310
  }
311
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
311
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
312
312
  const { body } = response;
313
- const key = keyBuilder$c();
314
- luvio.storeIngest(key, ingest$7, body);
313
+ const key = keyBuilder$g();
314
+ luvio.storeIngest(key, ingest$9, body);
315
315
  const snapshot = luvio.storeLookup({
316
316
  recordId: key,
317
- node: select$k(),
317
+ node: select$p(),
318
318
  variables: {},
319
319
  }, snapshotRefresh);
320
320
  if (process.env.NODE_ENV !== 'production') {
@@ -325,19 +325,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
325
325
  deepFreeze(snapshot.data);
326
326
  return snapshot;
327
327
  }
328
- function ingestError$4(luvio, params, error, snapshotRefresh) {
329
- const key = keyBuilder$c();
328
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
329
+ const key = keyBuilder$g();
330
330
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
331
331
  const storeMetadataParams = {
332
- ttl: TTL$7,
332
+ ttl: TTL$9,
333
333
  namespace: keyPrefix,
334
- version: VERSION$e,
335
- representationName: RepresentationType$7
334
+ version: VERSION$h,
335
+ representationName: RepresentationType$9
336
336
  };
337
337
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
338
338
  return errorSnapshot;
339
339
  }
340
- function createResourceRequest$6(config) {
340
+ function createResourceRequest$8(config) {
341
341
  const headers = {};
342
342
  return {
343
343
  baseUri: '/services/data/v62.0',
@@ -351,91 +351,91 @@ function createResourceRequest$6(config) {
351
351
  };
352
352
  }
353
353
 
354
- const adapterName$6 = 'getBotId';
354
+ const adapterName$8 = 'getBotId';
355
355
  const getBotId_ConfigPropertyMetadata = [];
356
- const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getBotId_ConfigPropertyMetadata);
357
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getBotId_ConfigPropertyMetadata);
358
- function keyBuilder$b(luvio, config) {
359
- createResourceParams$6(config);
360
- return keyBuilder$c();
356
+ const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getBotId_ConfigPropertyMetadata);
357
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getBotId_ConfigPropertyMetadata);
358
+ function keyBuilder$f(luvio, config) {
359
+ createResourceParams$8(config);
360
+ return keyBuilder$g();
361
361
  }
362
- function typeCheckConfig$6(untrustedConfig) {
362
+ function typeCheckConfig$8(untrustedConfig) {
363
363
  const config = {};
364
364
  return config;
365
365
  }
366
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
366
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
367
367
  if (!untrustedIsObject(untrustedConfig)) {
368
368
  return null;
369
369
  }
370
370
  if (process.env.NODE_ENV !== 'production') {
371
371
  validateConfig(untrustedConfig, configPropertyNames);
372
372
  }
373
- const config = typeCheckConfig$6();
373
+ const config = typeCheckConfig$8();
374
374
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
375
375
  return null;
376
376
  }
377
377
  return config;
378
378
  }
379
- function adapterFragment$4(luvio, config) {
380
- createResourceParams$6(config);
381
- return select$k();
379
+ function adapterFragment$6(luvio, config) {
380
+ createResourceParams$8(config);
381
+ return select$p();
382
382
  }
383
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
384
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
383
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
384
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
385
385
  config,
386
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
386
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
387
387
  });
388
388
  return luvio.storeBroadcast().then(() => snapshot);
389
389
  }
390
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
391
- const snapshot = ingestError$4(luvio, resourceParams, response, {
390
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
391
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
392
392
  config,
393
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
393
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
394
394
  });
395
395
  return luvio.storeBroadcast().then(() => snapshot);
396
396
  }
397
- function buildNetworkSnapshot$6(luvio, config, options) {
398
- const resourceParams = createResourceParams$6(config);
399
- const request = createResourceRequest$6();
397
+ function buildNetworkSnapshot$8(luvio, config, options) {
398
+ const resourceParams = createResourceParams$8(config);
399
+ const request = createResourceRequest$8();
400
400
  return luvio.dispatchResourceRequest(request, options)
401
401
  .then((response) => {
402
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
402
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
403
403
  const cache = new StoreKeyMap();
404
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
404
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
405
405
  return cache;
406
406
  });
407
407
  }, (response) => {
408
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
408
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
409
409
  });
410
410
  }
411
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
412
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
411
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
412
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
413
413
  }
414
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
414
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
415
415
  const { luvio, config } = context;
416
416
  const selector = {
417
- recordId: keyBuilder$b(luvio, config),
418
- node: adapterFragment$4(luvio, config),
417
+ recordId: keyBuilder$f(luvio, config),
418
+ node: adapterFragment$6(luvio, config),
419
419
  variables: {},
420
420
  };
421
421
  const cacheSnapshot = storeLookup(selector, {
422
422
  config,
423
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
423
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
424
424
  });
425
425
  return cacheSnapshot;
426
426
  }
427
427
  const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(untrustedConfig, requestContext) {
428
- const config = validateAdapterConfig$6(untrustedConfig, getBotId_ConfigPropertyNames);
428
+ const config = validateAdapterConfig$8(untrustedConfig, getBotId_ConfigPropertyNames);
429
429
  // Invalid or incomplete config
430
430
  if (config === null) {
431
431
  return null;
432
432
  }
433
433
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
434
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
434
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
435
435
  };
436
436
 
437
- const VERSION$d = "e8cb7e20392935088ea2f98edb927e8a";
438
- function validate$k(obj, path = 'EsTypeMessageRepresentation') {
437
+ const VERSION$g = "e8cb7e20392935088ea2f98edb927e8a";
438
+ function validate$n(obj, path = 'EsTypeMessageRepresentation') {
439
439
  const v_error = (() => {
440
440
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
441
441
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -481,10 +481,10 @@ function validate$k(obj, path = 'EsTypeMessageRepresentation') {
481
481
  })();
482
482
  return v_error === undefined ? null : v_error;
483
483
  }
484
- const select$j = function EsTypeMessageRepresentationSelect() {
484
+ const select$o = function EsTypeMessageRepresentationSelect() {
485
485
  return {
486
486
  kind: 'Fragment',
487
- version: VERSION$d,
487
+ version: VERSION$g,
488
488
  private: [],
489
489
  selections: [
490
490
  {
@@ -504,7 +504,7 @@ const select$j = function EsTypeMessageRepresentationSelect() {
504
504
  ]
505
505
  };
506
506
  };
507
- function equals$d(existing, incoming) {
507
+ function equals$g(existing, incoming) {
508
508
  const existing_type = existing.type;
509
509
  const incoming_type = incoming.type;
510
510
  if (!(existing_type === incoming_type)) {
@@ -531,7 +531,7 @@ function equals$d(existing, incoming) {
531
531
  return true;
532
532
  }
533
533
 
534
- function validate$j(obj, path = 'VariableRepresentation') {
534
+ function validate$m(obj, path = 'VariableRepresentation') {
535
535
  const v_error = (() => {
536
536
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
537
537
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -557,8 +557,8 @@ function validate$j(obj, path = 'VariableRepresentation') {
557
557
  return v_error === undefined ? null : v_error;
558
558
  }
559
559
 
560
- const VERSION$c = "4e28b61c3ea362f1c68b28897784111e";
561
- function validate$i(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
560
+ const VERSION$f = "4e28b61c3ea362f1c68b28897784111e";
561
+ function validate$l(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
562
562
  const v_error = (() => {
563
563
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
564
564
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -576,10 +576,10 @@ function validate$i(obj, path = 'ConversationRuntimeProxyChoiceRepresentation')
576
576
  })();
577
577
  return v_error === undefined ? null : v_error;
578
578
  }
579
- const select$i = function ConversationRuntimeProxyChoiceRepresentationSelect() {
579
+ const select$n = function ConversationRuntimeProxyChoiceRepresentationSelect() {
580
580
  return {
581
581
  kind: 'Fragment',
582
- version: VERSION$c,
582
+ version: VERSION$f,
583
583
  private: [],
584
584
  selections: [
585
585
  {
@@ -593,7 +593,7 @@ const select$i = function ConversationRuntimeProxyChoiceRepresentationSelect() {
593
593
  ]
594
594
  };
595
595
  };
596
- function equals$c(existing, incoming) {
596
+ function equals$f(existing, incoming) {
597
597
  const existing_alias = existing.alias;
598
598
  const incoming_alias = incoming.alias;
599
599
  if (!(existing_alias === incoming_alias)) {
@@ -607,8 +607,8 @@ function equals$c(existing, incoming) {
607
607
  return true;
608
608
  }
609
609
 
610
- const VERSION$b = "477724425d0742c030025796c88ebf5d";
611
- function validate$h(obj, path = 'CollectMessageRepresentation') {
610
+ const VERSION$e = "477724425d0742c030025796c88ebf5d";
611
+ function validate$k(obj, path = 'CollectMessageRepresentation') {
612
612
  const v_error = (() => {
613
613
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
614
614
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -616,7 +616,7 @@ function validate$h(obj, path = 'CollectMessageRepresentation') {
616
616
  if (obj.data !== undefined) {
617
617
  const obj_data = obj.data;
618
618
  const path_data = path + '.data';
619
- const referencepath_dataValidationError = validate$k(obj_data, path_data);
619
+ const referencepath_dataValidationError = validate$n(obj_data, path_data);
620
620
  if (referencepath_dataValidationError !== null) {
621
621
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
622
622
  message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -659,11 +659,11 @@ function validate$h(obj, path = 'CollectMessageRepresentation') {
659
659
  })();
660
660
  return v_error === undefined ? null : v_error;
661
661
  }
662
- const select$h = function CollectMessageRepresentationSelect() {
663
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$j();
662
+ const select$m = function CollectMessageRepresentationSelect() {
663
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$o();
664
664
  return {
665
665
  kind: 'Fragment',
666
- version: VERSION$b,
666
+ version: VERSION$e,
667
667
  private: [],
668
668
  selections: [
669
669
  {
@@ -684,7 +684,7 @@ const select$h = function CollectMessageRepresentationSelect() {
684
684
  ]
685
685
  };
686
686
  };
687
- function equals$b(existing, incoming) {
687
+ function equals$e(existing, incoming) {
688
688
  const existing_targetType = existing.targetType;
689
689
  const incoming_targetType = incoming.targetType;
690
690
  if (!(existing_targetType === incoming_targetType)) {
@@ -699,7 +699,7 @@ function equals$b(existing, incoming) {
699
699
  if (existing_data === undefined || incoming_data === undefined) {
700
700
  return false;
701
701
  }
702
- if (!(equals$d(existing_data, incoming_data))) {
702
+ if (!(equals$g(existing_data, incoming_data))) {
703
703
  return false;
704
704
  }
705
705
  }
@@ -719,9 +719,9 @@ function equals$b(existing, incoming) {
719
719
  return true;
720
720
  }
721
721
 
722
- const TTL$6 = 30000;
723
- const VERSION$a = "983ede912bc103cfd2e2c2758140c5c9";
724
- function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
722
+ const TTL$8 = 30000;
723
+ const VERSION$d = "983ede912bc103cfd2e2c2758140c5c9";
724
+ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
725
725
  const v_error = (() => {
726
726
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
727
727
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,7 +735,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
735
735
  for (let i = 0; i < obj_choices.length; i++) {
736
736
  const obj_choices_item = obj_choices[i];
737
737
  const path_choices_item = path_choices + '[' + i + ']';
738
- const referencepath_choices_itemValidationError = validate$i(obj_choices_item, path_choices_item);
738
+ const referencepath_choices_itemValidationError = validate$l(obj_choices_item, path_choices_item);
739
739
  if (referencepath_choices_itemValidationError !== null) {
740
740
  let message = 'Object doesn\'t match ConversationRuntimeProxyChoiceRepresentation (at "' + path_choices_item + '")\n';
741
741
  message += referencepath_choices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -752,7 +752,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
752
752
  for (let i = 0; i < obj_collect.length; i++) {
753
753
  const obj_collect_item = obj_collect[i];
754
754
  const path_collect_item = path_collect + '[' + i + ']';
755
- const referencepath_collect_itemValidationError = validate$h(obj_collect_item, path_collect_item);
755
+ const referencepath_collect_itemValidationError = validate$k(obj_collect_item, path_collect_item);
756
756
  if (referencepath_collect_itemValidationError !== null) {
757
757
  let message = 'Object doesn\'t match CollectMessageRepresentation (at "' + path_collect_item + '")\n';
758
758
  message += referencepath_collect_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -769,7 +769,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
769
769
  for (let i = 0; i < obj_confirm.length; i++) {
770
770
  const obj_confirm_item = obj_confirm[i];
771
771
  const path_confirm_item = path_confirm + '[' + i + ']';
772
- const referencepath_confirm_itemValidationError = validate$k(obj_confirm_item, path_confirm_item);
772
+ const referencepath_confirm_itemValidationError = validate$n(obj_confirm_item, path_confirm_item);
773
773
  if (referencepath_confirm_itemValidationError !== null) {
774
774
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_confirm_item + '")\n';
775
775
  message += referencepath_confirm_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -952,7 +952,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
952
952
  for (let i = 0; i < obj_result.length; i++) {
953
953
  const obj_result_item = obj_result[i];
954
954
  const path_result_item = path_result + '[' + i + ']';
955
- const referencepath_result_itemValidationError = validate$k(obj_result_item, path_result_item);
955
+ const referencepath_result_itemValidationError = validate$n(obj_result_item, path_result_item);
956
956
  if (referencepath_result_itemValidationError !== null) {
957
957
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_result_item + '")\n';
958
958
  message += referencepath_result_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1026,26 +1026,26 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
1026
1026
  })();
1027
1027
  return v_error === undefined ? null : v_error;
1028
1028
  }
1029
- const RepresentationType$6 = 'ConversationRuntimeProxyMessageRepresentation';
1030
- function keyBuilder$a(luvio, config) {
1031
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
1029
+ const RepresentationType$8 = 'ConversationRuntimeProxyMessageRepresentation';
1030
+ function keyBuilder$e(luvio, config) {
1031
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1032
1032
  }
1033
1033
  function keyBuilderFromType$2(luvio, object) {
1034
1034
  const keyParams = {
1035
1035
  id: object.id
1036
1036
  };
1037
- return keyBuilder$a(luvio, keyParams);
1037
+ return keyBuilder$e(luvio, keyParams);
1038
1038
  }
1039
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1039
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1040
1040
  return input;
1041
1041
  }
1042
- const select$g = function ConversationRuntimeProxyMessageRepresentationSelect() {
1043
- const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$i();
1044
- const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$h();
1045
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$j();
1042
+ const select$l = function ConversationRuntimeProxyMessageRepresentationSelect() {
1043
+ const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$n();
1044
+ const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$m();
1045
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$o();
1046
1046
  return {
1047
1047
  kind: 'Fragment',
1048
- version: VERSION$a,
1048
+ version: VERSION$d,
1049
1049
  private: [],
1050
1050
  selections: [
1051
1051
  {
@@ -1134,7 +1134,7 @@ const select$g = function ConversationRuntimeProxyMessageRepresentationSelect()
1134
1134
  ]
1135
1135
  };
1136
1136
  };
1137
- function equals$a(existing, incoming) {
1137
+ function equals$d(existing, incoming) {
1138
1138
  const existing_isContentSafe = existing.isContentSafe;
1139
1139
  const incoming_isContentSafe = incoming.isContentSafe;
1140
1140
  // if at least one of these optionals is defined
@@ -1176,7 +1176,7 @@ function equals$a(existing, incoming) {
1176
1176
  return false;
1177
1177
  }
1178
1178
  const equals_choices_items = equalsArray(existing_choices, incoming_choices, (existing_choices_item, incoming_choices_item) => {
1179
- if (!(equals$c(existing_choices_item, incoming_choices_item))) {
1179
+ if (!(equals$f(existing_choices_item, incoming_choices_item))) {
1180
1180
  return false;
1181
1181
  }
1182
1182
  });
@@ -1194,7 +1194,7 @@ function equals$a(existing, incoming) {
1194
1194
  return false;
1195
1195
  }
1196
1196
  const equals_collect_items = equalsArray(existing_collect, incoming_collect, (existing_collect_item, incoming_collect_item) => {
1197
- if (!(equals$b(existing_collect_item, incoming_collect_item))) {
1197
+ if (!(equals$e(existing_collect_item, incoming_collect_item))) {
1198
1198
  return false;
1199
1199
  }
1200
1200
  });
@@ -1212,7 +1212,7 @@ function equals$a(existing, incoming) {
1212
1212
  return false;
1213
1213
  }
1214
1214
  const equals_confirm_items = equalsArray(existing_confirm, incoming_confirm, (existing_confirm_item, incoming_confirm_item) => {
1215
- if (!(equals$d(existing_confirm_item, incoming_confirm_item))) {
1215
+ if (!(equals$g(existing_confirm_item, incoming_confirm_item))) {
1216
1216
  return false;
1217
1217
  }
1218
1218
  });
@@ -1313,7 +1313,7 @@ function equals$a(existing, incoming) {
1313
1313
  return false;
1314
1314
  }
1315
1315
  const equals_result_items = equalsArray(existing_result, incoming_result, (existing_result_item, incoming_result_item) => {
1316
- if (!(equals$d(existing_result_item, incoming_result_item))) {
1316
+ if (!(equals$g(existing_result_item, incoming_result_item))) {
1317
1317
  return false;
1318
1318
  }
1319
1319
  });
@@ -1349,31 +1349,31 @@ function equals$a(existing, incoming) {
1349
1349
  }
1350
1350
  return true;
1351
1351
  }
1352
- const ingest$6 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1352
+ const ingest$8 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1353
1353
  if (process.env.NODE_ENV !== 'production') {
1354
- const validateError = validate$g(input);
1354
+ const validateError = validate$j(input);
1355
1355
  if (validateError !== null) {
1356
1356
  throw validateError;
1357
1357
  }
1358
1358
  }
1359
1359
  const key = keyBuilderFromType$2(luvio, input);
1360
- const ttlToUse = TTL$6;
1361
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$a, RepresentationType$6, equals$a);
1360
+ const ttlToUse = TTL$8;
1361
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "einstein-copilot-bot", VERSION$d, RepresentationType$8, equals$d);
1362
1362
  return createLink(key);
1363
1363
  };
1364
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1364
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1365
1365
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1366
1366
  const rootKey = keyBuilderFromType$2(luvio, input);
1367
1367
  rootKeySet.set(rootKey, {
1368
1368
  namespace: keyPrefix,
1369
- representationName: RepresentationType$6,
1369
+ representationName: RepresentationType$8,
1370
1370
  mergeable: false
1371
1371
  });
1372
1372
  }
1373
1373
 
1374
- const TTL$5 = 30000;
1375
- const VERSION$9 = "fe7024fb1132250f97d9616482f09f99";
1376
- function validate$f(obj, path = 'ConversationRuntimeProxyRepresentation') {
1374
+ const TTL$7 = 30000;
1375
+ const VERSION$c = "fe7024fb1132250f97d9616482f09f99";
1376
+ function validate$i(obj, path = 'ConversationRuntimeProxyRepresentation') {
1377
1377
  const v_error = (() => {
1378
1378
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1379
1379
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1425,23 +1425,23 @@ function validate$f(obj, path = 'ConversationRuntimeProxyRepresentation') {
1425
1425
  })();
1426
1426
  return v_error === undefined ? null : v_error;
1427
1427
  }
1428
- const RepresentationType$5 = 'ConversationRuntimeProxyRepresentation';
1429
- function keyBuilder$9(luvio, config) {
1430
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1428
+ const RepresentationType$7 = 'ConversationRuntimeProxyRepresentation';
1429
+ function keyBuilder$d(luvio, config) {
1430
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1431
1431
  }
1432
1432
  function keyBuilderFromType$1(luvio, object) {
1433
1433
  const keyParams = {
1434
1434
  id: object.requestId
1435
1435
  };
1436
- return keyBuilder$9(luvio, keyParams);
1436
+ return keyBuilder$d(luvio, keyParams);
1437
1437
  }
1438
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1438
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1439
1439
  const input_messages = input.messages;
1440
1440
  const input_messages_id = path.fullPath + '__messages';
1441
1441
  for (let i = 0; i < input_messages.length; i++) {
1442
1442
  const input_messages_item = input_messages[i];
1443
1443
  let input_messages_item_id = input_messages_id + '__' + i;
1444
- input_messages[i] = ingest$6(input_messages_item, {
1444
+ input_messages[i] = ingest$8(input_messages_item, {
1445
1445
  fullPath: input_messages_item_id,
1446
1446
  propertyName: i,
1447
1447
  parent: {
@@ -1454,10 +1454,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1454
1454
  }
1455
1455
  return input;
1456
1456
  }
1457
- const select$f = function ConversationRuntimeProxyRepresentationSelect() {
1457
+ const select$k = function ConversationRuntimeProxyRepresentationSelect() {
1458
1458
  return {
1459
1459
  kind: 'Fragment',
1460
- version: VERSION$9,
1460
+ version: VERSION$c,
1461
1461
  private: [],
1462
1462
  selections: [
1463
1463
  {
@@ -1472,7 +1472,7 @@ const select$f = function ConversationRuntimeProxyRepresentationSelect() {
1472
1472
  name: 'messages',
1473
1473
  kind: 'Link',
1474
1474
  plural: true,
1475
- fragment: select$g()
1475
+ fragment: select$l()
1476
1476
  },
1477
1477
  {
1478
1478
  name: 'processedSequenceIds',
@@ -1490,7 +1490,7 @@ const select$f = function ConversationRuntimeProxyRepresentationSelect() {
1490
1490
  ]
1491
1491
  };
1492
1492
  };
1493
- function equals$9(existing, incoming) {
1493
+ function equals$c(existing, incoming) {
1494
1494
  const existing_botId = existing.botId;
1495
1495
  const incoming_botId = incoming.botId;
1496
1496
  if (!(existing_botId === incoming_botId)) {
@@ -1533,45 +1533,45 @@ function equals$9(existing, incoming) {
1533
1533
  }
1534
1534
  return true;
1535
1535
  }
1536
- const ingest$5 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1536
+ const ingest$7 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1537
1537
  if (process.env.NODE_ENV !== 'production') {
1538
- const validateError = validate$f(input);
1538
+ const validateError = validate$i(input);
1539
1539
  if (validateError !== null) {
1540
1540
  throw validateError;
1541
1541
  }
1542
1542
  }
1543
1543
  const key = keyBuilderFromType$1(luvio, input);
1544
- const ttlToUse = TTL$5;
1545
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$9, RepresentationType$5, equals$9);
1544
+ const ttlToUse = TTL$7;
1545
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$c, RepresentationType$7, equals$c);
1546
1546
  return createLink(key);
1547
1547
  };
1548
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1548
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1549
1549
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1550
1550
  const rootKey = keyBuilderFromType$1(luvio, input);
1551
1551
  rootKeySet.set(rootKey, {
1552
1552
  namespace: keyPrefix,
1553
- representationName: RepresentationType$5,
1553
+ representationName: RepresentationType$7,
1554
1554
  mergeable: false
1555
1555
  });
1556
1556
  const input_messages_length = input.messages.length;
1557
1557
  for (let i = 0; i < input_messages_length; i++) {
1558
- getTypeCacheKeys$6(rootKeySet, luvio, input.messages[i]);
1558
+ getTypeCacheKeys$8(rootKeySet, luvio, input.messages[i]);
1559
1559
  }
1560
1560
  }
1561
1561
 
1562
- function select$e(luvio, params) {
1563
- return select$f();
1562
+ function select$j(luvio, params) {
1563
+ return select$k();
1564
1564
  }
1565
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1566
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1565
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1566
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1567
1567
  }
1568
- function ingestSuccess$5(luvio, resourceParams, response) {
1568
+ function ingestSuccess$7(luvio, resourceParams, response) {
1569
1569
  const { body } = response;
1570
1570
  const key = keyBuilderFromType$1(luvio, body);
1571
- luvio.storeIngest(key, ingest$5, body);
1571
+ luvio.storeIngest(key, ingest$7, body);
1572
1572
  const snapshot = luvio.storeLookup({
1573
1573
  recordId: key,
1574
- node: select$e(),
1574
+ node: select$j(),
1575
1575
  variables: {},
1576
1576
  });
1577
1577
  if (process.env.NODE_ENV !== 'production') {
@@ -1582,7 +1582,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1582
1582
  deepFreeze(snapshot.data);
1583
1583
  return snapshot;
1584
1584
  }
1585
- function createResourceRequest$5(config) {
1585
+ function createResourceRequest$7(config) {
1586
1586
  const headers = {};
1587
1587
  return {
1588
1588
  baseUri: '/services/data/v62.0',
@@ -1596,7 +1596,7 @@ function createResourceRequest$5(config) {
1596
1596
  };
1597
1597
  }
1598
1598
 
1599
- const adapterName$5 = 'sendMessage';
1599
+ const adapterName$7 = 'sendMessage';
1600
1600
  const sendMessage_ConfigPropertyMetadata = [
1601
1601
  generateParamConfigMetadata('botId', false, 1 /* QueryParameter */, 0 /* String */),
1602
1602
  generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
@@ -1613,11 +1613,11 @@ const sendMessage_ConfigPropertyMetadata = [
1613
1613
  generateParamConfigMetadata('variables', false, 2 /* Body */, 4 /* Unsupported */, true),
1614
1614
  generateParamConfigMetadata('userUtterance', false, 2 /* Body */, 0 /* String */),
1615
1615
  ];
1616
- const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, sendMessage_ConfigPropertyMetadata);
1617
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(sendMessage_ConfigPropertyMetadata);
1618
- function typeCheckConfig$5(untrustedConfig) {
1616
+ const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, sendMessage_ConfigPropertyMetadata);
1617
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(sendMessage_ConfigPropertyMetadata);
1618
+ function typeCheckConfig$7(untrustedConfig) {
1619
1619
  const config = {};
1620
- typeCheckConfig$7(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1620
+ typeCheckConfig$9(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1621
1621
  const untrustedConfig_planTemplateVariables = untrustedConfig.planTemplateVariables;
1622
1622
  config.planTemplateVariables = untrustedConfig_planTemplateVariables;
1623
1623
  const untrustedConfig_reply = untrustedConfig.reply;
@@ -1625,7 +1625,7 @@ function typeCheckConfig$5(untrustedConfig) {
1625
1625
  const untrustedConfig_reply_array = [];
1626
1626
  for (let i = 0, arrayLength = untrustedConfig_reply.length; i < arrayLength; i++) {
1627
1627
  const untrustedConfig_reply_item = untrustedConfig_reply[i];
1628
- const referenceEsTypeMessageRepresentationValidationError = validate$k(untrustedConfig_reply_item);
1628
+ const referenceEsTypeMessageRepresentationValidationError = validate$n(untrustedConfig_reply_item);
1629
1629
  if (referenceEsTypeMessageRepresentationValidationError === null) {
1630
1630
  untrustedConfig_reply_array.push(untrustedConfig_reply_item);
1631
1631
  }
@@ -1637,7 +1637,7 @@ function typeCheckConfig$5(untrustedConfig) {
1637
1637
  const untrustedConfig_variables_array = [];
1638
1638
  for (let i = 0, arrayLength = untrustedConfig_variables.length; i < arrayLength; i++) {
1639
1639
  const untrustedConfig_variables_item = untrustedConfig_variables[i];
1640
- const referenceVariableRepresentationValidationError = validate$j(untrustedConfig_variables_item);
1640
+ const referenceVariableRepresentationValidationError = validate$m(untrustedConfig_variables_item);
1641
1641
  if (referenceVariableRepresentationValidationError === null) {
1642
1642
  untrustedConfig_variables_array.push(untrustedConfig_variables_item);
1643
1643
  }
@@ -1646,30 +1646,30 @@ function typeCheckConfig$5(untrustedConfig) {
1646
1646
  }
1647
1647
  return config;
1648
1648
  }
1649
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1649
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1650
1650
  if (!untrustedIsObject(untrustedConfig)) {
1651
1651
  return null;
1652
1652
  }
1653
1653
  if (process.env.NODE_ENV !== 'production') {
1654
1654
  validateConfig(untrustedConfig, configPropertyNames);
1655
1655
  }
1656
- const config = typeCheckConfig$5(untrustedConfig);
1656
+ const config = typeCheckConfig$7(untrustedConfig);
1657
1657
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1658
1658
  return null;
1659
1659
  }
1660
1660
  return config;
1661
1661
  }
1662
- function buildNetworkSnapshot$5(luvio, config, options) {
1663
- const resourceParams = createResourceParams$5(config);
1664
- const request = createResourceRequest$5(resourceParams);
1662
+ function buildNetworkSnapshot$7(luvio, config, options) {
1663
+ const resourceParams = createResourceParams$7(config);
1664
+ const request = createResourceRequest$7(resourceParams);
1665
1665
  return luvio.dispatchResourceRequest(request, options)
1666
1666
  .then((response) => {
1667
1667
  return luvio.handleSuccessResponse(() => {
1668
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1668
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1669
1669
  return luvio.storeBroadcast().then(() => snapshot);
1670
1670
  }, () => {
1671
1671
  const cache = new StoreKeyMap();
1672
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1672
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1673
1673
  return cache;
1674
1674
  });
1675
1675
  }, (response) => {
@@ -1679,17 +1679,17 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1679
1679
  }
1680
1680
  const sendMessageAdapterFactory = (luvio) => {
1681
1681
  return function sendMessage(untrustedConfig) {
1682
- const config = validateAdapterConfig$5(untrustedConfig, sendMessage_ConfigPropertyNames);
1682
+ const config = validateAdapterConfig$7(untrustedConfig, sendMessage_ConfigPropertyNames);
1683
1683
  // Invalid or incomplete config
1684
1684
  if (config === null) {
1685
1685
  throw new Error('Invalid config for "sendMessage"');
1686
1686
  }
1687
- return buildNetworkSnapshot$5(luvio, config);
1687
+ return buildNetworkSnapshot$7(luvio, config);
1688
1688
  };
1689
1689
  };
1690
1690
 
1691
- const VERSION$8 = "504437088c2317480c651ac05a7565b5";
1692
- function validate$e(obj, path = 'PlanTemplateRepresentation') {
1691
+ const VERSION$b = "504437088c2317480c651ac05a7565b5";
1692
+ function validate$h(obj, path = 'PlanTemplateRepresentation') {
1693
1693
  const v_error = (() => {
1694
1694
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1695
1695
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1731,10 +1731,10 @@ function validate$e(obj, path = 'PlanTemplateRepresentation') {
1731
1731
  })();
1732
1732
  return v_error === undefined ? null : v_error;
1733
1733
  }
1734
- const select$d = function PlanTemplateRepresentationSelect() {
1734
+ const select$i = function PlanTemplateRepresentationSelect() {
1735
1735
  return {
1736
1736
  kind: 'Fragment',
1737
- version: VERSION$8,
1737
+ version: VERSION$b,
1738
1738
  private: [],
1739
1739
  selections: [
1740
1740
  {
@@ -1761,7 +1761,7 @@ const select$d = function PlanTemplateRepresentationSelect() {
1761
1761
  ]
1762
1762
  };
1763
1763
  };
1764
- function equals$8(existing, incoming) {
1764
+ function equals$b(existing, incoming) {
1765
1765
  const existing_intent = existing.intent;
1766
1766
  const incoming_intent = incoming.intent;
1767
1767
  if (!(existing_intent === incoming_intent)) {
@@ -1795,9 +1795,9 @@ function equals$8(existing, incoming) {
1795
1795
  return true;
1796
1796
  }
1797
1797
 
1798
- const TTL$4 = 900000;
1799
- const VERSION$7 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1800
- function validate$d(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1798
+ const TTL$6 = 900000;
1799
+ const VERSION$a = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1800
+ function validate$g(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1801
1801
  const v_error = (() => {
1802
1802
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1803
1803
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1822,7 +1822,7 @@ function validate$d(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1822
1822
  for (let i = 0; i < obj_planTemplates.length; i++) {
1823
1823
  const obj_planTemplates_item = obj_planTemplates[i];
1824
1824
  const path_planTemplates_item = path_planTemplates + '[' + i + ']';
1825
- const referencepath_planTemplates_itemValidationError = validate$e(obj_planTemplates_item, path_planTemplates_item);
1825
+ const referencepath_planTemplates_itemValidationError = validate$h(obj_planTemplates_item, path_planTemplates_item);
1826
1826
  if (referencepath_planTemplates_itemValidationError !== null) {
1827
1827
  let message = 'Object doesn\'t match PlanTemplateRepresentation (at "' + path_planTemplates_item + '")\n';
1828
1828
  message += referencepath_planTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1832,15 +1832,15 @@ function validate$d(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1832
1832
  })();
1833
1833
  return v_error === undefined ? null : v_error;
1834
1834
  }
1835
- const RepresentationType$4 = 'RecommendedPlanTemplatesRepresentation';
1836
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1835
+ const RepresentationType$6 = 'RecommendedPlanTemplatesRepresentation';
1836
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1837
1837
  return input;
1838
1838
  }
1839
- const select$c = function RecommendedPlanTemplatesRepresentationSelect() {
1840
- const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$d();
1839
+ const select$h = function RecommendedPlanTemplatesRepresentationSelect() {
1840
+ const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$i();
1841
1841
  return {
1842
1842
  kind: 'Fragment',
1843
- version: VERSION$7,
1843
+ version: VERSION$a,
1844
1844
  private: [],
1845
1845
  selections: [
1846
1846
  {
@@ -1861,7 +1861,7 @@ const select$c = function RecommendedPlanTemplatesRepresentationSelect() {
1861
1861
  ]
1862
1862
  };
1863
1863
  };
1864
- function equals$7(existing, incoming) {
1864
+ function equals$a(existing, incoming) {
1865
1865
  const existing_isSuccess = existing.isSuccess;
1866
1866
  const incoming_isSuccess = incoming.isSuccess;
1867
1867
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -1883,7 +1883,7 @@ function equals$7(existing, incoming) {
1883
1883
  const existing_planTemplates = existing.planTemplates;
1884
1884
  const incoming_planTemplates = incoming.planTemplates;
1885
1885
  const equals_planTemplates_items = equalsArray(existing_planTemplates, incoming_planTemplates, (existing_planTemplates_item, incoming_planTemplates_item) => {
1886
- if (!(equals$8(existing_planTemplates_item, incoming_planTemplates_item))) {
1886
+ if (!(equals$b(existing_planTemplates_item, incoming_planTemplates_item))) {
1887
1887
  return false;
1888
1888
  }
1889
1889
  });
@@ -1892,44 +1892,44 @@ function equals$7(existing, incoming) {
1892
1892
  }
1893
1893
  return true;
1894
1894
  }
1895
- const ingest$4 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1895
+ const ingest$6 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1896
1896
  if (process.env.NODE_ENV !== 'production') {
1897
- const validateError = validate$d(input);
1897
+ const validateError = validate$g(input);
1898
1898
  if (validateError !== null) {
1899
1899
  throw validateError;
1900
1900
  }
1901
1901
  }
1902
1902
  const key = path.fullPath;
1903
- const ttlToUse = TTL$4;
1904
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$7, RepresentationType$4, equals$7);
1903
+ const ttlToUse = TTL$6;
1904
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$a, RepresentationType$6, equals$a);
1905
1905
  return createLink(key);
1906
1906
  };
1907
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1907
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1908
1908
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1909
1909
  const rootKey = fullPathFactory();
1910
1910
  rootKeySet.set(rootKey, {
1911
1911
  namespace: keyPrefix,
1912
- representationName: RepresentationType$4,
1912
+ representationName: RepresentationType$6,
1913
1913
  mergeable: false
1914
1914
  });
1915
1915
  }
1916
1916
 
1917
- function select$b(luvio, params) {
1918
- return select$c();
1917
+ function select$g(luvio, params) {
1918
+ return select$h();
1919
1919
  }
1920
- function keyBuilder$8(luvio, params) {
1920
+ function keyBuilder$c(luvio, params) {
1921
1921
  return keyPrefix + '::RecommendedPlanTemplatesRepresentation:(' + 'pageType:' + params.urlParams.pageType + ',' + 'objectType:' + params.urlParams.objectType + ')';
1922
1922
  }
1923
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1924
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
1923
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1924
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
1925
1925
  }
1926
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1926
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1927
1927
  const { body } = response;
1928
- const key = keyBuilder$8(luvio, resourceParams);
1929
- luvio.storeIngest(key, ingest$4, body);
1928
+ const key = keyBuilder$c(luvio, resourceParams);
1929
+ luvio.storeIngest(key, ingest$6, body);
1930
1930
  const snapshot = luvio.storeLookup({
1931
1931
  recordId: key,
1932
- node: select$b(),
1932
+ node: select$g(),
1933
1933
  variables: {},
1934
1934
  }, snapshotRefresh);
1935
1935
  if (process.env.NODE_ENV !== 'production') {
@@ -1940,19 +1940,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1940
1940
  deepFreeze(snapshot.data);
1941
1941
  return snapshot;
1942
1942
  }
1943
- function ingestError$3(luvio, params, error, snapshotRefresh) {
1944
- const key = keyBuilder$8(luvio, params);
1943
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
1944
+ const key = keyBuilder$c(luvio, params);
1945
1945
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1946
1946
  const storeMetadataParams = {
1947
- ttl: TTL$4,
1947
+ ttl: TTL$6,
1948
1948
  namespace: keyPrefix,
1949
- version: VERSION$7,
1950
- representationName: RepresentationType$4
1949
+ version: VERSION$a,
1950
+ representationName: RepresentationType$6
1951
1951
  };
1952
1952
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1953
1953
  return errorSnapshot;
1954
1954
  }
1955
- function createResourceRequest$4(config) {
1955
+ function createResourceRequest$6(config) {
1956
1956
  const headers = {};
1957
1957
  return {
1958
1958
  baseUri: '/services/data/v62.0',
@@ -1966,96 +1966,96 @@ function createResourceRequest$4(config) {
1966
1966
  };
1967
1967
  }
1968
1968
 
1969
- const adapterName$4 = 'getRecommendedPlanTemplates';
1969
+ const adapterName$6 = 'getRecommendedPlanTemplates';
1970
1970
  const getRecommendedPlanTemplates_ConfigPropertyMetadata = [
1971
1971
  generateParamConfigMetadata('pageType', true, 0 /* UrlParameter */, 0 /* String */),
1972
1972
  generateParamConfigMetadata('objectType', true, 0 /* UrlParameter */, 0 /* String */),
1973
1973
  ];
1974
- const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1975
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1976
- function keyBuilder$7(luvio, config) {
1977
- const resourceParams = createResourceParams$4(config);
1978
- return keyBuilder$8(luvio, resourceParams);
1974
+ const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1975
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1976
+ function keyBuilder$b(luvio, config) {
1977
+ const resourceParams = createResourceParams$6(config);
1978
+ return keyBuilder$c(luvio, resourceParams);
1979
1979
  }
1980
- function typeCheckConfig$4(untrustedConfig) {
1980
+ function typeCheckConfig$6(untrustedConfig) {
1981
1981
  const config = {};
1982
- typeCheckConfig$7(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1982
+ typeCheckConfig$9(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1983
1983
  return config;
1984
1984
  }
1985
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1985
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1986
1986
  if (!untrustedIsObject(untrustedConfig)) {
1987
1987
  return null;
1988
1988
  }
1989
1989
  if (process.env.NODE_ENV !== 'production') {
1990
1990
  validateConfig(untrustedConfig, configPropertyNames);
1991
1991
  }
1992
- const config = typeCheckConfig$4(untrustedConfig);
1992
+ const config = typeCheckConfig$6(untrustedConfig);
1993
1993
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1994
1994
  return null;
1995
1995
  }
1996
1996
  return config;
1997
1997
  }
1998
- function adapterFragment$3(luvio, config) {
1999
- createResourceParams$4(config);
2000
- return select$b();
1998
+ function adapterFragment$5(luvio, config) {
1999
+ createResourceParams$6(config);
2000
+ return select$g();
2001
2001
  }
2002
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2003
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2002
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2003
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2004
2004
  config,
2005
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2005
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2006
2006
  });
2007
2007
  return luvio.storeBroadcast().then(() => snapshot);
2008
2008
  }
2009
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
2010
- const snapshot = ingestError$3(luvio, resourceParams, response, {
2009
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2010
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2011
2011
  config,
2012
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2012
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2013
2013
  });
2014
2014
  return luvio.storeBroadcast().then(() => snapshot);
2015
2015
  }
2016
- function buildNetworkSnapshot$4(luvio, config, options) {
2017
- const resourceParams = createResourceParams$4(config);
2018
- const request = createResourceRequest$4(resourceParams);
2016
+ function buildNetworkSnapshot$6(luvio, config, options) {
2017
+ const resourceParams = createResourceParams$6(config);
2018
+ const request = createResourceRequest$6(resourceParams);
2019
2019
  return luvio.dispatchResourceRequest(request, options)
2020
2020
  .then((response) => {
2021
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2021
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2022
2022
  const cache = new StoreKeyMap();
2023
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2023
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2024
2024
  return cache;
2025
2025
  });
2026
2026
  }, (response) => {
2027
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2027
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2028
2028
  });
2029
2029
  }
2030
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2031
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2030
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2031
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2032
2032
  }
2033
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2033
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2034
2034
  const { luvio, config } = context;
2035
2035
  const selector = {
2036
- recordId: keyBuilder$7(luvio, config),
2037
- node: adapterFragment$3(luvio, config),
2036
+ recordId: keyBuilder$b(luvio, config),
2037
+ node: adapterFragment$5(luvio, config),
2038
2038
  variables: {},
2039
2039
  };
2040
2040
  const cacheSnapshot = storeLookup(selector, {
2041
2041
  config,
2042
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2042
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2043
2043
  });
2044
2044
  return cacheSnapshot;
2045
2045
  }
2046
2046
  const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedPlanTemplates(untrustedConfig, requestContext) {
2047
- const config = validateAdapterConfig$4(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
2047
+ const config = validateAdapterConfig$6(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
2048
2048
  // Invalid or incomplete config
2049
2049
  if (config === null) {
2050
2050
  return null;
2051
2051
  }
2052
2052
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2053
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2053
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2054
2054
  };
2055
2055
 
2056
- const TTL$3 = 100;
2057
- const VERSION$6 = "7454bdd46af1622eb677a9bb9eac3a8b";
2058
- function validate$c(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2056
+ const TTL$5 = 100;
2057
+ const VERSION$9 = "7454bdd46af1622eb677a9bb9eac3a8b";
2058
+ function validate$f(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2059
2059
  const v_error = (() => {
2060
2060
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2061
2061
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2068,23 +2068,23 @@ function validate$c(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2068
2068
  })();
2069
2069
  return v_error === undefined ? null : v_error;
2070
2070
  }
2071
- const RepresentationType$3 = 'CopilotLLMFeedbackOutputRepresentation';
2072
- function keyBuilder$6(luvio, config) {
2073
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
2071
+ const RepresentationType$5 = 'CopilotLLMFeedbackOutputRepresentation';
2072
+ function keyBuilder$a(luvio, config) {
2073
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
2074
2074
  }
2075
2075
  function keyBuilderFromType(luvio, object) {
2076
2076
  const keyParams = {
2077
2077
  id: object.submitFeedbackStatus
2078
2078
  };
2079
- return keyBuilder$6(luvio, keyParams);
2079
+ return keyBuilder$a(luvio, keyParams);
2080
2080
  }
2081
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2081
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2082
2082
  return input;
2083
2083
  }
2084
- const select$a = function CopilotLLMFeedbackOutputRepresentationSelect() {
2084
+ const select$f = function CopilotLLMFeedbackOutputRepresentationSelect() {
2085
2085
  return {
2086
2086
  kind: 'Fragment',
2087
- version: VERSION$6,
2087
+ version: VERSION$9,
2088
2088
  private: [],
2089
2089
  selections: [
2090
2090
  {
@@ -2094,7 +2094,7 @@ const select$a = function CopilotLLMFeedbackOutputRepresentationSelect() {
2094
2094
  ]
2095
2095
  };
2096
2096
  };
2097
- function equals$6(existing, incoming) {
2097
+ function equals$9(existing, incoming) {
2098
2098
  const existing_submitFeedbackStatus = existing.submitFeedbackStatus;
2099
2099
  const incoming_submitFeedbackStatus = incoming.submitFeedbackStatus;
2100
2100
  if (!(existing_submitFeedbackStatus === incoming_submitFeedbackStatus)) {
@@ -2102,41 +2102,41 @@ function equals$6(existing, incoming) {
2102
2102
  }
2103
2103
  return true;
2104
2104
  }
2105
- const ingest$3 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2105
+ const ingest$5 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2106
2106
  if (process.env.NODE_ENV !== 'production') {
2107
- const validateError = validate$c(input);
2107
+ const validateError = validate$f(input);
2108
2108
  if (validateError !== null) {
2109
2109
  throw validateError;
2110
2110
  }
2111
2111
  }
2112
2112
  const key = keyBuilderFromType(luvio, input);
2113
- const ttlToUse = TTL$3;
2114
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$6, RepresentationType$3, equals$6);
2113
+ const ttlToUse = TTL$5;
2114
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$9, RepresentationType$5, equals$9);
2115
2115
  return createLink(key);
2116
2116
  };
2117
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2117
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2118
2118
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2119
2119
  const rootKey = keyBuilderFromType(luvio, input);
2120
2120
  rootKeySet.set(rootKey, {
2121
2121
  namespace: keyPrefix,
2122
- representationName: RepresentationType$3,
2122
+ representationName: RepresentationType$5,
2123
2123
  mergeable: false
2124
2124
  });
2125
2125
  }
2126
2126
 
2127
- function select$9(luvio, params) {
2128
- return select$a();
2127
+ function select$e(luvio, params) {
2128
+ return select$f();
2129
2129
  }
2130
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2131
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2130
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2131
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2132
2132
  }
2133
- function ingestSuccess$3(luvio, resourceParams, response) {
2133
+ function ingestSuccess$5(luvio, resourceParams, response) {
2134
2134
  const { body } = response;
2135
2135
  const key = keyBuilderFromType(luvio, body);
2136
- luvio.storeIngest(key, ingest$3, body);
2136
+ luvio.storeIngest(key, ingest$5, body);
2137
2137
  const snapshot = luvio.storeLookup({
2138
2138
  recordId: key,
2139
- node: select$9(),
2139
+ node: select$e(),
2140
2140
  variables: {},
2141
2141
  });
2142
2142
  if (process.env.NODE_ENV !== 'production') {
@@ -2147,7 +2147,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
2147
2147
  deepFreeze(snapshot.data);
2148
2148
  return snapshot;
2149
2149
  }
2150
- function createResourceRequest$3(config) {
2150
+ function createResourceRequest$5(config) {
2151
2151
  const headers = {};
2152
2152
  return {
2153
2153
  baseUri: '/services/data/v62.0',
@@ -2161,7 +2161,7 @@ function createResourceRequest$3(config) {
2161
2161
  };
2162
2162
  }
2163
2163
 
2164
- const adapterName$3 = 'submitFeedback';
2164
+ const adapterName$5 = 'submitFeedback';
2165
2165
  const submitFeedback_ConfigPropertyMetadata = [
2166
2166
  generateParamConfigMetadata('details', true, 2 /* Body */, 4 /* Unsupported */),
2167
2167
  generateParamConfigMetadata('feedback', true, 2 /* Body */, 0 /* String */),
@@ -2169,11 +2169,11 @@ const submitFeedback_ConfigPropertyMetadata = [
2169
2169
  generateParamConfigMetadata('sessionId', true, 2 /* Body */, 0 /* String */),
2170
2170
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2171
2171
  ];
2172
- const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, submitFeedback_ConfigPropertyMetadata);
2173
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(submitFeedback_ConfigPropertyMetadata);
2174
- function typeCheckConfig$3(untrustedConfig) {
2172
+ const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, submitFeedback_ConfigPropertyMetadata);
2173
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(submitFeedback_ConfigPropertyMetadata);
2174
+ function typeCheckConfig$5(untrustedConfig) {
2175
2175
  const config = {};
2176
- typeCheckConfig$7(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2176
+ typeCheckConfig$9(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2177
2177
  const untrustedConfig_details = untrustedConfig.details;
2178
2178
  if (untrustedIsObject(untrustedConfig_details)) {
2179
2179
  const untrustedConfig_details_object = {};
@@ -2191,30 +2191,30 @@ function typeCheckConfig$3(untrustedConfig) {
2191
2191
  }
2192
2192
  return config;
2193
2193
  }
2194
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2194
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2195
2195
  if (!untrustedIsObject(untrustedConfig)) {
2196
2196
  return null;
2197
2197
  }
2198
2198
  if (process.env.NODE_ENV !== 'production') {
2199
2199
  validateConfig(untrustedConfig, configPropertyNames);
2200
2200
  }
2201
- const config = typeCheckConfig$3(untrustedConfig);
2201
+ const config = typeCheckConfig$5(untrustedConfig);
2202
2202
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2203
2203
  return null;
2204
2204
  }
2205
2205
  return config;
2206
2206
  }
2207
- function buildNetworkSnapshot$3(luvio, config, options) {
2208
- const resourceParams = createResourceParams$3(config);
2209
- const request = createResourceRequest$3(resourceParams);
2207
+ function buildNetworkSnapshot$5(luvio, config, options) {
2208
+ const resourceParams = createResourceParams$5(config);
2209
+ const request = createResourceRequest$5(resourceParams);
2210
2210
  return luvio.dispatchResourceRequest(request, options)
2211
2211
  .then((response) => {
2212
2212
  return luvio.handleSuccessResponse(() => {
2213
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2213
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2214
2214
  return luvio.storeBroadcast().then(() => snapshot);
2215
2215
  }, () => {
2216
2216
  const cache = new StoreKeyMap();
2217
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2217
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2218
2218
  return cache;
2219
2219
  });
2220
2220
  }, (response) => {
@@ -2224,17 +2224,17 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2224
2224
  }
2225
2225
  const submitFeedbackAdapterFactory = (luvio) => {
2226
2226
  return function submitFeedback(untrustedConfig) {
2227
- const config = validateAdapterConfig$3(untrustedConfig, submitFeedback_ConfigPropertyNames);
2227
+ const config = validateAdapterConfig$5(untrustedConfig, submitFeedback_ConfigPropertyNames);
2228
2228
  // Invalid or incomplete config
2229
2229
  if (config === null) {
2230
2230
  throw new Error('Invalid config for "submitFeedback"');
2231
2231
  }
2232
- return buildNetworkSnapshot$3(luvio, config);
2232
+ return buildNetworkSnapshot$5(luvio, config);
2233
2233
  };
2234
2234
  };
2235
2235
 
2236
- const VERSION$5 = "24d61d5f37ff09155ee4a9d90eb4fcb5";
2237
- function validate$b(obj, path = 'CopilotObjectInfoRepresentation') {
2236
+ const VERSION$8 = "24d61d5f37ff09155ee4a9d90eb4fcb5";
2237
+ function validate$e(obj, path = 'CopilotObjectInfoRepresentation') {
2238
2238
  const v_error = (() => {
2239
2239
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2240
2240
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2252,10 +2252,10 @@ function validate$b(obj, path = 'CopilotObjectInfoRepresentation') {
2252
2252
  })();
2253
2253
  return v_error === undefined ? null : v_error;
2254
2254
  }
2255
- const select$8 = function CopilotObjectInfoRepresentationSelect() {
2255
+ const select$d = function CopilotObjectInfoRepresentationSelect() {
2256
2256
  return {
2257
2257
  kind: 'Fragment',
2258
- version: VERSION$5,
2258
+ version: VERSION$8,
2259
2259
  private: [],
2260
2260
  selections: [
2261
2261
  {
@@ -2269,7 +2269,7 @@ const select$8 = function CopilotObjectInfoRepresentationSelect() {
2269
2269
  ]
2270
2270
  };
2271
2271
  };
2272
- function equals$5(existing, incoming) {
2272
+ function equals$8(existing, incoming) {
2273
2273
  const existing_apiName = existing.apiName;
2274
2274
  const incoming_apiName = incoming.apiName;
2275
2275
  if (!(existing_apiName === incoming_apiName)) {
@@ -2283,9 +2283,9 @@ function equals$5(existing, incoming) {
2283
2283
  return true;
2284
2284
  }
2285
2285
 
2286
- const TTL$2 = 900000;
2287
- const VERSION$4 = "ca1aedcbd4e34795fadf2dcaf66e5825";
2288
- function validate$a(obj, path = 'CopilotObjectListRepresentation') {
2286
+ const TTL$4 = 900000;
2287
+ const VERSION$7 = "ca1aedcbd4e34795fadf2dcaf66e5825";
2288
+ function validate$d(obj, path = 'CopilotObjectListRepresentation') {
2289
2289
  const v_error = (() => {
2290
2290
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2291
2291
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2298,7 +2298,7 @@ function validate$a(obj, path = 'CopilotObjectListRepresentation') {
2298
2298
  for (let i = 0; i < obj_objects.length; i++) {
2299
2299
  const obj_objects_item = obj_objects[i];
2300
2300
  const path_objects_item = path_objects + '[' + i + ']';
2301
- const referencepath_objects_itemValidationError = validate$b(obj_objects_item, path_objects_item);
2301
+ const referencepath_objects_itemValidationError = validate$e(obj_objects_item, path_objects_item);
2302
2302
  if (referencepath_objects_itemValidationError !== null) {
2303
2303
  let message = 'Object doesn\'t match CopilotObjectInfoRepresentation (at "' + path_objects_item + '")\n';
2304
2304
  message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2308,15 +2308,15 @@ function validate$a(obj, path = 'CopilotObjectListRepresentation') {
2308
2308
  })();
2309
2309
  return v_error === undefined ? null : v_error;
2310
2310
  }
2311
- const RepresentationType$2 = 'CopilotObjectListRepresentation';
2312
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2311
+ const RepresentationType$4 = 'CopilotObjectListRepresentation';
2312
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2313
2313
  return input;
2314
2314
  }
2315
- const select$7 = function CopilotObjectListRepresentationSelect() {
2316
- const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$8();
2315
+ const select$c = function CopilotObjectListRepresentationSelect() {
2316
+ const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$d();
2317
2317
  return {
2318
2318
  kind: 'Fragment',
2319
- version: VERSION$4,
2319
+ version: VERSION$7,
2320
2320
  private: [],
2321
2321
  selections: [
2322
2322
  {
@@ -2328,11 +2328,11 @@ const select$7 = function CopilotObjectListRepresentationSelect() {
2328
2328
  ]
2329
2329
  };
2330
2330
  };
2331
- function equals$4(existing, incoming) {
2331
+ function equals$7(existing, incoming) {
2332
2332
  const existing_objects = existing.objects;
2333
2333
  const incoming_objects = incoming.objects;
2334
2334
  const equals_objects_items = equalsArray(existing_objects, incoming_objects, (existing_objects_item, incoming_objects_item) => {
2335
- if (!(equals$5(existing_objects_item, incoming_objects_item))) {
2335
+ if (!(equals$8(existing_objects_item, incoming_objects_item))) {
2336
2336
  return false;
2337
2337
  }
2338
2338
  });
@@ -2341,44 +2341,44 @@ function equals$4(existing, incoming) {
2341
2341
  }
2342
2342
  return true;
2343
2343
  }
2344
- const ingest$2 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
2344
+ const ingest$4 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
2345
2345
  if (process.env.NODE_ENV !== 'production') {
2346
- const validateError = validate$a(input);
2346
+ const validateError = validate$d(input);
2347
2347
  if (validateError !== null) {
2348
2348
  throw validateError;
2349
2349
  }
2350
2350
  }
2351
2351
  const key = path.fullPath;
2352
- const ttlToUse = TTL$2;
2353
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$4, RepresentationType$2, equals$4);
2352
+ const ttlToUse = TTL$4;
2353
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$7, RepresentationType$4, equals$7);
2354
2354
  return createLink(key);
2355
2355
  };
2356
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2356
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2357
2357
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2358
2358
  const rootKey = fullPathFactory();
2359
2359
  rootKeySet.set(rootKey, {
2360
2360
  namespace: keyPrefix,
2361
- representationName: RepresentationType$2,
2361
+ representationName: RepresentationType$4,
2362
2362
  mergeable: false
2363
2363
  });
2364
2364
  }
2365
2365
 
2366
- function select$6(luvio, params) {
2367
- return select$7();
2366
+ function select$b(luvio, params) {
2367
+ return select$c();
2368
2368
  }
2369
- function keyBuilder$5(luvio, params) {
2369
+ function keyBuilder$9(luvio, params) {
2370
2370
  return keyPrefix + '::CopilotObjectListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'searchTerm:' + params.queryParams.searchTerm + ')';
2371
2371
  }
2372
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2373
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
2372
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2373
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
2374
2374
  }
2375
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2375
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2376
2376
  const { body } = response;
2377
- const key = keyBuilder$5(luvio, resourceParams);
2378
- luvio.storeIngest(key, ingest$2, body);
2377
+ const key = keyBuilder$9(luvio, resourceParams);
2378
+ luvio.storeIngest(key, ingest$4, body);
2379
2379
  const snapshot = luvio.storeLookup({
2380
2380
  recordId: key,
2381
- node: select$6(),
2381
+ node: select$b(),
2382
2382
  variables: {},
2383
2383
  }, snapshotRefresh);
2384
2384
  if (process.env.NODE_ENV !== 'production') {
@@ -2389,19 +2389,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2389
2389
  deepFreeze(snapshot.data);
2390
2390
  return snapshot;
2391
2391
  }
2392
- function ingestError$2(luvio, params, error, snapshotRefresh) {
2393
- const key = keyBuilder$5(luvio, params);
2392
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2393
+ const key = keyBuilder$9(luvio, params);
2394
2394
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2395
2395
  const storeMetadataParams = {
2396
- ttl: TTL$2,
2396
+ ttl: TTL$4,
2397
2397
  namespace: keyPrefix,
2398
- version: VERSION$4,
2399
- representationName: RepresentationType$2
2398
+ version: VERSION$7,
2399
+ representationName: RepresentationType$4
2400
2400
  };
2401
2401
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2402
2402
  return errorSnapshot;
2403
2403
  }
2404
- function createResourceRequest$2(config) {
2404
+ function createResourceRequest$4(config) {
2405
2405
  const headers = {};
2406
2406
  return {
2407
2407
  baseUri: '/services/data/v62.0',
@@ -2415,94 +2415,94 @@ function createResourceRequest$2(config) {
2415
2415
  };
2416
2416
  }
2417
2417
 
2418
- const adapterName$2 = 'getCopilotObjects';
2418
+ const adapterName$4 = 'getCopilotObjects';
2419
2419
  const getCopilotObjects_ConfigPropertyMetadata = [
2420
2420
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2421
2421
  generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
2422
2422
  ];
2423
- const getCopilotObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getCopilotObjects_ConfigPropertyMetadata);
2424
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getCopilotObjects_ConfigPropertyMetadata);
2425
- function keyBuilder$4(luvio, config) {
2426
- const resourceParams = createResourceParams$2(config);
2427
- return keyBuilder$5(luvio, resourceParams);
2423
+ const getCopilotObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCopilotObjects_ConfigPropertyMetadata);
2424
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getCopilotObjects_ConfigPropertyMetadata);
2425
+ function keyBuilder$8(luvio, config) {
2426
+ const resourceParams = createResourceParams$4(config);
2427
+ return keyBuilder$9(luvio, resourceParams);
2428
2428
  }
2429
- function typeCheckConfig$2(untrustedConfig) {
2429
+ function typeCheckConfig$4(untrustedConfig) {
2430
2430
  const config = {};
2431
- typeCheckConfig$7(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
2431
+ typeCheckConfig$9(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
2432
2432
  return config;
2433
2433
  }
2434
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2434
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2435
2435
  if (!untrustedIsObject(untrustedConfig)) {
2436
2436
  return null;
2437
2437
  }
2438
2438
  if (process.env.NODE_ENV !== 'production') {
2439
2439
  validateConfig(untrustedConfig, configPropertyNames);
2440
2440
  }
2441
- const config = typeCheckConfig$2(untrustedConfig);
2441
+ const config = typeCheckConfig$4(untrustedConfig);
2442
2442
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2443
2443
  return null;
2444
2444
  }
2445
2445
  return config;
2446
2446
  }
2447
- function adapterFragment$2(luvio, config) {
2448
- createResourceParams$2(config);
2449
- return select$6();
2447
+ function adapterFragment$4(luvio, config) {
2448
+ createResourceParams$4(config);
2449
+ return select$b();
2450
2450
  }
2451
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2452
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
2451
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2452
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2453
2453
  config,
2454
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2454
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2455
2455
  });
2456
2456
  return luvio.storeBroadcast().then(() => snapshot);
2457
2457
  }
2458
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
2459
- const snapshot = ingestError$2(luvio, resourceParams, response, {
2458
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2459
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2460
2460
  config,
2461
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2461
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2462
2462
  });
2463
2463
  return luvio.storeBroadcast().then(() => snapshot);
2464
2464
  }
2465
- function buildNetworkSnapshot$2(luvio, config, options) {
2466
- const resourceParams = createResourceParams$2(config);
2467
- const request = createResourceRequest$2(resourceParams);
2465
+ function buildNetworkSnapshot$4(luvio, config, options) {
2466
+ const resourceParams = createResourceParams$4(config);
2467
+ const request = createResourceRequest$4(resourceParams);
2468
2468
  return luvio.dispatchResourceRequest(request, options)
2469
2469
  .then((response) => {
2470
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2470
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2471
2471
  const cache = new StoreKeyMap();
2472
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2472
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2473
2473
  return cache;
2474
2474
  });
2475
2475
  }, (response) => {
2476
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2476
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2477
2477
  });
2478
2478
  }
2479
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2480
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2479
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2480
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2481
2481
  }
2482
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2482
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2483
2483
  const { luvio, config } = context;
2484
2484
  const selector = {
2485
- recordId: keyBuilder$4(luvio, config),
2486
- node: adapterFragment$2(luvio, config),
2485
+ recordId: keyBuilder$8(luvio, config),
2486
+ node: adapterFragment$4(luvio, config),
2487
2487
  variables: {},
2488
2488
  };
2489
2489
  const cacheSnapshot = storeLookup(selector, {
2490
2490
  config,
2491
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2491
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2492
2492
  });
2493
2493
  return cacheSnapshot;
2494
2494
  }
2495
2495
  const getCopilotObjectsAdapterFactory = (luvio) => function einsteinCopilotBot__getCopilotObjects(untrustedConfig, requestContext) {
2496
- const config = validateAdapterConfig$2(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
2496
+ const config = validateAdapterConfig$4(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
2497
2497
  // Invalid or incomplete config
2498
2498
  if (config === null) {
2499
2499
  return null;
2500
2500
  }
2501
2501
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2502
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2502
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2503
2503
  };
2504
2504
 
2505
- function validate$9(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2505
+ function validate$c(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2506
2506
  const v_error = (() => {
2507
2507
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2508
2508
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2525,7 +2525,7 @@ function validate$9(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2525
2525
  return v_error === undefined ? null : v_error;
2526
2526
  }
2527
2527
 
2528
- function validate$8(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2528
+ function validate$b(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2529
2529
  const v_error = (() => {
2530
2530
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2531
2531
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2548,7 +2548,7 @@ function validate$8(obj, path = 'FollowUpActionsRenditionConfigRepresentation')
2548
2548
  return v_error === undefined ? null : v_error;
2549
2549
  }
2550
2550
 
2551
- function validate$7(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2551
+ function validate$a(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2552
2552
  const v_error = (() => {
2553
2553
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2554
2554
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2571,7 +2571,7 @@ function validate$7(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2571
2571
  return v_error === undefined ? null : v_error;
2572
2572
  }
2573
2573
 
2574
- function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2574
+ function validate$9(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2575
2575
  const v_error = (() => {
2576
2576
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2577
2577
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2579,7 +2579,7 @@ function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2579
2579
  if (obj.filterConfig !== undefined) {
2580
2580
  const obj_filterConfig = obj.filterConfig;
2581
2581
  const path_filterConfig = path + '.filterConfig';
2582
- const referencepath_filterConfigValidationError = validate$7(obj_filterConfig, path_filterConfig);
2582
+ const referencepath_filterConfigValidationError = validate$a(obj_filterConfig, path_filterConfig);
2583
2583
  if (referencepath_filterConfigValidationError !== null) {
2584
2584
  let message = 'Object doesn\'t match FollowUpActionsFilterConfigRepresentation (at "' + path_filterConfig + '")\n';
2585
2585
  message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2597,7 +2597,7 @@ function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2597
2597
  return v_error === undefined ? null : v_error;
2598
2598
  }
2599
2599
 
2600
- function validate$5(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2600
+ function validate$8(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2601
2601
  const v_error = (() => {
2602
2602
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2603
2603
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2620,7 +2620,7 @@ function validate$5(obj, path = 'FollowUpActionsSourceDescriptorRepresentation')
2620
2620
  return v_error === undefined ? null : v_error;
2621
2621
  }
2622
2622
 
2623
- function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2623
+ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2624
2624
  const v_error = (() => {
2625
2625
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2626
2626
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2633,7 +2633,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2633
2633
  if (obj.designConfig !== undefined) {
2634
2634
  const obj_designConfig = obj.designConfig;
2635
2635
  const path_designConfig = path + '.designConfig';
2636
- const referencepath_designConfigValidationError = validate$9(obj_designConfig, path_designConfig);
2636
+ const referencepath_designConfigValidationError = validate$c(obj_designConfig, path_designConfig);
2637
2637
  if (referencepath_designConfigValidationError !== null) {
2638
2638
  let message = 'Object doesn\'t match FollowUpActionsDesignConfigRepresentation (at "' + path_designConfig + '")\n';
2639
2639
  message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2643,7 +2643,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2643
2643
  if (obj.renditionConfig !== undefined) {
2644
2644
  const obj_renditionConfig = obj.renditionConfig;
2645
2645
  const path_renditionConfig = path + '.renditionConfig';
2646
- const referencepath_renditionConfigValidationError = validate$8(obj_renditionConfig, path_renditionConfig);
2646
+ const referencepath_renditionConfigValidationError = validate$b(obj_renditionConfig, path_renditionConfig);
2647
2647
  if (referencepath_renditionConfigValidationError !== null) {
2648
2648
  let message = 'Object doesn\'t match FollowUpActionsRenditionConfigRepresentation (at "' + path_renditionConfig + '")\n';
2649
2649
  message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2653,7 +2653,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2653
2653
  if (obj.schemaConfig !== undefined) {
2654
2654
  const obj_schemaConfig = obj.schemaConfig;
2655
2655
  const path_schemaConfig = path + '.schemaConfig';
2656
- const referencepath_schemaConfigValidationError = validate$6(obj_schemaConfig, path_schemaConfig);
2656
+ const referencepath_schemaConfigValidationError = validate$9(obj_schemaConfig, path_schemaConfig);
2657
2657
  if (referencepath_schemaConfigValidationError !== null) {
2658
2658
  let message = 'Object doesn\'t match FollowUpActionsSchemaConfigRepresentation (at "' + path_schemaConfig + '")\n';
2659
2659
  message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2663,7 +2663,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2663
2663
  if (obj.sourceDescriptor !== undefined) {
2664
2664
  const obj_sourceDescriptor = obj.sourceDescriptor;
2665
2665
  const path_sourceDescriptor = path + '.sourceDescriptor';
2666
- const referencepath_sourceDescriptorValidationError = validate$5(obj_sourceDescriptor, path_sourceDescriptor);
2666
+ const referencepath_sourceDescriptorValidationError = validate$8(obj_sourceDescriptor, path_sourceDescriptor);
2667
2667
  if (referencepath_sourceDescriptorValidationError !== null) {
2668
2668
  let message = 'Object doesn\'t match FollowUpActionsSourceDescriptorRepresentation (at "' + path_sourceDescriptor + '")\n';
2669
2669
  message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2674,8 +2674,8 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2674
2674
  return v_error === undefined ? null : v_error;
2675
2675
  }
2676
2676
 
2677
- const VERSION$3 = "f3b8da658dda1468e0357f1fad159c79";
2678
- function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2677
+ const VERSION$6 = "f3b8da658dda1468e0357f1fad159c79";
2678
+ function validate$6(obj, path = 'FollowUpActionsRepresentation') {
2679
2679
  const v_error = (() => {
2680
2680
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2681
2681
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2693,10 +2693,10 @@ function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2693
2693
  })();
2694
2694
  return v_error === undefined ? null : v_error;
2695
2695
  }
2696
- const select$5 = function FollowUpActionsRepresentationSelect() {
2696
+ const select$a = function FollowUpActionsRepresentationSelect() {
2697
2697
  return {
2698
2698
  kind: 'Fragment',
2699
- version: VERSION$3,
2699
+ version: VERSION$6,
2700
2700
  private: [],
2701
2701
  selections: [
2702
2702
  {
@@ -2712,7 +2712,7 @@ const select$5 = function FollowUpActionsRepresentationSelect() {
2712
2712
  ]
2713
2713
  };
2714
2714
  };
2715
- function equals$3(existing, incoming) {
2715
+ function equals$6(existing, incoming) {
2716
2716
  const existing_actions = existing.actions;
2717
2717
  const incoming_actions = incoming.actions;
2718
2718
  if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
@@ -2726,9 +2726,9 @@ function equals$3(existing, incoming) {
2726
2726
  return true;
2727
2727
  }
2728
2728
 
2729
- const TTL$1 = 900000;
2730
- const VERSION$2 = "280b43a12fefd5d1adb432fd664b7def";
2731
- function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2729
+ const TTL$3 = 900000;
2730
+ const VERSION$5 = "280b43a12fefd5d1adb432fd664b7def";
2731
+ function validate$5(obj, path = 'CopilotFollowUpActionsRepresentation') {
2732
2732
  const v_error = (() => {
2733
2733
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2734
2734
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2741,7 +2741,7 @@ function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2741
2741
  for (let i = 0; i < obj_actions.length; i++) {
2742
2742
  const obj_actions_item = obj_actions[i];
2743
2743
  const path_actions_item = path_actions + '[' + i + ']';
2744
- const referencepath_actions_itemValidationError = validate$3(obj_actions_item, path_actions_item);
2744
+ const referencepath_actions_itemValidationError = validate$6(obj_actions_item, path_actions_item);
2745
2745
  if (referencepath_actions_itemValidationError !== null) {
2746
2746
  let message = 'Object doesn\'t match FollowUpActionsRepresentation (at "' + path_actions_item + '")\n';
2747
2747
  message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2763,15 +2763,15 @@ function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2763
2763
  })();
2764
2764
  return v_error === undefined ? null : v_error;
2765
2765
  }
2766
- const RepresentationType$1 = 'CopilotFollowUpActionsRepresentation';
2767
- function normalize$1(input, existing, path, luvio, store, timestamp) {
2766
+ const RepresentationType$3 = 'CopilotFollowUpActionsRepresentation';
2767
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2768
2768
  return input;
2769
2769
  }
2770
- const select$4 = function CopilotFollowUpActionsRepresentationSelect() {
2771
- const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$5();
2770
+ const select$9 = function CopilotFollowUpActionsRepresentationSelect() {
2771
+ const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$a();
2772
2772
  return {
2773
2773
  kind: 'Fragment',
2774
- version: VERSION$2,
2774
+ version: VERSION$5,
2775
2775
  private: [],
2776
2776
  selections: [
2777
2777
  {
@@ -2792,7 +2792,7 @@ const select$4 = function CopilotFollowUpActionsRepresentationSelect() {
2792
2792
  ]
2793
2793
  };
2794
2794
  };
2795
- function equals$2(existing, incoming) {
2795
+ function equals$5(existing, incoming) {
2796
2796
  const existing_isSuccess = existing.isSuccess;
2797
2797
  const incoming_isSuccess = incoming.isSuccess;
2798
2798
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -2814,7 +2814,7 @@ function equals$2(existing, incoming) {
2814
2814
  const existing_actions = existing.actions;
2815
2815
  const incoming_actions = incoming.actions;
2816
2816
  const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
2817
- if (!(equals$3(existing_actions_item, incoming_actions_item))) {
2817
+ if (!(equals$6(existing_actions_item, incoming_actions_item))) {
2818
2818
  return false;
2819
2819
  }
2820
2820
  });
@@ -2823,44 +2823,44 @@ function equals$2(existing, incoming) {
2823
2823
  }
2824
2824
  return true;
2825
2825
  }
2826
- const ingest$1 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2826
+ const ingest$3 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2827
2827
  if (process.env.NODE_ENV !== 'production') {
2828
- const validateError = validate$2(input);
2828
+ const validateError = validate$5(input);
2829
2829
  if (validateError !== null) {
2830
2830
  throw validateError;
2831
2831
  }
2832
2832
  }
2833
2833
  const key = path.fullPath;
2834
- const ttlToUse = TTL$1;
2835
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
2834
+ const ttlToUse = TTL$3;
2835
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$5, RepresentationType$3, equals$5);
2836
2836
  return createLink(key);
2837
2837
  };
2838
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2838
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2839
2839
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2840
2840
  const rootKey = fullPathFactory();
2841
2841
  rootKeySet.set(rootKey, {
2842
2842
  namespace: keyPrefix,
2843
- representationName: RepresentationType$1,
2843
+ representationName: RepresentationType$3,
2844
2844
  mergeable: false
2845
2845
  });
2846
2846
  }
2847
2847
 
2848
- function select$3(luvio, params) {
2849
- return select$4();
2848
+ function select$8(luvio, params) {
2849
+ return select$9();
2850
2850
  }
2851
- function keyBuilder$3(luvio, params) {
2851
+ function keyBuilder$7(luvio, params) {
2852
2852
  return keyPrefix + '::CopilotFollowUpActionsRepresentation:(' + (params.body.language === undefined ? 'language' : 'language:' + params.body.language) + '::' + '[' + params.body.followUpActionsInputs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; return 'followUpActionsInputs.descriptor:' + element.descriptor + '::' + (((_a = element.sourceDescriptor) === null || _a === void 0 ? void 0 : _a.descriptor) === undefined ? 'followUpActionsInputs.sourceDescriptor.descriptor' : 'followUpActionsInputs.sourceDescriptor.descriptor:' + ((_b = element.sourceDescriptor) === null || _b === void 0 ? void 0 : _b.descriptor)) + '::' + (((_c = element.sourceDescriptor) === null || _c === void 0 ? void 0 : _c.propertyName) === undefined ? 'followUpActionsInputs.sourceDescriptor.propertyName' : 'followUpActionsInputs.sourceDescriptor.propertyName:' + ((_d = element.sourceDescriptor) === null || _d === void 0 ? void 0 : _d.propertyName)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.subSchemaDefinitions) === undefined ? 'followUpActionsInputs.schemaConfig.subSchemaDefinitions' : 'followUpActionsInputs.schemaConfig.subSchemaDefinitions:' + ((_f = element.schemaConfig) === null || _f === void 0 ? void 0 : _f.subSchemaDefinitions)) + '::' + (((_h = (_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.filterConfig) === null || _h === void 0 ? void 0 : _h.propertyNames) === undefined ? 'followUpActionsInputs.schemaConfig.filterConfig.propertyNames' : 'followUpActionsInputs.schemaConfig.filterConfig.propertyNames:' + ((_k = (_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.filterConfig) === null || _k === void 0 ? void 0 : _k.propertyNames)) + '::' + (((_l = element.designConfig) === null || _l === void 0 ? void 0 : _l.target) === undefined ? 'followUpActionsInputs.designConfig.target' : 'followUpActionsInputs.designConfig.target:' + ((_m = element.designConfig) === null || _m === void 0 ? void 0 : _m.target)) + '::' + (((_o = element.designConfig) === null || _o === void 0 ? void 0 : _o.subViewDefinitions) === undefined ? 'followUpActionsInputs.designConfig.subViewDefinitions' : 'followUpActionsInputs.designConfig.subViewDefinitions:' + ((_p = element.designConfig) === null || _p === void 0 ? void 0 : _p.subViewDefinitions)) + '::' + (((_q = element.renditionConfig) === null || _q === void 0 ? void 0 : _q.target) === undefined ? 'followUpActionsInputs.renditionConfig.target' : 'followUpActionsInputs.renditionConfig.target:' + ((_r = element.renditionConfig) === null || _r === void 0 ? void 0 : _r.target)) + '::' + (((_s = element.renditionConfig) === null || _s === void 0 ? void 0 : _s.subViewDefinitions) === undefined ? 'followUpActionsInputs.renditionConfig.subViewDefinitions' : 'followUpActionsInputs.renditionConfig.subViewDefinitions:' + ((_t = element.renditionConfig) === null || _t === void 0 ? void 0 : _t.subViewDefinitions)); }).join(',') + ']' + ')';
2853
2853
  }
2854
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2855
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
2854
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2855
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
2856
2856
  }
2857
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
2857
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2858
2858
  const { body } = response;
2859
- const key = keyBuilder$3(luvio, resourceParams);
2860
- luvio.storeIngest(key, ingest$1, body);
2859
+ const key = keyBuilder$7(luvio, resourceParams);
2860
+ luvio.storeIngest(key, ingest$3, body);
2861
2861
  const snapshot = luvio.storeLookup({
2862
2862
  recordId: key,
2863
- node: select$3(),
2863
+ node: select$8(),
2864
2864
  variables: {},
2865
2865
  }, snapshotRefresh);
2866
2866
  if (process.env.NODE_ENV !== 'production') {
@@ -2871,19 +2871,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
2871
2871
  deepFreeze(snapshot.data);
2872
2872
  return snapshot;
2873
2873
  }
2874
- function ingestError$1(luvio, params, error, snapshotRefresh) {
2875
- const key = keyBuilder$3(luvio, params);
2874
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2875
+ const key = keyBuilder$7(luvio, params);
2876
2876
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2877
2877
  const storeMetadataParams = {
2878
- ttl: TTL$1,
2878
+ ttl: TTL$3,
2879
2879
  namespace: keyPrefix,
2880
- version: VERSION$2,
2881
- representationName: RepresentationType$1
2880
+ version: VERSION$5,
2881
+ representationName: RepresentationType$3
2882
2882
  };
2883
2883
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2884
2884
  return errorSnapshot;
2885
2885
  }
2886
- function createResourceRequest$1(config) {
2886
+ function createResourceRequest$3(config) {
2887
2887
  const headers = {};
2888
2888
  return {
2889
2889
  baseUri: '/services/data/v62.0',
@@ -2897,26 +2897,26 @@ function createResourceRequest$1(config) {
2897
2897
  };
2898
2898
  }
2899
2899
 
2900
- const adapterName$1 = 'getFollowUpActions';
2900
+ const adapterName$3 = 'getFollowUpActions';
2901
2901
  const getFollowUpActions_ConfigPropertyMetadata = [
2902
2902
  generateParamConfigMetadata('language', false, 2 /* Body */, 0 /* String */),
2903
2903
  generateParamConfigMetadata('followUpActionsInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
2904
2904
  ];
2905
- const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getFollowUpActions_ConfigPropertyMetadata);
2906
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getFollowUpActions_ConfigPropertyMetadata);
2907
- function keyBuilder$2(luvio, config) {
2908
- const resourceParams = createResourceParams$1(config);
2909
- return keyBuilder$3(luvio, resourceParams);
2905
+ const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getFollowUpActions_ConfigPropertyMetadata);
2906
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getFollowUpActions_ConfigPropertyMetadata);
2907
+ function keyBuilder$6(luvio, config) {
2908
+ const resourceParams = createResourceParams$3(config);
2909
+ return keyBuilder$7(luvio, resourceParams);
2910
2910
  }
2911
- function typeCheckConfig$1(untrustedConfig) {
2911
+ function typeCheckConfig$3(untrustedConfig) {
2912
2912
  const config = {};
2913
- typeCheckConfig$7(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2913
+ typeCheckConfig$9(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2914
2914
  const untrustedConfig_followUpActionsInputs = untrustedConfig.followUpActionsInputs;
2915
2915
  if (ArrayIsArray$1(untrustedConfig_followUpActionsInputs)) {
2916
2916
  const untrustedConfig_followUpActionsInputs_array = [];
2917
2917
  for (let i = 0, arrayLength = untrustedConfig_followUpActionsInputs.length; i < arrayLength; i++) {
2918
2918
  const untrustedConfig_followUpActionsInputs_item = untrustedConfig_followUpActionsInputs[i];
2919
- const referenceFollowUpActionsInputRepresentationValidationError = validate$4(untrustedConfig_followUpActionsInputs_item);
2919
+ const referenceFollowUpActionsInputRepresentationValidationError = validate$7(untrustedConfig_followUpActionsInputs_item);
2920
2920
  if (referenceFollowUpActionsInputRepresentationValidationError === null) {
2921
2921
  untrustedConfig_followUpActionsInputs_array.push(untrustedConfig_followUpActionsInputs_item);
2922
2922
  }
@@ -2925,151 +2925,403 @@ function typeCheckConfig$1(untrustedConfig) {
2925
2925
  }
2926
2926
  return config;
2927
2927
  }
2928
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2928
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2929
2929
  if (!untrustedIsObject(untrustedConfig)) {
2930
2930
  return null;
2931
2931
  }
2932
2932
  if (process.env.NODE_ENV !== 'production') {
2933
2933
  validateConfig(untrustedConfig, configPropertyNames);
2934
2934
  }
2935
- const config = typeCheckConfig$1(untrustedConfig);
2935
+ const config = typeCheckConfig$3(untrustedConfig);
2936
2936
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2937
2937
  return null;
2938
2938
  }
2939
2939
  return config;
2940
2940
  }
2941
- function adapterFragment$1(luvio, config) {
2942
- createResourceParams$1(config);
2943
- return select$3();
2941
+ function adapterFragment$3(luvio, config) {
2942
+ createResourceParams$3(config);
2943
+ return select$8();
2944
2944
  }
2945
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2946
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
2945
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2946
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2947
2947
  config,
2948
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2948
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2949
2949
  });
2950
2950
  return luvio.storeBroadcast().then(() => snapshot);
2951
2951
  }
2952
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
2953
- const snapshot = ingestError$1(luvio, resourceParams, response, {
2952
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2953
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2954
2954
  config,
2955
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2955
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2956
2956
  });
2957
2957
  return luvio.storeBroadcast().then(() => snapshot);
2958
2958
  }
2959
- function buildNetworkSnapshot$1(luvio, config, options) {
2960
- const resourceParams = createResourceParams$1(config);
2961
- const request = createResourceRequest$1(resourceParams);
2959
+ function buildNetworkSnapshot$3(luvio, config, options) {
2960
+ const resourceParams = createResourceParams$3(config);
2961
+ const request = createResourceRequest$3(resourceParams);
2962
2962
  return luvio.dispatchResourceRequest(request, options)
2963
2963
  .then((response) => {
2964
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2964
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2965
2965
  const cache = new StoreKeyMap();
2966
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2966
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2967
2967
  return cache;
2968
2968
  });
2969
2969
  }, (response) => {
2970
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2970
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2971
2971
  });
2972
2972
  }
2973
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2974
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
2973
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2974
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
2975
2975
  }
2976
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2976
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2977
2977
  const { luvio, config } = context;
2978
2978
  const selector = {
2979
- recordId: keyBuilder$2(luvio, config),
2980
- node: adapterFragment$1(luvio, config),
2979
+ recordId: keyBuilder$6(luvio, config),
2980
+ node: adapterFragment$3(luvio, config),
2981
2981
  variables: {},
2982
2982
  };
2983
2983
  const cacheSnapshot = storeLookup(selector, {
2984
2984
  config,
2985
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2985
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2986
2986
  });
2987
2987
  return cacheSnapshot;
2988
2988
  }
2989
2989
  const getFollowUpActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getFollowUpActions(untrustedConfig, requestContext) {
2990
- const config = validateAdapterConfig$1(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
2990
+ const config = validateAdapterConfig$3(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
2991
2991
  // Invalid or incomplete config
2992
2992
  if (config === null) {
2993
2993
  return null;
2994
2994
  }
2995
2995
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2996
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2996
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2997
2997
  };
2998
2998
 
2999
- const VERSION$1 = "3d8b52828ddd11f23f898b0bba8db802";
3000
- function validate$1(obj, path = 'CopilotQuickActionRepresentation') {
2999
+ const TTL$2 = 100;
3000
+ const VERSION$4 = "240cfec5fc3a3d994da444a2dfa1eca4";
3001
+ function validate$4(obj, path = 'RecommendedUtterancesRepresentation') {
3001
3002
  const v_error = (() => {
3002
3003
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3003
3004
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3004
3005
  }
3005
- if (obj.actionApiName !== undefined) {
3006
- const obj_actionApiName = obj.actionApiName;
3007
- const path_actionApiName = path + '.actionApiName';
3008
- if (typeof obj_actionApiName !== 'string') {
3009
- return new TypeError('Expected "string" but received "' + typeof obj_actionApiName + '" (at "' + path_actionApiName + '")');
3010
- }
3011
- }
3012
- if (obj.createdDate !== undefined) {
3013
- const obj_createdDate = obj.createdDate;
3014
- const path_createdDate = path + '.createdDate';
3015
- if (typeof obj_createdDate !== 'string') {
3016
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3006
+ if (obj.errorMessage !== undefined) {
3007
+ const obj_errorMessage = obj.errorMessage;
3008
+ const path_errorMessage = path + '.errorMessage';
3009
+ if (typeof obj_errorMessage !== 'string') {
3010
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
3017
3011
  }
3018
3012
  }
3019
- if (obj.description !== undefined) {
3020
- const obj_description = obj.description;
3021
- const path_description = path + '.description';
3022
- if (typeof obj_description !== 'string') {
3023
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3024
- }
3013
+ const obj_isSuccess = obj.isSuccess;
3014
+ const path_isSuccess = path + '.isSuccess';
3015
+ if (typeof obj_isSuccess !== 'boolean') {
3016
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
3025
3017
  }
3026
- if (obj.icon !== undefined) {
3027
- const obj_icon = obj.icon;
3028
- const path_icon = path + '.icon';
3029
- if (typeof obj_icon !== 'string') {
3030
- return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3031
- }
3018
+ const obj_utterances = obj.utterances;
3019
+ const path_utterances = path + '.utterances';
3020
+ if (!ArrayIsArray(obj_utterances)) {
3021
+ return new TypeError('Expected "array" but received "' + typeof obj_utterances + '" (at "' + path_utterances + '")');
3032
3022
  }
3033
- if (obj.intent !== undefined) {
3034
- const obj_intent = obj.intent;
3035
- const path_intent = path + '.intent';
3036
- if (typeof obj_intent !== 'string') {
3037
- return new TypeError('Expected "string" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
3023
+ for (let i = 0; i < obj_utterances.length; i++) {
3024
+ const obj_utterances_item = obj_utterances[i];
3025
+ const path_utterances_item = path_utterances + '[' + i + ']';
3026
+ if (typeof obj_utterances_item !== 'string') {
3027
+ return new TypeError('Expected "string" but received "' + typeof obj_utterances_item + '" (at "' + path_utterances_item + '")');
3038
3028
  }
3039
3029
  }
3040
- if (obj.isGlobal !== undefined) {
3041
- const obj_isGlobal = obj.isGlobal;
3042
- const path_isGlobal = path + '.isGlobal';
3043
- if (typeof obj_isGlobal !== 'boolean') {
3044
- return new TypeError('Expected "boolean" but received "' + typeof obj_isGlobal + '" (at "' + path_isGlobal + '")');
3030
+ })();
3031
+ return v_error === undefined ? null : v_error;
3032
+ }
3033
+ const RepresentationType$2 = 'RecommendedUtterancesRepresentation';
3034
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
3035
+ return input;
3036
+ }
3037
+ const select$7 = function RecommendedUtterancesRepresentationSelect() {
3038
+ return {
3039
+ kind: 'Fragment',
3040
+ version: VERSION$4,
3041
+ private: [],
3042
+ selections: [
3043
+ {
3044
+ name: 'errorMessage',
3045
+ kind: 'Scalar',
3046
+ required: false
3047
+ },
3048
+ {
3049
+ name: 'isSuccess',
3050
+ kind: 'Scalar'
3051
+ },
3052
+ {
3053
+ name: 'utterances',
3054
+ kind: 'Scalar',
3055
+ plural: true
3045
3056
  }
3057
+ ]
3058
+ };
3059
+ };
3060
+ function equals$4(existing, incoming) {
3061
+ const existing_isSuccess = existing.isSuccess;
3062
+ const incoming_isSuccess = incoming.isSuccess;
3063
+ if (!(existing_isSuccess === incoming_isSuccess)) {
3064
+ return false;
3065
+ }
3066
+ const existing_errorMessage = existing.errorMessage;
3067
+ const incoming_errorMessage = incoming.errorMessage;
3068
+ // if at least one of these optionals is defined
3069
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
3070
+ // if one of these is not defined we know the other is defined and therefore
3071
+ // not equal
3072
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
3073
+ return false;
3046
3074
  }
3047
- if (obj.isStandard !== undefined) {
3048
- const obj_isStandard = obj.isStandard;
3049
- const path_isStandard = path + '.isStandard';
3050
- if (typeof obj_isStandard !== 'boolean') {
3051
- return new TypeError('Expected "boolean" but received "' + typeof obj_isStandard + '" (at "' + path_isStandard + '")');
3052
- }
3075
+ if (!(existing_errorMessage === incoming_errorMessage)) {
3076
+ return false;
3053
3077
  }
3054
- if (obj.label !== undefined) {
3055
- const obj_label = obj.label;
3056
- const path_label = path + '.label';
3057
- if (typeof obj_label !== 'string') {
3058
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3059
- }
3078
+ }
3079
+ const existing_utterances = existing.utterances;
3080
+ const incoming_utterances = incoming.utterances;
3081
+ const equals_utterances_items = equalsArray(existing_utterances, incoming_utterances, (existing_utterances_item, incoming_utterances_item) => {
3082
+ if (!(existing_utterances_item === incoming_utterances_item)) {
3083
+ return false;
3060
3084
  }
3061
- if (obj.lastModifiedDate !== undefined) {
3062
- const obj_lastModifiedDate = obj.lastModifiedDate;
3063
- const path_lastModifiedDate = path + '.lastModifiedDate';
3064
- if (typeof obj_lastModifiedDate !== 'string') {
3065
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3066
- }
3085
+ });
3086
+ if (equals_utterances_items === false) {
3087
+ return false;
3088
+ }
3089
+ return true;
3090
+ }
3091
+ const ingest$2 = function RecommendedUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
3092
+ if (process.env.NODE_ENV !== 'production') {
3093
+ const validateError = validate$4(input);
3094
+ if (validateError !== null) {
3095
+ throw validateError;
3067
3096
  }
3068
- if (obj.namespace !== undefined) {
3069
- const obj_namespace = obj.namespace;
3070
- const path_namespace = path + '.namespace';
3071
- if (typeof obj_namespace !== 'string') {
3072
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3097
+ }
3098
+ const key = path.fullPath;
3099
+ const ttlToUse = TTL$2;
3100
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$4, RepresentationType$2, equals$4);
3101
+ return createLink(key);
3102
+ };
3103
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3104
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3105
+ const rootKey = fullPathFactory();
3106
+ rootKeySet.set(rootKey, {
3107
+ namespace: keyPrefix,
3108
+ representationName: RepresentationType$2,
3109
+ mergeable: false
3110
+ });
3111
+ }
3112
+
3113
+ function select$6(luvio, params) {
3114
+ return select$7();
3115
+ }
3116
+ function keyBuilder$5(luvio, params) {
3117
+ return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
3118
+ }
3119
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3120
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
3121
+ }
3122
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3123
+ const { body } = response;
3124
+ const key = keyBuilder$5(luvio, resourceParams);
3125
+ luvio.storeIngest(key, ingest$2, body);
3126
+ const snapshot = luvio.storeLookup({
3127
+ recordId: key,
3128
+ node: select$6(),
3129
+ variables: {},
3130
+ }, snapshotRefresh);
3131
+ if (process.env.NODE_ENV !== 'production') {
3132
+ if (snapshot.state !== 'Fulfilled') {
3133
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3134
+ }
3135
+ }
3136
+ deepFreeze(snapshot.data);
3137
+ return snapshot;
3138
+ }
3139
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
3140
+ const key = keyBuilder$5(luvio, params);
3141
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3142
+ const storeMetadataParams = {
3143
+ ttl: TTL$2,
3144
+ namespace: keyPrefix,
3145
+ version: VERSION$4,
3146
+ representationName: RepresentationType$2
3147
+ };
3148
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3149
+ return errorSnapshot;
3150
+ }
3151
+ function createResourceRequest$2(config) {
3152
+ const headers = {};
3153
+ return {
3154
+ baseUri: '/services/data/v62.0',
3155
+ basePath: '/connect/recommended-utterances',
3156
+ method: 'get',
3157
+ body: null,
3158
+ urlParams: {},
3159
+ queryParams: config.queryParams,
3160
+ headers,
3161
+ priority: 'normal',
3162
+ };
3163
+ }
3164
+
3165
+ const adapterName$2 = 'getRecommendedUtterances';
3166
+ const getRecommendedUtterances_ConfigPropertyMetadata = [
3167
+ generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3168
+ ];
3169
+ const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getRecommendedUtterances_ConfigPropertyMetadata);
3170
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getRecommendedUtterances_ConfigPropertyMetadata);
3171
+ function keyBuilder$4(luvio, config) {
3172
+ const resourceParams = createResourceParams$2(config);
3173
+ return keyBuilder$5(luvio, resourceParams);
3174
+ }
3175
+ function typeCheckConfig$2(untrustedConfig) {
3176
+ const config = {};
3177
+ typeCheckConfig$9(untrustedConfig, config, getRecommendedUtterances_ConfigPropertyMetadata);
3178
+ return config;
3179
+ }
3180
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3181
+ if (!untrustedIsObject(untrustedConfig)) {
3182
+ return null;
3183
+ }
3184
+ if (process.env.NODE_ENV !== 'production') {
3185
+ validateConfig(untrustedConfig, configPropertyNames);
3186
+ }
3187
+ const config = typeCheckConfig$2(untrustedConfig);
3188
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3189
+ return null;
3190
+ }
3191
+ return config;
3192
+ }
3193
+ function adapterFragment$2(luvio, config) {
3194
+ createResourceParams$2(config);
3195
+ return select$6();
3196
+ }
3197
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3198
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3199
+ config,
3200
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3201
+ });
3202
+ return luvio.storeBroadcast().then(() => snapshot);
3203
+ }
3204
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
3205
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
3206
+ config,
3207
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3208
+ });
3209
+ return luvio.storeBroadcast().then(() => snapshot);
3210
+ }
3211
+ function buildNetworkSnapshot$2(luvio, config, options) {
3212
+ const resourceParams = createResourceParams$2(config);
3213
+ const request = createResourceRequest$2(resourceParams);
3214
+ return luvio.dispatchResourceRequest(request, options)
3215
+ .then((response) => {
3216
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3217
+ const cache = new StoreKeyMap();
3218
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3219
+ return cache;
3220
+ });
3221
+ }, (response) => {
3222
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
3223
+ });
3224
+ }
3225
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3226
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3227
+ }
3228
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3229
+ const { luvio, config } = context;
3230
+ const selector = {
3231
+ recordId: keyBuilder$4(luvio, config),
3232
+ node: adapterFragment$2(luvio, config),
3233
+ variables: {},
3234
+ };
3235
+ const cacheSnapshot = storeLookup(selector, {
3236
+ config,
3237
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3238
+ });
3239
+ return cacheSnapshot;
3240
+ }
3241
+ const getRecommendedUtterancesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedUtterances(untrustedConfig, requestContext) {
3242
+ const config = validateAdapterConfig$2(untrustedConfig, getRecommendedUtterances_ConfigPropertyNames);
3243
+ // Invalid or incomplete config
3244
+ if (config === null) {
3245
+ return null;
3246
+ }
3247
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3248
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
3249
+ };
3250
+
3251
+ const VERSION$3 = "3d8b52828ddd11f23f898b0bba8db802";
3252
+ function validate$3(obj, path = 'CopilotQuickActionRepresentation') {
3253
+ const v_error = (() => {
3254
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3255
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3256
+ }
3257
+ if (obj.actionApiName !== undefined) {
3258
+ const obj_actionApiName = obj.actionApiName;
3259
+ const path_actionApiName = path + '.actionApiName';
3260
+ if (typeof obj_actionApiName !== 'string') {
3261
+ return new TypeError('Expected "string" but received "' + typeof obj_actionApiName + '" (at "' + path_actionApiName + '")');
3262
+ }
3263
+ }
3264
+ if (obj.createdDate !== undefined) {
3265
+ const obj_createdDate = obj.createdDate;
3266
+ const path_createdDate = path + '.createdDate';
3267
+ if (typeof obj_createdDate !== 'string') {
3268
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3269
+ }
3270
+ }
3271
+ if (obj.description !== undefined) {
3272
+ const obj_description = obj.description;
3273
+ const path_description = path + '.description';
3274
+ if (typeof obj_description !== 'string') {
3275
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3276
+ }
3277
+ }
3278
+ if (obj.icon !== undefined) {
3279
+ const obj_icon = obj.icon;
3280
+ const path_icon = path + '.icon';
3281
+ if (typeof obj_icon !== 'string') {
3282
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3283
+ }
3284
+ }
3285
+ if (obj.intent !== undefined) {
3286
+ const obj_intent = obj.intent;
3287
+ const path_intent = path + '.intent';
3288
+ if (typeof obj_intent !== 'string') {
3289
+ return new TypeError('Expected "string" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
3290
+ }
3291
+ }
3292
+ if (obj.isGlobal !== undefined) {
3293
+ const obj_isGlobal = obj.isGlobal;
3294
+ const path_isGlobal = path + '.isGlobal';
3295
+ if (typeof obj_isGlobal !== 'boolean') {
3296
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isGlobal + '" (at "' + path_isGlobal + '")');
3297
+ }
3298
+ }
3299
+ if (obj.isStandard !== undefined) {
3300
+ const obj_isStandard = obj.isStandard;
3301
+ const path_isStandard = path + '.isStandard';
3302
+ if (typeof obj_isStandard !== 'boolean') {
3303
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isStandard + '" (at "' + path_isStandard + '")');
3304
+ }
3305
+ }
3306
+ if (obj.label !== undefined) {
3307
+ const obj_label = obj.label;
3308
+ const path_label = path + '.label';
3309
+ if (typeof obj_label !== 'string') {
3310
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3311
+ }
3312
+ }
3313
+ if (obj.lastModifiedDate !== undefined) {
3314
+ const obj_lastModifiedDate = obj.lastModifiedDate;
3315
+ const path_lastModifiedDate = path + '.lastModifiedDate';
3316
+ if (typeof obj_lastModifiedDate !== 'string') {
3317
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3318
+ }
3319
+ }
3320
+ if (obj.namespace !== undefined) {
3321
+ const obj_namespace = obj.namespace;
3322
+ const path_namespace = path + '.namespace';
3323
+ if (typeof obj_namespace !== 'string') {
3324
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
3073
3325
  }
3074
3326
  }
3075
3327
  if (obj.orgAccess !== undefined) {
@@ -3119,10 +3371,10 @@ function validate$1(obj, path = 'CopilotQuickActionRepresentation') {
3119
3371
  })();
3120
3372
  return v_error === undefined ? null : v_error;
3121
3373
  }
3122
- const select$2 = function CopilotQuickActionRepresentationSelect() {
3374
+ const select$5 = function CopilotQuickActionRepresentationSelect() {
3123
3375
  return {
3124
3376
  kind: 'Fragment',
3125
- version: VERSION$1,
3377
+ version: VERSION$3,
3126
3378
  private: [],
3127
3379
  selections: [
3128
3380
  {
@@ -3204,7 +3456,7 @@ const select$2 = function CopilotQuickActionRepresentationSelect() {
3204
3456
  ]
3205
3457
  };
3206
3458
  };
3207
- function equals$1(existing, incoming) {
3459
+ function equals$3(existing, incoming) {
3208
3460
  const existing_isGlobal = existing.isGlobal;
3209
3461
  const incoming_isGlobal = incoming.isGlobal;
3210
3462
  // if at least one of these optionals is defined
@@ -3408,9 +3660,9 @@ function equals$1(existing, incoming) {
3408
3660
  return true;
3409
3661
  }
3410
3662
 
3411
- const TTL = 900000;
3412
- const VERSION = "122e61b0db6dc38d244a87570efc5522";
3413
- function validate(obj, path = 'RecommendedActionsRepresentation') {
3663
+ const TTL$1 = 900000;
3664
+ const VERSION$2 = "122e61b0db6dc38d244a87570efc5522";
3665
+ function validate$2(obj, path = 'RecommendedActionsRepresentation') {
3414
3666
  const v_error = (() => {
3415
3667
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3416
3668
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3423,7 +3675,7 @@ function validate(obj, path = 'RecommendedActionsRepresentation') {
3423
3675
  for (let i = 0; i < obj_copilotQuickActions.length; i++) {
3424
3676
  const obj_copilotQuickActions_item = obj_copilotQuickActions[i];
3425
3677
  const path_copilotQuickActions_item = path_copilotQuickActions + '[' + i + ']';
3426
- const referencepath_copilotQuickActions_itemValidationError = validate$1(obj_copilotQuickActions_item, path_copilotQuickActions_item);
3678
+ const referencepath_copilotQuickActions_itemValidationError = validate$3(obj_copilotQuickActions_item, path_copilotQuickActions_item);
3427
3679
  if (referencepath_copilotQuickActions_itemValidationError !== null) {
3428
3680
  let message = 'Object doesn\'t match CopilotQuickActionRepresentation (at "' + path_copilotQuickActions_item + '")\n';
3429
3681
  message += referencepath_copilotQuickActions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3445,15 +3697,15 @@ function validate(obj, path = 'RecommendedActionsRepresentation') {
3445
3697
  })();
3446
3698
  return v_error === undefined ? null : v_error;
3447
3699
  }
3448
- const RepresentationType = 'RecommendedActionsRepresentation';
3449
- function normalize(input, existing, path, luvio, store, timestamp) {
3700
+ const RepresentationType$1 = 'RecommendedActionsRepresentation';
3701
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
3450
3702
  return input;
3451
3703
  }
3452
- const select$1 = function RecommendedActionsRepresentationSelect() {
3453
- const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$2();
3704
+ const select$4 = function RecommendedActionsRepresentationSelect() {
3705
+ const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$5();
3454
3706
  return {
3455
3707
  kind: 'Fragment',
3456
- version: VERSION,
3708
+ version: VERSION$2,
3457
3709
  private: [],
3458
3710
  selections: [
3459
3711
  {
@@ -3474,7 +3726,7 @@ const select$1 = function RecommendedActionsRepresentationSelect() {
3474
3726
  ]
3475
3727
  };
3476
3728
  };
3477
- function equals(existing, incoming) {
3729
+ function equals$2(existing, incoming) {
3478
3730
  const existing_isSuccess = existing.isSuccess;
3479
3731
  const incoming_isSuccess = incoming.isSuccess;
3480
3732
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -3496,7 +3748,7 @@ function equals(existing, incoming) {
3496
3748
  const existing_copilotQuickActions = existing.copilotQuickActions;
3497
3749
  const incoming_copilotQuickActions = incoming.copilotQuickActions;
3498
3750
  const equals_copilotQuickActions_items = equalsArray(existing_copilotQuickActions, incoming_copilotQuickActions, (existing_copilotQuickActions_item, incoming_copilotQuickActions_item) => {
3499
- if (!(equals$1(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
3751
+ if (!(equals$3(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
3500
3752
  return false;
3501
3753
  }
3502
3754
  });
@@ -3505,7 +3757,333 @@ function equals(existing, incoming) {
3505
3757
  }
3506
3758
  return true;
3507
3759
  }
3508
- const ingest = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
3760
+ const ingest$1 = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
3761
+ if (process.env.NODE_ENV !== 'production') {
3762
+ const validateError = validate$2(input);
3763
+ if (validateError !== null) {
3764
+ throw validateError;
3765
+ }
3766
+ }
3767
+ const key = path.fullPath;
3768
+ const ttlToUse = TTL$1;
3769
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
3770
+ return createLink(key);
3771
+ };
3772
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3773
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3774
+ const rootKey = fullPathFactory();
3775
+ rootKeySet.set(rootKey, {
3776
+ namespace: keyPrefix,
3777
+ representationName: RepresentationType$1,
3778
+ mergeable: false
3779
+ });
3780
+ }
3781
+
3782
+ function select$3(luvio, params) {
3783
+ return select$4();
3784
+ }
3785
+ function keyBuilder$3(luvio, params) {
3786
+ return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
3787
+ }
3788
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3789
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
3790
+ }
3791
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3792
+ const { body } = response;
3793
+ const key = keyBuilder$3(luvio, resourceParams);
3794
+ luvio.storeIngest(key, ingest$1, body);
3795
+ const snapshot = luvio.storeLookup({
3796
+ recordId: key,
3797
+ node: select$3(),
3798
+ variables: {},
3799
+ }, snapshotRefresh);
3800
+ if (process.env.NODE_ENV !== 'production') {
3801
+ if (snapshot.state !== 'Fulfilled') {
3802
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3803
+ }
3804
+ }
3805
+ deepFreeze(snapshot.data);
3806
+ return snapshot;
3807
+ }
3808
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
3809
+ const key = keyBuilder$3(luvio, params);
3810
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3811
+ const storeMetadataParams = {
3812
+ ttl: TTL$1,
3813
+ namespace: keyPrefix,
3814
+ version: VERSION$2,
3815
+ representationName: RepresentationType$1
3816
+ };
3817
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3818
+ return errorSnapshot;
3819
+ }
3820
+ function createResourceRequest$1(config) {
3821
+ const headers = {};
3822
+ return {
3823
+ baseUri: '/services/data/v62.0',
3824
+ basePath: '/connect/recommended-actions',
3825
+ method: 'get',
3826
+ body: null,
3827
+ urlParams: {},
3828
+ queryParams: config.queryParams,
3829
+ headers,
3830
+ priority: 'normal',
3831
+ };
3832
+ }
3833
+
3834
+ const adapterName$1 = 'getRecommendedActions';
3835
+ const getRecommendedActions_ConfigPropertyMetadata = [
3836
+ generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
3837
+ generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
3838
+ generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
3839
+ generateParamConfigMetadata('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
3840
+ generateParamConfigMetadata('customApplicationName', true, 1 /* QueryParameter */, 0 /* String */),
3841
+ generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3842
+ generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
3843
+ ];
3844
+ const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getRecommendedActions_ConfigPropertyMetadata);
3845
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getRecommendedActions_ConfigPropertyMetadata);
3846
+ function keyBuilder$2(luvio, config) {
3847
+ const resourceParams = createResourceParams$1(config);
3848
+ return keyBuilder$3(luvio, resourceParams);
3849
+ }
3850
+ function typeCheckConfig$1(untrustedConfig) {
3851
+ const config = {};
3852
+ typeCheckConfig$9(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
3853
+ return config;
3854
+ }
3855
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3856
+ if (!untrustedIsObject(untrustedConfig)) {
3857
+ return null;
3858
+ }
3859
+ if (process.env.NODE_ENV !== 'production') {
3860
+ validateConfig(untrustedConfig, configPropertyNames);
3861
+ }
3862
+ const config = typeCheckConfig$1(untrustedConfig);
3863
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3864
+ return null;
3865
+ }
3866
+ return config;
3867
+ }
3868
+ function adapterFragment$1(luvio, config) {
3869
+ createResourceParams$1(config);
3870
+ return select$3();
3871
+ }
3872
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
3873
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
3874
+ config,
3875
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3876
+ });
3877
+ return luvio.storeBroadcast().then(() => snapshot);
3878
+ }
3879
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
3880
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
3881
+ config,
3882
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3883
+ });
3884
+ return luvio.storeBroadcast().then(() => snapshot);
3885
+ }
3886
+ function buildNetworkSnapshot$1(luvio, config, options) {
3887
+ const resourceParams = createResourceParams$1(config);
3888
+ const request = createResourceRequest$1(resourceParams);
3889
+ return luvio.dispatchResourceRequest(request, options)
3890
+ .then((response) => {
3891
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3892
+ const cache = new StoreKeyMap();
3893
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3894
+ return cache;
3895
+ });
3896
+ }, (response) => {
3897
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
3898
+ });
3899
+ }
3900
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3901
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3902
+ }
3903
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3904
+ const { luvio, config } = context;
3905
+ const selector = {
3906
+ recordId: keyBuilder$2(luvio, config),
3907
+ node: adapterFragment$1(luvio, config),
3908
+ variables: {},
3909
+ };
3910
+ const cacheSnapshot = storeLookup(selector, {
3911
+ config,
3912
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3913
+ });
3914
+ return cacheSnapshot;
3915
+ }
3916
+ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedActions(untrustedConfig, requestContext) {
3917
+ const config = validateAdapterConfig$1(untrustedConfig, getRecommendedActions_ConfigPropertyNames);
3918
+ // Invalid or incomplete config
3919
+ if (config === null) {
3920
+ return null;
3921
+ }
3922
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3923
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3924
+ };
3925
+
3926
+ const VERSION$1 = "7b8f676098deb92fdb92955fba2e6805";
3927
+ function validate$1(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation') {
3928
+ const v_error = (() => {
3929
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3930
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3931
+ }
3932
+ const obj_topicApiName = obj.topicApiName;
3933
+ const path_topicApiName = path + '.topicApiName';
3934
+ if (typeof obj_topicApiName !== 'string') {
3935
+ return new TypeError('Expected "string" but received "' + typeof obj_topicApiName + '" (at "' + path_topicApiName + '")');
3936
+ }
3937
+ const obj_utterances = obj.utterances;
3938
+ const path_utterances = path + '.utterances';
3939
+ if (!ArrayIsArray(obj_utterances)) {
3940
+ return new TypeError('Expected "array" but received "' + typeof obj_utterances + '" (at "' + path_utterances + '")');
3941
+ }
3942
+ for (let i = 0; i < obj_utterances.length; i++) {
3943
+ const obj_utterances_item = obj_utterances[i];
3944
+ const path_utterances_item = path_utterances + '[' + i + ']';
3945
+ if (typeof obj_utterances_item !== 'string') {
3946
+ return new TypeError('Expected "string" but received "' + typeof obj_utterances_item + '" (at "' + path_utterances_item + '")');
3947
+ }
3948
+ }
3949
+ })();
3950
+ return v_error === undefined ? null : v_error;
3951
+ }
3952
+ const select$2 = function WelcomeTopicSuggestedUtterancesRepresentationSelect() {
3953
+ return {
3954
+ kind: 'Fragment',
3955
+ version: VERSION$1,
3956
+ private: [],
3957
+ selections: [
3958
+ {
3959
+ name: 'topicApiName',
3960
+ kind: 'Scalar'
3961
+ },
3962
+ {
3963
+ name: 'utterances',
3964
+ kind: 'Scalar',
3965
+ plural: true
3966
+ }
3967
+ ]
3968
+ };
3969
+ };
3970
+ function equals$1(existing, incoming) {
3971
+ const existing_topicApiName = existing.topicApiName;
3972
+ const incoming_topicApiName = incoming.topicApiName;
3973
+ if (!(existing_topicApiName === incoming_topicApiName)) {
3974
+ return false;
3975
+ }
3976
+ const existing_utterances = existing.utterances;
3977
+ const incoming_utterances = incoming.utterances;
3978
+ const equals_utterances_items = equalsArray(existing_utterances, incoming_utterances, (existing_utterances_item, incoming_utterances_item) => {
3979
+ if (!(existing_utterances_item === incoming_utterances_item)) {
3980
+ return false;
3981
+ }
3982
+ });
3983
+ if (equals_utterances_items === false) {
3984
+ return false;
3985
+ }
3986
+ return true;
3987
+ }
3988
+
3989
+ const TTL = 30000;
3990
+ const VERSION = "5563352486e852506e175069aef4b290";
3991
+ function validate(obj, path = 'WelcomeUtterancesRepresentation') {
3992
+ const v_error = (() => {
3993
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3994
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3995
+ }
3996
+ if (obj.errorMessage !== undefined) {
3997
+ const obj_errorMessage = obj.errorMessage;
3998
+ const path_errorMessage = path + '.errorMessage';
3999
+ if (typeof obj_errorMessage !== 'string') {
4000
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
4001
+ }
4002
+ }
4003
+ const obj_isSuccess = obj.isSuccess;
4004
+ const path_isSuccess = path + '.isSuccess';
4005
+ if (typeof obj_isSuccess !== 'boolean') {
4006
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4007
+ }
4008
+ const obj_topicsAndSuggestedUtterances = obj.topicsAndSuggestedUtterances;
4009
+ const path_topicsAndSuggestedUtterances = path + '.topicsAndSuggestedUtterances';
4010
+ if (!ArrayIsArray(obj_topicsAndSuggestedUtterances)) {
4011
+ return new TypeError('Expected "array" but received "' + typeof obj_topicsAndSuggestedUtterances + '" (at "' + path_topicsAndSuggestedUtterances + '")');
4012
+ }
4013
+ for (let i = 0; i < obj_topicsAndSuggestedUtterances.length; i++) {
4014
+ const obj_topicsAndSuggestedUtterances_item = obj_topicsAndSuggestedUtterances[i];
4015
+ const path_topicsAndSuggestedUtterances_item = path_topicsAndSuggestedUtterances + '[' + i + ']';
4016
+ const referencepath_topicsAndSuggestedUtterances_itemValidationError = validate$1(obj_topicsAndSuggestedUtterances_item, path_topicsAndSuggestedUtterances_item);
4017
+ if (referencepath_topicsAndSuggestedUtterances_itemValidationError !== null) {
4018
+ let message = 'Object doesn\'t match WelcomeTopicSuggestedUtterancesRepresentation (at "' + path_topicsAndSuggestedUtterances_item + '")\n';
4019
+ message += referencepath_topicsAndSuggestedUtterances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4020
+ return new TypeError(message);
4021
+ }
4022
+ }
4023
+ })();
4024
+ return v_error === undefined ? null : v_error;
4025
+ }
4026
+ const RepresentationType = 'WelcomeUtterancesRepresentation';
4027
+ function normalize(input, existing, path, luvio, store, timestamp) {
4028
+ return input;
4029
+ }
4030
+ const select$1 = function WelcomeUtterancesRepresentationSelect() {
4031
+ const { selections: WelcomeTopicSuggestedUtterancesRepresentation__selections, opaque: WelcomeTopicSuggestedUtterancesRepresentation__opaque, } = select$2();
4032
+ return {
4033
+ kind: 'Fragment',
4034
+ version: VERSION,
4035
+ private: [],
4036
+ selections: [
4037
+ {
4038
+ name: 'errorMessage',
4039
+ kind: 'Scalar',
4040
+ required: false
4041
+ },
4042
+ {
4043
+ name: 'isSuccess',
4044
+ kind: 'Scalar'
4045
+ },
4046
+ {
4047
+ name: 'topicsAndSuggestedUtterances',
4048
+ kind: 'Object',
4049
+ plural: true,
4050
+ selections: WelcomeTopicSuggestedUtterancesRepresentation__selections
4051
+ }
4052
+ ]
4053
+ };
4054
+ };
4055
+ function equals(existing, incoming) {
4056
+ const existing_isSuccess = existing.isSuccess;
4057
+ const incoming_isSuccess = incoming.isSuccess;
4058
+ if (!(existing_isSuccess === incoming_isSuccess)) {
4059
+ return false;
4060
+ }
4061
+ const existing_errorMessage = existing.errorMessage;
4062
+ const incoming_errorMessage = incoming.errorMessage;
4063
+ // if at least one of these optionals is defined
4064
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
4065
+ // if one of these is not defined we know the other is defined and therefore
4066
+ // not equal
4067
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
4068
+ return false;
4069
+ }
4070
+ if (!(existing_errorMessage === incoming_errorMessage)) {
4071
+ return false;
4072
+ }
4073
+ }
4074
+ const existing_topicsAndSuggestedUtterances = existing.topicsAndSuggestedUtterances;
4075
+ const incoming_topicsAndSuggestedUtterances = incoming.topicsAndSuggestedUtterances;
4076
+ const equals_topicsAndSuggestedUtterances_items = equalsArray(existing_topicsAndSuggestedUtterances, incoming_topicsAndSuggestedUtterances, (existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item) => {
4077
+ if (!(equals$1(existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item))) {
4078
+ return false;
4079
+ }
4080
+ });
4081
+ if (equals_topicsAndSuggestedUtterances_items === false) {
4082
+ return false;
4083
+ }
4084
+ return true;
4085
+ }
4086
+ const ingest = function WelcomeUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
3509
4087
  if (process.env.NODE_ENV !== 'production') {
3510
4088
  const validateError = validate(input);
3511
4089
  if (validateError !== null) {
@@ -3531,7 +4109,7 @@ function select(luvio, params) {
3531
4109
  return select$1();
3532
4110
  }
3533
4111
  function keyBuilder$1(luvio, params) {
3534
- return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
4112
+ return keyPrefix + '::WelcomeUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
3535
4113
  }
3536
4114
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3537
4115
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -3569,7 +4147,7 @@ function createResourceRequest(config) {
3569
4147
  const headers = {};
3570
4148
  return {
3571
4149
  baseUri: '/services/data/v62.0',
3572
- basePath: '/connect/recommended-actions',
4150
+ basePath: '/connect/welcome-utterances',
3573
4151
  method: 'get',
3574
4152
  body: null,
3575
4153
  urlParams: {},
@@ -3579,25 +4157,19 @@ function createResourceRequest(config) {
3579
4157
  };
3580
4158
  }
3581
4159
 
3582
- const adapterName = 'getRecommendedActions';
3583
- const getRecommendedActions_ConfigPropertyMetadata = [
3584
- generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
3585
- generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
3586
- generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
3587
- generateParamConfigMetadata('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
3588
- generateParamConfigMetadata('customApplicationName', true, 1 /* QueryParameter */, 0 /* String */),
3589
- generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3590
- generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
4160
+ const adapterName = 'getWelcomeUtterances';
4161
+ const getWelcomeUtterances_ConfigPropertyMetadata = [
4162
+ generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
3591
4163
  ];
3592
- const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getRecommendedActions_ConfigPropertyMetadata);
3593
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(getRecommendedActions_ConfigPropertyMetadata);
4164
+ const getWelcomeUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWelcomeUtterances_ConfigPropertyMetadata);
4165
+ const createResourceParams = /*#__PURE__*/ createResourceParams$9(getWelcomeUtterances_ConfigPropertyMetadata);
3594
4166
  function keyBuilder(luvio, config) {
3595
4167
  const resourceParams = createResourceParams(config);
3596
4168
  return keyBuilder$1(luvio, resourceParams);
3597
4169
  }
3598
4170
  function typeCheckConfig(untrustedConfig) {
3599
4171
  const config = {};
3600
- typeCheckConfig$7(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
4172
+ typeCheckConfig$9(untrustedConfig, config, getWelcomeUtterances_ConfigPropertyMetadata);
3601
4173
  return config;
3602
4174
  }
3603
4175
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3646,7 +4218,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3646
4218
  });
3647
4219
  }
3648
4220
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3649
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4221
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3650
4222
  }
3651
4223
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3652
4224
  const { luvio, config } = context;
@@ -3661,8 +4233,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
3661
4233
  });
3662
4234
  return cacheSnapshot;
3663
4235
  }
3664
- const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedActions(untrustedConfig, requestContext) {
3665
- const config = validateAdapterConfig(untrustedConfig, getRecommendedActions_ConfigPropertyNames);
4236
+ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBot__getWelcomeUtterances(untrustedConfig, requestContext) {
4237
+ const config = validateAdapterConfig(untrustedConfig, getWelcomeUtterances_ConfigPropertyNames);
3666
4238
  // Invalid or incomplete config
3667
4239
  if (config === null) {
3668
4240
  return null;
@@ -3671,4 +4243,4 @@ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotB
3671
4243
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3672
4244
  };
3673
4245
 
3674
- export { getBotIdAdapterFactory, getCopilotObjectsAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };
4246
+ export { getBotIdAdapterFactory, getCopilotObjectsAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, getRecommendedUtterancesAdapterFactory, getWelcomeUtterancesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };