@salesforce/lds-adapters-service-einstein-copilot-bot 1.332.0-dev10 → 1.332.0-dev11

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$7, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$9 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$a, StoreKeyMap, createResourceParams as createResourceParams$a } 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$9 = 30000;
116
- const VERSION$h = "c27669d0d0ba84ade6d5a4c97336c0ef";
117
- function validate$o(obj, path = 'CopilotBotInfoRepresentation') {
115
+ const TTL$a = 30000;
116
+ const VERSION$j = "c27669d0d0ba84ade6d5a4c97336c0ef";
117
+ function validate$q(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$o(obj, path = 'CopilotBotInfoRepresentation') {
162
162
  })();
163
163
  return v_error === undefined ? null : v_error;
164
164
  }
165
- const RepresentationType$9 = 'CopilotBotInfoRepresentation';
166
- function normalize$9(input, existing, path, luvio, store, timestamp) {
165
+ const RepresentationType$a = 'CopilotBotInfoRepresentation';
166
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
167
167
  return input;
168
168
  }
169
- const select$q = function CopilotBotInfoRepresentationSelect() {
169
+ const select$t = function CopilotBotInfoRepresentationSelect() {
170
170
  return {
171
171
  kind: 'Fragment',
172
- version: VERSION$h,
172
+ version: VERSION$j,
173
173
  private: [],
174
174
  selections: [
175
175
  {
@@ -204,7 +204,7 @@ const select$q = function CopilotBotInfoRepresentationSelect() {
204
204
  ]
205
205
  };
206
206
  };
207
- function equals$h(existing, incoming) {
207
+ function equals$j(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$h(existing, incoming) {
277
277
  }
278
278
  return true;
279
279
  }
280
- const ingest$9 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
280
+ const ingest$a = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
281
281
  if (process.env.NODE_ENV !== 'production') {
282
- const validateError = validate$o(input);
282
+ const validateError = validate$q(input);
283
283
  if (validateError !== null) {
284
284
  throw validateError;
285
285
  }
286
286
  }
287
287
  const key = path.fullPath;
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);
288
+ const ttlToUse = TTL$a;
289
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "einstein-copilot-bot", VERSION$j, RepresentationType$a, equals$j);
290
290
  return createLink(key);
291
291
  };
292
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
292
+ function getTypeCacheKeys$a(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$9,
297
+ representationName: RepresentationType$a,
298
298
  mergeable: false
299
299
  });
300
300
  }
301
301
 
302
- function select$p(luvio, params) {
303
- return select$q();
302
+ function select$s(luvio, params) {
303
+ return select$t();
304
304
  }
305
- function keyBuilder$g(luvio, params) {
305
+ function keyBuilder$i(luvio, params) {
306
306
  return keyPrefix + '::CopilotBotInfoRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
307
307
  }
308
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
309
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
308
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
309
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
310
310
  }
311
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
311
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
312
312
  const { body } = response;
313
- const key = keyBuilder$g(luvio, resourceParams);
314
- luvio.storeIngest(key, ingest$9, body);
313
+ const key = keyBuilder$i(luvio, resourceParams);
314
+ luvio.storeIngest(key, ingest$a, body);
315
315
  const snapshot = luvio.storeLookup({
316
316
  recordId: key,
317
- node: select$p(),
317
+ node: select$s(),
318
318
  variables: {},
319
319
  }, snapshotRefresh);
320
320
  if (process.env.NODE_ENV !== 'production') {
@@ -325,19 +325,19 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
325
325
  deepFreeze(snapshot.data);
326
326
  return snapshot;
327
327
  }
328
- function ingestError$6(luvio, params, error, snapshotRefresh) {
329
- const key = keyBuilder$g(luvio, params);
328
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
329
+ const key = keyBuilder$i(luvio, params);
330
330
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
331
331
  const storeMetadataParams = {
332
- ttl: TTL$9,
332
+ ttl: TTL$a,
333
333
  namespace: keyPrefix,
334
- version: VERSION$h,
335
- representationName: RepresentationType$9
334
+ version: VERSION$j,
335
+ representationName: RepresentationType$a
336
336
  };
337
337
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
338
338
  return errorSnapshot;
339
339
  }
340
- function createResourceRequest$8(config) {
340
+ function createResourceRequest$9(config) {
341
341
  const headers = {};
342
342
  return {
343
343
  baseUri: '/services/data/v63.0',
@@ -351,94 +351,94 @@ function createResourceRequest$8(config) {
351
351
  };
352
352
  }
353
353
 
354
- const adapterName$8 = 'getBotId';
354
+ const adapterName$9 = 'getBotId';
355
355
  const getBotId_ConfigPropertyMetadata = [
356
356
  generateParamConfigMetadata('agentType', false, 1 /* QueryParameter */, 0 /* String */),
357
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);
358
+ const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getBotId_ConfigPropertyMetadata);
359
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getBotId_ConfigPropertyMetadata);
360
+ function keyBuilder$h(luvio, config) {
361
+ const resourceParams = createResourceParams$9(config);
362
+ return keyBuilder$i(luvio, resourceParams);
363
363
  }
364
- function typeCheckConfig$8(untrustedConfig) {
364
+ function typeCheckConfig$9(untrustedConfig) {
365
365
  const config = {};
366
- typeCheckConfig$9(untrustedConfig, config, getBotId_ConfigPropertyMetadata);
366
+ typeCheckConfig$a(untrustedConfig, config, getBotId_ConfigPropertyMetadata);
367
367
  return config;
368
368
  }
369
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
369
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
370
370
  if (!untrustedIsObject(untrustedConfig)) {
371
371
  return null;
372
372
  }
373
373
  if (process.env.NODE_ENV !== 'production') {
374
374
  validateConfig(untrustedConfig, configPropertyNames);
375
375
  }
376
- const config = typeCheckConfig$8(untrustedConfig);
376
+ const config = typeCheckConfig$9(untrustedConfig);
377
377
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
378
378
  return null;
379
379
  }
380
380
  return config;
381
381
  }
382
- function adapterFragment$6(luvio, config) {
383
- createResourceParams$8(config);
384
- return select$p();
382
+ function adapterFragment$7(luvio, config) {
383
+ createResourceParams$9(config);
384
+ return select$s();
385
385
  }
386
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
387
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
386
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
387
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
388
388
  config,
389
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
389
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
390
390
  });
391
391
  return luvio.storeBroadcast().then(() => snapshot);
392
392
  }
393
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
394
- const snapshot = ingestError$6(luvio, resourceParams, response, {
393
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
394
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
395
395
  config,
396
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
396
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
397
397
  });
398
398
  return luvio.storeBroadcast().then(() => snapshot);
399
399
  }
400
- function buildNetworkSnapshot$8(luvio, config, options) {
401
- const resourceParams = createResourceParams$8(config);
402
- const request = createResourceRequest$8(resourceParams);
400
+ function buildNetworkSnapshot$9(luvio, config, options) {
401
+ const resourceParams = createResourceParams$9(config);
402
+ const request = createResourceRequest$9(resourceParams);
403
403
  return luvio.dispatchResourceRequest(request, options)
404
404
  .then((response) => {
405
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
405
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
406
406
  const cache = new StoreKeyMap();
407
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
407
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
408
408
  return cache;
409
409
  });
410
410
  }, (response) => {
411
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
411
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
412
412
  });
413
413
  }
414
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
415
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
414
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
415
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
416
416
  }
417
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
417
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
418
418
  const { luvio, config } = context;
419
419
  const selector = {
420
- recordId: keyBuilder$f(luvio, config),
421
- node: adapterFragment$6(luvio, config),
420
+ recordId: keyBuilder$h(luvio, config),
421
+ node: adapterFragment$7(luvio, config),
422
422
  variables: {},
423
423
  };
424
424
  const cacheSnapshot = storeLookup(selector, {
425
425
  config,
426
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
426
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
427
427
  });
428
428
  return cacheSnapshot;
429
429
  }
430
430
  const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(untrustedConfig, requestContext) {
431
- const config = validateAdapterConfig$8(untrustedConfig, getBotId_ConfigPropertyNames);
431
+ const config = validateAdapterConfig$9(untrustedConfig, getBotId_ConfigPropertyNames);
432
432
  // Invalid or incomplete config
433
433
  if (config === null) {
434
434
  return null;
435
435
  }
436
436
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
437
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
437
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
438
438
  };
439
439
 
