@salesforce/lds-adapters-service-einstein-copilot-bot 1.287.0-dev14 → 1.287.0-dev15

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$3, StoreKeyMap, createResourceParams as createResourceParams$5, typeCheckConfig as typeCheckConfig$5 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, StoreKeyMap, createResourceParams as createResourceParams$6, typeCheckConfig as typeCheckConfig$6 } 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$5 = 30000;
116
- const VERSION$a = "ab85410a28124cfed3d8eae7b8236853";
117
- function validate$b(obj, path = 'CopilotBotInfoRepresentation') {
115
+ const TTL$6 = 30000;
116
+ const VERSION$c = "ab85410a28124cfed3d8eae7b8236853";
117
+ function validate$j(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 + '")');
@@ -141,14 +141,14 @@ function validate$b(obj, path = 'CopilotBotInfoRepresentation') {
141
141
  })();
142
142
  return v_error === undefined ? null : v_error;
143
143
  }
144
- const RepresentationType$5 = 'CopilotBotInfoRepresentation';
145
- function normalize$5(input, existing, path, luvio, store, timestamp) {
144
+ const RepresentationType$6 = 'CopilotBotInfoRepresentation';
145
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
146
146
  return input;
147
147
  }
148
- const select$f = function CopilotBotInfoRepresentationSelect() {
148
+ const select$i = function CopilotBotInfoRepresentationSelect() {
149
149
  return {
150
150
  kind: 'Fragment',
151
- version: VERSION$a,
151
+ version: VERSION$c,
152
152
  private: [],
153
153
  selections: [
154
154
  {
@@ -168,7 +168,7 @@ const select$f = function CopilotBotInfoRepresentationSelect() {
168
168
  ]
169
169
  };
170
170
  };
171
- function equals$a(existing, incoming) {
171
+ function equals$c(existing, incoming) {
172
172
  const existing_isSuccess = existing.isSuccess;
173
173
  const incoming_isSuccess = incoming.isSuccess;
174
174
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -202,44 +202,44 @@ function equals$a(existing, incoming) {
202
202
  }
203
203
  return true;
204
204
  }
205
- const ingest$5 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
205
+ const ingest$6 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
206
206
  if (process.env.NODE_ENV !== 'production') {
207
- const validateError = validate$b(input);
207
+ const validateError = validate$j(input);
208
208
  if (validateError !== null) {
209
209
  throw validateError;
210
210
  }
211
211
  }
212
212
  const key = path.fullPath;
213
- const ttlToUse = TTL$5;
214
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$a, RepresentationType$5, equals$a);
213
+ const ttlToUse = TTL$6;
214
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$c, RepresentationType$6, equals$c);
215
215
  return createLink(key);
216
216
  };
217
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
217
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
218
218
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
219
219
  const rootKey = fullPathFactory();
220
220
  rootKeySet.set(rootKey, {
221
221
  namespace: keyPrefix,
222
- representationName: RepresentationType$5,
222
+ representationName: RepresentationType$6,
223
223
  mergeable: false
224
224
  });
225
225
  }
226
226
 
227
- function select$e(luvio, params) {
228
- return select$f();
227
+ function select$h(luvio, params) {
228
+ return select$i();
229
229
  }
230
- function keyBuilder$8(luvio, params) {
230
+ function keyBuilder$a(luvio, params) {
231
231
  return keyPrefix + '::CopilotBotInfoRepresentation:(' + ')';
232
232
  }
233
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
234
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8());
233
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
234
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a());
235
235
  }
236
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
236
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
237
237
  const { body } = response;
238
- const key = keyBuilder$8();
239
- luvio.storeIngest(key, ingest$5, body);
238
+ const key = keyBuilder$a();
239
+ luvio.storeIngest(key, ingest$6, body);
240
240
  const snapshot = luvio.storeLookup({
241
241
  recordId: key,
242
- node: select$e(),
242
+ node: select$h(),
243
243
  variables: {},
244
244
  }, snapshotRefresh);
245
245
  if (process.env.NODE_ENV !== 'production') {
@@ -250,19 +250,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
250
250
  deepFreeze(snapshot.data);
251
251
  return snapshot;
252
252
  }
253
- function ingestError$2(luvio, params, error, snapshotRefresh) {
254
- const key = keyBuilder$8();
253
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
254
+ const key = keyBuilder$a();
255
255
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
256
256
  const storeMetadataParams = {
257
- ttl: TTL$5,
257
+ ttl: TTL$6,
258
258
  namespace: keyPrefix,
259
- version: VERSION$a,
260
- representationName: RepresentationType$5
259
+ version: VERSION$c,
260
+ representationName: RepresentationType$6
261
261
  };
262
262
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
263
263
  return errorSnapshot;
264
264
  }
265
- function createResourceRequest$4(config) {
265
+ function createResourceRequest$5(config) {
266
266
  const headers = {};
267
267
  return {
268
268
  baseUri: '/services/data/v61.0',
@@ -276,91 +276,91 @@ function createResourceRequest$4(config) {
276
276
  };
277
277
  }
278
278
 
279
- const adapterName$4 = 'getBotId';
279
+ const adapterName$5 = 'getBotId';
280
280
  const getBotId_ConfigPropertyMetadata = [];
281
- const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getBotId_ConfigPropertyMetadata);
282
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getBotId_ConfigPropertyMetadata);
283
- function keyBuilder$7(luvio, config) {
284
- createResourceParams$4(config);
285
- return keyBuilder$8();
281
+ const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBotId_ConfigPropertyMetadata);
282
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(getBotId_ConfigPropertyMetadata);
283
+ function keyBuilder$9(luvio, config) {
284
+ createResourceParams$5(config);
285
+ return keyBuilder$a();
286
286
  }
287
- function typeCheckConfig$4(untrustedConfig) {
287
+ function typeCheckConfig$5(untrustedConfig) {
288
288
  const config = {};
289
289
  return config;
290
290
  }
291
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
291
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
292
292
  if (!untrustedIsObject(untrustedConfig)) {
293
293
  return null;
294
294
  }
295
295
  if (process.env.NODE_ENV !== 'production') {
296
296
  validateConfig(untrustedConfig, configPropertyNames);
297
297
  }
298
- const config = typeCheckConfig$4();
298
+ const config = typeCheckConfig$5();
299
299
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
300
300
  return null;
301
301
  }
302
302
  return config;
303
303
  }
304
- function adapterFragment$2(luvio, config) {
305
- createResourceParams$4(config);
306
- return select$e();
304
+ function adapterFragment$3(luvio, config) {
305
+ createResourceParams$5(config);
306
+ return select$h();
307
307
  }
308
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
309
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
308
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
309
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
310
310
  config,
311
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
311
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
312
312
  });
313
313
  return luvio.storeBroadcast().then(() => snapshot);
314
314
  }
315
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
316
- const snapshot = ingestError$2(luvio, resourceParams, response, {
315
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
316
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
317
317
  config,
318
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
318
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
319
319
  });
320
320
  return luvio.storeBroadcast().then(() => snapshot);
321
321
  }
322
- function buildNetworkSnapshot$4(luvio, config, options) {
323
- const resourceParams = createResourceParams$4(config);
324
- const request = createResourceRequest$4();
322
+ function buildNetworkSnapshot$5(luvio, config, options) {
323
+ const resourceParams = createResourceParams$5(config);
324
+ const request = createResourceRequest$5();
325
325
  return luvio.dispatchResourceRequest(request, options)
326
326
  .then((response) => {
327
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
327
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
328
328
  const cache = new StoreKeyMap();
329
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
329
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
330
330
  return cache;
331
331
  });
332
332
  }, (response) => {
333
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
333
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
334
334
  });
335
335
  }
336
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
337
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
336
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
337
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
338
338
  }
339
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
339
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
340
340
  const { luvio, config } = context;
341
341
  const selector = {
342
- recordId: keyBuilder$7(luvio, config),
343
- node: adapterFragment$2(luvio, config),
342
+ recordId: keyBuilder$9(luvio, config),
343
+ node: adapterFragment$3(luvio, config),
344
344
  variables: {},
345
345
  };
346
346
  const cacheSnapshot = storeLookup(selector, {
347
347
  config,
348
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
348
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
349
349
  });
350
350
  return cacheSnapshot;
351
351
  }
352
352
  const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(untrustedConfig, requestContext) {
353
- const config = validateAdapterConfig$4(untrustedConfig, getBotId_ConfigPropertyNames);
353
+ const config = validateAdapterConfig$5(untrustedConfig, getBotId_ConfigPropertyNames);
354
354
  // Invalid or incomplete config
355
355
  if (config === null) {
356
356
  return null;
357
357
  }
358
358
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
359
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
359
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
360
360
  };
361
361
 
362
- const VERSION$9 = "e8cb7e20392935088ea2f98edb927e8a";
363
- function validate$a(obj, path = 'EsTypeMessageRepresentation') {
362
+ const VERSION$b = "e8cb7e20392935088ea2f98edb927e8a";
363
+ function validate$i(obj, path = 'EsTypeMessageRepresentation') {
364
364
  const v_error = (() => {
365
365
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
366
366
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -406,10 +406,10 @@ function validate$a(obj, path = 'EsTypeMessageRepresentation') {
406
406
  })();
407
407
  return v_error === undefined ? null : v_error;
408
408
  }
409
- const select$d = function EsTypeMessageRepresentationSelect() {
409
+ const select$g = function EsTypeMessageRepresentationSelect() {
410
410
  return {
411
411
  kind: 'Fragment',
412
- version: VERSION$9,
412
+ version: VERSION$b,
413
413
  private: [],
414
414
  selections: [
415
415
  {
@@ -429,7 +429,7 @@ const select$d = function EsTypeMessageRepresentationSelect() {
429
429
  ]
430
430
  };
431
431
  };
432
- function equals$9(existing, incoming) {
432
+ function equals$b(existing, incoming) {
433
433
  const existing_type = existing.type;
434
434
  const incoming_type = incoming.type;
435
435
  if (!(existing_type === incoming_type)) {
@@ -456,7 +456,7 @@ function equals$9(existing, incoming) {
456
456
  return true;
457
457
  }
458
458
 
459
- function validate$9(obj, path = 'VariableRepresentation') {
459
+ function validate$h(obj, path = 'VariableRepresentation') {
460
460
  const v_error = (() => {
461
461
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
462
462
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -482,8 +482,8 @@ function validate$9(obj, path = 'VariableRepresentation') {
482
482
  return v_error === undefined ? null : v_error;
483
483
  }
484
484
 
485
- const VERSION$8 = "4e28b61c3ea362f1c68b28897784111e";
486
- function validate$8(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
485
+ const VERSION$a = "4e28b61c3ea362f1c68b28897784111e";
486
+ function validate$g(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
487
487
  const v_error = (() => {
488
488
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
489
489
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -501,10 +501,10 @@ function validate$8(obj, path = 'ConversationRuntimeProxyChoiceRepresentation')
501
501
  })();
502
502
  return v_error === undefined ? null : v_error;
503
503
  }
504
- const select$c = function ConversationRuntimeProxyChoiceRepresentationSelect() {
504
+ const select$f = function ConversationRuntimeProxyChoiceRepresentationSelect() {
505
505
  return {
506
506
  kind: 'Fragment',
507
- version: VERSION$8,
507
+ version: VERSION$a,
508
508
  private: [],
509
509
  selections: [
510
510
  {
@@ -518,7 +518,7 @@ const select$c = function ConversationRuntimeProxyChoiceRepresentationSelect() {
518
518
  ]
519
519
  };
520
520
  };
521
- function equals$8(existing, incoming) {
521
+ function equals$a(existing, incoming) {
522
522
  const existing_alias = existing.alias;
523
523
  const incoming_alias = incoming.alias;
524
524
  if (!(existing_alias === incoming_alias)) {
@@ -532,8 +532,8 @@ function equals$8(existing, incoming) {
532
532
  return true;
533
533
  }
534
534
 
535
- const VERSION$7 = "477724425d0742c030025796c88ebf5d";
536
- function validate$7(obj, path = 'CollectMessageRepresentation') {
535
+ const VERSION$9 = "477724425d0742c030025796c88ebf5d";
536
+ function validate$f(obj, path = 'CollectMessageRepresentation') {
537
537
  const v_error = (() => {
538
538
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
539
539
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -541,7 +541,7 @@ function validate$7(obj, path = 'CollectMessageRepresentation') {
541
541
  if (obj.data !== undefined) {
542
542
  const obj_data = obj.data;
543
543
  const path_data = path + '.data';
544
- const referencepath_dataValidationError = validate$a(obj_data, path_data);
544
+ const referencepath_dataValidationError = validate$i(obj_data, path_data);
545
545
  if (referencepath_dataValidationError !== null) {
546
546
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
547
547
  message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -584,11 +584,11 @@ function validate$7(obj, path = 'CollectMessageRepresentation') {
584
584
  })();
585
585
  return v_error === undefined ? null : v_error;
586
586
  }
587
- const select$b = function CollectMessageRepresentationSelect() {
588
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$d();
587
+ const select$e = function CollectMessageRepresentationSelect() {
588
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$g();
589
589
  return {
590
590
  kind: 'Fragment',
591
- version: VERSION$7,
591
+ version: VERSION$9,
592
592
  private: [],
593
593
  selections: [
594
594
  {
@@ -609,7 +609,7 @@ const select$b = function CollectMessageRepresentationSelect() {
609
609
  ]
610
610
  };
611
611
  };
612
- function equals$7(existing, incoming) {
612
+ function equals$9(existing, incoming) {
613
613
  const existing_targetType = existing.targetType;
614
614
  const incoming_targetType = incoming.targetType;
615
615
  if (!(existing_targetType === incoming_targetType)) {
@@ -624,7 +624,7 @@ function equals$7(existing, incoming) {
624
624
  if (existing_data === undefined || incoming_data === undefined) {
625
625
  return false;
626
626
  }
627
- if (!(equals$9(existing_data, incoming_data))) {
627
+ if (!(equals$b(existing_data, incoming_data))) {
628
628
  return false;
629
629
  }
630
630
  }
@@ -644,9 +644,9 @@ function equals$7(existing, incoming) {
644
644
  return true;
645
645
  }
646
646
 
647
- const TTL$4 = 30000;
648
- const VERSION$6 = "55ac02bd055f57a2a12aa0fa4844d1a2";
649
- function validate$6(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
647
+ const TTL$5 = 30000;
648
+ const VERSION$8 = "55ac02bd055f57a2a12aa0fa4844d1a2";
649
+ function validate$e(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
650
650
  const v_error = (() => {
651
651
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
652
652
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -660,7 +660,7 @@ function validate$6(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
660
660
  for (let i = 0; i < obj_choices.length; i++) {
661
661
  const obj_choices_item = obj_choices[i];
662
662
  const path_choices_item = path_choices + '[' + i + ']';
663
- const referencepath_choices_itemValidationError = validate$8(obj_choices_item, path_choices_item);
663
+ const referencepath_choices_itemValidationError = validate$g(obj_choices_item, path_choices_item);
664
664
  if (referencepath_choices_itemValidationError !== null) {
665
665
  let message = 'Object doesn\'t match ConversationRuntimeProxyChoiceRepresentation (at "' + path_choices_item + '")\n';
666
666
  message += referencepath_choices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -677,7 +677,7 @@ function validate$6(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
677
677
  for (let i = 0; i < obj_collect.length; i++) {
678
678
  const obj_collect_item = obj_collect[i];
679
679
  const path_collect_item = path_collect + '[' + i + ']';
680
- const referencepath_collect_itemValidationError = validate$7(obj_collect_item, path_collect_item);
680
+ const referencepath_collect_itemValidationError = validate$f(obj_collect_item, path_collect_item);
681
681
  if (referencepath_collect_itemValidationError !== null) {
682
682
  let message = 'Object doesn\'t match CollectMessageRepresentation (at "' + path_collect_item + '")\n';
683
683
  message += referencepath_collect_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -694,7 +694,7 @@ function validate$6(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
694
694
  for (let i = 0; i < obj_confirm.length; i++) {
695
695
  const obj_confirm_item = obj_confirm[i];
696
696
  const path_confirm_item = path_confirm + '[' + i + ']';
697
- const referencepath_confirm_itemValidationError = validate$a(obj_confirm_item, path_confirm_item);
697
+ const referencepath_confirm_itemValidationError = validate$i(obj_confirm_item, path_confirm_item);
698
698
  if (referencepath_confirm_itemValidationError !== null) {
699
699
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_confirm_item + '")\n';
700
700
  message += referencepath_confirm_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -870,7 +870,7 @@ function validate$6(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
870
870
  for (let i = 0; i < obj_result.length; i++) {
871
871
  const obj_result_item = obj_result[i];
872
872
  const path_result_item = path_result + '[' + i + ']';
873
- const referencepath_result_itemValidationError = validate$a(obj_result_item, path_result_item);
873
+ const referencepath_result_itemValidationError = validate$i(obj_result_item, path_result_item);
874
874
  if (referencepath_result_itemValidationError !== null) {
875
875
  let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_result_item + '")\n';
876
876
  message += referencepath_result_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -944,26 +944,26 @@ function validate$6(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
944
944
  })();
945
945
  return v_error === undefined ? null : v_error;
946
946
  }
947
- const RepresentationType$4 = 'ConversationRuntimeProxyMessageRepresentation';
948
- function keyBuilder$6(luvio, config) {
949
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
947
+ const RepresentationType$5 = 'ConversationRuntimeProxyMessageRepresentation';
948
+ function keyBuilder$8(luvio, config) {
949
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
950
950
  }
951
951
  function keyBuilderFromType$2(luvio, object) {
952
952
  const keyParams = {
953
953
  id: object.id
954
954
  };
955
- return keyBuilder$6(luvio, keyParams);
955
+ return keyBuilder$8(luvio, keyParams);
956
956
  }
957
- function normalize$4(input, existing, path, luvio, store, timestamp) {
957
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
958
958
  return input;
959
959
  }
960
- const select$a = function ConversationRuntimeProxyMessageRepresentationSelect() {
961
- const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$c();
962
- const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$b();
963
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$d();
960
+ const select$d = function ConversationRuntimeProxyMessageRepresentationSelect() {
961
+ const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$f();
962
+ const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$e();
963
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$g();
964
964
  return {
965
965
  kind: 'Fragment',
966
- version: VERSION$6,
966
+ version: VERSION$8,
967
967
  private: [],
968
968
  selections: [
969
969
  {
@@ -1047,7 +1047,7 @@ const select$a = function ConversationRuntimeProxyMessageRepresentationSelect()
1047
1047
  ]
1048
1048
  };
1049
1049
  };
1050
- function equals$6(existing, incoming) {
1050
+ function equals$8(existing, incoming) {
1051
1051
  const existing_id = existing.id;
1052
1052
  const incoming_id = incoming.id;
1053
1053
  if (!(existing_id === incoming_id)) {
@@ -1076,7 +1076,7 @@ function equals$6(existing, incoming) {
1076
1076
  return false;
1077
1077
  }
1078
1078
  const equals_choices_items = equalsArray(existing_choices, incoming_choices, (existing_choices_item, incoming_choices_item) => {
1079
- if (!(equals$8(existing_choices_item, incoming_choices_item))) {
1079
+ if (!(equals$a(existing_choices_item, incoming_choices_item))) {
1080
1080
  return false;
1081
1081
  }
1082
1082
  });
@@ -1094,7 +1094,7 @@ function equals$6(existing, incoming) {
1094
1094
  return false;
1095
1095
  }
1096
1096
  const equals_collect_items = equalsArray(existing_collect, incoming_collect, (existing_collect_item, incoming_collect_item) => {
1097
- if (!(equals$7(existing_collect_item, incoming_collect_item))) {
1097
+ if (!(equals$9(existing_collect_item, incoming_collect_item))) {
1098
1098
  return false;
1099
1099
  }
1100
1100
  });
@@ -1112,7 +1112,7 @@ function equals$6(existing, incoming) {
1112
1112
  return false;
1113
1113
  }
1114
1114
  const equals_confirm_items = equalsArray(existing_confirm, incoming_confirm, (existing_confirm_item, incoming_confirm_item) => {
1115
- if (!(equals$9(existing_confirm_item, incoming_confirm_item))) {
1115
+ if (!(equals$b(existing_confirm_item, incoming_confirm_item))) {
1116
1116
  return false;
1117
1117
  }
1118
1118
  });
@@ -1213,7 +1213,7 @@ function equals$6(existing, incoming) {
1213
1213
  return false;
1214
1214
  }
1215
1215
  const equals_result_items = equalsArray(existing_result, incoming_result, (existing_result_item, incoming_result_item) => {
1216
- if (!(equals$9(existing_result_item, incoming_result_item))) {
1216
+ if (!(equals$b(existing_result_item, incoming_result_item))) {
1217
1217
  return false;
1218
1218
  }
1219
1219
  });
@@ -1249,31 +1249,31 @@ function equals$6(existing, incoming) {
1249
1249
  }
1250
1250
  return true;
1251
1251
  }
1252
- const ingest$4 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1252
+ const ingest$5 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1253
1253
  if (process.env.NODE_ENV !== 'production') {
1254
- const validateError = validate$6(input);
1254
+ const validateError = validate$e(input);
1255
1255
  if (validateError !== null) {
1256
1256
  throw validateError;
1257
1257
  }
1258
1258
  }
1259
1259
  const key = keyBuilderFromType$2(luvio, input);
1260
- const ttlToUse = TTL$4;
1261
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$6, RepresentationType$4, equals$6);
1260
+ const ttlToUse = TTL$5;
1261
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$8, RepresentationType$5, equals$8);
1262
1262
  return createLink(key);
1263
1263
  };
1264
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1264
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1265
1265
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1266
1266
  const rootKey = keyBuilderFromType$2(luvio, input);
1267
1267
  rootKeySet.set(rootKey, {
1268
1268
  namespace: keyPrefix,
1269
- representationName: RepresentationType$4,
1269
+ representationName: RepresentationType$5,
1270
1270
  mergeable: false
1271
1271
  });
1272
1272
  }
1273
1273
 
1274
- const TTL$3 = 30000;
1275
- const VERSION$5 = "fe7024fb1132250f97d9616482f09f99";
1276
- function validate$5(obj, path = 'ConversationRuntimeProxyRepresentation') {
1274
+ const TTL$4 = 30000;
1275
+ const VERSION$7 = "fe7024fb1132250f97d9616482f09f99";
1276
+ function validate$d(obj, path = 'ConversationRuntimeProxyRepresentation') {
1277
1277
  const v_error = (() => {
1278
1278
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1279
1279
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1325,23 +1325,23 @@ function validate$5(obj, path = 'ConversationRuntimeProxyRepresentation') {
1325
1325
  })();
1326
1326
  return v_error === undefined ? null : v_error;
1327
1327
  }
1328
- const RepresentationType$3 = 'ConversationRuntimeProxyRepresentation';
1329
- function keyBuilder$5(luvio, config) {
1330
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
1328
+ const RepresentationType$4 = 'ConversationRuntimeProxyRepresentation';
1329
+ function keyBuilder$7(luvio, config) {
1330
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
1331
1331
  }
1332
1332
  function keyBuilderFromType$1(luvio, object) {
1333
1333
  const keyParams = {
1334
1334
  id: object.requestId
1335
1335
  };
1336
- return keyBuilder$5(luvio, keyParams);
1336
+ return keyBuilder$7(luvio, keyParams);
1337
1337
  }
1338
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1338
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1339
1339
  const input_messages = input.messages;
1340
1340
  const input_messages_id = path.fullPath + '__messages';
1341
1341
  for (let i = 0; i < input_messages.length; i++) {
1342
1342
  const input_messages_item = input_messages[i];
1343
1343
  let input_messages_item_id = input_messages_id + '__' + i;
1344
- input_messages[i] = ingest$4(input_messages_item, {
1344
+ input_messages[i] = ingest$5(input_messages_item, {
1345
1345
  fullPath: input_messages_item_id,
1346
1346
  propertyName: i,
1347
1347
  parent: {
@@ -1354,10 +1354,10 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
1354
1354
  }
1355
1355
  return input;
1356
1356
  }
1357
- const select$9 = function ConversationRuntimeProxyRepresentationSelect() {
1357
+ const select$c = function ConversationRuntimeProxyRepresentationSelect() {
1358
1358
  return {
1359
1359
  kind: 'Fragment',
1360
- version: VERSION$5,
1360
+ version: VERSION$7,
1361
1361
  private: [],
1362
1362
  selections: [
1363
1363
  {
@@ -1372,7 +1372,7 @@ const select$9 = function ConversationRuntimeProxyRepresentationSelect() {
1372
1372
  name: 'messages',
1373
1373
  kind: 'Link',
1374
1374
  plural: true,
1375
- fragment: select$a()
1375
+ fragment: select$d()
1376
1376
  },
1377
1377
  {
1378
1378
  name: 'processedSequenceIds',
@@ -1390,7 +1390,7 @@ const select$9 = function ConversationRuntimeProxyRepresentationSelect() {
1390
1390
  ]
1391
1391
  };
1392
1392
  };
1393
- function equals$5(existing, incoming) {
1393
+ function equals$7(existing, incoming) {
1394
1394
  const existing_botId = existing.botId;
1395
1395
  const incoming_botId = incoming.botId;
1396
1396
  if (!(existing_botId === incoming_botId)) {
@@ -1433,45 +1433,45 @@ function equals$5(existing, incoming) {
1433
1433
  }
1434
1434
  return true;
1435
1435
  }
1436
- const ingest$3 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1436
+ const ingest$4 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1437
1437
  if (process.env.NODE_ENV !== 'production') {
1438
- const validateError = validate$5(input);
1438
+ const validateError = validate$d(input);
1439
1439
  if (validateError !== null) {
1440
1440
  throw validateError;
1441
1441
  }
1442
1442
  }
1443
1443
  const key = keyBuilderFromType$1(luvio, input);
1444
- const ttlToUse = TTL$3;
1445
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$5, RepresentationType$3, equals$5);
1444
+ const ttlToUse = TTL$4;
1445
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$7, RepresentationType$4, equals$7);
1446
1446
  return createLink(key);
1447
1447
  };
1448
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1448
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1449
1449
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1450
1450
  const rootKey = keyBuilderFromType$1(luvio, input);
1451
1451
  rootKeySet.set(rootKey, {
1452
1452
  namespace: keyPrefix,
1453
- representationName: RepresentationType$3,
1453
+ representationName: RepresentationType$4,
1454
1454
  mergeable: false
1455
1455
  });
1456
1456
  const input_messages_length = input.messages.length;
1457
1457
  for (let i = 0; i < input_messages_length; i++) {
1458
- getTypeCacheKeys$4(rootKeySet, luvio, input.messages[i]);
1458
+ getTypeCacheKeys$5(rootKeySet, luvio, input.messages[i]);
1459
1459
  }
1460
1460
  }
1461
1461
 
1462
- function select$8(luvio, params) {
1463
- return select$9();
1462
+ function select$b(luvio, params) {
1463
+ return select$c();
1464
1464
  }
1465
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1466
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
1465
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1466
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
1467
1467
  }
1468
- function ingestSuccess$3(luvio, resourceParams, response) {
1468
+ function ingestSuccess$4(luvio, resourceParams, response) {
1469
1469
  const { body } = response;
1470
1470
  const key = keyBuilderFromType$1(luvio, body);
1471
- luvio.storeIngest(key, ingest$3, body);
1471
+ luvio.storeIngest(key, ingest$4, body);
1472
1472
  const snapshot = luvio.storeLookup({
1473
1473
  recordId: key,
1474
- node: select$8(),
1474
+ node: select$b(),
1475
1475
  variables: {},
1476
1476
  });
1477
1477
  if (process.env.NODE_ENV !== 'production') {
@@ -1482,7 +1482,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
1482
1482
  deepFreeze(snapshot.data);
1483
1483
  return snapshot;
1484
1484
  }
1485
- function createResourceRequest$3(config) {
1485
+ function createResourceRequest$4(config) {
1486
1486
  const headers = {};
1487
1487
  return {
1488
1488
  baseUri: '/services/data/v61.0',
@@ -1496,7 +1496,7 @@ function createResourceRequest$3(config) {
1496
1496
  };
1497
1497
  }
1498
1498
 
1499
- const adapterName$3 = 'sendMessage';
1499
+ const adapterName$4 = 'sendMessage';
1500
1500
  const sendMessage_ConfigPropertyMetadata = [
1501
1501
  generateParamConfigMetadata('botId', false, 1 /* QueryParameter */, 0 /* String */),
1502
1502
  generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
@@ -1513,11 +1513,11 @@ const sendMessage_ConfigPropertyMetadata = [
1513
1513
  generateParamConfigMetadata('variables', false, 2 /* Body */, 4 /* Unsupported */, true),
1514
1514
  generateParamConfigMetadata('userUtterance', false, 2 /* Body */, 0 /* String */),
1515
1515
  ];
1516
- const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, sendMessage_ConfigPropertyMetadata);
1517
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(sendMessage_ConfigPropertyMetadata);
1518
- function typeCheckConfig$3(untrustedConfig) {
1516
+ const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, sendMessage_ConfigPropertyMetadata);
1517
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(sendMessage_ConfigPropertyMetadata);
1518
+ function typeCheckConfig$4(untrustedConfig) {
1519
1519
  const config = {};
1520
- typeCheckConfig$5(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1520
+ typeCheckConfig$6(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1521
1521
  const untrustedConfig_planTemplateVariables = untrustedConfig.planTemplateVariables;
1522
1522
  config.planTemplateVariables = untrustedConfig_planTemplateVariables;
1523
1523
  const untrustedConfig_reply = untrustedConfig.reply;
@@ -1525,7 +1525,7 @@ function typeCheckConfig$3(untrustedConfig) {
1525
1525
  const untrustedConfig_reply_array = [];
1526
1526
  for (let i = 0, arrayLength = untrustedConfig_reply.length; i < arrayLength; i++) {
1527
1527
  const untrustedConfig_reply_item = untrustedConfig_reply[i];
1528
- const referenceEsTypeMessageRepresentationValidationError = validate$a(untrustedConfig_reply_item);
1528
+ const referenceEsTypeMessageRepresentationValidationError = validate$i(untrustedConfig_reply_item);
1529
1529
  if (referenceEsTypeMessageRepresentationValidationError === null) {
1530
1530
  untrustedConfig_reply_array.push(untrustedConfig_reply_item);
1531
1531
  }
@@ -1537,7 +1537,7 @@ function typeCheckConfig$3(untrustedConfig) {
1537
1537
  const untrustedConfig_variables_array = [];
1538
1538
  for (let i = 0, arrayLength = untrustedConfig_variables.length; i < arrayLength; i++) {
1539
1539
  const untrustedConfig_variables_item = untrustedConfig_variables[i];
1540
- const referenceVariableRepresentationValidationError = validate$9(untrustedConfig_variables_item);
1540
+ const referenceVariableRepresentationValidationError = validate$h(untrustedConfig_variables_item);
1541
1541
  if (referenceVariableRepresentationValidationError === null) {
1542
1542
  untrustedConfig_variables_array.push(untrustedConfig_variables_item);
1543
1543
  }
@@ -1546,30 +1546,30 @@ function typeCheckConfig$3(untrustedConfig) {
1546
1546
  }
1547
1547
  return config;
1548
1548
  }
1549
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1549
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1550
1550
  if (!untrustedIsObject(untrustedConfig)) {
1551
1551
  return null;
1552
1552
  }
1553
1553
  if (process.env.NODE_ENV !== 'production') {
1554
1554
  validateConfig(untrustedConfig, configPropertyNames);
1555
1555
  }
1556
- const config = typeCheckConfig$3(untrustedConfig);
1556
+ const config = typeCheckConfig$4(untrustedConfig);
1557
1557
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1558
1558
  return null;
1559
1559
  }
1560
1560
  return config;
1561
1561
  }
1562
- function buildNetworkSnapshot$3(luvio, config, options) {
1563
- const resourceParams = createResourceParams$3(config);
1564
- const request = createResourceRequest$3(resourceParams);
1562
+ function buildNetworkSnapshot$4(luvio, config, options) {
1563
+ const resourceParams = createResourceParams$4(config);
1564
+ const request = createResourceRequest$4(resourceParams);
1565
1565
  return luvio.dispatchResourceRequest(request, options)
1566
1566
  .then((response) => {
1567
1567
  return luvio.handleSuccessResponse(() => {
1568
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1568
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1569
1569
  return luvio.storeBroadcast().then(() => snapshot);
1570
1570
  }, () => {
1571
1571
  const cache = new StoreKeyMap();
1572
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1572
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1573
1573
  return cache;
1574
1574
  });
1575
1575
  }, (response) => {
@@ -1579,17 +1579,17 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1579
1579
  }
1580
1580
  const sendMessageAdapterFactory = (luvio) => {
1581
1581
  return function sendMessage(untrustedConfig) {
1582
- const config = validateAdapterConfig$3(untrustedConfig, sendMessage_ConfigPropertyNames);
1582
+ const config = validateAdapterConfig$4(untrustedConfig, sendMessage_ConfigPropertyNames);
1583
1583
  // Invalid or incomplete config
1584
1584
  if (config === null) {
1585
1585
  throw new Error('Invalid config for "sendMessage"');
1586
1586
  }
1587
- return buildNetworkSnapshot$3(luvio, config);
1587
+ return buildNetworkSnapshot$4(luvio, config);
1588
1588
  };
1589
1589
  };
1590
1590
 
1591
- const VERSION$4 = "504437088c2317480c651ac05a7565b5";
1592
- function validate$4(obj, path = 'PlanTemplateRepresentation') {
1591
+ const VERSION$6 = "504437088c2317480c651ac05a7565b5";
1592
+ function validate$c(obj, path = 'PlanTemplateRepresentation') {
1593
1593
  const v_error = (() => {
1594
1594
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1595
1595
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1631,10 +1631,10 @@ function validate$4(obj, path = 'PlanTemplateRepresentation') {
1631
1631
  })();
1632
1632
  return v_error === undefined ? null : v_error;
1633
1633
  }
1634
- const select$7 = function PlanTemplateRepresentationSelect() {
1634
+ const select$a = function PlanTemplateRepresentationSelect() {
1635
1635
  return {
1636
1636
  kind: 'Fragment',
1637
- version: VERSION$4,
1637
+ version: VERSION$6,
1638
1638
  private: [],
1639
1639
  selections: [
1640
1640
  {
@@ -1661,7 +1661,7 @@ const select$7 = function PlanTemplateRepresentationSelect() {
1661
1661
  ]
1662
1662
  };
1663
1663
  };
1664
- function equals$4(existing, incoming) {
1664
+ function equals$6(existing, incoming) {
1665
1665
  const existing_intent = existing.intent;
1666
1666
  const incoming_intent = incoming.intent;
1667
1667
  if (!(existing_intent === incoming_intent)) {
@@ -1695,9 +1695,9 @@ function equals$4(existing, incoming) {
1695
1695
  return true;
1696
1696
  }
1697
1697
 
1698
- const TTL$2 = 900000;
1699
- const VERSION$3 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1700
- function validate$3(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1698
+ const TTL$3 = 900000;
1699
+ const VERSION$5 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1700
+ function validate$b(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1701
1701
  const v_error = (() => {
1702
1702
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1703
1703
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1722,7 +1722,7 @@ function validate$3(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1722
1722
  for (let i = 0; i < obj_planTemplates.length; i++) {
1723
1723
  const obj_planTemplates_item = obj_planTemplates[i];
1724
1724
  const path_planTemplates_item = path_planTemplates + '[' + i + ']';
1725
- const referencepath_planTemplates_itemValidationError = validate$4(obj_planTemplates_item, path_planTemplates_item);
1725
+ const referencepath_planTemplates_itemValidationError = validate$c(obj_planTemplates_item, path_planTemplates_item);
1726
1726
  if (referencepath_planTemplates_itemValidationError !== null) {
1727
1727
  let message = 'Object doesn\'t match PlanTemplateRepresentation (at "' + path_planTemplates_item + '")\n';
1728
1728
  message += referencepath_planTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1732,15 +1732,15 @@ function validate$3(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1732
1732
  })();
1733
1733
  return v_error === undefined ? null : v_error;
1734
1734
  }
1735
- const RepresentationType$2 = 'RecommendedPlanTemplatesRepresentation';
1736
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1735
+ const RepresentationType$3 = 'RecommendedPlanTemplatesRepresentation';
1736
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1737
1737
  return input;
1738
1738
  }
1739
- const select$6 = function RecommendedPlanTemplatesRepresentationSelect() {
1740
- const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$7();
1739
+ const select$9 = function RecommendedPlanTemplatesRepresentationSelect() {
1740
+ const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$a();
1741
1741
  return {
1742
1742
  kind: 'Fragment',
1743
- version: VERSION$3,
1743
+ version: VERSION$5,
1744
1744
  private: [],
1745
1745
  selections: [
1746
1746
  {
@@ -1761,7 +1761,7 @@ const select$6 = function RecommendedPlanTemplatesRepresentationSelect() {
1761
1761
  ]
1762
1762
  };
1763
1763
  };
1764
- function equals$3(existing, incoming) {
1764
+ function equals$5(existing, incoming) {
1765
1765
  const existing_isSuccess = existing.isSuccess;
1766
1766
  const incoming_isSuccess = incoming.isSuccess;
1767
1767
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -1783,7 +1783,7 @@ function equals$3(existing, incoming) {
1783
1783
  const existing_planTemplates = existing.planTemplates;
1784
1784
  const incoming_planTemplates = incoming.planTemplates;
1785
1785
  const equals_planTemplates_items = equalsArray(existing_planTemplates, incoming_planTemplates, (existing_planTemplates_item, incoming_planTemplates_item) => {
1786
- if (!(equals$4(existing_planTemplates_item, incoming_planTemplates_item))) {
1786
+ if (!(equals$6(existing_planTemplates_item, incoming_planTemplates_item))) {
1787
1787
  return false;
1788
1788
  }
1789
1789
  });
@@ -1792,44 +1792,44 @@ function equals$3(existing, incoming) {
1792
1792
  }
1793
1793
  return true;
1794
1794
  }
1795
- const ingest$2 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1795
+ const ingest$3 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1796
1796
  if (process.env.NODE_ENV !== 'production') {
1797
- const validateError = validate$3(input);
1797
+ const validateError = validate$b(input);
1798
1798
  if (validateError !== null) {
1799
1799
  throw validateError;
1800
1800
  }
1801
1801
  }
1802
1802
  const key = path.fullPath;
1803
- const ttlToUse = TTL$2;
1804
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$3, RepresentationType$2, equals$3);
1803
+ const ttlToUse = TTL$3;
1804
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$5, RepresentationType$3, equals$5);
1805
1805
  return createLink(key);
1806
1806
  };
1807
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1807
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1808
1808
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1809
1809
  const rootKey = fullPathFactory();
1810
1810
  rootKeySet.set(rootKey, {
1811
1811
  namespace: keyPrefix,
1812
- representationName: RepresentationType$2,
1812
+ representationName: RepresentationType$3,
1813
1813
  mergeable: false
1814
1814
  });
1815
1815
  }
1816
1816
 
1817
- function select$5(luvio, params) {
1818
- return select$6();
1817
+ function select$8(luvio, params) {
1818
+ return select$9();
1819
1819
  }
1820
- function keyBuilder$4(luvio, params) {
1820
+ function keyBuilder$6(luvio, params) {
1821
1821
  return keyPrefix + '::RecommendedPlanTemplatesRepresentation:(' + 'pageType:' + params.urlParams.pageType + ',' + 'objectType:' + params.urlParams.objectType + ')';
1822
1822
  }
1823
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1824
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1823
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1824
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
1825
1825
  }
1826
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1826
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1827
1827
  const { body } = response;
1828
- const key = keyBuilder$4(luvio, resourceParams);
1829
- luvio.storeIngest(key, ingest$2, body);
1828
+ const key = keyBuilder$6(luvio, resourceParams);
1829
+ luvio.storeIngest(key, ingest$3, body);
1830
1830
  const snapshot = luvio.storeLookup({
1831
1831
  recordId: key,
1832
- node: select$5(),
1832
+ node: select$8(),
1833
1833
  variables: {},
1834
1834
  }, snapshotRefresh);
1835
1835
  if (process.env.NODE_ENV !== 'production') {
@@ -1840,19 +1840,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1840
1840
  deepFreeze(snapshot.data);
1841
1841
  return snapshot;
1842
1842
  }
1843
- function ingestError$1(luvio, params, error, snapshotRefresh) {
1844
- const key = keyBuilder$4(luvio, params);
1843
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
1844
+ const key = keyBuilder$6(luvio, params);
1845
1845
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1846
1846
  const storeMetadataParams = {
1847
- ttl: TTL$2,
1847
+ ttl: TTL$3,
1848
1848
  namespace: keyPrefix,
1849
- version: VERSION$3,
1850
- representationName: RepresentationType$2
1849
+ version: VERSION$5,
1850
+ representationName: RepresentationType$3
1851
1851
  };
1852
1852
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1853
1853
  return errorSnapshot;
1854
1854
  }
1855
- function createResourceRequest$2(config) {
1855
+ function createResourceRequest$3(config) {
1856
1856
  const headers = {};
1857
1857
  return {
1858
1858
  baseUri: '/services/data/v61.0',
@@ -1866,96 +1866,96 @@ function createResourceRequest$2(config) {
1866
1866
  };
1867
1867
  }
1868
1868
 
1869
- const adapterName$2 = 'getRecommendedPlanTemplates';
1869
+ const adapterName$3 = 'getRecommendedPlanTemplates';
1870
1870
  const getRecommendedPlanTemplates_ConfigPropertyMetadata = [
1871
1871
  generateParamConfigMetadata('pageType', true, 0 /* UrlParameter */, 0 /* String */),
1872
1872
  generateParamConfigMetadata('objectType', true, 0 /* UrlParameter */, 0 /* String */),
1873
1873
  ];
1874
- const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1875
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1876
- function keyBuilder$3(luvio, config) {
1877
- const resourceParams = createResourceParams$2(config);
1878
- return keyBuilder$4(luvio, resourceParams);
1874
+ const getRecommendedPlanTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1875
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1876
+ function keyBuilder$5(luvio, config) {
1877
+ const resourceParams = createResourceParams$3(config);
1878
+ return keyBuilder$6(luvio, resourceParams);
1879
1879
  }
1880
- function typeCheckConfig$2(untrustedConfig) {
1880
+ function typeCheckConfig$3(untrustedConfig) {
1881
1881
  const config = {};
1882
- typeCheckConfig$5(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1882
+ typeCheckConfig$6(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1883
1883
  return config;
1884
1884
  }
1885
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1885
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1886
1886
  if (!untrustedIsObject(untrustedConfig)) {
1887
1887
  return null;
1888
1888
  }
1889
1889
  if (process.env.NODE_ENV !== 'production') {
1890
1890
  validateConfig(untrustedConfig, configPropertyNames);
1891
1891
  }
1892
- const config = typeCheckConfig$2(untrustedConfig);
1892
+ const config = typeCheckConfig$3(untrustedConfig);
1893
1893
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1894
1894
  return null;
1895
1895
  }
1896
1896
  return config;
1897
1897
  }
1898
- function adapterFragment$1(luvio, config) {
1899
- createResourceParams$2(config);
1900
- return select$5();
1898
+ function adapterFragment$2(luvio, config) {
1899
+ createResourceParams$3(config);
1900
+ return select$8();
1901
1901
  }
1902
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1903
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1902
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1903
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1904
1904
  config,
1905
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1905
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1906
1906
  });
1907
1907
  return luvio.storeBroadcast().then(() => snapshot);
1908
1908
  }
1909
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
1910
- const snapshot = ingestError$1(luvio, resourceParams, response, {
1909
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
1910
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
1911
1911
  config,
1912
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1912
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1913
1913
  });
1914
1914
  return luvio.storeBroadcast().then(() => snapshot);
1915
1915
  }
1916
- function buildNetworkSnapshot$2(luvio, config, options) {
1917
- const resourceParams = createResourceParams$2(config);
1918
- const request = createResourceRequest$2(resourceParams);
1916
+ function buildNetworkSnapshot$3(luvio, config, options) {
1917
+ const resourceParams = createResourceParams$3(config);
1918
+ const request = createResourceRequest$3(resourceParams);
1919
1919
  return luvio.dispatchResourceRequest(request, options)
1920
1920
  .then((response) => {
1921
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1921
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1922
1922
  const cache = new StoreKeyMap();
1923
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1923
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1924
1924
  return cache;
1925
1925
  });
1926
1926
  }, (response) => {
1927
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1927
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1928
1928
  });
1929
1929
  }
1930
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1931
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1930
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1931
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
1932
1932
  }
1933
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1933
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1934
1934
  const { luvio, config } = context;
1935
1935
  const selector = {
1936
- recordId: keyBuilder$3(luvio, config),
1937
- node: adapterFragment$1(luvio, config),
1936
+ recordId: keyBuilder$5(luvio, config),
1937
+ node: adapterFragment$2(luvio, config),
1938
1938
  variables: {},
1939
1939
  };
1940
1940
  const cacheSnapshot = storeLookup(selector, {
1941
1941
  config,
1942
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1942
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1943
1943
  });
1944
1944
  return cacheSnapshot;
1945
1945
  }
1946
1946
  const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCopilotBot__getRecommendedPlanTemplates(untrustedConfig, requestContext) {
1947
- const config = validateAdapterConfig$2(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
1947
+ const config = validateAdapterConfig$3(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
1948
1948
  // Invalid or incomplete config
1949
1949
  if (config === null) {
1950
1950
  return null;
1951
1951
  }
1952
1952
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1953
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1953
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1954
1954
  };
1955
1955
 
1956
- const TTL$1 = 100;
1957
- const VERSION$2 = "7454bdd46af1622eb677a9bb9eac3a8b";
1958
- function validate$2(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
1956
+ const TTL$2 = 100;
1957
+ const VERSION$4 = "7454bdd46af1622eb677a9bb9eac3a8b";
1958
+ function validate$a(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
1959
1959
  const v_error = (() => {
1960
1960
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1961
1961
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1968,23 +1968,23 @@ function validate$2(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
1968
1968
  })();
1969
1969
  return v_error === undefined ? null : v_error;
1970
1970
  }
1971
- const RepresentationType$1 = 'CopilotLLMFeedbackOutputRepresentation';
1972
- function keyBuilder$2(luvio, config) {
1973
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
1971
+ const RepresentationType$2 = 'CopilotLLMFeedbackOutputRepresentation';
1972
+ function keyBuilder$4(luvio, config) {
1973
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1974
1974
  }
1975
1975
  function keyBuilderFromType(luvio, object) {
1976
1976
  const keyParams = {
1977
1977
  id: object.submitFeedbackStatus
1978
1978
  };
1979
- return keyBuilder$2(luvio, keyParams);
1979
+ return keyBuilder$4(luvio, keyParams);
1980
1980
  }
1981
- function normalize$1(input, existing, path, luvio, store, timestamp) {
1981
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1982
1982
  return input;
1983
1983
  }
1984
- const select$4 = function CopilotLLMFeedbackOutputRepresentationSelect() {
1984
+ const select$7 = function CopilotLLMFeedbackOutputRepresentationSelect() {
1985
1985
  return {
1986
1986
  kind: 'Fragment',
1987
- version: VERSION$2,
1987
+ version: VERSION$4,
1988
1988
  private: [],
1989
1989
  selections: [
1990
1990
  {
@@ -1994,7 +1994,7 @@ const select$4 = function CopilotLLMFeedbackOutputRepresentationSelect() {
1994
1994
  ]
1995
1995
  };
1996
1996
  };
1997
- function equals$2(existing, incoming) {
1997
+ function equals$4(existing, incoming) {
1998
1998
  const existing_submitFeedbackStatus = existing.submitFeedbackStatus;
1999
1999
  const incoming_submitFeedbackStatus = incoming.submitFeedbackStatus;
2000
2000
  if (!(existing_submitFeedbackStatus === incoming_submitFeedbackStatus)) {
@@ -2002,41 +2002,41 @@ function equals$2(existing, incoming) {
2002
2002
  }
2003
2003
  return true;
2004
2004
  }
2005
- const ingest$1 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2005
+ const ingest$2 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2006
2006
  if (process.env.NODE_ENV !== 'production') {
2007
- const validateError = validate$2(input);
2007
+ const validateError = validate$a(input);
2008
2008
  if (validateError !== null) {
2009
2009
  throw validateError;
2010
2010
  }
2011
2011
  }
2012
2012
  const key = keyBuilderFromType(luvio, input);
2013
- const ttlToUse = TTL$1;
2014
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
2013
+ const ttlToUse = TTL$2;
2014
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$4, RepresentationType$2, equals$4);
2015
2015
  return createLink(key);
2016
2016
  };
2017
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2017
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2018
2018
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2019
2019
  const rootKey = keyBuilderFromType(luvio, input);
2020
2020
  rootKeySet.set(rootKey, {
2021
2021
  namespace: keyPrefix,
2022
- representationName: RepresentationType$1,
2022
+ representationName: RepresentationType$2,
2023
2023
  mergeable: false
2024
2024
  });
2025
2025
  }
2026
2026
 
2027
- function select$3(luvio, params) {
2028
- return select$4();
2027
+ function select$6(luvio, params) {
2028
+ return select$7();
2029
2029
  }
2030
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2031
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
2030
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2031
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2032
2032
  }
2033
- function ingestSuccess$1(luvio, resourceParams, response) {
2033
+ function ingestSuccess$2(luvio, resourceParams, response) {
2034
2034
  const { body } = response;
2035
2035
  const key = keyBuilderFromType(luvio, body);
2036
- luvio.storeIngest(key, ingest$1, body);
2036
+ luvio.storeIngest(key, ingest$2, body);
2037
2037
  const snapshot = luvio.storeLookup({
2038
2038
  recordId: key,
2039
- node: select$3(),
2039
+ node: select$6(),
2040
2040
  variables: {},
2041
2041
  });
2042
2042
  if (process.env.NODE_ENV !== 'production') {
@@ -2047,7 +2047,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
2047
2047
  deepFreeze(snapshot.data);
2048
2048
  return snapshot;
2049
2049
  }
2050
- function createResourceRequest$1(config) {
2050
+ function createResourceRequest$2(config) {
2051
2051
  const headers = {};
2052
2052
  return {
2053
2053
  baseUri: '/services/data/v61.0',
@@ -2061,7 +2061,7 @@ function createResourceRequest$1(config) {
2061
2061
  };
2062
2062
  }
2063
2063
 
2064
- const adapterName$1 = 'submitFeedback';
2064
+ const adapterName$2 = 'submitFeedback';
2065
2065
  const submitFeedback_ConfigPropertyMetadata = [
2066
2066
  generateParamConfigMetadata('details', true, 2 /* Body */, 4 /* Unsupported */),
2067
2067
  generateParamConfigMetadata('feedback', true, 2 /* Body */, 0 /* String */),
@@ -2069,11 +2069,11 @@ const submitFeedback_ConfigPropertyMetadata = [
2069
2069
  generateParamConfigMetadata('sessionId', true, 2 /* Body */, 0 /* String */),
2070
2070
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2071
2071
  ];
2072
- const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, submitFeedback_ConfigPropertyMetadata);
2073
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(submitFeedback_ConfigPropertyMetadata);
2074
- function typeCheckConfig$1(untrustedConfig) {
2072
+ const submitFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, submitFeedback_ConfigPropertyMetadata);
2073
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(submitFeedback_ConfigPropertyMetadata);
2074
+ function typeCheckConfig$2(untrustedConfig) {
2075
2075
  const config = {};
2076
- typeCheckConfig$5(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2076
+ typeCheckConfig$6(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2077
2077
  const untrustedConfig_details = untrustedConfig.details;
2078
2078
  if (untrustedIsObject(untrustedConfig_details)) {
2079
2079
  const untrustedConfig_details_object = {};
@@ -2091,30 +2091,30 @@ function typeCheckConfig$1(untrustedConfig) {
2091
2091
  }
2092
2092
  return config;
2093
2093
  }
2094
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2094
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2095
2095
  if (!untrustedIsObject(untrustedConfig)) {
2096
2096
  return null;
2097
2097
  }
2098
2098
  if (process.env.NODE_ENV !== 'production') {
2099
2099
  validateConfig(untrustedConfig, configPropertyNames);
2100
2100
  }
2101
- const config = typeCheckConfig$1(untrustedConfig);
2101
+ const config = typeCheckConfig$2(untrustedConfig);
2102
2102
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2103
2103
  return null;
2104
2104
  }
2105
2105
  return config;
2106
2106
  }
2107
- function buildNetworkSnapshot$1(luvio, config, options) {
2108
- const resourceParams = createResourceParams$1(config);
2109
- const request = createResourceRequest$1(resourceParams);
2107
+ function buildNetworkSnapshot$2(luvio, config, options) {
2108
+ const resourceParams = createResourceParams$2(config);
2109
+ const request = createResourceRequest$2(resourceParams);
2110
2110
  return luvio.dispatchResourceRequest(request, options)
2111
2111
  .then((response) => {
2112
2112
  return luvio.handleSuccessResponse(() => {
2113
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
2113
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
2114
2114
  return luvio.storeBroadcast().then(() => snapshot);
2115
2115
  }, () => {
2116
2116
  const cache = new StoreKeyMap();
2117
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2117
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2118
2118
  return cache;
2119
2119
  });
2120
2120
  }, (response) => {
@@ -2124,15 +2124,509 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2124
2124
  }
2125
2125
  const submitFeedbackAdapterFactory = (luvio) => {
2126
2126
  return function submitFeedback(untrustedConfig) {
2127
- const config = validateAdapterConfig$1(untrustedConfig, submitFeedback_ConfigPropertyNames);
2127
+ const config = validateAdapterConfig$2(untrustedConfig, submitFeedback_ConfigPropertyNames);
2128
2128
  // Invalid or incomplete config
2129
2129
  if (config === null) {
2130
2130
  throw new Error('Invalid config for "submitFeedback"');
2131
2131
  }
2132
- return buildNetworkSnapshot$1(luvio, config);
2132
+ return buildNetworkSnapshot$2(luvio, config);
2133
2133
  };
2134
2134
  };
2135
2135
 
2136
+ function validate$9(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
2137
+ const v_error = (() => {
2138
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2139
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2140
+ }
2141
+ if (obj.subViewDefinitions !== undefined) {
2142
+ const obj_subViewDefinitions = obj.subViewDefinitions;
2143
+ const path_subViewDefinitions = path + '.subViewDefinitions';
2144
+ if (typeof obj_subViewDefinitions !== 'boolean') {
2145
+ return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
2146
+ }
2147
+ }
2148
+ if (obj.target !== undefined) {
2149
+ const obj_target = obj.target;
2150
+ const path_target = path + '.target';
2151
+ if (typeof obj_target !== 'string') {
2152
+ return new TypeError('Expected "string" but received "' + typeof obj_target + '" (at "' + path_target + '")');
2153
+ }
2154
+ }
2155
+ })();
2156
+ return v_error === undefined ? null : v_error;
2157
+ }
2158
+
2159
+ function validate$8(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
2160
+ const v_error = (() => {
2161
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2162
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2163
+ }
2164
+ if (obj.subViewDefinitions !== undefined) {
2165
+ const obj_subViewDefinitions = obj.subViewDefinitions;
2166
+ const path_subViewDefinitions = path + '.subViewDefinitions';
2167
+ if (typeof obj_subViewDefinitions !== 'boolean') {
2168
+ return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
2169
+ }
2170
+ }
2171
+ if (obj.target !== undefined) {
2172
+ const obj_target = obj.target;
2173
+ const path_target = path + '.target';
2174
+ if (typeof obj_target !== 'string') {
2175
+ return new TypeError('Expected "string" but received "' + typeof obj_target + '" (at "' + path_target + '")');
2176
+ }
2177
+ }
2178
+ })();
2179
+ return v_error === undefined ? null : v_error;
2180
+ }
2181
+
2182
+ function validate$7(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
2183
+ const v_error = (() => {
2184
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2185
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2186
+ }
2187
+ if (obj.propertyNames !== undefined) {
2188
+ const obj_propertyNames = obj.propertyNames;
2189
+ const path_propertyNames = path + '.propertyNames';
2190
+ if (!ArrayIsArray(obj_propertyNames)) {
2191
+ return new TypeError('Expected "array" but received "' + typeof obj_propertyNames + '" (at "' + path_propertyNames + '")');
2192
+ }
2193
+ for (let i = 0; i < obj_propertyNames.length; i++) {
2194
+ const obj_propertyNames_item = obj_propertyNames[i];
2195
+ const path_propertyNames_item = path_propertyNames + '[' + i + ']';
2196
+ if (typeof obj_propertyNames_item !== 'string') {
2197
+ return new TypeError('Expected "string" but received "' + typeof obj_propertyNames_item + '" (at "' + path_propertyNames_item + '")');
2198
+ }
2199
+ }
2200
+ }
2201
+ })();
2202
+ return v_error === undefined ? null : v_error;
2203
+ }
2204
+
2205
+ function validate$6(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
2206
+ const v_error = (() => {
2207
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2208
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2209
+ }
2210
+ if (obj.filterConfig !== undefined) {
2211
+ const obj_filterConfig = obj.filterConfig;
2212
+ const path_filterConfig = path + '.filterConfig';
2213
+ const referencepath_filterConfigValidationError = validate$7(obj_filterConfig, path_filterConfig);
2214
+ if (referencepath_filterConfigValidationError !== null) {
2215
+ let message = 'Object doesn\'t match FollowUpActionsFilterConfigRepresentation (at "' + path_filterConfig + '")\n';
2216
+ message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2217
+ return new TypeError(message);
2218
+ }
2219
+ }
2220
+ if (obj.subSchemaDefinitions !== undefined) {
2221
+ const obj_subSchemaDefinitions = obj.subSchemaDefinitions;
2222
+ const path_subSchemaDefinitions = path + '.subSchemaDefinitions';
2223
+ if (typeof obj_subSchemaDefinitions !== 'boolean') {
2224
+ return new TypeError('Expected "boolean" but received "' + typeof obj_subSchemaDefinitions + '" (at "' + path_subSchemaDefinitions + '")');
2225
+ }
2226
+ }
2227
+ })();
2228
+ return v_error === undefined ? null : v_error;
2229
+ }
2230
+
2231
+ function validate$5(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
2232
+ const v_error = (() => {
2233
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2234
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2235
+ }
2236
+ if (obj.descriptor !== undefined) {
2237
+ const obj_descriptor = obj.descriptor;
2238
+ const path_descriptor = path + '.descriptor';
2239
+ if (typeof obj_descriptor !== 'string') {
2240
+ return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
2241
+ }
2242
+ }
2243
+ if (obj.propertyName !== undefined) {
2244
+ const obj_propertyName = obj.propertyName;
2245
+ const path_propertyName = path + '.propertyName';
2246
+ if (typeof obj_propertyName !== 'string') {
2247
+ return new TypeError('Expected "string" but received "' + typeof obj_propertyName + '" (at "' + path_propertyName + '")');
2248
+ }
2249
+ }
2250
+ })();
2251
+ return v_error === undefined ? null : v_error;
2252
+ }
2253
+
2254
+ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2255
+ const v_error = (() => {
2256
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2257
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2258
+ }
2259
+ const obj_descriptor = obj.descriptor;
2260
+ const path_descriptor = path + '.descriptor';
2261
+ if (typeof obj_descriptor !== 'string') {
2262
+ return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
2263
+ }
2264
+ if (obj.designConfig !== undefined) {
2265
+ const obj_designConfig = obj.designConfig;
2266
+ const path_designConfig = path + '.designConfig';
2267
+ const referencepath_designConfigValidationError = validate$9(obj_designConfig, path_designConfig);
2268
+ if (referencepath_designConfigValidationError !== null) {
2269
+ let message = 'Object doesn\'t match FollowUpActionsDesignConfigRepresentation (at "' + path_designConfig + '")\n';
2270
+ message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2271
+ return new TypeError(message);
2272
+ }
2273
+ }
2274
+ if (obj.renditionConfig !== undefined) {
2275
+ const obj_renditionConfig = obj.renditionConfig;
2276
+ const path_renditionConfig = path + '.renditionConfig';
2277
+ const referencepath_renditionConfigValidationError = validate$8(obj_renditionConfig, path_renditionConfig);
2278
+ if (referencepath_renditionConfigValidationError !== null) {
2279
+ let message = 'Object doesn\'t match FollowUpActionsRenditionConfigRepresentation (at "' + path_renditionConfig + '")\n';
2280
+ message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2281
+ return new TypeError(message);
2282
+ }
2283
+ }
2284
+ if (obj.schemaConfig !== undefined) {
2285
+ const obj_schemaConfig = obj.schemaConfig;
2286
+ const path_schemaConfig = path + '.schemaConfig';
2287
+ const referencepath_schemaConfigValidationError = validate$6(obj_schemaConfig, path_schemaConfig);
2288
+ if (referencepath_schemaConfigValidationError !== null) {
2289
+ let message = 'Object doesn\'t match FollowUpActionsSchemaConfigRepresentation (at "' + path_schemaConfig + '")\n';
2290
+ message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2291
+ return new TypeError(message);
2292
+ }
2293
+ }
2294
+ if (obj.sourceDescriptor !== undefined) {
2295
+ const obj_sourceDescriptor = obj.sourceDescriptor;
2296
+ const path_sourceDescriptor = path + '.sourceDescriptor';
2297
+ const referencepath_sourceDescriptorValidationError = validate$5(obj_sourceDescriptor, path_sourceDescriptor);
2298
+ if (referencepath_sourceDescriptorValidationError !== null) {
2299
+ let message = 'Object doesn\'t match FollowUpActionsSourceDescriptorRepresentation (at "' + path_sourceDescriptor + '")\n';
2300
+ message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2301
+ return new TypeError(message);
2302
+ }
2303
+ }
2304
+ })();
2305
+ return v_error === undefined ? null : v_error;
2306
+ }
2307
+
2308
+ const VERSION$3 = "f3b8da658dda1468e0357f1fad159c79";
2309
+ function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2310
+ const v_error = (() => {
2311
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2312
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2313
+ }
2314
+ const obj_actions = obj.actions;
2315
+ const path_actions = path + '.actions';
2316
+ if (obj_actions === undefined) {
2317
+ return new TypeError('Expected "defined" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
2318
+ }
2319
+ const obj_blockRenderers = obj.blockRenderers;
2320
+ const path_blockRenderers = path + '.blockRenderers';
2321
+ if (obj_blockRenderers === undefined) {
2322
+ return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
2323
+ }
2324
+ })();
2325
+ return v_error === undefined ? null : v_error;
2326
+ }
2327
+ const select$5 = function FollowUpActionsRepresentationSelect() {
2328
+ return {
2329
+ kind: 'Fragment',
2330
+ version: VERSION$3,
2331
+ private: [],
2332
+ selections: [
2333
+ {
2334
+ name: 'actions',
2335
+ kind: 'Object',
2336
+ // any
2337
+ },
2338
+ {
2339
+ name: 'blockRenderers',
2340
+ kind: 'Object',
2341
+ // any
2342
+ }
2343
+ ]
2344
+ };
2345
+ };
2346
+ function equals$3(existing, incoming) {
2347
+ const existing_actions = existing.actions;
2348
+ const incoming_actions = incoming.actions;
2349
+ if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
2350
+ return false;
2351
+ }
2352
+ const existing_blockRenderers = existing.blockRenderers;
2353
+ const incoming_blockRenderers = incoming.blockRenderers;
2354
+ if (JSONStringify(incoming_blockRenderers) !== JSONStringify(existing_blockRenderers)) {
2355
+ return false;
2356
+ }
2357
+ return true;
2358
+ }
2359
+
2360
+ const TTL$1 = 900000;
2361
+ const VERSION$2 = "280b43a12fefd5d1adb432fd664b7def";
2362
+ function validate$2(obj, path = 'CopilotFollowUpActionsRepresentation') {
2363
+ const v_error = (() => {
2364
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2365
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2366
+ }
2367
+ const obj_actions = obj.actions;
2368
+ const path_actions = path + '.actions';
2369
+ if (!ArrayIsArray(obj_actions)) {
2370
+ return new TypeError('Expected "array" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
2371
+ }
2372
+ for (let i = 0; i < obj_actions.length; i++) {
2373
+ const obj_actions_item = obj_actions[i];
2374
+ const path_actions_item = path_actions + '[' + i + ']';
2375
+ const referencepath_actions_itemValidationError = validate$3(obj_actions_item, path_actions_item);
2376
+ if (referencepath_actions_itemValidationError !== null) {
2377
+ let message = 'Object doesn\'t match FollowUpActionsRepresentation (at "' + path_actions_item + '")\n';
2378
+ message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2379
+ return new TypeError(message);
2380
+ }
2381
+ }
2382
+ if (obj.errorMessage !== undefined) {
2383
+ const obj_errorMessage = obj.errorMessage;
2384
+ const path_errorMessage = path + '.errorMessage';
2385
+ if (typeof obj_errorMessage !== 'string') {
2386
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
2387
+ }
2388
+ }
2389
+ const obj_isSuccess = obj.isSuccess;
2390
+ const path_isSuccess = path + '.isSuccess';
2391
+ if (typeof obj_isSuccess !== 'boolean') {
2392
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
2393
+ }
2394
+ })();
2395
+ return v_error === undefined ? null : v_error;
2396
+ }
2397
+ const RepresentationType$1 = 'CopilotFollowUpActionsRepresentation';
2398
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
2399
+ return input;
2400
+ }
2401
+ const select$4 = function CopilotFollowUpActionsRepresentationSelect() {
2402
+ const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$5();
2403
+ return {
2404
+ kind: 'Fragment',
2405
+ version: VERSION$2,
2406
+ private: [],
2407
+ selections: [
2408
+ {
2409
+ name: 'actions',
2410
+ kind: 'Object',
2411
+ plural: true,
2412
+ selections: FollowUpActionsRepresentation__selections
2413
+ },
2414
+ {
2415
+ name: 'errorMessage',
2416
+ kind: 'Scalar',
2417
+ required: false
2418
+ },
2419
+ {
2420
+ name: 'isSuccess',
2421
+ kind: 'Scalar'
2422
+ }
2423
+ ]
2424
+ };
2425
+ };
2426
+ function equals$2(existing, incoming) {
2427
+ const existing_isSuccess = existing.isSuccess;
2428
+ const incoming_isSuccess = incoming.isSuccess;
2429
+ if (!(existing_isSuccess === incoming_isSuccess)) {
2430
+ return false;
2431
+ }
2432
+ const existing_errorMessage = existing.errorMessage;
2433
+ const incoming_errorMessage = incoming.errorMessage;
2434
+ // if at least one of these optionals is defined
2435
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
2436
+ // if one of these is not defined we know the other is defined and therefore
2437
+ // not equal
2438
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
2439
+ return false;
2440
+ }
2441
+ if (!(existing_errorMessage === incoming_errorMessage)) {
2442
+ return false;
2443
+ }
2444
+ }
2445
+ const existing_actions = existing.actions;
2446
+ const incoming_actions = incoming.actions;
2447
+ const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
2448
+ if (!(equals$3(existing_actions_item, incoming_actions_item))) {
2449
+ return false;
2450
+ }
2451
+ });
2452
+ if (equals_actions_items === false) {
2453
+ return false;
2454
+ }
2455
+ return true;
2456
+ }
2457
+ const ingest$1 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
2458
+ if (process.env.NODE_ENV !== 'production') {
2459
+ const validateError = validate$2(input);
2460
+ if (validateError !== null) {
2461
+ throw validateError;
2462
+ }
2463
+ }
2464
+ const key = path.fullPath;
2465
+ const ttlToUse = TTL$1;
2466
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
2467
+ return createLink(key);
2468
+ };
2469
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2470
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2471
+ const rootKey = fullPathFactory();
2472
+ rootKeySet.set(rootKey, {
2473
+ namespace: keyPrefix,
2474
+ representationName: RepresentationType$1,
2475
+ mergeable: false
2476
+ });
2477
+ }
2478
+
2479
+ function select$3(luvio, params) {
2480
+ return select$4();
2481
+ }
2482
+ function keyBuilder$3(luvio, params) {
2483
+ 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(',') + ']' + ')';
2484
+ }
2485
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2486
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
2487
+ }
2488
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
2489
+ const { body } = response;
2490
+ const key = keyBuilder$3(luvio, resourceParams);
2491
+ luvio.storeIngest(key, ingest$1, body);
2492
+ const snapshot = luvio.storeLookup({
2493
+ recordId: key,
2494
+ node: select$3(),
2495
+ variables: {},
2496
+ }, snapshotRefresh);
2497
+ if (process.env.NODE_ENV !== 'production') {
2498
+ if (snapshot.state !== 'Fulfilled') {
2499
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2500
+ }
2501
+ }
2502
+ deepFreeze(snapshot.data);
2503
+ return snapshot;
2504
+ }
2505
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
2506
+ const key = keyBuilder$3(luvio, params);
2507
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2508
+ const storeMetadataParams = {
2509
+ ttl: TTL$1,
2510
+ namespace: keyPrefix,
2511
+ version: VERSION$2,
2512
+ representationName: RepresentationType$1
2513
+ };
2514
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2515
+ return errorSnapshot;
2516
+ }
2517
+ function createResourceRequest$1(config) {
2518
+ const headers = {};
2519
+ return {
2520
+ baseUri: '/services/data/v61.0',
2521
+ basePath: '/connect/follow-up-actions',
2522
+ method: 'post',
2523
+ body: config.body,
2524
+ urlParams: {},
2525
+ queryParams: {},
2526
+ headers,
2527
+ priority: 'normal',
2528
+ };
2529
+ }
2530
+
2531
+ const adapterName$1 = 'getFollowUpActions';
2532
+ const getFollowUpActions_ConfigPropertyMetadata = [
2533
+ generateParamConfigMetadata('language', false, 2 /* Body */, 0 /* String */),
2534
+ generateParamConfigMetadata('followUpActionsInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
2535
+ ];
2536
+ const getFollowUpActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getFollowUpActions_ConfigPropertyMetadata);
2537
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(getFollowUpActions_ConfigPropertyMetadata);
2538
+ function keyBuilder$2(luvio, config) {
2539
+ const resourceParams = createResourceParams$1(config);
2540
+ return keyBuilder$3(luvio, resourceParams);
2541
+ }
2542
+ function typeCheckConfig$1(untrustedConfig) {
2543
+ const config = {};
2544
+ typeCheckConfig$6(untrustedConfig, config, getFollowUpActions_ConfigPropertyMetadata);
2545
+ const untrustedConfig_followUpActionsInputs = untrustedConfig.followUpActionsInputs;
2546
+ if (ArrayIsArray$1(untrustedConfig_followUpActionsInputs)) {
2547
+ const untrustedConfig_followUpActionsInputs_array = [];
2548
+ for (let i = 0, arrayLength = untrustedConfig_followUpActionsInputs.length; i < arrayLength; i++) {
2549
+ const untrustedConfig_followUpActionsInputs_item = untrustedConfig_followUpActionsInputs[i];
2550
+ const referenceFollowUpActionsInputRepresentationValidationError = validate$4(untrustedConfig_followUpActionsInputs_item);
2551
+ if (referenceFollowUpActionsInputRepresentationValidationError === null) {
2552
+ untrustedConfig_followUpActionsInputs_array.push(untrustedConfig_followUpActionsInputs_item);
2553
+ }
2554
+ }
2555
+ config.followUpActionsInputs = untrustedConfig_followUpActionsInputs_array;
2556
+ }
2557
+ return config;
2558
+ }
2559
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2560
+ if (!untrustedIsObject(untrustedConfig)) {
2561
+ return null;
2562
+ }
2563
+ if (process.env.NODE_ENV !== 'production') {
2564
+ validateConfig(untrustedConfig, configPropertyNames);
2565
+ }
2566
+ const config = typeCheckConfig$1(untrustedConfig);
2567
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2568
+ return null;
2569
+ }
2570
+ return config;
2571
+ }
2572
+ function adapterFragment$1(luvio, config) {
2573
+ createResourceParams$1(config);
2574
+ return select$3();
2575
+ }
2576
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2577
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
2578
+ config,
2579
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2580
+ });
2581
+ return luvio.storeBroadcast().then(() => snapshot);
2582
+ }
2583
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
2584
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
2585
+ config,
2586
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2587
+ });
2588
+ return luvio.storeBroadcast().then(() => snapshot);
2589
+ }
2590
+ function buildNetworkSnapshot$1(luvio, config, options) {
2591
+ const resourceParams = createResourceParams$1(config);
2592
+ const request = createResourceRequest$1(resourceParams);
2593
+ return luvio.dispatchResourceRequest(request, options)
2594
+ .then((response) => {
2595
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2596
+ const cache = new StoreKeyMap();
2597
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2598
+ return cache;
2599
+ });
2600
+ }, (response) => {
2601
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2602
+ });
2603
+ }
2604
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2605
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
2606
+ }
2607
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2608
+ const { luvio, config } = context;
2609
+ const selector = {
2610
+ recordId: keyBuilder$2(luvio, config),
2611
+ node: adapterFragment$1(luvio, config),
2612
+ variables: {},
2613
+ };
2614
+ const cacheSnapshot = storeLookup(selector, {
2615
+ config,
2616
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2617
+ });
2618
+ return cacheSnapshot;
2619
+ }
2620
+ const getFollowUpActionsAdapterFactory = (luvio) => function einsteinCopilotBot__getFollowUpActions(untrustedConfig, requestContext) {
2621
+ const config = validateAdapterConfig$1(untrustedConfig, getFollowUpActions_ConfigPropertyNames);
2622
+ // Invalid or incomplete config
2623
+ if (config === null) {
2624
+ return null;
2625
+ }
2626
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2627
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2628
+ };
2629
+
2136
2630
  const VERSION$1 = "3d8b52828ddd11f23f898b0bba8db802";
2137
2631
  function validate$1(obj, path = 'CopilotQuickActionRepresentation') {
2138
2632
  const v_error = (() => {
@@ -2727,14 +3221,14 @@ const getRecommendedActions_ConfigPropertyMetadata = [
2727
3221
  generateParamConfigMetadata('formFactor', false, 1 /* QueryParameter */, 0 /* String */),
2728
3222
  ];
2729
3223
  const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getRecommendedActions_ConfigPropertyMetadata);
2730
- const createResourceParams = /*#__PURE__*/ createResourceParams$5(getRecommendedActions_ConfigPropertyMetadata);
3224
+ const createResourceParams = /*#__PURE__*/ createResourceParams$6(getRecommendedActions_ConfigPropertyMetadata);
2731
3225
  function keyBuilder(luvio, config) {
2732
3226
  const resourceParams = createResourceParams(config);
2733
3227
  return keyBuilder$1(luvio, resourceParams);
2734
3228
  }
2735
3229
  function typeCheckConfig(untrustedConfig) {
2736
3230
  const config = {};
2737
- typeCheckConfig$5(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
3231
+ typeCheckConfig$6(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
2738
3232
  return config;
2739
3233
  }
2740
3234
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2783,7 +3277,7 @@ function buildNetworkSnapshot(luvio, config, options) {
2783
3277
  });
2784
3278
  }
2785
3279
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2786
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3280
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2787
3281
  }
2788
3282
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
2789
3283
  const { luvio, config } = context;
@@ -2808,4 +3302,4 @@ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotB
2808
3302
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2809
3303
  };
2810
3304
 
2811
- export { getBotIdAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };
3305
+ export { getBotIdAdapterFactory, getFollowUpActionsAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };