@salesforce/lds-adapters-service-einsteinllm 1.384.0 → 1.386.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$6, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, StoreKeyMap, createResourceParams as createResourceParams$f, typeCheckConfig as typeCheckConfig$f } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -168,7 +168,7 @@ function createLink(ref) {
168
168
  };
169
169
  }
170
170
 
171
- function validate$z(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
171
+ function validate$B(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
172
172
  const v_error = (() => {
173
173
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
174
174
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -212,7 +212,7 @@ function validate$z(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
212
212
  return v_error === undefined ? null : v_error;
213
213
  }
214
214
 
215
- function validate$y(obj, path = 'WrappedListString') {
215
+ function validate$A(obj, path = 'WrappedListString') {
216
216
  const v_error = (() => {
217
217
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
218
218
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -233,14 +233,14 @@ function validate$y(obj, path = 'WrappedListString') {
233
233
  return v_error === undefined ? null : v_error;
234
234
  }
235
235
 
236
- function validate$x(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
236
+ function validate$z(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
237
237
  const v_error = (() => {
238
238
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
239
239
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
240
240
  }
241
241
  const obj_additionalConfig = obj.additionalConfig;
242
242
  const path_additionalConfig = path + '.additionalConfig';
243
- const referencepath_additionalConfigValidationError = validate$z(obj_additionalConfig, path_additionalConfig);
243
+ const referencepath_additionalConfigValidationError = validate$B(obj_additionalConfig, path_additionalConfig);
244
244
  if (referencepath_additionalConfigValidationError !== null) {
245
245
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
246
246
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -248,7 +248,7 @@ function validate$x(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
248
248
  }
249
249
  const obj_prompts = obj.prompts;
250
250
  const path_prompts = path + '.prompts';
251
- const referencepath_promptsValidationError = validate$y(obj_prompts, path_prompts);
251
+ const referencepath_promptsValidationError = validate$A(obj_prompts, path_prompts);
252
252
  if (referencepath_promptsValidationError !== null) {
253
253
  let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
254
254
  message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -265,8 +265,8 @@ function validate$x(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- const VERSION$o = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
- function validate$w(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
268
+ const VERSION$p = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
+ function validate$y(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
270
270
  const v_error = (() => {
271
271
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
272
272
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -287,10 +287,10 @@ function validate$w(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
287
287
  })();
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
- const select$B = function EinsteinLlmEmbeddingItemRepresentationSelect() {
290
+ const select$E = function EinsteinLlmEmbeddingItemRepresentationSelect() {
291
291
  return {
292
292
  kind: 'Fragment',
293
- version: VERSION$o,
293
+ version: VERSION$p,
294
294
  private: [],
295
295
  selections: [
296
296
  {
@@ -305,7 +305,7 @@ const select$B = function EinsteinLlmEmbeddingItemRepresentationSelect() {
305
305
  ]
306
306
  };
307
307
  };
308
- function equals$o(existing, incoming) {
308
+ function equals$p(existing, incoming) {
309
309
  const existing_index = existing.index;
310
310
  const incoming_index = incoming.index;
311
311
  if (!(existing_index === incoming_index)) {
@@ -324,9 +324,9 @@ function equals$o(existing, incoming) {
324
324
  return true;
325
325
  }
326
326
 
327
- const TTL$9 = 100;
328
- const VERSION$n = "d9873651f09d29764ef4d4231eb653d7";
329
- function validate$v(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
327
+ const TTL$a = 100;
328
+ const VERSION$o = "d9873651f09d29764ef4d4231eb653d7";
329
+ function validate$x(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -339,7 +339,7 @@ function validate$v(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
339
339
  for (let i = 0; i < obj_embeddings.length; i++) {
340
340
  const obj_embeddings_item = obj_embeddings[i];
341
341
  const path_embeddings_item = path_embeddings + '[' + i + ']';
342
- const referencepath_embeddings_itemValidationError = validate$w(obj_embeddings_item, path_embeddings_item);
342
+ const referencepath_embeddings_itemValidationError = validate$y(obj_embeddings_item, path_embeddings_item);
343
343
  if (referencepath_embeddings_itemValidationError !== null) {
344
344
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
345
345
  message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -363,15 +363,15 @@ function validate$v(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
363
363
  })();
364
364
  return v_error === undefined ? null : v_error;
365
365
  }
366
- const RepresentationType$9 = 'EinsteinLlmEmbeddingsRepresentation';
367
- function normalize$9(input, existing, path, luvio, store, timestamp) {
366
+ const RepresentationType$a = 'EinsteinLlmEmbeddingsRepresentation';
367
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
368
368
  return input;
369
369
  }
370
- const select$A = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$B();
370
+ const select$D = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$E();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$n,
374
+ version: VERSION$o,
375
375
  private: [],
376
376
  selections: [
377
377
  {
@@ -388,11 +388,11 @@ const select$A = function EinsteinLlmEmbeddingsRepresentationSelect() {
388
388
  ]
389
389
  };
390
390
  };
391
- function equals$n(existing, incoming) {
391
+ function equals$o(existing, incoming) {
392
392
  const existing_embeddings = existing.embeddings;
393
393
  const incoming_embeddings = incoming.embeddings;
394
394
  const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
395
- if (!(equals$o(existing_embeddings_item, incoming_embeddings_item))) {
395
+ if (!(equals$p(existing_embeddings_item, incoming_embeddings_item))) {
396
396
  return false;
397
397
  }
398
398
  });
@@ -411,44 +411,44 @@ function equals$n(existing, incoming) {
411
411
  }
412
412
  return true;
413
413
  }
414
- const ingest$9 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
414
+ const ingest$a = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$v(input);
416
+ const validateError = validate$x(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
- const ttlToUse = TTL$9;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$n, RepresentationType$9, equals$n);
422
+ const ttlToUse = TTL$a;
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$o, RepresentationType$a, equals$o);
424
424
  return createLink(key);
425
425
  };
426
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
426
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
427
427
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
428
428
  const rootKey = fullPathFactory();
429
429
  rootKeySet.set(rootKey, {
430
430
  namespace: keyPrefix,
431
- representationName: RepresentationType$9,
431
+ representationName: RepresentationType$a,
432
432
  mergeable: false
433
433
  });
434
434
  }
435
435
 
436
- function select$z(luvio, params) {
437
- return select$A();
436
+ function select$C(luvio, params) {
437
+ return select$D();
438
438
  }
439
- function keyBuilder$f(luvio, params) {
439
+ function keyBuilder$j(luvio, params) {
440
440
  return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
441
441
  }
442
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
442
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
443
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
444
444
  }
445
- function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
445
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
446
446
  const { body } = response;
447
- const key = keyBuilder$f(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest$9, body);
447
+ const key = keyBuilder$j(luvio, resourceParams);
448
+ luvio.storeIngest(key, ingest$a, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$z(),
451
+ node: select$C(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -459,22 +459,22 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
459
459
  deepFreeze(snapshot.data);
460
460
  return snapshot;
461
461
  }
462
- function ingestError$5(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$f(luvio, params);
462
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
463
+ const key = keyBuilder$j(luvio, params);
464
464
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
465
  const storeMetadataParams = {
466
- ttl: TTL$9,
466
+ ttl: TTL$a,
467
467
  namespace: keyPrefix,
468
- version: VERSION$n,
469
- representationName: RepresentationType$9
468
+ version: VERSION$o,
469
+ representationName: RepresentationType$a
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
472
  return errorSnapshot;
473
473
  }
474
- function createResourceRequest$c(config) {
474
+ function createResourceRequest$e(config) {
475
475
  const headers = {};
476
476
  return {
477
- baseUri: '/services/data/v65.0',
477
+ baseUri: '/services/data/v66.0',
478
478
  basePath: '/einstein/llm/embeddings',
479
479
  method: 'post',
480
480
  body: config.body,
@@ -485,97 +485,97 @@ function createResourceRequest$c(config) {
485
485
  };
486
486
  }
487
487
 
488
- const adapterName$c = 'createEmbeddings';
488
+ const adapterName$e = 'createEmbeddings';
489
489
  const createEmbeddings_ConfigPropertyMetadata = [
490
490
  generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
491
491
  ];
492
- const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createEmbeddings_ConfigPropertyMetadata);
493
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createEmbeddings_ConfigPropertyMetadata);
494
- function keyBuilder$e(luvio, config) {
495
- const resourceParams = createResourceParams$c(config);
496
- return keyBuilder$f(luvio, resourceParams);
492
+ const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createEmbeddings_ConfigPropertyMetadata);
493
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(createEmbeddings_ConfigPropertyMetadata);
494
+ function keyBuilder$i(luvio, config) {
495
+ const resourceParams = createResourceParams$e(config);
496
+ return keyBuilder$j(luvio, resourceParams);
497
497
  }
498
- function typeCheckConfig$c(untrustedConfig) {
498
+ function typeCheckConfig$e(untrustedConfig) {
499
499
  const config = {};
500
500
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
501
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$x(untrustedConfig_embeddingsInput);
501
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$z(untrustedConfig_embeddingsInput);
502
502
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
503
503
  config.embeddingsInput = untrustedConfig_embeddingsInput;
504
504
  }
505
505
  return config;
506
506
  }
507
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
507
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
508
508
  if (!untrustedIsObject(untrustedConfig)) {
509
509
  return null;
510
510
  }
511
511
  if (process.env.NODE_ENV !== 'production') {
512
512
  validateConfig(untrustedConfig, configPropertyNames);
513
513
  }
514
- const config = typeCheckConfig$c(untrustedConfig);
514
+ const config = typeCheckConfig$e(untrustedConfig);
515
515
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
516
516
  return null;
517
517
  }
518
518
  return config;
519
519
  }
520
- function adapterFragment$5(luvio, config) {
521
- createResourceParams$c(config);
522
- return select$z();
520
+ function adapterFragment$7(luvio, config) {
521
+ createResourceParams$e(config);
522
+ return select$C();
523
523
  }
524
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
525
- const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
524
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
525
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
526
526
  config,
527
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
527
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
528
528
  });
529
529
  return luvio.storeBroadcast().then(() => snapshot);
530
530
  }
531
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
532
- const snapshot = ingestError$5(luvio, resourceParams, response, {
531
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
532
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
533
533
  config,
534
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
534
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
535
535
  });
536
536
  return luvio.storeBroadcast().then(() => snapshot);
537
537
  }
538
- function buildNetworkSnapshot$c(luvio, config, options) {
539
- const resourceParams = createResourceParams$c(config);
540
- const request = createResourceRequest$c(resourceParams);
538
+ function buildNetworkSnapshot$e(luvio, config, options) {
539
+ const resourceParams = createResourceParams$e(config);
540
+ const request = createResourceRequest$e(resourceParams);
541
541
  return luvio.dispatchResourceRequest(request, options)
542
542
  .then((response) => {
543
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
543
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
544
544
  const cache = new StoreKeyMap();
545
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
545
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
546
546
  return cache;
547
547
  });
548
548
  }, (response) => {
549
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
549
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
550
550
  });
551
551
  }
552
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
553
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, 'get', false);
552
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
553
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, 'get', false);
554
554
  }
555
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
555
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
556
556
  const { luvio, config } = context;
557
557
  const selector = {
558
- recordId: keyBuilder$e(luvio, config),
559
- node: adapterFragment$5(luvio, config),
558
+ recordId: keyBuilder$i(luvio, config),
559
+ node: adapterFragment$7(luvio, config),
560
560
  variables: {},
561
561
  };
562
562
  const cacheSnapshot = storeLookup(selector, {
563
563
  config,
564
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
564
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
565
565
  });
566
566
  return cacheSnapshot;
567
567
  }
568
568
  const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEmbeddings(untrustedConfig, requestContext) {
569
- const config = validateAdapterConfig$c(untrustedConfig, createEmbeddings_ConfigPropertyNames);
569
+ const config = validateAdapterConfig$e(untrustedConfig, createEmbeddings_ConfigPropertyNames);
570
570
  // Invalid or incomplete config
571
571
  if (config === null) {
572
572
  return null;
573
573
  }
574
574
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
575
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
575
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
576
576
  };
577
577
 
578
- function validate$u(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
578
+ function validate$w(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
579
579
  const v_error = (() => {
580
580
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
581
581
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -622,9 +622,9 @@ function validate$u(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
622
622
  return v_error === undefined ? null : v_error;
623
623
  }
624
624
 
625
- const TTL$8 = 100;
626
- const VERSION$m = "4033328f65865dd5d80c68a7573a4522";
627
- function validate$t(obj, path = 'EinsteinLlmFeedbackRepresentation') {
625
+ const TTL$9 = 100;
626
+ const VERSION$n = "4033328f65865dd5d80c68a7573a4522";
627
+ function validate$v(obj, path = 'EinsteinLlmFeedbackRepresentation') {
628
628
  const v_error = (() => {
629
629
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
630
630
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -637,23 +637,23 @@ function validate$t(obj, path = 'EinsteinLlmFeedbackRepresentation') {
637
637
  })();
638
638
  return v_error === undefined ? null : v_error;
639
639
  }
640
- const RepresentationType$8 = 'EinsteinLlmFeedbackRepresentation';
641
- function keyBuilder$d(luvio, config) {
642
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
640
+ const RepresentationType$9 = 'EinsteinLlmFeedbackRepresentation';
641
+ function keyBuilder$h(luvio, config) {
642
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
643
643
  }
644
644
  function keyBuilderFromType$3(luvio, object) {
645
645
  const keyParams = {
646
646
  message: object.message
647
647
  };
648
- return keyBuilder$d(luvio, keyParams);
648
+ return keyBuilder$h(luvio, keyParams);
649
649
  }
650
- function normalize$8(input, existing, path, luvio, store, timestamp) {
650
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
651
651
  return input;
652
652
  }
653
- const select$y = function EinsteinLlmFeedbackRepresentationSelect() {
653
+ const select$B = function EinsteinLlmFeedbackRepresentationSelect() {
654
654
  return {
655
655
  kind: 'Fragment',
656
- version: VERSION$m,
656
+ version: VERSION$n,
657
657
  private: [],
658
658
  selections: [
659
659
  {
@@ -663,7 +663,7 @@ const select$y = function EinsteinLlmFeedbackRepresentationSelect() {
663
663
  ]
664
664
  };
665
665
  };
666
- function equals$m(existing, incoming) {
666
+ function equals$n(existing, incoming) {
667
667
  const existing_message = existing.message;
668
668
  const incoming_message = incoming.message;
669
669
  if (!(existing_message === incoming_message)) {
@@ -671,41 +671,41 @@ function equals$m(existing, incoming) {
671
671
  }
672
672
  return true;
673
673
  }
674
- const ingest$8 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
674
+ const ingest$9 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
675
675
  if (process.env.NODE_ENV !== 'production') {
676
- const validateError = validate$t(input);
676
+ const validateError = validate$v(input);
677
677
  if (validateError !== null) {
678
678
  throw validateError;
679
679
  }
680
680
  }
681
681
  const key = keyBuilderFromType$3(luvio, input);
682
- const ttlToUse = TTL$8;
683
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$m, RepresentationType$8, equals$m);
682
+ const ttlToUse = TTL$9;
683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$n, RepresentationType$9, equals$n);
684
684
  return createLink(key);
685
685
  };
686
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
686
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
687
687
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
688
688
  const rootKey = keyBuilderFromType$3(luvio, input);
689
689
  rootKeySet.set(rootKey, {
690
690
  namespace: keyPrefix,
691
- representationName: RepresentationType$8,
691
+ representationName: RepresentationType$9,
692
692
  mergeable: false
693
693
  });
694
694
  }
695
695
 
696
- function select$x(luvio, params) {
697
- return select$y();
696
+ function select$A(luvio, params) {
697
+ return select$B();
698
698
  }
699
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
700
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
699
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
700
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
701
701
  }
702
- function ingestSuccess$b(luvio, resourceParams, response) {
702
+ function ingestSuccess$d(luvio, resourceParams, response) {
703
703
  const { body } = response;
704
704
  const key = keyBuilderFromType$3(luvio, body);
705
- luvio.storeIngest(key, ingest$8, body);
705
+ luvio.storeIngest(key, ingest$9, body);
706
706
  const snapshot = luvio.storeLookup({
707
707
  recordId: key,
708
- node: select$x(),
708
+ node: select$A(),
709
709
  variables: {},
710
710
  });
711
711
  if (process.env.NODE_ENV !== 'production') {
@@ -716,10 +716,10 @@ function ingestSuccess$b(luvio, resourceParams, response) {
716
716
  deepFreeze(snapshot.data);
717
717
  return snapshot;
718
718
  }
719
- function createResourceRequest$b(config) {
719
+ function createResourceRequest$d(config) {
720
720
  const headers = {};
721
721
  return {
722
- baseUri: '/services/data/v65.0',
722
+ baseUri: '/services/data/v66.0',
723
723
  basePath: '/einstein/llm/feedback',
724
724
  method: 'post',
725
725
  body: config.body,
@@ -730,45 +730,45 @@ function createResourceRequest$b(config) {
730
730
  };
731
731
  }
732
732
 
733
- const adapterName$b = 'createFeedback';
733
+ const adapterName$d = 'createFeedback';
734
734
  const createFeedback_ConfigPropertyMetadata = [
735
735
  generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
736
736
  ];
737
- const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createFeedback_ConfigPropertyMetadata);
738
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createFeedback_ConfigPropertyMetadata);
739
- function typeCheckConfig$b(untrustedConfig) {
737
+ const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createFeedback_ConfigPropertyMetadata);
738
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(createFeedback_ConfigPropertyMetadata);
739
+ function typeCheckConfig$d(untrustedConfig) {
740
740
  const config = {};
741
741
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
742
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$u(untrustedConfig_feedbackInput);
742
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$w(untrustedConfig_feedbackInput);
743
743
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
744
744
  config.feedbackInput = untrustedConfig_feedbackInput;
745
745
  }
746
746
  return config;
747
747
  }
748
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
748
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
749
749
  if (!untrustedIsObject(untrustedConfig)) {
750
750
  return null;
751
751
  }
752
752
  if (process.env.NODE_ENV !== 'production') {
753
753
  validateConfig(untrustedConfig, configPropertyNames);
754
754
  }
755
- const config = typeCheckConfig$b(untrustedConfig);
755
+ const config = typeCheckConfig$d(untrustedConfig);
756
756
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
757
757
  return null;
758
758
  }
759
759
  return config;
760
760
  }
761
- function buildNetworkSnapshot$b(luvio, config, options) {
762
- const resourceParams = createResourceParams$b(config);
763
- const request = createResourceRequest$b(resourceParams);
761
+ function buildNetworkSnapshot$d(luvio, config, options) {
762
+ const resourceParams = createResourceParams$d(config);
763
+ const request = createResourceRequest$d(resourceParams);
764
764
  return luvio.dispatchResourceRequest(request, options)
765
765
  .then((response) => {
766
766
  return luvio.handleSuccessResponse(() => {
767
- const snapshot = ingestSuccess$b(luvio, resourceParams, response);
767
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
768
768
  return luvio.storeBroadcast().then(() => snapshot);
769
769
  }, () => {
770
770
  const cache = new StoreKeyMap();
771
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
771
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
772
772
  return cache;
773
773
  });
774
774
  }, (response) => {
@@ -778,16 +778,16 @@ function buildNetworkSnapshot$b(luvio, config, options) {
778
778
  }
779
779
  const createFeedbackAdapterFactory = (luvio) => {
780
780
  return function createFeedback(untrustedConfig) {
781
- const config = validateAdapterConfig$b(untrustedConfig, createFeedback_ConfigPropertyNames);
781
+ const config = validateAdapterConfig$d(untrustedConfig, createFeedback_ConfigPropertyNames);
782
782
  // Invalid or incomplete config
783
783
  if (config === null) {
784
784
  throw new Error('Invalid config for "createFeedback"');
785
785
  }
786
- return buildNetworkSnapshot$b(luvio, config);
786
+ return buildNetworkSnapshot$d(luvio, config);
787
787
  };
788
788
  };
789
789
 
790
- function validate$s(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
790
+ function validate$u(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
791
791
  const v_error = (() => {
792
792
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
793
793
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -870,7 +870,7 @@ function validate$s(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
870
870
  return v_error === undefined ? null : v_error;
871
871
  }
872
872
 
873
- function validate$r(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
873
+ function validate$t(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
874
874
  const v_error = (() => {
875
875
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
876
876
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -878,7 +878,7 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
878
878
  if (obj.additionalConfig !== undefined) {
879
879
  const obj_additionalConfig = obj.additionalConfig;
880
880
  const path_additionalConfig = path + '.additionalConfig';
881
- const referencepath_additionalConfigValidationError = validate$s(obj_additionalConfig, path_additionalConfig);
881
+ const referencepath_additionalConfigValidationError = validate$u(obj_additionalConfig, path_additionalConfig);
882
882
  if (referencepath_additionalConfigValidationError !== null) {
883
883
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
884
884
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -901,8 +901,8 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
901
901
  return v_error === undefined ? null : v_error;
902
902
  }
903
903
 
904
- const VERSION$l = "9ebac74e6f964c363d5fd1913df363af";
905
- function validate$q(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
904
+ const VERSION$m = "9ebac74e6f964c363d5fd1913df363af";
905
+ function validate$s(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
906
906
  const v_error = (() => {
907
907
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
908
908
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -938,10 +938,10 @@ function validate$q(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
938
938
  })();
939
939
  return v_error === undefined ? null : v_error;
940
940
  }
941
- const select$w = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
941
+ const select$z = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
942
942
  return {
943
943
  kind: 'Fragment',
944
- version: VERSION$l,
944
+ version: VERSION$m,
945
945
  private: [],
946
946
  selections: [
947
947
  {
@@ -952,7 +952,7 @@ const select$w = function EinsteinLlmGenerationsContentQualityRepresentationSele
952
952
  ]
953
953
  };
954
954
  };
955
- function equals$l(existing, incoming) {
955
+ function equals$m(existing, incoming) {
956
956
  const existing_isToxicityDetected = existing.isToxicityDetected;
957
957
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
958
958
  // if at least one of these optionals is defined
@@ -969,8 +969,8 @@ function equals$l(existing, incoming) {
969
969
  return true;
970
970
  }
971
971
 
972
- const VERSION$k = "77af44a252cb5b45b4d9a8101368d2aa";
973
- function validate$p(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
972
+ const VERSION$l = "77af44a252cb5b45b4d9a8101368d2aa";
973
+ function validate$r(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
974
974
  const v_error = (() => {
975
975
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
976
976
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1174,10 +1174,10 @@ function validate$p(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1174
1174
  })();
1175
1175
  return v_error === undefined ? null : v_error;
1176
1176
  }
1177
- const select$v = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1177
+ const select$y = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1178
1178
  return {
1179
1179
  kind: 'Fragment',
1180
- version: VERSION$k,
1180
+ version: VERSION$l,
1181
1181
  private: [],
1182
1182
  selections: [
1183
1183
  {
@@ -1218,7 +1218,7 @@ const select$v = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1218
1218
  ]
1219
1219
  };
1220
1220
  };
1221
- function equals$k(existing, incoming) {
1221
+ function equals$l(existing, incoming) {
1222
1222
  const existing_hateScore = existing.hateScore;
1223
1223
  const incoming_hateScore = incoming.hateScore;
1224
1224
  // if at least one of these optionals is defined
@@ -1313,8 +1313,8 @@ function equals$k(existing, incoming) {
1313
1313
  return true;
1314
1314
  }
1315
1315
 
1316
- const VERSION$j = "4a07778ff6c595d91c575188146647a1";
1317
- function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1316
+ const VERSION$k = "4a07778ff6c595d91c575188146647a1";
1317
+ function validate$q(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1318
1318
  const v_error = (() => {
1319
1319
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1320
1320
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1324,7 +1324,7 @@ function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1324
1324
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
1325
1325
  let obj_contentQualityRepresentation_union0 = null;
1326
1326
  const obj_contentQualityRepresentation_union0_error = (() => {
1327
- const referencepath_contentQualityRepresentationValidationError = validate$q(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1327
+ const referencepath_contentQualityRepresentationValidationError = validate$s(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1328
1328
  if (referencepath_contentQualityRepresentationValidationError !== null) {
1329
1329
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
1330
1330
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1372,7 +1372,7 @@ function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1372
1372
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
1373
1373
  let obj_safetyScoreRepresentation_union0 = null;
1374
1374
  const obj_safetyScoreRepresentation_union0_error = (() => {
1375
- const referencepath_safetyScoreRepresentationValidationError = validate$p(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1375
+ const referencepath_safetyScoreRepresentationValidationError = validate$r(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1376
1376
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
1377
1377
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
1378
1378
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1406,12 +1406,12 @@ function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1406
1406
  })();
1407
1407
  return v_error === undefined ? null : v_error;
1408
1408
  }
1409
- const select$u = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$w();
1411
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$v();
1409
+ const select$x = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$z();
1411
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$y();
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$j,
1414
+ version: VERSION$k,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1448,7 +1448,7 @@ const select$u = function EinsteinLlmGenerationItemRepresentationSelect() {
1448
1448
  ]
1449
1449
  };
1450
1450
  };
1451
- function equals$j(existing, incoming) {
1451
+ function equals$k(existing, incoming) {
1452
1452
  const existing_isSummarized = existing.isSummarized;
1453
1453
  const incoming_isSummarized = incoming.isSummarized;
1454
1454
  // if at least one of these optionals is defined
@@ -1489,7 +1489,7 @@ function equals$j(existing, incoming) {
1489
1489
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1490
1490
  || (existing_contentQualityRepresentation != null &&
1491
1491
  incoming_contentQualityRepresentation != null &&
1492
- equals$l(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1492
+ equals$m(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1493
1493
  return false;
1494
1494
  }
1495
1495
  }
@@ -1505,15 +1505,15 @@ function equals$j(existing, incoming) {
1505
1505
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1506
1506
  || (existing_safetyScoreRepresentation != null &&
1507
1507
  incoming_safetyScoreRepresentation != null &&
1508
- equals$k(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1508
+ equals$l(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  }
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$i = "4656c961c9d093a9e206c1db7d4de0b0";
1516
- function validate$n(obj, path = 'WrappedMap') {
1515
+ const VERSION$j = "4656c961c9d093a9e206c1db7d4de0b0";
1516
+ function validate$p(obj, path = 'WrappedMap') {
1517
1517
  const v_error = (() => {
1518
1518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1519
1519
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1535,15 +1535,15 @@ function validate$n(obj, path = 'WrappedMap') {
1535
1535
  })();
1536
1536
  return v_error === undefined ? null : v_error;
1537
1537
  }
1538
- const select$t = function WrappedMapSelect() {
1538
+ const select$w = function WrappedMapSelect() {
1539
1539
  return {
1540
1540
  kind: 'Fragment',
1541
- version: VERSION$i,
1541
+ version: VERSION$j,
1542
1542
  private: [],
1543
1543
  selections: []
1544
1544
  };
1545
1545
  };
1546
- function equals$i(existing, incoming) {
1546
+ function equals$j(existing, incoming) {
1547
1547
  const existing_wrappedMap = existing.wrappedMap;
1548
1548
  const incoming_wrappedMap = incoming.wrappedMap;
1549
1549
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1554,9 +1554,9 @@ function equals$i(existing, incoming) {
1554
1554
  return true;
1555
1555
  }
1556
1556
 
1557
- const TTL$7 = 100;
1558
- const VERSION$h = "d8abd72a42e842b253da1c38954dafbc";
1559
- function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1557
+ const TTL$8 = 100;
1558
+ const VERSION$i = "d8abd72a42e842b253da1c38954dafbc";
1559
+ function validate$o(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1560
1560
  const v_error = (() => {
1561
1561
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1562
1562
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1569,7 +1569,7 @@ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1569
1569
  for (let i = 0; i < obj_generations.length; i++) {
1570
1570
  const obj_generations_item = obj_generations[i];
1571
1571
  const path_generations_item = path_generations + '[' + i + ']';
1572
- const referencepath_generations_itemValidationError = validate$o(obj_generations_item, path_generations_item);
1572
+ const referencepath_generations_itemValidationError = validate$q(obj_generations_item, path_generations_item);
1573
1573
  if (referencepath_generations_itemValidationError !== null) {
1574
1574
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1575
1575
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1580,7 +1580,7 @@ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1580
1580
  const path_parameters = path + '.parameters';
1581
1581
  let obj_parameters_union0 = null;
1582
1582
  const obj_parameters_union0_error = (() => {
1583
- const referencepath_parametersValidationError = validate$n(obj_parameters, path_parameters);
1583
+ const referencepath_parametersValidationError = validate$p(obj_parameters, path_parameters);
1584
1584
  if (referencepath_parametersValidationError !== null) {
1585
1585
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1586
1586
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1639,25 +1639,25 @@ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1639
1639
  })();
1640
1640
  return v_error === undefined ? null : v_error;
1641
1641
  }
1642
- const RepresentationType$7 = 'EinsteinLlmGenerationsRepresentation';
1643
- function keyBuilder$c(luvio, config) {
1644
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.requestId;
1642
+ const RepresentationType$8 = 'EinsteinLlmGenerationsRepresentation';
1643
+ function keyBuilder$g(luvio, config) {
1644
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.requestId;
1645
1645
  }
1646
1646
  function keyBuilderFromType$2(luvio, object) {
1647
1647
  const keyParams = {
1648
1648
  requestId: object.requestId
1649
1649
  };
1650
- return keyBuilder$c(luvio, keyParams);
1650
+ return keyBuilder$g(luvio, keyParams);
1651
1651
  }
1652
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1652
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1653
1653
  return input;
1654
1654
  }
1655
- const select$s = function EinsteinLlmGenerationsRepresentationSelect() {
1656
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$u();
1657
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$t();
1655
+ const select$v = function EinsteinLlmGenerationsRepresentationSelect() {
1656
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$x();
1657
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$w();
1658
1658
  return {
1659
1659
  kind: 'Fragment',
1660
- version: VERSION$h,
1660
+ version: VERSION$i,
1661
1661
  private: [],
1662
1662
  selections: [
1663
1663
  {
@@ -1683,7 +1683,7 @@ const select$s = function EinsteinLlmGenerationsRepresentationSelect() {
1683
1683
  ]
1684
1684
  };
1685
1685
  };
1686
- function equals$h(existing, incoming) {
1686
+ function equals$i(existing, incoming) {
1687
1687
  const existing_requestId = existing.requestId;
1688
1688
  const incoming_requestId = incoming.requestId;
1689
1689
  if (!(existing_requestId === incoming_requestId)) {
@@ -1692,7 +1692,7 @@ function equals$h(existing, incoming) {
1692
1692
  const existing_generations = existing.generations;
1693
1693
  const incoming_generations = incoming.generations;
1694
1694
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1695
- if (!(equals$j(existing_generations_item, incoming_generations_item))) {
1695
+ if (!(equals$k(existing_generations_item, incoming_generations_item))) {
1696
1696
  return false;
1697
1697
  }
1698
1698
  });
@@ -1704,7 +1704,7 @@ function equals$h(existing, incoming) {
1704
1704
  if (!(existing_parameters === incoming_parameters
1705
1705
  || (existing_parameters != null &&
1706
1706
  incoming_parameters != null &&
1707
- equals$i(existing_parameters, incoming_parameters)))) {
1707
+ equals$j(existing_parameters, incoming_parameters)))) {
1708
1708
  return false;
1709
1709
  }
1710
1710
  const existing_prompt = existing.prompt;
@@ -1714,41 +1714,41 @@ function equals$h(existing, incoming) {
1714
1714
  }
1715
1715
  return true;
1716
1716
  }
1717
- const ingest$7 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1717
+ const ingest$8 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1718
1718
  if (process.env.NODE_ENV !== 'production') {
1719
- const validateError = validate$m(input);
1719
+ const validateError = validate$o(input);
1720
1720
  if (validateError !== null) {
1721
1721
  throw validateError;
1722
1722
  }
1723
1723
  }
1724
1724
  const key = keyBuilderFromType$2(luvio, input);
1725
- const ttlToUse = TTL$7;
1726
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$h, RepresentationType$7, equals$h);
1725
+ const ttlToUse = TTL$8;
1726
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$i, RepresentationType$8, equals$i);
1727
1727
  return createLink(key);
1728
1728
  };
1729
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1729
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1730
1730
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1731
1731
  const rootKey = keyBuilderFromType$2(luvio, input);
1732
1732
  rootKeySet.set(rootKey, {
1733
1733
  namespace: keyPrefix,
1734
- representationName: RepresentationType$7,
1734
+ representationName: RepresentationType$8,
1735
1735
  mergeable: false
1736
1736
  });
1737
1737
  }
1738
1738
 
1739
- function select$r(luvio, params) {
1740
- return select$s();
1739
+ function select$u(luvio, params) {
1740
+ return select$v();
1741
1741
  }
1742
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1743
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1742
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1743
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1744
1744
  }
1745
- function ingestSuccess$a(luvio, resourceParams, response) {
1745
+ function ingestSuccess$c(luvio, resourceParams, response) {
1746
1746
  const { body } = response;
1747
1747
  const key = keyBuilderFromType$2(luvio, body);
1748
- luvio.storeIngest(key, ingest$7, body);
1748
+ luvio.storeIngest(key, ingest$8, body);
1749
1749
  const snapshot = luvio.storeLookup({
1750
1750
  recordId: key,
1751
- node: select$r(),
1751
+ node: select$u(),
1752
1752
  variables: {},
1753
1753
  });
1754
1754
  if (process.env.NODE_ENV !== 'production') {
@@ -1759,10 +1759,10 @@ function ingestSuccess$a(luvio, resourceParams, response) {
1759
1759
  deepFreeze(snapshot.data);
1760
1760
  return snapshot;
1761
1761
  }
1762
- function createResourceRequest$a(config) {
1762
+ function createResourceRequest$c(config) {
1763
1763
  const headers = {};
1764
1764
  return {
1765
- baseUri: '/services/data/v65.0',
1765
+ baseUri: '/services/data/v66.0',
1766
1766
  basePath: '/einstein/llm/prompt/generations',
1767
1767
  method: 'post',
1768
1768
  body: config.body,
@@ -1773,45 +1773,45 @@ function createResourceRequest$a(config) {
1773
1773
  };
1774
1774
  }
1775
1775
 
1776
- const adapterName$a = 'createGenerations';
1776
+ const adapterName$c = 'createGenerations';
1777
1777
  const createGenerations_ConfigPropertyMetadata = [
1778
1778
  generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
1779
1779
  ];
1780
- const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createGenerations_ConfigPropertyMetadata);
1781
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(createGenerations_ConfigPropertyMetadata);
1782
- function typeCheckConfig$a(untrustedConfig) {
1780
+ const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createGenerations_ConfigPropertyMetadata);
1781
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(createGenerations_ConfigPropertyMetadata);
1782
+ function typeCheckConfig$c(untrustedConfig) {
1783
1783
  const config = {};
1784
1784
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1785
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$r(untrustedConfig_generationsInput);
1785
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$t(untrustedConfig_generationsInput);
1786
1786
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1787
1787
  config.generationsInput = untrustedConfig_generationsInput;
1788
1788
  }
1789
1789
  return config;
1790
1790
  }
1791
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1791
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1792
1792
  if (!untrustedIsObject(untrustedConfig)) {
1793
1793
  return null;
1794
1794
  }
1795
1795
  if (process.env.NODE_ENV !== 'production') {
1796
1796
  validateConfig(untrustedConfig, configPropertyNames);
1797
1797
  }
1798
- const config = typeCheckConfig$a(untrustedConfig);
1798
+ const config = typeCheckConfig$c(untrustedConfig);
1799
1799
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1800
1800
  return null;
1801
1801
  }
1802
1802
  return config;
1803
1803
  }
1804
- function buildNetworkSnapshot$a(luvio, config, options) {
1805
- const resourceParams = createResourceParams$a(config);
1806
- const request = createResourceRequest$a(resourceParams);
1804
+ function buildNetworkSnapshot$c(luvio, config, options) {
1805
+ const resourceParams = createResourceParams$c(config);
1806
+ const request = createResourceRequest$c(resourceParams);
1807
1807
  return luvio.dispatchResourceRequest(request, options)
1808
1808
  .then((response) => {
1809
1809
  return luvio.handleSuccessResponse(() => {
1810
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1810
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
1811
1811
  return luvio.storeBroadcast().then(() => snapshot);
1812
1812
  }, () => {
1813
1813
  const cache = new StoreKeyMap();
1814
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1814
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1815
1815
  return cache;
1816
1816
  });
1817
1817
  }, (response) => {
@@ -1821,16 +1821,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
1821
1821
  }
1822
1822
  const createGenerationsAdapterFactory = (luvio) => {
1823
1823
  return function createGenerations(untrustedConfig) {
1824
- const config = validateAdapterConfig$a(untrustedConfig, createGenerations_ConfigPropertyNames);
1824
+ const config = validateAdapterConfig$c(untrustedConfig, createGenerations_ConfigPropertyNames);
1825
1825
  // Invalid or incomplete config
1826
1826
  if (config === null) {
1827
1827
  throw new Error('Invalid config for "createGenerations"');
1828
1828
  }
1829
- return buildNetworkSnapshot$a(luvio, config);
1829
+ return buildNetworkSnapshot$c(luvio, config);
1830
1830
  };
1831
1831
  };
1832
1832
 
1833
- function validate$l(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1833
+ function validate$n(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1834
1834
  const v_error = (() => {
1835
1835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1836
1836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1890,9 +1890,9 @@ function validate$l(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1890
1890
  return v_error === undefined ? null : v_error;
1891
1891
  }
1892
1892
 
1893
- const TTL$6 = 100;
1894
- const VERSION$g = "2d1628544b54fc1701aa9b4eff05127b";
1895
- function validate$k(obj, path = 'EinsteinPromptRecordRepresentation') {
1893
+ const TTL$7 = 100;
1894
+ const VERSION$h = "2d1628544b54fc1701aa9b4eff05127b";
1895
+ function validate$m(obj, path = 'EinsteinPromptRecordRepresentation') {
1896
1896
  const v_error = (() => {
1897
1897
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1898
1898
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1921,7 +1921,7 @@ function validate$k(obj, path = 'EinsteinPromptRecordRepresentation') {
1921
1921
  for (let i = 0; i < obj_childRelationships_prop.length; i++) {
1922
1922
  const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
1923
1923
  const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
1924
- const referencepath_childRelationships_prop_itemValidationError = validate$k(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1924
+ const referencepath_childRelationships_prop_itemValidationError = validate$m(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1925
1925
  if (referencepath_childRelationships_prop_itemValidationError !== null) {
1926
1926
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
1927
1927
  message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1941,7 +1941,7 @@ function validate$k(obj, path = 'EinsteinPromptRecordRepresentation') {
1941
1941
  const key = obj_fields_keys[i];
1942
1942
  const obj_fields_prop = obj_fields[key];
1943
1943
  const path_fields_prop = path_fields + '["' + key + '"]';
1944
- const referencepath_fields_propValidationError = validate$l(obj_fields_prop, path_fields_prop);
1944
+ const referencepath_fields_propValidationError = validate$n(obj_fields_prop, path_fields_prop);
1945
1945
  if (referencepath_fields_propValidationError !== null) {
1946
1946
  let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
1947
1947
  message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1959,49 +1959,49 @@ function validate$k(obj, path = 'EinsteinPromptRecordRepresentation') {
1959
1959
  })();
1960
1960
  return v_error === undefined ? null : v_error;
1961
1961
  }
1962
- const RepresentationType$6 = 'EinsteinPromptRecordRepresentation';
1963
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1962
+ const RepresentationType$7 = 'EinsteinPromptRecordRepresentation';
1963
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1964
1964
  return input;
1965
1965
  }
1966
- const select$q = function EinsteinPromptRecordRepresentationSelect() {
1966
+ const select$t = function EinsteinPromptRecordRepresentationSelect() {
1967
1967
  return {
1968
1968
  kind: 'Fragment',
1969
- version: VERSION$g,
1969
+ version: VERSION$h,
1970
1970
  private: [],
1971
1971
  opaque: true
1972
1972
  };
1973
1973
  };
1974
- function equals$g(existing, incoming) {
1974
+ function equals$h(existing, incoming) {
1975
1975
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1976
1976
  return false;
1977
1977
  }
1978
1978
  return true;
1979
1979
  }
1980
- const ingest$6 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
1980
+ const ingest$7 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
1981
1981
  if (process.env.NODE_ENV !== 'production') {
1982
- const validateError = validate$k(input);
1982
+ const validateError = validate$m(input);
1983
1983
  if (validateError !== null) {
1984
1984
  throw validateError;
1985
1985
  }
1986
1986
  }
1987
1987
  const key = path.fullPath;
1988
- const ttlToUse = TTL$6;
1989
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$g, RepresentationType$6, equals$g);
1988
+ const ttlToUse = TTL$7;
1989
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$h, RepresentationType$7, equals$h);
1990
1990
  return createLink(key);
1991
1991
  };
1992
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1992
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1993
1993
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1994
1994
  const rootKey = fullPathFactory();
1995
1995
  rootKeySet.set(rootKey, {
1996
1996
  namespace: keyPrefix,
1997
- representationName: RepresentationType$6,
1997
+ representationName: RepresentationType$7,
1998
1998
  mergeable: false
1999
1999
  });
2000
2000
  }
2001
2001
 
2002
- const TTL$5 = 100;
2003
- const VERSION$f = "5fd7b8a03d155ba601bcb4ee725e0893";
2004
- function validate$j(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2002
+ const TTL$6 = 100;
2003
+ const VERSION$g = "5fd7b8a03d155ba601bcb4ee725e0893";
2004
+ function validate$l(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2005
2005
  const v_error = (() => {
2006
2006
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2007
2007
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2020,7 +2020,7 @@ function validate$j(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2020
2020
  for (let i = 0; i < obj_promptRecords.length; i++) {
2021
2021
  const obj_promptRecords_item = obj_promptRecords[i];
2022
2022
  const path_promptRecords_item = path_promptRecords + '[' + i + ']';
2023
- const referencepath_promptRecords_itemValidationError = validate$k(obj_promptRecords_item, path_promptRecords_item);
2023
+ const referencepath_promptRecords_itemValidationError = validate$m(obj_promptRecords_item, path_promptRecords_item);
2024
2024
  if (referencepath_promptRecords_itemValidationError !== null) {
2025
2025
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
2026
2026
  message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2036,62 +2036,62 @@ function validate$j(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2036
2036
  })();
2037
2037
  return v_error === undefined ? null : v_error;
2038
2038
  }
2039
- const RepresentationType$5 = 'EinsteinPromptRecordCollectionOutputRepresentation';
2040
- function normalize$5(input, existing, path, luvio, store, timestamp) {
2039
+ const RepresentationType$6 = 'EinsteinPromptRecordCollectionOutputRepresentation';
2040
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
2041
2041
  return input;
2042
2042
  }
2043
- const select$p = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2043
+ const select$s = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2044
2044
  return {
2045
2045
  kind: 'Fragment',
2046
- version: VERSION$f,
2046
+ version: VERSION$g,
2047
2047
  private: [],
2048
2048
  opaque: true
2049
2049
  };
2050
2050
  };
2051
- function equals$f(existing, incoming) {
2051
+ function equals$g(existing, incoming) {
2052
2052
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2053
2053
  return false;
2054
2054
  }
2055
2055
  return true;
2056
2056
  }
2057
- const ingest$5 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2057
+ const ingest$6 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2058
2058
  if (process.env.NODE_ENV !== 'production') {
2059
- const validateError = validate$j(input);
2059
+ const validateError = validate$l(input);
2060
2060
  if (validateError !== null) {
2061
2061
  throw validateError;
2062
2062
  }
2063
2063
  }
2064
2064
  const key = path.fullPath;
2065
- const ttlToUse = TTL$5;
2066
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$f, RepresentationType$5, equals$f);
2065
+ const ttlToUse = TTL$6;
2066
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$g, RepresentationType$6, equals$g);
2067
2067
  return createLink(key);
2068
2068
  };
2069
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2069
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2070
2070
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2071
2071
  const rootKey = fullPathFactory();
2072
2072
  rootKeySet.set(rootKey, {
2073
2073
  namespace: keyPrefix,
2074
- representationName: RepresentationType$5,
2074
+ representationName: RepresentationType$6,
2075
2075
  mergeable: false
2076
2076
  });
2077
2077
  }
2078
2078
 
2079
- function select$o(luvio, params) {
2080
- return select$p();
2079
+ function select$r(luvio, params) {
2080
+ return select$s();
2081
2081
  }
2082
- function keyBuilder$b(luvio, params) {
2082
+ function keyBuilder$f(luvio, params) {
2083
2083
  return keyPrefix + '::EinsteinPromptRecordCollectionOutputRepresentation:(' + 'isActive:' + params.queryParams.isActive + ',' + 'fields:' + params.queryParams.fields + ',' + 'relatedEntity:' + params.queryParams.relatedEntity + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageLimit:' + params.queryParams.pageLimit + ',' + 'type:' + params.queryParams.type + ',' + 'query:' + params.queryParams.query + ',' + 'sortBy:' + params.queryParams.sortBy + ')';
2084
2084
  }
2085
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2086
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
2085
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
2086
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
2087
2087
  }
2088
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2088
+ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
2089
2089
  const { body } = response;
2090
- const key = keyBuilder$b(luvio, resourceParams);
2091
- luvio.storeIngest(key, ingest$5, body);
2090
+ const key = keyBuilder$f(luvio, resourceParams);
2091
+ luvio.storeIngest(key, ingest$6, body);
2092
2092
  const snapshot = luvio.storeLookup({
2093
2093
  recordId: key,
2094
- node: select$o(),
2094
+ node: select$r(),
2095
2095
  variables: {},
2096
2096
  }, snapshotRefresh);
2097
2097
  if (process.env.NODE_ENV !== 'production') {
@@ -2102,22 +2102,22 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2102
2102
  deepFreeze(snapshot.data);
2103
2103
  return snapshot;
2104
2104
  }
2105
- function ingestError$4(luvio, params, error, snapshotRefresh) {
2106
- const key = keyBuilder$b(luvio, params);
2105
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
2106
+ const key = keyBuilder$f(luvio, params);
2107
2107
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2108
2108
  const storeMetadataParams = {
2109
- ttl: TTL$5,
2109
+ ttl: TTL$6,
2110
2110
  namespace: keyPrefix,
2111
- version: VERSION$f,
2112
- representationName: RepresentationType$5
2111
+ version: VERSION$g,
2112
+ representationName: RepresentationType$6
2113
2113
  };
2114
2114
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2115
2115
  return errorSnapshot;
2116
2116
  }
2117
- function createResourceRequest$9(config) {
2117
+ function createResourceRequest$b(config) {
2118
2118
  const headers = {};
2119
2119
  return {
2120
- baseUri: '/services/data/v65.0',
2120
+ baseUri: '/services/data/v66.0',
2121
2121
  basePath: '/einstein/prompt-templates',
2122
2122
  method: 'get',
2123
2123
  body: null,
@@ -2128,7 +2128,7 @@ function createResourceRequest$9(config) {
2128
2128
  };
2129
2129
  }
2130
2130
 
2131
- const adapterName$9 = 'getPromptTemplates';
2131
+ const adapterName$b = 'getPromptTemplates';
2132
2132
  const getPromptTemplates_ConfigPropertyMetadata = [
2133
2133
  generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2134
2134
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
@@ -2139,91 +2139,91 @@ const getPromptTemplates_ConfigPropertyMetadata = [
2139
2139
  generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
2140
2140
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2141
2141
  ];
2142
- const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getPromptTemplates_ConfigPropertyMetadata);
2143
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getPromptTemplates_ConfigPropertyMetadata);
2144
- function keyBuilder$a(luvio, config) {
2145
- const resourceParams = createResourceParams$9(config);
2146
- return keyBuilder$b(luvio, resourceParams);
2142
+ const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getPromptTemplates_ConfigPropertyMetadata);
2143
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(getPromptTemplates_ConfigPropertyMetadata);
2144
+ function keyBuilder$e(luvio, config) {
2145
+ const resourceParams = createResourceParams$b(config);
2146
+ return keyBuilder$f(luvio, resourceParams);
2147
2147
  }
2148
- function typeCheckConfig$9(untrustedConfig) {
2148
+ function typeCheckConfig$b(untrustedConfig) {
2149
2149
  const config = {};
2150
- typeCheckConfig$d(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2150
+ typeCheckConfig$f(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2151
2151
  return config;
2152
2152
  }
2153
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2153
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
2154
2154
  if (!untrustedIsObject(untrustedConfig)) {
2155
2155
  return null;
2156
2156
  }
2157
2157
  if (process.env.NODE_ENV !== 'production') {
2158
2158
  validateConfig(untrustedConfig, configPropertyNames);
2159
2159
  }
2160
- const config = typeCheckConfig$9(untrustedConfig);
2160
+ const config = typeCheckConfig$b(untrustedConfig);
2161
2161
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2162
2162
  return null;
2163
2163
  }
2164
2164
  return config;
2165
2165
  }
2166
- function adapterFragment$4(luvio, config) {
2167
- createResourceParams$9(config);
2168
- return select$o();
2166
+ function adapterFragment$6(luvio, config) {
2167
+ createResourceParams$b(config);
2168
+ return select$r();
2169
2169
  }
2170
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2171
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
2170
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
2171
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
2172
2172
  config,
2173
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2173
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2174
2174
  });
2175
2175
  return luvio.storeBroadcast().then(() => snapshot);
2176
2176
  }
2177
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
2178
- const snapshot = ingestError$4(luvio, resourceParams, response, {
2177
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
2178
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
2179
2179
  config,
2180
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2180
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2181
2181
  });
2182
2182
  return luvio.storeBroadcast().then(() => snapshot);
2183
2183
  }
2184
- function buildNetworkSnapshot$9(luvio, config, options) {
2185
- const resourceParams = createResourceParams$9(config);
2186
- const request = createResourceRequest$9(resourceParams);
2184
+ function buildNetworkSnapshot$b(luvio, config, options) {
2185
+ const resourceParams = createResourceParams$b(config);
2186
+ const request = createResourceRequest$b(resourceParams);
2187
2187
  return luvio.dispatchResourceRequest(request, options)
2188
2188
  .then((response) => {
2189
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2189
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
2190
2190
  const cache = new StoreKeyMap();
2191
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2191
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
2192
2192
  return cache;
2193
2193
  });
2194
2194
  }, (response) => {
2195
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2195
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
2196
2196
  });
2197
2197
  }
2198
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2199
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
2198
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
2199
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
2200
2200
  }
2201
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2201
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
2202
2202
  const { luvio, config } = context;
2203
2203
  const selector = {
2204
- recordId: keyBuilder$a(luvio, config),
2205
- node: adapterFragment$4(luvio, config),
2204
+ recordId: keyBuilder$e(luvio, config),
2205
+ node: adapterFragment$6(luvio, config),
2206
2206
  variables: {},
2207
2207
  };
2208
2208
  const cacheSnapshot = storeLookup(selector, {
2209
2209
  config,
2210
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2210
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2211
2211
  });
2212
2212
  return cacheSnapshot;
2213
2213
  }
2214
2214
  const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
2215
- const config = validateAdapterConfig$9(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2215
+ const config = validateAdapterConfig$b(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2216
2216
  // Invalid or incomplete config
2217
2217
  if (config === null) {
2218
2218
  return null;
2219
2219
  }
2220
2220
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2221
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2221
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
2222
2222
  };
2223
2223
 
2224
- const TTL$4 = 100;
2225
- const VERSION$e = "a90a51578e2fdd7a9741d310bed22b1d";
2226
- function validate$i(obj, path = 'EinsteinPromptTemplateRepresentation') {
2224
+ const TTL$5 = 100;
2225
+ const VERSION$f = "a90a51578e2fdd7a9741d310bed22b1d";
2226
+ function validate$k(obj, path = 'EinsteinPromptTemplateRepresentation') {
2227
2227
  const v_error = (() => {
2228
2228
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2229
2229
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2231,7 +2231,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateRepresentation') {
2231
2231
  if (obj.additionalData !== undefined) {
2232
2232
  const obj_additionalData = obj.additionalData;
2233
2233
  const path_additionalData = path + '.additionalData';
2234
- const referencepath_additionalDataValidationError = validate$n(obj_additionalData, path_additionalData);
2234
+ const referencepath_additionalDataValidationError = validate$p(obj_additionalData, path_additionalData);
2235
2235
  if (referencepath_additionalDataValidationError !== null) {
2236
2236
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
2237
2237
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2299,24 +2299,24 @@ function validate$i(obj, path = 'EinsteinPromptTemplateRepresentation') {
2299
2299
  })();
2300
2300
  return v_error === undefined ? null : v_error;
2301
2301
  }
2302
- const RepresentationType$4 = 'EinsteinPromptTemplateRepresentation';
2303
- function keyBuilder$9(luvio, config) {
2304
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.versionId;
2302
+ const RepresentationType$5 = 'EinsteinPromptTemplateRepresentation';
2303
+ function keyBuilder$d(luvio, config) {
2304
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.versionId;
2305
2305
  }
2306
2306
  function keyBuilderFromType$1(luvio, object) {
2307
2307
  const keyParams = {
2308
2308
  versionId: object.versionId
2309
2309
  };
2310
- return keyBuilder$9(luvio, keyParams);
2310
+ return keyBuilder$d(luvio, keyParams);
2311
2311
  }
2312
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2312
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2313
2313
  return input;
2314
2314
  }
2315
- const select$n = function EinsteinPromptTemplateRepresentationSelect() {
2316
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$t();
2315
+ const select$q = function EinsteinPromptTemplateRepresentationSelect() {
2316
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$w();
2317
2317
  return {
2318
2318
  kind: 'Fragment',
2319
- version: VERSION$e,
2319
+ version: VERSION$f,
2320
2320
  private: [],
2321
2321
  selections: [
2322
2322
  {
@@ -2364,7 +2364,7 @@ const select$n = function EinsteinPromptTemplateRepresentationSelect() {
2364
2364
  ]
2365
2365
  };
2366
2366
  };
2367
- function equals$e(existing, incoming) {
2367
+ function equals$f(existing, incoming) {
2368
2368
  const existing_hasWarning = existing.hasWarning;
2369
2369
  const incoming_hasWarning = incoming.hasWarning;
2370
2370
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -2420,7 +2420,7 @@ function equals$e(existing, incoming) {
2420
2420
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
2421
2421
  return false;
2422
2422
  }
2423
- if (!(equals$i(existing_additionalData, incoming_additionalData))) {
2423
+ if (!(equals$j(existing_additionalData, incoming_additionalData))) {
2424
2424
  return false;
2425
2425
  }
2426
2426
  }
@@ -2446,41 +2446,41 @@ function equals$e(existing, incoming) {
2446
2446
  }
2447
2447
  return true;
2448
2448
  }
2449
- const ingest$4 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2449
+ const ingest$5 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2450
2450
  if (process.env.NODE_ENV !== 'production') {
2451
- const validateError = validate$i(input);
2451
+ const validateError = validate$k(input);
2452
2452
  if (validateError !== null) {
2453
2453
  throw validateError;
2454
2454
  }
2455
2455
  }
2456
2456
  const key = keyBuilderFromType$1(luvio, input);
2457
- const ttlToUse = TTL$4;
2458
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$e, RepresentationType$4, equals$e);
2457
+ const ttlToUse = TTL$5;
2458
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$f, RepresentationType$5, equals$f);
2459
2459
  return createLink(key);
2460
2460
  };
2461
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2461
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2462
2462
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2463
2463
  const rootKey = keyBuilderFromType$1(luvio, input);
2464
2464
  rootKeySet.set(rootKey, {
2465
2465
  namespace: keyPrefix,
2466
- representationName: RepresentationType$4,
2466
+ representationName: RepresentationType$5,
2467
2467
  mergeable: false
2468
2468
  });
2469
2469
  }
2470
2470
 
2471
- function select$m(luvio, params) {
2472
- return select$n();
2471
+ function select$p(luvio, params) {
2472
+ return select$q();
2473
2473
  }
2474
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2475
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
2474
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
2475
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2476
2476
  }
2477
- function ingestSuccess$8(luvio, resourceParams, response) {
2477
+ function ingestSuccess$a(luvio, resourceParams, response) {
2478
2478
  const { body } = response;
2479
2479
  const key = keyBuilderFromType$1(luvio, body);
2480
- luvio.storeIngest(key, ingest$4, body);
2480
+ luvio.storeIngest(key, ingest$5, body);
2481
2481
  const snapshot = luvio.storeLookup({
2482
2482
  recordId: key,
2483
- node: select$m(),
2483
+ node: select$p(),
2484
2484
  variables: {},
2485
2485
  });
2486
2486
  if (process.env.NODE_ENV !== 'production') {
@@ -2491,10 +2491,10 @@ function ingestSuccess$8(luvio, resourceParams, response) {
2491
2491
  deepFreeze(snapshot.data);
2492
2492
  return snapshot;
2493
2493
  }
2494
- function createResourceRequest$8(config) {
2494
+ function createResourceRequest$a(config) {
2495
2495
  const headers = {};
2496
2496
  return {
2497
- baseUri: '/services/data/v65.0',
2497
+ baseUri: '/services/data/v66.0',
2498
2498
  basePath: '/einstein/prompt-templates',
2499
2499
  method: 'post',
2500
2500
  body: config.body,
@@ -2505,7 +2505,7 @@ function createResourceRequest$8(config) {
2505
2505
  };
2506
2506
  }
2507
2507
 
2508
- const adapterName$8 = 'createPromptTemplate';
2508
+ const adapterName$a = 'createPromptTemplate';
2509
2509
  const createPromptTemplate_ConfigPropertyMetadata = [
2510
2510
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
2511
2511
  generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
@@ -2513,11 +2513,11 @@ const createPromptTemplate_ConfigPropertyMetadata = [
2513
2513
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
2514
2514
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
2515
2515
  ];
2516
- const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPromptTemplate_ConfigPropertyMetadata);
2517
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(createPromptTemplate_ConfigPropertyMetadata);
2518
- function typeCheckConfig$8(untrustedConfig) {
2516
+ const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createPromptTemplate_ConfigPropertyMetadata);
2517
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(createPromptTemplate_ConfigPropertyMetadata);
2518
+ function typeCheckConfig$a(untrustedConfig) {
2519
2519
  const config = {};
2520
- typeCheckConfig$d(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
2520
+ typeCheckConfig$f(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
2521
2521
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
2522
2522
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
2523
2523
  const untrustedConfig_childRelationships_object = {};
@@ -2557,30 +2557,30 @@ function typeCheckConfig$8(untrustedConfig) {
2557
2557
  }
2558
2558
  return config;
2559
2559
  }
2560
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2560
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
2561
2561
  if (!untrustedIsObject(untrustedConfig)) {
2562
2562
  return null;
2563
2563
  }
2564
2564
  if (process.env.NODE_ENV !== 'production') {
2565
2565
  validateConfig(untrustedConfig, configPropertyNames);
2566
2566
  }
2567
- const config = typeCheckConfig$8(untrustedConfig);
2567
+ const config = typeCheckConfig$a(untrustedConfig);
2568
2568
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2569
2569
  return null;
2570
2570
  }
2571
2571
  return config;
2572
2572
  }
2573
- function buildNetworkSnapshot$8(luvio, config, options) {
2574
- const resourceParams = createResourceParams$8(config);
2575
- const request = createResourceRequest$8(resourceParams);
2573
+ function buildNetworkSnapshot$a(luvio, config, options) {
2574
+ const resourceParams = createResourceParams$a(config);
2575
+ const request = createResourceRequest$a(resourceParams);
2576
2576
  return luvio.dispatchResourceRequest(request, options)
2577
2577
  .then((response) => {
2578
2578
  return luvio.handleSuccessResponse(() => {
2579
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
2579
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
2580
2580
  return luvio.storeBroadcast().then(() => snapshot);
2581
2581
  }, () => {
2582
2582
  const cache = new StoreKeyMap();
2583
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2583
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
2584
2584
  return cache;
2585
2585
  });
2586
2586
  }, (response) => {
@@ -2590,16 +2590,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
2590
2590
  }
2591
2591
  const createPromptTemplateAdapterFactory = (luvio) => {
2592
2592
  return function createPromptTemplate(untrustedConfig) {
2593
- const config = validateAdapterConfig$8(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
2593
+ const config = validateAdapterConfig$a(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
2594
2594
  // Invalid or incomplete config
2595
2595
  if (config === null) {
2596
2596
  throw new Error('Invalid config for "createPromptTemplate"');
2597
2597
  }
2598
- return buildNetworkSnapshot$8(luvio, config);
2598
+ return buildNetworkSnapshot$a(luvio, config);
2599
2599
  };
2600
2600
  };
2601
2601
 
2602
- function validate$h(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2602
+ function validate$j(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2603
2603
  const v_error = (() => {
2604
2604
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2605
2605
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2618,7 +2618,7 @@ function validate$h(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
2618
2618
  return v_error === undefined ? null : v_error;
2619
2619
  }
2620
2620
 
2621
- function validate$g(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2621
+ function validate$i(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2622
2622
  const v_error = (() => {
2623
2623
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2624
2624
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2647,9 +2647,9 @@ function validate$g(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
2647
2647
  return v_error === undefined ? null : v_error;
2648
2648
  }
2649
2649
 
2650
- const TTL$3 = 300;
2651
- const VERSION$d = "d4824d8c6e7848df0de89295e6d9d434";
2652
- function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2650
+ const TTL$4 = 300;
2651
+ const VERSION$e = "d4824d8c6e7848df0de89295e6d9d434";
2652
+ function validate$h(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2653
2653
  const v_error = (() => {
2654
2654
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2655
2655
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2678,7 +2678,7 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2678
2678
  if (obj.defaultOutputParam !== undefined) {
2679
2679
  const obj_defaultOutputParam = obj.defaultOutputParam;
2680
2680
  const path_defaultOutputParam = path + '.defaultOutputParam';
2681
- const referencepath_defaultOutputParamValidationError = validate$h(obj_defaultOutputParam, path_defaultOutputParam);
2681
+ const referencepath_defaultOutputParamValidationError = validate$j(obj_defaultOutputParam, path_defaultOutputParam);
2682
2682
  if (referencepath_defaultOutputParamValidationError !== null) {
2683
2683
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
2684
2684
  message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2732,7 +2732,7 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2732
2732
  for (let i = 0; i < obj_inputParams.length; i++) {
2733
2733
  const obj_inputParams_item = obj_inputParams[i];
2734
2734
  const path_inputParams_item = path_inputParams + '[' + i + ']';
2735
- const referencepath_inputParams_itemValidationError = validate$g(obj_inputParams_item, path_inputParams_item);
2735
+ const referencepath_inputParams_itemValidationError = validate$i(obj_inputParams_item, path_inputParams_item);
2736
2736
  if (referencepath_inputParams_itemValidationError !== null) {
2737
2737
  let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
2738
2738
  message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2798,7 +2798,7 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2798
2798
  for (let i = 0; i < obj_outputParams.length; i++) {
2799
2799
  const obj_outputParams_item = obj_outputParams[i];
2800
2800
  const path_outputParams_item = path_outputParams + '[' + i + ']';
2801
- const referencepath_outputParams_itemValidationError = validate$h(obj_outputParams_item, path_outputParams_item);
2801
+ const referencepath_outputParams_itemValidationError = validate$j(obj_outputParams_item, path_outputParams_item);
2802
2802
  if (referencepath_outputParams_itemValidationError !== null) {
2803
2803
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
2804
2804
  message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2870,49 +2870,49 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2870
2870
  })();
2871
2871
  return v_error === undefined ? null : v_error;
2872
2872
  }
2873
- const RepresentationType$3 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
2874
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2873
+ const RepresentationType$4 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
2874
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2875
2875
  return input;
2876
2876
  }
2877
- const select$l = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2877
+ const select$o = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2878
2878
  return {
2879
2879
  kind: 'Fragment',
2880
- version: VERSION$d,
2880
+ version: VERSION$e,
2881
2881
  private: [],
2882
2882
  opaque: true
2883
2883
  };
2884
2884
  };
2885
- function equals$d(existing, incoming) {
2885
+ function equals$e(existing, incoming) {
2886
2886
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2887
2887
  return false;
2888
2888
  }
2889
2889
  return true;
2890
2890
  }
2891
- const ingest$3 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
2891
+ const ingest$4 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
2892
2892
  if (process.env.NODE_ENV !== 'production') {
2893
- const validateError = validate$f(input);
2893
+ const validateError = validate$h(input);
2894
2894
  if (validateError !== null) {
2895
2895
  throw validateError;
2896
2896
  }
2897
2897
  }
2898
2898
  const key = path.fullPath;
2899
- const ttlToUse = TTL$3;
2900
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$d, RepresentationType$3, equals$d);
2899
+ const ttlToUse = TTL$4;
2900
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$e, RepresentationType$4, equals$e);
2901
2901
  return createLink(key);
2902
2902
  };
2903
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2903
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2904
2904
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2905
2905
  const rootKey = fullPathFactory();
2906
2906
  rootKeySet.set(rootKey, {
2907
2907
  namespace: keyPrefix,
2908
- representationName: RepresentationType$3,
2908
+ representationName: RepresentationType$4,
2909
2909
  mergeable: false
2910
2910
  });
2911
2911
  }
2912
2912
 
2913
- const TTL$2 = 300;
2914
- const VERSION$c = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2915
- function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2913
+ const TTL$3 = 300;
2914
+ const VERSION$d = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2915
+ function validate$g(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2916
2916
  const v_error = (() => {
2917
2917
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2918
2918
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2925,7 +2925,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
2925
2925
  for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
2926
2926
  const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
2927
2927
  const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
2928
- const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$f(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2928
+ const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$h(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2929
2929
  if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
2930
2930
  let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
2931
2931
  message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2935,62 +2935,62 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
2935
2935
  })();
2936
2936
  return v_error === undefined ? null : v_error;
2937
2937
  }
2938
- const RepresentationType$2 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
2939
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2938
+ const RepresentationType$3 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
2939
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2940
2940
  return input;
2941
2941
  }
2942
- const select$k = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2942
+ const select$n = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2943
2943
  return {
2944
2944
  kind: 'Fragment',
2945
- version: VERSION$c,
2945
+ version: VERSION$d,
2946
2946
  private: [],
2947
2947
  opaque: true
2948
2948
  };
2949
2949
  };
2950
- function equals$c(existing, incoming) {
2950
+ function equals$d(existing, incoming) {
2951
2951
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2952
2952
  return false;
2953
2953
  }
2954
2954
  return true;
2955
2955
  }
2956
- const ingest$2 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2956
+ const ingest$3 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2957
2957
  if (process.env.NODE_ENV !== 'production') {
2958
- const validateError = validate$e(input);
2958
+ const validateError = validate$g(input);
2959
2959
  if (validateError !== null) {
2960
2960
  throw validateError;
2961
2961
  }
2962
2962
  }
2963
2963
  const key = path.fullPath;
2964
- const ttlToUse = TTL$2;
2965
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$c, RepresentationType$2, equals$c);
2964
+ const ttlToUse = TTL$3;
2965
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$d, RepresentationType$3, equals$d);
2966
2966
  return createLink(key);
2967
2967
  };
2968
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2968
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2969
2969
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2970
2970
  const rootKey = fullPathFactory();
2971
2971
  rootKeySet.set(rootKey, {
2972
2972
  namespace: keyPrefix,
2973
- representationName: RepresentationType$2,
2973
+ representationName: RepresentationType$3,
2974
2974
  mergeable: false
2975
2975
  });
2976
2976
  }
2977
2977
 
2978
- function select$j(luvio, params) {
2979
- return select$k();
2978
+ function select$m(luvio, params) {
2979
+ return select$n();
2980
2980
  }
2981
- function keyBuilder$8(luvio, params) {
2981
+ function keyBuilder$c(luvio, params) {
2982
2982
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + (params.body.groupName === undefined ? 'groupName' : 'groupName:' + params.body.groupName) + '::' + (params.body.target === undefined ? 'target' : 'target:' + params.body.target) + '::' + 'templateInputs:' + params.body.templateInputs + '::' + 'templateTypeName:' + params.body.templateTypeName + ')';
2983
2983
  }
2984
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2985
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
2984
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2985
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
2986
2986
  }
2987
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2987
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2988
2988
  const { body } = response;
2989
- const key = keyBuilder$8(luvio, resourceParams);
2990
- luvio.storeIngest(key, ingest$2, body);
2989
+ const key = keyBuilder$c(luvio, resourceParams);
2990
+ luvio.storeIngest(key, ingest$3, body);
2991
2991
  const snapshot = luvio.storeLookup({
2992
2992
  recordId: key,
2993
- node: select$j(),
2993
+ node: select$m(),
2994
2994
  variables: {},
2995
2995
  }, snapshotRefresh);
2996
2996
  if (process.env.NODE_ENV !== 'production') {
@@ -3001,22 +3001,22 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
3001
3001
  deepFreeze(snapshot.data);
3002
3002
  return snapshot;
3003
3003
  }
3004
- function ingestError$3(luvio, params, error, snapshotRefresh) {
3005
- const key = keyBuilder$8(luvio, params);
3004
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
3005
+ const key = keyBuilder$c(luvio, params);
3006
3006
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3007
3007
  const storeMetadataParams = {
3008
- ttl: TTL$2,
3008
+ ttl: TTL$3,
3009
3009
  namespace: keyPrefix,
3010
- version: VERSION$c,
3011
- representationName: RepresentationType$2
3010
+ version: VERSION$d,
3011
+ representationName: RepresentationType$3
3012
3012
  };
3013
3013
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3014
3014
  return errorSnapshot;
3015
3015
  }
3016
- function createResourceRequest$7(config) {
3016
+ function createResourceRequest$9(config) {
3017
3017
  const headers = {};
3018
3018
  return {
3019
- baseUri: '/services/data/v65.0',
3019
+ baseUri: '/services/data/v66.0',
3020
3020
  basePath: '/einstein/prompt-templates/data-providers/mapped',
3021
3021
  method: 'post',
3022
3022
  body: config.body,
@@ -3027,22 +3027,22 @@ function createResourceRequest$7(config) {
3027
3027
  };
3028
3028
  }
3029
3029
 
3030
- const adapterName$7 = 'getInputMappedDataProviders';
3030
+ const adapterName$9 = 'getInputMappedDataProviders';
3031
3031
  const getInputMappedDataProviders_ConfigPropertyMetadata = [
3032
3032
  generateParamConfigMetadata('groupName', false, 2 /* Body */, 0 /* String */),
3033
3033
  generateParamConfigMetadata('target', false, 2 /* Body */, 0 /* String */),
3034
3034
  generateParamConfigMetadata('templateInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
3035
3035
  generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
3036
3036
  ];
3037
- const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getInputMappedDataProviders_ConfigPropertyMetadata);
3038
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getInputMappedDataProviders_ConfigPropertyMetadata);
3039
- function keyBuilder$7(luvio, config) {
3040
- const resourceParams = createResourceParams$7(config);
3041
- return keyBuilder$8(luvio, resourceParams);
3037
+ const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getInputMappedDataProviders_ConfigPropertyMetadata);
3038
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(getInputMappedDataProviders_ConfigPropertyMetadata);
3039
+ function keyBuilder$b(luvio, config) {
3040
+ const resourceParams = createResourceParams$9(config);
3041
+ return keyBuilder$c(luvio, resourceParams);
3042
3042
  }
3043
- function typeCheckConfig$7(untrustedConfig) {
3043
+ function typeCheckConfig$9(untrustedConfig) {
3044
3044
  const config = {};
3045
- typeCheckConfig$d(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3045
+ typeCheckConfig$f(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3046
3046
  const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
3047
3047
  if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
3048
3048
  const untrustedConfig_templateInputs_array = [];
@@ -3054,6 +3054,301 @@ function typeCheckConfig$7(untrustedConfig) {
3054
3054
  }
3055
3055
  return config;
3056
3056
  }
3057
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
3058
+ if (!untrustedIsObject(untrustedConfig)) {
3059
+ return null;
3060
+ }
3061
+ if (process.env.NODE_ENV !== 'production') {
3062
+ validateConfig(untrustedConfig, configPropertyNames);
3063
+ }
3064
+ const config = typeCheckConfig$9(untrustedConfig);
3065
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3066
+ return null;
3067
+ }
3068
+ return config;
3069
+ }
3070
+ function adapterFragment$5(luvio, config) {
3071
+ createResourceParams$9(config);
3072
+ return select$m();
3073
+ }
3074
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
3075
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
3076
+ config,
3077
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3078
+ });
3079
+ return luvio.storeBroadcast().then(() => snapshot);
3080
+ }
3081
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
3082
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
3083
+ config,
3084
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3085
+ });
3086
+ return luvio.storeBroadcast().then(() => snapshot);
3087
+ }
3088
+ function buildNetworkSnapshot$9(luvio, config, options) {
3089
+ const resourceParams = createResourceParams$9(config);
3090
+ const request = createResourceRequest$9(resourceParams);
3091
+ return luvio.dispatchResourceRequest(request, options)
3092
+ .then((response) => {
3093
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3094
+ const cache = new StoreKeyMap();
3095
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
3096
+ return cache;
3097
+ });
3098
+ }, (response) => {
3099
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3100
+ });
3101
+ }
3102
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
3103
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', false);
3104
+ }
3105
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
3106
+ const { luvio, config } = context;
3107
+ const selector = {
3108
+ recordId: keyBuilder$b(luvio, config),
3109
+ node: adapterFragment$5(luvio, config),
3110
+ variables: {},
3111
+ };
3112
+ const cacheSnapshot = storeLookup(selector, {
3113
+ config,
3114
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3115
+ });
3116
+ return cacheSnapshot;
3117
+ }
3118
+ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
3119
+ const config = validateAdapterConfig$9(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3120
+ // Invalid or incomplete config
3121
+ if (config === null) {
3122
+ return null;
3123
+ }
3124
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3125
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3126
+ };
3127
+
3128
+ function select$l(luvio, params) {
3129
+ return select$n();
3130
+ }
3131
+ function keyBuilder$a(luvio, params) {
3132
+ return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
3133
+ }
3134
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
3135
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
3136
+ }
3137
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
3138
+ const { body } = response;
3139
+ const key = keyBuilder$a(luvio, resourceParams);
3140
+ luvio.storeIngest(key, ingest$3, body);
3141
+ const snapshot = luvio.storeLookup({
3142
+ recordId: key,
3143
+ node: select$l(),
3144
+ variables: {},
3145
+ }, snapshotRefresh);
3146
+ if (process.env.NODE_ENV !== 'production') {
3147
+ if (snapshot.state !== 'Fulfilled') {
3148
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3149
+ }
3150
+ }
3151
+ deepFreeze(snapshot.data);
3152
+ return snapshot;
3153
+ }
3154
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
3155
+ const key = keyBuilder$a(luvio, params);
3156
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3157
+ const storeMetadataParams = {
3158
+ ttl: TTL$3,
3159
+ namespace: keyPrefix,
3160
+ version: VERSION$d,
3161
+ representationName: RepresentationType$3
3162
+ };
3163
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3164
+ return errorSnapshot;
3165
+ }
3166
+ function createResourceRequest$8(config) {
3167
+ const headers = {};
3168
+ return {
3169
+ baseUri: '/services/data/v66.0',
3170
+ basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
3171
+ method: 'get',
3172
+ body: null,
3173
+ urlParams: config.urlParams,
3174
+ queryParams: config.queryParams,
3175
+ headers,
3176
+ priority: 'normal',
3177
+ };
3178
+ }
3179
+
3180
+ const adapterName$8 = 'getDataProviders';
3181
+ const getDataProviders_ConfigPropertyMetadata = [
3182
+ generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
3183
+ generateParamConfigMetadata('groupNames', false, 1 /* QueryParameter */, 0 /* String */, true),
3184
+ generateParamConfigMetadata('targets', false, 1 /* QueryParameter */, 0 /* String */, true),
3185
+ ];
3186
+ const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getDataProviders_ConfigPropertyMetadata);
3187
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getDataProviders_ConfigPropertyMetadata);
3188
+ function keyBuilder$9(luvio, config) {
3189
+ const resourceParams = createResourceParams$8(config);
3190
+ return keyBuilder$a(luvio, resourceParams);
3191
+ }
3192
+ function typeCheckConfig$8(untrustedConfig) {
3193
+ const config = {};
3194
+ typeCheckConfig$f(untrustedConfig, config, getDataProviders_ConfigPropertyMetadata);
3195
+ return config;
3196
+ }
3197
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
3198
+ if (!untrustedIsObject(untrustedConfig)) {
3199
+ return null;
3200
+ }
3201
+ if (process.env.NODE_ENV !== 'production') {
3202
+ validateConfig(untrustedConfig, configPropertyNames);
3203
+ }
3204
+ const config = typeCheckConfig$8(untrustedConfig);
3205
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3206
+ return null;
3207
+ }
3208
+ return config;
3209
+ }
3210
+ function adapterFragment$4(luvio, config) {
3211
+ createResourceParams$8(config);
3212
+ return select$l();
3213
+ }
3214
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
3215
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
3216
+ config,
3217
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
3218
+ });
3219
+ return luvio.storeBroadcast().then(() => snapshot);
3220
+ }
3221
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
3222
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
3223
+ config,
3224
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
3225
+ });
3226
+ return luvio.storeBroadcast().then(() => snapshot);
3227
+ }
3228
+ function buildNetworkSnapshot$8(luvio, config, options) {
3229
+ const resourceParams = createResourceParams$8(config);
3230
+ const request = createResourceRequest$8(resourceParams);
3231
+ return luvio.dispatchResourceRequest(request, options)
3232
+ .then((response) => {
3233
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
3234
+ const cache = new StoreKeyMap();
3235
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
3236
+ return cache;
3237
+ });
3238
+ }, (response) => {
3239
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
3240
+ });
3241
+ }
3242
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3243
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
3244
+ }
3245
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
3246
+ const { luvio, config } = context;
3247
+ const selector = {
3248
+ recordId: keyBuilder$9(luvio, config),
3249
+ node: adapterFragment$4(luvio, config),
3250
+ variables: {},
3251
+ };
3252
+ const cacheSnapshot = storeLookup(selector, {
3253
+ config,
3254
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
3255
+ });
3256
+ return cacheSnapshot;
3257
+ }
3258
+ const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataProviders(untrustedConfig, requestContext) {
3259
+ const config = validateAdapterConfig$8(untrustedConfig, getDataProviders_ConfigPropertyNames);
3260
+ // Invalid or incomplete config
3261
+ if (config === null) {
3262
+ return null;
3263
+ }
3264
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3265
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
3266
+ };
3267
+
3268
+ function select$k(luvio, params) {
3269
+ return select$o();
3270
+ }
3271
+ function keyBuilder$8(luvio, params) {
3272
+ return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
3273
+ }
3274
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
3275
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
3276
+ }
3277
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
3278
+ const { body } = response;
3279
+ const key = keyBuilder$8(luvio, resourceParams);
3280
+ luvio.storeIngest(key, ingest$4, body);
3281
+ const snapshot = luvio.storeLookup({
3282
+ recordId: key,
3283
+ node: select$k(),
3284
+ variables: {},
3285
+ }, snapshotRefresh);
3286
+ if (process.env.NODE_ENV !== 'production') {
3287
+ if (snapshot.state !== 'Fulfilled') {
3288
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3289
+ }
3290
+ }
3291
+ deepFreeze(snapshot.data);
3292
+ return snapshot;
3293
+ }
3294
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
3295
+ const key = keyBuilder$8(luvio, params);
3296
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3297
+ const storeMetadataParams = {
3298
+ ttl: TTL$4,
3299
+ namespace: keyPrefix,
3300
+ version: VERSION$e,
3301
+ representationName: RepresentationType$4
3302
+ };
3303
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3304
+ return errorSnapshot;
3305
+ }
3306
+ function createResourceRequest$7(config) {
3307
+ const headers = {};
3308
+ return {
3309
+ baseUri: '/services/data/v66.0',
3310
+ basePath: '/einstein/prompt-templates/data-provider/describe',
3311
+ method: 'post',
3312
+ body: config.body,
3313
+ urlParams: {},
3314
+ queryParams: {},
3315
+ headers,
3316
+ priority: 'normal',
3317
+ };
3318
+ }
3319
+
3320
+ const adapterName$7 = 'getDataProviderInstanceConfig';
3321
+ const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
3322
+ generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
3323
+ generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
3324
+ generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
3325
+ ];
3326
+ const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3327
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getDataProviderInstanceConfig_ConfigPropertyMetadata);
3328
+ function keyBuilder$7(luvio, config) {
3329
+ const resourceParams = createResourceParams$7(config);
3330
+ return keyBuilder$8(luvio, resourceParams);
3331
+ }
3332
+ function typeCheckConfig$7(untrustedConfig) {
3333
+ const config = {};
3334
+ typeCheckConfig$f(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3335
+ const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
3336
+ if (untrustedIsObject(untrustedConfig_additionalParam)) {
3337
+ const untrustedConfig_additionalParam_object = {};
3338
+ const untrustedConfig_additionalParam_keys = Object.keys(untrustedConfig_additionalParam);
3339
+ for (let i = 0, arrayLength = untrustedConfig_additionalParam_keys.length; i < arrayLength; i++) {
3340
+ const key = untrustedConfig_additionalParam_keys[i];
3341
+ const untrustedConfig_additionalParam_prop = untrustedConfig_additionalParam[key];
3342
+ if (untrustedConfig_additionalParam_object !== undefined) {
3343
+ untrustedConfig_additionalParam_object[key] = untrustedConfig_additionalParam_prop;
3344
+ }
3345
+ }
3346
+ if (untrustedConfig_additionalParam_object !== undefined && Object.keys(untrustedConfig_additionalParam_object).length >= 0) {
3347
+ config.additionalParam = untrustedConfig_additionalParam_object;
3348
+ }
3349
+ }
3350
+ return config;
3351
+ }
3057
3352
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
3058
3353
  if (!untrustedIsObject(untrustedConfig)) {
3059
3354
  return null;
@@ -3069,7 +3364,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
3069
3364
  }
3070
3365
  function adapterFragment$3(luvio, config) {
3071
3366
  createResourceParams$7(config);
3072
- return select$j();
3367
+ return select$k();
3073
3368
  }
3074
3369
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
3075
3370
  const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
@@ -3100,7 +3395,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
3100
3395
  });
3101
3396
  }
3102
3397
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3103
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, 'get', false);
3398
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, 'get', false);
3104
3399
  }
3105
3400
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3106
3401
  const { luvio, config } = context;
@@ -3115,8 +3410,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3115
3410
  });
3116
3411
  return cacheSnapshot;
3117
3412
  }
3118
- const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
3119
- const config = validateAdapterConfig$7(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3413
+ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
3414
+ const config = validateAdapterConfig$7(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
3120
3415
  // Invalid or incomplete config
3121
3416
  if (config === null) {
3122
3417
  return null;
@@ -3125,19 +3420,134 @@ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLL
3125
3420
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3126
3421
  };
3127
3422
 
3423
+ function validate$f(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
3424
+ const v_error = (() => {
3425
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3426
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3427
+ }
3428
+ if (obj.description !== undefined) {
3429
+ const obj_description = obj.description;
3430
+ const path_description = path + '.description';
3431
+ if (typeof obj_description !== 'string') {
3432
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3433
+ }
3434
+ }
3435
+ const obj_groupName = obj.groupName;
3436
+ const path_groupName = path + '.groupName';
3437
+ if (typeof obj_groupName !== 'string') {
3438
+ return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
3439
+ }
3440
+ const obj_icon = obj.icon;
3441
+ const path_icon = path + '.icon';
3442
+ if (typeof obj_icon !== 'string') {
3443
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3444
+ }
3445
+ const obj_isTopLevel = obj.isTopLevel;
3446
+ const path_isTopLevel = path + '.isTopLevel';
3447
+ if (typeof obj_isTopLevel !== 'boolean') {
3448
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isTopLevel + '" (at "' + path_isTopLevel + '")');
3449
+ }
3450
+ const obj_label = obj.label;
3451
+ const path_label = path + '.label';
3452
+ if (typeof obj_label !== 'string') {
3453
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3454
+ }
3455
+ if (obj.parentNode !== undefined) {
3456
+ const obj_parentNode = obj.parentNode;
3457
+ const path_parentNode = path + '.parentNode';
3458
+ if (typeof obj_parentNode !== 'string') {
3459
+ return new TypeError('Expected "string" but received "' + typeof obj_parentNode + '" (at "' + path_parentNode + '")');
3460
+ }
3461
+ }
3462
+ if (obj.scope !== undefined) {
3463
+ const obj_scope = obj.scope;
3464
+ const path_scope = path + '.scope';
3465
+ if (obj_scope === undefined) {
3466
+ return new TypeError('Expected "defined" but received "' + typeof obj_scope + '" (at "' + path_scope + '")');
3467
+ }
3468
+ }
3469
+ })();
3470
+ return v_error === undefined ? null : v_error;
3471
+ }
3472
+
3473
+ const TTL$2 = 300;
3474
+ const VERSION$c = "212332dac1decc071b476742df3440fb";
3475
+ function validate$e(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
3476
+ const v_error = (() => {
3477
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3478
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3479
+ }
3480
+ const obj_dataProviderTypeConfigs = obj.dataProviderTypeConfigs;
3481
+ const path_dataProviderTypeConfigs = path + '.dataProviderTypeConfigs';
3482
+ if (!ArrayIsArray(obj_dataProviderTypeConfigs)) {
3483
+ return new TypeError('Expected "array" but received "' + typeof obj_dataProviderTypeConfigs + '" (at "' + path_dataProviderTypeConfigs + '")');
3484
+ }
3485
+ for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
3486
+ const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
3487
+ const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
3488
+ const referencepath_dataProviderTypeConfigs_itemValidationError = validate$f(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
3489
+ if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
3490
+ let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
3491
+ message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3492
+ return new TypeError(message);
3493
+ }
3494
+ }
3495
+ })();
3496
+ return v_error === undefined ? null : v_error;
3497
+ }
3498
+ const RepresentationType$2 = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation';
3499
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
3500
+ return input;
3501
+ }
3502
+ const select$j = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
3503
+ return {
3504
+ kind: 'Fragment',
3505
+ version: VERSION$c,
3506
+ private: [],
3507
+ opaque: true
3508
+ };
3509
+ };
3510
+ function equals$c(existing, incoming) {
3511
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
3512
+ return false;
3513
+ }
3514
+ return true;
3515
+ }
3516
+ const ingest$2 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3517
+ if (process.env.NODE_ENV !== 'production') {
3518
+ const validateError = validate$e(input);
3519
+ if (validateError !== null) {
3520
+ throw validateError;
3521
+ }
3522
+ }
3523
+ const key = path.fullPath;
3524
+ const ttlToUse = TTL$2;
3525
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$c, RepresentationType$2, equals$c);
3526
+ return createLink(key);
3527
+ };
3528
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3529
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3530
+ const rootKey = fullPathFactory();
3531
+ rootKeySet.set(rootKey, {
3532
+ namespace: keyPrefix,
3533
+ representationName: RepresentationType$2,
3534
+ mergeable: false
3535
+ });
3536
+ }
3537
+
3128
3538
  function select$i(luvio, params) {
3129
- return select$l();
3539
+ return select$j();
3130
3540
  }
3131
3541
  function keyBuilder$6(luvio, params) {
3132
- return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
3542
+ return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
3133
3543
  }
3134
3544
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3135
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
3545
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
3136
3546
  }
3137
3547
  function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
3138
3548
  const { body } = response;
3139
3549
  const key = keyBuilder$6(luvio, resourceParams);
3140
- luvio.storeIngest(key, ingest$3, body);
3550
+ luvio.storeIngest(key, ingest$2, body);
3141
3551
  const snapshot = luvio.storeLookup({
3142
3552
  recordId: key,
3143
3553
  node: select$i(),
@@ -3155,10 +3565,10 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
3155
3565
  const key = keyBuilder$6(luvio, params);
3156
3566
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3157
3567
  const storeMetadataParams = {
3158
- ttl: TTL$3,
3568
+ ttl: TTL$2,
3159
3569
  namespace: keyPrefix,
3160
- version: VERSION$d,
3161
- representationName: RepresentationType$3
3570
+ version: VERSION$c,
3571
+ representationName: RepresentationType$2
3162
3572
  };
3163
3573
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3164
3574
  return errorSnapshot;
@@ -3166,47 +3576,30 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
3166
3576
  function createResourceRequest$6(config) {
3167
3577
  const headers = {};
3168
3578
  return {
3169
- baseUri: '/services/data/v65.0',
3170
- basePath: '/einstein/prompt-templates/data-provider/describe',
3171
- method: 'post',
3172
- body: config.body,
3173
- urlParams: {},
3579
+ baseUri: '/services/data/v66.0',
3580
+ basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
3581
+ method: 'get',
3582
+ body: null,
3583
+ urlParams: config.urlParams,
3174
3584
  queryParams: {},
3175
3585
  headers,
3176
3586
  priority: 'normal',
3177
3587
  };
3178
3588
  }
3179
3589
 
3180
- const adapterName$6 = 'getDataProviderInstanceConfig';
3181
- const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
3182
- generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
3183
- generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
3184
- generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
3590
+ const adapterName$6 = 'getDataProviderTypeConfigs';
3591
+ const getDataProviderTypeConfigs_ConfigPropertyMetadata = [
3592
+ generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
3185
3593
  ];
3186
- const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3187
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getDataProviderInstanceConfig_ConfigPropertyMetadata);
3594
+ const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataProviderTypeConfigs_ConfigPropertyMetadata);
3595
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getDataProviderTypeConfigs_ConfigPropertyMetadata);
3188
3596
  function keyBuilder$5(luvio, config) {
3189
3597
  const resourceParams = createResourceParams$6(config);
3190
3598
  return keyBuilder$6(luvio, resourceParams);
3191
3599
  }
3192
3600
  function typeCheckConfig$6(untrustedConfig) {
3193
3601
  const config = {};
3194
- typeCheckConfig$d(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3195
- const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
3196
- if (untrustedIsObject(untrustedConfig_additionalParam)) {
3197
- const untrustedConfig_additionalParam_object = {};
3198
- const untrustedConfig_additionalParam_keys = Object.keys(untrustedConfig_additionalParam);
3199
- for (let i = 0, arrayLength = untrustedConfig_additionalParam_keys.length; i < arrayLength; i++) {
3200
- const key = untrustedConfig_additionalParam_keys[i];
3201
- const untrustedConfig_additionalParam_prop = untrustedConfig_additionalParam[key];
3202
- if (untrustedConfig_additionalParam_object !== undefined) {
3203
- untrustedConfig_additionalParam_object[key] = untrustedConfig_additionalParam_prop;
3204
- }
3205
- }
3206
- if (untrustedConfig_additionalParam_object !== undefined && Object.keys(untrustedConfig_additionalParam_object).length >= 0) {
3207
- config.additionalParam = untrustedConfig_additionalParam_object;
3208
- }
3209
- }
3602
+ typeCheckConfig$f(untrustedConfig, config, getDataProviderTypeConfigs_ConfigPropertyMetadata);
3210
3603
  return config;
3211
3604
  }
3212
3605
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -3255,7 +3648,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
3255
3648
  });
3256
3649
  }
3257
3650
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3258
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
3651
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
3259
3652
  }
3260
3653
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3261
3654
  const { luvio, config } = context;
@@ -3270,8 +3663,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3270
3663
  });
3271
3664
  return cacheSnapshot;
3272
3665
  }
3273
- const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
3274
- const config = validateAdapterConfig$6(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
3666
+ const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderTypeConfigs(untrustedConfig, requestContext) {
3667
+ const config = validateAdapterConfig$6(untrustedConfig, getDataProviderTypeConfigs_ConfigPropertyNames);
3275
3668
  // Invalid or incomplete config
3276
3669
  if (config === null) {
3277
3670
  return null;
@@ -3281,18 +3674,18 @@ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function Einstein
3281
3674
  };
3282
3675
 
3283
3676
  function select$h(luvio, params) {
3284
- return select$q();
3677
+ return select$t();
3285
3678
  }
3286
3679
  function keyBuilder$4(luvio, params) {
3287
3680
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
3288
3681
  }
3289
3682
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3290
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
3683
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
3291
3684
  }
3292
3685
  function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
3293
3686
  const { body } = response;
3294
3687
  const key = keyBuilder$4(luvio, resourceParams);
3295
- luvio.storeIngest(key, ingest$6, body);
3688
+ luvio.storeIngest(key, ingest$7, body);
3296
3689
  const snapshot = luvio.storeLookup({
3297
3690
  recordId: key,
3298
3691
  node: select$h(),
@@ -3310,10 +3703,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
3310
3703
  const key = keyBuilder$4(luvio, params);
3311
3704
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3312
3705
  const storeMetadataParams = {
3313
- ttl: TTL$6,
3706
+ ttl: TTL$7,
3314
3707
  namespace: keyPrefix,
3315
- version: VERSION$g,
3316
- representationName: RepresentationType$6
3708
+ version: VERSION$h,
3709
+ representationName: RepresentationType$7
3317
3710
  };
3318
3711
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3319
3712
  return errorSnapshot;
@@ -3321,7 +3714,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
3321
3714
  function createResourceRequest$5(config) {
3322
3715
  const headers = {};
3323
3716
  return {
3324
- baseUri: '/services/data/v65.0',
3717
+ baseUri: '/services/data/v66.0',
3325
3718
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
3326
3719
  method: 'get',
3327
3720
  body: null,
@@ -3338,14 +3731,14 @@ const getPromptTemplate_ConfigPropertyMetadata = [
3338
3731
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3339
3732
  ];
3340
3733
  const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPromptTemplate_ConfigPropertyMetadata);
3341
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(getPromptTemplate_ConfigPropertyMetadata);
3734
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getPromptTemplate_ConfigPropertyMetadata);
3342
3735
  function keyBuilder$3(luvio, config) {
3343
3736
  const resourceParams = createResourceParams$5(config);
3344
3737
  return keyBuilder$4(luvio, resourceParams);
3345
3738
  }
3346
3739
  function typeCheckConfig$5(untrustedConfig) {
3347
3740
  const config = {};
3348
- typeCheckConfig$d(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3741
+ typeCheckConfig$f(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3349
3742
  return config;
3350
3743
  }
3351
3744
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -3394,7 +3787,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3394
3787
  });
3395
3788
  }
3396
3789
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3397
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
3790
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
3398
3791
  }
3399
3792
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3400
3793
  const { luvio, config } = context;
@@ -3420,15 +3813,15 @@ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getProm
3420
3813
  };
3421
3814
 
3422
3815
  function select$g(luvio, params) {
3423
- return select$n();
3816
+ return select$q();
3424
3817
  }
3425
3818
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3426
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
3819
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3427
3820
  }
3428
3821
  function ingestSuccess$4(luvio, resourceParams, response) {
3429
3822
  const { body } = response;
3430
3823
  const key = keyBuilderFromType$1(luvio, body);
3431
- luvio.storeIngest(key, ingest$4, body);
3824
+ luvio.storeIngest(key, ingest$5, body);
3432
3825
  const snapshot = luvio.storeLookup({
3433
3826
  recordId: key,
3434
3827
  node: select$g(),
@@ -3445,7 +3838,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3445
3838
  function createResourceRequest$4(config) {
3446
3839
  const headers = {};
3447
3840
  return {
3448
- baseUri: '/services/data/v65.0',
3841
+ baseUri: '/services/data/v66.0',
3449
3842
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
3450
3843
  method: 'post',
3451
3844
  body: config.body,
@@ -3466,10 +3859,10 @@ const createPromptTemplateVersion_ConfigPropertyMetadata = [
3466
3859
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3467
3860
  ];
3468
3861
  const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createPromptTemplateVersion_ConfigPropertyMetadata);
3469
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(createPromptTemplateVersion_ConfigPropertyMetadata);
3862
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(createPromptTemplateVersion_ConfigPropertyMetadata);
3470
3863
  function typeCheckConfig$4(untrustedConfig) {
3471
3864
  const config = {};
3472
- typeCheckConfig$d(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3865
+ typeCheckConfig$f(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3473
3866
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3474
3867
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
3475
3868
  const untrustedConfig_childRelationships_object = {};
@@ -3552,15 +3945,15 @@ const createPromptTemplateVersionAdapterFactory = (luvio) => {
3552
3945
  };
3553
3946
 
3554
3947
  function select$f(luvio, params) {
3555
- return select$n();
3948
+ return select$q();
3556
3949
  }
3557
3950
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3558
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
3951
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3559
3952
  }
3560
3953
  function ingestSuccess$3(luvio, resourceParams, response) {
3561
3954
  const { body } = response;
3562
3955
  const key = keyBuilderFromType$1(luvio, body);
3563
- luvio.storeIngest(key, ingest$4, body);
3956
+ luvio.storeIngest(key, ingest$5, body);
3564
3957
  const snapshot = luvio.storeLookup({
3565
3958
  recordId: key,
3566
3959
  node: select$f(),
@@ -3577,7 +3970,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
3577
3970
  function createResourceRequest$3(config) {
3578
3971
  const headers = {};
3579
3972
  return {
3580
- baseUri: '/services/data/v65.0',
3973
+ baseUri: '/services/data/v66.0',
3581
3974
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
3582
3975
  method: 'put',
3583
3976
  body: config.body,
@@ -3599,10 +3992,10 @@ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
3599
3992
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3600
3993
  ];
3601
3994
  const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePromptTemplateVersion_ConfigPropertyMetadata);
3602
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(updatePromptTemplateVersion_ConfigPropertyMetadata);
3995
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(updatePromptTemplateVersion_ConfigPropertyMetadata);
3603
3996
  function typeCheckConfig$3(untrustedConfig) {
3604
3997
  const config = {};
3605
- typeCheckConfig$d(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
3998
+ typeCheckConfig$f(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
3606
3999
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3607
4000
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
3608
4001
  const untrustedConfig_childRelationships_object = {};
@@ -3685,15 +4078,15 @@ const updatePromptTemplateVersionAdapterFactory = (luvio) => {
3685
4078
  };
3686
4079
 
3687
4080
  function select$e(luvio, params) {
3688
- return select$n();
4081
+ return select$q();
3689
4082
  }
3690
4083
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3691
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
4084
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3692
4085
  }
3693
4086
  function ingestSuccess$2(luvio, resourceParams, response) {
3694
4087
  const { body } = response;
3695
4088
  const key = keyBuilderFromType$1(luvio, body);
3696
- luvio.storeIngest(key, ingest$4, body);
4089
+ luvio.storeIngest(key, ingest$5, body);
3697
4090
  const snapshot = luvio.storeLookup({
3698
4091
  recordId: key,
3699
4092
  node: select$e(),
@@ -3710,7 +4103,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
3710
4103
  function createResourceRequest$2(config) {
3711
4104
  const headers = {};
3712
4105
  return {
3713
- baseUri: '/services/data/v65.0',
4106
+ baseUri: '/services/data/v66.0',
3714
4107
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
3715
4108
  method: 'put',
3716
4109
  body: null,
@@ -3729,10 +4122,10 @@ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata = [
3729
4122
  generateParamConfigMetadata('ignoreWarnings', false, 1 /* QueryParameter */, 1 /* Boolean */),
3730
4123
  ];
3731
4124
  const putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
3732
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4125
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
3733
4126
  function typeCheckConfig$2(untrustedConfig) {
3734
4127
  const config = {};
3735
- typeCheckConfig$d(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4128
+ typeCheckConfig$f(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
3736
4129
  return config;
3737
4130
  }
3738
4131
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -3808,7 +4201,7 @@ function validate$c(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
3808
4201
  if (obj.additionalConfig !== undefined) {
3809
4202
  const obj_additionalConfig = obj.additionalConfig;
3810
4203
  const path_additionalConfig = path + '.additionalConfig';
3811
- const referencepath_additionalConfigValidationError = validate$s(obj_additionalConfig, path_additionalConfig);
4204
+ const referencepath_additionalConfigValidationError = validate$u(obj_additionalConfig, path_additionalConfig);
3812
4205
  if (referencepath_additionalConfigValidationError !== null) {
3813
4206
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
3814
4207
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4651,7 +5044,7 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
4651
5044
  for (let i = 0; i < obj_generations.length; i++) {
4652
5045
  const obj_generations_item = obj_generations[i];
4653
5046
  const path_generations_item = path_generations + '[' + i + ']';
4654
- const referencepath_generations_itemValidationError = validate$o(obj_generations_item, path_generations_item);
5047
+ const referencepath_generations_itemValidationError = validate$q(obj_generations_item, path_generations_item);
4655
5048
  if (referencepath_generations_itemValidationError !== null) {
4656
5049
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
4657
5050
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4678,7 +5071,7 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
4678
5071
  const path_parameters = path + '.parameters';
4679
5072
  let obj_parameters_union0 = null;
4680
5073
  const obj_parameters_union0_error = (() => {
4681
- const referencepath_parametersValidationError = validate$n(obj_parameters, path_parameters);
5074
+ const referencepath_parametersValidationError = validate$p(obj_parameters, path_parameters);
4682
5075
  if (referencepath_parametersValidationError !== null) {
4683
5076
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
4684
5077
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4810,8 +5203,8 @@ const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
4810
5203
  const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$c();
4811
5204
  const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$a();
4812
5205
  const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$9();
4813
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$u();
4814
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$t();
5206
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$x();
5207
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$w();
4815
5208
  const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$7();
4816
5209
  const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$6();
4817
5210
  return {
@@ -4955,7 +5348,7 @@ function equals$3(existing, incoming) {
4955
5348
  const existing_generations = existing.generations;
4956
5349
  const incoming_generations = incoming.generations;
4957
5350
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
4958
- if (!(equals$j(existing_generations_item, incoming_generations_item))) {
5351
+ if (!(equals$k(existing_generations_item, incoming_generations_item))) {
4959
5352
  return false;
4960
5353
  }
4961
5354
  });
@@ -4985,7 +5378,7 @@ function equals$3(existing, incoming) {
4985
5378
  if (!(existing_parameters === incoming_parameters
4986
5379
  || (existing_parameters != null &&
4987
5380
  incoming_parameters != null &&
4988
- equals$i(existing_parameters, incoming_parameters)))) {
5381
+ equals$j(existing_parameters, incoming_parameters)))) {
4989
5382
  return false;
4990
5383
  }
4991
5384
  const existing_prompt = existing.prompt;
@@ -5097,7 +5490,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
5097
5490
  function createResourceRequest$1(config) {
5098
5491
  const headers = {};
5099
5492
  return {
5100
- baseUri: '/services/data/v65.0',
5493
+ baseUri: '/services/data/v66.0',
5101
5494
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/generations',
5102
5495
  method: 'post',
5103
5496
  body: config.body,
@@ -5115,10 +5508,10 @@ const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
5115
5508
  generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
5116
5509
  ];
5117
5510
  const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5118
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5511
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5119
5512
  function typeCheckConfig$1(untrustedConfig) {
5120
5513
  const config = {};
5121
- typeCheckConfig$d(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5514
+ typeCheckConfig$f(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5122
5515
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
5123
5516
  const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$c(untrustedConfig_promptTemplateGenerationsInput);
5124
5517
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
@@ -5463,7 +5856,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
5463
5856
  function createResourceRequest(config) {
5464
5857
  const headers = {};
5465
5858
  return {
5466
- baseUri: '/services/data/v65.0',
5859
+ baseUri: '/services/data/v66.0',
5467
5860
  basePath: '/einstein/prompt-template/' + config.urlParams.promptTemplateDevName + '/output-languages',
5468
5861
  method: 'get',
5469
5862
  body: null,
@@ -5481,14 +5874,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
5481
5874
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
5482
5875
  ];
5483
5876
  const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOutputLanguages_ConfigPropertyMetadata);
5484
- const createResourceParams = /*#__PURE__*/ createResourceParams$d(getOutputLanguages_ConfigPropertyMetadata);
5877
+ const createResourceParams = /*#__PURE__*/ createResourceParams$f(getOutputLanguages_ConfigPropertyMetadata);
5485
5878
  function keyBuilder(luvio, config) {
5486
5879
  const resourceParams = createResourceParams(config);
5487
5880
  return keyBuilder$1(luvio, resourceParams);
5488
5881
  }
5489
5882
  function typeCheckConfig(untrustedConfig) {
5490
5883
  const config = {};
5491
- typeCheckConfig$d(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
5884
+ typeCheckConfig$f(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
5492
5885
  return config;
5493
5886
  }
5494
5887
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -5537,7 +5930,7 @@ function buildNetworkSnapshot(luvio, config, options) {
5537
5930
  });
5538
5931
  }
5539
5932
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
5540
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
5933
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
5541
5934
  }
5542
5935
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
5543
5936
  const { luvio, config } = context;
@@ -5562,4 +5955,4 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
5562
5955
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
5563
5956
  };
5564
5957
 
5565
- export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, createPromptTemplateAdapterFactory, createPromptTemplateVersionAdapterFactory, getDataProviderInstanceConfigAdapterFactory, getInputMappedDataProvidersAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplatesAdapterFactory, putEinsteinPromptTemplateVersionStatusAdapterFactory, updatePromptTemplateVersionAdapterFactory };
5958
+ export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, createPromptTemplateAdapterFactory, createPromptTemplateVersionAdapterFactory, getDataProviderInstanceConfigAdapterFactory, getDataProviderTypeConfigsAdapterFactory, getDataProvidersAdapterFactory, getInputMappedDataProvidersAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplatesAdapterFactory, putEinsteinPromptTemplateVersionStatusAdapterFactory, updatePromptTemplateVersionAdapterFactory };