@salesforce/lds-adapters-service-einsteinllm 1.415.0 → 1.416.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$b, StoreKeyMap, createResourceParams as createResourceParams$j, typeCheckConfig as typeCheckConfig$j } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$c, StoreKeyMap, createResourceParams as createResourceParams$k, typeCheckConfig as typeCheckConfig$k } 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$N(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
171
+ function validate$O(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$N(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
212
212
  return v_error === undefined ? null : v_error;
213
213
  }
214
214
 
215
- function validate$M(obj, path = 'WrappedListString') {
215
+ function validate$N(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$M(obj, path = 'WrappedListString') {
233
233
  return v_error === undefined ? null : v_error;
234
234
  }
235
235
 
236
- function validate$L(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
236
+ function validate$M(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$N(obj_additionalConfig, path_additionalConfig);
243
+ const referencepath_additionalConfigValidationError = validate$O(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$L(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
248
248
  }
249
249
  const obj_prompts = obj.prompts;
250
250
  const path_prompts = path + '.prompts';
251
- const referencepath_promptsValidationError = validate$M(obj_prompts, path_prompts);
251
+ const referencepath_promptsValidationError = validate$N(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$L(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- const VERSION$B = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
- function validate$K(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
268
+ const VERSION$C = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
+ function validate$L(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$K(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
287
287
  })();
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
- const select$U = function EinsteinLlmEmbeddingItemRepresentationSelect() {
290
+ const select$W = function EinsteinLlmEmbeddingItemRepresentationSelect() {
291
291
  return {
292
292
  kind: 'Fragment',
293
- version: VERSION$B,
293
+ version: VERSION$C,
294
294
  private: [],
295
295
  selections: [
296
296
  {
@@ -305,7 +305,7 @@ const select$U = function EinsteinLlmEmbeddingItemRepresentationSelect() {
305
305
  ]
306
306
  };
307
307
  };
308
- function equals$B(existing, incoming) {
308
+ function equals$C(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$B(existing, incoming) {
324
324
  return true;
325
325
  }
326
326
 
327
- const TTL$c = 100;
328
- const VERSION$A = "d9873651f09d29764ef4d4231eb653d7";
329
- function validate$J(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
327
+ const TTL$d = 100;
328
+ const VERSION$B = "d9873651f09d29764ef4d4231eb653d7";
329
+ function validate$K(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$J(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$K(obj_embeddings_item, path_embeddings_item);
342
+ const referencepath_embeddings_itemValidationError = validate$L(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$J(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
363
363
  })();
364
364
  return v_error === undefined ? null : v_error;
365
365
  }
366
- const RepresentationType$c = 'EinsteinLlmEmbeddingsRepresentation';
367
- function normalize$c(input, existing, path, luvio, store, timestamp) {
366
+ const RepresentationType$d = 'EinsteinLlmEmbeddingsRepresentation';
367
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
368
368
  return input;
369
369
  }
370
- const select$T = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$U();
370
+ const select$V = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$W();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$A,
374
+ version: VERSION$B,
375
375
  private: [],
376
376
  selections: [
377
377
  {
@@ -388,11 +388,11 @@ const select$T = function EinsteinLlmEmbeddingsRepresentationSelect() {
388
388
  ]
389
389
  };
390
390
  };
391
- function equals$A(existing, incoming) {
391
+ function equals$B(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$B(existing_embeddings_item, incoming_embeddings_item))) {
395
+ if (!(equals$C(existing_embeddings_item, incoming_embeddings_item))) {
396
396
  return false;
397
397
  }
398
398
  });
@@ -411,44 +411,44 @@ function equals$A(existing, incoming) {
411
411
  }
412
412
  return true;
413
413
  }
414
- const ingest$c = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
414
+ const ingest$d = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$J(input);
416
+ const validateError = validate$K(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
- const ttlToUse = TTL$c;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$A, RepresentationType$c, equals$A);
422
+ const ttlToUse = TTL$d;
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "EinsteinLLM", VERSION$B, RepresentationType$d, equals$B);
424
424
  return createLink(key);
425
425
  };
426
- function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
426
+ function getTypeCacheKeys$d(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$c,
431
+ representationName: RepresentationType$d,
432
432
  mergeable: false
433
433
  });
434
434
  }
435
435
 
436
- function select$S(luvio, params) {
437
- return select$T();
436
+ function select$U(luvio, params) {
437
+ return select$V();
438
438
  }
439
- function keyBuilder$q(luvio, params) {
439
+ function keyBuilder$s(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$i(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
442
+ function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
443
+ getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
444
444
  }
445
- function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
445
+ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
446
446
  const { body } = response;
447
- const key = keyBuilder$q(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest$c, body);
447
+ const key = keyBuilder$s(luvio, resourceParams);
448
+ luvio.storeIngest(key, ingest$d, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$S(),
451
+ node: select$U(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -459,19 +459,19 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
459
459
  deepFreeze(snapshot.data);
460
460
  return snapshot;
461
461
  }
462
- function ingestError$a(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$q(luvio, params);
462
+ function ingestError$b(luvio, params, error, snapshotRefresh) {
463
+ const key = keyBuilder$s(luvio, params);
464
464
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
465
  const storeMetadataParams = {
466
- ttl: TTL$c,
466
+ ttl: TTL$d,
467
467
  namespace: keyPrefix,
468
- version: VERSION$A,
469
- representationName: RepresentationType$c
468
+ version: VERSION$B,
469
+ representationName: RepresentationType$d
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
472
  return errorSnapshot;
473
473
  }
474
- function createResourceRequest$i(config) {
474
+ function createResourceRequest$j(config) {
475
475
  const headers = {};
476
476
  return {
477
477
  baseUri: '/services/data/v67.0',
@@ -485,97 +485,97 @@ function createResourceRequest$i(config) {
485
485
  };
486
486
  }
487
487
 
488
- const adapterName$i = 'createEmbeddings';
488
+ const adapterName$j = 'createEmbeddings';
489
489
  const createEmbeddings_ConfigPropertyMetadata = [
490
490
  generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
491
491
  ];
492
- const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, createEmbeddings_ConfigPropertyMetadata);
493
- const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(createEmbeddings_ConfigPropertyMetadata);
494
- function keyBuilder$p(luvio, config) {
495
- const resourceParams = createResourceParams$i(config);
496
- return keyBuilder$q(luvio, resourceParams);
492
+ const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createEmbeddings_ConfigPropertyMetadata);
493
+ const createResourceParams$j = /*#__PURE__*/ createResourceParams$k(createEmbeddings_ConfigPropertyMetadata);
494
+ function keyBuilder$r(luvio, config) {
495
+ const resourceParams = createResourceParams$j(config);
496
+ return keyBuilder$s(luvio, resourceParams);
497
497
  }
498
- function typeCheckConfig$i(untrustedConfig) {
498
+ function typeCheckConfig$j(untrustedConfig) {
499
499
  const config = {};
500
500
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
501
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$L(untrustedConfig_embeddingsInput);
501
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$M(untrustedConfig_embeddingsInput);
502
502
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
503
503
  config.embeddingsInput = untrustedConfig_embeddingsInput;
504
504
  }
505
505
  return config;
506
506
  }
507
- function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
507
+ function validateAdapterConfig$j(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$i(untrustedConfig);
514
+ const config = typeCheckConfig$j(untrustedConfig);
515
515
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
516
516
  return null;
517
517
  }
518
518
  return config;
519
519
  }
520
- function adapterFragment$a(luvio, config) {
521
- createResourceParams$i(config);
522
- return select$S();
520
+ function adapterFragment$b(luvio, config) {
521
+ createResourceParams$j(config);
522
+ return select$U();
523
523
  }
524
- function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
525
- const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
524
+ function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
525
+ const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
526
526
  config,
527
- resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
527
+ resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
528
528
  });
529
529
  return luvio.storeBroadcast().then(() => snapshot);
530
530
  }
531
- function onFetchResponseError$a(luvio, config, resourceParams, response) {
532
- const snapshot = ingestError$a(luvio, resourceParams, response, {
531
+ function onFetchResponseError$b(luvio, config, resourceParams, response) {
532
+ const snapshot = ingestError$b(luvio, resourceParams, response, {
533
533
  config,
534
- resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
534
+ resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
535
535
  });
536
536
  return luvio.storeBroadcast().then(() => snapshot);
537
537
  }
538
- function buildNetworkSnapshot$i(luvio, config, options) {
539
- const resourceParams = createResourceParams$i(config);
540
- const request = createResourceRequest$i(resourceParams);
538
+ function buildNetworkSnapshot$j(luvio, config, options) {
539
+ const resourceParams = createResourceParams$j(config);
540
+ const request = createResourceRequest$j(resourceParams);
541
541
  return luvio.dispatchResourceRequest(request, options)
542
542
  .then((response) => {
543
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
543
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
544
544
  const cache = new StoreKeyMap();
545
- getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
545
+ getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
546
546
  return cache;
547
547
  });
548
548
  }, (response) => {
549
- return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
549
+ return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
550
550
  });
551
551
  }
552
- function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
553
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, 'get', false);
552
+ function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
553
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, 'get', false);
554
554
  }
555
- function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
555
+ function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
556
556
  const { luvio, config } = context;
557
557
  const selector = {
558
- recordId: keyBuilder$p(luvio, config),
559
- node: adapterFragment$a(luvio, config),
558
+ recordId: keyBuilder$r(luvio, config),
559
+ node: adapterFragment$b(luvio, config),
560
560
  variables: {},
561
561
  };
562
562
  const cacheSnapshot = storeLookup(selector, {
563
563
  config,
564
- resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
564
+ resolve: () => buildNetworkSnapshot$j(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$i(untrustedConfig, createEmbeddings_ConfigPropertyNames);
569
+ const config = validateAdapterConfig$j(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$a, buildNetworkSnapshotCachePolicy$a);
575
+ buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
576
576
  };
577
577
 
578
- function validate$I(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
578
+ function validate$J(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$I(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
622
622
  return v_error === undefined ? null : v_error;
623
623
  }
624
624
 
625
- const TTL$b = 100;
626
- const VERSION$z = "4033328f65865dd5d80c68a7573a4522";
627
- function validate$H(obj, path = 'EinsteinLlmFeedbackRepresentation') {
625
+ const TTL$c = 100;
626
+ const VERSION$A = "4033328f65865dd5d80c68a7573a4522";
627
+ function validate$I(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$H(obj, path = 'EinsteinLlmFeedbackRepresentation') {
637
637
  })();
638
638
  return v_error === undefined ? null : v_error;
639
639
  }
640
- const RepresentationType$b = 'EinsteinLlmFeedbackRepresentation';
641
- function keyBuilder$o(luvio, config) {
642
- return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
640
+ const RepresentationType$c = 'EinsteinLlmFeedbackRepresentation';
641
+ function keyBuilder$q(luvio, config) {
642
+ return keyPrefix + '::' + RepresentationType$c + ':' + config.message;
643
643
  }
644
644
  function keyBuilderFromType$4(luvio, object) {
645
645
  const keyParams = {
646
646
  message: object.message
647
647
  };
648
- return keyBuilder$o(luvio, keyParams);
648
+ return keyBuilder$q(luvio, keyParams);
649
649
  }
650
- function normalize$b(input, existing, path, luvio, store, timestamp) {
650
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
651
651
  return input;
652
652
  }
653
- const select$R = function EinsteinLlmFeedbackRepresentationSelect() {
653
+ const select$T = function EinsteinLlmFeedbackRepresentationSelect() {
654
654
  return {
655
655
  kind: 'Fragment',
656
- version: VERSION$z,
656
+ version: VERSION$A,
657
657
  private: [],
658
658
  selections: [
659
659
  {
@@ -663,7 +663,7 @@ const select$R = function EinsteinLlmFeedbackRepresentationSelect() {
663
663
  ]
664
664
  };
665
665
  };
666
- function equals$z(existing, incoming) {
666
+ function equals$A(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$z(existing, incoming) {
671
671
  }
672
672
  return true;
673
673
  }
674
- const ingest$b = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
674
+ const ingest$c = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
675
675
  if (process.env.NODE_ENV !== 'production') {
676
- const validateError = validate$H(input);
676
+ const validateError = validate$I(input);
677
677
  if (validateError !== null) {
678
678
  throw validateError;
679
679
  }
680
680
  }
681
681
  const key = keyBuilderFromType$4(luvio, input);
682
- const ttlToUse = TTL$b;
683
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$z, RepresentationType$b, equals$z);
682
+ const ttlToUse = TTL$c;
683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$A, RepresentationType$c, equals$A);
684
684
  return createLink(key);
685
685
  };
686
- function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
686
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
687
687
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
688
688
  const rootKey = keyBuilderFromType$4(luvio, input);
689
689
  rootKeySet.set(rootKey, {
690
690
  namespace: keyPrefix,
691
- representationName: RepresentationType$b,
691
+ representationName: RepresentationType$c,
692
692
  mergeable: false
693
693
  });
694
694
  }
695
695
 
696
- function select$Q(luvio, params) {
697
- return select$R();
696
+ function select$S(luvio, params) {
697
+ return select$T();
698
698
  }
699
- function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
700
- getTypeCacheKeys$b(storeKeyMap, luvio, response);
699
+ function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
700
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
701
701
  }
702
- function ingestSuccess$h(luvio, resourceParams, response) {
702
+ function ingestSuccess$i(luvio, resourceParams, response) {
703
703
  const { body } = response;
704
704
  const key = keyBuilderFromType$4(luvio, body);
705
- luvio.storeIngest(key, ingest$b, body);
705
+ luvio.storeIngest(key, ingest$c, body);
706
706
  const snapshot = luvio.storeLookup({
707
707
  recordId: key,
708
- node: select$Q(),
708
+ node: select$S(),
709
709
  variables: {},
710
710
  });
711
711
  if (process.env.NODE_ENV !== 'production') {
@@ -716,7 +716,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
716
716
  deepFreeze(snapshot.data);
717
717
  return snapshot;
718
718
  }
719
- function createResourceRequest$h(config) {
719
+ function createResourceRequest$i(config) {
720
720
  const headers = {};
721
721
  return {
722
722
  baseUri: '/services/data/v67.0',
@@ -730,45 +730,45 @@ function createResourceRequest$h(config) {
730
730
  };
731
731
  }
732
732
 
733
- const adapterName$h = 'createFeedback';
733
+ const adapterName$i = 'createFeedback';
734
734
  const createFeedback_ConfigPropertyMetadata = [
735
735
  generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
736
736
  ];
737
- const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createFeedback_ConfigPropertyMetadata);
738
- const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(createFeedback_ConfigPropertyMetadata);
739
- function typeCheckConfig$h(untrustedConfig) {
737
+ const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, createFeedback_ConfigPropertyMetadata);
738
+ const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(createFeedback_ConfigPropertyMetadata);
739
+ function typeCheckConfig$i(untrustedConfig) {
740
740
  const config = {};
741
741
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
742
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$I(untrustedConfig_feedbackInput);
742
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$J(untrustedConfig_feedbackInput);
743
743
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
744
744
  config.feedbackInput = untrustedConfig_feedbackInput;
745
745
  }
746
746
  return config;
747
747
  }
748
- function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
748
+ function validateAdapterConfig$i(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$h(untrustedConfig);
755
+ const config = typeCheckConfig$i(untrustedConfig);
756
756
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
757
757
  return null;
758
758
  }
759
759
  return config;
760
760
  }
761
- function buildNetworkSnapshot$h(luvio, config, options) {
762
- const resourceParams = createResourceParams$h(config);
763
- const request = createResourceRequest$h(resourceParams);
761
+ function buildNetworkSnapshot$i(luvio, config, options) {
762
+ const resourceParams = createResourceParams$i(config);
763
+ const request = createResourceRequest$i(resourceParams);
764
764
  return luvio.dispatchResourceRequest(request, options)
765
765
  .then((response) => {
766
766
  return luvio.handleSuccessResponse(() => {
767
- const snapshot = ingestSuccess$h(luvio, resourceParams, response);
767
+ const snapshot = ingestSuccess$i(luvio, resourceParams, response);
768
768
  return luvio.storeBroadcast().then(() => snapshot);
769
769
  }, () => {
770
770
  const cache = new StoreKeyMap();
771
- getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
771
+ getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
772
772
  return cache;
773
773
  });
774
774
  }, (response) => {
@@ -778,16 +778,16 @@ function buildNetworkSnapshot$h(luvio, config, options) {
778
778
  }
779
779
  const createFeedbackAdapterFactory = (luvio) => {
780
780
  return function createFeedback(untrustedConfig) {
781
- const config = validateAdapterConfig$h(untrustedConfig, createFeedback_ConfigPropertyNames);
781
+ const config = validateAdapterConfig$i(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$h(luvio, config);
786
+ return buildNetworkSnapshot$i(luvio, config);
787
787
  };
788
788
  };
789
789
 
790
- function validate$G(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
790
+ function validate$H(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$G(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
870
870
  return v_error === undefined ? null : v_error;
871
871
  }
872
872
 
873
- function validate$F(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
873
+ function validate$G(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$F(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$G(obj_additionalConfig, path_additionalConfig);
881
+ const referencepath_additionalConfigValidationError = validate$H(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$F(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
901
901
  return v_error === undefined ? null : v_error;
902
902
  }
903
903
 
904
- const VERSION$y = "9ebac74e6f964c363d5fd1913df363af";
905
- function validate$E(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
904
+ const VERSION$z = "9ebac74e6f964c363d5fd1913df363af";
905
+ function validate$F(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$E(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
938
938
  })();
939
939
  return v_error === undefined ? null : v_error;
940
940
  }
941
- const select$P = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
941
+ const select$R = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
942
942
  return {
943
943
  kind: 'Fragment',
944
- version: VERSION$y,
944
+ version: VERSION$z,
945
945
  private: [],
946
946
  selections: [
947
947
  {
@@ -952,7 +952,7 @@ const select$P = function EinsteinLlmGenerationsContentQualityRepresentationSele
952
952
  ]
953
953
  };
954
954
  };
955
- function equals$y(existing, incoming) {
955
+ function equals$z(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$y(existing, incoming) {
969
969
  return true;
970
970
  }
971
971
 
972
- const VERSION$x = "77af44a252cb5b45b4d9a8101368d2aa";
973
- function validate$D(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
972
+ const VERSION$y = "77af44a252cb5b45b4d9a8101368d2aa";
973
+ function validate$E(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$D(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1174
1174
  })();
1175
1175
  return v_error === undefined ? null : v_error;
1176
1176
  }
1177
- const select$O = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1177
+ const select$Q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1178
1178
  return {
1179
1179
  kind: 'Fragment',
1180
- version: VERSION$x,
1180
+ version: VERSION$y,
1181
1181
  private: [],
1182
1182
  selections: [
1183
1183
  {
@@ -1218,7 +1218,7 @@ const select$O = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1218
1218
  ]
1219
1219
  };
1220
1220
  };
1221
- function equals$x(existing, incoming) {
1221
+ function equals$y(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$x(existing, incoming) {
1313
1313
  return true;
1314
1314
  }
1315
1315
 
1316
- const VERSION$w = "4a07778ff6c595d91c575188146647a1";
1317
- function validate$C(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1316
+ const VERSION$x = "4a07778ff6c595d91c575188146647a1";
1317
+ function validate$D(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$C(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$E(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1327
+ const referencepath_contentQualityRepresentationValidationError = validate$F(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$C(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$D(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1375
+ const referencepath_safetyScoreRepresentationValidationError = validate$E(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$C(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1406
1406
  })();
1407
1407
  return v_error === undefined ? null : v_error;
1408
1408
  }
1409
- const select$N = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$P();
1411
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$O();
1409
+ const select$P = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$R();
1411
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$Q();
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$w,
1414
+ version: VERSION$x,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1448,7 +1448,7 @@ const select$N = function EinsteinLlmGenerationItemRepresentationSelect() {
1448
1448
  ]
1449
1449
  };
1450
1450
  };
1451
- function equals$w(existing, incoming) {
1451
+ function equals$x(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$w(existing, incoming) {
1489
1489
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1490
1490
  || (existing_contentQualityRepresentation != null &&
1491
1491
  incoming_contentQualityRepresentation != null &&
1492
- equals$y(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1492
+ equals$z(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1493
1493
  return false;
1494
1494
  }
1495
1495
  }
@@ -1505,15 +1505,15 @@ function equals$w(existing, incoming) {
1505
1505
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1506
1506
  || (existing_safetyScoreRepresentation != null &&
1507
1507
  incoming_safetyScoreRepresentation != null &&
1508
- equals$x(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1508
+ equals$y(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  }
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$v = "379fd960d1a0118f506f458ab2c8dd7e";
1516
- function validate$B(obj, path = 'WrappedMap') {
1515
+ const VERSION$w = "379fd960d1a0118f506f458ab2c8dd7e";
1516
+ function validate$C(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,10 +1535,10 @@ function validate$B(obj, path = 'WrappedMap') {
1535
1535
  })();
1536
1536
  return v_error === undefined ? null : v_error;
1537
1537
  }
1538
- const select$M = function WrappedMapSelect() {
1538
+ const select$O = function WrappedMapSelect() {
1539
1539
  return {
1540
1540
  kind: 'Fragment',
1541
- version: VERSION$v,
1541
+ version: VERSION$w,
1542
1542
  private: [],
1543
1543
  selections: [
1544
1544
  {
@@ -1549,7 +1549,7 @@ const select$M = function WrappedMapSelect() {
1549
1549
  ]
1550
1550
  };
1551
1551
  };
1552
- function equals$v(existing, incoming) {
1552
+ function equals$w(existing, incoming) {
1553
1553
  const existing_wrappedMap = existing.wrappedMap;
1554
1554
  const incoming_wrappedMap = incoming.wrappedMap;
1555
1555
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1563,9 +1563,9 @@ function equals$v(existing, incoming) {
1563
1563
  return true;
1564
1564
  }
1565
1565
 
1566
- const TTL$a = 100;
1567
- const VERSION$u = "d8abd72a42e842b253da1c38954dafbc";
1568
- function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1566
+ const TTL$b = 100;
1567
+ const VERSION$v = "d8abd72a42e842b253da1c38954dafbc";
1568
+ function validate$B(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1569
1569
  const v_error = (() => {
1570
1570
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1571
1571
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1578,7 +1578,7 @@ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1578
1578
  for (let i = 0; i < obj_generations.length; i++) {
1579
1579
  const obj_generations_item = obj_generations[i];
1580
1580
  const path_generations_item = path_generations + '[' + i + ']';
1581
- const referencepath_generations_itemValidationError = validate$C(obj_generations_item, path_generations_item);
1581
+ const referencepath_generations_itemValidationError = validate$D(obj_generations_item, path_generations_item);
1582
1582
  if (referencepath_generations_itemValidationError !== null) {
1583
1583
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1584
1584
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1589,7 +1589,7 @@ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1589
1589
  const path_parameters = path + '.parameters';
1590
1590
  let obj_parameters_union0 = null;
1591
1591
  const obj_parameters_union0_error = (() => {
1592
- const referencepath_parametersValidationError = validate$B(obj_parameters, path_parameters);
1592
+ const referencepath_parametersValidationError = validate$C(obj_parameters, path_parameters);
1593
1593
  if (referencepath_parametersValidationError !== null) {
1594
1594
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1595
1595
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1648,25 +1648,25 @@ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1648
1648
  })();
1649
1649
  return v_error === undefined ? null : v_error;
1650
1650
  }
1651
- const RepresentationType$a = 'EinsteinLlmGenerationsRepresentation';
1652
- function keyBuilder$n(luvio, config) {
1653
- return keyPrefix + '::' + RepresentationType$a + ':' + config.requestId;
1651
+ const RepresentationType$b = 'EinsteinLlmGenerationsRepresentation';
1652
+ function keyBuilder$p(luvio, config) {
1653
+ return keyPrefix + '::' + RepresentationType$b + ':' + config.requestId;
1654
1654
  }
1655
1655
  function keyBuilderFromType$3(luvio, object) {
1656
1656
  const keyParams = {
1657
1657
  requestId: object.requestId
1658
1658
  };
1659
- return keyBuilder$n(luvio, keyParams);
1659
+ return keyBuilder$p(luvio, keyParams);
1660
1660
  }
1661
- function normalize$a(input, existing, path, luvio, store, timestamp) {
1661
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1662
1662
  return input;
1663
1663
  }
1664
- const select$L = function EinsteinLlmGenerationsRepresentationSelect() {
1665
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$N();
1666
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
1664
+ const select$N = function EinsteinLlmGenerationsRepresentationSelect() {
1665
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$P();
1666
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
1667
1667
  return {
1668
1668
  kind: 'Fragment',
1669
- version: VERSION$u,
1669
+ version: VERSION$v,
1670
1670
  private: [],
1671
1671
  selections: [
1672
1672
  {
@@ -1692,7 +1692,7 @@ const select$L = function EinsteinLlmGenerationsRepresentationSelect() {
1692
1692
  ]
1693
1693
  };
1694
1694
  };
1695
- function equals$u(existing, incoming) {
1695
+ function equals$v(existing, incoming) {
1696
1696
  const existing_requestId = existing.requestId;
1697
1697
  const incoming_requestId = incoming.requestId;
1698
1698
  if (!(existing_requestId === incoming_requestId)) {
@@ -1701,7 +1701,7 @@ function equals$u(existing, incoming) {
1701
1701
  const existing_generations = existing.generations;
1702
1702
  const incoming_generations = incoming.generations;
1703
1703
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1704
- if (!(equals$w(existing_generations_item, incoming_generations_item))) {
1704
+ if (!(equals$x(existing_generations_item, incoming_generations_item))) {
1705
1705
  return false;
1706
1706
  }
1707
1707
  });
@@ -1713,7 +1713,7 @@ function equals$u(existing, incoming) {
1713
1713
  if (!(existing_parameters === incoming_parameters
1714
1714
  || (existing_parameters != null &&
1715
1715
  incoming_parameters != null &&
1716
- equals$v(existing_parameters, incoming_parameters)))) {
1716
+ equals$w(existing_parameters, incoming_parameters)))) {
1717
1717
  return false;
1718
1718
  }
1719
1719
  const existing_prompt = existing.prompt;
@@ -1723,41 +1723,41 @@ function equals$u(existing, incoming) {
1723
1723
  }
1724
1724
  return true;
1725
1725
  }
1726
- const ingest$a = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1726
+ const ingest$b = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1727
1727
  if (process.env.NODE_ENV !== 'production') {
1728
- const validateError = validate$A(input);
1728
+ const validateError = validate$B(input);
1729
1729
  if (validateError !== null) {
1730
1730
  throw validateError;
1731
1731
  }
1732
1732
  }
1733
1733
  const key = keyBuilderFromType$3(luvio, input);
1734
- const ttlToUse = TTL$a;
1735
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$u, RepresentationType$a, equals$u);
1734
+ const ttlToUse = TTL$b;
1735
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$v, RepresentationType$b, equals$v);
1736
1736
  return createLink(key);
1737
1737
  };
1738
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1738
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1739
1739
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1740
1740
  const rootKey = keyBuilderFromType$3(luvio, input);
1741
1741
  rootKeySet.set(rootKey, {
1742
1742
  namespace: keyPrefix,
1743
- representationName: RepresentationType$a,
1743
+ representationName: RepresentationType$b,
1744
1744
  mergeable: false
1745
1745
  });
1746
1746
  }
1747
1747
 
1748
- function select$K(luvio, params) {
1749
- return select$L();
1748
+ function select$M(luvio, params) {
1749
+ return select$N();
1750
1750
  }
1751
- function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
1752
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
1751
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
1752
+ getTypeCacheKeys$b(storeKeyMap, luvio, response);
1753
1753
  }
1754
- function ingestSuccess$g(luvio, resourceParams, response) {
1754
+ function ingestSuccess$h(luvio, resourceParams, response) {
1755
1755
  const { body } = response;
1756
1756
  const key = keyBuilderFromType$3(luvio, body);
1757
- luvio.storeIngest(key, ingest$a, body);
1757
+ luvio.storeIngest(key, ingest$b, body);
1758
1758
  const snapshot = luvio.storeLookup({
1759
1759
  recordId: key,
1760
- node: select$K(),
1760
+ node: select$M(),
1761
1761
  variables: {},
1762
1762
  });
1763
1763
  if (process.env.NODE_ENV !== 'production') {
@@ -1768,7 +1768,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
1768
1768
  deepFreeze(snapshot.data);
1769
1769
  return snapshot;
1770
1770
  }
1771
- function createResourceRequest$g(config) {
1771
+ function createResourceRequest$h(config) {
1772
1772
  const headers = {};
1773
1773
  return {
1774
1774
  baseUri: '/services/data/v67.0',
@@ -1782,45 +1782,45 @@ function createResourceRequest$g(config) {
1782
1782
  };
1783
1783
  }
1784
1784
 
1785
- const adapterName$g = 'createGenerations';
1785
+ const adapterName$h = 'createGenerations';
1786
1786
  const createGenerations_ConfigPropertyMetadata = [
1787
1787
  generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
1788
1788
  ];
1789
- const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createGenerations_ConfigPropertyMetadata);
1790
- const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(createGenerations_ConfigPropertyMetadata);
1791
- function typeCheckConfig$g(untrustedConfig) {
1789
+ const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createGenerations_ConfigPropertyMetadata);
1790
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createGenerations_ConfigPropertyMetadata);
1791
+ function typeCheckConfig$h(untrustedConfig) {
1792
1792
  const config = {};
1793
1793
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1794
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$F(untrustedConfig_generationsInput);
1794
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$G(untrustedConfig_generationsInput);
1795
1795
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1796
1796
  config.generationsInput = untrustedConfig_generationsInput;
1797
1797
  }
1798
1798
  return config;
1799
1799
  }
1800
- function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
1800
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
1801
1801
  if (!untrustedIsObject(untrustedConfig)) {
1802
1802
  return null;
1803
1803
  }
1804
1804
  if (process.env.NODE_ENV !== 'production') {
1805
1805
  validateConfig(untrustedConfig, configPropertyNames);
1806
1806
  }
1807
- const config = typeCheckConfig$g(untrustedConfig);
1807
+ const config = typeCheckConfig$h(untrustedConfig);
1808
1808
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1809
1809
  return null;
1810
1810
  }
1811
1811
  return config;
1812
1812
  }
1813
- function buildNetworkSnapshot$g(luvio, config, options) {
1814
- const resourceParams = createResourceParams$g(config);
1815
- const request = createResourceRequest$g(resourceParams);
1813
+ function buildNetworkSnapshot$h(luvio, config, options) {
1814
+ const resourceParams = createResourceParams$h(config);
1815
+ const request = createResourceRequest$h(resourceParams);
1816
1816
  return luvio.dispatchResourceRequest(request, options)
1817
1817
  .then((response) => {
1818
1818
  return luvio.handleSuccessResponse(() => {
1819
- const snapshot = ingestSuccess$g(luvio, resourceParams, response);
1819
+ const snapshot = ingestSuccess$h(luvio, resourceParams, response);
1820
1820
  return luvio.storeBroadcast().then(() => snapshot);
1821
1821
  }, () => {
1822
1822
  const cache = new StoreKeyMap();
1823
- getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
1823
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
1824
1824
  return cache;
1825
1825
  });
1826
1826
  }, (response) => {
@@ -1830,16 +1830,16 @@ function buildNetworkSnapshot$g(luvio, config, options) {
1830
1830
  }
1831
1831
  const createGenerationsAdapterFactory = (luvio) => {
1832
1832
  return function createGenerations(untrustedConfig) {
1833
- const config = validateAdapterConfig$g(untrustedConfig, createGenerations_ConfigPropertyNames);
1833
+ const config = validateAdapterConfig$h(untrustedConfig, createGenerations_ConfigPropertyNames);
1834
1834
  // Invalid or incomplete config
1835
1835
  if (config === null) {
1836
1836
  throw new Error('Invalid config for "createGenerations"');
1837
1837
  }
1838
- return buildNetworkSnapshot$g(luvio, config);
1838
+ return buildNetworkSnapshot$h(luvio, config);
1839
1839
  };
1840
1840
  };
1841
1841
 
1842
- function validate$z(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1842
+ function validate$A(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1843
1843
  const v_error = (() => {
1844
1844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1845
1845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1916,9 +1916,9 @@ function validate$z(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1916
1916
  return v_error === undefined ? null : v_error;
1917
1917
  }
1918
1918
 
1919
- const TTL$9 = 100;
1920
- const VERSION$t = "2d1628544b54fc1701aa9b4eff05127b";
1921
- function validate$y(obj, path = 'EinsteinPromptRecordRepresentation') {
1919
+ const TTL$a = 100;
1920
+ const VERSION$u = "2d1628544b54fc1701aa9b4eff05127b";
1921
+ function validate$z(obj, path = 'EinsteinPromptRecordRepresentation') {
1922
1922
  const v_error = (() => {
1923
1923
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1924
1924
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1947,7 +1947,7 @@ function validate$y(obj, path = 'EinsteinPromptRecordRepresentation') {
1947
1947
  for (let i = 0; i < obj_childRelationships_prop.length; i++) {
1948
1948
  const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
1949
1949
  const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
1950
- const referencepath_childRelationships_prop_itemValidationError = validate$y(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1950
+ const referencepath_childRelationships_prop_itemValidationError = validate$z(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1951
1951
  if (referencepath_childRelationships_prop_itemValidationError !== null) {
1952
1952
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
1953
1953
  message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1967,7 +1967,7 @@ function validate$y(obj, path = 'EinsteinPromptRecordRepresentation') {
1967
1967
  const key = obj_fields_keys[i];
1968
1968
  const obj_fields_prop = obj_fields[key];
1969
1969
  const path_fields_prop = path_fields + '["' + key + '"]';
1970
- const referencepath_fields_propValidationError = validate$z(obj_fields_prop, path_fields_prop);
1970
+ const referencepath_fields_propValidationError = validate$A(obj_fields_prop, path_fields_prop);
1971
1971
  if (referencepath_fields_propValidationError !== null) {
1972
1972
  let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
1973
1973
  message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1985,49 +1985,49 @@ function validate$y(obj, path = 'EinsteinPromptRecordRepresentation') {
1985
1985
  })();
1986
1986
  return v_error === undefined ? null : v_error;
1987
1987
  }
1988
- const RepresentationType$9 = 'EinsteinPromptRecordRepresentation';
1989
- function normalize$9(input, existing, path, luvio, store, timestamp) {
1988
+ const RepresentationType$a = 'EinsteinPromptRecordRepresentation';
1989
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
1990
1990
  return input;
1991
1991
  }
1992
- const select$J = function EinsteinPromptRecordRepresentationSelect() {
1992
+ const select$L = function EinsteinPromptRecordRepresentationSelect() {
1993
1993
  return {
1994
1994
  kind: 'Fragment',
1995
- version: VERSION$t,
1995
+ version: VERSION$u,
1996
1996
  private: [],
1997
1997
  opaque: true
1998
1998
  };
1999
1999
  };
2000
- function equals$t(existing, incoming) {
2000
+ function equals$u(existing, incoming) {
2001
2001
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2002
2002
  return false;
2003
2003
  }
2004
2004
  return true;
2005
2005
  }
2006
- const ingest$9 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
2006
+ const ingest$a = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
2007
2007
  if (process.env.NODE_ENV !== 'production') {
2008
- const validateError = validate$y(input);
2008
+ const validateError = validate$z(input);
2009
2009
  if (validateError !== null) {
2010
2010
  throw validateError;
2011
2011
  }
2012
2012
  }
2013
2013
  const key = path.fullPath;
2014
- const ttlToUse = TTL$9;
2015
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$t, RepresentationType$9, equals$t);
2014
+ const ttlToUse = TTL$a;
2015
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$u, RepresentationType$a, equals$u);
2016
2016
  return createLink(key);
2017
2017
  };
2018
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2018
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
2019
2019
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2020
2020
  const rootKey = fullPathFactory();
2021
2021
  rootKeySet.set(rootKey, {
2022
2022
  namespace: keyPrefix,
2023
- representationName: RepresentationType$9,
2023
+ representationName: RepresentationType$a,
2024
2024
  mergeable: false
2025
2025
  });
2026
2026
  }
2027
2027
 
2028
- const TTL$8 = 100;
2029
- const VERSION$s = "5fd7b8a03d155ba601bcb4ee725e0893";
2030
- function validate$x(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2028
+ const TTL$9 = 100;
2029
+ const VERSION$t = "5fd7b8a03d155ba601bcb4ee725e0893";
2030
+ function validate$y(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2031
2031
  const v_error = (() => {
2032
2032
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2033
2033
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2046,7 +2046,7 @@ function validate$x(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2046
2046
  for (let i = 0; i < obj_promptRecords.length; i++) {
2047
2047
  const obj_promptRecords_item = obj_promptRecords[i];
2048
2048
  const path_promptRecords_item = path_promptRecords + '[' + i + ']';
2049
- const referencepath_promptRecords_itemValidationError = validate$y(obj_promptRecords_item, path_promptRecords_item);
2049
+ const referencepath_promptRecords_itemValidationError = validate$z(obj_promptRecords_item, path_promptRecords_item);
2050
2050
  if (referencepath_promptRecords_itemValidationError !== null) {
2051
2051
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
2052
2052
  message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2062,62 +2062,62 @@ function validate$x(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2062
2062
  })();
2063
2063
  return v_error === undefined ? null : v_error;
2064
2064
  }
2065
- const RepresentationType$8 = 'EinsteinPromptRecordCollectionOutputRepresentation';
2066
- function normalize$8(input, existing, path, luvio, store, timestamp) {
2065
+ const RepresentationType$9 = 'EinsteinPromptRecordCollectionOutputRepresentation';
2066
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
2067
2067
  return input;
2068
2068
  }
2069
- const select$I = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2069
+ const select$K = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2070
2070
  return {
2071
2071
  kind: 'Fragment',
2072
- version: VERSION$s,
2072
+ version: VERSION$t,
2073
2073
  private: [],
2074
2074
  opaque: true
2075
2075
  };
2076
2076
  };
2077
- function equals$s(existing, incoming) {
2077
+ function equals$t(existing, incoming) {
2078
2078
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2079
2079
  return false;
2080
2080
  }
2081
2081
  return true;
2082
2082
  }
2083
- const ingest$8 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2083
+ const ingest$9 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2084
2084
  if (process.env.NODE_ENV !== 'production') {
2085
- const validateError = validate$x(input);
2085
+ const validateError = validate$y(input);
2086
2086
  if (validateError !== null) {
2087
2087
  throw validateError;
2088
2088
  }
2089
2089
  }
2090
2090
  const key = path.fullPath;
2091
- const ttlToUse = TTL$8;
2092
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$s, RepresentationType$8, equals$s);
2091
+ const ttlToUse = TTL$9;
2092
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$t, RepresentationType$9, equals$t);
2093
2093
  return createLink(key);
2094
2094
  };
2095
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2095
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2096
2096
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2097
2097
  const rootKey = fullPathFactory();
2098
2098
  rootKeySet.set(rootKey, {
2099
2099
  namespace: keyPrefix,
2100
- representationName: RepresentationType$8,
2100
+ representationName: RepresentationType$9,
2101
2101
  mergeable: false
2102
2102
  });
2103
2103
  }
2104
2104
 
2105
- function select$H(luvio, params) {
2106
- return select$I();
2105
+ function select$J(luvio, params) {
2106
+ return select$K();
2107
2107
  }
2108
- function keyBuilder$m(luvio, params) {
2108
+ function keyBuilder$o(luvio, params) {
2109
2109
  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 + ')';
2110
2110
  }
2111
- function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
2112
- getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
2111
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
2112
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$o(luvio, resourceParams));
2113
2113
  }
2114
- function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
2114
+ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
2115
2115
  const { body } = response;
2116
- const key = keyBuilder$m(luvio, resourceParams);
2117
- luvio.storeIngest(key, ingest$8, body);
2116
+ const key = keyBuilder$o(luvio, resourceParams);
2117
+ luvio.storeIngest(key, ingest$9, body);
2118
2118
  const snapshot = luvio.storeLookup({
2119
2119
  recordId: key,
2120
- node: select$H(),
2120
+ node: select$J(),
2121
2121
  variables: {},
2122
2122
  }, snapshotRefresh);
2123
2123
  if (process.env.NODE_ENV !== 'production') {
@@ -2128,19 +2128,19 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
2128
2128
  deepFreeze(snapshot.data);
2129
2129
  return snapshot;
2130
2130
  }
2131
- function ingestError$9(luvio, params, error, snapshotRefresh) {
2132
- const key = keyBuilder$m(luvio, params);
2131
+ function ingestError$a(luvio, params, error, snapshotRefresh) {
2132
+ const key = keyBuilder$o(luvio, params);
2133
2133
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2134
2134
  const storeMetadataParams = {
2135
- ttl: TTL$8,
2135
+ ttl: TTL$9,
2136
2136
  namespace: keyPrefix,
2137
- version: VERSION$s,
2138
- representationName: RepresentationType$8
2137
+ version: VERSION$t,
2138
+ representationName: RepresentationType$9
2139
2139
  };
2140
2140
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2141
2141
  return errorSnapshot;
2142
2142
  }
2143
- function createResourceRequest$f(config) {
2143
+ function createResourceRequest$g(config) {
2144
2144
  const headers = {};
2145
2145
  return {
2146
2146
  baseUri: '/services/data/v67.0',
@@ -2154,7 +2154,7 @@ function createResourceRequest$f(config) {
2154
2154
  };
2155
2155
  }
2156
2156
 
2157
- const adapterName$f = 'getPromptTemplates';
2157
+ const adapterName$g = 'getPromptTemplates';
2158
2158
  const getPromptTemplates_ConfigPropertyMetadata = [
2159
2159
  generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2160
2160
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
@@ -2165,91 +2165,91 @@ const getPromptTemplates_ConfigPropertyMetadata = [
2165
2165
  generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
2166
2166
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2167
2167
  ];
2168
- const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getPromptTemplates_ConfigPropertyMetadata);
2169
- const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(getPromptTemplates_ConfigPropertyMetadata);
2170
- function keyBuilder$l(luvio, config) {
2171
- const resourceParams = createResourceParams$f(config);
2172
- return keyBuilder$m(luvio, resourceParams);
2168
+ const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getPromptTemplates_ConfigPropertyMetadata);
2169
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(getPromptTemplates_ConfigPropertyMetadata);
2170
+ function keyBuilder$n(luvio, config) {
2171
+ const resourceParams = createResourceParams$g(config);
2172
+ return keyBuilder$o(luvio, resourceParams);
2173
2173
  }
2174
- function typeCheckConfig$f(untrustedConfig) {
2174
+ function typeCheckConfig$g(untrustedConfig) {
2175
2175
  const config = {};
2176
- typeCheckConfig$j(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2176
+ typeCheckConfig$k(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2177
2177
  return config;
2178
2178
  }
2179
- function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
2179
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
2180
2180
  if (!untrustedIsObject(untrustedConfig)) {
2181
2181
  return null;
2182
2182
  }
2183
2183
  if (process.env.NODE_ENV !== 'production') {
2184
2184
  validateConfig(untrustedConfig, configPropertyNames);
2185
2185
  }
2186
- const config = typeCheckConfig$f(untrustedConfig);
2186
+ const config = typeCheckConfig$g(untrustedConfig);
2187
2187
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2188
2188
  return null;
2189
2189
  }
2190
2190
  return config;
2191
2191
  }
2192
- function adapterFragment$9(luvio, config) {
2193
- createResourceParams$f(config);
2194
- return select$H();
2192
+ function adapterFragment$a(luvio, config) {
2193
+ createResourceParams$g(config);
2194
+ return select$J();
2195
2195
  }
2196
- function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
2197
- const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
2196
+ function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
2197
+ const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
2198
2198
  config,
2199
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
2199
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2200
2200
  });
2201
2201
  return luvio.storeBroadcast().then(() => snapshot);
2202
2202
  }
2203
- function onFetchResponseError$9(luvio, config, resourceParams, response) {
2204
- const snapshot = ingestError$9(luvio, resourceParams, response, {
2203
+ function onFetchResponseError$a(luvio, config, resourceParams, response) {
2204
+ const snapshot = ingestError$a(luvio, resourceParams, response, {
2205
2205
  config,
2206
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
2206
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2207
2207
  });
2208
2208
  return luvio.storeBroadcast().then(() => snapshot);
2209
2209
  }
2210
- function buildNetworkSnapshot$f(luvio, config, options) {
2211
- const resourceParams = createResourceParams$f(config);
2212
- const request = createResourceRequest$f(resourceParams);
2210
+ function buildNetworkSnapshot$g(luvio, config, options) {
2211
+ const resourceParams = createResourceParams$g(config);
2212
+ const request = createResourceRequest$g(resourceParams);
2213
2213
  return luvio.dispatchResourceRequest(request, options)
2214
2214
  .then((response) => {
2215
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
2215
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
2216
2216
  const cache = new StoreKeyMap();
2217
- getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
2217
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
2218
2218
  return cache;
2219
2219
  });
2220
2220
  }, (response) => {
2221
- return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
2221
+ return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
2222
2222
  });
2223
2223
  }
2224
- function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
2225
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
2224
+ function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
2225
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
2226
2226
  }
2227
- function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
2227
+ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
2228
2228
  const { luvio, config } = context;
2229
2229
  const selector = {
2230
- recordId: keyBuilder$l(luvio, config),
2231
- node: adapterFragment$9(luvio, config),
2230
+ recordId: keyBuilder$n(luvio, config),
2231
+ node: adapterFragment$a(luvio, config),
2232
2232
  variables: {},
2233
2233
  };
2234
2234
  const cacheSnapshot = storeLookup(selector, {
2235
2235
  config,
2236
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
2236
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
2237
2237
  });
2238
2238
  return cacheSnapshot;
2239
2239
  }
2240
2240
  const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
2241
- const config = validateAdapterConfig$f(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2241
+ const config = validateAdapterConfig$g(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2242
2242
  // Invalid or incomplete config
2243
2243
  if (config === null) {
2244
2244
  return null;
2245
2245
  }
2246
2246
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2247
- buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
2247
+ buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
2248
2248
  };
2249
2249
 
2250
- const TTL$7 = 100;
2251
- const VERSION$r = "a90a51578e2fdd7a9741d310bed22b1d";
2252
- function validate$w(obj, path = 'EinsteinPromptTemplateRepresentation') {
2250
+ const TTL$8 = 100;
2251
+ const VERSION$s = "a90a51578e2fdd7a9741d310bed22b1d";
2252
+ function validate$x(obj, path = 'EinsteinPromptTemplateRepresentation') {
2253
2253
  const v_error = (() => {
2254
2254
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2255
2255
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2257,7 +2257,7 @@ function validate$w(obj, path = 'EinsteinPromptTemplateRepresentation') {
2257
2257
  if (obj.additionalData !== undefined) {
2258
2258
  const obj_additionalData = obj.additionalData;
2259
2259
  const path_additionalData = path + '.additionalData';
2260
- const referencepath_additionalDataValidationError = validate$B(obj_additionalData, path_additionalData);
2260
+ const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
2261
2261
  if (referencepath_additionalDataValidationError !== null) {
2262
2262
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
2263
2263
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2325,24 +2325,24 @@ function validate$w(obj, path = 'EinsteinPromptTemplateRepresentation') {
2325
2325
  })();
2326
2326
  return v_error === undefined ? null : v_error;
2327
2327
  }
2328
- const RepresentationType$7 = 'EinsteinPromptTemplateRepresentation';
2329
- function keyBuilder$k(luvio, config) {
2330
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.versionId;
2328
+ const RepresentationType$8 = 'EinsteinPromptTemplateRepresentation';
2329
+ function keyBuilder$m(luvio, config) {
2330
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.versionId;
2331
2331
  }
2332
2332
  function keyBuilderFromType$2(luvio, object) {
2333
2333
  const keyParams = {
2334
2334
  versionId: object.versionId
2335
2335
  };
2336
- return keyBuilder$k(luvio, keyParams);
2336
+ return keyBuilder$m(luvio, keyParams);
2337
2337
  }
2338
- function normalize$7(input, existing, path, luvio, store, timestamp) {
2338
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
2339
2339
  return input;
2340
2340
  }
2341
- const select$G = function EinsteinPromptTemplateRepresentationSelect() {
2342
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
2341
+ const select$I = function EinsteinPromptTemplateRepresentationSelect() {
2342
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
2343
2343
  return {
2344
2344
  kind: 'Fragment',
2345
- version: VERSION$r,
2345
+ version: VERSION$s,
2346
2346
  private: [],
2347
2347
  selections: [
2348
2348
  {
@@ -2390,7 +2390,7 @@ const select$G = function EinsteinPromptTemplateRepresentationSelect() {
2390
2390
  ]
2391
2391
  };
2392
2392
  };
2393
- function equals$r(existing, incoming) {
2393
+ function equals$s(existing, incoming) {
2394
2394
  const existing_hasWarning = existing.hasWarning;
2395
2395
  const incoming_hasWarning = incoming.hasWarning;
2396
2396
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -2446,7 +2446,7 @@ function equals$r(existing, incoming) {
2446
2446
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
2447
2447
  return false;
2448
2448
  }
2449
- if (!(equals$v(existing_additionalData, incoming_additionalData))) {
2449
+ if (!(equals$w(existing_additionalData, incoming_additionalData))) {
2450
2450
  return false;
2451
2451
  }
2452
2452
  }
@@ -2472,41 +2472,41 @@ function equals$r(existing, incoming) {
2472
2472
  }
2473
2473
  return true;
2474
2474
  }
2475
- const ingest$7 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2475
+ const ingest$8 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2476
2476
  if (process.env.NODE_ENV !== 'production') {
2477
- const validateError = validate$w(input);
2477
+ const validateError = validate$x(input);
2478
2478
  if (validateError !== null) {
2479
2479
  throw validateError;
2480
2480
  }
2481
2481
  }
2482
2482
  const key = keyBuilderFromType$2(luvio, input);
2483
- const ttlToUse = TTL$7;
2484
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$r, RepresentationType$7, equals$r);
2483
+ const ttlToUse = TTL$8;
2484
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$s, RepresentationType$8, equals$s);
2485
2485
  return createLink(key);
2486
2486
  };
2487
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
2487
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2488
2488
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2489
2489
  const rootKey = keyBuilderFromType$2(luvio, input);
2490
2490
  rootKeySet.set(rootKey, {
2491
2491
  namespace: keyPrefix,
2492
- representationName: RepresentationType$7,
2492
+ representationName: RepresentationType$8,
2493
2493
  mergeable: false
2494
2494
  });
2495
2495
  }
2496
2496
 
2497
- function select$F(luvio, params) {
2498
- return select$G();
2497
+ function select$H(luvio, params) {
2498
+ return select$I();
2499
2499
  }
2500
- function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
2501
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
2500
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
2501
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
2502
2502
  }
2503
- function ingestSuccess$e(luvio, resourceParams, response) {
2503
+ function ingestSuccess$f(luvio, resourceParams, response) {
2504
2504
  const { body } = response;
2505
2505
  const key = keyBuilderFromType$2(luvio, body);
2506
- luvio.storeIngest(key, ingest$7, body);
2506
+ luvio.storeIngest(key, ingest$8, body);
2507
2507
  const snapshot = luvio.storeLookup({
2508
2508
  recordId: key,
2509
- node: select$F(),
2509
+ node: select$H(),
2510
2510
  variables: {},
2511
2511
  });
2512
2512
  if (process.env.NODE_ENV !== 'production') {
@@ -2517,7 +2517,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
2517
2517
  deepFreeze(snapshot.data);
2518
2518
  return snapshot;
2519
2519
  }
2520
- function createResourceRequest$e(config) {
2520
+ function createResourceRequest$f(config) {
2521
2521
  const headers = {};
2522
2522
  return {
2523
2523
  baseUri: '/services/data/v67.0',
@@ -2531,18 +2531,18 @@ function createResourceRequest$e(config) {
2531
2531
  };
2532
2532
  }
2533
2533
 
2534
- const adapterName$e = 'createPromptTemplate';
2534
+ const adapterName$f = 'createPromptTemplate';
2535
2535
  const createPromptTemplate_ConfigPropertyMetadata = [
2536
2536
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
2537
2537
  generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
2538
2538
  generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
2539
2539
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
2540
2540
  ];
2541
- const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createPromptTemplate_ConfigPropertyMetadata);
2542
- const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(createPromptTemplate_ConfigPropertyMetadata);
2543
- function typeCheckConfig$e(untrustedConfig) {
2541
+ const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createPromptTemplate_ConfigPropertyMetadata);
2542
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(createPromptTemplate_ConfigPropertyMetadata);
2543
+ function typeCheckConfig$f(untrustedConfig) {
2544
2544
  const config = {};
2545
- typeCheckConfig$j(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
2545
+ typeCheckConfig$k(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
2546
2546
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
2547
2547
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
2548
2548
  const untrustedConfig_childRelationships_object = {};
@@ -2575,30 +2575,30 @@ function typeCheckConfig$e(untrustedConfig) {
2575
2575
  }
2576
2576
  return config;
2577
2577
  }
2578
- function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
2578
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
2579
2579
  if (!untrustedIsObject(untrustedConfig)) {
2580
2580
  return null;
2581
2581
  }
2582
2582
  if (process.env.NODE_ENV !== 'production') {
2583
2583
  validateConfig(untrustedConfig, configPropertyNames);
2584
2584
  }
2585
- const config = typeCheckConfig$e(untrustedConfig);
2585
+ const config = typeCheckConfig$f(untrustedConfig);
2586
2586
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2587
2587
  return null;
2588
2588
  }
2589
2589
  return config;
2590
2590
  }
2591
- function buildNetworkSnapshot$e(luvio, config, options) {
2592
- const resourceParams = createResourceParams$e(config);
2593
- const request = createResourceRequest$e(resourceParams);
2591
+ function buildNetworkSnapshot$f(luvio, config, options) {
2592
+ const resourceParams = createResourceParams$f(config);
2593
+ const request = createResourceRequest$f(resourceParams);
2594
2594
  return luvio.dispatchResourceRequest(request, options)
2595
2595
  .then((response) => {
2596
2596
  return luvio.handleSuccessResponse(() => {
2597
- const snapshot = ingestSuccess$e(luvio, resourceParams, response);
2597
+ const snapshot = ingestSuccess$f(luvio, resourceParams, response);
2598
2598
  return luvio.storeBroadcast().then(() => snapshot);
2599
2599
  }, () => {
2600
2600
  const cache = new StoreKeyMap();
2601
- getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
2601
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
2602
2602
  return cache;
2603
2603
  });
2604
2604
  }, (response) => {
@@ -2608,16 +2608,16 @@ function buildNetworkSnapshot$e(luvio, config, options) {
2608
2608
  }
2609
2609
  const createPromptTemplateAdapterFactory = (luvio) => {
2610
2610
  return function createPromptTemplate(untrustedConfig) {
2611
- const config = validateAdapterConfig$e(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
2611
+ const config = validateAdapterConfig$f(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
2612
2612
  // Invalid or incomplete config
2613
2613
  if (config === null) {
2614
2614
  throw new Error('Invalid config for "createPromptTemplate"');
2615
2615
  }
2616
- return buildNetworkSnapshot$e(luvio, config);
2616
+ return buildNetworkSnapshot$f(luvio, config);
2617
2617
  };
2618
2618
  };
2619
2619
 
2620
- function validate$v(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2620
+ function validate$w(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2621
2621
  const v_error = (() => {
2622
2622
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2623
2623
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2643,7 +2643,7 @@ function validate$v(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
2643
2643
  return v_error === undefined ? null : v_error;
2644
2644
  }
2645
2645
 
2646
- function validate$u(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2646
+ function validate$v(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2647
2647
  const v_error = (() => {
2648
2648
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2649
2649
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2672,9 +2672,9 @@ function validate$u(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
2672
2672
  return v_error === undefined ? null : v_error;
2673
2673
  }
2674
2674
 
2675
- const TTL$6 = 300;
2676
- const VERSION$q = "d4824d8c6e7848df0de89295e6d9d434";
2677
- function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2675
+ const TTL$7 = 300;
2676
+ const VERSION$r = "d4824d8c6e7848df0de89295e6d9d434";
2677
+ function validate$u(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2678
2678
  const v_error = (() => {
2679
2679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2680
2680
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2703,7 +2703,7 @@ function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2703
2703
  if (obj.defaultOutputParam !== undefined) {
2704
2704
  const obj_defaultOutputParam = obj.defaultOutputParam;
2705
2705
  const path_defaultOutputParam = path + '.defaultOutputParam';
2706
- const referencepath_defaultOutputParamValidationError = validate$v(obj_defaultOutputParam, path_defaultOutputParam);
2706
+ const referencepath_defaultOutputParamValidationError = validate$w(obj_defaultOutputParam, path_defaultOutputParam);
2707
2707
  if (referencepath_defaultOutputParamValidationError !== null) {
2708
2708
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
2709
2709
  message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2757,7 +2757,7 @@ function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2757
2757
  for (let i = 0; i < obj_inputParams.length; i++) {
2758
2758
  const obj_inputParams_item = obj_inputParams[i];
2759
2759
  const path_inputParams_item = path_inputParams + '[' + i + ']';
2760
- const referencepath_inputParams_itemValidationError = validate$u(obj_inputParams_item, path_inputParams_item);
2760
+ const referencepath_inputParams_itemValidationError = validate$v(obj_inputParams_item, path_inputParams_item);
2761
2761
  if (referencepath_inputParams_itemValidationError !== null) {
2762
2762
  let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
2763
2763
  message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2823,7 +2823,7 @@ function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2823
2823
  for (let i = 0; i < obj_outputParams.length; i++) {
2824
2824
  const obj_outputParams_item = obj_outputParams[i];
2825
2825
  const path_outputParams_item = path_outputParams + '[' + i + ']';
2826
- const referencepath_outputParams_itemValidationError = validate$v(obj_outputParams_item, path_outputParams_item);
2826
+ const referencepath_outputParams_itemValidationError = validate$w(obj_outputParams_item, path_outputParams_item);
2827
2827
  if (referencepath_outputParams_itemValidationError !== null) {
2828
2828
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
2829
2829
  message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2895,49 +2895,49 @@ function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2895
2895
  })();
2896
2896
  return v_error === undefined ? null : v_error;
2897
2897
  }
2898
- const RepresentationType$6 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
2899
- function normalize$6(input, existing, path, luvio, store, timestamp) {
2898
+ const RepresentationType$7 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
2899
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
2900
2900
  return input;
2901
2901
  }
2902
- const select$E = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2902
+ const select$G = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2903
2903
  return {
2904
2904
  kind: 'Fragment',
2905
- version: VERSION$q,
2905
+ version: VERSION$r,
2906
2906
  private: [],
2907
2907
  opaque: true
2908
2908
  };
2909
2909
  };
2910
- function equals$q(existing, incoming) {
2910
+ function equals$r(existing, incoming) {
2911
2911
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2912
2912
  return false;
2913
2913
  }
2914
2914
  return true;
2915
2915
  }
2916
- const ingest$6 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
2916
+ const ingest$7 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
2917
2917
  if (process.env.NODE_ENV !== 'production') {
2918
- const validateError = validate$t(input);
2918
+ const validateError = validate$u(input);
2919
2919
  if (validateError !== null) {
2920
2920
  throw validateError;
2921
2921
  }
2922
2922
  }
2923
2923
  const key = path.fullPath;
2924
- const ttlToUse = TTL$6;
2925
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$q, RepresentationType$6, equals$q);
2924
+ const ttlToUse = TTL$7;
2925
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$r, RepresentationType$7, equals$r);
2926
2926
  return createLink(key);
2927
2927
  };
2928
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2928
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
2929
2929
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2930
2930
  const rootKey = fullPathFactory();
2931
2931
  rootKeySet.set(rootKey, {
2932
2932
  namespace: keyPrefix,
2933
- representationName: RepresentationType$6,
2933
+ representationName: RepresentationType$7,
2934
2934
  mergeable: false
2935
2935
  });
2936
2936
  }
2937
2937
 
2938
- const TTL$5 = 300;
2939
- const VERSION$p = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2940
- function validate$s(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2938
+ const TTL$6 = 300;
2939
+ const VERSION$q = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2940
+ function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2941
2941
  const v_error = (() => {
2942
2942
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2943
2943
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2950,7 +2950,7 @@ function validate$s(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
2950
2950
  for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
2951
2951
  const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
2952
2952
  const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
2953
- const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$t(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2953
+ const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$u(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2954
2954
  if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
2955
2955
  let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
2956
2956
  message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2960,62 +2960,62 @@ function validate$s(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
2960
2960
  })();
2961
2961
  return v_error === undefined ? null : v_error;
2962
2962
  }
2963
- const RepresentationType$5 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
2964
- function normalize$5(input, existing, path, luvio, store, timestamp) {
2963
+ const RepresentationType$6 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
2964
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
2965
2965
  return input;
2966
2966
  }
2967
- const select$D = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2967
+ const select$F = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2968
2968
  return {
2969
2969
  kind: 'Fragment',
2970
- version: VERSION$p,
2970
+ version: VERSION$q,
2971
2971
  private: [],
2972
2972
  opaque: true
2973
2973
  };
2974
2974
  };
2975
- function equals$p(existing, incoming) {
2975
+ function equals$q(existing, incoming) {
2976
2976
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2977
2977
  return false;
2978
2978
  }
2979
2979
  return true;
2980
2980
  }
2981
- const ingest$5 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2981
+ const ingest$6 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2982
2982
  if (process.env.NODE_ENV !== 'production') {
2983
- const validateError = validate$s(input);
2983
+ const validateError = validate$t(input);
2984
2984
  if (validateError !== null) {
2985
2985
  throw validateError;
2986
2986
  }
2987
2987
  }
2988
2988
  const key = path.fullPath;
2989
- const ttlToUse = TTL$5;
2990
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$p, RepresentationType$5, equals$p);
2989
+ const ttlToUse = TTL$6;
2990
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$q, RepresentationType$6, equals$q);
2991
2991
  return createLink(key);
2992
2992
  };
2993
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2993
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2994
2994
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2995
2995
  const rootKey = fullPathFactory();
2996
2996
  rootKeySet.set(rootKey, {
2997
2997
  namespace: keyPrefix,
2998
- representationName: RepresentationType$5,
2998
+ representationName: RepresentationType$6,
2999
2999
  mergeable: false
3000
3000
  });
3001
3001
  }
3002
3002
 
3003
- function select$C(luvio, params) {
3004
- return select$D();
3003
+ function select$E(luvio, params) {
3004
+ return select$F();
3005
3005
  }
3006
- function keyBuilder$j(luvio, params) {
3006
+ function keyBuilder$l(luvio, params) {
3007
3007
  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 + ')';
3008
3008
  }
3009
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
3010
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
3009
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
3010
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
3011
3011
  }
3012
- function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
3012
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
3013
3013
  const { body } = response;
3014
- const key = keyBuilder$j(luvio, resourceParams);
3015
- luvio.storeIngest(key, ingest$5, body);
3014
+ const key = keyBuilder$l(luvio, resourceParams);
3015
+ luvio.storeIngest(key, ingest$6, body);
3016
3016
  const snapshot = luvio.storeLookup({
3017
3017
  recordId: key,
3018
- node: select$C(),
3018
+ node: select$E(),
3019
3019
  variables: {},
3020
3020
  }, snapshotRefresh);
3021
3021
  if (process.env.NODE_ENV !== 'production') {
@@ -3026,19 +3026,19 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
3026
3026
  deepFreeze(snapshot.data);
3027
3027
  return snapshot;
3028
3028
  }
3029
- function ingestError$8(luvio, params, error, snapshotRefresh) {
3030
- const key = keyBuilder$j(luvio, params);
3029
+ function ingestError$9(luvio, params, error, snapshotRefresh) {
3030
+ const key = keyBuilder$l(luvio, params);
3031
3031
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3032
3032
  const storeMetadataParams = {
3033
- ttl: TTL$5,
3033
+ ttl: TTL$6,
3034
3034
  namespace: keyPrefix,
3035
- version: VERSION$p,
3036
- representationName: RepresentationType$5
3035
+ version: VERSION$q,
3036
+ representationName: RepresentationType$6
3037
3037
  };
3038
3038
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3039
3039
  return errorSnapshot;
3040
3040
  }
3041
- function createResourceRequest$d(config) {
3041
+ function createResourceRequest$e(config) {
3042
3042
  const headers = {};
3043
3043
  return {
3044
3044
  baseUri: '/services/data/v67.0',
@@ -3052,22 +3052,22 @@ function createResourceRequest$d(config) {
3052
3052
  };
3053
3053
  }
3054
3054
 
3055
- const adapterName$d = 'getInputMappedDataProviders';
3055
+ const adapterName$e = 'getInputMappedDataProviders';
3056
3056
  const getInputMappedDataProviders_ConfigPropertyMetadata = [
3057
3057
  generateParamConfigMetadata('groupName', false, 2 /* Body */, 0 /* String */),
3058
3058
  generateParamConfigMetadata('target', false, 2 /* Body */, 0 /* String */),
3059
3059
  generateParamConfigMetadata('templateInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
3060
3060
  generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
3061
3061
  ];
3062
- const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getInputMappedDataProviders_ConfigPropertyMetadata);
3063
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(getInputMappedDataProviders_ConfigPropertyMetadata);
3064
- function keyBuilder$i(luvio, config) {
3065
- const resourceParams = createResourceParams$d(config);
3066
- return keyBuilder$j(luvio, resourceParams);
3062
+ const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getInputMappedDataProviders_ConfigPropertyMetadata);
3063
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(getInputMappedDataProviders_ConfigPropertyMetadata);
3064
+ function keyBuilder$k(luvio, config) {
3065
+ const resourceParams = createResourceParams$e(config);
3066
+ return keyBuilder$l(luvio, resourceParams);
3067
3067
  }
3068
- function typeCheckConfig$d(untrustedConfig) {
3068
+ function typeCheckConfig$e(untrustedConfig) {
3069
3069
  const config = {};
3070
- typeCheckConfig$j(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3070
+ typeCheckConfig$k(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3071
3071
  const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
3072
3072
  if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
3073
3073
  const untrustedConfig_templateInputs_array = [];
@@ -3079,93 +3079,93 @@ function typeCheckConfig$d(untrustedConfig) {
3079
3079
  }
3080
3080
  return config;
3081
3081
  }
3082
- function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3082
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
3083
3083
  if (!untrustedIsObject(untrustedConfig)) {
3084
3084
  return null;
3085
3085
  }
3086
3086
  if (process.env.NODE_ENV !== 'production') {
3087
3087
  validateConfig(untrustedConfig, configPropertyNames);
3088
3088
  }
3089
- const config = typeCheckConfig$d(untrustedConfig);
3089
+ const config = typeCheckConfig$e(untrustedConfig);
3090
3090
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3091
3091
  return null;
3092
3092
  }
3093
3093
  return config;
3094
3094
  }
3095
- function adapterFragment$8(luvio, config) {
3096
- createResourceParams$d(config);
3097
- return select$C();
3095
+ function adapterFragment$9(luvio, config) {
3096
+ createResourceParams$e(config);
3097
+ return select$E();
3098
3098
  }
3099
- function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
3100
- const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
3099
+ function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
3100
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
3101
3101
  config,
3102
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3102
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
3103
3103
  });
3104
3104
  return luvio.storeBroadcast().then(() => snapshot);
3105
3105
  }
3106
- function onFetchResponseError$8(luvio, config, resourceParams, response) {
3107
- const snapshot = ingestError$8(luvio, resourceParams, response, {
3106
+ function onFetchResponseError$9(luvio, config, resourceParams, response) {
3107
+ const snapshot = ingestError$9(luvio, resourceParams, response, {
3108
3108
  config,
3109
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3109
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
3110
3110
  });
3111
3111
  return luvio.storeBroadcast().then(() => snapshot);
3112
3112
  }
3113
- function buildNetworkSnapshot$d(luvio, config, options) {
3114
- const resourceParams = createResourceParams$d(config);
3115
- const request = createResourceRequest$d(resourceParams);
3113
+ function buildNetworkSnapshot$e(luvio, config, options) {
3114
+ const resourceParams = createResourceParams$e(config);
3115
+ const request = createResourceRequest$e(resourceParams);
3116
3116
  return luvio.dispatchResourceRequest(request, options)
3117
3117
  .then((response) => {
3118
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
3118
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
3119
3119
  const cache = new StoreKeyMap();
3120
- getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
3120
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
3121
3121
  return cache;
3122
3122
  });
3123
3123
  }, (response) => {
3124
- return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
3124
+ return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
3125
3125
  });
3126
3126
  }
3127
- function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
3128
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, 'get', false);
3127
+ function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
3128
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, 'get', false);
3129
3129
  }
3130
- function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
3130
+ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
3131
3131
  const { luvio, config } = context;
3132
3132
  const selector = {
3133
- recordId: keyBuilder$i(luvio, config),
3134
- node: adapterFragment$8(luvio, config),
3133
+ recordId: keyBuilder$k(luvio, config),
3134
+ node: adapterFragment$9(luvio, config),
3135
3135
  variables: {},
3136
3136
  };
3137
3137
  const cacheSnapshot = storeLookup(selector, {
3138
3138
  config,
3139
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3139
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
3140
3140
  });
3141
3141
  return cacheSnapshot;
3142
3142
  }
3143
3143
  const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
3144
- const config = validateAdapterConfig$d(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3144
+ const config = validateAdapterConfig$e(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3145
3145
  // Invalid or incomplete config
3146
3146
  if (config === null) {
3147
3147
  return null;
3148
3148
  }
3149
3149
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3150
- buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
3150
+ buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
3151
3151
  };
3152
3152
 
3153
- function select$B(luvio, params) {
3154
- return select$D();
3153
+ function select$D(luvio, params) {
3154
+ return select$F();
3155
3155
  }
3156
- function keyBuilder$h(luvio, params) {
3156
+ function keyBuilder$j(luvio, params) {
3157
3157
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
3158
3158
  }
3159
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
3160
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
3159
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
3160
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
3161
3161
  }
3162
- function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
3162
+ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
3163
3163
  const { body } = response;
3164
- const key = keyBuilder$h(luvio, resourceParams);
3165
- luvio.storeIngest(key, ingest$5, body);
3164
+ const key = keyBuilder$j(luvio, resourceParams);
3165
+ luvio.storeIngest(key, ingest$6, body);
3166
3166
  const snapshot = luvio.storeLookup({
3167
3167
  recordId: key,
3168
- node: select$B(),
3168
+ node: select$D(),
3169
3169
  variables: {},
3170
3170
  }, snapshotRefresh);
3171
3171
  if (process.env.NODE_ENV !== 'production') {
@@ -3176,19 +3176,19 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
3176
3176
  deepFreeze(snapshot.data);
3177
3177
  return snapshot;
3178
3178
  }
3179
- function ingestError$7(luvio, params, error, snapshotRefresh) {
3180
- const key = keyBuilder$h(luvio, params);
3179
+ function ingestError$8(luvio, params, error, snapshotRefresh) {
3180
+ const key = keyBuilder$j(luvio, params);
3181
3181
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3182
3182
  const storeMetadataParams = {
3183
- ttl: TTL$5,
3183
+ ttl: TTL$6,
3184
3184
  namespace: keyPrefix,
3185
- version: VERSION$p,
3186
- representationName: RepresentationType$5
3185
+ version: VERSION$q,
3186
+ representationName: RepresentationType$6
3187
3187
  };
3188
3188
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3189
3189
  return errorSnapshot;
3190
3190
  }
3191
- function createResourceRequest$c(config) {
3191
+ function createResourceRequest$d(config) {
3192
3192
  const headers = {};
3193
3193
  return {
3194
3194
  baseUri: '/services/data/v67.0',
@@ -3202,110 +3202,110 @@ function createResourceRequest$c(config) {
3202
3202
  };
3203
3203
  }
3204
3204
 
3205
- const adapterName$c = 'getDataProviders';
3205
+ const adapterName$d = 'getDataProviders';
3206
3206
  const getDataProviders_ConfigPropertyMetadata = [
3207
3207
  generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
3208
3208
  generateParamConfigMetadata('groupNames', false, 1 /* QueryParameter */, 0 /* String */, true),
3209
3209
  generateParamConfigMetadata('targets', false, 1 /* QueryParameter */, 0 /* String */, true),
3210
3210
  ];
3211
- const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getDataProviders_ConfigPropertyMetadata);
3212
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getDataProviders_ConfigPropertyMetadata);
3213
- function keyBuilder$g(luvio, config) {
3214
- const resourceParams = createResourceParams$c(config);
3215
- return keyBuilder$h(luvio, resourceParams);
3211
+ const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getDataProviders_ConfigPropertyMetadata);
3212
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(getDataProviders_ConfigPropertyMetadata);
3213
+ function keyBuilder$i(luvio, config) {
3214
+ const resourceParams = createResourceParams$d(config);
3215
+ return keyBuilder$j(luvio, resourceParams);
3216
3216
  }
3217
- function typeCheckConfig$c(untrustedConfig) {
3217
+ function typeCheckConfig$d(untrustedConfig) {
3218
3218
  const config = {};
3219
- typeCheckConfig$j(untrustedConfig, config, getDataProviders_ConfigPropertyMetadata);
3219
+ typeCheckConfig$k(untrustedConfig, config, getDataProviders_ConfigPropertyMetadata);
3220
3220
  return config;
3221
3221
  }
3222
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3222
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3223
3223
  if (!untrustedIsObject(untrustedConfig)) {
3224
3224
  return null;
3225
3225
  }
3226
3226
  if (process.env.NODE_ENV !== 'production') {
3227
3227
  validateConfig(untrustedConfig, configPropertyNames);
3228
3228
  }
3229
- const config = typeCheckConfig$c(untrustedConfig);
3229
+ const config = typeCheckConfig$d(untrustedConfig);
3230
3230
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3231
3231
  return null;
3232
3232
  }
3233
3233
  return config;
3234
3234
  }
3235
- function adapterFragment$7(luvio, config) {
3236
- createResourceParams$c(config);
3237
- return select$B();
3235
+ function adapterFragment$8(luvio, config) {
3236
+ createResourceParams$d(config);
3237
+ return select$D();
3238
3238
  }
3239
- function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
3240
- const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
3239
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
3240
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
3241
3241
  config,
3242
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3242
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3243
3243
  });
3244
3244
  return luvio.storeBroadcast().then(() => snapshot);
3245
3245
  }
3246
- function onFetchResponseError$7(luvio, config, resourceParams, response) {
3247
- const snapshot = ingestError$7(luvio, resourceParams, response, {
3246
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
3247
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
3248
3248
  config,
3249
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3249
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3250
3250
  });
3251
3251
  return luvio.storeBroadcast().then(() => snapshot);
3252
3252
  }
3253
- function buildNetworkSnapshot$c(luvio, config, options) {
3254
- const resourceParams = createResourceParams$c(config);
3255
- const request = createResourceRequest$c(resourceParams);
3253
+ function buildNetworkSnapshot$d(luvio, config, options) {
3254
+ const resourceParams = createResourceParams$d(config);
3255
+ const request = createResourceRequest$d(resourceParams);
3256
3256
  return luvio.dispatchResourceRequest(request, options)
3257
3257
  .then((response) => {
3258
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
3258
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
3259
3259
  const cache = new StoreKeyMap();
3260
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
3260
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
3261
3261
  return cache;
3262
3262
  });
3263
3263
  }, (response) => {
3264
- return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
3264
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
3265
3265
  });
3266
3266
  }
3267
- function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
3268
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
3267
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
3268
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
3269
3269
  }
3270
- function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
3270
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
3271
3271
  const { luvio, config } = context;
3272
3272
  const selector = {
3273
- recordId: keyBuilder$g(luvio, config),
3274
- node: adapterFragment$7(luvio, config),
3273
+ recordId: keyBuilder$i(luvio, config),
3274
+ node: adapterFragment$8(luvio, config),
3275
3275
  variables: {},
3276
3276
  };
3277
3277
  const cacheSnapshot = storeLookup(selector, {
3278
3278
  config,
3279
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3279
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3280
3280
  });
3281
3281
  return cacheSnapshot;
3282
3282
  }
3283
3283
  const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataProviders(untrustedConfig, requestContext) {
3284
- const config = validateAdapterConfig$c(untrustedConfig, getDataProviders_ConfigPropertyNames);
3284
+ const config = validateAdapterConfig$d(untrustedConfig, getDataProviders_ConfigPropertyNames);
3285
3285
  // Invalid or incomplete config
3286
3286
  if (config === null) {
3287
3287
  return null;
3288
3288
  }
3289
3289
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3290
- buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
3290
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
3291
3291
  };
3292
3292
 
3293
- function select$A(luvio, params) {
3294
- return select$E();
3293
+ function select$C(luvio, params) {
3294
+ return select$G();
3295
3295
  }
3296
- function keyBuilder$f(luvio, params) {
3296
+ function keyBuilder$h(luvio, params) {
3297
3297
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
3298
3298
  }
3299
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
3300
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
3299
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
3300
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
3301
3301
  }
3302
- function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
3302
+ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
3303
3303
  const { body } = response;
3304
- const key = keyBuilder$f(luvio, resourceParams);
3305
- luvio.storeIngest(key, ingest$6, body);
3304
+ const key = keyBuilder$h(luvio, resourceParams);
3305
+ luvio.storeIngest(key, ingest$7, body);
3306
3306
  const snapshot = luvio.storeLookup({
3307
3307
  recordId: key,
3308
- node: select$A(),
3308
+ node: select$C(),
3309
3309
  variables: {},
3310
3310
  }, snapshotRefresh);
3311
3311
  if (process.env.NODE_ENV !== 'production') {
@@ -3316,19 +3316,19 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
3316
3316
  deepFreeze(snapshot.data);
3317
3317
  return snapshot;
3318
3318
  }
3319
- function ingestError$6(luvio, params, error, snapshotRefresh) {
3320
- const key = keyBuilder$f(luvio, params);
3319
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
3320
+ const key = keyBuilder$h(luvio, params);
3321
3321
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3322
3322
  const storeMetadataParams = {
3323
- ttl: TTL$6,
3323
+ ttl: TTL$7,
3324
3324
  namespace: keyPrefix,
3325
- version: VERSION$q,
3326
- representationName: RepresentationType$6
3325
+ version: VERSION$r,
3326
+ representationName: RepresentationType$7
3327
3327
  };
3328
3328
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3329
3329
  return errorSnapshot;
3330
3330
  }
3331
- function createResourceRequest$b(config) {
3331
+ function createResourceRequest$c(config) {
3332
3332
  const headers = {};
3333
3333
  return {
3334
3334
  baseUri: '/services/data/v67.0',
@@ -3342,21 +3342,21 @@ function createResourceRequest$b(config) {
3342
3342
  };
3343
3343
  }
3344
3344
 
3345
- const adapterName$b = 'getDataProviderInstanceConfig';
3345
+ const adapterName$c = 'getDataProviderInstanceConfig';
3346
3346
  const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
3347
3347
  generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
3348
3348
  generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
3349
3349
  generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
3350
3350
  ];
3351
- const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3352
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(getDataProviderInstanceConfig_ConfigPropertyMetadata);
3353
- function keyBuilder$e(luvio, config) {
3354
- const resourceParams = createResourceParams$b(config);
3355
- return keyBuilder$f(luvio, resourceParams);
3351
+ const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3352
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(getDataProviderInstanceConfig_ConfigPropertyMetadata);
3353
+ function keyBuilder$g(luvio, config) {
3354
+ const resourceParams = createResourceParams$c(config);
3355
+ return keyBuilder$h(luvio, resourceParams);
3356
3356
  }
3357
- function typeCheckConfig$b(untrustedConfig) {
3357
+ function typeCheckConfig$c(untrustedConfig) {
3358
3358
  const config = {};
3359
- typeCheckConfig$j(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3359
+ typeCheckConfig$k(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3360
3360
  const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
3361
3361
  if (untrustedIsObject(untrustedConfig_additionalParam)) {
3362
3362
  const untrustedConfig_additionalParam_object = {};
@@ -3374,78 +3374,78 @@ function typeCheckConfig$b(untrustedConfig) {
3374
3374
  }
3375
3375
  return config;
3376
3376
  }
3377
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
3377
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3378
3378
  if (!untrustedIsObject(untrustedConfig)) {
3379
3379
  return null;
3380
3380
  }
3381
3381
  if (process.env.NODE_ENV !== 'production') {
3382
3382
  validateConfig(untrustedConfig, configPropertyNames);
3383
3383
  }
3384
- const config = typeCheckConfig$b(untrustedConfig);
3384
+ const config = typeCheckConfig$c(untrustedConfig);
3385
3385
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3386
3386
  return null;
3387
3387
  }
3388
3388
  return config;
3389
3389
  }
3390
- function adapterFragment$6(luvio, config) {
3391
- createResourceParams$b(config);
3392
- return select$A();
3390
+ function adapterFragment$7(luvio, config) {
3391
+ createResourceParams$c(config);
3392
+ return select$C();
3393
3393
  }
3394
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
3395
- const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
3394
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
3395
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
3396
3396
  config,
3397
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
3397
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3398
3398
  });
3399
3399
  return luvio.storeBroadcast().then(() => snapshot);
3400
3400
  }
3401
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
3402
- const snapshot = ingestError$6(luvio, resourceParams, response, {
3401
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
3402
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
3403
3403
  config,
3404
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
3404
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3405
3405
  });
3406
3406
  return luvio.storeBroadcast().then(() => snapshot);
3407
3407
  }
3408
- function buildNetworkSnapshot$b(luvio, config, options) {
3409
- const resourceParams = createResourceParams$b(config);
3410
- const request = createResourceRequest$b(resourceParams);
3408
+ function buildNetworkSnapshot$c(luvio, config, options) {
3409
+ const resourceParams = createResourceParams$c(config);
3410
+ const request = createResourceRequest$c(resourceParams);
3411
3411
  return luvio.dispatchResourceRequest(request, options)
3412
3412
  .then((response) => {
3413
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
3413
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
3414
3414
  const cache = new StoreKeyMap();
3415
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
3415
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
3416
3416
  return cache;
3417
3417
  });
3418
3418
  }, (response) => {
3419
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
3419
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
3420
3420
  });
3421
3421
  }
3422
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
3423
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, 'get', false);
3422
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
3423
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, 'get', false);
3424
3424
  }
3425
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
3425
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
3426
3426
  const { luvio, config } = context;
3427
3427
  const selector = {
3428
- recordId: keyBuilder$e(luvio, config),
3429
- node: adapterFragment$6(luvio, config),
3428
+ recordId: keyBuilder$g(luvio, config),
3429
+ node: adapterFragment$7(luvio, config),
3430
3430
  variables: {},
3431
3431
  };
3432
3432
  const cacheSnapshot = storeLookup(selector, {
3433
3433
  config,
3434
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
3434
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3435
3435
  });
3436
3436
  return cacheSnapshot;
3437
3437
  }
3438
3438
  const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
3439
- const config = validateAdapterConfig$b(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
3439
+ const config = validateAdapterConfig$c(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
3440
3440
  // Invalid or incomplete config
3441
3441
  if (config === null) {
3442
3442
  return null;
3443
3443
  }
3444
3444
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3445
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3445
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
3446
3446
  };
3447
3447
 
3448
- function validate$r(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
3448
+ function validate$s(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
3449
3449
  const v_error = (() => {
3450
3450
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3451
3451
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3495,9 +3495,9 @@ function validate$r(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentat
3495
3495
  return v_error === undefined ? null : v_error;
3496
3496
  }
3497
3497
 
3498
- const TTL$4 = 300;
3499
- const VERSION$o = "212332dac1decc071b476742df3440fb";
3500
- function validate$q(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
3498
+ const TTL$5 = 300;
3499
+ const VERSION$p = "212332dac1decc071b476742df3440fb";
3500
+ function validate$r(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
3501
3501
  const v_error = (() => {
3502
3502
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3503
3503
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3510,7 +3510,7 @@ function validate$q(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
3510
3510
  for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
3511
3511
  const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
3512
3512
  const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
3513
- const referencepath_dataProviderTypeConfigs_itemValidationError = validate$r(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
3513
+ const referencepath_dataProviderTypeConfigs_itemValidationError = validate$s(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
3514
3514
  if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
3515
3515
  let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
3516
3516
  message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3520,62 +3520,62 @@ function validate$q(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
3520
3520
  })();
3521
3521
  return v_error === undefined ? null : v_error;
3522
3522
  }
3523
- const RepresentationType$4 = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation';
3524
- function normalize$4(input, existing, path, luvio, store, timestamp) {
3523
+ const RepresentationType$5 = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation';
3524
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
3525
3525
  return input;
3526
3526
  }
3527
- const select$z = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
3527
+ const select$B = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
3528
3528
  return {
3529
3529
  kind: 'Fragment',
3530
- version: VERSION$o,
3530
+ version: VERSION$p,
3531
3531
  private: [],
3532
3532
  opaque: true
3533
3533
  };
3534
3534
  };
3535
- function equals$o(existing, incoming) {
3535
+ function equals$p(existing, incoming) {
3536
3536
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3537
3537
  return false;
3538
3538
  }
3539
3539
  return true;
3540
3540
  }
3541
- const ingest$4 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3541
+ const ingest$5 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3542
3542
  if (process.env.NODE_ENV !== 'production') {
3543
- const validateError = validate$q(input);
3543
+ const validateError = validate$r(input);
3544
3544
  if (validateError !== null) {
3545
3545
  throw validateError;
3546
3546
  }
3547
3547
  }
3548
3548
  const key = path.fullPath;
3549
- const ttlToUse = TTL$4;
3550
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$o, RepresentationType$4, equals$o);
3549
+ const ttlToUse = TTL$5;
3550
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$p, RepresentationType$5, equals$p);
3551
3551
  return createLink(key);
3552
3552
  };
3553
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
3553
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3554
3554
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3555
3555
  const rootKey = fullPathFactory();
3556
3556
  rootKeySet.set(rootKey, {
3557
3557
  namespace: keyPrefix,
3558
- representationName: RepresentationType$4,
3558
+ representationName: RepresentationType$5,
3559
3559
  mergeable: false
3560
3560
  });
3561
3561
  }
3562
3562
 
3563
- function select$y(luvio, params) {
3564
- return select$z();
3563
+ function select$A(luvio, params) {
3564
+ return select$B();
3565
3565
  }
3566
- function keyBuilder$d(luvio, params) {
3566
+ function keyBuilder$f(luvio, params) {
3567
3567
  return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
3568
3568
  }
3569
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
3570
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
3569
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
3570
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
3571
3571
  }
3572
- function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
3572
+ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
3573
3573
  const { body } = response;
3574
- const key = keyBuilder$d(luvio, resourceParams);
3575
- luvio.storeIngest(key, ingest$4, body);
3574
+ const key = keyBuilder$f(luvio, resourceParams);
3575
+ luvio.storeIngest(key, ingest$5, body);
3576
3576
  const snapshot = luvio.storeLookup({
3577
3577
  recordId: key,
3578
- node: select$y(),
3578
+ node: select$A(),
3579
3579
  variables: {},
3580
3580
  }, snapshotRefresh);
3581
3581
  if (process.env.NODE_ENV !== 'production') {
@@ -3586,19 +3586,19 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
3586
3586
  deepFreeze(snapshot.data);
3587
3587
  return snapshot;
3588
3588
  }
3589
- function ingestError$5(luvio, params, error, snapshotRefresh) {
3590
- const key = keyBuilder$d(luvio, params);
3589
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
3590
+ const key = keyBuilder$f(luvio, params);
3591
3591
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3592
3592
  const storeMetadataParams = {
3593
- ttl: TTL$4,
3593
+ ttl: TTL$5,
3594
3594
  namespace: keyPrefix,
3595
- version: VERSION$o,
3596
- representationName: RepresentationType$4
3595
+ version: VERSION$p,
3596
+ representationName: RepresentationType$5
3597
3597
  };
3598
3598
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3599
3599
  return errorSnapshot;
3600
3600
  }
3601
- function createResourceRequest$a(config) {
3601
+ function createResourceRequest$b(config) {
3602
3602
  const headers = {};
3603
3603
  return {
3604
3604
  baseUri: '/services/data/v67.0',
@@ -3612,108 +3612,108 @@ function createResourceRequest$a(config) {
3612
3612
  };
3613
3613
  }
3614
3614
 
3615
- const adapterName$a = 'getDataProviderTypeConfigs';
3615
+ const adapterName$b = 'getDataProviderTypeConfigs';
3616
3616
  const getDataProviderTypeConfigs_ConfigPropertyMetadata = [
3617
3617
  generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
3618
3618
  ];
3619
- const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDataProviderTypeConfigs_ConfigPropertyMetadata);
3620
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getDataProviderTypeConfigs_ConfigPropertyMetadata);
3621
- function keyBuilder$c(luvio, config) {
3622
- const resourceParams = createResourceParams$a(config);
3623
- return keyBuilder$d(luvio, resourceParams);
3619
+ const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDataProviderTypeConfigs_ConfigPropertyMetadata);
3620
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(getDataProviderTypeConfigs_ConfigPropertyMetadata);
3621
+ function keyBuilder$e(luvio, config) {
3622
+ const resourceParams = createResourceParams$b(config);
3623
+ return keyBuilder$f(luvio, resourceParams);
3624
3624
  }
3625
- function typeCheckConfig$a(untrustedConfig) {
3625
+ function typeCheckConfig$b(untrustedConfig) {
3626
3626
  const config = {};
3627
- typeCheckConfig$j(untrustedConfig, config, getDataProviderTypeConfigs_ConfigPropertyMetadata);
3627
+ typeCheckConfig$k(untrustedConfig, config, getDataProviderTypeConfigs_ConfigPropertyMetadata);
3628
3628
  return config;
3629
3629
  }
3630
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
3630
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
3631
3631
  if (!untrustedIsObject(untrustedConfig)) {
3632
3632
  return null;
3633
3633
  }
3634
3634
  if (process.env.NODE_ENV !== 'production') {
3635
3635
  validateConfig(untrustedConfig, configPropertyNames);
3636
3636
  }
3637
- const config = typeCheckConfig$a(untrustedConfig);
3637
+ const config = typeCheckConfig$b(untrustedConfig);
3638
3638
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3639
3639
  return null;
3640
3640
  }
3641
3641
  return config;
3642
3642
  }
3643
- function adapterFragment$5(luvio, config) {
3644
- createResourceParams$a(config);
3645
- return select$y();
3643
+ function adapterFragment$6(luvio, config) {
3644
+ createResourceParams$b(config);
3645
+ return select$A();
3646
3646
  }
3647
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
3648
- const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
3647
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
3648
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
3649
3649
  config,
3650
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3650
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
3651
3651
  });
3652
3652
  return luvio.storeBroadcast().then(() => snapshot);
3653
3653
  }
3654
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
3655
- const snapshot = ingestError$5(luvio, resourceParams, response, {
3654
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
3655
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
3656
3656
  config,
3657
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3657
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
3658
3658
  });
3659
3659
  return luvio.storeBroadcast().then(() => snapshot);
3660
3660
  }
3661
- function buildNetworkSnapshot$a(luvio, config, options) {
3662
- const resourceParams = createResourceParams$a(config);
3663
- const request = createResourceRequest$a(resourceParams);
3661
+ function buildNetworkSnapshot$b(luvio, config, options) {
3662
+ const resourceParams = createResourceParams$b(config);
3663
+ const request = createResourceRequest$b(resourceParams);
3664
3664
  return luvio.dispatchResourceRequest(request, options)
3665
3665
  .then((response) => {
3666
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3666
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
3667
3667
  const cache = new StoreKeyMap();
3668
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3668
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
3669
3669
  return cache;
3670
3670
  });
3671
3671
  }, (response) => {
3672
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3672
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
3673
3673
  });
3674
3674
  }
3675
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
3676
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
3675
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
3676
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
3677
3677
  }
3678
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
3678
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
3679
3679
  const { luvio, config } = context;
3680
3680
  const selector = {
3681
- recordId: keyBuilder$c(luvio, config),
3682
- node: adapterFragment$5(luvio, config),
3681
+ recordId: keyBuilder$e(luvio, config),
3682
+ node: adapterFragment$6(luvio, config),
3683
3683
  variables: {},
3684
3684
  };
3685
3685
  const cacheSnapshot = storeLookup(selector, {
3686
3686
  config,
3687
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3687
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
3688
3688
  });
3689
3689
  return cacheSnapshot;
3690
3690
  }
3691
3691
  const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderTypeConfigs(untrustedConfig, requestContext) {
3692
- const config = validateAdapterConfig$a(untrustedConfig, getDataProviderTypeConfigs_ConfigPropertyNames);
3692
+ const config = validateAdapterConfig$b(untrustedConfig, getDataProviderTypeConfigs_ConfigPropertyNames);
3693
3693
  // Invalid or incomplete config
3694
3694
  if (config === null) {
3695
3695
  return null;
3696
3696
  }
3697
3697
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3698
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3698
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3699
3699
  };
3700
3700
 
3701
- function select$x(luvio, params) {
3702
- return select$J();
3701
+ function select$z(luvio, params) {
3702
+ return select$L();
3703
3703
  }
3704
- function keyBuilder$b(luvio, params) {
3704
+ function keyBuilder$d(luvio, params) {
3705
3705
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
3706
3706
  }
3707
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
3708
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
3707
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
3708
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
3709
3709
  }
3710
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
3710
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
3711
3711
  const { body } = response;
3712
- const key = keyBuilder$b(luvio, resourceParams);
3713
- luvio.storeIngest(key, ingest$9, body);
3712
+ const key = keyBuilder$d(luvio, resourceParams);
3713
+ luvio.storeIngest(key, ingest$a, body);
3714
3714
  const snapshot = luvio.storeLookup({
3715
3715
  recordId: key,
3716
- node: select$x(),
3716
+ node: select$z(),
3717
3717
  variables: {},
3718
3718
  }, snapshotRefresh);
3719
3719
  if (process.env.NODE_ENV !== 'production') {
@@ -3724,19 +3724,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
3724
3724
  deepFreeze(snapshot.data);
3725
3725
  return snapshot;
3726
3726
  }
3727
- function ingestError$4(luvio, params, error, snapshotRefresh) {
3728
- const key = keyBuilder$b(luvio, params);
3727
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
3728
+ const key = keyBuilder$d(luvio, params);
3729
3729
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3730
3730
  const storeMetadataParams = {
3731
- ttl: TTL$9,
3731
+ ttl: TTL$a,
3732
3732
  namespace: keyPrefix,
3733
- version: VERSION$t,
3734
- representationName: RepresentationType$9
3733
+ version: VERSION$u,
3734
+ representationName: RepresentationType$a
3735
3735
  };
3736
3736
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3737
3737
  return errorSnapshot;
3738
3738
  }
3739
- function createResourceRequest$9(config) {
3739
+ function createResourceRequest$a(config) {
3740
3740
  const headers = {};
3741
3741
  return {
3742
3742
  baseUri: '/services/data/v67.0',
@@ -3750,96 +3750,96 @@ function createResourceRequest$9(config) {
3750
3750
  };
3751
3751
  }
3752
3752
 
3753
- const adapterName$9 = 'getPromptTemplate';
3753
+ const adapterName$a = 'getPromptTemplate';
3754
3754
  const getPromptTemplate_ConfigPropertyMetadata = [
3755
3755
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3756
3756
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3757
3757
  ];
3758
- const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getPromptTemplate_ConfigPropertyMetadata);
3759
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getPromptTemplate_ConfigPropertyMetadata);
3760
- function keyBuilder$a(luvio, config) {
3761
- const resourceParams = createResourceParams$9(config);
3762
- return keyBuilder$b(luvio, resourceParams);
3758
+ const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getPromptTemplate_ConfigPropertyMetadata);
3759
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(getPromptTemplate_ConfigPropertyMetadata);
3760
+ function keyBuilder$c(luvio, config) {
3761
+ const resourceParams = createResourceParams$a(config);
3762
+ return keyBuilder$d(luvio, resourceParams);
3763
3763
  }
3764
- function typeCheckConfig$9(untrustedConfig) {
3764
+ function typeCheckConfig$a(untrustedConfig) {
3765
3765
  const config = {};
3766
- typeCheckConfig$j(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3766
+ typeCheckConfig$k(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3767
3767
  return config;
3768
3768
  }
3769
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
3769
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
3770
3770
  if (!untrustedIsObject(untrustedConfig)) {
3771
3771
  return null;
3772
3772
  }
3773
3773
  if (process.env.NODE_ENV !== 'production') {
3774
3774
  validateConfig(untrustedConfig, configPropertyNames);
3775
3775
  }
3776
- const config = typeCheckConfig$9(untrustedConfig);
3776
+ const config = typeCheckConfig$a(untrustedConfig);
3777
3777
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3778
3778
  return null;
3779
3779
  }
3780
3780
  return config;
3781
3781
  }
3782
- function adapterFragment$4(luvio, config) {
3783
- createResourceParams$9(config);
3784
- return select$x();
3782
+ function adapterFragment$5(luvio, config) {
3783
+ createResourceParams$a(config);
3784
+ return select$z();
3785
3785
  }
3786
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
3787
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
3786
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
3787
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
3788
3788
  config,
3789
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3789
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3790
3790
  });
3791
3791
  return luvio.storeBroadcast().then(() => snapshot);
3792
3792
  }
3793
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
3794
- const snapshot = ingestError$4(luvio, resourceParams, response, {
3793
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
3794
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
3795
3795
  config,
3796
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3796
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3797
3797
  });
3798
3798
  return luvio.storeBroadcast().then(() => snapshot);
3799
3799
  }
3800
- function buildNetworkSnapshot$9(luvio, config, options) {
3801
- const resourceParams = createResourceParams$9(config);
3802
- const request = createResourceRequest$9(resourceParams);
3800
+ function buildNetworkSnapshot$a(luvio, config, options) {
3801
+ const resourceParams = createResourceParams$a(config);
3802
+ const request = createResourceRequest$a(resourceParams);
3803
3803
  return luvio.dispatchResourceRequest(request, options)
3804
3804
  .then((response) => {
3805
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
3805
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3806
3806
  const cache = new StoreKeyMap();
3807
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
3807
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3808
3808
  return cache;
3809
3809
  });
3810
3810
  }, (response) => {
3811
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
3811
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3812
3812
  });
3813
3813
  }
3814
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3815
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
3814
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
3815
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
3816
3816
  }
3817
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
3817
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
3818
3818
  const { luvio, config } = context;
3819
3819
  const selector = {
3820
- recordId: keyBuilder$a(luvio, config),
3821
- node: adapterFragment$4(luvio, config),
3820
+ recordId: keyBuilder$c(luvio, config),
3821
+ node: adapterFragment$5(luvio, config),
3822
3822
  variables: {},
3823
3823
  };
3824
3824
  const cacheSnapshot = storeLookup(selector, {
3825
3825
  config,
3826
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
3826
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
3827
3827
  });
3828
3828
  return cacheSnapshot;
3829
3829
  }
3830
3830
  const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplate(untrustedConfig, requestContext) {
3831
- const config = validateAdapterConfig$9(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
3831
+ const config = validateAdapterConfig$a(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
3832
3832
  // Invalid or incomplete config
3833
3833
  if (config === null) {
3834
3834
  return null;
3835
3835
  }
3836
3836
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3837
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
3837
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3838
3838
  };
3839
3839
 
3840
- const TTL$3 = 100;
3841
- const VERSION$n = "ecde90304d12947c5205ddc7c99d747b";
3842
- function validate$p(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3840
+ const TTL$4 = 100;
3841
+ const VERSION$o = "ecde90304d12947c5205ddc7c99d747b";
3842
+ function validate$q(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3843
3843
  const v_error = (() => {
3844
3844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3845
3845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3847,7 +3847,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3847
3847
  if (obj.additionalData !== undefined) {
3848
3848
  const obj_additionalData = obj.additionalData;
3849
3849
  const path_additionalData = path + '.additionalData';
3850
- const referencepath_additionalDataValidationError = validate$B(obj_additionalData, path_additionalData);
3850
+ const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
3851
3851
  if (referencepath_additionalDataValidationError !== null) {
3852
3852
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
3853
3853
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3910,24 +3910,24 @@ function validate$p(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3910
3910
  })();
3911
3911
  return v_error === undefined ? null : v_error;
3912
3912
  }
3913
- const RepresentationType$3 = 'EinsteinPromptTemplateStatusRepresentation';
3914
- function keyBuilder$9(luvio, config) {
3915
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.templateId;
3913
+ const RepresentationType$4 = 'EinsteinPromptTemplateStatusRepresentation';
3914
+ function keyBuilder$b(luvio, config) {
3915
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.templateId;
3916
3916
  }
3917
3917
  function keyBuilderFromType$1(luvio, object) {
3918
3918
  const keyParams = {
3919
3919
  templateId: object.templateId
3920
3920
  };
3921
- return keyBuilder$9(luvio, keyParams);
3921
+ return keyBuilder$b(luvio, keyParams);
3922
3922
  }
3923
- function normalize$3(input, existing, path, luvio, store, timestamp) {
3923
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
3924
3924
  return input;
3925
3925
  }
3926
- const select$w = function EinsteinPromptTemplateStatusRepresentationSelect() {
3927
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
3926
+ const select$y = function EinsteinPromptTemplateStatusRepresentationSelect() {
3927
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
3928
3928
  return {
3929
3929
  kind: 'Fragment',
3930
- version: VERSION$n,
3930
+ version: VERSION$o,
3931
3931
  private: [],
3932
3932
  selections: [
3933
3933
  {
@@ -3971,7 +3971,7 @@ const select$w = function EinsteinPromptTemplateStatusRepresentationSelect() {
3971
3971
  ]
3972
3972
  };
3973
3973
  };
3974
- function equals$n(existing, incoming) {
3974
+ function equals$o(existing, incoming) {
3975
3975
  const existing_hasWarning = existing.hasWarning;
3976
3976
  const incoming_hasWarning = incoming.hasWarning;
3977
3977
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -4022,7 +4022,7 @@ function equals$n(existing, incoming) {
4022
4022
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
4023
4023
  return false;
4024
4024
  }
4025
- if (!(equals$v(existing_additionalData, incoming_additionalData))) {
4025
+ if (!(equals$w(existing_additionalData, incoming_additionalData))) {
4026
4026
  return false;
4027
4027
  }
4028
4028
  }
@@ -4048,41 +4048,41 @@ function equals$n(existing, incoming) {
4048
4048
  }
4049
4049
  return true;
4050
4050
  }
4051
- const ingest$3 = function EinsteinPromptTemplateStatusRepresentationIngest(input, path, luvio, store, timestamp) {
4051
+ const ingest$4 = function EinsteinPromptTemplateStatusRepresentationIngest(input, path, luvio, store, timestamp) {
4052
4052
  if (process.env.NODE_ENV !== 'production') {
4053
- const validateError = validate$p(input);
4053
+ const validateError = validate$q(input);
4054
4054
  if (validateError !== null) {
4055
4055
  throw validateError;
4056
4056
  }
4057
4057
  }
4058
4058
  const key = keyBuilderFromType$1(luvio, input);
4059
- const ttlToUse = TTL$3;
4060
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$n, RepresentationType$3, equals$n);
4059
+ const ttlToUse = TTL$4;
4060
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$o, RepresentationType$4, equals$o);
4061
4061
  return createLink(key);
4062
4062
  };
4063
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4063
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
4064
4064
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4065
4065
  const rootKey = keyBuilderFromType$1(luvio, input);
4066
4066
  rootKeySet.set(rootKey, {
4067
4067
  namespace: keyPrefix,
4068
- representationName: RepresentationType$3,
4068
+ representationName: RepresentationType$4,
4069
4069
  mergeable: false
4070
4070
  });
4071
4071
  }
4072
4072
 
4073
- function select$v(luvio, params) {
4074
- return select$w();
4073
+ function select$x(luvio, params) {
4074
+ return select$y();
4075
4075
  }
4076
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
4077
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
4076
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
4077
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
4078
4078
  }
4079
- function ingestSuccess$8(luvio, resourceParams, response) {
4079
+ function ingestSuccess$9(luvio, resourceParams, response) {
4080
4080
  const { body } = response;
4081
4081
  const key = keyBuilderFromType$1(luvio, body);
4082
- luvio.storeIngest(key, ingest$3, body);
4082
+ luvio.storeIngest(key, ingest$4, body);
4083
4083
  const snapshot = luvio.storeLookup({
4084
4084
  recordId: key,
4085
- node: select$v(),
4085
+ node: select$x(),
4086
4086
  variables: {},
4087
4087
  });
4088
4088
  if (process.env.NODE_ENV !== 'production') {
@@ -4093,7 +4093,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
4093
4093
  deepFreeze(snapshot.data);
4094
4094
  return snapshot;
4095
4095
  }
4096
- function createResourceRequest$8(config) {
4096
+ function createResourceRequest$9(config) {
4097
4097
  const headers = {};
4098
4098
  return {
4099
4099
  baseUri: '/services/data/v67.0',
@@ -4107,42 +4107,42 @@ function createResourceRequest$8(config) {
4107
4107
  };
4108
4108
  }
4109
4109
 
4110
- const adapterName$8 = 'putEinsteinPromptTemplateStatus';
4110
+ const adapterName$9 = 'putEinsteinPromptTemplateStatus';
4111
4111
  const putEinsteinPromptTemplateStatus_ConfigPropertyMetadata = [
4112
4112
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
4113
4113
  generateParamConfigMetadata('action', false, 1 /* QueryParameter */, 0 /* String */),
4114
4114
  ];
4115
- const putEinsteinPromptTemplateStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
4116
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
4117
- function typeCheckConfig$8(untrustedConfig) {
4115
+ const putEinsteinPromptTemplateStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
4116
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
4117
+ function typeCheckConfig$9(untrustedConfig) {
4118
4118
  const config = {};
4119
- typeCheckConfig$j(untrustedConfig, config, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
4119
+ typeCheckConfig$k(untrustedConfig, config, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
4120
4120
  return config;
4121
4121
  }
4122
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
4122
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
4123
4123
  if (!untrustedIsObject(untrustedConfig)) {
4124
4124
  return null;
4125
4125
  }
4126
4126
  if (process.env.NODE_ENV !== 'production') {
4127
4127
  validateConfig(untrustedConfig, configPropertyNames);
4128
4128
  }
4129
- const config = typeCheckConfig$8(untrustedConfig);
4129
+ const config = typeCheckConfig$9(untrustedConfig);
4130
4130
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4131
4131
  return null;
4132
4132
  }
4133
4133
  return config;
4134
4134
  }
4135
- function buildNetworkSnapshot$8(luvio, config, options) {
4136
- const resourceParams = createResourceParams$8(config);
4137
- const request = createResourceRequest$8(resourceParams);
4135
+ function buildNetworkSnapshot$9(luvio, config, options) {
4136
+ const resourceParams = createResourceParams$9(config);
4137
+ const request = createResourceRequest$9(resourceParams);
4138
4138
  return luvio.dispatchResourceRequest(request, options)
4139
4139
  .then((response) => {
4140
4140
  return luvio.handleSuccessResponse(() => {
4141
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
4141
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
4142
4142
  return luvio.storeBroadcast().then(() => snapshot);
4143
4143
  }, () => {
4144
4144
  const cache = new StoreKeyMap();
4145
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
4145
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
4146
4146
  return cache;
4147
4147
  });
4148
4148
  }, (response) => {
@@ -4152,28 +4152,279 @@ function buildNetworkSnapshot$8(luvio, config, options) {
4152
4152
  }
4153
4153
  const putEinsteinPromptTemplateStatusAdapterFactory = (luvio) => {
4154
4154
  return function putEinsteinPromptTemplateStatus(untrustedConfig) {
4155
- const config = validateAdapterConfig$8(untrustedConfig, putEinsteinPromptTemplateStatus_ConfigPropertyNames);
4155
+ const config = validateAdapterConfig$9(untrustedConfig, putEinsteinPromptTemplateStatus_ConfigPropertyNames);
4156
4156
  // Invalid or incomplete config
4157
4157
  if (config === null) {
4158
4158
  throw new Error('Invalid config for "putEinsteinPromptTemplateStatus"');
4159
4159
  }
4160
- return buildNetworkSnapshot$8(luvio, config);
4160
+ return buildNetworkSnapshot$9(luvio, config);
4161
+ };
4162
+ };
4163
+
4164
+ const TTL$3 = 100;
4165
+ const VERSION$n = "fb53643f64759f6cff6a161f34c670fb";
4166
+ function validate$p(obj, path = 'EinsteinPromptTemplateReferencesRepresentation') {
4167
+ const v_error = (() => {
4168
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4169
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4170
+ }
4171
+ if (obj.additionalData !== undefined) {
4172
+ const obj_additionalData = obj.additionalData;
4173
+ const path_additionalData = path + '.additionalData';
4174
+ const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
4175
+ if (referencepath_additionalDataValidationError !== null) {
4176
+ let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
4177
+ message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4178
+ return new TypeError(message);
4179
+ }
4180
+ }
4181
+ const obj_errorMessages = obj.errorMessages;
4182
+ const path_errorMessages = path + '.errorMessages';
4183
+ if (!ArrayIsArray(obj_errorMessages)) {
4184
+ return new TypeError('Expected "array" but received "' + typeof obj_errorMessages + '" (at "' + path_errorMessages + '")');
4185
+ }
4186
+ for (let i = 0; i < obj_errorMessages.length; i++) {
4187
+ const obj_errorMessages_item = obj_errorMessages[i];
4188
+ const path_errorMessages_item = path_errorMessages + '[' + i + ']';
4189
+ if (typeof obj_errorMessages_item !== 'string') {
4190
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessages_item + '" (at "' + path_errorMessages_item + '")');
4191
+ }
4192
+ }
4193
+ const obj_hasWarning = obj.hasWarning;
4194
+ const path_hasWarning = path + '.hasWarning';
4195
+ if (typeof obj_hasWarning !== 'boolean') {
4196
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasWarning + '" (at "' + path_hasWarning + '")');
4197
+ }
4198
+ const obj_isSuccessful = obj.isSuccessful;
4199
+ const path_isSuccessful = path + '.isSuccessful';
4200
+ if (typeof obj_isSuccessful !== 'boolean') {
4201
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccessful + '" (at "' + path_isSuccessful + '")');
4202
+ }
4203
+ if (obj.statusCode !== undefined) {
4204
+ const obj_statusCode = obj.statusCode;
4205
+ const path_statusCode = path + '.statusCode';
4206
+ if (typeof obj_statusCode !== 'string') {
4207
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
4208
+ }
4209
+ }
4210
+ const obj_templateId = obj.templateId;
4211
+ const path_templateId = path + '.templateId';
4212
+ if (typeof obj_templateId !== 'string') {
4213
+ return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
4214
+ }
4215
+ if (obj.templateType !== undefined) {
4216
+ const obj_templateType = obj.templateType;
4217
+ const path_templateType = path + '.templateType';
4218
+ if (typeof obj_templateType !== 'string') {
4219
+ return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
4220
+ }
4221
+ }
4222
+ const obj_warningMessages = obj.warningMessages;
4223
+ const path_warningMessages = path + '.warningMessages';
4224
+ if (!ArrayIsArray(obj_warningMessages)) {
4225
+ return new TypeError('Expected "array" but received "' + typeof obj_warningMessages + '" (at "' + path_warningMessages + '")');
4226
+ }
4227
+ for (let i = 0; i < obj_warningMessages.length; i++) {
4228
+ const obj_warningMessages_item = obj_warningMessages[i];
4229
+ const path_warningMessages_item = path_warningMessages + '[' + i + ']';
4230
+ if (typeof obj_warningMessages_item !== 'string') {
4231
+ return new TypeError('Expected "string" but received "' + typeof obj_warningMessages_item + '" (at "' + path_warningMessages_item + '")');
4232
+ }
4233
+ }
4234
+ })();
4235
+ return v_error === undefined ? null : v_error;
4236
+ }
4237
+ const RepresentationType$3 = 'EinsteinPromptTemplateReferencesRepresentation';
4238
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
4239
+ return input;
4240
+ }
4241
+ const select$w = function EinsteinPromptTemplateReferencesRepresentationSelect() {
4242
+ return {
4243
+ kind: 'Fragment',
4244
+ version: VERSION$n,
4245
+ private: [],
4246
+ opaque: true
4161
4247
  };
4162
4248
  };
4249
+ function equals$n(existing, incoming) {
4250
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
4251
+ return false;
4252
+ }
4253
+ return true;
4254
+ }
4255
+ const ingest$3 = function EinsteinPromptTemplateReferencesRepresentationIngest(input, path, luvio, store, timestamp) {
4256
+ if (process.env.NODE_ENV !== 'production') {
4257
+ const validateError = validate$p(input);
4258
+ if (validateError !== null) {
4259
+ throw validateError;
4260
+ }
4261
+ }
4262
+ const key = path.fullPath;
4263
+ const ttlToUse = TTL$3;
4264
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$n, RepresentationType$3, equals$n);
4265
+ return createLink(key);
4266
+ };
4267
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4268
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4269
+ const rootKey = fullPathFactory();
4270
+ rootKeySet.set(rootKey, {
4271
+ namespace: keyPrefix,
4272
+ representationName: RepresentationType$3,
4273
+ mergeable: false
4274
+ });
4275
+ }
4276
+
4277
+ function select$v(luvio, params) {
4278
+ return select$w();
4279
+ }
4280
+ function keyBuilder$a(luvio, params) {
4281
+ return keyPrefix + '::EinsteinPromptTemplateReferencesRepresentation:(' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
4282
+ }
4283
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
4284
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
4285
+ }
4286
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
4287
+ const { body } = response;
4288
+ const key = keyBuilder$a(luvio, resourceParams);
4289
+ luvio.storeIngest(key, ingest$3, body);
4290
+ const snapshot = luvio.storeLookup({
4291
+ recordId: key,
4292
+ node: select$v(),
4293
+ variables: {},
4294
+ }, snapshotRefresh);
4295
+ if (process.env.NODE_ENV !== 'production') {
4296
+ if (snapshot.state !== 'Fulfilled') {
4297
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4298
+ }
4299
+ }
4300
+ deepFreeze(snapshot.data);
4301
+ return snapshot;
4302
+ }
4303
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
4304
+ const key = keyBuilder$a(luvio, params);
4305
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4306
+ const storeMetadataParams = {
4307
+ ttl: TTL$3,
4308
+ namespace: keyPrefix,
4309
+ version: VERSION$n,
4310
+ representationName: RepresentationType$3
4311
+ };
4312
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4313
+ return errorSnapshot;
4314
+ }
4315
+ function createResourceRequest$8(config) {
4316
+ const headers = {};
4317
+ return {
4318
+ baseUri: '/services/data/v67.0',
4319
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/references',
4320
+ method: 'get',
4321
+ body: null,
4322
+ urlParams: config.urlParams,
4323
+ queryParams: {},
4324
+ headers,
4325
+ priority: 'normal',
4326
+ };
4327
+ }
4328
+
4329
+ const adapterName$8 = 'getEinsteinPromptTemplateReferences';
4330
+ const getEinsteinPromptTemplateReferences_ConfigPropertyMetadata = [
4331
+ generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
4332
+ ];
4333
+ const getEinsteinPromptTemplateReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getEinsteinPromptTemplateReferences_ConfigPropertyMetadata);
4334
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(getEinsteinPromptTemplateReferences_ConfigPropertyMetadata);
4335
+ function keyBuilder$9(luvio, config) {
4336
+ const resourceParams = createResourceParams$8(config);
4337
+ return keyBuilder$a(luvio, resourceParams);
4338
+ }
4339
+ function typeCheckConfig$8(untrustedConfig) {
4340
+ const config = {};
4341
+ typeCheckConfig$k(untrustedConfig, config, getEinsteinPromptTemplateReferences_ConfigPropertyMetadata);
4342
+ return config;
4343
+ }
4344
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
4345
+ if (!untrustedIsObject(untrustedConfig)) {
4346
+ return null;
4347
+ }
4348
+ if (process.env.NODE_ENV !== 'production') {
4349
+ validateConfig(untrustedConfig, configPropertyNames);
4350
+ }
4351
+ const config = typeCheckConfig$8(untrustedConfig);
4352
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4353
+ return null;
4354
+ }
4355
+ return config;
4356
+ }
4357
+ function adapterFragment$4(luvio, config) {
4358
+ createResourceParams$8(config);
4359
+ return select$v();
4360
+ }
4361
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
4362
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
4363
+ config,
4364
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
4365
+ });
4366
+ return luvio.storeBroadcast().then(() => snapshot);
4367
+ }
4368
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
4369
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
4370
+ config,
4371
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
4372
+ });
4373
+ return luvio.storeBroadcast().then(() => snapshot);
4374
+ }
4375
+ function buildNetworkSnapshot$8(luvio, config, options) {
4376
+ const resourceParams = createResourceParams$8(config);
4377
+ const request = createResourceRequest$8(resourceParams);
4378
+ return luvio.dispatchResourceRequest(request, options)
4379
+ .then((response) => {
4380
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
4381
+ const cache = new StoreKeyMap();
4382
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
4383
+ return cache;
4384
+ });
4385
+ }, (response) => {
4386
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
4387
+ });
4388
+ }
4389
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
4390
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
4391
+ }
4392
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
4393
+ const { luvio, config } = context;
4394
+ const selector = {
4395
+ recordId: keyBuilder$9(luvio, config),
4396
+ node: adapterFragment$4(luvio, config),
4397
+ variables: {},
4398
+ };
4399
+ const cacheSnapshot = storeLookup(selector, {
4400
+ config,
4401
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
4402
+ });
4403
+ return cacheSnapshot;
4404
+ }
4405
+ const getEinsteinPromptTemplateReferencesAdapterFactory = (luvio) => function EinsteinLLM__getEinsteinPromptTemplateReferences(untrustedConfig, requestContext) {
4406
+ const config = validateAdapterConfig$8(untrustedConfig, getEinsteinPromptTemplateReferences_ConfigPropertyNames);
4407
+ // Invalid or incomplete config
4408
+ if (config === null) {
4409
+ return null;
4410
+ }
4411
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4412
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
4413
+ };
4163
4414
 
4164
4415
  function select$u(luvio, params) {
4165
- return select$J();
4416
+ return select$L();
4166
4417
  }
4167
4418
  function keyBuilder$8(luvio, params) {
4168
4419
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
4169
4420
  }
4170
4421
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
4171
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
4422
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
4172
4423
  }
4173
4424
  function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
4174
4425
  const { body } = response;
4175
4426
  const key = keyBuilder$8(luvio, resourceParams);
4176
- luvio.storeIngest(key, ingest$9, body);
4427
+ luvio.storeIngest(key, ingest$a, body);
4177
4428
  const snapshot = luvio.storeLookup({
4178
4429
  recordId: key,
4179
4430
  node: select$u(),
@@ -4191,10 +4442,10 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4191
4442
  const key = keyBuilder$8(luvio, params);
4192
4443
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4193
4444
  const storeMetadataParams = {
4194
- ttl: TTL$9,
4445
+ ttl: TTL$a,
4195
4446
  namespace: keyPrefix,
4196
- version: VERSION$t,
4197
- representationName: RepresentationType$9
4447
+ version: VERSION$u,
4448
+ representationName: RepresentationType$a
4198
4449
  };
4199
4450
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4200
4451
  return errorSnapshot;
@@ -4220,14 +4471,14 @@ const getPromptTemplateVersions_ConfigPropertyMetadata = [
4220
4471
  generateParamConfigMetadata('includingVersionDetail', false, 1 /* QueryParameter */, 1 /* Boolean */),
4221
4472
  ];
4222
4473
  const getPromptTemplateVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPromptTemplateVersions_ConfigPropertyMetadata);
4223
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(getPromptTemplateVersions_ConfigPropertyMetadata);
4474
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(getPromptTemplateVersions_ConfigPropertyMetadata);
4224
4475
  function keyBuilder$7(luvio, config) {
4225
4476
  const resourceParams = createResourceParams$7(config);
4226
4477
  return keyBuilder$8(luvio, resourceParams);
4227
4478
  }
4228
4479
  function typeCheckConfig$7(untrustedConfig) {
4229
4480
  const config = {};
4230
- typeCheckConfig$j(untrustedConfig, config, getPromptTemplateVersions_ConfigPropertyMetadata);
4481
+ typeCheckConfig$k(untrustedConfig, config, getPromptTemplateVersions_ConfigPropertyMetadata);
4231
4482
  return config;
4232
4483
  }
4233
4484
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -4276,7 +4527,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
4276
4527
  });
4277
4528
  }
4278
4529
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
4279
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
4530
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
4280
4531
  }
4281
4532
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
4282
4533
  const { luvio, config } = context;
@@ -4302,15 +4553,15 @@ const getPromptTemplateVersionsAdapterFactory = (luvio) => function EinsteinLLM_
4302
4553
  };
4303
4554
 
4304
4555
  function select$t(luvio, params) {
4305
- return select$G();
4556
+ return select$I();
4306
4557
  }
4307
4558
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
4308
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
4559
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
4309
4560
  }
4310
4561
  function ingestSuccess$6(luvio, resourceParams, response) {
4311
4562
  const { body } = response;
4312
4563
  const key = keyBuilderFromType$2(luvio, body);
4313
- luvio.storeIngest(key, ingest$7, body);
4564
+ luvio.storeIngest(key, ingest$8, body);
4314
4565
  const snapshot = luvio.storeLookup({
4315
4566
  recordId: key,
4316
4567
  node: select$t(),
@@ -4347,10 +4598,10 @@ const createPromptTemplateVersion_ConfigPropertyMetadata = [
4347
4598
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
4348
4599
  ];
4349
4600
  const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPromptTemplateVersion_ConfigPropertyMetadata);
4350
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(createPromptTemplateVersion_ConfigPropertyMetadata);
4601
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(createPromptTemplateVersion_ConfigPropertyMetadata);
4351
4602
  function typeCheckConfig$6(untrustedConfig) {
4352
4603
  const config = {};
4353
- typeCheckConfig$j(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
4604
+ typeCheckConfig$k(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
4354
4605
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
4355
4606
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
4356
4607
  const untrustedConfig_childRelationships_object = {};
@@ -4426,18 +4677,18 @@ const createPromptTemplateVersionAdapterFactory = (luvio) => {
4426
4677
  };
4427
4678
 
4428
4679
  function select$s(luvio, params) {
4429
- return select$J();
4680
+ return select$L();
4430
4681
  }
4431
4682
  function keyBuilder$6(luvio, params) {
4432
4683
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ',' + 'versionId:' + params.urlParams.versionId + ')';
4433
4684
  }
4434
4685
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
4435
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
4686
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
4436
4687
  }
4437
4688
  function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
4438
4689
  const { body } = response;
4439
4690
  const key = keyBuilder$6(luvio, resourceParams);
4440
- luvio.storeIngest(key, ingest$9, body);
4691
+ luvio.storeIngest(key, ingest$a, body);
4441
4692
  const snapshot = luvio.storeLookup({
4442
4693
  recordId: key,
4443
4694
  node: select$s(),
@@ -4455,10 +4706,10 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4455
4706
  const key = keyBuilder$6(luvio, params);
4456
4707
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4457
4708
  const storeMetadataParams = {
4458
- ttl: TTL$9,
4709
+ ttl: TTL$a,
4459
4710
  namespace: keyPrefix,
4460
- version: VERSION$t,
4461
- representationName: RepresentationType$9
4711
+ version: VERSION$u,
4712
+ representationName: RepresentationType$a
4462
4713
  };
4463
4714
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4464
4715
  return errorSnapshot;
@@ -4485,14 +4736,14 @@ const getPromptTemplateVersion_ConfigPropertyMetadata = [
4485
4736
  generateParamConfigMetadata('includingVersionDetail', false, 1 /* QueryParameter */, 1 /* Boolean */),
4486
4737
  ];
4487
4738
  const getPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPromptTemplateVersion_ConfigPropertyMetadata);
4488
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(getPromptTemplateVersion_ConfigPropertyMetadata);
4739
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(getPromptTemplateVersion_ConfigPropertyMetadata);
4489
4740
  function keyBuilder$5(luvio, config) {
4490
4741
  const resourceParams = createResourceParams$5(config);
4491
4742
  return keyBuilder$6(luvio, resourceParams);
4492
4743
  }
4493
4744
  function typeCheckConfig$5(untrustedConfig) {
4494
4745
  const config = {};
4495
- typeCheckConfig$j(untrustedConfig, config, getPromptTemplateVersion_ConfigPropertyMetadata);
4746
+ typeCheckConfig$k(untrustedConfig, config, getPromptTemplateVersion_ConfigPropertyMetadata);
4496
4747
  return config;
4497
4748
  }
4498
4749
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -4541,7 +4792,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
4541
4792
  });
4542
4793
  }
4543
4794
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4544
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
4795
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
4545
4796
  }
4546
4797
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4547
4798
  const { luvio, config } = context;
@@ -4567,15 +4818,15 @@ const getPromptTemplateVersionAdapterFactory = (luvio) => function EinsteinLLM__
4567
4818
  };
4568
4819
 
4569
4820
  function select$r(luvio, params) {
4570
- return select$G();
4821
+ return select$I();
4571
4822
  }
4572
4823
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
4573
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
4824
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
4574
4825
  }
4575
4826
  function ingestSuccess$4(luvio, resourceParams, response) {
4576
4827
  const { body } = response;
4577
4828
  const key = keyBuilderFromType$2(luvio, body);
4578
- luvio.storeIngest(key, ingest$7, body);
4829
+ luvio.storeIngest(key, ingest$8, body);
4579
4830
  const snapshot = luvio.storeLookup({
4580
4831
  recordId: key,
4581
4832
  node: select$r(),
@@ -4613,10 +4864,10 @@ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
4613
4864
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
4614
4865
  ];
4615
4866
  const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updatePromptTemplateVersion_ConfigPropertyMetadata);
4616
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(updatePromptTemplateVersion_ConfigPropertyMetadata);
4867
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(updatePromptTemplateVersion_ConfigPropertyMetadata);
4617
4868
  function typeCheckConfig$4(untrustedConfig) {
4618
4869
  const config = {};
4619
- typeCheckConfig$j(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
4870
+ typeCheckConfig$k(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
4620
4871
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
4621
4872
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
4622
4873
  const untrustedConfig_childRelationships_object = {};
@@ -4692,15 +4943,15 @@ const updatePromptTemplateVersionAdapterFactory = (luvio) => {
4692
4943
  };
4693
4944
 
4694
4945
  function select$q(luvio, params) {
4695
- return select$G();
4946
+ return select$I();
4696
4947
  }
4697
4948
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4698
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
4949
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
4699
4950
  }
4700
4951
  function ingestSuccess$3(luvio, resourceParams, response) {
4701
4952
  const { body } = response;
4702
4953
  const key = keyBuilderFromType$2(luvio, body);
4703
- luvio.storeIngest(key, ingest$7, body);
4954
+ luvio.storeIngest(key, ingest$8, body);
4704
4955
  const snapshot = luvio.storeLookup({
4705
4956
  recordId: key,
4706
4957
  node: select$q(),
@@ -4736,10 +4987,10 @@ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata = [
4736
4987
  generateParamConfigMetadata('ignoreWarnings', false, 1 /* QueryParameter */, 1 /* Boolean */),
4737
4988
  ];
4738
4989
  const putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4739
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4990
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4740
4991
  function typeCheckConfig$3(untrustedConfig) {
4741
4992
  const config = {};
4742
- typeCheckConfig$j(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4993
+ typeCheckConfig$k(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
4743
4994
  return config;
4744
4995
  }
4745
4996
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -4815,7 +5066,7 @@ function validate$n(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
4815
5066
  if (obj.additionalConfig !== undefined) {
4816
5067
  const obj_additionalConfig = obj.additionalConfig;
4817
5068
  const path_additionalConfig = path + '.additionalConfig';
4818
- const referencepath_additionalConfigValidationError = validate$G(obj_additionalConfig, path_additionalConfig);
5069
+ const referencepath_additionalConfigValidationError = validate$H(obj_additionalConfig, path_additionalConfig);
4819
5070
  if (referencepath_additionalConfigValidationError !== null) {
4820
5071
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
4821
5072
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6351,7 +6602,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
6351
6602
  for (let i = 0; i < obj_generations.length; i++) {
6352
6603
  const obj_generations_item = obj_generations[i];
6353
6604
  const path_generations_item = path_generations + '[' + i + ']';
6354
- const referencepath_generations_itemValidationError = validate$C(obj_generations_item, path_generations_item);
6605
+ const referencepath_generations_itemValidationError = validate$D(obj_generations_item, path_generations_item);
6355
6606
  if (referencepath_generations_itemValidationError !== null) {
6356
6607
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
6357
6608
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6378,7 +6629,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
6378
6629
  const path_parameters = path + '.parameters';
6379
6630
  let obj_parameters_union0 = null;
6380
6631
  const obj_parameters_union0_error = (() => {
6381
- const referencepath_parametersValidationError = validate$B(obj_parameters, path_parameters);
6632
+ const referencepath_parametersValidationError = validate$C(obj_parameters, path_parameters);
6382
6633
  if (referencepath_parametersValidationError !== null) {
6383
6634
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
6384
6635
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6556,8 +6807,8 @@ const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
6556
6807
  const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$o();
6557
6808
  const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$m();
6558
6809
  const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$l();
6559
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$N();
6560
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
6810
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$P();
6811
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
6561
6812
  const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$g();
6562
6813
  const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$e();
6563
6814
  const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$d();
@@ -6719,7 +6970,7 @@ function equals$6(existing, incoming) {
6719
6970
  const existing_generations = existing.generations;
6720
6971
  const incoming_generations = incoming.generations;
6721
6972
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
6722
- if (!(equals$w(existing_generations_item, incoming_generations_item))) {
6973
+ if (!(equals$x(existing_generations_item, incoming_generations_item))) {
6723
6974
  return false;
6724
6975
  }
6725
6976
  });
@@ -6749,7 +7000,7 @@ function equals$6(existing, incoming) {
6749
7000
  if (!(existing_parameters === incoming_parameters
6750
7001
  || (existing_parameters != null &&
6751
7002
  incoming_parameters != null &&
6752
- equals$v(existing_parameters, incoming_parameters)))) {
7003
+ equals$w(existing_parameters, incoming_parameters)))) {
6753
7004
  return false;
6754
7005
  }
6755
7006
  const existing_performance = existing.performance;
@@ -6910,10 +7161,10 @@ const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
6910
7161
  generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
6911
7162
  ];
6912
7163
  const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
6913
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
7164
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
6914
7165
  function typeCheckConfig$2(untrustedConfig) {
6915
7166
  const config = {};
6916
- typeCheckConfig$j(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
7167
+ typeCheckConfig$k(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
6917
7168
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
6918
7169
  const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$n(untrustedConfig_promptTemplateGenerationsInput);
6919
7170
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
@@ -7332,14 +7583,14 @@ const getTemplateType_ConfigPropertyMetadata = [
7332
7583
  generateParamConfigMetadata('templateTypeName', true, 0 /* UrlParameter */, 0 /* String */),
7333
7584
  ];
7334
7585
  const getTemplateType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplateType_ConfigPropertyMetadata);
7335
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(getTemplateType_ConfigPropertyMetadata);
7586
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(getTemplateType_ConfigPropertyMetadata);
7336
7587
  function keyBuilder$2(luvio, config) {
7337
7588
  const resourceParams = createResourceParams$1(config);
7338
7589
  return keyBuilder$3(luvio, resourceParams);
7339
7590
  }
7340
7591
  function typeCheckConfig$1(untrustedConfig) {
7341
7592
  const config = {};
7342
- typeCheckConfig$j(untrustedConfig, config, getTemplateType_ConfigPropertyMetadata);
7593
+ typeCheckConfig$k(untrustedConfig, config, getTemplateType_ConfigPropertyMetadata);
7343
7594
  return config;
7344
7595
  }
7345
7596
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -7388,7 +7639,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
7388
7639
  });
7389
7640
  }
7390
7641
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
7391
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
7642
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
7392
7643
  }
7393
7644
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
7394
7645
  const { luvio, config } = context;
@@ -7726,14 +7977,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
7726
7977
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
7727
7978
  ];
7728
7979
  const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOutputLanguages_ConfigPropertyMetadata);
7729
- const createResourceParams = /*#__PURE__*/ createResourceParams$j(getOutputLanguages_ConfigPropertyMetadata);
7980
+ const createResourceParams = /*#__PURE__*/ createResourceParams$k(getOutputLanguages_ConfigPropertyMetadata);
7730
7981
  function keyBuilder(luvio, config) {
7731
7982
  const resourceParams = createResourceParams(config);
7732
7983
  return keyBuilder$1(luvio, resourceParams);
7733
7984
  }
7734
7985
  function typeCheckConfig(untrustedConfig) {
7735
7986
  const config = {};
7736
- typeCheckConfig$j(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
7987
+ typeCheckConfig$k(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
7737
7988
  return config;
7738
7989
  }
7739
7990
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -7782,7 +8033,7 @@ function buildNetworkSnapshot(luvio, config, options) {
7782
8033
  });
7783
8034
  }
7784
8035
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
7785
- return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
8036
+ return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
7786
8037
  }
7787
8038
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
7788
8039
  const { luvio, config } = context;
@@ -7807,4 +8058,4 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
7807
8058
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
7808
8059
  };
7809
8060
 
7810
- export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, createPromptTemplateAdapterFactory, createPromptTemplateVersionAdapterFactory, getDataProviderInstanceConfigAdapterFactory, getDataProviderTypeConfigsAdapterFactory, getDataProvidersAdapterFactory, getInputMappedDataProvidersAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplateVersionAdapterFactory, getPromptTemplateVersionsAdapterFactory, getPromptTemplatesAdapterFactory, getTemplateTypeAdapterFactory, putEinsteinPromptTemplateStatusAdapterFactory, putEinsteinPromptTemplateVersionStatusAdapterFactory, updatePromptTemplateVersionAdapterFactory };
8061
+ export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, createPromptTemplateAdapterFactory, createPromptTemplateVersionAdapterFactory, getDataProviderInstanceConfigAdapterFactory, getDataProviderTypeConfigsAdapterFactory, getDataProvidersAdapterFactory, getEinsteinPromptTemplateReferencesAdapterFactory, getInputMappedDataProvidersAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplateVersionAdapterFactory, getPromptTemplateVersionsAdapterFactory, getPromptTemplatesAdapterFactory, getTemplateTypeAdapterFactory, putEinsteinPromptTemplateStatusAdapterFactory, putEinsteinPromptTemplateVersionStatusAdapterFactory, updatePromptTemplateVersionAdapterFactory };