@salesforce/lds-adapters-service-einstein-copilot-bot 1.315.0 → 1.317.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$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) {
306
- return keyPrefix + '::CopilotBotInfoRepresentation:(' + ')';
305
+ function keyBuilder$g(luvio, params) {
306
+ return keyPrefix + '::CopilotBotInfoRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
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(luvio, resourceParams));
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(luvio, resourceParams);
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(luvio, params);
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/v63.0',
@@ -345,97 +345,100 @@ function createResourceRequest$6(config) {
345
345
  method: 'get',
346
346
  body: null,
347
347
  urlParams: {},
348
- queryParams: {},
348
+ queryParams: config.queryParams,
349
349
  headers,
350
350
  priority: 'normal',
351
351
  };
352
352
  }
353
353
 
354
- const adapterName$6 = 'getBotId';
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();
354
+ const adapterName$8 = 'getBotId';
355
+ const getBotId_ConfigPropertyMetadata = [
356
+ generateParamConfigMetadata('agentType', false, 1 /* QueryParameter */, 0 /* String */),
357
+ ];
358
+ const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getBotId_ConfigPropertyMetadata);
359
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getBotId_ConfigPropertyMetadata);
360
+ function keyBuilder$f(luvio, config) {
361
+ const resourceParams = createResourceParams$8(config);
362
+ return keyBuilder$g(luvio, resourceParams);
361
363
  }
362
- function typeCheckConfig$6(untrustedConfig) {
364
+ function typeCheckConfig$8(untrustedConfig) {
363
365
  const config = {};
366
+ typeCheckConfig$9(untrustedConfig, config, getBotId_ConfigPropertyMetadata);
364
367
  return config;
365
368
  }
366
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
369
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
367
370
  if (!untrustedIsObject(untrustedConfig)) {
368
371
  return null;
369
372
  }
370
373
  if (process.env.NODE_ENV !== 'production') {
371
374
  validateConfig(untrustedConfig, configPropertyNames);
372
375
  }
373
- const config = typeCheckConfig$6();
376
+ const config = typeCheckConfig$8(untrustedConfig);
374
377
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
375
378
  return null;
376
379
  }
377
380
  return config;
378
381
  }
379
- function adapterFragment$4(luvio, config) {
380
- createResourceParams$6(config);
381
- return select$k();
382
+ function adapterFragment$6(luvio, config) {
383
+ createResourceParams$8(config);
384
+ return select$p();
382
385
  }
383
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
384
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
386
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
387
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
385
388
  config,
386
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
389
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
387
390
  });
388
391
  return luvio.storeBroadcast().then(() => snapshot);
389
392
  }
390
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
391
- const snapshot = ingestError$4(luvio, resourceParams, response, {
393
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
394
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
392
395
  config,
393
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
396
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
394
397
  });
395
398
  return luvio.storeBroadcast().then(() => snapshot);
396
399
  }
397
- function buildNetworkSnapshot$6(luvio, config, options) {
398
- const resourceParams = createResourceParams$6(config);
399
- const request = createResourceRequest$6();
400
+ function buildNetworkSnapshot$8(luvio, config, options) {
401
+ const resourceParams = createResourceParams$8(config);
402
+ const request = createResourceRequest$8(resourceParams);
400
403
  return luvio.dispatchResourceRequest(request, options)
401
404
  .then((response) => {
402
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
405
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
403
406
  const cache = new StoreKeyMap();
404
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
407
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
405
408
  return cache;
406
409
  });
407
410
  }, (response) => {
408
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
411
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
409
412
  });
410
413
  }
411
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
412
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
414
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
415
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
413
416
  }
414
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
417
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
415
418
  const { luvio, config } = context;
416
419
  const selector = {
417
- recordId: keyBuilder$b(luvio, config),
418
- node: adapterFragment$4(luvio, config),
420
+ recordId: keyBuilder$f(luvio, config),
421
+ node: adapterFragment$6(luvio, config),
419
422
  variables: {},
420
423
  };
421
424
  const cacheSnapshot = storeLookup(selector, {
422
425
  config,
423
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
426
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
424
427
  });
425
428
  return cacheSnapshot;
426
429
  }
427
430
  const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(untrustedConfig, requestContext) {
428
- const config = validateAdapterConfig$6(untrustedConfig, getBotId_ConfigPropertyNames);
431
+ const config = validateAdapterConfig$8(untrustedConfig, getBotId_ConfigPropertyNames);
429
432
  // Invalid or incomplete config
430
433
  if (config === null) {
431
434
  return null;
432
435
  }
433
436
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
434
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
437
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
435
438
  };
436
439
 
437
- const VERSION$d = "e8cb7e20392935088ea2f98edb927e8a";
438
- function validate$k(obj, path = 'EsTypeMessageRepresentation') {
440
+ const VERSION$g = "e8cb7e20392935088ea2f98edb927e8a";
441
+ function validate$n(obj, path = 'EsTypeMessageRepresentation') {
439
442
  const v_error = (() => {
440
443
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
441
444
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -481,10 +484,10 @@ function validate$k(obj, path = 'EsTypeMessageRepresentation') {
481
484
  })();
482
485
  return v_error === undefined ? null : v_error;
483
486
  }
484
- const select$j = function EsTypeMessageRepresentationSelect() {
487
+ const select$o = function EsTypeMessageRepresentationSelect() {
485
488
  return {
486
489
  kind: 'Fragment',
487
- version: VERSION$d,
490
+ version: VERSION$g,
488
491
  private: [],
489
492
  selections: [
490
493
  {
@@ -504,7 +507,7 @@ const select$j = function EsTypeMessageRepresentationSelect() {
504
507
  ]
505
508
  };
506
509
  };
507
- function equals$d(existing, incoming) {
510
+ function equals$g(existing, incoming) {
508
511
  const existing_type = existing.type;
509
512
  const incoming_type = incoming.type;
510
513
  if (!(existing_type === incoming_type)) {
@@ -531,7 +534,7 @@ function equals$d(existing, incoming) {
531
534
  return true;
532
535
  }
533
536
 
534
- function validate$j(obj, path = 'VariableRepresentation') {
537
+ function validate$m(obj, path = 'VariableRepresentation') {
535
538
  const v_error = (() => {
536
539
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
537
540
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -557,8 +560,8 @@ function validate$j(obj, path = 'VariableRepresentation') {
557
560
  return v_error === undefined ? null : v_error;
558
561
  }
559
562
 
560
- const VERSION$c = "4e28b61c3ea362f1c68b28897784111e";
561
- function validate$i(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
563
+ const VERSION$f = "4e28b61c3ea362f1c68b28897784111e";
564
+ function validate$l(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
562
565
  const v_error = (() => {
563
566
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
564
567
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -576,10 +579,10 @@ function validate$i(obj, path = 'ConversationRuntimeProxyChoiceRepresentation')
576
579
  })();
577
580
  return v_error === undefined ? null : v_error;
578
581
  }
579
- const select$i = function ConversationRuntimeProxyChoiceRepresentationSelect() {
582
+ const select$n = function ConversationRuntimeProxyChoiceRepresentationSelect() {
580
583
  return {
581
584
  kind: 'Fragment',
582
- version: VERSION$c,
585
+ version: VERSION$f,
583
586
  private: [],
584
587
  selections: [
585
588
  {
@@ -593,7 +596,7 @@ const select$i = function ConversationRuntimeProxyChoiceRepresentationSelect() {
593
596
  ]
594
597
  };
595
598
  };
596
- function equals$c(existing, incoming) {
599
+ function equals$f(existing, incoming) {
597
600
  const existing_alias = existing.alias;
598
601
  const incoming_alias = incoming.alias;
599
602
  if (!(existing_alias === incoming_alias)) {
@@ -607,8 +610,8 @@ function equals$c(existing, incoming) {
607
610
  return true;
608
611
  }
609
612
 
610
- const VERSION$b = "477724425d0742c030025796c88ebf5d";
611
- function validate$h(obj, path = 'CollectMessageRepresentation') {
613
+ const VERSION$e = "477724425d0742c030025796c88ebf5d";
614
+ function validate$k(obj, path = 'CollectMessageRepresentation') {
612
615
  const v_error = (() => {
613
616
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
614
617
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -616,7 +619,7 @@ function validate$h(obj, path = 'CollectMessageRepresentation') {
616
619
  if (obj.data !== undefined) {
617
620
  const obj_data = obj.data;
618
621
  const path_data = path + '.data';
619
- const referencepath_dataValidationError = validate$k(obj_data, path_data);
622
+ const referencepath_dataValidationError = validate$n(obj_data, path_data);
620
623
  if (referencepath_dataValidationError !== null) {
621
624
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
622
625
  message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -659,11 +662,11 @@ function validate$h(obj, path = 'CollectMessageRepresentation') {
659
662
  })();
660
663
  return v_error === undefined ? null : v_error;
661
664
  }
662
- const select$h = function CollectMessageRepresentationSelect() {
663
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$j();
665
+ const select$m = function CollectMessageRepresentationSelect() {
666
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$o();
664
667
  return {
665
668
  kind: 'Fragment',
666
- version: VERSION$b,
669
+ version: VERSION$e,
667
670
  private: [],
668
671
  selections: [
669
672
  {
@@ -684,7 +687,7 @@ const select$h = function CollectMessageRepresentationSelect() {
684
687
  ]
685
688
  };
686
689
  };
687
- function equals$b(existing, incoming) {
690
+ function equals$e(existing, incoming) {
688
691
  const existing_targetType = existing.targetType;
689
692
  const incoming_targetType = incoming.targetType;
690
693
  if (!(existing_targetType === incoming_targetType)) {
@@ -699,7 +702,7 @@ function equals$b(existing, incoming) {
699
702
  if (existing_data === undefined || incoming_data === undefined) {
700
703
  return false;
701
704
  }
702
- if (!(equals$d(existing_data, incoming_data))) {
705
+ if (!(equals$g(existing_data, incoming_data))) {
703
706
  return false;
704
707
  }
705
708
  }
@@ -719,9 +722,9 @@ function equals$b(existing, incoming) {
719
722
  return true;
720
723
  }
721
724
 
722
- const TTL$6 = 30000;
723
- const VERSION$a = "983ede912bc103cfd2e2c2758140c5c9";
724
- function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
725
+ const TTL$8 = 30000;
726
+ const VERSION$d = "983ede912bc103cfd2e2c2758140c5c9";
727
+ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
725
728
  const v_error = (() => {
726
729
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
727
730
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,7 +738,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
735
738
  for (let i = 0; i < obj_choices.length; i++) {
736
739
  const obj_choices_item = obj_choices[i];
737
740
  const path_choices_item = path_choices + '[' + i + ']';
738
- const referencepath_choices_itemValidationError = validate$i(obj_choices_item, path_choices_item);
741
+ const referencepath_choices_itemValidationError = validate$l(obj_choices_item, path_choices_item);
739
742
  if (referencepath_choices_itemValidationError !== null) {
740
743
  let message = 'Object doesn\'t match ConversationRuntimeProxyChoiceRepresentation (at "' + path_choices_item + '")\n';
741
744
  message += referencepath_choices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -752,7 +755,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
752
755
  for (let i = 0; i < obj_collect.length; i++) {
753
756
  const obj_collect_item = obj_collect[i];
754
757
  const path_collect_item = path_collect + '[' + i + ']';
755
- const referencepath_collect_itemValidationError = validate$h(obj_collect_item, path_collect_item);
758
+ const referencepath_collect_itemValidationError = validate$k(obj_collect_item, path_collect_item);
756
759
  if (referencepath_collect_itemValidationError !== null) {
757
760
  let message = 'Object doesn\'t match CollectMessageRepresentation (at "' + path_collect_item + '")\n';
758
761
  message += referencepath_collect_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -769,7 +772,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
769
772
  for (let i = 0; i < obj_confirm.length; i++) {
770
773
  const obj_confirm_item = obj_confirm[i];
771
774
  const path_confirm_item = path_confirm + '[' + i + ']';
772
- const referencepath_confirm_itemValidationError = validate$k(obj_confirm_item, path_confirm_item);
775
+ const referencepath_confirm_itemValidationError = validate$n(obj_confirm_item, path_confirm_item);
773
776
  if (referencepath_confirm_itemValidationError !== null) {
774
777
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_confirm_item + '")\n';
775
778
  message += referencepath_confirm_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -952,7 +955,7 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
952
955
  for (let i = 0; i < obj_result.length; i++) {
953
956
  const obj_result_item = obj_result[i];
954
957
  const path_result_item = path_result + '[' + i + ']';
955
- const referencepath_result_itemValidationError = validate$k(obj_result_item, path_result_item);
958
+ const referencepath_result_itemValidationError = validate$n(obj_result_item, path_result_item);
956
959
  if (referencepath_result_itemValidationError !== null) {
957
960
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_result_item + '")\n';
958
961
  message += referencepath_result_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1026,26 +1029,26 @@ function validate$g(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
1026
1029
  })();
1027
1030
  return v_error === undefined ? null : v_error;
1028
1031
  }
1029
- const RepresentationType$6 = 'ConversationRuntimeProxyMessageRepresentation';
1030
- function keyBuilder$a(luvio, config) {
1031
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
1032
+ const RepresentationType$8 = 'ConversationRuntimeProxyMessageRepresentation';
1033
+ function keyBuilder$e(luvio, config) {
1034
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1032
1035
  }
1033
1036
  function keyBuilderFromType$2(luvio, object) {
1034
1037
  const keyParams = {
1035
1038
  id: object.id
1036
1039
  };
1037
- return keyBuilder$a(luvio, keyParams);
1040
+ return keyBuilder$e(luvio, keyParams);
1038
1041
  }
1039
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1042
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1040
1043
  return input;
1041
1044
  }
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();
1045
+ const select$l = function ConversationRuntimeProxyMessageRepresentationSelect() {
1046
+ const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$n();
1047
+ const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$m();
1048
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$o();
1046
1049
  return {
1047
1050
  kind: 'Fragment',
1048
- version: VERSION$a,
1051
+ version: VERSION$d,
1049
1052
  private: [],
1050
1053
  selections: [
1051
1054
  {
@@ -1134,7 +1137,7 @@ const select$g = function ConversationRuntimeProxyMessageRepresentationSelect()
1134
1137
  ]
1135
1138
  };
1136
1139
  };
1137
- function equals$a(existing, incoming) {
1140
+ function equals$d(existing, incoming) {
1138
1141
  const existing_isContentSafe = existing.isContentSafe;
1139
1142
  const incoming_isContentSafe = incoming.isContentSafe;
1140
1143
  // if at least one of these optionals is defined
@@ -1176,7 +1179,7 @@ function equals$a(existing, incoming) {
1176
1179
  return false;
1177
1180
  }
1178
1181
  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))) {
1182
+ if (!(equals$f(existing_choices_item, incoming_choices_item))) {
1180
1183
  return false;
1181
1184
  }
1182
1185
  });
@@ -1194,7 +1197,7 @@ function equals$a(existing, incoming) {
1194
1197
  return false;
1195
1198
  }
1196
1199
  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))) {
1200
+ if (!(equals$e(existing_collect_item, incoming_collect_item))) {
1198
1201
  return false;
1199
1202
  }
1200
1203
  });
@@ -1212,7 +1215,7 @@ function equals$a(existing, incoming) {
1212
1215
  return false;
1213
1216
  }
1214
1217
  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))) {
1218
+ if (!(equals$g(existing_confirm_item, incoming_confirm_item))) {
1216
1219
  return false;
1217
1220
  }
1218
1221
  });
@@ -1313,7 +1316,7 @@ function equals$a(existing, incoming) {
1313
1316
  return false;
1314
1317
  }
1315
1318
  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))) {
1319
+ if (!(equals$g(existing_result_item, incoming_result_item))) {
1317
1320
  return false;
1318
1321
  }
1319
1322
  });
@@ -1349,31 +1352,31 @@ function equals$a(existing, incoming) {
1349
1352
  }
1350
1353
  return true;
1351
1354
  }
1352
- const ingest$6 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1355
+ const ingest$8 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1353
1356
  if (process.env.NODE_ENV !== 'production') {
1354
- const validateError = validate$g(input);
1357
+ const validateError = validate$j(input);
1355
1358
  if (validateError !== null) {
1356
1359
  throw validateError;
1357
1360
  }
1358
1361
  }
1359
1362
  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);
1363
+ const ttlToUse = TTL$8;
1364
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "einstein-copilot-bot", VERSION$d, RepresentationType$8, equals$d);
1362
1365
  return createLink(key);
1363
1366
  };
1364
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1367
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1365
1368
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1366
1369
  const rootKey = keyBuilderFromType$2(luvio, input);
1367
1370
  rootKeySet.set(rootKey, {
1368
1371
  namespace: keyPrefix,
1369
- representationName: RepresentationType$6,
1372
+ representationName: RepresentationType$8,
1370
1373
  mergeable: false
1371
1374
  });
1372
1375
  }
1373
1376
 
1374
- const TTL$5 = 30000;
1375
- const VERSION$9 = "fe7024fb1132250f97d9616482f09f99";
1376
- function validate$f(obj, path = 'ConversationRuntimeProxyRepresentation') {
1377
+ const TTL$7 = 30000;
1378
+ const VERSION$c = "fe7024fb1132250f97d9616482f09f99";
1379
+ function validate$i(obj, path = 'ConversationRuntimeProxyRepresentation') {
1377
1380
  const v_error = (() => {
1378
1381
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1379
1382
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1425,23 +1428,23 @@ function validate$f(obj, path = 'ConversationRuntimeProxyRepresentation') {
1425
1428
  })();
1426
1429
  return v_error === undefined ? null : v_error;
1427
1430
  }
1428
- const RepresentationType$5 = 'ConversationRuntimeProxyRepresentation';
1429
- function keyBuilder$9(luvio, config) {
1430
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1431
+ const RepresentationType$7 = 'ConversationRuntimeProxyRepresentation';
1432
+ function keyBuilder$d(luvio, config) {
1433
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1431
1434
  }
1432
1435
  function keyBuilderFromType$1(luvio, object) {
1433
1436
  const keyParams = {
1434
1437
  id: object.requestId
1435
1438
  };
1436
- return keyBuilder$9(luvio, keyParams);
1439
+ return keyBuilder$d(luvio, keyParams);
1437
1440
  }
1438
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1441
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1439
1442
  const input_messages = input.messages;
1440
1443
  const input_messages_id = path.fullPath + '__messages';
1441
1444
  for (let i = 0; i < input_messages.length; i++) {
1442
1445
  const input_messages_item = input_messages[i];
1443
1446
  let input_messages_item_id = input_messages_id + '__' + i;
1444
- input_messages[i] = ingest$6(input_messages_item, {
1447
+ input_messages[i] = ingest$8(input_messages_item, {
1445
1448
  fullPath: input_messages_item_id,
1446
1449
  propertyName: i,
1447
1450
  parent: {
@@ -1454,10 +1457,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1454
1457
  }
1455
1458
  return input;
1456
1459
  }
1457
- const select$f = function ConversationRuntimeProxyRepresentationSelect() {
1460
+ const select$k = function ConversationRuntimeProxyRepresentationSelect() {
1458
1461
  return {
1459
1462
  kind: 'Fragment',
1460
- version: VERSION$9,
1463
+ version: VERSION$c,
1461
1464
  private: [],
1462
1465
  selections: [
1463
1466
  {
@@ -1472,7 +1475,7 @@ const select$f = function ConversationRuntimeProxyRepresentationSelect() {
1472
1475
  name: 'messages',
1473
1476
  kind: 'Link',
1474
1477
  plural: true,
1475
- fragment: select$g()
1478
+ fragment: select$l()
1476
1479
  },
1477
1480
  {
1478
1481
  name: 'processedSequenceIds',
@@ -1490,7 +1493,7 @@ const select$f = function ConversationRuntimeProxyRepresentationSelect() {
1490
1493
  ]
1491
1494
  };
1492
1495
  };
1493
- function equals$9(existing, incoming) {
1496
+ function equals$c(existing, incoming) {
1494
1497
  const existing_botId = existing.botId;
1495
1498
  const incoming_botId = incoming.botId;
1496
1499
  if (!(existing_botId === incoming_botId)) {
@@ -1533,45 +1536,45 @@ function equals$9(existing, incoming) {
1533
1536
  }
1534
1537
  return true;
1535
1538
  }
1536
- const ingest$5 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1539
+ const ingest$7 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1537
1540
  if (process.env.NODE_ENV !== 'production') {
1538
- const validateError = validate$f(input);
1541
+ const validateError = validate$i(input);
1539
1542
  if (validateError !== null) {
1540
1543
  throw validateError;
1541
1544
  }
1542
1545
  }
1543
1546
  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);
1547
+ const ttlToUse = TTL$7;
1548
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$c, RepresentationType$7, equals$c);
1546
1549
  return createLink(key);
1547
1550
  };
1548
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1551
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1549
1552
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1550
1553
  const rootKey = keyBuilderFromType$1(luvio, input);
1551
1554
  rootKeySet.set(rootKey, {
1552
1555
  namespace: keyPrefix,
1553
- representationName: RepresentationType$5,
1556
+ representationName: RepresentationType$7,
1554
1557
  mergeable: false
1555
1558
  });
1556
1559
  const input_messages_length = input.messages.length;
1557
1560
  for (let i = 0; i < input_messages_length; i++) {
1558
- getTypeCacheKeys$6(rootKeySet, luvio, input.messages[i]);
1561
+ getTypeCacheKeys$8(rootKeySet, luvio, input.messages[i]);
1559
1562
  }
1560
1563
  }
1561
1564
 
1562
- function select$e(luvio, params) {
1563
- return select$f();
1565
+ function select$j(luvio, params) {
1566
+ return select$k();
1564
1567
  }
1565
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1566
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1568
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1569
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1567
1570
  }
1568
- function ingestSuccess$5(luvio, resourceParams, response) {
1571
+ function ingestSuccess$7(luvio, resourceParams, response) {
1569
1572
  const { body } = response;
1570
1573
  const key = keyBuilderFromType$1(luvio, body);
1571
- luvio.storeIngest(key, ingest$5, body);
1574
+ luvio.storeIngest(key, ingest$7, body);
1572
1575
  const snapshot = luvio.storeLookup({
1573
1576
  recordId: key,
1574
- node: select$e(),
1577
+ node: select$j(),
1575
1578
  variables: {},
1576
1579
  });
1577
1580
  if (process.env.NODE_ENV !== 'production') {
@@ -1582,7 +1585,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1582
1585
  deepFreeze(snapshot.data);
1583
1586
  return snapshot;
1584
1587
  }
1585
- function createResourceRequest$5(config) {
1588
+ function createResourceRequest$7(config) {
1586
1589
  const headers = {};
1587
1590
  return {
1588
1591
  baseUri: '/services/data/v63.0',
@@ -1596,7 +1599,7 @@ function createResourceRequest$5(config) {
1596
1599
  };
1597
1600
  }
1598
1601
 
1599
- const adapterName$5 = 'sendMessage';
1602
+ const adapterName$7 = 'sendMessage';
1600
1603
  const sendMessage_ConfigPropertyMetadata = [
1601
1604
  generateParamConfigMetadata('botId', false, 1 /* QueryParameter */, 0 /* String */),
1602
1605
  generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
@@ -1613,11 +1616,11 @@ const sendMessage_ConfigPropertyMetadata = [
1613
1616
  generateParamConfigMetadata('variables', false, 2 /* Body */, 4 /* Unsupported */, true),
1614
1617
  generateParamConfigMetadata('userUtterance', false, 2 /* Body */, 0 /* String */),
1615
1618
  ];
1616
- const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, sendMessage_ConfigPropertyMetadata);
1617
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(sendMessage_ConfigPropertyMetadata);
1618
- function typeCheckConfig$5(untrustedConfig) {
1619
+ const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, sendMessage_ConfigPropertyMetadata);
1620
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(sendMessage_ConfigPropertyMetadata);
1621
+ function typeCheckConfig$7(untrustedConfig) {
1619
1622
  const config = {};
1620
- typeCheckConfig$7(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1623
+ typeCheckConfig$9(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1621
1624
  const untrustedConfig_planTemplateVariables = untrustedConfig.planTemplateVariables;
1622
1625
  config.planTemplateVariables = untrustedConfig_planTemplateVariables;
1623
1626
  const untrustedConfig_reply = untrustedConfig.reply;
@@ -1625,7 +1628,7 @@ function typeCheckConfig$5(untrustedConfig) {
1625
1628
  const untrustedConfig_reply_array = [];
1626
1629
  for (let i = 0, arrayLength = untrustedConfig_reply.length; i < arrayLength; i++) {
1627
1630
  const untrustedConfig_reply_item = untrustedConfig_reply[i];
1628
- const referenceEsTypeMessageRepresentationValidationError = validate$k(untrustedConfig_reply_item);
1631
+ const referenceEsTypeMessageRepresentationValidationError = validate$n(untrustedConfig_reply_item);
1629
1632
  if (referenceEsTypeMessageRepresentationValidationError === null) {
1630
1633
  untrustedConfig_reply_array.push(untrustedConfig_reply_item);
1631
1634
  }
@@ -1637,7 +1640,7 @@ function typeCheckConfig$5(untrustedConfig) {
1637
1640
  const untrustedConfig_variables_array = [];
1638
1641
  for (let i = 0, arrayLength = untrustedConfig_variables.length; i < arrayLength; i++) {
1639
1642
  const untrustedConfig_variables_item = untrustedConfig_variables[i];
1640
- const referenceVariableRepresentationValidationError = validate$j(untrustedConfig_variables_item);
1643
+ const referenceVariableRepresentationValidationError = validate$m(untrustedConfig_variables_item);
1641
1644
  if (referenceVariableRepresentationValidationError === null) {
1642
1645
  untrustedConfig_variables_array.push(untrustedConfig_variables_item);
1643
1646
  }
@@ -1646,30 +1649,30 @@ function typeCheckConfig$5(untrustedConfig) {
1646
1649
  }
1647
1650
  return config;
1648
1651
  }
1649
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1652
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1650
1653
  if (!untrustedIsObject(untrustedConfig)) {
1651
1654
  return null;
1652
1655
  }
1653
1656
  if (process.env.NODE_ENV !== 'production') {
1654
1657
  validateConfig(untrustedConfig, configPropertyNames);
1655
1658
  }
1656
- const config = typeCheckConfig$5(untrustedConfig);
1659
+ const config = typeCheckConfig$7(untrustedConfig);
1657
1660
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1658
1661
  return null;
1659
1662
  }
1660
1663
  return config;
1661
1664
  }
1662
- function buildNetworkSnapshot$5(luvio, config, options) {
1663
- const resourceParams = createResourceParams$5(config);
1664
- const request = createResourceRequest$5(resourceParams);
1665
+ function buildNetworkSnapshot$7(luvio, config, options) {
1666
+ const resourceParams = createResourceParams$7(config);
1667
+ const request = createResourceRequest$7(resourceParams);
1665
1668
  return luvio.dispatchResourceRequest(request, options)
1666
1669
  .then((response) => {
1667
1670
  return luvio.handleSuccessResponse(() => {
1668
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1671
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1669
1672
  return luvio.storeBroadcast().then(() => snapshot);
1670
1673
  }, () => {
1671
1674
  const cache = new StoreKeyMap();
1672
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1675
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1673
1676
  return cache;
1674
1677
  });
1675
1678
  }, (response) => {
@@ -1679,17 +1682,17 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1679
1682
  }
1680
1683
  const sendMessageAdapterFactory = (luvio) => {
1681
1684
  return function sendMessage(untrustedConfig) {
1682
- const config = validateAdapterConfig$5(untrustedConfig, sendMessage_ConfigPropertyNames);
1685
+ const config = validateAdapterConfig$7(untrustedConfig, sendMessage_ConfigPropertyNames);
1683
1686
  // Invalid or incomplete config
1684
1687
  if (config === null) {
1685
1688
  throw new Error('Invalid config for "sendMessage"');
1686
1689
  }
1687
- return buildNetworkSnapshot$5(luvio, config);
1690
+ return buildNetworkSnapshot$7(luvio, config);
1688
1691
  };
1689
1692
  };
1690
1693
 
1691
- const VERSION$8 = "504437088c2317480c651ac05a7565b5";
1692
- function validate$e(obj, path = 'PlanTemplateRepresentation') {
1694
+ const VERSION$b = "504437088c2317480c651ac05a7565b5";
1695
+ function validate$h(obj, path = 'PlanTemplateRepresentation') {
1693
1696
  const v_error = (() => {
1694
1697
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1695
1698
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1731,10 +1734,10 @@ function validate$e(obj, path = 'PlanTemplateRepresentation') {
1731
1734
  })();
1732
1735
  return v_error === undefined ? null : v_error;
1733
1736
  }
1734
- const select$d = function PlanTemplateRepresentationSelect() {
1737
+ const select$i = function PlanTemplateRepresentationSelect() {
1735
1738
  return {
1736
1739
  kind: 'Fragment',
1737
- version: VERSION$8,
1740
+ version: VERSION$b,
1738
1741
  private: [],
1739
1742
  selections: [
1740
1743
  {
@@ -1761,7 +1764,7 @@ const select$d = function PlanTemplateRepresentationSelect() {
1761
1764
  ]
1762
1765
  };
1763
1766
  };
1764
- function equals$8(existing, incoming) {
1767
+ function equals$b(existing, incoming) {
1765
1768
  const existing_intent = existing.intent;
1766
1769
  const incoming_intent = incoming.intent;
1767
1770
  if (!(existing_intent === incoming_intent)) {
@@ -1795,9 +1798,9 @@ function equals$8(existing, incoming) {
1795
1798
  return true;
1796
1799
  }
1797
1800
 
1798
- const TTL$4 = 900000;
1799
- const VERSION$7 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1800
- function validate$d(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1801
+ const TTL$6 = 900000;
1802
+ const VERSION$a = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1803
+ function validate$g(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1801
1804
  const v_error = (() => {
1802
1805
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1803
1806
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1822,7 +1825,7 @@ function validate$d(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1822
1825
  for (let i = 0; i < obj_planTemplates.length; i++) {
1823
1826
  const obj_planTemplates_item = obj_planTemplates[i];
1824
1827
  const path_planTemplates_item = path_planTemplates + '[' + i + ']';
1825
- const referencepath_planTemplates_itemValidationError = validate$e(obj_planTemplates_item, path_planTemplates_item);
1828
+ const referencepath_planTemplates_itemValidationError = validate$h(obj_planTemplates_item, path_planTemplates_item);
1826
1829
  if (referencepath_planTemplates_itemValidationError !== null) {
1827
1830
  let message = 'Object doesn\'t match PlanTemplateRepresentation (at "' + path_planTemplates_item + '")\n';
1828
1831
  message += referencepath_planTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1832,15 +1835,15 @@ function validate$d(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1832
1835
  })();
1833
1836
  return v_error === undefined ? null : v_error;
1834
1837
  }
1835
- const RepresentationType$4 = 'RecommendedPlanTemplatesRepresentation';
1836
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1838
+ const RepresentationType$6 = 'RecommendedPlanTemplatesRepresentation';
1839
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1837
1840
  return input;
1838
1841
  }
1839
- const select$c = function RecommendedPlanTemplatesRepresentationSelect() {
1840
- const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$d();
1842
+ const select$h = function RecommendedPlanTemplatesRepresentationSelect() {
1843
+ const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$i();
1841
1844
  return {
1842
1845
  kind: 'Fragment',
1843
- version: VERSION$7,
1846
+ version: VERSION$a,
1844
1847
  private: [],
1845
1848
  selections: [
1846
1849
  {
@@ -1861,7 +1864,7 @@ const select$c = function RecommendedPlanTemplatesRepresentationSelect() {
1861
1864
  ]
1862
1865
  };
1863
1866
  };
1864
- function equals$7(existing, incoming) {
1867
+ function equals$a(existing, incoming) {
1865
1868
  const existing_isSuccess = existing.isSuccess;
1866
1869
  const incoming_isSuccess = incoming.isSuccess;
1867
1870
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -1883,7 +1886,7 @@ function equals$7(existing, incoming) {
1883
1886
  const existing_planTemplates = existing.planTemplates;
1884
1887
  const incoming_planTemplates = incoming.planTemplates;
1885
1888
  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))) {
1889
+ if (!(equals$b(existing_planTemplates_item, incoming_planTemplates_item))) {
1887
1890
  return false;
1888
1891
  }
1889
1892
  });
@@ -1892,44 +1895,44 @@ function equals$7(existing, incoming) {
1892
1895
  }
1893
1896
  return true;
1894
1897
  }
1895
- const ingest$4 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1898
+ const ingest$6 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1896
1899
  if (process.env.NODE_ENV !== 'production') {
1897
- const validateError = validate$d(input);
1900
+ const validateError = validate$g(input);
1898
1901
  if (validateError !== null) {
1899
1902
  throw validateError;
1900
1903
  }
1901
1904
  }
1902
1905
  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);
1906
+ const ttlToUse = TTL$6;
1907
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$a, RepresentationType$6, equals$a);
1905
1908
  return createLink(key);
1906
1909
  };
1907
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1910
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1908
1911
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1909
1912
  const rootKey = fullPathFactory();
1910
1913
  rootKeySet.set(rootKey, {
1911
1914
  namespace: keyPrefix,
1912
- representationName: RepresentationType$4,
1915
+ representationName: RepresentationType$6,
1913
1916
  mergeable: false
1914
1917
  });
1915
1918
  }
1916
1919
 
1917
- function select$b(luvio, params) {
1918
- return select$c();
1920
+ function select$g(luvio, params) {
1921
+ return select$h();
1919
1922
  }
1920
- function keyBuilder$8(luvio, params) {
1923
+ function keyBuilder$c(luvio, params) {
1921
1924
  return keyPrefix + '::RecommendedPlanTemplatesRepresentation:(' + 'pageType:' + params.urlParams.pageType + ',' + 'objectType:' + params.urlParams.objectType + ')';
1922
1925
  }
1923
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1924
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
1926
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1927
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
1925
1928
  }
1926
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1929
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1927
1930
  const { body } = response;
1928
- const key = keyBuilder$8(luvio, resourceParams);
1929
- luvio.storeIngest(key, ingest$4, body);
1931
+ const key = keyBuilder$c(luvio, resourceParams);
1932
+ luvio.storeIngest(key, ingest$6, body);
1930
1933
  const snapshot = luvio.storeLookup({
1931
1934
  recordId: key,
1932
- node: select$b(),
1935
+ node: select$g(),
1933
1936
  variables: {},
1934
1937
  }, snapshotRefresh);
1935
1938
  if (process.env.NODE_ENV !== 'production') {
@@ -1940,19 +1943,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1940
1943
  deepFreeze(snapshot.data);
1941
1944
  return snapshot;
1942
1945
  }
1943
- function ingestError$3(luvio, params, error, snapshotRefresh) {
1944
- const key = keyBuilder$8(luvio, params);
1946
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
1947
+ const key = keyBuilder$c(luvio, params);
1945
1948
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1946
1949
  const storeMetadataParams = {
1947
- ttl: TTL$4,
1950
+ ttl: TTL$6,
1948
1951
  namespace: keyPrefix,
1949
- version: VERSION$7,
1950
- representationName: RepresentationType$4
1952
+ version: VERSION$a,
1953
+ representationName: RepresentationType$6
1951
1954
  };
1952
1955
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1953
1956
  return errorSnapshot;
1954
1957
  }
1955
- function createResourceRequest$4(config) {
1958
+ function createResourceRequest$6(config) {
1956
1959
  const headers = {};
1957
1960
  return {
1958
1961
  baseUri: '/services/data/v63.0',
@@ -1966,96 +1969,96 @@ function createResourceRequest$4(config) {
1966
1969
  };
1967
1970
  }
1968
1971
 
1969
- const adapterName$4 = 'getRecommendedPlanTemplates';
1972
+ const adapterName$6 = 'getRecommendedPlanTemplates';
1970
1973
  const getRecommendedPlanTemplates_ConfigPropertyMetadata = [
1971
1974
  generateParamConfigMetadata('pageType', true, 0 /* UrlParameter */, 0 /* String */),
1972
1975
  generateParamConfigMetadata('objectType', true, 0 /* UrlParameter */, 0 /* String */),
1973
1976
  ];
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);
1977
+ const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1978
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1979
+ function keyBuilder$b(luvio, config) {
1980
+ const resourceParams = createResourceParams$6(config);
1981
+ return keyBuilder$c(luvio, resourceParams);
1979
1982
  }
1980
- function typeCheckConfig$4(untrustedConfig) {
1983
+ function typeCheckConfig$6(untrustedConfig) {
1981
1984
  const config = {};
1982
- typeCheckConfig$7(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1985
+ typeCheckConfig$9(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1983
1986
  return config;
1984
1987
  }
1985
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1988
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1986
1989
  if (!untrustedIsObject(untrustedConfig)) {
1987
1990
  return null;
1988
1991
  }
1989
1992
  if (process.env.NODE_ENV !== 'production') {
1990
1993
  validateConfig(untrustedConfig, configPropertyNames);
1991
1994
  }
1992
- const config = typeCheckConfig$4(untrustedConfig);
1995
+ const config = typeCheckConfig$6(untrustedConfig);
1993
1996
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1994
1997
  return null;
1995
1998
  }
1996
1999
  return config;
1997
2000
  }
1998
- function adapterFragment$3(luvio, config) {
1999
- createResourceParams$4(config);
2000
- return select$b();
2001
+ function adapterFragment$5(luvio, config) {
2002
+ createResourceParams$6(config);
2003
+ return select$g();
2001
2004
  }
2002
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2003
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2005
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2006
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2004
2007
  config,
2005
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2008
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2006
2009
  });
2007
2010
  return luvio.storeBroadcast().then(() => snapshot);
2008
2011
  }
2009
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
2010
- const snapshot = ingestError$3(luvio, resourceParams, response, {
2012
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2013
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2011
2014
  config,
2012
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2015
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2013
2016
  });
2014
2017
  return luvio.storeBroadcast().then(() => snapshot);
2015
2018
  }
2016
- function buildNetworkSnapshot$4(luvio, config, options) {
2017
- const resourceParams = createResourceParams$4(config);
2018
- const request = createResourceRequest$4(resourceParams);
2019
+ function buildNetworkSnapshot$6(luvio, config, options) {
2020
+ const resourceParams = createResourceParams$6(config);
2021
+ const request = createResourceRequest$6(resourceParams);
2019
2022
  return luvio.dispatchResourceRequest(request, options)
2020
2023
  .then((response) => {
2021
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2024
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2022
2025
  const cache = new StoreKeyMap();
2023
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2026
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2024
2027
  return cache;
2025
2028
  });
2026
2029
  }, (response) => {
2027
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2030
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2028
2031
  });
2029
2032
  }
2030
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2031
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2033
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2034
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2032
2035
  }
2033
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2036
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2034
2037
  const { luvio, config } = context;
2035
2038
  const selector = {
2036
- recordId: keyBuilder$7(luvio, config),
2037
- node: adapterFragment$3(luvio, config),
2039
+ recordId: keyBuilder$b(luvio, config),
2040
+ node: adapterFragment$5(luvio, config),
2038
2041
  variables: {},
2039
2042
  };
2040
2043
  const cacheSnapshot = storeLookup(selector, {
2041
2044
  config,
2042
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2045
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2043
2046
  });
2044
2047
  return cacheSnapshot;
2045
2048
  }
2046
2049
  const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedPlanTemplates(untrustedConfig, requestContext) {
2047
- const config = validateAdapterConfig$4(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
2050
+ const config = validateAdapterConfig$6(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
2048
2051
  // Invalid or incomplete config
2049
2052
  if (config === null) {
2050
2053
  return null;
2051
2054
  }
2052
2055
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2053
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2056
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2054
2057
  };
2055
2058
 
2056
- const TTL$3 = 100;
2057
- const VERSION$6 = "7454bdd46af1622eb677a9bb9eac3a8b";
2058
- function validate$c(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2059
+ const TTL$5 = 100;
2060
+ const VERSION$9 = "7454bdd46af1622eb677a9bb9eac3a8b";
2061
+ function validate$f(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2059
2062
  const v_error = (() => {
2060
2063
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2061
2064
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2068,23 +2071,23 @@ function validate$c(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2068
2071
  })();
2069
2072
  return v_error === undefined ? null : v_error;
2070
2073
  }
2071
- const RepresentationType$3 = 'CopilotLLMFeedbackOutputRepresentation';
2072
- function keyBuilder$6(luvio, config) {
2073
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
2074
+ const RepresentationType$5 = 'CopilotLLMFeedbackOutputRepresentation';
2075
+ function keyBuilder$a(luvio, config) {
2076
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
2074
2077
  }
2075
2078
  function keyBuilderFromType(luvio, object) {
2076
2079
  const keyParams = {
2077
2080
  id: object.submitFeedbackStatus
2078
2081
  };
2079
- return keyBuilder$6(luvio, keyParams);
2082
+ return keyBuilder$a(luvio, keyParams);
2080
2083
  }
2081
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2084
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2082
2085
  return input;
2083
2086
  }
2084
- const select$a = function CopilotLLMFeedbackOutputRepresentationSelect() {
2087
+ const select$f = function CopilotLLMFeedbackOutputRepresentationSelect() {
2085
2088
  return {
2086
2089
  kind: 'Fragment',
2087
- version: VERSION$6,
2090
+ version: VERSION$9,
2088
2091
  private: [],
2089
2092
  selections: [
2090
2093
  {
@@ -2094,7 +2097,7 @@ const select$a = function CopilotLLMFeedbackOutputRepresentationSelect() {
2094
2097
  ]
2095
2098
  };
2096
2099
  };
2097
- function equals$6(existing, incoming) {
2100
+ function equals$9(existing, incoming) {
2098
2101
  const existing_submitFeedbackStatus = existing.submitFeedbackStatus;
2099
2102
  const incoming_submitFeedbackStatus = incoming.submitFeedbackStatus;
2100
2103
  if (!(existing_submitFeedbackStatus === incoming_submitFeedbackStatus)) {
@@ -2102,41 +2105,41 @@ function equals$6(existing, incoming) {
2102
2105
  }
2103
2106
  return true;
2104
2107
  }
2105
- const ingest$3 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2108
+ const ingest$5 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2106
2109
  if (process.env.NODE_ENV !== 'production') {
2107
- const validateError = validate$c(input);
2110
+ const validateError = validate$f(input);
2108
2111
  if (validateError !== null) {
2109
2112
  throw validateError;
2110
2113
  }
2111
2114
  }
2112
2115
  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);
2116
+ const ttlToUse = TTL$5;
2117
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$9, RepresentationType$5, equals$9);
2115
2118
  return createLink(key);
2116
2119
  };
2117
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2120
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2118
2121
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2119
2122
  const rootKey = keyBuilderFromType(luvio, input);
2120
2123
  rootKeySet.set(rootKey, {
2121
2124
  namespace: keyPrefix,
2122
- representationName: RepresentationType$3,
2125
+ representationName: RepresentationType$5,
2123
2126
  mergeable: false
2124
2127
  });
2125
2128
  }
2126
2129
 
2127
- function select$9(luvio, params) {
2128
- return select$a();
2130
+ function select$e(luvio, params) {
2131
+ return select$f();
2129
2132
  }
2130
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2131
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2133
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2134
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2132
2135
  }
2133
- function ingestSuccess$3(luvio, resourceParams, response) {
2136
+ function ingestSuccess$5(luvio, resourceParams, response) {
2134
2137
  const { body } = response;
2135
2138
  const key = keyBuilderFromType(luvio, body);
2136
- luvio.storeIngest(key, ingest$3, body);
2139
+ luvio.storeIngest(key, ingest$5, body);
2137
2140
  const snapshot = luvio.storeLookup({
2138
2141
  recordId: key,
2139
- node: select$9(),
2142
+ node: select$e(),
2140
2143
  variables: {},
2141
2144
  });
2142
2145
  if (process.env.NODE_ENV !== 'production') {
@@ -2147,7 +2150,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
2147
2150
  deepFreeze(snapshot.data);
2148
2151
  return snapshot;
2149
2152
  }
2150
- function createResourceRequest$3(config) {
2153
+ function createResourceRequest$5(config) {
2151
2154
  const headers = {};
2152
2155
  return {
2153
2156
  baseUri: '/services/data/v63.0',
@@ -2161,7 +2164,7 @@ function createResourceRequest$3(config) {
2161
2164
  };
2162
2165
  }
2163
2166
 
2164
- const adapterName$3 = 'submitFeedback';
2167
+ const adapterName$5 = 'submitFeedback';
2165
2168
  const submitFeedback_ConfigPropertyMetadata = [
2166
2169
  generateParamConfigMetadata('details', true, 2 /* Body */, 4 /* Unsupported */),
2167
2170
  generateParamConfigMetadata('feedback', true, 2 /* Body */, 0 /* String */),
@@ -2169,11 +2172,11 @@ const submitFeedback_ConfigPropertyMetadata = [
2169
2172
  generateParamConfigMetadata('sessionId', true, 2 /* Body */, 0 /* String */),
2170
2173
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2171
2174
  ];
2172
- const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, submitFeedback_ConfigPropertyMetadata);
2173
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(submitFeedback_ConfigPropertyMetadata);
2174
- function typeCheckConfig$3(untrustedConfig) {
2175
+ const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, submitFeedback_ConfigPropertyMetadata);
2176
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(submitFeedback_ConfigPropertyMetadata);
2177
+ function typeCheckConfig$5(untrustedConfig) {
2175
2178
  const config = {};
2176
- typeCheckConfig$7(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2179
+ typeCheckConfig$9(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2177
2180
  const untrustedConfig_details = untrustedConfig.details;
2178
2181
  if (untrustedIsObject(untrustedConfig_details)) {
2179
2182
  const untrustedConfig_details_object = {};
@@ -2191,30 +2194,30 @@ function typeCheckConfig$3(untrustedConfig) {
2191
2194
  }
2192
2195
  return config;
2193
2196
  }
2194
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2197
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2195
2198
  if (!untrustedIsObject(untrustedConfig)) {
2196
2199
  return null;
2197
2200
  }
2198
2201
  if (process.env.NODE_ENV !== 'production') {
2199
2202
  validateConfig(untrustedConfig, configPropertyNames);
2200
2203
  }
2201
- const config = typeCheckConfig$3(untrustedConfig);
2204
+ const config = typeCheckConfig$5(untrustedConfig);
2202
2205
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2203
2206
  return null;
2204
2207
  }
2205
2208
  return config;
2206
2209
  }
2207
- function buildNetworkSnapshot$3(luvio, config, options) {
2208
- const resourceParams = createResourceParams$3(config);
2209
- const request = createResourceRequest$3(resourceParams);
2210
+ function buildNetworkSnapshot$5(luvio, config, options) {
2211
+ const resourceParams = createResourceParams$5(config);
2212
+ const request = createResourceRequest$5(resourceParams);
2210
2213
  return luvio.dispatchResourceRequest(request, options)
2211
2214
  .then((response) => {
2212
2215
  return luvio.handleSuccessResponse(() => {
2213
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2216
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2214
2217
  return luvio.storeBroadcast().then(() => snapshot);
2215
2218
  }, () => {
2216
2219
  const cache = new StoreKeyMap();
2217
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2220
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2218
2221
  return cache;
2219
2222
  });
2220
2223
  }, (response) => {
@@ -2224,17 +2227,17 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2224
2227
  }
2225
2228
  const submitFeedbackAdapterFactory = (luvio) => {
2226
2229
  return function submitFeedback(untrustedConfig) {
2227
- const config = validateAdapterConfig$3(untrustedConfig, submitFeedback_ConfigPropertyNames);
2230
+ const config = validateAdapterConfig$5(untrustedConfig, submitFeedback_ConfigPropertyNames);
2228
2231
  // Invalid or incomplete config
2229
2232
  if (config === null) {
2230
2233
  throw new Error('Invalid config for "submitFeedback"');
2231
2234
  }
2232
- return buildNetworkSnapshot$3(luvio, config);
2235
+ return buildNetworkSnapshot$5(luvio, config);
2233
2236
  };
2234
2237
  };
2235
2238
 
2236
- const VERSION$5 = "24d61d5f37ff09155ee4a9d90eb4fcb5";
2237
- function validate$b(obj, path = 'CopilotObjectInfoRepresentation') {
2239
+ const VERSION$8 = "24d61d5f37ff09155ee4a9d90eb4fcb5";
2240
+ function validate$e(obj, path = 'CopilotObjectInfoRepresentation') {
2238
2241
  const v_error = (() => {
2239
2242
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2240
2243
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2252,10 +2255,10 @@ function validate$b(obj, path = 'CopilotObjectInfoRepresentation') {
2252
2255
  })();
2253
2256
  return v_error === undefined ? null : v_error;
2254
2257
  }
2255
- const select$8 = function CopilotObjectInfoRepresentationSelect() {
2258
+ const select$d = function CopilotObjectInfoRepresentationSelect() {
2256
2259
  return {
2257
2260
  kind: 'Fragment',
2258
- version: VERSION$5,
2261
+ version: VERSION$8,
2259
2262
  private: [],
2260
2263
  selections: [
2261
2264
  {
@@ -2269,7 +2272,7 @@ const select$8 = function CopilotObjectInfoRepresentationSelect() {
2269
2272
  ]
2270
2273
  };
2271
2274
  };
2272
- function equals$5(existing, incoming) {
2275
+ function equals$8(existing, incoming) {
2273
2276
  const existing_apiName = existing.apiName;
2274
2277
  const incoming_apiName = incoming.apiName;
2275
2278
  if (!(existing_apiName === incoming_apiName)) {
@@ -2283,9 +2286,9 @@ function equals$5(existing, incoming) {
2283
2286
  return true;
2284
2287
  }
2285
2288
 
2286
- const TTL$2 = 900000;
2287
- const VERSION$4 = "ca1aedcbd4e34795fadf2dcaf66e5825";
2288
- function validate$a(obj, path = 'CopilotObjectListRepresentation') {
2289
+ const TTL$4 = 900000;
2290
+ const VERSION$7 = "ca1aedcbd4e34795fadf2dcaf66e5825";
2291
+ function validate$d(obj, path = 'CopilotObjectListRepresentation') {
2289
2292
  const v_error = (() => {
2290
2293
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2291
2294
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2298,7 +2301,7 @@ function validate$a(obj, path = 'CopilotObjectListRepresentation') {
2298
2301
  for (let i = 0; i < obj_objects.length; i++) {
2299
2302
  const obj_objects_item = obj_objects[i];
2300
2303
  const path_objects_item = path_objects + '[' + i + ']';
2301
- const referencepath_objects_itemValidationError = validate$b(obj_objects_item, path_objects_item);
2304
+ const referencepath_objects_itemValidationError = validate$e(obj_objects_item, path_objects_item);
2302
2305
  if (referencepath_objects_itemValidationError !== null) {
2303
2306
  let message = 'Object doesn\'t match CopilotObjectInfoRepresentation (at "' + path_objects_item + '")\n';
2304
2307
  message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2308,15 +2311,15 @@ function validate$a(obj, path = 'CopilotObjectListRepresentation') {
2308
2311
  })();
2309
2312
  return v_error === undefined ? null : v_error;
2310
2313
  }
2311
- const RepresentationType$2 = 'CopilotObjectListRepresentation';
2312
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2314
+ const RepresentationType$4 = 'CopilotObjectListRepresentation';
2315
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2313
2316
  return input;
2314
2317
  }
2315
- const select$7 = function CopilotObjectListRepresentationSelect() {
2316
- const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$8();
2318
+ const select$c = function CopilotObjectListRepresentationSelect() {
2319
+ const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$d();
2317
2320
  return {
2318
2321
  kind: 'Fragment',
2319
- version: VERSION$4,
2322
+ version: VERSION$7,
2320
2323
  private: [],
2321
2324
  selections: [
2322
2325
  {
@@ -2328,11 +2331,11 @@ const select$7 = function CopilotObjectListRepresentationSelect() {
2328
2331
  ]
2329
2332
  };
2330
2333
  };
2331
- function equals$4(existing, incoming) {
2334
+ function equals$7(existing, incoming) {
2332
2335
  const existing_objects = existing.objects;
2333
2336
  const incoming_objects = incoming.objects;
2334
2337
  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))) {
2338
+ if (!(equals$8(existing_objects_item, incoming_objects_item))) {
2336
2339
  return false;
2337
2340
  }
2338
2341
  });
@@ -2341,44 +2344,44 @@ function equals$4(existing, incoming) {
2341
2344
  }
2342
2345
  return true;
2343
2346
  }
2344
- const ingest$2 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
2347
+ const ingest$4 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
2345
2348
  if (process.env.NODE_ENV !== 'production') {
2346
- const validateError = validate$a(input);
2349
+ const validateError = validate$d(input);
2347
2350
  if (validateError !== null) {
2348
2351
  throw validateError;
2349
2352
  }
2350
2353
  }
2351
2354
  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);
2355
+ const ttlToUse = TTL$4;
2356
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$7, RepresentationType$4, equals$7);
2354
2357
  return createLink(key);
2355
2358
  };
2356
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2359
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2357
2360
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2358
2361
  const rootKey = fullPathFactory();
2359
2362
  rootKeySet.set(rootKey, {
2360
2363
  namespace: keyPrefix,
2361
- representationName: RepresentationType$2,
2364
+ representationName: RepresentationType$4,
2362
2365
  mergeable: false
2363
2366
  });
2364
2367
  }
2365
2368
 
2366
- function select$6(luvio, params) {
2367
- return select$7();
2369
+ function select$b(luvio, params) {
2370
+ return select$c();
2368
2371
  }
2369
- function keyBuilder$5(luvio, params) {
2372
+ function keyBuilder$9(luvio, params) {
2370
2373
  return keyPrefix + '::CopilotObjectListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'searchTerm:' + params.queryParams.searchTerm + ')';
2371
2374
  }
2372
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2373
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
2375
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2376
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
2374
2377
  }
2375
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2378
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2376
2379
  const { body } = response;
2377
- const key = keyBuilder$5(luvio, resourceParams);
2378
- luvio.storeIngest(key, ingest$2, body);
2380
+ const key = keyBuilder$9(luvio, resourceParams);
2381
+ luvio.storeIngest(key, ingest$4, body);
2379
2382
  const snapshot = luvio.storeLookup({
2380
2383
  recordId: key,
2381
- node: select$6(),
2384
+ node: select$b(),
2382
2385
  variables: {},
2383
2386
  }, snapshotRefresh);
2384
2387
  if (process.env.NODE_ENV !== 'production') {
@@ -2389,19 +2392,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2389
2392
  deepFreeze(snapshot.data);
2390
2393
  return snapshot;
2391
2394
  }
2392
- function ingestError$2(luvio, params, error, snapshotRefresh) {
2393
- const key = keyBuilder$5(luvio, params);
2395
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2396
+ const key = keyBuilder$9(luvio, params);
2394
2397
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2395
2398
  const storeMetadataParams = {
2396
- ttl: TTL$2,
2399
+ ttl: TTL$4,
2397
2400
  namespace: keyPrefix,
2398
- version: VERSION$4,
2399
- representationName: RepresentationType$2
2401
+ version: VERSION$7,
2402
+ representationName: RepresentationType$4
2400
2403
  };
2401
2404
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2402
2405
  return errorSnapshot;
2403
2406
  }
2404
- function createResourceRequest$2(config) {
2407
+ function createResourceRequest$4(config) {
2405
2408
  const headers = {};
2406
2409
  return {
2407
2410
  baseUri: '/services/data/v63.0',
@@ -2415,94 +2418,94 @@ function createResourceRequest$2(config) {
2415
2418
  };
2416
2419
  }
2417
2420
 
2418
- const adapterName$2 = 'getCopilotObjects';
2421
+ const adapterName$4 = 'getCopilotObjects';
2419
2422
  const getCopilotObjects_ConfigPropertyMetadata = [
2420
2423
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2421
2424
  generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
2422
2425
  ];
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);
2426
+ const getCopilotObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCopilotObjects_ConfigPropertyMetadata);
2427
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getCopilotObjects_ConfigPropertyMetadata);
2428
+ function keyBuilder$8(luvio, config) {
2429
+ const resourceParams = createResourceParams$4(config);
2430
+ return keyBuilder$9(luvio, resourceParams);
2428
2431
  }
2429
- function typeCheckConfig$2(untrustedConfig) {
2432
+ function typeCheckConfig$4(untrustedConfig) {
2430
2433
  const config = {};
2431
- typeCheckConfig$7(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
2434
+ typeCheckConfig$9(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
2432
2435
  return config;
2433
2436
  }
2434
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2437
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2435
2438
  if (!untrustedIsObject(untrustedConfig)) {
2436
2439
  return null;
2437
2440
  }
2438
2441
  if (process.env.NODE_ENV !== 'production') {
2439
2442
  validateConfig(untrustedConfig, configPropertyNames);
2440
2443
  }
2441
- const config = typeCheckConfig$2(untrustedConfig);
2444
+ const config = typeCheckConfig$4(untrustedConfig);
2442
2445
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2443
2446
  return null;
2444
2447
  }
2445
2448
  return config;
2446
2449
  }
2447
- function adapterFragment$2(luvio, config) {
2448
- createResourceParams$2(config);
2449
- return select$6();
2450
+ function adapterFragment$4(luvio, config) {
2451
+ createResourceParams$4(config);
2452
+ return select$b();
2450
2453
  }
2451
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2452
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
2454
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2455
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2453
2456
  config,
2454
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2457
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2455
2458
  });
2456
2459
  return luvio.storeBroadcast().then(() => snapshot);
2457
2460
  }
2458
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
2459
- const snapshot = ingestError$2(luvio, resourceParams, response, {
2461
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2462
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2460
2463
  config,
2461
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2464
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2462
2465
  });
2463
2466
  return luvio.storeBroadcast().then(() => snapshot);
2464
2467
  }
2465
- function buildNetworkSnapshot$2(luvio, config, options) {
2466
- const resourceParams = createResourceParams$2(config);
2467
- const request = createResourceRequest$2(resourceParams);
2468
+ function buildNetworkSnapshot$4(luvio, config, options) {
2469
+ const resourceParams = createResourceParams$4(config);
2470
+ const request = createResourceRequest$4(resourceParams);
2468
2471
  return luvio.dispatchResourceRequest(request, options)
2469
2472
  .then((response) => {
2470
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2473
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2471
2474
  const cache = new StoreKeyMap();
2472
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2475
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2473
2476
  return cache;
2474
2477
  });
2475
2478
  }, (response) => {
2476
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2479
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2477
2480
  });
2478
2481
  }
2479
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2480
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2482
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2483
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2481
2484
  }
2482
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2485
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2483
2486
  const { luvio, config } = context;
2484
2487
  const selector = {
2485
- recordId: keyBuilder$4(luvio, config),
2486
- node: adapterFragment$2(luvio, config),
2488
+ recordId: keyBuilder$8(luvio, config),
2489
+ node: adapterFragment$4(luvio, config),
2487
2490
  variables: {},
2488
2491
  };
2489
2492
  const cacheSnapshot = storeLookup(selector, {
2490
2493
  config,
2491
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2494
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2492
2495
  });
2493
2496
  return cacheSnapshot;
2494
2497
  }
2495
2498
  const getCopilotObjectsAdapterFactory = (luvio) => function einsteinCopilotBot__getCopilotObjects(untrustedConfig, requestContext) {
2496
- const config = validateAdapterConfig$2(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
2499
+ const config = validateAdapterConfig$4(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
2497
2500
  // Invalid or incomplete config
2498
2501
  if (config === null) {
2499
2502
  return null;
2500
2503
  }
2501
2504
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2502
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2505
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2503
2506
  };
2504
2507
 
2505
- function validate$9(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2508
+ function validate$c(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2506
2509
  const v_error = (() => {
2507
2510
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2508
2511
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2525,7 +2528,7 @@ function validate$9(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2525
2528
  return v_error === undefined ? null : v_error;
2526
2529
  }
2527
2530
 
2528
- function validate$8(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2531
+ function validate$b(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2529
2532
  const v_error = (() => {
2530
2533
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2531
2534
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2548,7 +2551,7 @@ function validate$8(obj, path = 'FollowUpActionsRenditionConfigRepresentation')
2548
2551
  return v_error === undefined ? null : v_error;
2549
2552
  }
2550
2553
 
2551
- function validate$7(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2554
+ function validate$a(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2552
2555
  const v_error = (() => {
2553
2556
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2554
2557
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2571,7 +2574,7 @@ function validate$7(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2571
2574
  return v_error === undefined ? null : v_error;
2572
2575
  }
2573
2576
 
2574
- function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2577
+ function validate$9(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2575
2578
  const v_error = (() => {
2576
2579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2577
2580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2579,7 +2582,7 @@ function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2579
2582
  if (obj.filterConfig !== undefined) {
2580
2583
  const obj_filterConfig = obj.filterConfig;
2581
2584
  const path_filterConfig = path + '.filterConfig';
2582
- const referencepath_filterConfigValidationError = validate$7(obj_filterConfig, path_filterConfig);
2585
+ const referencepath_filterConfigValidationError = validate$a(obj_filterConfig, path_filterConfig);
2583
2586
  if (referencepath_filterConfigValidationError !== null) {
2584
2587
  let message = 'Object doesn\'t match FollowUpActionsFilterConfigRepresentation (at "' + path_filterConfig + '")\n';
2585
2588
  message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2597,7 +2600,7 @@ function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2597
2600
  return v_error === undefined ? null : v_error;
2598
2601
  }
2599
2602
 
2600
- function validate$5(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2603
+ function validate$8(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2601
2604
  const v_error = (() => {
2602
2605
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2603
2606
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2620,7 +2623,7 @@ function validate$5(obj, path = 'FollowUpActionsSourceDescriptorRepresentation')
2620
2623
  return v_error === undefined ? null : v_error;
2621
2624
  }
2622
2625
 
2623
- function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2626
+ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2624
2627
  const v_error = (() => {
2625
2628
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2626
2629
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2633,7 +2636,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2633
2636
  if (obj.designConfig !== undefined) {
2634
2637
  const obj_designConfig = obj.designConfig;
2635
2638
  const path_designConfig = path + '.designConfig';
2636
- const referencepath_designConfigValidationError = validate$9(obj_designConfig, path_designConfig);
2639
+ const referencepath_designConfigValidationError = validate$c(obj_designConfig, path_designConfig);
2637
2640
  if (referencepath_designConfigValidationError !== null) {
2638
2641
  let message = 'Object doesn\'t match FollowUpActionsDesignConfigRepresentation (at "' + path_designConfig + '")\n';
2639
2642
  message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2643,7 +2646,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2643
2646
  if (obj.renditionConfig !== undefined) {
2644
2647
  const obj_renditionConfig = obj.renditionConfig;
2645
2648
  const path_renditionConfig = path + '.renditionConfig';
2646
- const referencepath_renditionConfigValidationError = validate$8(obj_renditionConfig, path_renditionConfig);
2649
+ const referencepath_renditionConfigValidationError = validate$b(obj_renditionConfig, path_renditionConfig);
2647
2650
  if (referencepath_renditionConfigValidationError !== null) {
2648
2651
  let message = 'Object doesn\'t match FollowUpActionsRenditionConfigRepresentation (at "' + path_renditionConfig + '")\n';
2649
2652
  message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2653,7 +2656,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2653
2656
  if (obj.schemaConfig !== undefined) {
2654
2657
  const obj_schemaConfig = obj.schemaConfig;
2655
2658
  const path_schemaConfig = path + '.schemaConfig';
2656
- const referencepath_schemaConfigValidationError = validate$6(obj_schemaConfig, path_schemaConfig);
2659
+ const referencepath_schemaConfigValidationError = validate$9(obj_schemaConfig, path_schemaConfig);
2657
2660
  if (referencepath_schemaConfigValidationError !== null) {
2658
2661
  let message = 'Object doesn\'t match FollowUpActionsSchemaConfigRepresentation (at "' + path_schemaConfig + '")\n';
2659
2662
  message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2663,7 +2666,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2663
2666
  if (obj.sourceDescriptor !== undefined) {
2664
2667
  const obj_sourceDescriptor = obj.sourceDescriptor;
2665
2668
  const path_sourceDescriptor = path + '.sourceDescriptor';
2666
- const referencepath_sourceDescriptorValidationError = validate$5(obj_sourceDescriptor, path_sourceDescriptor);
2669
+ const referencepath_sourceDescriptorValidationError = validate$8(obj_sourceDescriptor, path_sourceDescriptor);
2667
2670
  if (referencepath_sourceDescriptorValidationError !== null) {
2668
2671
  let message = 'Object doesn\'t match FollowUpActionsSourceDescriptorRepresentation (at "' + path_sourceDescriptor + '")\n';
2669
2672
  message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2674,8 +2677,8 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2674
2677
  return v_error === undefined ? null : v_error;
2675
2678
  }
2676
2679
 
2677
- const VERSION$3 = "38e904794d03177700e02a0dbd234d01";
2678
- function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2680
+ const VERSION$6 = "38e904794d03177700e02a0dbd234d01";
2681
+ function validate$6(obj, path = 'FollowUpActionsRepresentation') {
2679
2682
  const v_error = (() => {
2680
2683
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2681
2684
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2700,10 +2703,10 @@ function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2700
2703
  })();
2701
2704
  return v_error === undefined ? null : v_error;
2702
2705
  }
2703
- const select$5 = function FollowUpActionsRepresentationSelect() {
2706
+ const select$a = function FollowUpActionsRepresentationSelect() {
2704
2707
  return {
2705
2708
  kind: 'Fragment',
2706
- version: VERSION$3,
2709
+ version: VERSION$6,
2707
2710
  private: [],
2708
2711
  selections: [
2709
2712
  {
@@ -2724,7 +2727,7 @@ const select$5 = function FollowUpActionsRepresentationSelect() {
2724
2727
  ]
2725
2728
  };
2726
2729
  };
2727
- function equals$3(existing, incoming) {
2730
+ function equals$6(existing, incoming) {
2728
2731
  const existing_descriptor = existing.descriptor;
2729
2732
  const incoming_descriptor = incoming.descriptor;
2730
2733
  // if at least one of these optionals is defined
@@ -2751,9 +2754,9 @@ function equals$3(existing, incoming) {
2751
2754
  return true;
2752
2755
  }
2753
2756
 
2754
- const TTL$1 = 900000;
2755
- const VERSION$2 = "280b43a12fefd5d1adb432fd664b7def";
2756
- function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2757
+ const TTL$3 = 900000;
2758
+ const VERSION$5 = "280b43a12fefd5d1adb432fd664b7def";
2759
+ function validate$5(obj, path = 'CopilotFollowUpActionsRepresentation') {
2757
2760
  const v_error = (() => {
2758
2761
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2759
2762
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2766,7 +2769,7 @@ function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2766
2769
  for (let i = 0; i < obj_actions.length; i++) {
2767
2770
  const obj_actions_item = obj_actions[i];
2768
2771
  const path_actions_item = path_actions + '[' + i + ']';
2769
- const referencepath_actions_itemValidationError = validate$3(obj_actions_item, path_actions_item);
2772
+ const referencepath_actions_itemValidationError = validate$6(obj_actions_item, path_actions_item);
2770
2773
  if (referencepath_actions_itemValidationError !== null) {
2771
2774
  let message = 'Object doesn\'t match FollowUpActionsRepresentation (at "' + path_actions_item + '")\n';
2772
2775
  message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2788,15 +2791,15 @@ function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2788
2791
  })();
2789
2792
  return v_error === undefined ? null : v_error;
2790
2793
  }
2791
- const RepresentationType$1 = 'CopilotFollowUpActionsRepresentation';
2792
- function normalize$1(input, existing, path, luvio, store, timestamp) {
2794
+ const RepresentationType$3 = 'CopilotFollowUpActionsRepresentation';
2795
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2793
2796
  return input;
2794
2797
  }
2795
- const select$4 = function CopilotFollowUpActionsRepresentationSelect() {
2796
- const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$5();
2798
+ const select$9 = function CopilotFollowUpActionsRepresentationSelect() {
2799
+ const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$a();
2797
2800
  return {
2798
2801
  kind: 'Fragment',
2799
- version: VERSION$2,
2802
+ version: VERSION$5,
2800
2803
  private: [],
2801
2804
  selections: [
2802
2805
  {
@@ -2817,7 +2820,7 @@ const select$4 = function CopilotFollowUpActionsRepresentationSelect() {
2817
2820
  ]
2818
2821
  };
2819
2822
  };
2820
- function equals$2(existing, incoming) {
2823
+ function equals$5(existing, incoming) {
2821
2824
  const existing_isSuccess = existing.isSuccess;
2822
2825
  const incoming_isSuccess = incoming.isSuccess;
2823
2826
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -2839,7 +2842,7 @@ function equals$2(existing, incoming) {
2839
2842
  const existing_actions = existing.actions;
2840
2843
  const incoming_actions = incoming.actions;
2841
2844
  const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
2842
- if (!(equals$3(existing_actions_item, incoming_actions_item))) {
2845
+ if (!(equals$6(existing_actions_item, incoming_actions_item))) {
2843
2846
  return false;
2844
2847
  }
2845
2848
  });
@@ -2848,44 +2851,44 @@ function equals$2(existing, incoming) {
2848
2851
  }
2849
2852
  return true;
2850
2853
  }
2851
- const ingest$1 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2854
+ const ingest$3 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2852
2855
  if (process.env.NODE_ENV !== 'production') {
2853
- const validateError = validate$2(input);
2856
+ const validateError = validate$5(input);
2854
2857
  if (validateError !== null) {
2855
2858
  throw validateError;
2856
2859
  }
2857
2860
  }
2858
2861
  const key = path.fullPath;
2859
- const ttlToUse = TTL$1;
2860
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
2862
+ const ttlToUse = TTL$3;
2863
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$5, RepresentationType$3, equals$5);
2861
2864
  return createLink(key);
2862
2865
  };
2863
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2866
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2864
2867
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2865
2868
  const rootKey = fullPathFactory();
2866
2869
  rootKeySet.set(rootKey, {
2867
2870
  namespace: keyPrefix,
2868
- representationName: RepresentationType$1,
2871
+ representationName: RepresentationType$3,
2869
2872
  mergeable: false
2870
2873
  });
2871
2874
  }
2872
2875
 
2873
- function select$3(luvio, params) {
2874
- return select$4();
2876
+ function select$8(luvio, params) {
2877
+ return select$9();
2875
2878
  }
2876
- function keyBuilder$3(luvio, params) {
2879
+ function keyBuilder$7(luvio, params) {
2877
2880
  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(',') + ']' + ')';
2878
2881
  }
2879
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2880
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
2882
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2883
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
2881
2884
  }
2882
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
2885
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2883
2886
  const { body } = response;
2884
- const key = keyBuilder$3(luvio, resourceParams);
2885
- luvio.storeIngest(key, ingest$1, body);
2887
+ const key = keyBuilder$7(luvio, resourceParams);
2888
+ luvio.storeIngest(key, ingest$3, body);
2886
2889
  const snapshot = luvio.storeLookup({
2887
2890
  recordId: key,
2888
- node: select$3(),
2891
+ node: select$8(),
2889
2892
  variables: {},
2890
2893
  }, snapshotRefresh);
2891
2894
  if (process.env.NODE_ENV !== 'production') {
@@ -2896,19 +2899,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
2896
2899
  deepFreeze(snapshot.data);
2897
2900
  return snapshot;
2898
2901
  }
2899
- function ingestError$1(luvio, params, error, snapshotRefresh) {
2900
- const key = keyBuilder$3(luvio, params);
2902
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2903
+ const key = keyBuilder$7(luvio, params);
2901
2904
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2902
2905
  const storeMetadataParams = {
2903
- ttl: TTL$1,
2906
+ ttl: TTL$3,
2904
2907
  namespace: keyPrefix,
2905
- version: VERSION$2,
2906
- representationName: RepresentationType$1
2908
+ version: VERSION$5,
2909
+ representationName: RepresentationType$3
2907
2910
  };
2908
2911
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2909
2912
  return errorSnapshot;
2910
2913
  }
2911
- function createResourceRequest$1(config) {
2914
+ function createResourceRequest$3(config) {
2912
2915
  const headers = {};
2913
2916
  return {
2914
2917
  baseUri: '/services/data/v63.0',
@@ -2922,26 +2925,26 @@ function createResourceRequest$1(config) {
2922
2925
  };
2923
2926
  }
2924
2927
 
2925
- const adapterName$1 = 'getFollowUpActions';
2928
+ const adapterName$3 = 'getFollowUpActions';
2926
2929
  const getFollowUpActions_ConfigPropertyMetadata = [
2927
2930
  generateParamConfigMetadata('language', false, 2 /* Body */, 0 /* String */),
2928
2931
  generateParamConfigMetadata('followUpActionsInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
2929
2932
  ];
2930
- const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getFollowUpActions_ConfigPropertyMetadata);
2931
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getFollowUpActions_ConfigPropertyMetadata);
2932
- function keyBuilder$2(luvio, config) {
2933
- const resourceParams = createResourceParams$1(config);
2934
- return keyBuilder$3(luvio, resourceParams);
2933
+ const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getFollowUpActions_ConfigPropertyMetadata);
2934
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getFollowUpActions_ConfigPropertyMetadata);
2935
+ function keyBuilder$6(luvio, config) {
2936
+ const resourceParams = createResourceParams$3(config);
2937
+ return keyBuilder$7(luvio, resourceParams);
2935
2938
  }
2936
- function typeCheckConfig$1(untrustedConfig) {
2939
+ function typeCheckConfig$3(untrustedConfig) {
2937
2940
  const config = {};
2938
- typeCheckConfig$7(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2941
+ typeCheckConfig$9(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2939
2942
  const untrustedConfig_followUpActionsInputs = untrustedConfig.followUpActionsInputs;
2940
2943
  if (ArrayIsArray$1(untrustedConfig_followUpActionsInputs)) {
2941
2944
  const untrustedConfig_followUpActionsInputs_array = [];
2942
2945
  for (let i = 0, arrayLength = untrustedConfig_followUpActionsInputs.length; i < arrayLength; i++) {
2943
2946
  const untrustedConfig_followUpActionsInputs_item = untrustedConfig_followUpActionsInputs[i];
2944
- const referenceFollowUpActionsInputRepresentationValidationError = validate$4(untrustedConfig_followUpActionsInputs_item);
2947
+ const referenceFollowUpActionsInputRepresentationValidationError = validate$7(untrustedConfig_followUpActionsInputs_item);
2945
2948
  if (referenceFollowUpActionsInputRepresentationValidationError === null) {
2946
2949
  untrustedConfig_followUpActionsInputs_array.push(untrustedConfig_followUpActionsInputs_item);
2947
2950
  }
@@ -2950,145 +2953,397 @@ function typeCheckConfig$1(untrustedConfig) {
2950
2953
  }
2951
2954
  return config;
2952
2955
  }
2953
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2956
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2954
2957
  if (!untrustedIsObject(untrustedConfig)) {
2955
2958
  return null;
2956
2959
  }
2957
2960
  if (process.env.NODE_ENV !== 'production') {
2958
2961
  validateConfig(untrustedConfig, configPropertyNames);
2959
2962
  }
2960
- const config = typeCheckConfig$1(untrustedConfig);
2963
+ const config = typeCheckConfig$3(untrustedConfig);
2961
2964
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2962
2965
  return null;
2963
2966
  }
2964
2967
  return config;
2965
2968
  }
2966
- function adapterFragment$1(luvio, config) {
2967
- createResourceParams$1(config);
2968
- return select$3();
2969
+ function adapterFragment$3(luvio, config) {
2970
+ createResourceParams$3(config);
2971
+ return select$8();
2969
2972
  }
2970
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2971
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
2973
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2974
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2972
2975
  config,
2973
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2976
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2974
2977
  });
2975
2978
  return luvio.storeBroadcast().then(() => snapshot);
2976
2979
  }
2977
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
2978
- const snapshot = ingestError$1(luvio, resourceParams, response, {
2980
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2981
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2979
2982
  config,
2980
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2983
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2981
2984
  });
2982
2985
  return luvio.storeBroadcast().then(() => snapshot);
2983
2986
  }
2984
- function buildNetworkSnapshot$1(luvio, config, options) {
2985
- const resourceParams = createResourceParams$1(config);
2986
- const request = createResourceRequest$1(resourceParams);
2987
+ function buildNetworkSnapshot$3(luvio, config, options) {
2988
+ const resourceParams = createResourceParams$3(config);
2989
+ const request = createResourceRequest$3(resourceParams);
2987
2990
  return luvio.dispatchResourceRequest(request, options)
2988
2991
  .then((response) => {
2989
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2992
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2990
2993
  const cache = new StoreKeyMap();
2991
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2994
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2992
2995
  return cache;
2993
2996
  });
2994
2997
  }, (response) => {
2995
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2998
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2996
2999
  });
2997
3000
  }
2998
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2999
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
3001
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3002
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
3000
3003
  }
3001
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3004
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3002
3005
  const { luvio, config } = context;
3003
3006
  const selector = {
3004
- recordId: keyBuilder$2(luvio, config),
3005
- node: adapterFragment$1(luvio, config),
3007
+ recordId: keyBuilder$6(luvio, config),
3008
+ node: adapterFragment$3(luvio, config),
3006
3009
  variables: {},
3007
3010
  };
3008
3011
  const cacheSnapshot = storeLookup(selector, {
3009
3012
  config,
3010
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3013
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3011
3014
  });
3012
3015
  return cacheSnapshot;
3013
3016
  }
3014
3017
  const getFollowUpActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getFollowUpActions(untrustedConfig, requestContext) {
3015
- const config = validateAdapterConfig$1(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
3018
+ const config = validateAdapterConfig$3(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
3016
3019
  // Invalid or incomplete config
3017
3020
  if (config === null) {
3018
3021
  return null;
3019
3022
  }
3020
3023
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3021
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3024
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3022
3025
  };
3023
3026
 
3024
- const VERSION$1 = "3d8b52828ddd11f23f898b0bba8db802";
3025
- function validate$1(obj, path = 'CopilotQuickActionRepresentation') {
3027
+ const TTL$2 = 900000;
3028
+ const VERSION$4 = "240cfec5fc3a3d994da444a2dfa1eca4";
3029
+ function validate$4(obj, path = 'RecommendedUtterancesRepresentation') {
3026
3030
  const v_error = (() => {
3027
3031
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3028
3032
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3029
3033
  }
3030
- if (obj.actionApiName !== undefined) {
3031
- const obj_actionApiName = obj.actionApiName;
3032
- const path_actionApiName = path + '.actionApiName';
3033
- if (typeof obj_actionApiName !== 'string') {
3034
- return new TypeError('Expected "string" but received "' + typeof obj_actionApiName + '" (at "' + path_actionApiName + '")');
3035
- }
3036
- }
3037
- if (obj.createdDate !== undefined) {
3038
- const obj_createdDate = obj.createdDate;
3039
- const path_createdDate = path + '.createdDate';
3040
- if (typeof obj_createdDate !== 'string') {
3041
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3034
+ if (obj.errorMessage !== undefined) {
3035
+ const obj_errorMessage = obj.errorMessage;
3036
+ const path_errorMessage = path + '.errorMessage';
3037
+ if (typeof obj_errorMessage !== 'string') {
3038
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
3042
3039
  }
3043
3040
  }
3044
- if (obj.description !== undefined) {
3045
- const obj_description = obj.description;
3046
- const path_description = path + '.description';
3047
- if (typeof obj_description !== 'string') {
3048
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3049
- }
3041
+ const obj_isSuccess = obj.isSuccess;
3042
+ const path_isSuccess = path + '.isSuccess';
3043
+ if (typeof obj_isSuccess !== 'boolean') {
3044
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
3050
3045
  }
3051
- if (obj.icon !== undefined) {
3052
- const obj_icon = obj.icon;
3053
- const path_icon = path + '.icon';
3054
- if (typeof obj_icon !== 'string') {
3055
- return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3056
- }
3046
+ const obj_utterances = obj.utterances;
3047
+ const path_utterances = path + '.utterances';
3048
+ if (!ArrayIsArray(obj_utterances)) {
3049
+ return new TypeError('Expected "array" but received "' + typeof obj_utterances + '" (at "' + path_utterances + '")');
3057
3050
  }
3058
- if (obj.intent !== undefined) {
3059
- const obj_intent = obj.intent;
3060
- const path_intent = path + '.intent';
3061
- if (typeof obj_intent !== 'string') {
3062
- return new TypeError('Expected "string" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
3051
+ for (let i = 0; i < obj_utterances.length; i++) {
3052
+ const obj_utterances_item = obj_utterances[i];
3053
+ const path_utterances_item = path_utterances + '[' + i + ']';
3054
+ if (typeof obj_utterances_item !== 'string') {
3055
+ return new TypeError('Expected "string" but received "' + typeof obj_utterances_item + '" (at "' + path_utterances_item + '")');
3063
3056
  }
3064
3057
  }
3065
- if (obj.isGlobal !== undefined) {
3066
- const obj_isGlobal = obj.isGlobal;
3067
- const path_isGlobal = path + '.isGlobal';
3068
- if (typeof obj_isGlobal !== 'boolean') {
3069
- return new TypeError('Expected "boolean" but received "' + typeof obj_isGlobal + '" (at "' + path_isGlobal + '")');
3058
+ })();
3059
+ return v_error === undefined ? null : v_error;
3060
+ }
3061
+ const RepresentationType$2 = 'RecommendedUtterancesRepresentation';
3062
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
3063
+ return input;
3064
+ }
3065
+ const select$7 = function RecommendedUtterancesRepresentationSelect() {
3066
+ return {
3067
+ kind: 'Fragment',
3068
+ version: VERSION$4,
3069
+ private: [],
3070
+ selections: [
3071
+ {
3072
+ name: 'errorMessage',
3073
+ kind: 'Scalar',
3074
+ required: false
3075
+ },
3076
+ {
3077
+ name: 'isSuccess',
3078
+ kind: 'Scalar'
3079
+ },
3080
+ {
3081
+ name: 'utterances',
3082
+ kind: 'Scalar',
3083
+ plural: true
3070
3084
  }
3085
+ ]
3086
+ };
3087
+ };
3088
+ function equals$4(existing, incoming) {
3089
+ const existing_isSuccess = existing.isSuccess;
3090
+ const incoming_isSuccess = incoming.isSuccess;
3091
+ if (!(existing_isSuccess === incoming_isSuccess)) {
3092
+ return false;
3093
+ }
3094
+ const existing_errorMessage = existing.errorMessage;
3095
+ const incoming_errorMessage = incoming.errorMessage;
3096
+ // if at least one of these optionals is defined
3097
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
3098
+ // if one of these is not defined we know the other is defined and therefore
3099
+ // not equal
3100
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
3101
+ return false;
3071
3102
  }
3072
- if (obj.isStandard !== undefined) {
3073
- const obj_isStandard = obj.isStandard;
3074
- const path_isStandard = path + '.isStandard';
3075
- if (typeof obj_isStandard !== 'boolean') {
3076
- return new TypeError('Expected "boolean" but received "' + typeof obj_isStandard + '" (at "' + path_isStandard + '")');
3077
- }
3103
+ if (!(existing_errorMessage === incoming_errorMessage)) {
3104
+ return false;
3078
3105
  }
3079
- if (obj.label !== undefined) {
3080
- const obj_label = obj.label;
3081
- const path_label = path + '.label';
3082
- if (typeof obj_label !== 'string') {
3083
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3084
- }
3106
+ }
3107
+ const existing_utterances = existing.utterances;
3108
+ const incoming_utterances = incoming.utterances;
3109
+ const equals_utterances_items = equalsArray(existing_utterances, incoming_utterances, (existing_utterances_item, incoming_utterances_item) => {
3110
+ if (!(existing_utterances_item === incoming_utterances_item)) {
3111
+ return false;
3085
3112
  }
3086
- if (obj.lastModifiedDate !== undefined) {
3087
- const obj_lastModifiedDate = obj.lastModifiedDate;
3088
- const path_lastModifiedDate = path + '.lastModifiedDate';
3089
- if (typeof obj_lastModifiedDate !== 'string') {
3090
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3091
- }
3113
+ });
3114
+ if (equals_utterances_items === false) {
3115
+ return false;
3116
+ }
3117
+ return true;
3118
+ }
3119
+ const ingest$2 = function RecommendedUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
3120
+ if (process.env.NODE_ENV !== 'production') {
3121
+ const validateError = validate$4(input);
3122
+ if (validateError !== null) {
3123
+ throw validateError;
3124
+ }
3125
+ }
3126
+ const key = path.fullPath;
3127
+ const ttlToUse = TTL$2;
3128
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$4, RepresentationType$2, equals$4);
3129
+ return createLink(key);
3130
+ };
3131
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3132
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3133
+ const rootKey = fullPathFactory();
3134
+ rootKeySet.set(rootKey, {
3135
+ namespace: keyPrefix,
3136
+ representationName: RepresentationType$2,
3137
+ mergeable: false
3138
+ });
3139
+ }
3140
+
3141
+ function select$6(luvio, params) {
3142
+ return select$7();
3143
+ }
3144
+ function keyBuilder$5(luvio, params) {
3145
+ return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
3146
+ }
3147
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3148
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
3149
+ }
3150
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3151
+ const { body } = response;
3152
+ const key = keyBuilder$5(luvio, resourceParams);
3153
+ luvio.storeIngest(key, ingest$2, body);
3154
+ const snapshot = luvio.storeLookup({
3155
+ recordId: key,
3156
+ node: select$6(),
3157
+ variables: {},
3158
+ }, snapshotRefresh);
3159
+ if (process.env.NODE_ENV !== 'production') {
3160
+ if (snapshot.state !== 'Fulfilled') {
3161
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3162
+ }
3163
+ }
3164
+ deepFreeze(snapshot.data);
3165
+ return snapshot;
3166
+ }
3167
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
3168
+ const key = keyBuilder$5(luvio, params);
3169
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3170
+ const storeMetadataParams = {
3171
+ ttl: TTL$2,
3172
+ namespace: keyPrefix,
3173
+ version: VERSION$4,
3174
+ representationName: RepresentationType$2
3175
+ };
3176
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3177
+ return errorSnapshot;
3178
+ }
3179
+ function createResourceRequest$2(config) {
3180
+ const headers = {};
3181
+ return {
3182
+ baseUri: '/services/data/v63.0',
3183
+ basePath: '/connect/recommended-utterances',
3184
+ method: 'get',
3185
+ body: null,
3186
+ urlParams: {},
3187
+ queryParams: config.queryParams,
3188
+ headers,
3189
+ priority: 'normal',
3190
+ };
3191
+ }
3192
+
3193
+ const adapterName$2 = 'getRecommendedUtterances';
3194
+ const getRecommendedUtterances_ConfigPropertyMetadata = [
3195
+ generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3196
+ ];
3197
+ const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getRecommendedUtterances_ConfigPropertyMetadata);
3198
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getRecommendedUtterances_ConfigPropertyMetadata);
3199
+ function keyBuilder$4(luvio, config) {
3200
+ const resourceParams = createResourceParams$2(config);
3201
+ return keyBuilder$5(luvio, resourceParams);
3202
+ }
3203
+ function typeCheckConfig$2(untrustedConfig) {
3204
+ const config = {};
3205
+ typeCheckConfig$9(untrustedConfig, config, getRecommendedUtterances_ConfigPropertyMetadata);
3206
+ return config;
3207
+ }
3208
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3209
+ if (!untrustedIsObject(untrustedConfig)) {
3210
+ return null;
3211
+ }
3212
+ if (process.env.NODE_ENV !== 'production') {
3213
+ validateConfig(untrustedConfig, configPropertyNames);
3214
+ }
3215
+ const config = typeCheckConfig$2(untrustedConfig);
3216
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3217
+ return null;
3218
+ }
3219
+ return config;
3220
+ }
3221
+ function adapterFragment$2(luvio, config) {
3222
+ createResourceParams$2(config);
3223
+ return select$6();
3224
+ }
3225
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3226
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3227
+ config,
3228
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3229
+ });
3230
+ return luvio.storeBroadcast().then(() => snapshot);
3231
+ }
3232
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
3233
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
3234
+ config,
3235
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3236
+ });
3237
+ return luvio.storeBroadcast().then(() => snapshot);
3238
+ }
3239
+ function buildNetworkSnapshot$2(luvio, config, options) {
3240
+ const resourceParams = createResourceParams$2(config);
3241
+ const request = createResourceRequest$2(resourceParams);
3242
+ return luvio.dispatchResourceRequest(request, options)
3243
+ .then((response) => {
3244
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3245
+ const cache = new StoreKeyMap();
3246
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3247
+ return cache;
3248
+ });
3249
+ }, (response) => {
3250
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
3251
+ });
3252
+ }
3253
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3254
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3255
+ }
3256
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3257
+ const { luvio, config } = context;
3258
+ const selector = {
3259
+ recordId: keyBuilder$4(luvio, config),
3260
+ node: adapterFragment$2(luvio, config),
3261
+ variables: {},
3262
+ };
3263
+ const cacheSnapshot = storeLookup(selector, {
3264
+ config,
3265
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3266
+ });
3267
+ return cacheSnapshot;
3268
+ }
3269
+ const getRecommendedUtterancesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedUtterances(untrustedConfig, requestContext) {
3270
+ const config = validateAdapterConfig$2(untrustedConfig, getRecommendedUtterances_ConfigPropertyNames);
3271
+ // Invalid or incomplete config
3272
+ if (config === null) {
3273
+ return null;
3274
+ }
3275
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3276
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
3277
+ };
3278
+
3279
+ const VERSION$3 = "3d8b52828ddd11f23f898b0bba8db802";
3280
+ function validate$3(obj, path = 'CopilotQuickActionRepresentation') {
3281
+ const v_error = (() => {
3282
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3283
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3284
+ }
3285
+ if (obj.actionApiName !== undefined) {
3286
+ const obj_actionApiName = obj.actionApiName;
3287
+ const path_actionApiName = path + '.actionApiName';
3288
+ if (typeof obj_actionApiName !== 'string') {
3289
+ return new TypeError('Expected "string" but received "' + typeof obj_actionApiName + '" (at "' + path_actionApiName + '")');
3290
+ }
3291
+ }
3292
+ if (obj.createdDate !== undefined) {
3293
+ const obj_createdDate = obj.createdDate;
3294
+ const path_createdDate = path + '.createdDate';
3295
+ if (typeof obj_createdDate !== 'string') {
3296
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
3297
+ }
3298
+ }
3299
+ if (obj.description !== undefined) {
3300
+ const obj_description = obj.description;
3301
+ const path_description = path + '.description';
3302
+ if (typeof obj_description !== 'string') {
3303
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3304
+ }
3305
+ }
3306
+ if (obj.icon !== undefined) {
3307
+ const obj_icon = obj.icon;
3308
+ const path_icon = path + '.icon';
3309
+ if (typeof obj_icon !== 'string') {
3310
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3311
+ }
3312
+ }
3313
+ if (obj.intent !== undefined) {
3314
+ const obj_intent = obj.intent;
3315
+ const path_intent = path + '.intent';
3316
+ if (typeof obj_intent !== 'string') {
3317
+ return new TypeError('Expected "string" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
3318
+ }
3319
+ }
3320
+ if (obj.isGlobal !== undefined) {
3321
+ const obj_isGlobal = obj.isGlobal;
3322
+ const path_isGlobal = path + '.isGlobal';
3323
+ if (typeof obj_isGlobal !== 'boolean') {
3324
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isGlobal + '" (at "' + path_isGlobal + '")');
3325
+ }
3326
+ }
3327
+ if (obj.isStandard !== undefined) {
3328
+ const obj_isStandard = obj.isStandard;
3329
+ const path_isStandard = path + '.isStandard';
3330
+ if (typeof obj_isStandard !== 'boolean') {
3331
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isStandard + '" (at "' + path_isStandard + '")');
3332
+ }
3333
+ }
3334
+ if (obj.label !== undefined) {
3335
+ const obj_label = obj.label;
3336
+ const path_label = path + '.label';
3337
+ if (typeof obj_label !== 'string') {
3338
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3339
+ }
3340
+ }
3341
+ if (obj.lastModifiedDate !== undefined) {
3342
+ const obj_lastModifiedDate = obj.lastModifiedDate;
3343
+ const path_lastModifiedDate = path + '.lastModifiedDate';
3344
+ if (typeof obj_lastModifiedDate !== 'string') {
3345
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
3346
+ }
3092
3347
  }
3093
3348
  if (obj.namespace !== undefined) {
3094
3349
  const obj_namespace = obj.namespace;
@@ -3144,10 +3399,10 @@ function validate$1(obj, path = 'CopilotQuickActionRepresentation') {
3144
3399
  })();
3145
3400
  return v_error === undefined ? null : v_error;
3146
3401
  }
3147
- const select$2 = function CopilotQuickActionRepresentationSelect() {
3402
+ const select$5 = function CopilotQuickActionRepresentationSelect() {
3148
3403
  return {
3149
3404
  kind: 'Fragment',
3150
- version: VERSION$1,
3405
+ version: VERSION$3,
3151
3406
  private: [],
3152
3407
  selections: [
3153
3408
  {
@@ -3229,7 +3484,7 @@ const select$2 = function CopilotQuickActionRepresentationSelect() {
3229
3484
  ]
3230
3485
  };
3231
3486
  };
3232
- function equals$1(existing, incoming) {
3487
+ function equals$3(existing, incoming) {
3233
3488
  const existing_isGlobal = existing.isGlobal;
3234
3489
  const incoming_isGlobal = incoming.isGlobal;
3235
3490
  // if at least one of these optionals is defined
@@ -3433,9 +3688,9 @@ function equals$1(existing, incoming) {
3433
3688
  return true;
3434
3689
  }
3435
3690
 
3436
- const TTL = 900000;
3437
- const VERSION = "122e61b0db6dc38d244a87570efc5522";
3438
- function validate(obj, path = 'RecommendedActionsRepresentation') {
3691
+ const TTL$1 = 900000;
3692
+ const VERSION$2 = "122e61b0db6dc38d244a87570efc5522";
3693
+ function validate$2(obj, path = 'RecommendedActionsRepresentation') {
3439
3694
  const v_error = (() => {
3440
3695
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3441
3696
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3448,7 +3703,7 @@ function validate(obj, path = 'RecommendedActionsRepresentation') {
3448
3703
  for (let i = 0; i < obj_copilotQuickActions.length; i++) {
3449
3704
  const obj_copilotQuickActions_item = obj_copilotQuickActions[i];
3450
3705
  const path_copilotQuickActions_item = path_copilotQuickActions + '[' + i + ']';
3451
- const referencepath_copilotQuickActions_itemValidationError = validate$1(obj_copilotQuickActions_item, path_copilotQuickActions_item);
3706
+ const referencepath_copilotQuickActions_itemValidationError = validate$3(obj_copilotQuickActions_item, path_copilotQuickActions_item);
3452
3707
  if (referencepath_copilotQuickActions_itemValidationError !== null) {
3453
3708
  let message = 'Object doesn\'t match CopilotQuickActionRepresentation (at "' + path_copilotQuickActions_item + '")\n';
3454
3709
  message += referencepath_copilotQuickActions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3470,15 +3725,15 @@ function validate(obj, path = 'RecommendedActionsRepresentation') {
3470
3725
  })();
3471
3726
  return v_error === undefined ? null : v_error;
3472
3727
  }
3473
- const RepresentationType = 'RecommendedActionsRepresentation';
3474
- function normalize(input, existing, path, luvio, store, timestamp) {
3728
+ const RepresentationType$1 = 'RecommendedActionsRepresentation';
3729
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
3475
3730
  return input;
3476
3731
  }
3477
- const select$1 = function RecommendedActionsRepresentationSelect() {
3478
- const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$2();
3732
+ const select$4 = function RecommendedActionsRepresentationSelect() {
3733
+ const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$5();
3479
3734
  return {
3480
3735
  kind: 'Fragment',
3481
- version: VERSION,
3736
+ version: VERSION$2,
3482
3737
  private: [],
3483
3738
  selections: [
3484
3739
  {
@@ -3499,7 +3754,7 @@ const select$1 = function RecommendedActionsRepresentationSelect() {
3499
3754
  ]
3500
3755
  };
3501
3756
  };
3502
- function equals(existing, incoming) {
3757
+ function equals$2(existing, incoming) {
3503
3758
  const existing_isSuccess = existing.isSuccess;
3504
3759
  const incoming_isSuccess = incoming.isSuccess;
3505
3760
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -3521,7 +3776,7 @@ function equals(existing, incoming) {
3521
3776
  const existing_copilotQuickActions = existing.copilotQuickActions;
3522
3777
  const incoming_copilotQuickActions = incoming.copilotQuickActions;
3523
3778
  const equals_copilotQuickActions_items = equalsArray(existing_copilotQuickActions, incoming_copilotQuickActions, (existing_copilotQuickActions_item, incoming_copilotQuickActions_item) => {
3524
- if (!(equals$1(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
3779
+ if (!(equals$3(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
3525
3780
  return false;
3526
3781
  }
3527
3782
  });
@@ -3530,7 +3785,333 @@ function equals(existing, incoming) {
3530
3785
  }
3531
3786
  return true;
3532
3787
  }
3533
- const ingest = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
3788
+ const ingest$1 = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
3789
+ if (process.env.NODE_ENV !== 'production') {
3790
+ const validateError = validate$2(input);
3791
+ if (validateError !== null) {
3792
+ throw validateError;
3793
+ }
3794
+ }
3795
+ const key = path.fullPath;
3796
+ const ttlToUse = TTL$1;
3797
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
3798
+ return createLink(key);
3799
+ };
3800
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3801
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3802
+ const rootKey = fullPathFactory();
3803
+ rootKeySet.set(rootKey, {
3804
+ namespace: keyPrefix,
3805
+ representationName: RepresentationType$1,
3806
+ mergeable: false
3807
+ });
3808
+ }
3809
+
3810
+ function select$3(luvio, params) {
3811
+ return select$4();
3812
+ }
3813
+ function keyBuilder$3(luvio, params) {
3814
+ return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
3815
+ }
3816
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3817
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
3818
+ }
3819
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3820
+ const { body } = response;
3821
+ const key = keyBuilder$3(luvio, resourceParams);
3822
+ luvio.storeIngest(key, ingest$1, body);
3823
+ const snapshot = luvio.storeLookup({
3824
+ recordId: key,
3825
+ node: select$3(),
3826
+ variables: {},
3827
+ }, snapshotRefresh);
3828
+ if (process.env.NODE_ENV !== 'production') {
3829
+ if (snapshot.state !== 'Fulfilled') {
3830
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3831
+ }
3832
+ }
3833
+ deepFreeze(snapshot.data);
3834
+ return snapshot;
3835
+ }
3836
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
3837
+ const key = keyBuilder$3(luvio, params);
3838
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3839
+ const storeMetadataParams = {
3840
+ ttl: TTL$1,
3841
+ namespace: keyPrefix,
3842
+ version: VERSION$2,
3843
+ representationName: RepresentationType$1
3844
+ };
3845
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3846
+ return errorSnapshot;
3847
+ }
3848
+ function createResourceRequest$1(config) {
3849
+ const headers = {};
3850
+ return {
3851
+ baseUri: '/services/data/v63.0',
3852
+ basePath: '/connect/recommended-actions',
3853
+ method: 'get',
3854
+ body: null,
3855
+ urlParams: {},
3856
+ queryParams: config.queryParams,
3857
+ headers,
3858
+ priority: 'normal',
3859
+ };
3860
+ }
3861
+
3862
+ const adapterName$1 = 'getRecommendedActions';
3863
+ const getRecommendedActions_ConfigPropertyMetadata = [
3864
+ generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
3865
+ generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
3866
+ generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
3867
+ generateParamConfigMetadata('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
3868
+ generateParamConfigMetadata('customApplicationName', true, 1 /* QueryParameter */, 0 /* String */),
3869
+ generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3870
+ generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
3871
+ ];
3872
+ const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getRecommendedActions_ConfigPropertyMetadata);
3873
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getRecommendedActions_ConfigPropertyMetadata);
3874
+ function keyBuilder$2(luvio, config) {
3875
+ const resourceParams = createResourceParams$1(config);
3876
+ return keyBuilder$3(luvio, resourceParams);
3877
+ }
3878
+ function typeCheckConfig$1(untrustedConfig) {
3879
+ const config = {};
3880
+ typeCheckConfig$9(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
3881
+ return config;
3882
+ }
3883
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3884
+ if (!untrustedIsObject(untrustedConfig)) {
3885
+ return null;
3886
+ }
3887
+ if (process.env.NODE_ENV !== 'production') {
3888
+ validateConfig(untrustedConfig, configPropertyNames);
3889
+ }
3890
+ const config = typeCheckConfig$1(untrustedConfig);
3891
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3892
+ return null;
3893
+ }
3894
+ return config;
3895
+ }
3896
+ function adapterFragment$1(luvio, config) {
3897
+ createResourceParams$1(config);
3898
+ return select$3();
3899
+ }
3900
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
3901
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
3902
+ config,
3903
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3904
+ });
3905
+ return luvio.storeBroadcast().then(() => snapshot);
3906
+ }
3907
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
3908
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
3909
+ config,
3910
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3911
+ });
3912
+ return luvio.storeBroadcast().then(() => snapshot);
3913
+ }
3914
+ function buildNetworkSnapshot$1(luvio, config, options) {
3915
+ const resourceParams = createResourceParams$1(config);
3916
+ const request = createResourceRequest$1(resourceParams);
3917
+ return luvio.dispatchResourceRequest(request, options)
3918
+ .then((response) => {
3919
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3920
+ const cache = new StoreKeyMap();
3921
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3922
+ return cache;
3923
+ });
3924
+ }, (response) => {
3925
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
3926
+ });
3927
+ }
3928
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3929
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3930
+ }
3931
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3932
+ const { luvio, config } = context;
3933
+ const selector = {
3934
+ recordId: keyBuilder$2(luvio, config),
3935
+ node: adapterFragment$1(luvio, config),
3936
+ variables: {},
3937
+ };
3938
+ const cacheSnapshot = storeLookup(selector, {
3939
+ config,
3940
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3941
+ });
3942
+ return cacheSnapshot;
3943
+ }
3944
+ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedActions(untrustedConfig, requestContext) {
3945
+ const config = validateAdapterConfig$1(untrustedConfig, getRecommendedActions_ConfigPropertyNames);
3946
+ // Invalid or incomplete config
3947
+ if (config === null) {
3948
+ return null;
3949
+ }
3950
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3951
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3952
+ };
3953
+
3954
+ const VERSION$1 = "7b8f676098deb92fdb92955fba2e6805";
3955
+ function validate$1(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation') {
3956
+ const v_error = (() => {
3957
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3958
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3959
+ }
3960
+ const obj_topicApiName = obj.topicApiName;
3961
+ const path_topicApiName = path + '.topicApiName';
3962
+ if (typeof obj_topicApiName !== 'string') {
3963
+ return new TypeError('Expected "string" but received "' + typeof obj_topicApiName + '" (at "' + path_topicApiName + '")');
3964
+ }
3965
+ const obj_utterances = obj.utterances;
3966
+ const path_utterances = path + '.utterances';
3967
+ if (!ArrayIsArray(obj_utterances)) {
3968
+ return new TypeError('Expected "array" but received "' + typeof obj_utterances + '" (at "' + path_utterances + '")');
3969
+ }
3970
+ for (let i = 0; i < obj_utterances.length; i++) {
3971
+ const obj_utterances_item = obj_utterances[i];
3972
+ const path_utterances_item = path_utterances + '[' + i + ']';
3973
+ if (typeof obj_utterances_item !== 'string') {
3974
+ return new TypeError('Expected "string" but received "' + typeof obj_utterances_item + '" (at "' + path_utterances_item + '")');
3975
+ }
3976
+ }
3977
+ })();
3978
+ return v_error === undefined ? null : v_error;
3979
+ }
3980
+ const select$2 = function WelcomeTopicSuggestedUtterancesRepresentationSelect() {
3981
+ return {
3982
+ kind: 'Fragment',
3983
+ version: VERSION$1,
3984
+ private: [],
3985
+ selections: [
3986
+ {
3987
+ name: 'topicApiName',
3988
+ kind: 'Scalar'
3989
+ },
3990
+ {
3991
+ name: 'utterances',
3992
+ kind: 'Scalar',
3993
+ plural: true
3994
+ }
3995
+ ]
3996
+ };
3997
+ };
3998
+ function equals$1(existing, incoming) {
3999
+ const existing_topicApiName = existing.topicApiName;
4000
+ const incoming_topicApiName = incoming.topicApiName;
4001
+ if (!(existing_topicApiName === incoming_topicApiName)) {
4002
+ return false;
4003
+ }
4004
+ const existing_utterances = existing.utterances;
4005
+ const incoming_utterances = incoming.utterances;
4006
+ const equals_utterances_items = equalsArray(existing_utterances, incoming_utterances, (existing_utterances_item, incoming_utterances_item) => {
4007
+ if (!(existing_utterances_item === incoming_utterances_item)) {
4008
+ return false;
4009
+ }
4010
+ });
4011
+ if (equals_utterances_items === false) {
4012
+ return false;
4013
+ }
4014
+ return true;
4015
+ }
4016
+
4017
+ const TTL = 30000;
4018
+ const VERSION = "5563352486e852506e175069aef4b290";
4019
+ function validate(obj, path = 'WelcomeUtterancesRepresentation') {
4020
+ const v_error = (() => {
4021
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4022
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4023
+ }
4024
+ if (obj.errorMessage !== undefined) {
4025
+ const obj_errorMessage = obj.errorMessage;
4026
+ const path_errorMessage = path + '.errorMessage';
4027
+ if (typeof obj_errorMessage !== 'string') {
4028
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
4029
+ }
4030
+ }
4031
+ const obj_isSuccess = obj.isSuccess;
4032
+ const path_isSuccess = path + '.isSuccess';
4033
+ if (typeof obj_isSuccess !== 'boolean') {
4034
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4035
+ }
4036
+ const obj_topicsAndSuggestedUtterances = obj.topicsAndSuggestedUtterances;
4037
+ const path_topicsAndSuggestedUtterances = path + '.topicsAndSuggestedUtterances';
4038
+ if (!ArrayIsArray(obj_topicsAndSuggestedUtterances)) {
4039
+ return new TypeError('Expected "array" but received "' + typeof obj_topicsAndSuggestedUtterances + '" (at "' + path_topicsAndSuggestedUtterances + '")');
4040
+ }
4041
+ for (let i = 0; i < obj_topicsAndSuggestedUtterances.length; i++) {
4042
+ const obj_topicsAndSuggestedUtterances_item = obj_topicsAndSuggestedUtterances[i];
4043
+ const path_topicsAndSuggestedUtterances_item = path_topicsAndSuggestedUtterances + '[' + i + ']';
4044
+ const referencepath_topicsAndSuggestedUtterances_itemValidationError = validate$1(obj_topicsAndSuggestedUtterances_item, path_topicsAndSuggestedUtterances_item);
4045
+ if (referencepath_topicsAndSuggestedUtterances_itemValidationError !== null) {
4046
+ let message = 'Object doesn\'t match WelcomeTopicSuggestedUtterancesRepresentation (at "' + path_topicsAndSuggestedUtterances_item + '")\n';
4047
+ message += referencepath_topicsAndSuggestedUtterances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4048
+ return new TypeError(message);
4049
+ }
4050
+ }
4051
+ })();
4052
+ return v_error === undefined ? null : v_error;
4053
+ }
4054
+ const RepresentationType = 'WelcomeUtterancesRepresentation';
4055
+ function normalize(input, existing, path, luvio, store, timestamp) {
4056
+ return input;
4057
+ }
4058
+ const select$1 = function WelcomeUtterancesRepresentationSelect() {
4059
+ const { selections: WelcomeTopicSuggestedUtterancesRepresentation__selections, opaque: WelcomeTopicSuggestedUtterancesRepresentation__opaque, } = select$2();
4060
+ return {
4061
+ kind: 'Fragment',
4062
+ version: VERSION,
4063
+ private: [],
4064
+ selections: [
4065
+ {
4066
+ name: 'errorMessage',
4067
+ kind: 'Scalar',
4068
+ required: false
4069
+ },
4070
+ {
4071
+ name: 'isSuccess',
4072
+ kind: 'Scalar'
4073
+ },
4074
+ {
4075
+ name: 'topicsAndSuggestedUtterances',
4076
+ kind: 'Object',
4077
+ plural: true,
4078
+ selections: WelcomeTopicSuggestedUtterancesRepresentation__selections
4079
+ }
4080
+ ]
4081
+ };
4082
+ };
4083
+ function equals(existing, incoming) {
4084
+ const existing_isSuccess = existing.isSuccess;
4085
+ const incoming_isSuccess = incoming.isSuccess;
4086
+ if (!(existing_isSuccess === incoming_isSuccess)) {
4087
+ return false;
4088
+ }
4089
+ const existing_errorMessage = existing.errorMessage;
4090
+ const incoming_errorMessage = incoming.errorMessage;
4091
+ // if at least one of these optionals is defined
4092
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
4093
+ // if one of these is not defined we know the other is defined and therefore
4094
+ // not equal
4095
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
4096
+ return false;
4097
+ }
4098
+ if (!(existing_errorMessage === incoming_errorMessage)) {
4099
+ return false;
4100
+ }
4101
+ }
4102
+ const existing_topicsAndSuggestedUtterances = existing.topicsAndSuggestedUtterances;
4103
+ const incoming_topicsAndSuggestedUtterances = incoming.topicsAndSuggestedUtterances;
4104
+ const equals_topicsAndSuggestedUtterances_items = equalsArray(existing_topicsAndSuggestedUtterances, incoming_topicsAndSuggestedUtterances, (existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item) => {
4105
+ if (!(equals$1(existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item))) {
4106
+ return false;
4107
+ }
4108
+ });
4109
+ if (equals_topicsAndSuggestedUtterances_items === false) {
4110
+ return false;
4111
+ }
4112
+ return true;
4113
+ }
4114
+ const ingest = function WelcomeUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
3534
4115
  if (process.env.NODE_ENV !== 'production') {
3535
4116
  const validateError = validate(input);
3536
4117
  if (validateError !== null) {
@@ -3556,7 +4137,7 @@ function select(luvio, params) {
3556
4137
  return select$1();
3557
4138
  }
3558
4139
  function keyBuilder$1(luvio, params) {
3559
- 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 + ')';
4140
+ return keyPrefix + '::WelcomeUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
3560
4141
  }
3561
4142
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3562
4143
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -3594,7 +4175,7 @@ function createResourceRequest(config) {
3594
4175
  const headers = {};
3595
4176
  return {
3596
4177
  baseUri: '/services/data/v63.0',
3597
- basePath: '/connect/recommended-actions',
4178
+ basePath: '/connect/welcome-utterances',
3598
4179
  method: 'get',
3599
4180
  body: null,
3600
4181
  urlParams: {},
@@ -3604,25 +4185,19 @@ function createResourceRequest(config) {
3604
4185
  };
3605
4186
  }
3606
4187
 
3607
- const adapterName = 'getRecommendedActions';
3608
- const getRecommendedActions_ConfigPropertyMetadata = [
3609
- generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
3610
- generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
3611
- generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
3612
- generateParamConfigMetadata('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
3613
- generateParamConfigMetadata('customApplicationName', true, 1 /* QueryParameter */, 0 /* String */),
3614
- generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3615
- generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
4188
+ const adapterName = 'getWelcomeUtterances';
4189
+ const getWelcomeUtterances_ConfigPropertyMetadata = [
4190
+ generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
3616
4191
  ];
3617
- const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getRecommendedActions_ConfigPropertyMetadata);
3618
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(getRecommendedActions_ConfigPropertyMetadata);
4192
+ const getWelcomeUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWelcomeUtterances_ConfigPropertyMetadata);
4193
+ const createResourceParams = /*#__PURE__*/ createResourceParams$9(getWelcomeUtterances_ConfigPropertyMetadata);
3619
4194
  function keyBuilder(luvio, config) {
3620
4195
  const resourceParams = createResourceParams(config);
3621
4196
  return keyBuilder$1(luvio, resourceParams);
3622
4197
  }
3623
4198
  function typeCheckConfig(untrustedConfig) {
3624
4199
  const config = {};
3625
- typeCheckConfig$7(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
4200
+ typeCheckConfig$9(untrustedConfig, config, getWelcomeUtterances_ConfigPropertyMetadata);
3626
4201
  return config;
3627
4202
  }
3628
4203
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3671,7 +4246,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3671
4246
  });
3672
4247
  }
3673
4248
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3674
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4249
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3675
4250
  }
3676
4251
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3677
4252
  const { luvio, config } = context;
@@ -3686,8 +4261,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
3686
4261
  });
3687
4262
  return cacheSnapshot;
3688
4263
  }
3689
- const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedActions(untrustedConfig, requestContext) {
3690
- const config = validateAdapterConfig(untrustedConfig, getRecommendedActions_ConfigPropertyNames);
4264
+ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBot__getWelcomeUtterances(untrustedConfig, requestContext) {
4265
+ const config = validateAdapterConfig(untrustedConfig, getWelcomeUtterances_ConfigPropertyNames);
3691
4266
  // Invalid or incomplete config
3692
4267
  if (config === null) {
3693
4268
  return null;
@@ -3696,4 +4271,4 @@ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotB
3696
4271
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3697
4272
  };
3698
4273
 
3699
- export { getBotIdAdapterFactory, getCopilotObjectsAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };
4274
+ export { getBotIdAdapterFactory, getCopilotObjectsAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, getRecommendedUtterancesAdapterFactory, getWelcomeUtterancesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };