@salesforce/lds-adapters-service-einstein-copilot-bot 1.294.0 → 1.295.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, StoreKeyMap, createResourceParams as createResourceParams$4, typeCheckConfig as typeCheckConfig$4 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, StoreKeyMap, createResourceParams as createResourceParams$5, typeCheckConfig as typeCheckConfig$5 } 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$4 = 30000;
116
- const VERSION$9 = "ab85410a28124cfed3d8eae7b8236853";
117
- function validate$a(obj, path = 'CopilotBotInfoRepresentation') {
115
+ const TTL$5 = 30000;
116
+ const VERSION$a = "ab85410a28124cfed3d8eae7b8236853";
117
+ function validate$b(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$a(obj, path = 'CopilotBotInfoRepresentation') {
141
141
  })();
142
142
  return v_error === undefined ? null : v_error;
143
143
  }
144
- const RepresentationType$4 = 'CopilotBotInfoRepresentation';
145
- function normalize$4(input, existing, path, luvio, store, timestamp) {
144
+ const RepresentationType$5 = 'CopilotBotInfoRepresentation';
145
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
146
146
  return input;
147
147
  }
148
- const select$d = function CopilotBotInfoRepresentationSelect() {
148
+ const select$f = function CopilotBotInfoRepresentationSelect() {
149
149
  return {
150
150
  kind: 'Fragment',
151
- version: VERSION$9,
151
+ version: VERSION$a,
152
152
  private: [],
153
153
  selections: [
154
154
  {
@@ -168,7 +168,7 @@ const select$d = function CopilotBotInfoRepresentationSelect() {
168
168
  ]
169
169
  };
170
170
  };
171
- function equals$9(existing, incoming) {
171
+ function equals$a(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$9(existing, incoming) {
202
202
  }
203
203
  return true;
204
204
  }
205
- const ingest$4 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
205
+ const ingest$5 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
206
206
  if (process.env.NODE_ENV !== 'production') {
207
- const validateError = validate$a(input);
207
+ const validateError = validate$b(input);
208
208
  if (validateError !== null) {
209
209
  throw validateError;
210
210
  }
211
211
  }
212
212
  const key = path.fullPath;
213
- const ttlToUse = TTL$4;
214
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$9, RepresentationType$4, equals$9);
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);
215
215
  return createLink(key);
216
216
  };
217
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
217
+ function getTypeCacheKeys$5(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$4,
222
+ representationName: RepresentationType$5,
223
223
  mergeable: false
224
224
  });
225
225
  }
226
226
 
227
- function select$c(luvio, params) {
228
- return select$d();
227
+ function select$e(luvio, params) {
228
+ return select$f();
229
229
  }
230
- function keyBuilder$7(luvio, params) {
230
+ function keyBuilder$8(luvio, params) {
231
231
  return keyPrefix + '::CopilotBotInfoRepresentation:(' + ')';
232
232
  }
233
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
234
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7());
233
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
234
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8());
235
235
  }
236
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
236
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
237
237
  const { body } = response;
238
- const key = keyBuilder$7();
239
- luvio.storeIngest(key, ingest$4, body);
238
+ const key = keyBuilder$8();
239
+ luvio.storeIngest(key, ingest$5, body);
240
240
  const snapshot = luvio.storeLookup({
241
241
  recordId: key,
242
- node: select$c(),
242
+ node: select$e(),
243
243
  variables: {},
244
244
  }, snapshotRefresh);
245
245
  if (process.env.NODE_ENV !== 'production') {
@@ -251,18 +251,18 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
251
251
  return snapshot;
252
252
  }
253
253
  function ingestError$2(luvio, params, error, snapshotRefresh) {
254
- const key = keyBuilder$7();
254
+ const key = keyBuilder$8();
255
255
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
256
256
  const storeMetadataParams = {
257
- ttl: TTL$4,
257
+ ttl: TTL$5,
258
258
  namespace: keyPrefix,
259
- version: VERSION$9,
260
- representationName: RepresentationType$4
259
+ version: VERSION$a,
260
+ representationName: RepresentationType$5
261
261
  };
262
262
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
263
263
  return errorSnapshot;
264
264
  }
265
- function createResourceRequest$3(config) {
265
+ function createResourceRequest$4(config) {
266
266
  const headers = {};
267
267
  return {
268
268
  baseUri: '/services/data/v62.0',
@@ -276,57 +276,57 @@ function createResourceRequest$3(config) {
276
276
  };
277
277
  }
278
278
 
279
- const adapterName$3 = 'getBotId';
279
+ const adapterName$4 = 'getBotId';
280
280
  const getBotId_ConfigPropertyMetadata = [];
281
- const getBotId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getBotId_ConfigPropertyMetadata);
282
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getBotId_ConfigPropertyMetadata);
283
- function keyBuilder$6(luvio, config) {
284
- createResourceParams$3(config);
285
- return keyBuilder$7();
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();
286
286
  }
287
- function typeCheckConfig$3(untrustedConfig) {
287
+ function typeCheckConfig$4(untrustedConfig) {
288
288
  const config = {};
289
289
  return config;
290
290
  }
291
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
291
+ function validateAdapterConfig$4(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$3();
298
+ const config = typeCheckConfig$4();
299
299
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
300
300
  return null;
301
301
  }
302
302
  return config;
303
303
  }
304
304
  function adapterFragment$2(luvio, config) {
305
- createResourceParams$3(config);
306
- return select$c();
305
+ createResourceParams$4(config);
306
+ return select$e();
307
307
  }
308
308
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
309
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
309
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
310
310
  config,
311
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
311
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
312
312
  });
313
313
  return luvio.storeBroadcast().then(() => snapshot);
314
314
  }
315
315
  function onFetchResponseError$2(luvio, config, resourceParams, response) {
316
316
  const snapshot = ingestError$2(luvio, resourceParams, response, {
317
317
  config,
318
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
318
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
319
319
  });
320
320
  return luvio.storeBroadcast().then(() => snapshot);
321
321
  }
322
- function buildNetworkSnapshot$3(luvio, config, options) {
323
- const resourceParams = createResourceParams$3(config);
324
- const request = createResourceRequest$3();
322
+ function buildNetworkSnapshot$4(luvio, config, options) {
323
+ const resourceParams = createResourceParams$4(config);
324
+ const request = createResourceRequest$4();
325
325
  return luvio.dispatchResourceRequest(request, options)
326
326
  .then((response) => {
327
327
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
328
328
  const cache = new StoreKeyMap();
329
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
329
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
330
330
  return cache;
331
331
  });
332
332
  }, (response) => {
@@ -334,23 +334,23 @@ function buildNetworkSnapshot$3(luvio, config, options) {
334
334
  });
335
335
  }
336
336
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
337
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
337
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
338
338
  }
339
339
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
340
340
  const { luvio, config } = context;
341
341
  const selector = {
342
- recordId: keyBuilder$6(luvio, config),
342
+ recordId: keyBuilder$7(luvio, config),
343
343
  node: adapterFragment$2(luvio, config),
344
344
  variables: {},
345
345
  };
346
346
  const cacheSnapshot = storeLookup(selector, {
347
347
  config,
348
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
348
+ resolve: () => buildNetworkSnapshot$4(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$3(untrustedConfig, getBotId_ConfigPropertyNames);
353
+ const config = validateAdapterConfig$4(untrustedConfig, getBotId_ConfigPropertyNames);
354
354
  // Invalid or incomplete config
355
355
  if (config === null) {
356
356
  return null;
@@ -359,8 +359,8 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
359
359
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
360
360
  };
361
361
 
362
- const VERSION$8 = "e8cb7e20392935088ea2f98edb927e8a";
363
- function validate$9(obj, path = 'EsTypeMessageRepresentation') {
362
+ const VERSION$9 = "e8cb7e20392935088ea2f98edb927e8a";
363
+ function validate$a(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$9(obj, path = 'EsTypeMessageRepresentation') {
406
406
  })();
407
407
  return v_error === undefined ? null : v_error;
408
408
  }
409
- const select$b = function EsTypeMessageRepresentationSelect() {
409
+ const select$d = function EsTypeMessageRepresentationSelect() {
410
410
  return {
411
411
  kind: 'Fragment',
412
- version: VERSION$8,
412
+ version: VERSION$9,
413
413
  private: [],
414
414
  selections: [
415
415
  {
@@ -429,7 +429,7 @@ const select$b = function EsTypeMessageRepresentationSelect() {
429
429
  ]
430
430
  };
431
431
  };
432
- function equals$8(existing, incoming) {
432
+ function equals$9(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$8(existing, incoming) {
456
456
  return true;
457
457
  }
458
458
 
459
- function validate$8(obj, path = 'VariableRepresentation') {
459
+ function validate$9(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$8(obj, path = 'VariableRepresentation') {
482
482
  return v_error === undefined ? null : v_error;
483
483
  }
484
484
 
485
- const VERSION$7 = "4e28b61c3ea362f1c68b28897784111e";
486
- function validate$7(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
485
+ const VERSION$8 = "4e28b61c3ea362f1c68b28897784111e";
486
+ function validate$8(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$7(obj, path = 'ConversationRuntimeProxyChoiceRepresentation')
501
501
  })();
502
502
  return v_error === undefined ? null : v_error;
503
503
  }
504
- const select$a = function ConversationRuntimeProxyChoiceRepresentationSelect() {
504
+ const select$c = function ConversationRuntimeProxyChoiceRepresentationSelect() {
505
505
  return {
506
506
  kind: 'Fragment',
507
- version: VERSION$7,
507
+ version: VERSION$8,
508
508
  private: [],
509
509
  selections: [
510
510
  {
@@ -518,7 +518,7 @@ const select$a = function ConversationRuntimeProxyChoiceRepresentationSelect() {
518
518
  ]
519
519
  };
520
520
  };
521
- function equals$7(existing, incoming) {
521
+ function equals$8(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$7(existing, incoming) {
532
532
  return true;
533
533
  }
534
534
 
535
- const VERSION$6 = "477724425d0742c030025796c88ebf5d";
536
- function validate$6(obj, path = 'CollectMessageRepresentation') {
535
+ const VERSION$7 = "477724425d0742c030025796c88ebf5d";
536
+ function validate$7(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$6(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$9(obj_data, path_data);
544
+ const referencepath_dataValidationError = validate$a(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$6(obj, path = 'CollectMessageRepresentation') {
584
584
  })();
585
585
  return v_error === undefined ? null : v_error;
586
586
  }
587
- const select$9 = function CollectMessageRepresentationSelect() {
588
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$b();
587
+ const select$b = function CollectMessageRepresentationSelect() {
588
+ const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$d();
589
589
  return {
590
590
  kind: 'Fragment',
591
- version: VERSION$6,
591
+ version: VERSION$7,
592
592
  private: [],
593
593
  selections: [
594
594
  {
@@ -609,7 +609,7 @@ const select$9 = function CollectMessageRepresentationSelect() {
609
609
  ]
610
610
  };
611
611
  };
612
- function equals$6(existing, incoming) {
612
+ function equals$7(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$6(existing, incoming) {
624
624
  if (existing_data === undefined || incoming_data === undefined) {
625
625
  return false;
626
626
  }
627
- if (!(equals$8(existing_data, incoming_data))) {
627
+ if (!(equals$9(existing_data, incoming_data))) {
628
628
  return false;
629
629
  }
630
630
  }
@@ -644,9 +644,9 @@ function equals$6(existing, incoming) {
644
644
  return true;
645
645
  }
646
646
 
647
- const TTL$3 = 30000;
648
- const VERSION$5 = "55ac02bd055f57a2a12aa0fa4844d1a2";
649
- function validate$5(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
647
+ const TTL$4 = 30000;
648
+ const VERSION$6 = "55ac02bd055f57a2a12aa0fa4844d1a2";
649
+ function validate$6(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$5(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$7(obj_choices_item, path_choices_item);
663
+ const referencepath_choices_itemValidationError = validate$8(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$5(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$6(obj_collect_item, path_collect_item);
680
+ const referencepath_collect_itemValidationError = validate$7(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$5(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$9(obj_confirm_item, path_confirm_item);
697
+ const referencepath_confirm_itemValidationError = validate$a(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$5(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$9(obj_result_item, path_result_item);
873
+ const referencepath_result_itemValidationError = validate$a(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$5(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
944
944
  })();
945
945
  return v_error === undefined ? null : v_error;
946
946
  }
947
- const RepresentationType$3 = 'ConversationRuntimeProxyMessageRepresentation';
948
- function keyBuilder$5(luvio, config) {
949
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
947
+ const RepresentationType$4 = 'ConversationRuntimeProxyMessageRepresentation';
948
+ function keyBuilder$6(luvio, config) {
949
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
950
950
  }
951
- function keyBuilderFromType$1(luvio, object) {
951
+ function keyBuilderFromType$2(luvio, object) {
952
952
  const keyParams = {
953
953
  id: object.id
954
954
  };
955
- return keyBuilder$5(luvio, keyParams);
955
+ return keyBuilder$6(luvio, keyParams);
956
956
  }
957
- function normalize$3(input, existing, path, luvio, store, timestamp) {
957
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
958
958
  return input;
959
959
  }
960
- const select$8 = function ConversationRuntimeProxyMessageRepresentationSelect() {
961
- const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$a();
962
- const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$9();
963
- const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$b();
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();
964
964
  return {
965
965
  kind: 'Fragment',
966
- version: VERSION$5,
966
+ version: VERSION$6,
967
967
  private: [],
968
968
  selections: [
969
969
  {
@@ -1047,7 +1047,7 @@ const select$8 = function ConversationRuntimeProxyMessageRepresentationSelect()
1047
1047
  ]
1048
1048
  };
1049
1049
  };
1050
- function equals$5(existing, incoming) {
1050
+ function equals$6(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$5(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$7(existing_choices_item, incoming_choices_item))) {
1079
+ if (!(equals$8(existing_choices_item, incoming_choices_item))) {
1080
1080
  return false;
1081
1081
  }
1082
1082
  });
@@ -1094,7 +1094,7 @@ function equals$5(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$6(existing_collect_item, incoming_collect_item))) {
1097
+ if (!(equals$7(existing_collect_item, incoming_collect_item))) {
1098
1098
  return false;
1099
1099
  }
1100
1100
  });
@@ -1112,7 +1112,7 @@ function equals$5(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$8(existing_confirm_item, incoming_confirm_item))) {
1115
+ if (!(equals$9(existing_confirm_item, incoming_confirm_item))) {
1116
1116
  return false;
1117
1117
  }
1118
1118
  });
@@ -1213,7 +1213,7 @@ function equals$5(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$8(existing_result_item, incoming_result_item))) {
1216
+ if (!(equals$9(existing_result_item, incoming_result_item))) {
1217
1217
  return false;
1218
1218
  }
1219
1219
  });
@@ -1249,31 +1249,31 @@ function equals$5(existing, incoming) {
1249
1249
  }
1250
1250
  return true;
1251
1251
  }
1252
- const ingest$3 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1252
+ const ingest$4 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
1253
1253
  if (process.env.NODE_ENV !== 'production') {
1254
- const validateError = validate$5(input);
1254
+ const validateError = validate$6(input);
1255
1255
  if (validateError !== null) {
1256
1256
  throw validateError;
1257
1257
  }
1258
1258
  }
1259
- const key = keyBuilderFromType$1(luvio, input);
1260
- const ttlToUse = TTL$3;
1261
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$5, RepresentationType$3, equals$5);
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);
1262
1262
  return createLink(key);
1263
1263
  };
1264
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1264
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1265
1265
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1266
- const rootKey = keyBuilderFromType$1(luvio, input);
1266
+ const rootKey = keyBuilderFromType$2(luvio, input);
1267
1267
  rootKeySet.set(rootKey, {
1268
1268
  namespace: keyPrefix,
1269
- representationName: RepresentationType$3,
1269
+ representationName: RepresentationType$4,
1270
1270
  mergeable: false
1271
1271
  });
1272
1272
  }
1273
1273
 
1274
- const TTL$2 = 30000;
1275
- const VERSION$4 = "fe7024fb1132250f97d9616482f09f99";
1276
- function validate$4(obj, path = 'ConversationRuntimeProxyRepresentation') {
1274
+ const TTL$3 = 30000;
1275
+ const VERSION$5 = "fe7024fb1132250f97d9616482f09f99";
1276
+ function validate$5(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$4(obj, path = 'ConversationRuntimeProxyRepresentation') {
1325
1325
  })();
1326
1326
  return v_error === undefined ? null : v_error;
1327
1327
  }
1328
- const RepresentationType$2 = 'ConversationRuntimeProxyRepresentation';
1329
- function keyBuilder$4(luvio, config) {
1330
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1328
+ const RepresentationType$3 = 'ConversationRuntimeProxyRepresentation';
1329
+ function keyBuilder$5(luvio, config) {
1330
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
1331
1331
  }
1332
- function keyBuilderFromType(luvio, object) {
1332
+ function keyBuilderFromType$1(luvio, object) {
1333
1333
  const keyParams = {
1334
1334
  id: object.requestId
1335
1335
  };
1336
- return keyBuilder$4(luvio, keyParams);
1336
+ return keyBuilder$5(luvio, keyParams);
1337
1337
  }
1338
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1338
+ function normalize$3(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$3(input_messages_item, {
1344
+ input_messages[i] = ingest$4(input_messages_item, {
1345
1345
  fullPath: input_messages_item_id,
1346
1346
  propertyName: i,
1347
1347
  parent: {
@@ -1354,10 +1354,10 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
1354
1354
  }
1355
1355
  return input;
1356
1356
  }
1357
- const select$7 = function ConversationRuntimeProxyRepresentationSelect() {
1357
+ const select$9 = function ConversationRuntimeProxyRepresentationSelect() {
1358
1358
  return {
1359
1359
  kind: 'Fragment',
1360
- version: VERSION$4,
1360
+ version: VERSION$5,
1361
1361
  private: [],
1362
1362
  selections: [
1363
1363
  {
@@ -1372,7 +1372,7 @@ const select$7 = function ConversationRuntimeProxyRepresentationSelect() {
1372
1372
  name: 'messages',
1373
1373
  kind: 'Link',
1374
1374
  plural: true,
1375
- fragment: select$8()
1375
+ fragment: select$a()
1376
1376
  },
1377
1377
  {
1378
1378
  name: 'processedSequenceIds',
@@ -1390,7 +1390,7 @@ const select$7 = function ConversationRuntimeProxyRepresentationSelect() {
1390
1390
  ]
1391
1391
  };
1392
1392
  };
1393
- function equals$4(existing, incoming) {
1393
+ function equals$5(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$4(existing, incoming) {
1433
1433
  }
1434
1434
  return true;
1435
1435
  }
1436
- const ingest$2 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1436
+ const ingest$3 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
1437
1437
  if (process.env.NODE_ENV !== 'production') {
1438
- const validateError = validate$4(input);
1438
+ const validateError = validate$5(input);
1439
1439
  if (validateError !== null) {
1440
1440
  throw validateError;
1441
1441
  }
1442
1442
  }
1443
- const key = keyBuilderFromType(luvio, input);
1444
- const ttlToUse = TTL$2;
1445
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$4, RepresentationType$2, equals$4);
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);
1446
1446
  return createLink(key);
1447
1447
  };
1448
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1448
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1449
1449
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1450
- const rootKey = keyBuilderFromType(luvio, input);
1450
+ const rootKey = keyBuilderFromType$1(luvio, input);
1451
1451
  rootKeySet.set(rootKey, {
1452
1452
  namespace: keyPrefix,
1453
- representationName: RepresentationType$2,
1453
+ representationName: RepresentationType$3,
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$3(rootKeySet, luvio, input.messages[i]);
1458
+ getTypeCacheKeys$4(rootKeySet, luvio, input.messages[i]);
1459
1459
  }
1460
1460
  }
1461
1461
 
1462
- function select$6(luvio, params) {
1463
- return select$7();
1462
+ function select$8(luvio, params) {
1463
+ return select$9();
1464
1464
  }
1465
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1466
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
1465
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1466
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
1467
1467
  }
1468
- function ingestSuccess$2(luvio, resourceParams, response) {
1468
+ function ingestSuccess$3(luvio, resourceParams, response) {
1469
1469
  const { body } = response;
1470
- const key = keyBuilderFromType(luvio, body);
1471
- luvio.storeIngest(key, ingest$2, body);
1470
+ const key = keyBuilderFromType$1(luvio, body);
1471
+ luvio.storeIngest(key, ingest$3, body);
1472
1472
  const snapshot = luvio.storeLookup({
1473
1473
  recordId: key,
1474
- node: select$6(),
1474
+ node: select$8(),
1475
1475
  variables: {},
1476
1476
  });
1477
1477
  if (process.env.NODE_ENV !== 'production') {
@@ -1482,7 +1482,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1482
1482
  deepFreeze(snapshot.data);
1483
1483
  return snapshot;
1484
1484
  }
1485
- function createResourceRequest$2(config) {
1485
+ function createResourceRequest$3(config) {
1486
1486
  const headers = {};
1487
1487
  return {
1488
1488
  baseUri: '/services/data/v62.0',
@@ -1496,7 +1496,7 @@ function createResourceRequest$2(config) {
1496
1496
  };
1497
1497
  }
1498
1498
 
1499
- const adapterName$2 = 'sendMessage';
1499
+ const adapterName$3 = '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$2, sendMessage_ConfigPropertyMetadata);
1517
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(sendMessage_ConfigPropertyMetadata);
1518
- function typeCheckConfig$2(untrustedConfig) {
1516
+ const sendMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, sendMessage_ConfigPropertyMetadata);
1517
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(sendMessage_ConfigPropertyMetadata);
1518
+ function typeCheckConfig$3(untrustedConfig) {
1519
1519
  const config = {};
1520
- typeCheckConfig$4(untrustedConfig, config, sendMessage_ConfigPropertyMetadata);
1520
+ typeCheckConfig$5(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$2(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$9(untrustedConfig_reply_item);
1528
+ const referenceEsTypeMessageRepresentationValidationError = validate$a(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$2(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$8(untrustedConfig_variables_item);
1540
+ const referenceVariableRepresentationValidationError = validate$9(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$2(untrustedConfig) {
1546
1546
  }
1547
1547
  return config;
1548
1548
  }
1549
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1549
+ function validateAdapterConfig$3(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$2(untrustedConfig);
1556
+ const config = typeCheckConfig$3(untrustedConfig);
1557
1557
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1558
1558
  return null;
1559
1559
  }
1560
1560
  return config;
1561
1561
  }
1562
- function buildNetworkSnapshot$2(luvio, config, options) {
1563
- const resourceParams = createResourceParams$2(config);
1564
- const request = createResourceRequest$2(resourceParams);
1562
+ function buildNetworkSnapshot$3(luvio, config, options) {
1563
+ const resourceParams = createResourceParams$3(config);
1564
+ const request = createResourceRequest$3(resourceParams);
1565
1565
  return luvio.dispatchResourceRequest(request, options)
1566
1566
  .then((response) => {
1567
1567
  return luvio.handleSuccessResponse(() => {
1568
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1568
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1569
1569
  return luvio.storeBroadcast().then(() => snapshot);
1570
1570
  }, () => {
1571
1571
  const cache = new StoreKeyMap();
1572
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1572
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1573
1573
  return cache;
1574
1574
  });
1575
1575
  }, (response) => {
@@ -1579,17 +1579,17 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1579
1579
  }
1580
1580
  const sendMessageAdapterFactory = (luvio) => {
1581
1581
  return function sendMessage(untrustedConfig) {
1582
- const config = validateAdapterConfig$2(untrustedConfig, sendMessage_ConfigPropertyNames);
1582
+ const config = validateAdapterConfig$3(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$2(luvio, config);
1587
+ return buildNetworkSnapshot$3(luvio, config);
1588
1588
  };
1589
1589
  };
1590
1590
 
1591
- const VERSION$3 = "504437088c2317480c651ac05a7565b5";
1592
- function validate$3(obj, path = 'PlanTemplateRepresentation') {
1591
+ const VERSION$4 = "504437088c2317480c651ac05a7565b5";
1592
+ function validate$4(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$3(obj, path = 'PlanTemplateRepresentation') {
1631
1631
  })();
1632
1632
  return v_error === undefined ? null : v_error;
1633
1633
  }
1634
- const select$5 = function PlanTemplateRepresentationSelect() {
1634
+ const select$7 = function PlanTemplateRepresentationSelect() {
1635
1635
  return {
1636
1636
  kind: 'Fragment',
1637
- version: VERSION$3,
1637
+ version: VERSION$4,
1638
1638
  private: [],
1639
1639
  selections: [
1640
1640
  {
@@ -1661,7 +1661,7 @@ const select$5 = function PlanTemplateRepresentationSelect() {
1661
1661
  ]
1662
1662
  };
1663
1663
  };
1664
- function equals$3(existing, incoming) {
1664
+ function equals$4(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$3(existing, incoming) {
1695
1695
  return true;
1696
1696
  }
1697
1697
 
1698
- const TTL$1 = 900000;
1699
- const VERSION$2 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1700
- function validate$2(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1698
+ const TTL$2 = 900000;
1699
+ const VERSION$3 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
1700
+ function validate$3(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$2(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$3(obj_planTemplates_item, path_planTemplates_item);
1725
+ const referencepath_planTemplates_itemValidationError = validate$4(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$2(obj, path = 'RecommendedPlanTemplatesRepresentation') {
1732
1732
  })();
1733
1733
  return v_error === undefined ? null : v_error;
1734
1734
  }
1735
- const RepresentationType$1 = 'RecommendedPlanTemplatesRepresentation';
1736
- function normalize$1(input, existing, path, luvio, store, timestamp) {
1735
+ const RepresentationType$2 = 'RecommendedPlanTemplatesRepresentation';
1736
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1737
1737
  return input;
1738
1738
  }
1739
- const select$4 = function RecommendedPlanTemplatesRepresentationSelect() {
1740
- const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$5();
1739
+ const select$6 = function RecommendedPlanTemplatesRepresentationSelect() {
1740
+ const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$7();
1741
1741
  return {
1742
1742
  kind: 'Fragment',
1743
- version: VERSION$2,
1743
+ version: VERSION$3,
1744
1744
  private: [],
1745
1745
  selections: [
1746
1746
  {
@@ -1761,7 +1761,7 @@ const select$4 = function RecommendedPlanTemplatesRepresentationSelect() {
1761
1761
  ]
1762
1762
  };
1763
1763
  };
1764
- function equals$2(existing, incoming) {
1764
+ function equals$3(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$2(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$3(existing_planTemplates_item, incoming_planTemplates_item))) {
1786
+ if (!(equals$4(existing_planTemplates_item, incoming_planTemplates_item))) {
1787
1787
  return false;
1788
1788
  }
1789
1789
  });
@@ -1792,44 +1792,44 @@ function equals$2(existing, incoming) {
1792
1792
  }
1793
1793
  return true;
1794
1794
  }
1795
- const ingest$1 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1795
+ const ingest$2 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
1796
1796
  if (process.env.NODE_ENV !== 'production') {
1797
- const validateError = validate$2(input);
1797
+ const validateError = validate$3(input);
1798
1798
  if (validateError !== null) {
1799
1799
  throw validateError;
1800
1800
  }
1801
1801
  }
1802
1802
  const key = path.fullPath;
1803
- const ttlToUse = TTL$1;
1804
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$2, RepresentationType$1, equals$2);
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);
1805
1805
  return createLink(key);
1806
1806
  };
1807
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1807
+ function getTypeCacheKeys$2(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$1,
1812
+ representationName: RepresentationType$2,
1813
1813
  mergeable: false
1814
1814
  });
1815
1815
  }
1816
1816
 
1817
- function select$3(luvio, params) {
1818
- return select$4();
1817
+ function select$5(luvio, params) {
1818
+ return select$6();
1819
1819
  }
1820
- function keyBuilder$3(luvio, params) {
1820
+ function keyBuilder$4(luvio, params) {
1821
1821
  return keyPrefix + '::RecommendedPlanTemplatesRepresentation:(' + 'pageType:' + params.urlParams.pageType + ',' + 'objectType:' + params.urlParams.objectType + ')';
1822
1822
  }
1823
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1824
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1823
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1824
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1825
1825
  }
1826
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1826
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1827
1827
  const { body } = response;
1828
- const key = keyBuilder$3(luvio, resourceParams);
1829
- luvio.storeIngest(key, ingest$1, body);
1828
+ const key = keyBuilder$4(luvio, resourceParams);
1829
+ luvio.storeIngest(key, ingest$2, body);
1830
1830
  const snapshot = luvio.storeLookup({
1831
1831
  recordId: key,
1832
- node: select$3(),
1832
+ node: select$5(),
1833
1833
  variables: {},
1834
1834
  }, snapshotRefresh);
1835
1835
  if (process.env.NODE_ENV !== 'production') {
@@ -1841,18 +1841,18 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1841
1841
  return snapshot;
1842
1842
  }
1843
1843
  function ingestError$1(luvio, params, error, snapshotRefresh) {
1844
- const key = keyBuilder$3(luvio, params);
1844
+ const key = keyBuilder$4(luvio, params);
1845
1845
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1846
1846
  const storeMetadataParams = {
1847
- ttl: TTL$1,
1847
+ ttl: TTL$2,
1848
1848
  namespace: keyPrefix,
1849
- version: VERSION$2,
1850
- representationName: RepresentationType$1
1849
+ version: VERSION$3,
1850
+ representationName: RepresentationType$2
1851
1851
  };
1852
1852
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1853
1853
  return errorSnapshot;
1854
1854
  }
1855
- function createResourceRequest$1(config) {
1855
+ function createResourceRequest$2(config) {
1856
1856
  const headers = {};
1857
1857
  return {
1858
1858
  baseUri: '/services/data/v62.0',
@@ -1866,61 +1866,61 @@ function createResourceRequest$1(config) {
1866
1866
  };
1867
1867
  }
1868
1868
 
1869
- const adapterName$1 = 'getRecommendedPlanTemplates';
1869
+ const adapterName$2 = '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$1, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1875
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getRecommendedPlanTemplates_ConfigPropertyMetadata);
1876
- function keyBuilder$2(luvio, config) {
1877
- const resourceParams = createResourceParams$1(config);
1878
- return keyBuilder$3(luvio, resourceParams);
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);
1879
1879
  }
1880
- function typeCheckConfig$1(untrustedConfig) {
1880
+ function typeCheckConfig$2(untrustedConfig) {
1881
1881
  const config = {};
1882
- typeCheckConfig$4(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1882
+ typeCheckConfig$5(untrustedConfig, config, getRecommendedPlanTemplates_ConfigPropertyMetadata);
1883
1883
  return config;
1884
1884
  }
1885
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1885
+ function validateAdapterConfig$2(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$1(untrustedConfig);
1892
+ const config = typeCheckConfig$2(untrustedConfig);
1893
1893
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1894
1894
  return null;
1895
1895
  }
1896
1896
  return config;
1897
1897
  }
1898
1898
  function adapterFragment$1(luvio, config) {
1899
- createResourceParams$1(config);
1900
- return select$3();
1899
+ createResourceParams$2(config);
1900
+ return select$5();
1901
1901
  }
1902
1902
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1903
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1903
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1904
1904
  config,
1905
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1905
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1906
1906
  });
1907
1907
  return luvio.storeBroadcast().then(() => snapshot);
1908
1908
  }
1909
1909
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
1910
1910
  const snapshot = ingestError$1(luvio, resourceParams, response, {
1911
1911
  config,
1912
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1912
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1913
1913
  });
1914
1914
  return luvio.storeBroadcast().then(() => snapshot);
1915
1915
  }
1916
- function buildNetworkSnapshot$1(luvio, config, options) {
1917
- const resourceParams = createResourceParams$1(config);
1918
- const request = createResourceRequest$1(resourceParams);
1916
+ function buildNetworkSnapshot$2(luvio, config, options) {
1917
+ const resourceParams = createResourceParams$2(config);
1918
+ const request = createResourceRequest$2(resourceParams);
1919
1919
  return luvio.dispatchResourceRequest(request, options)
1920
1920
  .then((response) => {
1921
1921
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1922
1922
  const cache = new StoreKeyMap();
1923
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1923
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1924
1924
  return cache;
1925
1925
  });
1926
1926
  }, (response) => {
@@ -1928,23 +1928,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1928
1928
  });
1929
1929
  }
1930
1930
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1931
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1931
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1932
1932
  }
1933
1933
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1934
1934
  const { luvio, config } = context;
1935
1935
  const selector = {
1936
- recordId: keyBuilder$2(luvio, config),
1936
+ recordId: keyBuilder$3(luvio, config),
1937
1937
  node: adapterFragment$1(luvio, config),
1938
1938
  variables: {},
1939
1939
  };
1940
1940
  const cacheSnapshot = storeLookup(selector, {
1941
1941
  config,
1942
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1942
+ resolve: () => buildNetworkSnapshot$2(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$1(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
1947
+ const config = validateAdapterConfig$2(untrustedConfig, getRecommendedPlanTemplates_ConfigPropertyNames);
1948
1948
  // Invalid or incomplete config
1949
1949
  if (config === null) {
1950
1950
  return null;
@@ -1953,6 +1953,191 @@ const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCo
1953
1953
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1954
1954
  };
1955
1955
 
1956
+ const TTL$1 = 100;
1957
+ const VERSION$2 = "7454bdd46af1622eb677a9bb9eac3a8b";
1958
+ function validate$2(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
1959
+ const v_error = (() => {
1960
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1961
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1962
+ }
1963
+ const obj_submitFeedbackStatus = obj.submitFeedbackStatus;
1964
+ const path_submitFeedbackStatus = path + '.submitFeedbackStatus';
1965
+ if (typeof obj_submitFeedbackStatus !== 'string') {
1966
+ return new TypeError('Expected "string" but received "' + typeof obj_submitFeedbackStatus + '" (at "' + path_submitFeedbackStatus + '")');
1967
+ }
1968
+ })();
1969
+ return v_error === undefined ? null : v_error;
1970
+ }
1971
+ const RepresentationType$1 = 'CopilotLLMFeedbackOutputRepresentation';
1972
+ function keyBuilder$2(luvio, config) {
1973
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
1974
+ }
1975
+ function keyBuilderFromType(luvio, object) {
1976
+ const keyParams = {
1977
+ id: object.submitFeedbackStatus
1978
+ };
1979
+ return keyBuilder$2(luvio, keyParams);
1980
+ }
1981
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1982
+ return input;
1983
+ }
1984
+ const select$4 = function CopilotLLMFeedbackOutputRepresentationSelect() {
1985
+ return {
1986
+ kind: 'Fragment',
1987
+ version: VERSION$2,
1988
+ private: [],
1989
+ selections: [
1990
+ {
1991
+ name: 'submitFeedbackStatus',
1992
+ kind: 'Scalar'
1993
+ }
1994
+ ]
1995
+ };
1996
+ };
1997
+ function equals$2(existing, incoming) {
1998
+ const existing_submitFeedbackStatus = existing.submitFeedbackStatus;
1999
+ const incoming_submitFeedbackStatus = incoming.submitFeedbackStatus;
2000
+ if (!(existing_submitFeedbackStatus === incoming_submitFeedbackStatus)) {
2001
+ return false;
2002
+ }
2003
+ return true;
2004
+ }
2005
+ const ingest$1 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2006
+ if (process.env.NODE_ENV !== 'production') {
2007
+ const validateError = validate$2(input);
2008
+ if (validateError !== null) {
2009
+ throw validateError;
2010
+ }
2011
+ }
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);
2015
+ return createLink(key);
2016
+ };
2017
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2018
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2019
+ const rootKey = keyBuilderFromType(luvio, input);
2020
+ rootKeySet.set(rootKey, {
2021
+ namespace: keyPrefix,
2022
+ representationName: RepresentationType$1,
2023
+ mergeable: false
2024
+ });
2025
+ }
2026
+
2027
+ function select$3(luvio, params) {
2028
+ return select$4();
2029
+ }
2030
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2031
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
2032
+ }
2033
+ function ingestSuccess$1(luvio, resourceParams, response) {
2034
+ const { body } = response;
2035
+ const key = keyBuilderFromType(luvio, body);
2036
+ luvio.storeIngest(key, ingest$1, body);
2037
+ const snapshot = luvio.storeLookup({
2038
+ recordId: key,
2039
+ node: select$3(),
2040
+ variables: {},
2041
+ });
2042
+ if (process.env.NODE_ENV !== 'production') {
2043
+ if (snapshot.state !== 'Fulfilled') {
2044
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2045
+ }
2046
+ }
2047
+ deepFreeze(snapshot.data);
2048
+ return snapshot;
2049
+ }
2050
+ function createResourceRequest$1(config) {
2051
+ const headers = {};
2052
+ return {
2053
+ baseUri: '/services/data/v62.0',
2054
+ basePath: '/connect/copilot/feedback',
2055
+ method: 'post',
2056
+ body: config.body,
2057
+ urlParams: {},
2058
+ queryParams: {},
2059
+ headers,
2060
+ priority: 'normal',
2061
+ };
2062
+ }
2063
+
2064
+ const adapterName$1 = 'submitFeedback';
2065
+ const submitFeedback_ConfigPropertyMetadata = [
2066
+ generateParamConfigMetadata('details', true, 2 /* Body */, 4 /* Unsupported */),
2067
+ generateParamConfigMetadata('feedback', true, 2 /* Body */, 0 /* String */),
2068
+ generateParamConfigMetadata('feedbackId', true, 2 /* Body */, 0 /* String */),
2069
+ generateParamConfigMetadata('sessionId', true, 2 /* Body */, 0 /* String */),
2070
+ generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
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) {
2075
+ const config = {};
2076
+ typeCheckConfig$5(untrustedConfig, config, submitFeedback_ConfigPropertyMetadata);
2077
+ const untrustedConfig_details = untrustedConfig.details;
2078
+ if (untrustedIsObject(untrustedConfig_details)) {
2079
+ const untrustedConfig_details_object = {};
2080
+ const untrustedConfig_details_keys = Object.keys(untrustedConfig_details);
2081
+ for (let i = 0, arrayLength = untrustedConfig_details_keys.length; i < arrayLength; i++) {
2082
+ const key = untrustedConfig_details_keys[i];
2083
+ const untrustedConfig_details_prop = untrustedConfig_details[key];
2084
+ if (untrustedIsObject(untrustedConfig_details_prop)) {
2085
+ const untrustedConfig_details_prop_object = {};
2086
+ if (untrustedConfig_details_prop_object !== undefined && Object.keys(untrustedConfig_details_prop_object).length >= 0) {
2087
+ if (untrustedConfig_details_object !== undefined) {
2088
+ untrustedConfig_details_object[key] = untrustedConfig_details_prop_object;
2089
+ }
2090
+ }
2091
+ }
2092
+ }
2093
+ if (untrustedConfig_details_object !== undefined && Object.keys(untrustedConfig_details_object).length >= 0) {
2094
+ config.details = untrustedConfig_details_object;
2095
+ }
2096
+ }
2097
+ return config;
2098
+ }
2099
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2100
+ if (!untrustedIsObject(untrustedConfig)) {
2101
+ return null;
2102
+ }
2103
+ if (process.env.NODE_ENV !== 'production') {
2104
+ validateConfig(untrustedConfig, configPropertyNames);
2105
+ }
2106
+ const config = typeCheckConfig$1(untrustedConfig);
2107
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2108
+ return null;
2109
+ }
2110
+ return config;
2111
+ }
2112
+ function buildNetworkSnapshot$1(luvio, config, options) {
2113
+ const resourceParams = createResourceParams$1(config);
2114
+ const request = createResourceRequest$1(resourceParams);
2115
+ return luvio.dispatchResourceRequest(request, options)
2116
+ .then((response) => {
2117
+ return luvio.handleSuccessResponse(() => {
2118
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
2119
+ return luvio.storeBroadcast().then(() => snapshot);
2120
+ }, () => {
2121
+ const cache = new StoreKeyMap();
2122
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2123
+ return cache;
2124
+ });
2125
+ }, (response) => {
2126
+ deepFreeze(response);
2127
+ throw response;
2128
+ });
2129
+ }
2130
+ const submitFeedbackAdapterFactory = (luvio) => {
2131
+ return function submitFeedback(untrustedConfig) {
2132
+ const config = validateAdapterConfig$1(untrustedConfig, submitFeedback_ConfigPropertyNames);
2133
+ // Invalid or incomplete config
2134
+ if (config === null) {
2135
+ throw new Error('Invalid config for "submitFeedback"');
2136
+ }
2137
+ return buildNetworkSnapshot$1(luvio, config);
2138
+ };
2139
+ };
2140
+
1956
2141
  const VERSION$1 = "3d8b52828ddd11f23f898b0bba8db802";
1957
2142
  function validate$1(obj, path = 'CopilotQuickActionRepresentation') {
1958
2143
  const v_error = (() => {
@@ -2547,14 +2732,14 @@ const getRecommendedActions_ConfigPropertyMetadata = [
2547
2732
  generateParamConfigMetadata('formFactor', false, 1 /* QueryParameter */, 0 /* String */),
2548
2733
  ];
2549
2734
  const getRecommendedActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getRecommendedActions_ConfigPropertyMetadata);
2550
- const createResourceParams = /*#__PURE__*/ createResourceParams$4(getRecommendedActions_ConfigPropertyMetadata);
2735
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(getRecommendedActions_ConfigPropertyMetadata);
2551
2736
  function keyBuilder(luvio, config) {
2552
2737
  const resourceParams = createResourceParams(config);
2553
2738
  return keyBuilder$1(luvio, resourceParams);
2554
2739
  }
2555
2740
  function typeCheckConfig(untrustedConfig) {
2556
2741
  const config = {};
2557
- typeCheckConfig$4(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
2742
+ typeCheckConfig$5(untrustedConfig, config, getRecommendedActions_ConfigPropertyMetadata);
2558
2743
  return config;
2559
2744
  }
2560
2745
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2628,4 +2813,4 @@ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotB
2628
2813
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2629
2814
  };
2630
2815
 
2631
- export { getBotIdAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, sendMessageAdapterFactory };
2816
+ export { getBotIdAdapterFactory, getRecommendedActionsAdapterFactory, getRecommendedPlanTemplatesAdapterFactory, sendMessageAdapterFactory, submitFeedbackAdapterFactory };