440
- const VERSION$g = "e8cb7e20392935088ea2f98edb927e8a";
441
- function validate$n(obj, path = 'EsTypeMessageRepresentation') {
440
+ const VERSION$i = "e8cb7e20392935088ea2f98edb927e8a";
441
+ function validate$p(obj, path = 'EsTypeMessageRepresentation') {
442
442
  const v_error = (() => {
443
443
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
444
444
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -484,10 +484,10 @@ function validate$n(obj, path = 'EsTypeMessageRepresentation') {
484
484
  })();
485
485
  return v_error === undefined ? null : v_error;
486
486
  }
487
- const select$o = function EsTypeMessageRepresentationSelect() {
487
+ const select$r = function EsTypeMessageRepresentationSelect() {
488
488
  return {
489
489
  kind: 'Fragment',
490
- version: VERSION$g,
490
+ version: VERSION$i,
491
491
  private: [],
492
492
  selections: [
493
493
  {
@@ -507,7 +507,7 @@ const select$o = function EsTypeMessageRepresentationSelect() {
507
507
  ]
508
508
  };
509
509
  };
510
- function equals$g(existing, incoming) {
510
+ function equals$i(existing, incoming) {
511
511
  const existing_type = existing.type;
512
512
  const incoming_type = incoming.type;
513
513
  if (!(existing_type === incoming_type)) {
@@ -534,7 +534,7 @@ function equals$g(existing, incoming) {
534
534
  return true;
535
535
  }
536
536
 
537
- function validate$m(obj, path = 'VariableRepresentation') {
537
+ function validate$o(obj, path = 'VariableRepresentation') {
538
538
  const v_error = (() => {
539
539
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
540
540
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -560,8 +560,8 @@ function validate$m(obj, path = 'VariableRepresentation') {
560
560
  return v_error === undefined ? null : v_error;
561
561
  }
562
562
 
563
- const VERSION$f = "4e28b61c3ea362f1c68b28897784111e";
564
- function validate$l(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
563
+ const VERSION$h = "4e28b61c3ea362f1c68b28897784111e";
564
+ function validate$n(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
565
565
  const v_error = (() => {
566
566
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
567
567
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -579,10 +579,10 @@ function validate$l(obj, path = 'ConversationRuntimeProxyChoiceRepresentation')
579
579
  })();
580
580
  return v_error === undefined ? null : v_error;
581
581
  }
582
- const select$n = function ConversationRuntimeProxyChoiceRepresentationSelect() {
582
+ const select$q = function ConversationRuntimeProxyChoiceRepresentationSelect() {
583
583
  return {
584
584
  kind: 'Fragment',
585
- version: VERSION$f,
585
+ version: VERSION$h,
586
586
  private: [],
587
587
  selections: [
588
588
  {
@@ -596,7 +596,7 @@ const select$n = function ConversationRuntimeProxyChoiceRepresentationSelect() {
596
596
  ]
597
597
  };
598
598
  };
599
- function equals$f(existing, incoming) {
599
+ function equals$h(existing, incoming) {
600
600
  const existing_alias = existing.alias;
601
601
  const incoming_alias = incoming.alias;
602
602
  if (!(existing_alias === incoming_alias)) {
@@ -610,8 +610,8 @@ function equals$f(existing, incoming) {
610
610
  return true;
611
611
  }
612
612
 
613
- const VERSION$e = "477724425d0742c030025796c88ebf5d";
614
- function validate$k(obj, path = 'CollectMessageRepresentation') {
613
+ const VERSION$g = "477724425d0742c030025796c88ebf5d";
614
+ function validate$m(obj, path = 'CollectMessageRepresentation') {
615
615
  const v_error = (() => {
616
616
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
617
617
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -619,7 +619,7 @@ function validate$k(obj, path = 'CollectMessageRepresentation') {
619
619
  if (obj.data !== undefined) {
620
620
  const obj_data = obj.data;
621
621
  const path_data = path + '.data';
622
- const referencepath_dataValidationError = validate$n(obj_data, path_data);
622
+ const referencepath_dataValidationError = validate$p(obj_data, path_data);
623
623
  if (referencepath_dataValidationError !== null) {
624
624
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
625
625
  message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -662,11 +662,11 @@ function validate$k(obj, path = 'CollectMessageRepresentation') {
662
662
  })();
663
663
  return v_error === undefined ? null : v_error;
664
664
  }
665
- const select$m = function CollectMessageRepresentationSelect() {
666
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$o();
665
+ const select$p = function CollectMessageRepresentationSelect() {
666
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$r();
667
667
  return {
668
668
  kind: 'Fragment',
669
- version: VERSION$e,
669
+ version: VERSION$g,
670
670
  private: [],
671
671
  selections: [
672
672
  {
@@ -687,7 +687,7 @@ const select$m = function CollectMessageRepresentationSelect() {
687
687
  ]
688
688
  };
689
689
  };
690
- function equals$e(existing, incoming) {
690
+ function equals$g(existing, incoming) {
691
691
  const existing_targetType = existing.targetType;
692
692
  const incoming_targetType = incoming.targetType;
693
693
  if (!(existing_targetType === incoming_targetType)) {
@@ -702,7 +702,7 @@ function equals$e(existing, incoming) {
702
702
  if (existing_data === undefined || incoming_data === undefined) {
703
703
  return false;
704
704
  }
705
- if (!(equals$g(existing_data, incoming_data))) {
705
+ if (!(equals$i(existing_data, incoming_data))) {
706
706
  return false;
707
707
  }
708
708
  }
@@ -722,9 +722,9 @@ function equals$e(existing, incoming) {
722
722
  return true;
723
723
  }
724
724
 
725
- const TTL$8 = 30000;
726
- const VERSION$d = "983ede912bc103cfd2e2c2758140c5c9";
727
- function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
725
+ const TTL$9 = 30000;
726
+ const VERSION$f = "983ede912bc103cfd2e2c2758140c5c9";
727
+ function validate$l(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
728
728
  const v_error = (() => {
729
729
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
730
730
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -738,7 +738,7 @@ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
738
738
  for (let i = 0; i < obj_choices.length; i++) {
739
739
  const obj_choices_item = obj_choices[i];
740
740
  const path_choices_item = path_choices + '[' + i + ']';
741
- const referencepath_choices_itemValidationError = validate$l(obj_choices_item, path_choices_item);
741
+ const referencepath_choices_itemValidationError = validate$n(obj_choices_item, path_choices_item);
742
742
  if (referencepath_choices_itemValidationError !== null) {
743
743
  let message = 'Object doesn\'t match ConversationRuntimeProxyChoiceRepresentation (at "' + path_choices_item + '")\n';
744
744
  message += referencepath_choices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -755,7 +755,7 @@ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
755
755
  for (let i = 0; i < obj_collect.length; i++) {
756
756
  const obj_collect_item = obj_collect[i];
757
757
  const path_collect_item = path_collect + '[' + i + ']';
758
- const referencepath_collect_itemValidationError = validate$k(obj_collect_item, path_collect_item);
758
+ const referencepath_collect_itemValidationError = validate$m(obj_collect_item, path_collect_item);
759
759
  if (referencepath_collect_itemValidationError !== null) {
760
760
  let message = 'Object doesn\'t match CollectMessageRepresentation (at "' + path_collect_item + '")\n';
761
761
  message += referencepath_collect_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -772,7 +772,7 @@ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
772
772
  for (let i = 0; i < obj_confirm.length; i++) {
773
773
  const obj_confirm_item = obj_confirm[i];
774
774
  const path_confirm_item = path_confirm + '[' + i + ']';
775
- const referencepath_confirm_itemValidationError = validate$n(obj_confirm_item, path_confirm_item);
775
+ const referencepath_confirm_itemValidationError = validate$p(obj_confirm_item, path_confirm_item);
776
776
  if (referencepath_confirm_itemValidationError !== null) {
777
777
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_confirm_item + '")\n';
778
778
  message += referencepath_confirm_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -955,7 +955,7 @@ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
955
955
  for (let i = 0; i < obj_result.length; i++) {
956
956
  const obj_result_item = obj_result[i];
957
957
  const path_result_item = path_result + '[' + i + ']';
958
- const referencepath_result_itemValidationError = validate$n(obj_result_item, path_result_item);
958
+ const referencepath_result_itemValidationError = validate$p(obj_result_item, path_result_item);
959
959
  if (referencepath_result_itemValidationError !== null) {
960
960
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_result_item + '")\n';
961
961
  message += referencepath_result_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1029,26 +1029,26 @@ function validate$j(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
1029
1029
  })();
1030
1030
  return v_error === undefined ? null : v_error;
1031
1031
  }
1032
- const RepresentationType$8 = 'ConversationRuntimeProxyMessageRepresentation';
1033
- function keyBuilder$e(luvio, config) {
1034
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1032
+ const RepresentationType$9 = 'ConversationRuntimeProxyMessageRepresentation';
1033
+ function keyBuilder$g(luvio, config) {
1034
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
1035
1035
  }
1036
1036
  function keyBuilderFromType$2(luvio, object) {
1037
1037
  const keyParams = {
1038
1038
  id: object.id
1039
1039
  };
1040
- return keyBuilder$e(luvio, keyParams);
1040
+ return keyBuilder$g(luvio, keyParams);
1041
1041
  }
1042
- function normalize$8(input, existing, path, luvio, store, timestamp) {
1042
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1043
1043
  return input;
1044
1044
  }
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();
1045
+ const select$o = function ConversationRuntimeProxyMessageRepresentationSelect() {
1046
+ const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$q();
1047
+ const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$p();
1048
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$r();
1049
1049
  return {
1050
1050
  kind: 'Fragment',
1051
- version: VERSION$d,
1051
+ version: VERSION$f,
1052
1052
  private: [],
1053
1053
  selections: [
1054
1054
  {
@@ -1137,7 +1137,7 @@ const select$l = function ConversationRuntimeProxyMessageRepresentationSelect()
1137
1137
  ]
1138
1138
  };
1139
1139
  };
1140
- function equals$d(existing, incoming) {
1140
+ function equals$f(existing, incoming) {
1141
1141
  const existing_isContentSafe = existing.isContentSafe;
1142
1142
  const incoming_isContentSafe = incoming.isContentSafe;
1143
1143
  // if at least one of these optionals is defined
@@ -1179,7 +1179,7 @@ function equals$d(existing, incoming) {
1179
1179
  return false;
1180
1180
  }
1181
1181
  const equals_choices_items = equalsArray(existing_choices, incoming_choices, (existing_choices_item, incoming_choices_item) => {
1182
- if (!(equals$f(existing_choices_item, incoming_choices_item))) {
1182
+ if (!(equals$h(existing_choices_item, incoming_choices_item))) {
1183
1183
  return false;
1184
1184
  }
1185
1185
  });
@@ -1197,7 +1197,7 @@ function equals$d(existing, incoming) {
1197
1197
  return false;
1198
1198
  }
1199
1199
  const equals_collect_items = equalsArray(existing_collect, incoming_collect, (existing_collect_item, incoming_collect_item) => {
1200
- if (!(equals$e(existing_collect_item, incoming_collect_item))) {
1200
+ if (!(equals$g(existing_collect_item, incoming_collect_item))) {
1201
1201
  return false;
1202
1202
  }
1203
1203
  });
@@ -1215,7 +1215,7 @@ function equals$d(existing, incoming) {
1215
1215
  return false;
1216
1216
  }
1217
1217
  const equals_confirm_items = equalsArray(existing_confirm, incoming_confirm, (existing_confirm_item, incoming_confirm_item) => {
1218
- if (!(equals$g(existing_confirm_item, incoming_confirm_item))) {
1218
+ if (!(equals$i(existing_confirm_item, incoming_confirm_item))) {
1219
1219
  return false;
1220
1220
  }
1221
1221
  });
@@ -1316,7 +1316,7 @@ function equals$d(existing, incoming) {
1316
1316
  return false;
1317
1317
  }
1318
1318
  const equals_result_items = equalsArray(existing_result, incoming_result, (existing_result_item, incoming_result_item) => {
1319
- if (!(equals$g(existing_result_item, incoming_result_item))) {
1319
+ if (!(equals$i(existing_result_item, incoming_result_item))) {
1320
1320
  return false;
1321
1321
  }
1322
1322
  });
@@ -1352,31 +1352,31 @@ function equals$d(existing, incoming) {
1352
1352
  }
1353
1353
  return true;
1354
1354
  }
1355
- const ingest$8 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1355
+ const ingest$9 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1356
1356
  if (process.env.NODE_ENV !== 'production') {
1357
- const validateError = validate$j(input);
1357
+ const validateError = validate$l(input);
1358
1358
  if (validateError !== null) {
1359
1359
  throw validateError;
1360
1360
  }
1361
1361
  }
1362
1362
  const key = keyBuilderFromType$2(luvio, input);
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);
1363
+ const ttlToUse = TTL$9;
1364
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "einstein-copilot-bot", VERSION$f, RepresentationType$9, equals$f);
1365
1365
  return createLink(key);
1366
1366
  };
1367
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1367
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1368
1368
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1369
1369
  const rootKey = keyBuilderFromType$2(luvio, input);
1370
1370
  rootKeySet.set(rootKey, {
1371
1371
  namespace: keyPrefix,
1372
- representationName: RepresentationType$8,
1372
+ representationName: RepresentationType$9,
1373
1373
  mergeable: false
1374
1374
  });
1375
1375
  }
1376
1376
 
1377
- const TTL$7 = 30000;
1378
- const VERSION$c = "fe7024fb1132250f97d9616482f09f99";
1379
- function validate$i(obj, path = 'ConversationRuntimeProxyRepresentation') {
1377
+ const TTL$8 = 30000;
1378
+ const VERSION$e = "fe7024fb1132250f97d9616482f09f99";
1379
+ function validate$k(obj, path = 'ConversationRuntimeProxyRepresentation') {
1380
1380
  const v_error = (() => {
1381
1381
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1382
1382
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1428,23 +1428,23 @@ function validate$i(obj, path = 'ConversationRuntimeProxyRepresentation') {
1428
1428
  })();
1429
1429
  return v_error === undefined ? null : v_error;
1430
1430
  }
1431
- const RepresentationType$7 = 'ConversationRuntimeProxyRepresentation';
1432
- function keyBuilder$d(luvio, config) {
1433
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1431
+ const RepresentationType$8 = 'ConversationRuntimeProxyRepresentation';
1432
+ function keyBuilder$f(luvio, config) {
1433
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1434
1434
  }
1435
1435
  function keyBuilderFromType$1(luvio, object) {
1436
1436
  const keyParams = {
1437
1437
  id: object.requestId
1438
1438
  };
1439
- return keyBuilder$d(luvio, keyParams);
1439
+ return keyBuilder$f(luvio, keyParams);
1440
1440
  }
1441
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1441
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1442
1442
  const input_messages = input.messages;
1443
1443
  const input_messages_id = path.fullPath + '__messages';
1444
1444
  for (let i = 0; i < input_messages.length; i++) {
1445
1445
  const input_messages_item = input_messages[i];
1446
1446
  let input_messages_item_id = input_messages_id + '__' + i;
1447
- input_messages[i] = ingest$8(input_messages_item, {
1447
+ input_messages[i] = ingest$9(input_messages_item, {
1448
1448
  fullPath: input_messages_item_id,
1449
1449
  propertyName: i,
1450
1450
  parent: {
@@ -1457,10 +1457,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
1457
1457
  }
1458
1458
  return input;
1459
1459
  }
1460
- const select$k = function ConversationRuntimeProxyRepresentationSelect() {
1460
+ const select$n = function ConversationRuntimeProxyRepresentationSelect() {
1461
1461
  return {
1462
1462
  kind: 'Fragment',
1463
- version: VERSION$c,
1463
+ version: VERSION$e,
1464
1464
  private: [],
1465
1465
  selections: [
1466
1466
  {
@@ -1475,7 +1475,7 @@ const select$k = function ConversationRuntimeProxyRepresentationSelect() {
1475
1475
  name: 'messages',
1476
1476
  kind: 'Link',
1477
1477
  plural: true,
1478
- fragment: select$l()
1478
+ fragment: select$o()
1479
1479
  },
1480
1480
  {
1481
1481
  name: 'processedSequenceIds',
@@ -1493,7 +1493,7 @@ const select$k = function ConversationRuntimeProxyRepresentationSelect() {
1493
1493
  ]
1494
1494
  };
1495
1495
  };
1496
- function equals$c(existing, incoming) {
1496
+ function equals$e(existing, incoming) {
1497
1497
  const existing_botId = existing.botId;
1498
1498
  const incoming_botId = incoming.botId;
1499
1499
  if (!(existing_botId === incoming_botId)) {
@@ -1536,45 +1536,45 @@ function equals$c(existing, incoming) {
1536
1536
  }
1537
1537
  return true;
1538
1538
  }
1539
- const ingest$7 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1539
+ const ingest$8 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1540
1540
  if (process.env.NODE_ENV !== 'production') {
1541
- const validateError = validate$i(input);
1541
+ const validateError = validate$k(input);
1542
1542
  if (validateError !== null) {
1543
1543
  throw validateError;
1544
1544
  }
1545
1545
  }
1546
1546
  const key = keyBuilderFromType$1(luvio, input);
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);
1547
+ const ttlToUse = TTL$8;
1548
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "einstein-copilot-bot", VERSION$e, RepresentationType$8, equals$e);
1549
1549
  return createLink(key);
1550
1550
  };
1551
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1551
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1552
1552
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1553
1553
  const rootKey = keyBuilderFromType$1(luvio, input);
1554
1554
  rootKeySet.set(rootKey, {
1555
1555
  namespace: keyPrefix,
1556
- representationName: RepresentationType$7,
1556
+ representationName: RepresentationType$8,
1557
1557
  mergeable: false
1558
1558
  });
1559
1559
  const input_messages_length = input.messages.length;
1560
1560
  for (let i = 0; i < input_messages_length; i++) {
1561
- getTypeCacheKeys$8(rootKeySet, luvio, input.messages[i]);
1561
+ getTypeCacheKeys$9(rootKeySet, luvio, input.messages[i]);
1562
1562
  }
1563
1563
  }
1564
1564
 
1565
- function select$j(luvio, params) {
1566
- return select$k();
1565
+ function select$m(luvio, params) {
1566
+ return select$n();
1567
1567
  }
1568
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1569
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1568
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1569
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1570
1570
  }
1571
- function ingestSuccess$7(luvio, resourceParams, response) {
1571
+ function ingestSuccess$8(luvio, resourceParams, response) {
1572
1572
  const { body } = response;
1573
1573
  const key = keyBuilderFromType$1(luvio, body);
1574
- luvio.storeIngest(key, ingest$7, body);
1574
+ luvio.storeIngest(key, ingest$8, body);
1575
1575
  const snapshot = luvio.storeLookup({
1576
1576
  recordId: key,
1577
- node: select$j(),
1577
+ node: select$m(),
1578
1578
  variables: {},
1579
1579
  });
1580
1580
  if (process.env.NODE_ENV !== 'production') {
@@ -1585,7 +1585,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
1585
1585
  deepFreeze(snapshot.data);
1586
1586
  return snapshot;
1587
1587
  }
1588
- function createResourceRequest$7(config) {
1588
+ function createResourceRequest$8(config) {
1589
1589
  const headers = {};
1590
1590
  return {
1591
1591
  baseUri: '/services/data/v63.0',
@@ -1599,7 +1599,7 @@ function createResourceRequest$7(config) {
1599
1599
  };
1600
1600
  }
1601
1601
 
1602
- const adapterName$7 = 'sendMessage';
1602
+ const adapterName$8 = 'sendMessage';
1603
1603
  const sendMessage_ConfigPropertyMetadata = [
1604
1604
  generateParamConfigMetadata('botId', false, 1 /* QueryParameter */, 0 /* String */),
1605
1605
  generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
@@ -1616,11 +1616,11 @@ const sendMessage_ConfigPropertyMetadata = [
1616
1616
  generateParamConfigMetadata('variables', false, 2 /* Body */, 4 /* Unsupported */, true),
1617
1617
  generateParamConfigMetadata('userUtterance', false, 2 /* Body */, 0 /* String */),
1618
1618
  ];
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
+ const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, sendMessage_ConfigPropertyMetadata);
1620
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(sendMessage_ConfigPropertyMetadata);
1621
+ function typeCheckConfig$8(untrustedConfig) {
1622
1622
  const config = {};
1623
- typeCheckConfig$9(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1623
+ typeCheckConfig$a(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1624
1624
  const untrustedConfig_planTemplateVariables = untrustedConfig.planTemplateVariables;
1625
1625
  config.planTemplateVariables = untrustedConfig_planTemplateVariables;
1626
1626
  const untrustedConfig_reply = untrustedConfig.reply;
@@ -1628,7 +1628,7 @@ function typeCheckConfig$7(untrustedConfig) {
1628
1628
  const untrustedConfig_reply_array = [];
1629
1629
  for (let i = 0, arrayLength = untrustedConfig_reply.length; i < arrayLength; i++) {
1630
1630
  const untrustedConfig_reply_item = untrustedConfig_reply[i];
1631
- const referenceEsTypeMessageRepresentationValidationError = validate$n(untrustedConfig_reply_item);
1631
+ const referenceEsTypeMessageRepresentationValidationError = validate$p(untrustedConfig_reply_item);
1632
1632
  if (referenceEsTypeMessageRepresentationValidationError === null) {
1633
1633
  untrustedConfig_reply_array.push(untrustedConfig_reply_item);
1634
1634
  }
@@ -1640,7 +1640,7 @@ function typeCheckConfig$7(untrustedConfig) {
1640
1640
  const untrustedConfig_variables_array = [];
1641
1641
  for (let i = 0, arrayLength = untrustedConfig_variables.length; i < arrayLength; i++) {
1642
1642
  const untrustedConfig_variables_item = untrustedConfig_variables[i];
1643
- const referenceVariableRepresentationValidationError = validate$m(untrustedConfig_variables_item);
1643
+ const referenceVariableRepresentationValidationError = validate$o(untrustedConfig_variables_item);
1644
1644
  if (referenceVariableRepresentationValidationError === null) {
1645
1645
  untrustedConfig_variables_array.push(untrustedConfig_variables_item);
1646
1646
  }
@@ -1649,30 +1649,30 @@ function typeCheckConfig$7(untrustedConfig) {
1649
1649
  }
1650
1650
  return config;
1651
1651
  }
1652
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1652
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1653
1653
  if (!untrustedIsObject(untrustedConfig)) {
1654
1654
  return null;
1655
1655
  }
1656
1656
  if (process.env.NODE_ENV !== 'production') {
1657
1657
  validateConfig(untrustedConfig, configPropertyNames);
1658
1658
  }
1659
- const config = typeCheckConfig$7(untrustedConfig);
1659
+ const config = typeCheckConfig$8(untrustedConfig);
1660
1660
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1661
1661
  return null;
1662
1662
  }
1663
1663
  return config;
1664
1664
  }
1665
- function buildNetworkSnapshot$7(luvio, config, options) {
1666
- const resourceParams = createResourceParams$7(config);
1667
- const request = createResourceRequest$7(resourceParams);
1665
+ function buildNetworkSnapshot$8(luvio, config, options) {
1666
+ const resourceParams = createResourceParams$8(config);
1667
+ const request = createResourceRequest$8(resourceParams);
1668
1668
  return luvio.dispatchResourceRequest(request, options)
1669
1669
  .then((response) => {
1670
1670
  return luvio.handleSuccessResponse(() => {
1671
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1671
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1672
1672
  return luvio.storeBroadcast().then(() => snapshot);
1673
1673
  }, () => {
1674
1674
  const cache = new StoreKeyMap();
1675
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1675
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1676
1676
  return cache;
1677
1677
  });
1678
1678
  }, (response) => {
@@ -1682,17 +1682,17 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1682
1682
  }
1683
1683
  const sendMessageAdapterFactory = (luvio) => {
1684
1684
  return function sendMessage(untrustedConfig) {
1685
- const config = validateAdapterConfig$7(untrustedConfig, sendMessage_ConfigPropertyNames);
1685
+ const config = validateAdapterConfig$8(untrustedConfig, sendMessage_ConfigPropertyNames);
1686
1686
  // Invalid or incomplete config
1687
1687
  if (config === null) {
1688
1688
  throw new Error('Invalid config for "sendMessage"');
1689
1689
  }
1690
- return buildNetworkSnapshot$7(luvio, config);
1690
+ return buildNetworkSnapshot$8(luvio, config);
1691
1691
  };
1692
1692
  };
1693
1693
 
1694
- const VERSION$b = "504437088c2317480c651ac05a7565b5";
1695
- function validate$h(obj, path = 'PlanTemplateRepresentation') {
1694
+ const VERSION$d = "504437088c2317480c651ac05a7565b5";
1695
+ function validate$j(obj, path = 'PlanTemplateRepresentation') {
1696
1696
  const v_error = (() => {
1697
1697
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1698
1698
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1734,10 +1734,10 @@ function validate$h(obj, path = 'PlanTemplateRepresentation') {
1734
1734
  })();
1735
1735
  return v_error === undefined ? null : v_error;
1736
1736
  }
1737
- const select$i = function PlanTemplateRepresentationSelect() {
1737
+ const select$l = function PlanTemplateRepresentationSelect() {
1738
1738
  return {
1739
1739
  kind: 'Fragment',
1740
- version: VERSION$b,
1740
+ version: VERSION$d,
1741
1741
  private: [],
1742
1742
  selections: [
1743
1743
  {
@@ -1764,7 +1764,7 @@ const select$i = function PlanTemplateRepresentationSelect() {
1764
1764
  ]
1765
1765
  };
1766
1766
  };
1767
- function equals$b(existing, incoming) {
1767
+ function equals$d(existing, incoming) {
1768
1768
  const existing_intent = existing.intent;
1769
1769
  const incoming_intent = incoming.intent;
1770
1770
  if (!(existing_intent === incoming_intent)) {
@@ -1798,9 +1798,9 @@ function equals$b(existing, incoming) {
1798
1798
  return true;
1799
1799
  }
1800
1800
 
1801
- const TTL$6 = 900000;
1802
- const VERSION$a = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1803
- function validate$g(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1801
+ const TTL$7 = 900000;
1802
+ const VERSION$c = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1803
+ function validate$i(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1804
1804
  const v_error = (() => {
1805
1805
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1806
1806
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1825,7 +1825,7 @@ function validate$g(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1825
1825
  for (let i = 0; i < obj_planTemplates.length; i++) {
1826
1826
  const obj_planTemplates_item = obj_planTemplates[i];
1827
1827
  const path_planTemplates_item = path_planTemplates + '[' + i + ']';
1828
- const referencepath_planTemplates_itemValidationError = validate$h(obj_planTemplates_item, path_planTemplates_item);
1828
+ const referencepath_planTemplates_itemValidationError = validate$j(obj_planTemplates_item, path_planTemplates_item);
1829
1829
  if (referencepath_planTemplates_itemValidationError !== null) {
1830
1830
  let message = 'Object doesn\'t match PlanTemplateRepresentation (at "' + path_planTemplates_item + '")\n';
1831
1831
  message += referencepath_planTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1835,15 +1835,15 @@ function validate$g(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1835
1835
  })();
1836
1836
  return v_error === undefined ? null : v_error;
1837
1837
  }
1838
- const RepresentationType$6 = 'RecommendedPlanTemplatesRepresentation';
1839
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1838
+ const RepresentationType$7 = 'RecommendedPlanTemplatesRepresentation';
1839
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1840
1840
  return input;
1841
1841
  }
1842
- const select$h = function RecommendedPlanTemplatesRepresentationSelect() {
1843
- const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$i();
1842
+ const select$k = function RecommendedPlanTemplatesRepresentationSelect() {
1843
+ const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$l();
1844
1844
  return {
1845
1845
  kind: 'Fragment',
1846
- version: VERSION$a,
1846
+ version: VERSION$c,
1847
1847
  private: [],
1848
1848
  selections: [
1849
1849
  {
@@ -1864,7 +1864,7 @@ const select$h = function RecommendedPlanTemplatesRepresentationSelect() {
1864
1864
  ]
1865
1865
  };
1866
1866
  };
1867
- function equals$a(existing, incoming) {
1867
+ function equals$c(existing, incoming) {
1868
1868
  const existing_isSuccess = existing.isSuccess;
1869
1869
  const incoming_isSuccess = incoming.isSuccess;
1870
1870
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -1886,7 +1886,7 @@ function equals$a(existing, incoming) {
1886
1886
  const existing_planTemplates = existing.planTemplates;
1887
1887
  const incoming_planTemplates = incoming.planTemplates;
1888
1888
  const equals_planTemplates_items = equalsArray(existing_planTemplates, incoming_planTemplates, (existing_planTemplates_item, incoming_planTemplates_item) => {
1889
- if (!(equals$b(existing_planTemplates_item, incoming_planTemplates_item))) {
1889
+ if (!(equals$d(existing_planTemplates_item, incoming_planTemplates_item))) {
1890
1890
  return false;
1891
1891
  }
1892
1892
  });
@@ -1895,44 +1895,44 @@ function equals$a(existing, incoming) {
1895
1895
  }
1896
1896
  return true;
1897
1897
  }
1898
- const ingest$6 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1898
+ const ingest$7 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1899
1899
  if (process.env.NODE_ENV !== 'production') {
1900
- const validateError = validate$g(input);
1900
+ const validateError = validate$i(input);
1901
1901
  if (validateError !== null) {
1902
1902
  throw validateError;
1903
1903
  }
1904
1904
  }
1905
1905
  const key = path.fullPath;
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);
1906
+ const ttlToUse = TTL$7;
1907
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$c, RepresentationType$7, equals$c);
1908
1908
  return createLink(key);
1909
1909
  };
1910
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1910
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1911
1911
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1912
1912
  const rootKey = fullPathFactory();
1913
1913
  rootKeySet.set(rootKey, {
1914
1914
  namespace: keyPrefix,
1915
- representationName: RepresentationType$6,
1915
+ representationName: RepresentationType$7,
1916
1916
  mergeable: false
1917
1917
  });
1918
1918
  }
1919
1919
 
1920
- function select$g(luvio, params) {
1921
- return select$h();
1920
+ function select$j(luvio, params) {
1921
+ return select$k();
1922
1922
  }
1923
- function keyBuilder$c(luvio, params) {
1923
+ function keyBuilder$e(luvio, params) {
1924
1924
  return keyPrefix + '::RecommendedPlanTemplatesRepresentation:(' + 'pageType:' + params.urlParams.pageType + ',' + 'objectType:' + params.urlParams.objectType + ')';
1925
1925
  }
1926
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1927
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
1926
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1927
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
1928
1928
  }
1929
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1929
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1930
1930
  const { body } = response;
1931
- const key = keyBuilder$c(luvio, resourceParams);
1932
- luvio.storeIngest(key, ingest$6, body);
1931
+ const key = keyBuilder$e(luvio, resourceParams);
1932
+ luvio.storeIngest(key, ingest$7, body);
1933
1933
  const snapshot = luvio.storeLookup({
1934
1934
  recordId: key,
1935
- node: select$g(),
1935
+ node: select$j(),
1936
1936
  variables: {},
1937
1937
  }, snapshotRefresh);
1938
1938
  if (process.env.NODE_ENV !== 'production') {
@@ -1943,19 +1943,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1943
1943
  deepFreeze(snapshot.data);
1944
1944
  return snapshot;
1945
1945
  }
1946
- function ingestError$5(luvio, params, error, snapshotRefresh) {
1947
- const key = keyBuilder$c(luvio, params);
1946
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
1947
+ const key = keyBuilder$e(luvio, params);
1948
1948
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1949
1949
  const storeMetadataParams = {
1950
- ttl: TTL$6,
1950
+ ttl: TTL$7,
1951
1951
  namespace: keyPrefix,
1952
- version: VERSION$a,
1953
- representationName: RepresentationType$6
1952
+ version: VERSION$c,
1953
+ representationName: RepresentationType$7
1954
1954
  };
1955
1955
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1956
1956
  return errorSnapshot;
1957
1957
  }
1958
- function createResourceRequest$6(config) {
1958
+ function createResourceRequest$7(config) {
1959
1959
  const headers = {};
1960
1960
  return {
1961
1961
  baseUri: '/services/data/v63.0',
@@ -1969,96 +1969,96 @@ function createResourceRequest$6(config) {
1969
1969
  };
1970
1970
  }
1971
1971
 
1972
- const adapterName$6 = 'getRecommendedPlanTemplates';
1972
+ const adapterName$7 = 'getRecommendedPlanTemplates';
1973
1973
  const getRecommendedPlanTemplates_ConfigPropertyMetadata = [
1974
1974
  generateParamConfigMetadata('pageType', true, 0 /* UrlParameter */, 0 /* String */),
1975
1975
  generateParamConfigMetadata('objectType', true, 0 /* UrlParameter */, 0 /* String */),
1976
1976
  ];
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);
1977
+ const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1978
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1979
+ function keyBuilder$d(luvio, config) {
1980
+ const resourceParams = createResourceParams$7(config);
1981
+ return keyBuilder$e(luvio, resourceParams);
1982
1982
  }
1983
- function typeCheckConfig$6(untrustedConfig) {
1983
+ function typeCheckConfig$7(untrustedConfig) {
1984
1984
  const config = {};
1985
- typeCheckConfig$9(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1985
+ typeCheckConfig$a(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1986
1986
  return config;
1987
1987
  }
1988
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1988
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1989
1989
  if (!untrustedIsObject(untrustedConfig)) {
1990
1990
  return null;
1991
1991
  }
1992
1992
  if (process.env.NODE_ENV !== 'production') {
1993
1993
  validateConfig(untrustedConfig, configPropertyNames);
1994
1994
  }
1995
- const config = typeCheckConfig$6(untrustedConfig);
1995
+ const config = typeCheckConfig$7(untrustedConfig);
1996
1996
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1997
1997
  return null;
1998
1998
  }
1999
1999
  return config;
2000
2000
  }
2001
- function adapterFragment$5(luvio, config) {
2002
- createResourceParams$6(config);
2003
- return select$g();
2001
+ function adapterFragment$6(luvio, config) {
2002
+ createResourceParams$7(config);
2003
+ return select$j();
2004
2004
  }
2005
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2006
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2005
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
2006
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
2007
2007
  config,
2008
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2008
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2009
2009
  });
2010
2010
  return luvio.storeBroadcast().then(() => snapshot);
2011
2011
  }
2012
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
2013
- const snapshot = ingestError$5(luvio, resourceParams, response, {
2012
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
2013
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
2014
2014
  config,
2015
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2015
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2016
2016
  });
2017
2017
  return luvio.storeBroadcast().then(() => snapshot);
2018
2018
  }
2019
- function buildNetworkSnapshot$6(luvio, config, options) {
2020
- const resourceParams = createResourceParams$6(config);
2021
- const request = createResourceRequest$6(resourceParams);
2019
+ function buildNetworkSnapshot$7(luvio, config, options) {
2020
+ const resourceParams = createResourceParams$7(config);
2021
+ const request = createResourceRequest$7(resourceParams);
2022
2022
  return luvio.dispatchResourceRequest(request, options)
2023
2023
  .then((response) => {
2024
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2024
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
2025
2025
  const cache = new StoreKeyMap();
2026
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2026
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2027
2027
  return cache;
2028
2028
  });
2029
2029
  }, (response) => {
2030
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2030
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
2031
2031
  });
2032
2032
  }
2033
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2034
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2033
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
2034
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2035
2035
  }
2036
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2036
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
2037
2037
  const { luvio, config } = context;
2038
2038
  const selector = {
2039
- recordId: keyBuilder$b(luvio, config),
2040
- node: adapterFragment$5(luvio, config),
2039
+ recordId: keyBuilder$d(luvio, config),
2040
+ node: adapterFragment$6(luvio, config),
2041
2041
  variables: {},
2042
2042
  };
2043
2043
  const cacheSnapshot = storeLookup(selector, {
2044
2044
  config,
2045
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2045
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2046
2046
  });
2047
2047
  return cacheSnapshot;
2048
2048
  }
2049
2049
  const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedPlanTemplates(untrustedConfig, requestContext) {
2050
- const config = validateAdapterConfig$6(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
2050
+ const config = validateAdapterConfig$7(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
2051
2051
  // Invalid or incomplete config
2052
2052
  if (config === null) {
2053
2053
  return null;
2054
2054
  }
2055
2055
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2056
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2056
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
2057
2057
  };
2058
2058
 
2059
- const TTL$5 = 100;
2060
- const VERSION$9 = "7454bdd46af1622eb677a9bb9eac3a8b";
2061
- function validate$f(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2059
+ const TTL$6 = 100;
2060
+ const VERSION$b = "7454bdd46af1622eb677a9bb9eac3a8b";
2061
+ function validate$h(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2062
2062
  const v_error = (() => {
2063
2063
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2064
2064
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2071,23 +2071,23 @@ function validate$f(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
2071
2071
  })();
2072
2072
  return v_error === undefined ? null : v_error;
2073
2073
  }
2074
- const RepresentationType$5 = 'CopilotLLMFeedbackOutputRepresentation';
2075
- function keyBuilder$a(luvio, config) {
2076
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
2074
+ const RepresentationType$6 = 'CopilotLLMFeedbackOutputRepresentation';
2075
+ function keyBuilder$c(luvio, config) {
2076
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
2077
2077
  }
2078
2078
  function keyBuilderFromType(luvio, object) {
2079
2079
  const keyParams = {
2080
2080
  id: object.submitFeedbackStatus
2081
2081
  };
2082
- return keyBuilder$a(luvio, keyParams);
2082
+ return keyBuilder$c(luvio, keyParams);
2083
2083
  }
2084
- function normalize$5(input, existing, path, luvio, store, timestamp) {
2084
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
2085
2085
  return input;
2086
2086
  }
2087
- const select$f = function CopilotLLMFeedbackOutputRepresentationSelect() {
2087
+ const select$i = function CopilotLLMFeedbackOutputRepresentationSelect() {
2088
2088
  return {
2089
2089
  kind: 'Fragment',
2090
- version: VERSION$9,
2090
+ version: VERSION$b,
2091
2091
  private: [],
2092
2092
  selections: [
2093
2093
  {
@@ -2097,7 +2097,7 @@ const select$f = function CopilotLLMFeedbackOutputRepresentationSelect() {
2097
2097
  ]
2098
2098
  };
2099
2099
  };
2100
- function equals$9(existing, incoming) {
2100
+ function equals$b(existing, incoming) {
2101
2101
  const existing_submitFeedbackStatus = existing.submitFeedbackStatus;
2102
2102
  const incoming_submitFeedbackStatus = incoming.submitFeedbackStatus;
2103
2103
  if (!(existing_submitFeedbackStatus === incoming_submitFeedbackStatus)) {
@@ -2105,41 +2105,41 @@ function equals$9(existing, incoming) {
2105
2105
  }
2106
2106
  return true;
2107
2107
  }
2108
- const ingest$5 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2108
+ const ingest$6 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2109
2109
  if (process.env.NODE_ENV !== 'production') {
2110
- const validateError = validate$f(input);
2110
+ const validateError = validate$h(input);
2111
2111
  if (validateError !== null) {
2112
2112
  throw validateError;
2113
2113
  }
2114
2114
  }
2115
2115
  const key = keyBuilderFromType(luvio, input);
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);
2116
+ const ttlToUse = TTL$6;
2117
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$b, RepresentationType$6, equals$b);
2118
2118
  return createLink(key);
2119
2119
  };
2120
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2120
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2121
2121
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2122
2122
  const rootKey = keyBuilderFromType(luvio, input);
2123
2123
  rootKeySet.set(rootKey, {
2124
2124
  namespace: keyPrefix,
2125
- representationName: RepresentationType$5,
2125
+ representationName: RepresentationType$6,
2126
2126
  mergeable: false
2127
2127
  });
2128
2128
  }
2129
2129
 
2130
- function select$e(luvio, params) {
2131
- return select$f();
2130
+ function select$h(luvio, params) {
2131
+ return select$i();
2132
2132
  }
2133
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2134
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
2133
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2134
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2135
2135
  }
2136
- function ingestSuccess$5(luvio, resourceParams, response) {
2136
+ function ingestSuccess$6(luvio, resourceParams, response) {
2137
2137
  const { body } = response;
2138
2138
  const key = keyBuilderFromType(luvio, body);
2139
- luvio.storeIngest(key, ingest$5, body);
2139
+ luvio.storeIngest(key, ingest$6, body);
2140
2140
  const snapshot = luvio.storeLookup({
2141
2141
  recordId: key,
2142
- node: select$e(),
2142
+ node: select$h(),
2143
2143
  variables: {},
2144
2144
  });
2145
2145
  if (process.env.NODE_ENV !== 'production') {
@@ -2150,7 +2150,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
2150
2150
  deepFreeze(snapshot.data);
2151
2151
  return snapshot;
2152
2152
  }
2153
- function createResourceRequest$5(config) {
2153
+ function createResourceRequest$6(config) {
2154
2154
  const headers = {};
2155
2155
  return {
2156
2156
  baseUri: '/services/data/v63.0',
@@ -2164,7 +2164,7 @@ function createResourceRequest$5(config) {
2164
2164
  };
2165
2165
  }
2166
2166
 
2167
- const adapterName$5 = 'submitFeedback';
2167
+ const adapterName$6 = 'submitFeedback';
2168
2168
  const submitFeedback_ConfigPropertyMetadata = [
2169
2169
  generateParamConfigMetadata('details', true, 2 /* Body */, 4 /* Unsupported */),
2170
2170
  generateParamConfigMetadata('feedback', true, 2 /* Body */, 0 /* String */),
@@ -2172,11 +2172,11 @@ const submitFeedback_ConfigPropertyMetadata = [
2172
2172
  generateParamConfigMetadata('sessionId', true, 2 /* Body */, 0 /* String */),
2173
2173
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2174
2174
  ];
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
+ const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, submitFeedback_ConfigPropertyMetadata);
2176
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(submitFeedback_ConfigPropertyMetadata);
2177
+ function typeCheckConfig$6(untrustedConfig) {
2178
2178
  const config = {};
2179
- typeCheckConfig$9(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2179
+ typeCheckConfig$a(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2180
2180
  const untrustedConfig_details = untrustedConfig.details;
2181
2181
  if (untrustedIsObject(untrustedConfig_details)) {
2182
2182
  const untrustedConfig_details_object = {};
@@ -2194,30 +2194,30 @@ function typeCheckConfig$5(untrustedConfig) {
2194
2194
  }
2195
2195
  return config;
2196
2196
  }
2197
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2197
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2198
2198
  if (!untrustedIsObject(untrustedConfig)) {
2199
2199
  return null;
2200
2200
  }
2201
2201
  if (process.env.NODE_ENV !== 'production') {
2202
2202
  validateConfig(untrustedConfig, configPropertyNames);
2203
2203
  }
2204
- const config = typeCheckConfig$5(untrustedConfig);
2204
+ const config = typeCheckConfig$6(untrustedConfig);
2205
2205
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2206
2206
  return null;
2207
2207
  }
2208
2208
  return config;
2209
2209
  }
2210
- function buildNetworkSnapshot$5(luvio, config, options) {
2211
- const resourceParams = createResourceParams$5(config);
2212
- const request = createResourceRequest$5(resourceParams);
2210
+ function buildNetworkSnapshot$6(luvio, config, options) {
2211
+ const resourceParams = createResourceParams$6(config);
2212
+ const request = createResourceRequest$6(resourceParams);
2213
2213
  return luvio.dispatchResourceRequest(request, options)
2214
2214
  .then((response) => {
2215
2215
  return luvio.handleSuccessResponse(() => {
2216
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2216
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2217
2217
  return luvio.storeBroadcast().then(() => snapshot);
2218
2218
  }, () => {
2219
2219
  const cache = new StoreKeyMap();
2220
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2220
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2221
2221
  return cache;
2222
2222
  });
2223
2223
  }, (response) => {
@@ -2227,17 +2227,17 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2227
2227
  }
2228
2228
  const submitFeedbackAdapterFactory = (luvio) => {
2229
2229
  return function submitFeedback(untrustedConfig) {
2230
- const config = validateAdapterConfig$5(untrustedConfig, submitFeedback_ConfigPropertyNames);
2230
+ const config = validateAdapterConfig$6(untrustedConfig, submitFeedback_ConfigPropertyNames);
2231
2231
  // Invalid or incomplete config
2232
2232
  if (config === null) {
2233
2233
  throw new Error('Invalid config for "submitFeedback"');
2234
2234
  }
2235
- return buildNetworkSnapshot$5(luvio, config);
2235
+ return buildNetworkSnapshot$6(luvio, config);
2236
2236
  };
2237
2237
  };
2238
2238
 
2239
- const VERSION$8 = "24d61d5f37ff09155ee4a9d90eb4fcb5";
2240
- function validate$e(obj, path = 'CopilotObjectInfoRepresentation') {
2239
+ const VERSION$a = "24d61d5f37ff09155ee4a9d90eb4fcb5";
2240
+ function validate$g(obj, path = 'CopilotObjectInfoRepresentation') {
2241
2241
  const v_error = (() => {
2242
2242
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2243
2243
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2255,10 +2255,10 @@ function validate$e(obj, path = 'CopilotObjectInfoRepresentation') {
2255
2255
  })();
2256
2256
  return v_error === undefined ? null : v_error;
2257
2257
  }
2258
- const select$d = function CopilotObjectInfoRepresentationSelect() {
2258
+ const select$g = function CopilotObjectInfoRepresentationSelect() {
2259
2259
  return {
2260
2260
  kind: 'Fragment',
2261
- version: VERSION$8,
2261
+ version: VERSION$a,
2262
2262
  private: [],
2263
2263
  selections: [
2264
2264
  {
@@ -2272,7 +2272,7 @@ const select$d = function CopilotObjectInfoRepresentationSelect() {
2272
2272
  ]
2273
2273
  };
2274
2274
  };
2275
- function equals$8(existing, incoming) {
2275
+ function equals$a(existing, incoming) {
2276
2276
  const existing_apiName = existing.apiName;
2277
2277
  const incoming_apiName = incoming.apiName;
2278
2278
  if (!(existing_apiName === incoming_apiName)) {
@@ -2286,9 +2286,9 @@ function equals$8(existing, incoming) {
2286
2286
  return true;
2287
2287
  }
2288
2288
 
2289
- const TTL$4 = 900000;
2290
- const VERSION$7 = "ca1aedcbd4e34795fadf2dcaf66e5825";
2291
- function validate$d(obj, path = 'CopilotObjectListRepresentation') {
2289
+ const TTL$5 = 900000;
2290
+ const VERSION$9 = "ca1aedcbd4e34795fadf2dcaf66e5825";
2291
+ function validate$f(obj, path = 'CopilotObjectListRepresentation') {
2292
2292
  const v_error = (() => {
2293
2293
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2294
2294
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2301,7 +2301,7 @@ function validate$d(obj, path = 'CopilotObjectListRepresentation') {
2301
2301
  for (let i = 0; i < obj_objects.length; i++) {
2302
2302
  const obj_objects_item = obj_objects[i];
2303
2303
  const path_objects_item = path_objects + '[' + i + ']';
2304
- const referencepath_objects_itemValidationError = validate$e(obj_objects_item, path_objects_item);
2304
+ const referencepath_objects_itemValidationError = validate$g(obj_objects_item, path_objects_item);
2305
2305
  if (referencepath_objects_itemValidationError !== null) {
2306
2306
  let message = 'Object doesn\'t match CopilotObjectInfoRepresentation (at "' + path_objects_item + '")\n';
2307
2307
  message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2311,15 +2311,15 @@ function validate$d(obj, path = 'CopilotObjectListRepresentation') {
2311
2311
  })();
2312
2312
  return v_error === undefined ? null : v_error;
2313
2313
  }
2314
- const RepresentationType$4 = 'CopilotObjectListRepresentation';
2315
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2314
+ const RepresentationType$5 = 'CopilotObjectListRepresentation';
2315
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2316
2316
  return input;
2317
2317
  }
2318
- const select$c = function CopilotObjectListRepresentationSelect() {
2319
- const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$d();
2318
+ const select$f = function CopilotObjectListRepresentationSelect() {
2319
+ const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$g();
2320
2320
  return {
2321
2321
  kind: 'Fragment',
2322
- version: VERSION$7,
2322
+ version: VERSION$9,
2323
2323
  private: [],
2324
2324
  selections: [
2325
2325
  {
@@ -2331,11 +2331,11 @@ const select$c = function CopilotObjectListRepresentationSelect() {
2331
2331
  ]
2332
2332
  };
2333
2333
  };
2334
- function equals$7(existing, incoming) {
2334
+ function equals$9(existing, incoming) {
2335
2335
  const existing_objects = existing.objects;
2336
2336
  const incoming_objects = incoming.objects;
2337
2337
  const equals_objects_items = equalsArray(existing_objects, incoming_objects, (existing_objects_item, incoming_objects_item) => {
2338
- if (!(equals$8(existing_objects_item, incoming_objects_item))) {
2338
+ if (!(equals$a(existing_objects_item, incoming_objects_item))) {
2339
2339
  return false;
2340
2340
  }
2341
2341
  });
@@ -2344,44 +2344,44 @@ function equals$7(existing, incoming) {
2344
2344
  }
2345
2345
  return true;
2346
2346
  }
2347
- const ingest$4 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
2347
+ const ingest$5 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
2348
2348
  if (process.env.NODE_ENV !== 'production') {
2349
- const validateError = validate$d(input);
2349
+ const validateError = validate$f(input);
2350
2350
  if (validateError !== null) {
2351
2351
  throw validateError;
2352
2352
  }
2353
2353
  }
2354
2354
  const key = path.fullPath;
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);
2355
+ const ttlToUse = TTL$5;
2356
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$9, RepresentationType$5, equals$9);
2357
2357
  return createLink(key);
2358
2358
  };
2359
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2359
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2360
2360
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2361
2361
  const rootKey = fullPathFactory();
2362
2362
  rootKeySet.set(rootKey, {
2363
2363
  namespace: keyPrefix,
2364
- representationName: RepresentationType$4,
2364
+ representationName: RepresentationType$5,
2365
2365
  mergeable: false
2366
2366
  });
2367
2367
  }
2368
2368
 
2369
- function select$b(luvio, params) {
2370
- return select$c();
2369
+ function select$e(luvio, params) {
2370
+ return select$f();
2371
2371
  }
2372
- function keyBuilder$9(luvio, params) {
2372
+ function keyBuilder$b(luvio, params) {
2373
2373
  return keyPrefix + '::CopilotObjectListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'searchTerm:' + params.queryParams.searchTerm + ')';
2374
2374
  }
2375
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2376
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
2375
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2376
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
2377
2377
  }
2378
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2378
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2379
2379
  const { body } = response;
2380
- const key = keyBuilder$9(luvio, resourceParams);
2381
- luvio.storeIngest(key, ingest$4, body);
2380
+ const key = keyBuilder$b(luvio, resourceParams);
2381
+ luvio.storeIngest(key, ingest$5, body);
2382
2382
  const snapshot = luvio.storeLookup({
2383
2383
  recordId: key,
2384
- node: select$b(),
2384
+ node: select$e(),
2385
2385
  variables: {},
2386
2386
  }, snapshotRefresh);
2387
2387
  if (process.env.NODE_ENV !== 'production') {
@@ -2392,19 +2392,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2392
2392
  deepFreeze(snapshot.data);
2393
2393
  return snapshot;
2394
2394
  }
2395
- function ingestError$4(luvio, params, error, snapshotRefresh) {
2396
- const key = keyBuilder$9(luvio, params);
2395
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
2396
+ const key = keyBuilder$b(luvio, params);
2397
2397
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2398
2398
  const storeMetadataParams = {
2399
- ttl: TTL$4,
2399
+ ttl: TTL$5,
2400
2400
  namespace: keyPrefix,
2401
- version: VERSION$7,
2402
- representationName: RepresentationType$4
2401
+ version: VERSION$9,
2402
+ representationName: RepresentationType$5
2403
2403
  };
2404
2404
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2405
2405
  return errorSnapshot;
2406
2406
  }
2407
- function createResourceRequest$4(config) {
2407
+ function createResourceRequest$5(config) {
2408
2408
  const headers = {};
2409
2409
  return {
2410
2410
  baseUri: '/services/data/v63.0',
@@ -2418,94 +2418,94 @@ function createResourceRequest$4(config) {
2418
2418
  };
2419
2419
  }
2420
2420
 
2421
- const adapterName$4 = 'getCopilotObjects';
2421
+ const adapterName$5 = 'getCopilotObjects';
2422
2422
  const getCopilotObjects_ConfigPropertyMetadata = [
2423
2423
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2424
2424
  generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
2425
2425
  ];
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);
2426
+ const getCopilotObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCopilotObjects_ConfigPropertyMetadata);
2427
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getCopilotObjects_ConfigPropertyMetadata);
2428
+ function keyBuilder$a(luvio, config) {
2429
+ const resourceParams = createResourceParams$5(config);
2430
+ return keyBuilder$b(luvio, resourceParams);
2431
2431
  }
2432
- function typeCheckConfig$4(untrustedConfig) {
2432
+ function typeCheckConfig$5(untrustedConfig) {
2433
2433
  const config = {};
2434
- typeCheckConfig$9(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
2434
+ typeCheckConfig$a(untrustedConfig, config, getCopilotObjects_ConfigPropertyMetadata);
2435
2435
  return config;
2436
2436
  }
2437
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2437
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2438
2438
  if (!untrustedIsObject(untrustedConfig)) {
2439
2439
  return null;
2440
2440
  }
2441
2441
  if (process.env.NODE_ENV !== 'production') {
2442
2442
  validateConfig(untrustedConfig, configPropertyNames);
2443
2443
  }
2444
- const config = typeCheckConfig$4(untrustedConfig);
2444
+ const config = typeCheckConfig$5(untrustedConfig);
2445
2445
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2446
2446
  return null;
2447
2447
  }
2448
2448
  return config;
2449
2449
  }
2450
- function adapterFragment$4(luvio, config) {
2451
- createResourceParams$4(config);
2452
- return select$b();
2450
+ function adapterFragment$5(luvio, config) {
2451
+ createResourceParams$5(config);
2452
+ return select$e();
2453
2453
  }
2454
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2455
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2454
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2455
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2456
2456
  config,
2457
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2457
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2458
2458
  });
2459
2459
  return luvio.storeBroadcast().then(() => snapshot);
2460
2460
  }
2461
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
2462
- const snapshot = ingestError$4(luvio, resourceParams, response, {
2461
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
2462
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
2463
2463
  config,
2464
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2464
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2465
2465
  });
2466
2466
  return luvio.storeBroadcast().then(() => snapshot);
2467
2467
  }
2468
- function buildNetworkSnapshot$4(luvio, config, options) {
2469
- const resourceParams = createResourceParams$4(config);
2470
- const request = createResourceRequest$4(resourceParams);
2468
+ function buildNetworkSnapshot$5(luvio, config, options) {
2469
+ const resourceParams = createResourceParams$5(config);
2470
+ const request = createResourceRequest$5(resourceParams);
2471
2471
  return luvio.dispatchResourceRequest(request, options)
2472
2472
  .then((response) => {
2473
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2473
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2474
2474
  const cache = new StoreKeyMap();
2475
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2475
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2476
2476
  return cache;
2477
2477
  });
2478
2478
  }, (response) => {
2479
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2479
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2480
2480
  });
2481
2481
  }
2482
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2483
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2482
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2483
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2484
2484
  }
2485
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2485
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2486
2486
  const { luvio, config } = context;
2487
2487
  const selector = {
2488
- recordId: keyBuilder$8(luvio, config),
2489
- node: adapterFragment$4(luvio, config),
2488
+ recordId: keyBuilder$a(luvio, config),
2489
+ node: adapterFragment$5(luvio, config),
2490
2490
  variables: {},
2491
2491
  };
2492
2492
  const cacheSnapshot = storeLookup(selector, {
2493
2493
  config,
2494
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2494
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2495
2495
  });
2496
2496
  return cacheSnapshot;
2497
2497
  }
2498
2498
  const getCopilotObjectsAdapterFactory = (luvio) => function einsteinCopilotBot__getCopilotObjects(untrustedConfig, requestContext) {
2499
- const config = validateAdapterConfig$4(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
2499
+ const config = validateAdapterConfig$5(untrustedConfig, getCopilotObjects_ConfigPropertyNames);
2500
2500
  // Invalid or incomplete config
2501
2501
  if (config === null) {
2502
2502
  return null;
2503
2503
  }
2504
2504
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2505
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2505
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2506
2506
  };
2507
2507
 
2508
- function validate$c(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2508
+ function validate$e(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2509
2509
  const v_error = (() => {
2510
2510
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2511
2511
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2528,7 +2528,7 @@ function validate$c(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2528
2528
  return v_error === undefined ? null : v_error;
2529
2529
  }
2530
2530
 
2531
- function validate$b(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2531
+ function validate$d(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2532
2532
  const v_error = (() => {
2533
2533
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2534
2534
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2551,7 +2551,7 @@ function validate$b(obj, path = 'FollowUpActionsRenditionConfigRepresentation')
2551
2551
  return v_error === undefined ? null : v_error;
2552
2552
  }
2553
2553
 
2554
- function validate$a(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2554
+ function validate$c(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2555
2555
  const v_error = (() => {
2556
2556
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2557
2557
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2574,7 +2574,7 @@ function validate$a(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2574
2574
  return v_error === undefined ? null : v_error;
2575
2575
  }
2576
2576
 
2577
- function validate$9(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2577
+ function validate$b(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2578
2578
  const v_error = (() => {
2579
2579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2580
2580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2582,7 +2582,7 @@ function validate$9(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2582
2582
  if (obj.filterConfig !== undefined) {
2583
2583
  const obj_filterConfig = obj.filterConfig;
2584
2584
  const path_filterConfig = path + '.filterConfig';
2585
- const referencepath_filterConfigValidationError = validate$a(obj_filterConfig, path_filterConfig);
2585
+ const referencepath_filterConfigValidationError = validate$c(obj_filterConfig, path_filterConfig);
2586
2586
  if (referencepath_filterConfigValidationError !== null) {
2587
2587
  let message = 'Object doesn\'t match FollowUpActionsFilterConfigRepresentation (at "' + path_filterConfig + '")\n';
2588
2588
  message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2600,7 +2600,7 @@ function validate$9(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2600
2600
  return v_error === undefined ? null : v_error;
2601
2601
  }
2602
2602
 
2603
- function validate$8(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2603
+ function validate$a(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2604
2604
  const v_error = (() => {
2605
2605
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2606
2606
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2623,7 +2623,7 @@ function validate$8(obj, path = 'FollowUpActionsSourceDescriptorRepresentation')
2623
2623
  return v_error === undefined ? null : v_error;
2624
2624
  }
2625
2625
 
2626
- function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2626
+ function validate$9(obj, path = 'FollowUpActionsInputRepresentation') {
2627
2627
  const v_error = (() => {
2628
2628
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2629
2629
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2636,7 +2636,7 @@ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2636
2636
  if (obj.designConfig !== undefined) {
2637
2637
  const obj_designConfig = obj.designConfig;
2638
2638
  const path_designConfig = path + '.designConfig';
2639
- const referencepath_designConfigValidationError = validate$c(obj_designConfig, path_designConfig);
2639
+ const referencepath_designConfigValidationError = validate$e(obj_designConfig, path_designConfig);
2640
2640
  if (referencepath_designConfigValidationError !== null) {
2641
2641
  let message = 'Object doesn\'t match FollowUpActionsDesignConfigRepresentation (at "' + path_designConfig + '")\n';
2642
2642
  message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2646,7 +2646,7 @@ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2646
2646
  if (obj.renditionConfig !== undefined) {
2647
2647
  const obj_renditionConfig = obj.renditionConfig;
2648
2648
  const path_renditionConfig = path + '.renditionConfig';
2649
- const referencepath_renditionConfigValidationError = validate$b(obj_renditionConfig, path_renditionConfig);
2649
+ const referencepath_renditionConfigValidationError = validate$d(obj_renditionConfig, path_renditionConfig);
2650
2650
  if (referencepath_renditionConfigValidationError !== null) {
2651
2651
  let message = 'Object doesn\'t match FollowUpActionsRenditionConfigRepresentation (at "' + path_renditionConfig + '")\n';
2652
2652
  message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2656,7 +2656,7 @@ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2656
2656
  if (obj.schemaConfig !== undefined) {
2657
2657
  const obj_schemaConfig = obj.schemaConfig;
2658
2658
  const path_schemaConfig = path + '.schemaConfig';
2659
- const referencepath_schemaConfigValidationError = validate$9(obj_schemaConfig, path_schemaConfig);
2659
+ const referencepath_schemaConfigValidationError = validate$b(obj_schemaConfig, path_schemaConfig);
2660
2660
  if (referencepath_schemaConfigValidationError !== null) {
2661
2661
  let message = 'Object doesn\'t match FollowUpActionsSchemaConfigRepresentation (at "' + path_schemaConfig + '")\n';
2662
2662
  message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2666,7 +2666,7 @@ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2666
2666
  if (obj.sourceDescriptor !== undefined) {
2667
2667
  const obj_sourceDescriptor = obj.sourceDescriptor;
2668
2668
  const path_sourceDescriptor = path + '.sourceDescriptor';
2669
- const referencepath_sourceDescriptorValidationError = validate$8(obj_sourceDescriptor, path_sourceDescriptor);
2669
+ const referencepath_sourceDescriptorValidationError = validate$a(obj_sourceDescriptor, path_sourceDescriptor);
2670
2670
  if (referencepath_sourceDescriptorValidationError !== null) {
2671
2671
  let message = 'Object doesn\'t match FollowUpActionsSourceDescriptorRepresentation (at "' + path_sourceDescriptor + '")\n';
2672
2672
  message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2677,8 +2677,8 @@ function validate$7(obj, path = 'FollowUpActionsInputRepresentation') {
2677
2677
  return v_error === undefined ? null : v_error;
2678
2678
  }
2679
2679
 
2680
- const VERSION$6 = "38e904794d03177700e02a0dbd234d01";
2681
- function validate$6(obj, path = 'FollowUpActionsRepresentation') {
2680
+ const VERSION$8 = "38e904794d03177700e02a0dbd234d01";
2681
+ function validate$8(obj, path = 'FollowUpActionsRepresentation') {
2682
2682
  const v_error = (() => {
2683
2683
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2684
2684
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2703,10 +2703,10 @@ function validate$6(obj, path = 'FollowUpActionsRepresentation') {
2703
2703
  })();
2704
2704
  return v_error === undefined ? null : v_error;
2705
2705
  }
2706
- const select$a = function FollowUpActionsRepresentationSelect() {
2706
+ const select$d = function FollowUpActionsRepresentationSelect() {
2707
2707
  return {
2708
2708
  kind: 'Fragment',
2709
- version: VERSION$6,
2709
+ version: VERSION$8,
2710
2710
  private: [],
2711
2711
  selections: [
2712
2712
  {
@@ -2727,7 +2727,7 @@ const select$a = function FollowUpActionsRepresentationSelect() {
2727
2727
  ]
2728
2728
  };
2729
2729
  };
2730
- function equals$6(existing, incoming) {
2730
+ function equals$8(existing, incoming) {
2731
2731
  const existing_descriptor = existing.descriptor;
2732
2732
  const incoming_descriptor = incoming.descriptor;
2733
2733
  // if at least one of these optionals is defined
@@ -2754,9 +2754,9 @@ function equals$6(existing, incoming) {
2754
2754
  return true;
2755
2755
  }
2756
2756
 
2757
- const TTL$3 = 900000;
2758
- const VERSION$5 = "280b43a12fefd5d1adb432fd664b7def";
2759
- function validate$5(obj, path = 'CopilotFollowUpActionsRepresentation') {
2757
+ const TTL$4 = 900000;
2758
+ const VERSION$7 = "280b43a12fefd5d1adb432fd664b7def";
2759
+ function validate$7(obj, path = 'CopilotFollowUpActionsRepresentation') {
2760
2760
  const v_error = (() => {
2761
2761
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2762
2762
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2769,7 +2769,7 @@ function validate$5(obj, path = 'CopilotFollowUpActionsRepresentation') {
2769
2769
  for (let i = 0; i < obj_actions.length; i++) {
2770
2770
  const obj_actions_item = obj_actions[i];
2771
2771
  const path_actions_item = path_actions + '[' + i + ']';
2772
- const referencepath_actions_itemValidationError = validate$6(obj_actions_item, path_actions_item);
2772
+ const referencepath_actions_itemValidationError = validate$8(obj_actions_item, path_actions_item);
2773
2773
  if (referencepath_actions_itemValidationError !== null) {
2774
2774
  let message = 'Object doesn\'t match FollowUpActionsRepresentation (at "' + path_actions_item + '")\n';
2775
2775
  message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2791,15 +2791,15 @@ function validate$5(obj, path = 'CopilotFollowUpActionsRepresentation') {
2791
2791
  })();
2792
2792
  return v_error === undefined ? null : v_error;
2793
2793
  }
2794
- const RepresentationType$3 = 'CopilotFollowUpActionsRepresentation';
2795
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2794
+ const RepresentationType$4 = 'CopilotFollowUpActionsRepresentation';
2795
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2796
2796
  return input;
2797
2797
  }
2798
- const select$9 = function CopilotFollowUpActionsRepresentationSelect() {
2799
- const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$a();
2798
+ const select$c = function CopilotFollowUpActionsRepresentationSelect() {
2799
+ const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$d();
2800
2800
  return {
2801
2801
  kind: 'Fragment',
2802
- version: VERSION$5,
2802
+ version: VERSION$7,
2803
2803
  private: [],
2804
2804
  selections: [
2805
2805
  {
@@ -2820,7 +2820,7 @@ const select$9 = function CopilotFollowUpActionsRepresentationSelect() {
2820
2820
  ]
2821
2821
  };
2822
2822
  };
2823
- function equals$5(existing, incoming) {
2823
+ function equals$7(existing, incoming) {
2824
2824
  const existing_isSuccess = existing.isSuccess;
2825
2825
  const incoming_isSuccess = incoming.isSuccess;
2826
2826
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -2842,7 +2842,7 @@ function equals$5(existing, incoming) {
2842
2842
  const existing_actions = existing.actions;
2843
2843
  const incoming_actions = incoming.actions;
2844
2844
  const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
2845
- if (!(equals$6(existing_actions_item, incoming_actions_item))) {
2845
+ if (!(equals$8(existing_actions_item, incoming_actions_item))) {
2846
2846
  return false;
2847
2847
  }
2848
2848
  });
@@ -2851,44 +2851,44 @@ function equals$5(existing, incoming) {
2851
2851
  }
2852
2852
  return true;
2853
2853
  }
2854
- const ingest$3 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2854
+ const ingest$4 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2855
2855
  if (process.env.NODE_ENV !== 'production') {
2856
- const validateError = validate$5(input);
2856
+ const validateError = validate$7(input);
2857
2857
  if (validateError !== null) {
2858
2858
  throw validateError;
2859
2859
  }
2860
2860
  }
2861
2861
  const key = path.fullPath;
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);
2862
+ const ttlToUse = TTL$4;
2863
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$7, RepresentationType$4, equals$7);
2864
2864
  return createLink(key);
2865
2865
  };
2866
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2866
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2867
2867
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2868
2868
  const rootKey = fullPathFactory();
2869
2869
  rootKeySet.set(rootKey, {
2870
2870
  namespace: keyPrefix,
2871
- representationName: RepresentationType$3,
2871
+ representationName: RepresentationType$4,
2872
2872
  mergeable: false
2873
2873
  });
2874
2874
  }
2875
2875
 
2876
- function select$8(luvio, params) {
2877
- return select$9();
2876
+ function select$b(luvio, params) {
2877
+ return select$c();
2878
2878
  }
2879
- function keyBuilder$7(luvio, params) {
2879
+ function keyBuilder$9(luvio, params) {
2880
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(',') + ']' + ')';
2881
2881
  }
2882
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2883
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
2882
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2883
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
2884
2884
  }
2885
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2885
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2886
2886
  const { body } = response;
2887
- const key = keyBuilder$7(luvio, resourceParams);
2888
- luvio.storeIngest(key, ingest$3, body);
2887
+ const key = keyBuilder$9(luvio, resourceParams);
2888
+ luvio.storeIngest(key, ingest$4, body);
2889
2889
  const snapshot = luvio.storeLookup({
2890
2890
  recordId: key,
2891
- node: select$8(),
2891
+ node: select$b(),
2892
2892
  variables: {},
2893
2893
  }, snapshotRefresh);
2894
2894
  if (process.env.NODE_ENV !== 'production') {
@@ -2899,19 +2899,19 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2899
2899
  deepFreeze(snapshot.data);
2900
2900
  return snapshot;
2901
2901
  }
2902
- function ingestError$3(luvio, params, error, snapshotRefresh) {
2903
- const key = keyBuilder$7(luvio, params);
2902
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2903
+ const key = keyBuilder$9(luvio, params);
2904
2904
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2905
2905
  const storeMetadataParams = {
2906
- ttl: TTL$3,
2906
+ ttl: TTL$4,
2907
2907
  namespace: keyPrefix,
2908
- version: VERSION$5,
2909
- representationName: RepresentationType$3
2908
+ version: VERSION$7,
2909
+ representationName: RepresentationType$4
2910
2910
  };
2911
2911
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2912
2912
  return errorSnapshot;
2913
2913
  }
2914
- function createResourceRequest$3(config) {
2914
+ function createResourceRequest$4(config) {
2915
2915
  const headers = {};
2916
2916
  return {
2917
2917
  baseUri: '/services/data/v63.0',
@@ -2925,26 +2925,26 @@ function createResourceRequest$3(config) {
2925
2925
  };
2926
2926
  }
2927
2927
 
2928
- const adapterName$3 = 'getFollowUpActions';
2928
+ const adapterName$4 = 'getFollowUpActions';
2929
2929
  const getFollowUpActions_ConfigPropertyMetadata = [
2930
2930
  generateParamConfigMetadata('language', false, 2 /* Body */, 0 /* String */),
2931
2931
  generateParamConfigMetadata('followUpActionsInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
2932
2932
  ];
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);
2933
+ const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFollowUpActions_ConfigPropertyMetadata);
2934
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getFollowUpActions_ConfigPropertyMetadata);
2935
+ function keyBuilder$8(luvio, config) {
2936
+ const resourceParams = createResourceParams$4(config);
2937
+ return keyBuilder$9(luvio, resourceParams);
2938
2938
  }
2939
- function typeCheckConfig$3(untrustedConfig) {
2939
+ function typeCheckConfig$4(untrustedConfig) {
2940
2940
  const config = {};
2941
- typeCheckConfig$9(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2941
+ typeCheckConfig$a(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2942
2942
  const untrustedConfig_followUpActionsInputs = untrustedConfig.followUpActionsInputs;
2943
2943
  if (ArrayIsArray$1(untrustedConfig_followUpActionsInputs)) {
2944
2944
  const untrustedConfig_followUpActionsInputs_array = [];
2945
2945
  for (let i = 0, arrayLength = untrustedConfig_followUpActionsInputs.length; i < arrayLength; i++) {
2946
2946
  const untrustedConfig_followUpActionsInputs_item = untrustedConfig_followUpActionsInputs[i];
2947
- const referenceFollowUpActionsInputRepresentationValidationError = validate$7(untrustedConfig_followUpActionsInputs_item);
2947
+ const referenceFollowUpActionsInputRepresentationValidationError = validate$9(untrustedConfig_followUpActionsInputs_item);
2948
2948
  if (referenceFollowUpActionsInputRepresentationValidationError === null) {
2949
2949
  untrustedConfig_followUpActionsInputs_array.push(untrustedConfig_followUpActionsInputs_item);
2950
2950
  }
@@ -2953,80 +2953,80 @@ function typeCheckConfig$3(untrustedConfig) {
2953
2953
  }
2954
2954
  return config;
2955
2955
  }
2956
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2956
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2957
2957
  if (!untrustedIsObject(untrustedConfig)) {
2958
2958
  return null;
2959
2959
  }
2960
2960
  if (process.env.NODE_ENV !== 'production') {
2961
2961
  validateConfig(untrustedConfig, configPropertyNames);
2962
2962
  }
2963
- const config = typeCheckConfig$3(untrustedConfig);
2963
+ const config = typeCheckConfig$4(untrustedConfig);
2964
2964
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2965
2965
  return null;
2966
2966
  }
2967
2967
  return config;
2968
2968
  }
2969
- function adapterFragment$3(luvio, config) {
2970
- createResourceParams$3(config);
2971
- return select$8();
2969
+ function adapterFragment$4(luvio, config) {
2970
+ createResourceParams$4(config);
2971
+ return select$b();
2972
2972
  }
2973
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2974
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2973
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2974
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2975
2975
  config,
2976
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2976
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2977
2977
  });
2978
2978
  return luvio.storeBroadcast().then(() => snapshot);
2979
2979
  }
2980
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
2981
- const snapshot = ingestError$3(luvio, resourceParams, response, {
2980
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2981
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2982
2982
  config,
2983
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2983
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2984
2984
  });
2985
2985
  return luvio.storeBroadcast().then(() => snapshot);
2986
2986
  }
2987
- function buildNetworkSnapshot$3(luvio, config, options) {
2988
- const resourceParams = createResourceParams$3(config);
2989
- const request = createResourceRequest$3(resourceParams);
2987
+ function buildNetworkSnapshot$4(luvio, config, options) {
2988
+ const resourceParams = createResourceParams$4(config);
2989
+ const request = createResourceRequest$4(resourceParams);
2990
2990
  return luvio.dispatchResourceRequest(request, options)
2991
2991
  .then((response) => {
2992
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2992
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2993
2993
  const cache = new StoreKeyMap();
2994
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2994
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2995
2995
  return cache;
2996
2996
  });
2997
2997
  }, (response) => {
2998
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2998
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2999
2999
  });
3000
3000
  }
3001
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3002
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
3001
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3002
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
3003
3003
  }
3004
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3004
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
3005
3005
  const { luvio, config } = context;
3006
3006
  const selector = {
3007
- recordId: keyBuilder$6(luvio, config),
3008
- node: adapterFragment$3(luvio, config),
3007
+ recordId: keyBuilder$8(luvio, config),
3008
+ node: adapterFragment$4(luvio, config),
3009
3009
  variables: {},
3010
3010
  };
3011
3011
  const cacheSnapshot = storeLookup(selector, {
3012
3012
  config,
3013
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3013
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3014
3014
  });
3015
3015
  return cacheSnapshot;
3016
3016
  }
3017
3017
  const getFollowUpActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getFollowUpActions(untrustedConfig, requestContext) {
3018
- const config = validateAdapterConfig$3(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
3018
+ const config = validateAdapterConfig$4(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
3019
3019
  // Invalid or incomplete config
3020
3020
  if (config === null) {
3021
3021
  return null;
3022
3022
  }
3023
3023
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3024
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3024
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
3025
3025
  };
3026
3026
 
3027
- const TTL$2 = 100;
3028
- const VERSION$4 = "240cfec5fc3a3d994da444a2dfa1eca4";
3029
- function validate$4(obj, path = 'RecommendedUtterancesRepresentation') {
3027
+ const TTL$3 = 100;
3028
+ const VERSION$6 = "240cfec5fc3a3d994da444a2dfa1eca4";
3029
+ function validate$6(obj, path = 'RecommendedUtterancesRepresentation') {
3030
3030
  const v_error = (() => {
3031
3031
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3032
3032
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3058,14 +3058,14 @@ function validate$4(obj, path = 'RecommendedUtterancesRepresentation') {
3058
3058
  })();
3059
3059
  return v_error === undefined ? null : v_error;
3060
3060
  }
3061
- const RepresentationType$2 = 'RecommendedUtterancesRepresentation';
3062
- function normalize$2(input, existing, path, luvio, store, timestamp) {
3061
+ const RepresentationType$3 = 'RecommendedUtterancesRepresentation';
3062
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
3063
3063
  return input;
3064
3064
  }
3065
- const select$7 = function RecommendedUtterancesRepresentationSelect() {
3065
+ const select$a = function RecommendedUtterancesRepresentationSelect() {
3066
3066
  return {
3067
3067
  kind: 'Fragment',
3068
- version: VERSION$4,
3068
+ version: VERSION$6,
3069
3069
  private: [],
3070
3070
  selections: [
3071
3071
  {
@@ -3085,7 +3085,7 @@ const select$7 = function RecommendedUtterancesRepresentationSelect() {
3085
3085
  ]
3086
3086
  };
3087
3087
  };
3088
- function equals$4(existing, incoming) {
3088
+ function equals$6(existing, incoming) {
3089
3089
  const existing_isSuccess = existing.isSuccess;
3090
3090
  const incoming_isSuccess = incoming.isSuccess;
3091
3091
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -3116,44 +3116,44 @@ function equals$4(existing, incoming) {
3116
3116
  }
3117
3117
  return true;
3118
3118
  }
3119
- const ingest$2 = function RecommendedUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
3119
+ const ingest$3 = function RecommendedUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
3120
3120
  if (process.env.NODE_ENV !== 'production') {
3121
- const validateError = validate$4(input);
3121
+ const validateError = validate$6(input);
3122
3122
  if (validateError !== null) {
3123
3123
  throw validateError;
3124
3124
  }
3125
3125
  }
3126
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);
3127
+ const ttlToUse = TTL$3;
3128
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$6, RepresentationType$3, equals$6);
3129
3129
  return createLink(key);
3130
3130
  };
3131
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3131
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3132
3132
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3133
3133
  const rootKey = fullPathFactory();
3134
3134
  rootKeySet.set(rootKey, {
3135
3135
  namespace: keyPrefix,
3136
- representationName: RepresentationType$2,
3136
+ representationName: RepresentationType$3,
3137
3137
  mergeable: false
3138
3138
  });
3139
3139
  }
3140
3140
 
3141
- function select$6(luvio, params) {
3142
- return select$7();
3141
+ function select$9(luvio, params) {
3142
+ return select$a();
3143
3143
  }
3144
- function keyBuilder$5(luvio, params) {
3144
+ function keyBuilder$7(luvio, params) {
3145
3145
  return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
3146
3146
  }
3147
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3148
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
3147
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3148
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
3149
3149
  }
3150
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3150
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
3151
3151
  const { body } = response;
3152
- const key = keyBuilder$5(luvio, resourceParams);
3153
- luvio.storeIngest(key, ingest$2, body);
3152
+ const key = keyBuilder$7(luvio, resourceParams);
3153
+ luvio.storeIngest(key, ingest$3, body);
3154
3154
  const snapshot = luvio.storeLookup({
3155
3155
  recordId: key,
3156
- node: select$6(),
3156
+ node: select$9(),
3157
3157
  variables: {},
3158
3158
  }, snapshotRefresh);
3159
3159
  if (process.env.NODE_ENV !== 'production') {
@@ -3164,19 +3164,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3164
3164
  deepFreeze(snapshot.data);
3165
3165
  return snapshot;
3166
3166
  }
3167
- function ingestError$2(luvio, params, error, snapshotRefresh) {
3168
- const key = keyBuilder$5(luvio, params);
3167
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
3168
+ const key = keyBuilder$7(luvio, params);
3169
3169
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3170
3170
  const storeMetadataParams = {
3171
- ttl: TTL$2,
3171
+ ttl: TTL$3,
3172
3172
  namespace: keyPrefix,
3173
- version: VERSION$4,
3174
- representationName: RepresentationType$2
3173
+ version: VERSION$6,
3174
+ representationName: RepresentationType$3
3175
3175
  };
3176
3176
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3177
3177
  return errorSnapshot;
3178
3178
  }
3179
- function createResourceRequest$2(config) {
3179
+ function createResourceRequest$3(config) {
3180
3180
  const headers = {};
3181
3181
  return {
3182
3182
  baseUri: '/services/data/v63.0',
@@ -3190,94 +3190,94 @@ function createResourceRequest$2(config) {
3190
3190
  };
3191
3191
  }
3192
3192
 
3193
- const adapterName$2 = 'getRecommendedUtterances';
3193
+ const adapterName$3 = 'getRecommendedUtterances';
3194
3194
  const getRecommendedUtterances_ConfigPropertyMetadata = [
3195
3195
  generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3196
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);
3197
+ const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedUtterances_ConfigPropertyMetadata);
3198
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getRecommendedUtterances_ConfigPropertyMetadata);
3199
+ function keyBuilder$6(luvio, config) {
3200
+ const resourceParams = createResourceParams$3(config);
3201
+ return keyBuilder$7(luvio, resourceParams);
3202
3202
  }
3203
- function typeCheckConfig$2(untrustedConfig) {
3203
+ function typeCheckConfig$3(untrustedConfig) {
3204
3204
  const config = {};
3205
- typeCheckConfig$9(untrustedConfig, config, getRecommendedUtterances_ConfigPropertyMetadata);
3205
+ typeCheckConfig$a(untrustedConfig, config, getRecommendedUtterances_ConfigPropertyMetadata);
3206
3206
  return config;
3207
3207
  }
3208
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3208
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
3209
3209
  if (!untrustedIsObject(untrustedConfig)) {
3210
3210
  return null;
3211
3211
  }
3212
3212
  if (process.env.NODE_ENV !== 'production') {
3213
3213
  validateConfig(untrustedConfig, configPropertyNames);
3214
3214
  }
3215
- const config = typeCheckConfig$2(untrustedConfig);
3215
+ const config = typeCheckConfig$3(untrustedConfig);
3216
3216
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3217
3217
  return null;
3218
3218
  }
3219
3219
  return config;
3220
3220
  }
3221
- function adapterFragment$2(luvio, config) {
3222
- createResourceParams$2(config);
3223
- return select$6();
3221
+ function adapterFragment$3(luvio, config) {
3222
+ createResourceParams$3(config);
3223
+ return select$9();
3224
3224
  }
3225
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3226
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3225
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
3226
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
3227
3227
  config,
3228
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3228
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3229
3229
  });
3230
3230
  return luvio.storeBroadcast().then(() => snapshot);
3231
3231
  }
3232
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
3233
- const snapshot = ingestError$2(luvio, resourceParams, response, {
3232
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
3233
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
3234
3234
  config,
3235
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3235
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3236
3236
  });
3237
3237
  return luvio.storeBroadcast().then(() => snapshot);
3238
3238
  }
3239
- function buildNetworkSnapshot$2(luvio, config, options) {
3240
- const resourceParams = createResourceParams$2(config);
3241
- const request = createResourceRequest$2(resourceParams);
3239
+ function buildNetworkSnapshot$3(luvio, config, options) {
3240
+ const resourceParams = createResourceParams$3(config);
3241
+ const request = createResourceRequest$3(resourceParams);
3242
3242
  return luvio.dispatchResourceRequest(request, options)
3243
3243
  .then((response) => {
3244
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3244
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
3245
3245
  const cache = new StoreKeyMap();
3246
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3246
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
3247
3247
  return cache;
3248
3248
  });
3249
3249
  }, (response) => {
3250
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
3250
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
3251
3251
  });
3252
3252
  }
3253
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3254
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3253
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3254
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3255
3255
  }
3256
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3256
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3257
3257
  const { luvio, config } = context;
3258
3258
  const selector = {
3259
- recordId: keyBuilder$4(luvio, config),
3260
- node: adapterFragment$2(luvio, config),
3259
+ recordId: keyBuilder$6(luvio, config),
3260
+ node: adapterFragment$3(luvio, config),
3261
3261
  variables: {},
3262
3262
  };
3263
3263
  const cacheSnapshot = storeLookup(selector, {
3264
3264
  config,
3265
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3265
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3266
3266
  });
3267
3267
  return cacheSnapshot;
3268
3268
  }
3269
3269
  const getRecommendedUtterancesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedUtterances(untrustedConfig, requestContext) {
3270
- const config = validateAdapterConfig$2(untrustedConfig, getRecommendedUtterances_ConfigPropertyNames);
3270
+ const config = validateAdapterConfig$3(untrustedConfig, getRecommendedUtterances_ConfigPropertyNames);
3271
3271
  // Invalid or incomplete config
3272
3272
  if (config === null) {
3273
3273
  return null;
3274
3274
  }
3275
3275
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3276
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
3276
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3277
3277
  };
3278
3278
 
3279
- const VERSION$3 = "3d8b52828ddd11f23f898b0bba8db802";
3280
- function validate$3(obj, path = 'CopilotQuickActionRepresentation') {
3279
+ const VERSION$5 = "3d8b52828ddd11f23f898b0bba8db802";
3280
+ function validate$5(obj, path = 'CopilotQuickActionRepresentation') {
3281
3281
  const v_error = (() => {
3282
3282
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3283
3283
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3399,10 +3399,10 @@ function validate$3(obj, path = 'CopilotQuickActionRepresentation') {
3399
3399
  })();
3400
3400
  return v_error === undefined ? null : v_error;
3401
3401
  }
3402
- const select$5 = function CopilotQuickActionRepresentationSelect() {
3402
+ const select$8 = function CopilotQuickActionRepresentationSelect() {
3403
3403
  return {
3404
3404
  kind: 'Fragment',
3405
- version: VERSION$3,
3405
+ version: VERSION$5,
3406
3406
  private: [],
3407
3407
  selections: [
3408
3408
  {
@@ -3484,7 +3484,7 @@ const select$5 = function CopilotQuickActionRepresentationSelect() {
3484
3484
  ]
3485
3485
  };
3486
3486
  };
3487
- function equals$3(existing, incoming) {
3487
+ function equals$5(existing, incoming) {
3488
3488
  const existing_isGlobal = existing.isGlobal;
3489
3489
  const incoming_isGlobal = incoming.isGlobal;
3490
3490
  // if at least one of these optionals is defined
@@ -3688,9 +3688,9 @@ function equals$3(existing, incoming) {
3688
3688
  return true;
3689
3689
  }
3690
3690
 
3691
- const TTL$1 = 900000;
3692
- const VERSION$2 = "122e61b0db6dc38d244a87570efc5522";
3693
- function validate$2(obj, path = 'RecommendedActionsRepresentation') {
3691
+ const TTL$2 = 900000;
3692
+ const VERSION$4 = "122e61b0db6dc38d244a87570efc5522";
3693
+ function validate$4(obj, path = 'RecommendedActionsRepresentation') {
3694
3694
  const v_error = (() => {
3695
3695
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3696
3696
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3703,7 +3703,7 @@ function validate$2(obj, path = 'RecommendedActionsRepresentation') {
3703
3703
  for (let i = 0; i < obj_copilotQuickActions.length; i++) {
3704
3704
  const obj_copilotQuickActions_item = obj_copilotQuickActions[i];
3705
3705
  const path_copilotQuickActions_item = path_copilotQuickActions + '[' + i + ']';
3706
- const referencepath_copilotQuickActions_itemValidationError = validate$3(obj_copilotQuickActions_item, path_copilotQuickActions_item);
3706
+ const referencepath_copilotQuickActions_itemValidationError = validate$5(obj_copilotQuickActions_item, path_copilotQuickActions_item);
3707
3707
  if (referencepath_copilotQuickActions_itemValidationError !== null) {
3708
3708
  let message = 'Object doesn\'t match CopilotQuickActionRepresentation (at "' + path_copilotQuickActions_item + '")\n';
3709
3709
  message += referencepath_copilotQuickActions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3725,15 +3725,15 @@ function validate$2(obj, path = 'RecommendedActionsRepresentation') {
3725
3725
  })();
3726
3726
  return v_error === undefined ? null : v_error;
3727
3727
  }
3728
- const RepresentationType$1 = 'RecommendedActionsRepresentation';
3729
- function normalize$1(input, existing, path, luvio, store, timestamp) {
3728
+ const RepresentationType$2 = 'RecommendedActionsRepresentation';
3729
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
3730
3730
  return input;
3731
3731
  }
3732
- const select$4 = function RecommendedActionsRepresentationSelect() {
3733
- const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$5();
3732
+ const select$7 = function RecommendedActionsRepresentationSelect() {
3733
+ const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$8();
3734
3734
  return {
3735
3735
  kind: 'Fragment',
3736
- version: VERSION$2,
3736
+ version: VERSION$4,
3737
3737
  private: [],
3738
3738
  selections: [
3739
3739
  {
@@ -3754,7 +3754,7 @@ const select$4 = function RecommendedActionsRepresentationSelect() {
3754
3754
  ]
3755
3755
  };
3756
3756
  };
3757
- function equals$2(existing, incoming) {
3757
+ function equals$4(existing, incoming) {
3758
3758
  const existing_isSuccess = existing.isSuccess;
3759
3759
  const incoming_isSuccess = incoming.isSuccess;
3760
3760
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -3776,7 +3776,7 @@ function equals$2(existing, incoming) {
3776
3776
  const existing_copilotQuickActions = existing.copilotQuickActions;
3777
3777
  const incoming_copilotQuickActions = incoming.copilotQuickActions;
3778
3778
  const equals_copilotQuickActions_items = equalsArray(existing_copilotQuickActions, incoming_copilotQuickActions, (existing_copilotQuickActions_item, incoming_copilotQuickActions_item) => {
3779
- if (!(equals$3(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
3779
+ if (!(equals$5(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
3780
3780
  return false;
3781
3781
  }
3782
3782
  });
@@ -3785,44 +3785,44 @@ function equals$2(existing, incoming) {
3785
3785
  }
3786
3786
  return true;
3787
3787
  }
3788
- const ingest$1 = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
3788
+ const ingest$2 = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
3789
3789
  if (process.env.NODE_ENV !== 'production') {
3790
- const validateError = validate$2(input);
3790
+ const validateError = validate$4(input);
3791
3791
  if (validateError !== null) {
3792
3792
  throw validateError;
3793
3793
  }
3794
3794
  }
3795
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);
3796
+ const ttlToUse = TTL$2;
3797
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$4, RepresentationType$2, equals$4);
3798
3798
  return createLink(key);
3799
3799
  };
3800
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3800
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3801
3801
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3802
3802
  const rootKey = fullPathFactory();
3803
3803
  rootKeySet.set(rootKey, {
3804
3804
  namespace: keyPrefix,
3805
- representationName: RepresentationType$1,
3805
+ representationName: RepresentationType$2,
3806
3806
  mergeable: false
3807
3807
  });
3808
3808
  }
3809
3809
 
3810
- function select$3(luvio, params) {
3811
- return select$4();
3810
+ function select$6(luvio, params) {
3811
+ return select$7();
3812
3812
  }
3813
- function keyBuilder$3(luvio, params) {
3813
+ function keyBuilder$5(luvio, params) {
3814
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
3815
  }
3816
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3817
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
3816
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3817
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
3818
3818
  }
3819
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3819
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3820
3820
  const { body } = response;
3821
- const key = keyBuilder$3(luvio, resourceParams);
3822
- luvio.storeIngest(key, ingest$1, body);
3821
+ const key = keyBuilder$5(luvio, resourceParams);
3822
+ luvio.storeIngest(key, ingest$2, body);
3823
3823
  const snapshot = luvio.storeLookup({
3824
3824
  recordId: key,
3825
- node: select$3(),
3825
+ node: select$6(),
3826
3826
  variables: {},
3827
3827
  }, snapshotRefresh);
3828
3828
  if (process.env.NODE_ENV !== 'production') {
@@ -3833,19 +3833,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3833
3833
  deepFreeze(snapshot.data);
3834
3834
  return snapshot;
3835
3835
  }
3836
- function ingestError$1(luvio, params, error, snapshotRefresh) {
3837
- const key = keyBuilder$3(luvio, params);
3836
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
3837
+ const key = keyBuilder$5(luvio, params);
3838
3838
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3839
3839
  const storeMetadataParams = {
3840
- ttl: TTL$1,
3840
+ ttl: TTL$2,
3841
3841
  namespace: keyPrefix,
3842
- version: VERSION$2,
3843
- representationName: RepresentationType$1
3842
+ version: VERSION$4,
3843
+ representationName: RepresentationType$2
3844
3844
  };
3845
3845
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3846
3846
  return errorSnapshot;
3847
3847
  }
3848
- function createResourceRequest$1(config) {
3848
+ function createResourceRequest$2(config) {
3849
3849
  const headers = {};
3850
3850
  return {
3851
3851
  baseUri: '/services/data/v63.0',
@@ -3859,7 +3859,7 @@ function createResourceRequest$1(config) {
3859
3859
  };
3860
3860
  }
3861
3861
 
3862
- const adapterName$1 = 'getRecommendedActions';
3862
+ const adapterName$2 = 'getRecommendedActions';
3863
3863
  const getRecommendedActions_ConfigPropertyMetadata = [
3864
3864
  generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
3865
3865
  generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
@@ -3869,90 +3869,90 @@ const getRecommendedActions_ConfigPropertyMetadata = [
3869
3869
  generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
3870
3870
  generateParamConfigMetadata('formFactor', true, 1 /* QueryParameter */, 0 /* String */),
3871
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);
3872
+ const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getRecommendedActions_ConfigPropertyMetadata);
3873
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getRecommendedActions_ConfigPropertyMetadata);
3874
+ function keyBuilder$4(luvio, config) {
3875
+ const resourceParams = createResourceParams$2(config);
3876
+ return keyBuilder$5(luvio, resourceParams);
3877
3877
  }
3878
- function typeCheckConfig$1(untrustedConfig) {
3878
+ function typeCheckConfig$2(untrustedConfig) {
3879
3879
  const config = {};
3880
- typeCheckConfig$9(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
3880
+ typeCheckConfig$a(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
3881
3881
  return config;
3882
3882
  }
3883
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3883
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3884
3884
  if (!untrustedIsObject(untrustedConfig)) {
3885
3885
  return null;
3886
3886
  }
3887
3887
  if (process.env.NODE_ENV !== 'production') {
3888
3888
  validateConfig(untrustedConfig, configPropertyNames);
3889
3889
  }
3890
- const config = typeCheckConfig$1(untrustedConfig);
3890
+ const config = typeCheckConfig$2(untrustedConfig);
3891
3891
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3892
3892
  return null;
3893
3893
  }
3894
3894
  return config;
3895
3895
  }
3896
- function adapterFragment$1(luvio, config) {
3897
- createResourceParams$1(config);
3898
- return select$3();
3896
+ function adapterFragment$2(luvio, config) {
3897
+ createResourceParams$2(config);
3898
+ return select$6();
3899
3899
  }
3900
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
3901
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
3900
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3901
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3902
3902
  config,
3903
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3903
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3904
3904
  });
3905
3905
  return luvio.storeBroadcast().then(() => snapshot);
3906
3906
  }
3907
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
3908
- const snapshot = ingestError$1(luvio, resourceParams, response, {
3907
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
3908
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
3909
3909
  config,
3910
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3910
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3911
3911
  });
3912
3912
  return luvio.storeBroadcast().then(() => snapshot);
3913
3913
  }
3914
- function buildNetworkSnapshot$1(luvio, config, options) {
3915
- const resourceParams = createResourceParams$1(config);
3916
- const request = createResourceRequest$1(resourceParams);
3914
+ function buildNetworkSnapshot$2(luvio, config, options) {
3915
+ const resourceParams = createResourceParams$2(config);
3916
+ const request = createResourceRequest$2(resourceParams);
3917
3917
  return luvio.dispatchResourceRequest(request, options)
3918
3918
  .then((response) => {
3919
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3919
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3920
3920
  const cache = new StoreKeyMap();
3921
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3921
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3922
3922
  return cache;
3923
3923
  });
3924
3924
  }, (response) => {
3925
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
3925
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
3926
3926
  });
3927
3927
  }
3928
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3929
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3928
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3929
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3930
3930
  }
3931
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3931
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3932
3932
  const { luvio, config } = context;
3933
3933
  const selector = {
3934
- recordId: keyBuilder$2(luvio, config),
3935
- node: adapterFragment$1(luvio, config),
3934
+ recordId: keyBuilder$4(luvio, config),
3935
+ node: adapterFragment$2(luvio, config),
3936
3936
  variables: {},
3937
3937
  };
3938
3938
  const cacheSnapshot = storeLookup(selector, {
3939
3939
  config,
3940
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3940
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3941
3941
  });
3942
3942
  return cacheSnapshot;
3943
3943
  }
3944
3944
  const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedActions(untrustedConfig, requestContext) {
3945
- const config = validateAdapterConfig$1(untrustedConfig, getRecommendedActions_ConfigPropertyNames);
3945
+ const config = validateAdapterConfig$2(untrustedConfig, getRecommendedActions_ConfigPropertyNames);
3946
3946
  // Invalid or incomplete config
3947
3947
  if (config === null) {
3948
3948
  return null;
3949
3949
  }
3950
3950
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3951
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3951
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
3952
3952
  };
3953
3953
 
3954
- const VERSION$1 = "7b8f676098deb92fdb92955fba2e6805";
3955
- function validate$1(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation') {
3954
+ const VERSION$3 = "7b8f676098deb92fdb92955fba2e6805";
3955
+ function validate$3(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation') {
3956
3956
  const v_error = (() => {
3957
3957
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3958
3958
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3977,10 +3977,10 @@ function validate$1(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation')
3977
3977
  })();
3978
3978
  return v_error === undefined ? null : v_error;
3979
3979
  }
3980
- const select$2 = function WelcomeTopicSuggestedUtterancesRepresentationSelect() {
3980
+ const select$5 = function WelcomeTopicSuggestedUtterancesRepresentationSelect() {
3981
3981
  return {
3982
3982
  kind: 'Fragment',
3983
- version: VERSION$1,
3983
+ version: VERSION$3,
3984
3984
  private: [],
3985
3985
  selections: [
3986
3986
  {
@@ -3995,7 +3995,7 @@ const select$2 = function WelcomeTopicSuggestedUtterancesRepresentationSelect()
3995
3995
  ]
3996
3996
  };
3997
3997
  };
3998
- function equals$1(existing, incoming) {
3998
+ function equals$3(existing, incoming) {
3999
3999
  const existing_topicApiName = existing.topicApiName;
4000
4000
  const incoming_topicApiName = incoming.topicApiName;
4001
4001
  if (!(existing_topicApiName === incoming_topicApiName)) {
@@ -4014,9 +4014,9 @@ function equals$1(existing, incoming) {
4014
4014
  return true;
4015
4015
  }
4016
4016
 
4017
- const TTL = 100;
4018
- const VERSION = "5563352486e852506e175069aef4b290";
4019
- function validate(obj, path = 'WelcomeUtterancesRepresentation') {
4017
+ const TTL$1 = 100;
4018
+ const VERSION$2 = "5563352486e852506e175069aef4b290";
4019
+ function validate$2(obj, path = 'WelcomeUtterancesRepresentation') {
4020
4020
  const v_error = (() => {
4021
4021
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4022
4022
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4041,7 +4041,7 @@ function validate(obj, path = 'WelcomeUtterancesRepresentation') {
4041
4041
  for (let i = 0; i < obj_topicsAndSuggestedUtterances.length; i++) {
4042
4042
  const obj_topicsAndSuggestedUtterances_item = obj_topicsAndSuggestedUtterances[i];
4043
4043
  const path_topicsAndSuggestedUtterances_item = path_topicsAndSuggestedUtterances + '[' + i + ']';
4044
- const referencepath_topicsAndSuggestedUtterances_itemValidationError = validate$1(obj_topicsAndSuggestedUtterances_item, path_topicsAndSuggestedUtterances_item);
4044
+ const referencepath_topicsAndSuggestedUtterances_itemValidationError = validate$3(obj_topicsAndSuggestedUtterances_item, path_topicsAndSuggestedUtterances_item);
4045
4045
  if (referencepath_topicsAndSuggestedUtterances_itemValidationError !== null) {
4046
4046
  let message = 'Object doesn\'t match WelcomeTopicSuggestedUtterancesRepresentation (at "' + path_topicsAndSuggestedUtterances_item + '")\n';
4047
4047
  message += referencepath_topicsAndSuggestedUtterances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4051,15 +4051,15 @@ function validate(obj, path = 'WelcomeUtterancesRepresentation') {
4051
4051
  })();
4052
4052
  return v_error === undefined ? null : v_error;
4053
4053
  }
4054
- const RepresentationType = 'WelcomeUtterancesRepresentation';
4055
- function normalize(input, existing, path, luvio, store, timestamp) {
4054
+ const RepresentationType$1 = 'WelcomeUtterancesRepresentation';
4055
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
4056
4056
  return input;
4057
4057
  }
4058
- const select$1 = function WelcomeUtterancesRepresentationSelect() {
4059
- const { selections: WelcomeTopicSuggestedUtterancesRepresentation__selections, opaque: WelcomeTopicSuggestedUtterancesRepresentation__opaque, } = select$2();
4058
+ const select$4 = function WelcomeUtterancesRepresentationSelect() {
4059
+ const { selections: WelcomeTopicSuggestedUtterancesRepresentation__selections, opaque: WelcomeTopicSuggestedUtterancesRepresentation__opaque, } = select$5();
4060
4060
  return {
4061
4061
  kind: 'Fragment',
4062
- version: VERSION,
4062
+ version: VERSION$2,
4063
4063
  private: [],
4064
4064
  selections: [
4065
4065
  {
@@ -4080,7 +4080,7 @@ const select$1 = function WelcomeUtterancesRepresentationSelect() {
4080
4080
  ]
4081
4081
  };
4082
4082
  };
4083
- function equals(existing, incoming) {
4083
+ function equals$2(existing, incoming) {
4084
4084
  const existing_isSuccess = existing.isSuccess;
4085
4085
  const incoming_isSuccess = incoming.isSuccess;
4086
4086
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -4102,7 +4102,7 @@ function equals(existing, incoming) {
4102
4102
  const existing_topicsAndSuggestedUtterances = existing.topicsAndSuggestedUtterances;
4103
4103
  const incoming_topicsAndSuggestedUtterances = incoming.topicsAndSuggestedUtterances;
4104
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))) {
4105
+ if (!(equals$3(existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item))) {
4106
4106
  return false;
4107
4107
  }
4108
4108
  });
@@ -4111,44 +4111,44 @@ function equals(existing, incoming) {
4111
4111
  }
4112
4112
  return true;
4113
4113
  }
4114
- const ingest = function WelcomeUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
4114
+ const ingest$1 = function WelcomeUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
4115
4115
  if (process.env.NODE_ENV !== 'production') {
4116
- const validateError = validate(input);
4116
+ const validateError = validate$2(input);
4117
4117
  if (validateError !== null) {
4118
4118
  throw validateError;
4119
4119
  }
4120
4120
  }
4121
4121
  const key = path.fullPath;
4122
- const ttlToUse = TTL;
4123
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "einstein-copilot-bot", VERSION, RepresentationType, equals);
4122
+ const ttlToUse = TTL$1;
4123
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
4124
4124
  return createLink(key);
4125
4125
  };
4126
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
4126
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4127
4127
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4128
4128
  const rootKey = fullPathFactory();
4129
4129
  rootKeySet.set(rootKey, {
4130
4130
  namespace: keyPrefix,
4131
- representationName: RepresentationType,
4131
+ representationName: RepresentationType$1,
4132
4132
  mergeable: false
4133
4133
  });
4134
4134
  }
4135
4135
 
4136
- function select(luvio, params) {
4137
- return select$1();
4136
+ function select$3(luvio, params) {
4137
+ return select$4();
4138
4138
  }
4139
- function keyBuilder$1(luvio, params) {
4139
+ function keyBuilder$3(luvio, params) {
4140
4140
  return keyPrefix + '::WelcomeUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
4141
4141
  }
4142
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4143
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
4142
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4143
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
4144
4144
  }
4145
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4145
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4146
4146
  const { body } = response;
4147
- const key = keyBuilder$1(luvio, resourceParams);
4148
- luvio.storeIngest(key, ingest, body);
4147
+ const key = keyBuilder$3(luvio, resourceParams);
4148
+ luvio.storeIngest(key, ingest$1, body);
4149
4149
  const snapshot = luvio.storeLookup({
4150
4150
  recordId: key,
4151
- node: select(),
4151
+ node: select$3(),
4152
4152
  variables: {},
4153
4153
  }, snapshotRefresh);
4154
4154
  if (process.env.NODE_ENV !== 'production') {
@@ -4159,19 +4159,19 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4159
4159
  deepFreeze(snapshot.data);
4160
4160
  return snapshot;
4161
4161
  }
4162
- function ingestError(luvio, params, error, snapshotRefresh) {
4163
- const key = keyBuilder$1(luvio, params);
4162
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
4163
+ const key = keyBuilder$3(luvio, params);
4164
4164
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4165
4165
  const storeMetadataParams = {
4166
- ttl: TTL,
4166
+ ttl: TTL$1,
4167
4167
  namespace: keyPrefix,
4168
- version: VERSION,
4169
- representationName: RepresentationType
4168
+ version: VERSION$2,
4169
+ representationName: RepresentationType$1
4170
4170
  };
4171
4171
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4172
4172
  return errorSnapshot;
4173
4173
  }
4174
- function createResourceRequest(config) {
4174
+ function createResourceRequest$1(config) {
4175
4175
  const headers = {};
4176
4176
  return {
4177
4177
  baseUri: '/services/data/v63.0',
@@ -4185,84 +4185,627 @@ function createResourceRequest(config) {
4185
4185
  };
4186
4186
  }
4187
4187
 
4188
- const adapterName = 'getWelcomeUtterances';
4188
+ const adapterName$1 = 'getWelcomeUtterances';
4189
4189
  const getWelcomeUtterances_ConfigPropertyMetadata = [
4190
4190
  generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
4191
4191
  ];
4192
- const getWelcomeUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWelcomeUtterances_ConfigPropertyMetadata);
4193
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(getWelcomeUtterances_ConfigPropertyMetadata);
4194
- function keyBuilder(luvio, config) {
4195
- const resourceParams = createResourceParams(config);
4196
- return keyBuilder$1(luvio, resourceParams);
4192
+ const getWelcomeUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getWelcomeUtterances_ConfigPropertyMetadata);
4193
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getWelcomeUtterances_ConfigPropertyMetadata);
4194
+ function keyBuilder$2(luvio, config) {
4195
+ const resourceParams = createResourceParams$1(config);
4196
+ return keyBuilder$3(luvio, resourceParams);
4197
4197
  }
4198
- function typeCheckConfig(untrustedConfig) {
4198
+ function typeCheckConfig$1(untrustedConfig) {
4199
4199
  const config = {};
4200
- typeCheckConfig$9(untrustedConfig, config, getWelcomeUtterances_ConfigPropertyMetadata);
4200
+ typeCheckConfig$a(untrustedConfig, config, getWelcomeUtterances_ConfigPropertyMetadata);
4201
4201
  return config;
4202
4202
  }
4203
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
4203
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4204
4204
  if (!untrustedIsObject(untrustedConfig)) {
4205
4205
  return null;
4206
4206
  }
4207
4207
  if (process.env.NODE_ENV !== 'production') {
4208
4208
  validateConfig(untrustedConfig, configPropertyNames);
4209
4209
  }
4210
- const config = typeCheckConfig(untrustedConfig);
4210
+ const config = typeCheckConfig$1(untrustedConfig);
4211
4211
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4212
4212
  return null;
4213
4213
  }
4214
4214
  return config;
4215
4215
  }
4216
- function adapterFragment(luvio, config) {
4217
- createResourceParams(config);
4218
- return select();
4216
+ function adapterFragment$1(luvio, config) {
4217
+ createResourceParams$1(config);
4218
+ return select$3();
4219
4219
  }
4220
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
4221
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
4220
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4221
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
4222
4222
  config,
4223
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4223
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4224
4224
  });
4225
4225
  return luvio.storeBroadcast().then(() => snapshot);
4226
4226
  }
4227
- function onFetchResponseError(luvio, config, resourceParams, response) {
4228
- const snapshot = ingestError(luvio, resourceParams, response, {
4227
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
4228
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
4229
4229
  config,
4230
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4230
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4231
4231
  });
4232
4232
  return luvio.storeBroadcast().then(() => snapshot);
4233
4233
  }
4234
- function buildNetworkSnapshot(luvio, config, options) {
4235
- const resourceParams = createResourceParams(config);
4236
- const request = createResourceRequest(resourceParams);
4234
+ function buildNetworkSnapshot$1(luvio, config, options) {
4235
+ const resourceParams = createResourceParams$1(config);
4236
+ const request = createResourceRequest$1(resourceParams);
4237
4237
  return luvio.dispatchResourceRequest(request, options)
4238
4238
  .then((response) => {
4239
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
4239
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
4240
4240
  const cache = new StoreKeyMap();
4241
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
4241
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4242
4242
  return cache;
4243
4243
  });
4244
4244
  }, (response) => {
4245
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
4245
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
4246
4246
  });
4247
4247
  }
4248
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4249
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4248
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4249
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4250
4250
  }
4251
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
4251
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4252
4252
  const { luvio, config } = context;
4253
4253
  const selector = {
4254
- recordId: keyBuilder(luvio, config),
4255
- node: adapterFragment(luvio, config),
4254
+ recordId: keyBuilder$2(luvio, config),
4255
+ node: adapterFragment$1(luvio, config),
4256
4256
  variables: {},
4257
4257
  };
4258
4258
  const cacheSnapshot = storeLookup(selector, {
4259
4259
  config,
4260
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4260
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4261
4261
  });
4262
4262
  return cacheSnapshot;
4263
4263
  }
4264
4264
  const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBot__getWelcomeUtterances(untrustedConfig, requestContext) {
4265
- const config = validateAdapterConfig(untrustedConfig, getWelcomeUtterances_ConfigPropertyNames);
4265
+ const config = validateAdapterConfig$1(untrustedConfig, getWelcomeUtterances_ConfigPropertyNames);
4266
+ // Invalid or incomplete config
4267
+ if (config === null) {
4268
+ return null;
4269
+ }
4270
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4271
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4272
+ };
4273
+
4274
+ const VERSION$1 = "5cdcbe9b9b5307f4d285345d68c3236c";
4275
+ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4276
+ const v_error = (() => {
4277
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4278
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4279
+ }
4280
+ if (obj.agentType !== undefined) {
4281
+ const obj_agentType = obj.agentType;
4282
+ const path_agentType = path + '.agentType';
4283
+ if (typeof obj_agentType !== 'string') {
4284
+ return new TypeError('Expected "string" but received "' + typeof obj_agentType + '" (at "' + path_agentType + '")');
4285
+ }
4286
+ }
4287
+ if (obj.botId !== undefined) {
4288
+ const obj_botId = obj.botId;
4289
+ const path_botId = path + '.botId';
4290
+ if (typeof obj_botId !== 'string') {
4291
+ return new TypeError('Expected "string" but received "' + typeof obj_botId + '" (at "' + path_botId + '")');
4292
+ }
4293
+ }
4294
+ if (obj.description !== undefined) {
4295
+ const obj_description = obj.description;
4296
+ const path_description = path + '.description';
4297
+ if (typeof obj_description !== 'string') {
4298
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
4299
+ }
4300
+ }
4301
+ if (obj.errorMessage !== undefined) {
4302
+ const obj_errorMessage = obj.errorMessage;
4303
+ const path_errorMessage = path + '.errorMessage';
4304
+ if (typeof obj_errorMessage !== 'string') {
4305
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
4306
+ }
4307
+ }
4308
+ const obj_isSuccess = obj.isSuccess;
4309
+ const path_isSuccess = path + '.isSuccess';
4310
+ if (typeof obj_isSuccess !== 'boolean') {
4311
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4312
+ }
4313
+ if (obj.label !== undefined) {
4314
+ const obj_label = obj.label;
4315
+ const path_label = path + '.label';
4316
+ if (typeof obj_label !== 'string') {
4317
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4318
+ }
4319
+ }
4320
+ })();
4321
+ return v_error === undefined ? null : v_error;
4322
+ }
4323
+ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
4324
+ return {
4325
+ kind: 'Fragment',
4326
+ version: VERSION$1,
4327
+ private: [],
4328
+ selections: [
4329
+ {
4330
+ name: 'agentType',
4331
+ kind: 'Scalar',
4332
+ required: false
4333
+ },
4334
+ {
4335
+ name: 'botId',
4336
+ kind: 'Scalar',
4337
+ required: false
4338
+ },
4339
+ {
4340
+ name: 'description',
4341
+ kind: 'Scalar',
4342
+ required: false
4343
+ },
4344
+ {
4345
+ name: 'errorMessage',
4346
+ kind: 'Scalar',
4347
+ required: false
4348
+ },
4349
+ {
4350
+ name: 'isSuccess',
4351
+ kind: 'Scalar'
4352
+ },
4353
+ {
4354
+ name: 'label',
4355
+ kind: 'Scalar',
4356
+ required: false
4357
+ }
4358
+ ]
4359
+ };
4360
+ };
4361
+ function equals$1(existing, incoming) {
4362
+ const existing_isSuccess = existing.isSuccess;
4363
+ const incoming_isSuccess = incoming.isSuccess;
4364
+ if (!(existing_isSuccess === incoming_isSuccess)) {
4365
+ return false;
4366
+ }
4367
+ const existing_agentType = existing.agentType;
4368
+ const incoming_agentType = incoming.agentType;
4369
+ // if at least one of these optionals is defined
4370
+ if (existing_agentType !== undefined || incoming_agentType !== undefined) {
4371
+ // if one of these is not defined we know the other is defined and therefore
4372
+ // not equal
4373
+ if (existing_agentType === undefined || incoming_agentType === undefined) {
4374
+ return false;
4375
+ }
4376
+ if (!(existing_agentType === incoming_agentType)) {
4377
+ return false;
4378
+ }
4379
+ }
4380
+ const existing_botId = existing.botId;
4381
+ const incoming_botId = incoming.botId;
4382
+ // if at least one of these optionals is defined
4383
+ if (existing_botId !== undefined || incoming_botId !== undefined) {
4384
+ // if one of these is not defined we know the other is defined and therefore
4385
+ // not equal
4386
+ if (existing_botId === undefined || incoming_botId === undefined) {
4387
+ return false;
4388
+ }
4389
+ if (!(existing_botId === incoming_botId)) {
4390
+ return false;
4391
+ }
4392
+ }
4393
+ const existing_description = existing.description;
4394
+ const incoming_description = incoming.description;
4395
+ // if at least one of these optionals is defined
4396
+ if (existing_description !== undefined || incoming_description !== undefined) {
4397
+ // if one of these is not defined we know the other is defined and therefore
4398
+ // not equal
4399
+ if (existing_description === undefined || incoming_description === undefined) {
4400
+ return false;
4401
+ }
4402
+ if (!(existing_description === incoming_description)) {
4403
+ return false;
4404
+ }
4405
+ }
4406
+ const existing_errorMessage = existing.errorMessage;
4407
+ const incoming_errorMessage = incoming.errorMessage;
4408
+ // if at least one of these optionals is defined
4409
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
4410
+ // if one of these is not defined we know the other is defined and therefore
4411
+ // not equal
4412
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
4413
+ return false;
4414
+ }
4415
+ if (!(existing_errorMessage === incoming_errorMessage)) {
4416
+ return false;
4417
+ }
4418
+ }
4419
+ const existing_label = existing.label;
4420
+ const incoming_label = incoming.label;
4421
+ // if at least one of these optionals is defined
4422
+ if (existing_label !== undefined || incoming_label !== undefined) {
4423
+ // if one of these is not defined we know the other is defined and therefore
4424
+ // not equal
4425
+ if (existing_label === undefined || incoming_label === undefined) {
4426
+ return false;
4427
+ }
4428
+ if (!(existing_label === incoming_label)) {
4429
+ return false;
4430
+ }
4431
+ }
4432
+ return true;
4433
+ }
4434
+
4435
+ const TTL = 30000;
4436
+ const VERSION = "5b4c81cace1018ccf690bdfdf945fb37";
4437
+ function validate(obj, path = 'AgentforceAgentBotInfoListRepresentation') {
4438
+ const v_error = (() => {
4439
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4440
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4441
+ }
4442
+ const obj_agents = obj.agents;
4443
+ const path_agents = path + '.agents';
4444
+ if (!ArrayIsArray(obj_agents)) {
4445
+ return new TypeError('Expected "array" but received "' + typeof obj_agents + '" (at "' + path_agents + '")');
4446
+ }
4447
+ for (let i = 0; i < obj_agents.length; i++) {
4448
+ const obj_agents_item = obj_agents[i];
4449
+ const path_agents_item = path_agents + '[' + i + ']';
4450
+ const referencepath_agents_itemValidationError = validate$1(obj_agents_item, path_agents_item);
4451
+ if (referencepath_agents_itemValidationError !== null) {
4452
+ let message = 'Object doesn\'t match AgentforceAgentBotInfoRepresentation (at "' + path_agents_item + '")\n';
4453
+ message += referencepath_agents_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4454
+ return new TypeError(message);
4455
+ }
4456
+ }
4457
+ if (obj.apiEndpoint !== undefined) {
4458
+ const obj_apiEndpoint = obj.apiEndpoint;
4459
+ const path_apiEndpoint = path + '.apiEndpoint';
4460
+ if (typeof obj_apiEndpoint !== 'string') {
4461
+ return new TypeError('Expected "string" but received "' + typeof obj_apiEndpoint + '" (at "' + path_apiEndpoint + '")');
4462
+ }
4463
+ }
4464
+ if (obj.errorMessage !== undefined) {
4465
+ const obj_errorMessage = obj.errorMessage;
4466
+ const path_errorMessage = path + '.errorMessage';
4467
+ if (typeof obj_errorMessage !== 'string') {
4468
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
4469
+ }
4470
+ }
4471
+ if (obj.falconInstance !== undefined) {
4472
+ const obj_falconInstance = obj.falconInstance;
4473
+ const path_falconInstance = path + '.falconInstance';
4474
+ if (typeof obj_falconInstance !== 'string') {
4475
+ return new TypeError('Expected "string" but received "' + typeof obj_falconInstance + '" (at "' + path_falconInstance + '")');
4476
+ }
4477
+ }
4478
+ const obj_isSuccess = obj.isSuccess;
4479
+ const path_isSuccess = path + '.isSuccess';
4480
+ if (typeof obj_isSuccess !== 'boolean') {
4481
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4482
+ }
4483
+ if (obj.sfapUrl !== undefined) {
4484
+ const obj_sfapUrl = obj.sfapUrl;
4485
+ const path_sfapUrl = path + '.sfapUrl';
4486
+ if (typeof obj_sfapUrl !== 'string') {
4487
+ return new TypeError('Expected "string" but received "' + typeof obj_sfapUrl + '" (at "' + path_sfapUrl + '")');
4488
+ }
4489
+ }
4490
+ if (obj.targetRegion !== undefined) {
4491
+ const obj_targetRegion = obj.targetRegion;
4492
+ const path_targetRegion = path + '.targetRegion';
4493
+ if (typeof obj_targetRegion !== 'string') {
4494
+ return new TypeError('Expected "string" but received "' + typeof obj_targetRegion + '" (at "' + path_targetRegion + '")');
4495
+ }
4496
+ }
4497
+ if (obj.tenantGuid !== undefined) {
4498
+ const obj_tenantGuid = obj.tenantGuid;
4499
+ const path_tenantGuid = path + '.tenantGuid';
4500
+ if (typeof obj_tenantGuid !== 'string') {
4501
+ return new TypeError('Expected "string" but received "' + typeof obj_tenantGuid + '" (at "' + path_tenantGuid + '")');
4502
+ }
4503
+ }
4504
+ })();
4505
+ return v_error === undefined ? null : v_error;
4506
+ }
4507
+ const RepresentationType = 'AgentforceAgentBotInfoListRepresentation';
4508
+ function normalize(input, existing, path, luvio, store, timestamp) {
4509
+ return input;
4510
+ }
4511
+ const select$1 = function AgentforceAgentBotInfoListRepresentationSelect() {
4512
+ const { selections: AgentforceAgentBotInfoRepresentation__selections, opaque: AgentforceAgentBotInfoRepresentation__opaque, } = select$2();
4513
+ return {
4514
+ kind: 'Fragment',
4515
+ version: VERSION,
4516
+ private: [],
4517
+ selections: [
4518
+ {
4519
+ name: 'agents',
4520
+ kind: 'Object',
4521
+ plural: true,
4522
+ selections: AgentforceAgentBotInfoRepresentation__selections
4523
+ },
4524
+ {
4525
+ name: 'apiEndpoint',
4526
+ kind: 'Scalar',
4527
+ required: false
4528
+ },
4529
+ {
4530
+ name: 'errorMessage',
4531
+ kind: 'Scalar',
4532
+ required: false
4533
+ },
4534
+ {
4535
+ name: 'falconInstance',
4536
+ kind: 'Scalar',
4537
+ required: false
4538
+ },
4539
+ {
4540
+ name: 'isSuccess',
4541
+ kind: 'Scalar'
4542
+ },
4543
+ {
4544
+ name: 'sfapUrl',
4545
+ kind: 'Scalar',
4546
+ required: false
4547
+ },
4548
+ {
4549
+ name: 'targetRegion',
4550
+ kind: 'Scalar',
4551
+ required: false
4552
+ },
4553
+ {
4554
+ name: 'tenantGuid',
4555
+ kind: 'Scalar',
4556
+ required: false
4557
+ }
4558
+ ]
4559
+ };
4560
+ };
4561
+ function equals(existing, incoming) {
4562
+ const existing_isSuccess = existing.isSuccess;
4563
+ const incoming_isSuccess = incoming.isSuccess;
4564
+ if (!(existing_isSuccess === incoming_isSuccess)) {
4565
+ return false;
4566
+ }
4567
+ const existing_apiEndpoint = existing.apiEndpoint;
4568
+ const incoming_apiEndpoint = incoming.apiEndpoint;
4569
+ // if at least one of these optionals is defined
4570
+ if (existing_apiEndpoint !== undefined || incoming_apiEndpoint !== undefined) {
4571
+ // if one of these is not defined we know the other is defined and therefore
4572
+ // not equal
4573
+ if (existing_apiEndpoint === undefined || incoming_apiEndpoint === undefined) {
4574
+ return false;
4575
+ }
4576
+ if (!(existing_apiEndpoint === incoming_apiEndpoint)) {
4577
+ return false;
4578
+ }
4579
+ }
4580
+ const existing_errorMessage = existing.errorMessage;
4581
+ const incoming_errorMessage = incoming.errorMessage;
4582
+ // if at least one of these optionals is defined
4583
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
4584
+ // if one of these is not defined we know the other is defined and therefore
4585
+ // not equal
4586
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
4587
+ return false;
4588
+ }
4589
+ if (!(existing_errorMessage === incoming_errorMessage)) {
4590
+ return false;
4591
+ }
4592
+ }
4593
+ const existing_falconInstance = existing.falconInstance;
4594
+ const incoming_falconInstance = incoming.falconInstance;
4595
+ // if at least one of these optionals is defined
4596
+ if (existing_falconInstance !== undefined || incoming_falconInstance !== undefined) {
4597
+ // if one of these is not defined we know the other is defined and therefore
4598
+ // not equal
4599
+ if (existing_falconInstance === undefined || incoming_falconInstance === undefined) {
4600
+ return false;
4601
+ }
4602
+ if (!(existing_falconInstance === incoming_falconInstance)) {
4603
+ return false;
4604
+ }
4605
+ }
4606
+ const existing_sfapUrl = existing.sfapUrl;
4607
+ const incoming_sfapUrl = incoming.sfapUrl;
4608
+ // if at least one of these optionals is defined
4609
+ if (existing_sfapUrl !== undefined || incoming_sfapUrl !== undefined) {
4610
+ // if one of these is not defined we know the other is defined and therefore
4611
+ // not equal
4612
+ if (existing_sfapUrl === undefined || incoming_sfapUrl === undefined) {
4613
+ return false;
4614
+ }
4615
+ if (!(existing_sfapUrl === incoming_sfapUrl)) {
4616
+ return false;
4617
+ }
4618
+ }
4619
+ const existing_targetRegion = existing.targetRegion;
4620
+ const incoming_targetRegion = incoming.targetRegion;
4621
+ // if at least one of these optionals is defined
4622
+ if (existing_targetRegion !== undefined || incoming_targetRegion !== undefined) {
4623
+ // if one of these is not defined we know the other is defined and therefore
4624
+ // not equal
4625
+ if (existing_targetRegion === undefined || incoming_targetRegion === undefined) {
4626
+ return false;
4627
+ }
4628
+ if (!(existing_targetRegion === incoming_targetRegion)) {
4629
+ return false;
4630
+ }
4631
+ }
4632
+ const existing_tenantGuid = existing.tenantGuid;
4633
+ const incoming_tenantGuid = incoming.tenantGuid;
4634
+ // if at least one of these optionals is defined
4635
+ if (existing_tenantGuid !== undefined || incoming_tenantGuid !== undefined) {
4636
+ // if one of these is not defined we know the other is defined and therefore
4637
+ // not equal
4638
+ if (existing_tenantGuid === undefined || incoming_tenantGuid === undefined) {
4639
+ return false;
4640
+ }
4641
+ if (!(existing_tenantGuid === incoming_tenantGuid)) {
4642
+ return false;
4643
+ }
4644
+ }
4645
+ const existing_agents = existing.agents;
4646
+ const incoming_agents = incoming.agents;
4647
+ const equals_agents_items = equalsArray(existing_agents, incoming_agents, (existing_agents_item, incoming_agents_item) => {
4648
+ if (!(equals$1(existing_agents_item, incoming_agents_item))) {
4649
+ return false;
4650
+ }
4651
+ });
4652
+ if (equals_agents_items === false) {
4653
+ return false;
4654
+ }
4655
+ return true;
4656
+ }
4657
+ const ingest = function AgentforceAgentBotInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
4658
+ if (process.env.NODE_ENV !== 'production') {
4659
+ const validateError = validate(input);
4660
+ if (validateError !== null) {
4661
+ throw validateError;
4662
+ }
4663
+ }
4664
+ const key = path.fullPath;
4665
+ const ttlToUse = TTL;
4666
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "einstein-copilot-bot", VERSION, RepresentationType, equals);
4667
+ return createLink(key);
4668
+ };
4669
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
4670
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4671
+ const rootKey = fullPathFactory();
4672
+ rootKeySet.set(rootKey, {
4673
+ namespace: keyPrefix,
4674
+ representationName: RepresentationType,
4675
+ mergeable: false
4676
+ });
4677
+ }
4678
+
4679
+ function select(luvio, params) {
4680
+ return select$1();
4681
+ }
4682
+ function keyBuilder$1(luvio, params) {
4683
+ return keyPrefix + '::AgentforceAgentBotInfoListRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
4684
+ }
4685
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4686
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
4687
+ }
4688
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4689
+ const { body } = response;
4690
+ const key = keyBuilder$1(luvio, resourceParams);
4691
+ luvio.storeIngest(key, ingest, body);
4692
+ const snapshot = luvio.storeLookup({
4693
+ recordId: key,
4694
+ node: select(),
4695
+ variables: {},
4696
+ }, snapshotRefresh);
4697
+ if (process.env.NODE_ENV !== 'production') {
4698
+ if (snapshot.state !== 'Fulfilled') {
4699
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4700
+ }
4701
+ }
4702
+ deepFreeze(snapshot.data);
4703
+ return snapshot;
4704
+ }
4705
+ function ingestError(luvio, params, error, snapshotRefresh) {
4706
+ const key = keyBuilder$1(luvio, params);
4707
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4708
+ const storeMetadataParams = {
4709
+ ttl: TTL,
4710
+ namespace: keyPrefix,
4711
+ version: VERSION,
4712
+ representationName: RepresentationType
4713
+ };
4714
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4715
+ return errorSnapshot;
4716
+ }
4717
+ function createResourceRequest(config) {
4718
+ const headers = {};
4719
+ return {
4720
+ baseUri: '/services/data/v63.0',
4721
+ basePath: '/connect/agentforce-agent-info',
4722
+ method: 'get',
4723
+ body: null,
4724
+ urlParams: {},
4725
+ queryParams: config.queryParams,
4726
+ headers,
4727
+ priority: 'normal',
4728
+ };
4729
+ }
4730
+
4731
+ const adapterName = 'getAgents';
4732
+ const getAgents_ConfigPropertyMetadata = [
4733
+ generateParamConfigMetadata('agentType', true, 1 /* QueryParameter */, 0 /* String */),
4734
+ ];
4735
+ const getAgents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAgents_ConfigPropertyMetadata);
4736
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(getAgents_ConfigPropertyMetadata);
4737
+ function keyBuilder(luvio, config) {
4738
+ const resourceParams = createResourceParams(config);
4739
+ return keyBuilder$1(luvio, resourceParams);
4740
+ }
4741
+ function typeCheckConfig(untrustedConfig) {
4742
+ const config = {};
4743
+ typeCheckConfig$a(untrustedConfig, config, getAgents_ConfigPropertyMetadata);
4744
+ return config;
4745
+ }
4746
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
4747
+ if (!untrustedIsObject(untrustedConfig)) {
4748
+ return null;
4749
+ }
4750
+ if (process.env.NODE_ENV !== 'production') {
4751
+ validateConfig(untrustedConfig, configPropertyNames);
4752
+ }
4753
+ const config = typeCheckConfig(untrustedConfig);
4754
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4755
+ return null;
4756
+ }
4757
+ return config;
4758
+ }
4759
+ function adapterFragment(luvio, config) {
4760
+ createResourceParams(config);
4761
+ return select();
4762
+ }
4763
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
4764
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
4765
+ config,
4766
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4767
+ });
4768
+ return luvio.storeBroadcast().then(() => snapshot);
4769
+ }
4770
+ function onFetchResponseError(luvio, config, resourceParams, response) {
4771
+ const snapshot = ingestError(luvio, resourceParams, response, {
4772
+ config,
4773
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4774
+ });
4775
+ return luvio.storeBroadcast().then(() => snapshot);
4776
+ }
4777
+ function buildNetworkSnapshot(luvio, config, options) {
4778
+ const resourceParams = createResourceParams(config);
4779
+ const request = createResourceRequest(resourceParams);
4780
+ return luvio.dispatchResourceRequest(request, options)
4781
+ .then((response) => {
4782
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
4783
+ const cache = new StoreKeyMap();
4784
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
4785
+ return cache;
4786
+ });
4787
+ }, (response) => {
4788
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
4789
+ });
4790
+ }
4791
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4792
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4793
+ }
4794
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
4795
+ const { luvio, config } = context;
4796
+ const selector = {
4797
+ recordId: keyBuilder(luvio, config),
4798
+ node: adapterFragment(luvio, config),
4799
+ variables: {},
4800
+ };
4801
+ const cacheSnapshot = storeLookup(selector, {
4802
+ config,
4803
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4804
+ });
4805
+ return cacheSnapshot;
4806
+ }
4807
+ const getAgentsAdapterFactory = (luvio) => function einsteinCopilotBot__getAgents(untrustedConfig, requestContext) {
4808
+ const config = validateAdapterConfig(untrustedConfig, getAgents_ConfigPropertyNames);
4266
4809
  // Invalid or incomplete config
4267
4810
  if (config === null) {
4268
4811
  return null;
@@ -4271,4 +4814,4 @@ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBo
4271
4814
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4272
4815
  };
4273
4816
 
4274
- export { getBotIdAdapterFactory, getCopilotObjectsAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, getRecommendedUtterancesAdapterFactory, getWelcomeUtterancesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };
4817
+ export { getAgentsAdapterFactory, getBotIdAdapterFactory, getCopilotObjectsAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, getRecommendedUtterancesAdapterFactory, getWelcomeUtterancesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };