@salesforce/lds-adapters-service-einsteinllm 1.383.0 → 1.384.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$5, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d } 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$x(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
171
+ function validate$z(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$x(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
212
212
  return v_error === undefined ? null : v_error;
213
213
  }
214
214
 
215
- function validate$w(obj, path = 'WrappedListString') {
215
+ function validate$y(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$w(obj, path = 'WrappedListString') {
233
233
  return v_error === undefined ? null : v_error;
234
234
  }
235
235
 
236
- function validate$v(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
236
+ function validate$x(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$x(obj_additionalConfig, path_additionalConfig);
243
+ const referencepath_additionalConfigValidationError = validate$z(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$v(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
248
248
  }
249
249
  const obj_prompts = obj.prompts;
250
250
  const path_prompts = path + '.prompts';
251
- const referencepath_promptsValidationError = validate$w(obj_prompts, path_prompts);
251
+ const referencepath_promptsValidationError = validate$y(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$v(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- const VERSION$l = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
- function validate$u(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
268
+ const VERSION$o = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
+ function validate$w(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$u(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
287
287
  })();
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
- const select$w = function EinsteinLlmEmbeddingItemRepresentationSelect() {
290
+ const select$B = function EinsteinLlmEmbeddingItemRepresentationSelect() {
291
291
  return {
292
292
  kind: 'Fragment',
293
- version: VERSION$l,
293
+ version: VERSION$o,
294
294
  private: [],
295
295
  selections: [
296
296
  {
@@ -305,7 +305,7 @@ const select$w = function EinsteinLlmEmbeddingItemRepresentationSelect() {
305
305
  ]
306
306
  };
307
307
  };
308
- function equals$l(existing, incoming) {
308
+ function equals$o(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$l(existing, incoming) {
324
324
  return true;
325
325
  }
326
326
 
327
- const TTL$8 = 100;
328
- const VERSION$k = "d9873651f09d29764ef4d4231eb653d7";
329
- function validate$t(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
327
+ const TTL$9 = 100;
328
+ const VERSION$n = "d9873651f09d29764ef4d4231eb653d7";
329
+ function validate$v(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$t(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$u(obj_embeddings_item, path_embeddings_item);
342
+ const referencepath_embeddings_itemValidationError = validate$w(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$t(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
363
363
  })();
364
364
  return v_error === undefined ? null : v_error;
365
365
  }
366
- const RepresentationType$8 = 'EinsteinLlmEmbeddingsRepresentation';
367
- function normalize$8(input, existing, path, luvio, store, timestamp) {
366
+ const RepresentationType$9 = 'EinsteinLlmEmbeddingsRepresentation';
367
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
368
368
  return input;
369
369
  }
370
- const select$v = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$w();
370
+ const select$A = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$B();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$k,
374
+ version: VERSION$n,
375
375
  private: [],
376
376
  selections: [
377
377
  {
@@ -388,11 +388,11 @@ const select$v = function EinsteinLlmEmbeddingsRepresentationSelect() {
388
388
  ]
389
389
  };
390
390
  };
391
- function equals$k(existing, incoming) {
391
+ function equals$n(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$l(existing_embeddings_item, incoming_embeddings_item))) {
395
+ if (!(equals$o(existing_embeddings_item, incoming_embeddings_item))) {
396
396
  return false;
397
397
  }
398
398
  });
@@ -411,44 +411,44 @@ function equals$k(existing, incoming) {
411
411
  }
412
412
  return true;
413
413
  }
414
- const ingest$8 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
414
+ const ingest$9 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$t(input);
416
+ const validateError = validate$v(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
- const ttlToUse = TTL$8;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$k, RepresentationType$8, equals$k);
422
+ const ttlToUse = TTL$9;
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$n, RepresentationType$9, equals$n);
424
424
  return createLink(key);
425
425
  };
426
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
426
+ function getTypeCacheKeys$9(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$8,
431
+ representationName: RepresentationType$9,
432
432
  mergeable: false
433
433
  });
434
434
  }
435
435
 
436
- function select$u(luvio, params) {
437
- return select$v();
436
+ function select$z(luvio, params) {
437
+ return select$A();
438
438
  }
439
- function keyBuilder$d(luvio, params) {
439
+ function keyBuilder$f(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$a(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
442
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
443
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
444
444
  }
445
- function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
445
+ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
446
446
  const { body } = response;
447
- const key = keyBuilder$d(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest$8, body);
447
+ const key = keyBuilder$f(luvio, resourceParams);
448
+ luvio.storeIngest(key, ingest$9, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$u(),
451
+ node: select$z(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -459,19 +459,19 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
459
459
  deepFreeze(snapshot.data);
460
460
  return snapshot;
461
461
  }
462
- function ingestError$4(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$d(luvio, params);
462
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
463
+ const key = keyBuilder$f(luvio, params);
464
464
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
465
  const storeMetadataParams = {
466
- ttl: TTL$8,
466
+ ttl: TTL$9,
467
467
  namespace: keyPrefix,
468
- version: VERSION$k,
469
- representationName: RepresentationType$8
468
+ version: VERSION$n,
469
+ representationName: RepresentationType$9
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
472
  return errorSnapshot;
473
473
  }
474
- function createResourceRequest$a(config) {
474
+ function createResourceRequest$c(config) {
475
475
  const headers = {};
476
476
  return {
477
477
  baseUri: '/services/data/v65.0',
@@ -485,97 +485,97 @@ function createResourceRequest$a(config) {
485
485
  };
486
486
  }
487
487
 
488
- const adapterName$a = 'createEmbeddings';
488
+ const adapterName$c = 'createEmbeddings';
489
489
  const createEmbeddings_ConfigPropertyMetadata = [
490
490
  generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
491
491
  ];
492
- const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createEmbeddings_ConfigPropertyMetadata);
493
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(createEmbeddings_ConfigPropertyMetadata);
494
- function keyBuilder$c(luvio, config) {
495
- const resourceParams = createResourceParams$a(config);
496
- return keyBuilder$d(luvio, resourceParams);
492
+ const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createEmbeddings_ConfigPropertyMetadata);
493
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createEmbeddings_ConfigPropertyMetadata);
494
+ function keyBuilder$e(luvio, config) {
495
+ const resourceParams = createResourceParams$c(config);
496
+ return keyBuilder$f(luvio, resourceParams);
497
497
  }
498
- function typeCheckConfig$a(untrustedConfig) {
498
+ function typeCheckConfig$c(untrustedConfig) {
499
499
  const config = {};
500
500
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
501
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$v(untrustedConfig_embeddingsInput);
501
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$x(untrustedConfig_embeddingsInput);
502
502
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
503
503
  config.embeddingsInput = untrustedConfig_embeddingsInput;
504
504
  }
505
505
  return config;
506
506
  }
507
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
507
+ function validateAdapterConfig$c(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$a(untrustedConfig);
514
+ const config = typeCheckConfig$c(untrustedConfig);
515
515
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
516
516
  return null;
517
517
  }
518
518
  return config;
519
519
  }
520
- function adapterFragment$4(luvio, config) {
521
- createResourceParams$a(config);
522
- return select$u();
520
+ function adapterFragment$5(luvio, config) {
521
+ createResourceParams$c(config);
522
+ return select$z();
523
523
  }
524
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
525
- const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
524
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
525
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
526
526
  config,
527
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
527
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
528
528
  });
529
529
  return luvio.storeBroadcast().then(() => snapshot);
530
530
  }
531
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
532
- const snapshot = ingestError$4(luvio, resourceParams, response, {
531
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
532
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
533
533
  config,
534
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
534
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
535
535
  });
536
536
  return luvio.storeBroadcast().then(() => snapshot);
537
537
  }
538
- function buildNetworkSnapshot$a(luvio, config, options) {
539
- const resourceParams = createResourceParams$a(config);
540
- const request = createResourceRequest$a(resourceParams);
538
+ function buildNetworkSnapshot$c(luvio, config, options) {
539
+ const resourceParams = createResourceParams$c(config);
540
+ const request = createResourceRequest$c(resourceParams);
541
541
  return luvio.dispatchResourceRequest(request, options)
542
542
  .then((response) => {
543
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
543
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
544
544
  const cache = new StoreKeyMap();
545
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
545
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
546
546
  return cache;
547
547
  });
548
548
  }, (response) => {
549
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
549
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
550
550
  });
551
551
  }
552
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
553
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, 'get', false);
552
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
553
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, 'get', false);
554
554
  }
555
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
555
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
556
556
  const { luvio, config } = context;
557
557
  const selector = {
558
- recordId: keyBuilder$c(luvio, config),
559
- node: adapterFragment$4(luvio, config),
558
+ recordId: keyBuilder$e(luvio, config),
559
+ node: adapterFragment$5(luvio, config),
560
560
  variables: {},
561
561
  };
562
562
  const cacheSnapshot = storeLookup(selector, {
563
563
  config,
564
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
564
+ resolve: () => buildNetworkSnapshot$c(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$a(untrustedConfig, createEmbeddings_ConfigPropertyNames);
569
+ const config = validateAdapterConfig$c(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$4, buildNetworkSnapshotCachePolicy$4);
575
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
576
576
  };
577
577
 
578
- function validate$s(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
578
+ function validate$u(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$s(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
622
622
  return v_error === undefined ? null : v_error;
623
623
  }
624
624
 
625
- const TTL$7 = 100;
626
- const VERSION$j = "4033328f65865dd5d80c68a7573a4522";
627
- function validate$r(obj, path = 'EinsteinLlmFeedbackRepresentation') {
625
+ const TTL$8 = 100;
626
+ const VERSION$m = "4033328f65865dd5d80c68a7573a4522";
627
+ function validate$t(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$r(obj, path = 'EinsteinLlmFeedbackRepresentation') {
637
637
  })();
638
638
  return v_error === undefined ? null : v_error;
639
639
  }
640
- const RepresentationType$7 = 'EinsteinLlmFeedbackRepresentation';
641
- function keyBuilder$b(luvio, config) {
642
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.message;
640
+ const RepresentationType$8 = 'EinsteinLlmFeedbackRepresentation';
641
+ function keyBuilder$d(luvio, config) {
642
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
643
643
  }
644
644
  function keyBuilderFromType$3(luvio, object) {
645
645
  const keyParams = {
646
646
  message: object.message
647
647
  };
648
- return keyBuilder$b(luvio, keyParams);
648
+ return keyBuilder$d(luvio, keyParams);
649
649
  }
650
- function normalize$7(input, existing, path, luvio, store, timestamp) {
650
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
651
651
  return input;
652
652
  }
653
- const select$t = function EinsteinLlmFeedbackRepresentationSelect() {
653
+ const select$y = function EinsteinLlmFeedbackRepresentationSelect() {
654
654
  return {
655
655
  kind: 'Fragment',
656
- version: VERSION$j,
656
+ version: VERSION$m,
657
657
  private: [],
658
658
  selections: [
659
659
  {
@@ -663,7 +663,7 @@ const select$t = function EinsteinLlmFeedbackRepresentationSelect() {
663
663
  ]
664
664
  };
665
665
  };
666
- function equals$j(existing, incoming) {
666
+ function equals$m(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$j(existing, incoming) {
671
671
  }
672
672
  return true;
673
673
  }
674
- const ingest$7 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
674
+ const ingest$8 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
675
675
  if (process.env.NODE_ENV !== 'production') {
676
- const validateError = validate$r(input);
676
+ const validateError = validate$t(input);
677
677
  if (validateError !== null) {
678
678
  throw validateError;
679
679
  }
680
680
  }
681
681
  const key = keyBuilderFromType$3(luvio, input);
682
- const ttlToUse = TTL$7;
683
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$j, RepresentationType$7, equals$j);
682
+ const ttlToUse = TTL$8;
683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$m, RepresentationType$8, equals$m);
684
684
  return createLink(key);
685
685
  };
686
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
686
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
687
687
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
688
688
  const rootKey = keyBuilderFromType$3(luvio, input);
689
689
  rootKeySet.set(rootKey, {
690
690
  namespace: keyPrefix,
691
- representationName: RepresentationType$7,
691
+ representationName: RepresentationType$8,
692
692
  mergeable: false
693
693
  });
694
694
  }
695
695
 
696
- function select$s(luvio, params) {
697
- return select$t();
696
+ function select$x(luvio, params) {
697
+ return select$y();
698
698
  }
699
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
700
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
699
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
700
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
701
701
  }
702
- function ingestSuccess$9(luvio, resourceParams, response) {
702
+ function ingestSuccess$b(luvio, resourceParams, response) {
703
703
  const { body } = response;
704
704
  const key = keyBuilderFromType$3(luvio, body);
705
- luvio.storeIngest(key, ingest$7, body);
705
+ luvio.storeIngest(key, ingest$8, body);
706
706
  const snapshot = luvio.storeLookup({
707
707
  recordId: key,
708
- node: select$s(),
708
+ node: select$x(),
709
709
  variables: {},
710
710
  });
711
711
  if (process.env.NODE_ENV !== 'production') {
@@ -716,7 +716,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
716
716
  deepFreeze(snapshot.data);
717
717
  return snapshot;
718
718
  }
719
- function createResourceRequest$9(config) {
719
+ function createResourceRequest$b(config) {
720
720
  const headers = {};
721
721
  return {
722
722
  baseUri: '/services/data/v65.0',
@@ -730,45 +730,45 @@ function createResourceRequest$9(config) {
730
730
  };
731
731
  }
732
732
 
733
- const adapterName$9 = 'createFeedback';
733
+ const adapterName$b = 'createFeedback';
734
734
  const createFeedback_ConfigPropertyMetadata = [
735
735
  generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
736
736
  ];
737
- const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createFeedback_ConfigPropertyMetadata);
738
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createFeedback_ConfigPropertyMetadata);
739
- function typeCheckConfig$9(untrustedConfig) {
737
+ const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createFeedback_ConfigPropertyMetadata);
738
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createFeedback_ConfigPropertyMetadata);
739
+ function typeCheckConfig$b(untrustedConfig) {
740
740
  const config = {};
741
741
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
742
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$s(untrustedConfig_feedbackInput);
742
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$u(untrustedConfig_feedbackInput);
743
743
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
744
744
  config.feedbackInput = untrustedConfig_feedbackInput;
745
745
  }
746
746
  return config;
747
747
  }
748
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
748
+ function validateAdapterConfig$b(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$9(untrustedConfig);
755
+ const config = typeCheckConfig$b(untrustedConfig);
756
756
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
757
757
  return null;
758
758
  }
759
759
  return config;
760
760
  }
761
- function buildNetworkSnapshot$9(luvio, config, options) {
762
- const resourceParams = createResourceParams$9(config);
763
- const request = createResourceRequest$9(resourceParams);
761
+ function buildNetworkSnapshot$b(luvio, config, options) {
762
+ const resourceParams = createResourceParams$b(config);
763
+ const request = createResourceRequest$b(resourceParams);
764
764
  return luvio.dispatchResourceRequest(request, options)
765
765
  .then((response) => {
766
766
  return luvio.handleSuccessResponse(() => {
767
- const snapshot = ingestSuccess$9(luvio, resourceParams, response);
767
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
768
768
  return luvio.storeBroadcast().then(() => snapshot);
769
769
  }, () => {
770
770
  const cache = new StoreKeyMap();
771
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
771
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
772
772
  return cache;
773
773
  });
774
774
  }, (response) => {
@@ -778,16 +778,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
778
778
  }
779
779
  const createFeedbackAdapterFactory = (luvio) => {
780
780
  return function createFeedback(untrustedConfig) {
781
- const config = validateAdapterConfig$9(untrustedConfig, createFeedback_ConfigPropertyNames);
781
+ const config = validateAdapterConfig$b(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$9(luvio, config);
786
+ return buildNetworkSnapshot$b(luvio, config);
787
787
  };
788
788
  };
789
789
 
790
- function validate$q(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
790
+ function validate$s(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$q(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
870
870
  return v_error === undefined ? null : v_error;
871
871
  }
872
872
 
873
- function validate$p(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
873
+ function validate$r(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$p(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$q(obj_additionalConfig, path_additionalConfig);
881
+ const referencepath_additionalConfigValidationError = validate$s(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$p(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
901
901
  return v_error === undefined ? null : v_error;
902
902
  }
903
903
 
904
- const VERSION$i = "9ebac74e6f964c363d5fd1913df363af";
905
- function validate$o(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
904
+ const VERSION$l = "9ebac74e6f964c363d5fd1913df363af";
905
+ function validate$q(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$o(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
938
938
  })();
939
939
  return v_error === undefined ? null : v_error;
940
940
  }
941
- const select$r = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
941
+ const select$w = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
942
942
  return {
943
943
  kind: 'Fragment',
944
- version: VERSION$i,
944
+ version: VERSION$l,
945
945
  private: [],
946
946
  selections: [
947
947
  {
@@ -952,7 +952,7 @@ const select$r = function EinsteinLlmGenerationsContentQualityRepresentationSele
952
952
  ]
953
953
  };
954
954
  };
955
- function equals$i(existing, incoming) {
955
+ function equals$l(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$i(existing, incoming) {
969
969
  return true;
970
970
  }
971
971
 
972
- const VERSION$h = "77af44a252cb5b45b4d9a8101368d2aa";
973
- function validate$n(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
972
+ const VERSION$k = "77af44a252cb5b45b4d9a8101368d2aa";
973
+ function validate$p(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$n(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1174
1174
  })();
1175
1175
  return v_error === undefined ? null : v_error;
1176
1176
  }
1177
- const select$q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1177
+ const select$v = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1178
1178
  return {
1179
1179
  kind: 'Fragment',
1180
- version: VERSION$h,
1180
+ version: VERSION$k,
1181
1181
  private: [],
1182
1182
  selections: [
1183
1183
  {
@@ -1218,7 +1218,7 @@ const select$q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1218
1218
  ]
1219
1219
  };
1220
1220
  };
1221
- function equals$h(existing, incoming) {
1221
+ function equals$k(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$h(existing, incoming) {
1313
1313
  return true;
1314
1314
  }
1315
1315
 
1316
- const VERSION$g = "4a07778ff6c595d91c575188146647a1";
1317
- function validate$m(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1316
+ const VERSION$j = "4a07778ff6c595d91c575188146647a1";
1317
+ function validate$o(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$m(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$o(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1327
+ const referencepath_contentQualityRepresentationValidationError = validate$q(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$m(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$n(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1375
+ const referencepath_safetyScoreRepresentationValidationError = validate$p(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$m(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1406
1406
  })();
1407
1407
  return v_error === undefined ? null : v_error;
1408
1408
  }
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();
1409
+ const select$u = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$w();
1411
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$v();
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$g,
1414
+ version: VERSION$j,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1448,7 +1448,7 @@ const select$p = function EinsteinLlmGenerationItemRepresentationSelect() {
1448
1448
  ]
1449
1449
  };
1450
1450
  };
1451
- function equals$g(existing, incoming) {
1451
+ function equals$j(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$g(existing, incoming) {
1489
1489
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1490
1490
  || (existing_contentQualityRepresentation != null &&
1491
1491
  incoming_contentQualityRepresentation != null &&
1492
- equals$i(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1492
+ equals$l(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1493
1493
  return false;
1494
1494
  }
1495
1495
  }
@@ -1505,15 +1505,15 @@ function equals$g(existing, incoming) {
1505
1505
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1506
1506
  || (existing_safetyScoreRepresentation != null &&
1507
1507
  incoming_safetyScoreRepresentation != null &&
1508
- equals$h(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1508
+ equals$k(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  }
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$f = "4656c961c9d093a9e206c1db7d4de0b0";
1516
- function validate$l(obj, path = 'WrappedMap') {
1515
+ const VERSION$i = "4656c961c9d093a9e206c1db7d4de0b0";
1516
+ function validate$n(obj, path = 'WrappedMap') {
1517
1517
  const v_error = (() => {
1518
1518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1519
1519
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1535,15 +1535,15 @@ function validate$l(obj, path = 'WrappedMap') {
1535
1535
  })();
1536
1536
  return v_error === undefined ? null : v_error;
1537
1537
  }
1538
- const select$o = function WrappedMapSelect() {
1538
+ const select$t = function WrappedMapSelect() {
1539
1539
  return {
1540
1540
  kind: 'Fragment',
1541
- version: VERSION$f,
1541
+ version: VERSION$i,
1542
1542
  private: [],
1543
1543
  selections: []
1544
1544
  };
1545
1545
  };
1546
- function equals$f(existing, incoming) {
1546
+ function equals$i(existing, incoming) {
1547
1547
  const existing_wrappedMap = existing.wrappedMap;
1548
1548
  const incoming_wrappedMap = incoming.wrappedMap;
1549
1549
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1554,9 +1554,9 @@ function equals$f(existing, incoming) {
1554
1554
  return true;
1555
1555
  }
1556
1556
 
1557
- const TTL$6 = 100;
1558
- const VERSION$e = "d8abd72a42e842b253da1c38954dafbc";
1559
- function validate$k(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1557
+ const TTL$7 = 100;
1558
+ const VERSION$h = "d8abd72a42e842b253da1c38954dafbc";
1559
+ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1560
1560
  const v_error = (() => {
1561
1561
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1562
1562
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1569,7 +1569,7 @@ function validate$k(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1569
1569
  for (let i = 0; i < obj_generations.length; i++) {
1570
1570
  const obj_generations_item = obj_generations[i];
1571
1571
  const path_generations_item = path_generations + '[' + i + ']';
1572
- const referencepath_generations_itemValidationError = validate$m(obj_generations_item, path_generations_item);
1572
+ const referencepath_generations_itemValidationError = validate$o(obj_generations_item, path_generations_item);
1573
1573
  if (referencepath_generations_itemValidationError !== null) {
1574
1574
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1575
1575
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1580,7 +1580,7 @@ function validate$k(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1580
1580
  const path_parameters = path + '.parameters';
1581
1581
  let obj_parameters_union0 = null;
1582
1582
  const obj_parameters_union0_error = (() => {
1583
- const referencepath_parametersValidationError = validate$l(obj_parameters, path_parameters);
1583
+ const referencepath_parametersValidationError = validate$n(obj_parameters, path_parameters);
1584
1584
  if (referencepath_parametersValidationError !== null) {
1585
1585
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1586
1586
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1639,25 +1639,25 @@ function validate$k(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1639
1639
  })();
1640
1640
  return v_error === undefined ? null : v_error;
1641
1641
  }
1642
- const RepresentationType$6 = 'EinsteinLlmGenerationsRepresentation';
1643
- function keyBuilder$a(luvio, config) {
1644
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.requestId;
1642
+ const RepresentationType$7 = 'EinsteinLlmGenerationsRepresentation';
1643
+ function keyBuilder$c(luvio, config) {
1644
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.requestId;
1645
1645
  }
1646
1646
  function keyBuilderFromType$2(luvio, object) {
1647
1647
  const keyParams = {
1648
1648
  requestId: object.requestId
1649
1649
  };
1650
- return keyBuilder$a(luvio, keyParams);
1650
+ return keyBuilder$c(luvio, keyParams);
1651
1651
  }
1652
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1652
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1653
1653
  return input;
1654
1654
  }
1655
- const select$n = function EinsteinLlmGenerationsRepresentationSelect() {
1656
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$p();
1657
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$o();
1655
+ const select$s = function EinsteinLlmGenerationsRepresentationSelect() {
1656
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$u();
1657
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$t();
1658
1658
  return {
1659
1659
  kind: 'Fragment',
1660
- version: VERSION$e,
1660
+ version: VERSION$h,
1661
1661
  private: [],
1662
1662
  selections: [
1663
1663
  {
@@ -1683,7 +1683,7 @@ const select$n = function EinsteinLlmGenerationsRepresentationSelect() {
1683
1683
  ]
1684
1684
  };
1685
1685
  };
1686
- function equals$e(existing, incoming) {
1686
+ function equals$h(existing, incoming) {
1687
1687
  const existing_requestId = existing.requestId;
1688
1688
  const incoming_requestId = incoming.requestId;
1689
1689
  if (!(existing_requestId === incoming_requestId)) {
@@ -1692,7 +1692,7 @@ function equals$e(existing, incoming) {
1692
1692
  const existing_generations = existing.generations;
1693
1693
  const incoming_generations = incoming.generations;
1694
1694
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1695
- if (!(equals$g(existing_generations_item, incoming_generations_item))) {
1695
+ if (!(equals$j(existing_generations_item, incoming_generations_item))) {
1696
1696
  return false;
1697
1697
  }
1698
1698
  });
@@ -1704,7 +1704,7 @@ function equals$e(existing, incoming) {
1704
1704
  if (!(existing_parameters === incoming_parameters
1705
1705
  || (existing_parameters != null &&
1706
1706
  incoming_parameters != null &&
1707
- equals$f(existing_parameters, incoming_parameters)))) {
1707
+ equals$i(existing_parameters, incoming_parameters)))) {
1708
1708
  return false;
1709
1709
  }
1710
1710
  const existing_prompt = existing.prompt;
@@ -1714,41 +1714,41 @@ function equals$e(existing, incoming) {
1714
1714
  }
1715
1715
  return true;
1716
1716
  }
1717
- const ingest$6 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1717
+ const ingest$7 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1718
1718
  if (process.env.NODE_ENV !== 'production') {
1719
- const validateError = validate$k(input);
1719
+ const validateError = validate$m(input);
1720
1720
  if (validateError !== null) {
1721
1721
  throw validateError;
1722
1722
  }
1723
1723
  }
1724
1724
  const key = keyBuilderFromType$2(luvio, input);
1725
- const ttlToUse = TTL$6;
1726
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$e, RepresentationType$6, equals$e);
1725
+ const ttlToUse = TTL$7;
1726
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$h, RepresentationType$7, equals$h);
1727
1727
  return createLink(key);
1728
1728
  };
1729
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1729
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1730
1730
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1731
1731
  const rootKey = keyBuilderFromType$2(luvio, input);
1732
1732
  rootKeySet.set(rootKey, {
1733
1733
  namespace: keyPrefix,
1734
- representationName: RepresentationType$6,
1734
+ representationName: RepresentationType$7,
1735
1735
  mergeable: false
1736
1736
  });
1737
1737
  }
1738
1738
 
1739
- function select$m(luvio, params) {
1740
- return select$n();
1739
+ function select$r(luvio, params) {
1740
+ return select$s();
1741
1741
  }
1742
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1743
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
1742
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1743
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1744
1744
  }
1745
- function ingestSuccess$8(luvio, resourceParams, response) {
1745
+ function ingestSuccess$a(luvio, resourceParams, response) {
1746
1746
  const { body } = response;
1747
1747
  const key = keyBuilderFromType$2(luvio, body);
1748
- luvio.storeIngest(key, ingest$6, body);
1748
+ luvio.storeIngest(key, ingest$7, body);
1749
1749
  const snapshot = luvio.storeLookup({
1750
1750
  recordId: key,
1751
- node: select$m(),
1751
+ node: select$r(),
1752
1752
  variables: {},
1753
1753
  });
1754
1754
  if (process.env.NODE_ENV !== 'production') {
@@ -1759,7 +1759,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
1759
1759
  deepFreeze(snapshot.data);
1760
1760
  return snapshot;
1761
1761
  }
1762
- function createResourceRequest$8(config) {
1762
+ function createResourceRequest$a(config) {
1763
1763
  const headers = {};
1764
1764
  return {
1765
1765
  baseUri: '/services/data/v65.0',
@@ -1773,45 +1773,45 @@ function createResourceRequest$8(config) {
1773
1773
  };
1774
1774
  }
1775
1775
 
1776
- const adapterName$8 = 'createGenerations';
1776
+ const adapterName$a = 'createGenerations';
1777
1777
  const createGenerations_ConfigPropertyMetadata = [
1778
1778
  generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
1779
1779
  ];
1780
- const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createGenerations_ConfigPropertyMetadata);
1781
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(createGenerations_ConfigPropertyMetadata);
1782
- function typeCheckConfig$8(untrustedConfig) {
1780
+ const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createGenerations_ConfigPropertyMetadata);
1781
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(createGenerations_ConfigPropertyMetadata);
1782
+ function typeCheckConfig$a(untrustedConfig) {
1783
1783
  const config = {};
1784
1784
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1785
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$p(untrustedConfig_generationsInput);
1785
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$r(untrustedConfig_generationsInput);
1786
1786
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1787
1787
  config.generationsInput = untrustedConfig_generationsInput;
1788
1788
  }
1789
1789
  return config;
1790
1790
  }
1791
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1791
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1792
1792
  if (!untrustedIsObject(untrustedConfig)) {
1793
1793
  return null;
1794
1794
  }
1795
1795
  if (process.env.NODE_ENV !== 'production') {
1796
1796
  validateConfig(untrustedConfig, configPropertyNames);
1797
1797
  }
1798
- const config = typeCheckConfig$8(untrustedConfig);
1798
+ const config = typeCheckConfig$a(untrustedConfig);
1799
1799
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1800
1800
  return null;
1801
1801
  }
1802
1802
  return config;
1803
1803
  }
1804
- function buildNetworkSnapshot$8(luvio, config, options) {
1805
- const resourceParams = createResourceParams$8(config);
1806
- const request = createResourceRequest$8(resourceParams);
1804
+ function buildNetworkSnapshot$a(luvio, config, options) {
1805
+ const resourceParams = createResourceParams$a(config);
1806
+ const request = createResourceRequest$a(resourceParams);
1807
1807
  return luvio.dispatchResourceRequest(request, options)
1808
1808
  .then((response) => {
1809
1809
  return luvio.handleSuccessResponse(() => {
1810
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1810
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1811
1811
  return luvio.storeBroadcast().then(() => snapshot);
1812
1812
  }, () => {
1813
1813
  const cache = new StoreKeyMap();
1814
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1814
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1815
1815
  return cache;
1816
1816
  });
1817
1817
  }, (response) => {
@@ -1821,16 +1821,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1821
1821
  }
1822
1822
  const createGenerationsAdapterFactory = (luvio) => {
1823
1823
  return function createGenerations(untrustedConfig) {
1824
- const config = validateAdapterConfig$8(untrustedConfig, createGenerations_ConfigPropertyNames);
1824
+ const config = validateAdapterConfig$a(untrustedConfig, createGenerations_ConfigPropertyNames);
1825
1825
  // Invalid or incomplete config
1826
1826
  if (config === null) {
1827
1827
  throw new Error('Invalid config for "createGenerations"');
1828
1828
  }
1829
- return buildNetworkSnapshot$8(luvio, config);
1829
+ return buildNetworkSnapshot$a(luvio, config);
1830
1830
  };
1831
1831
  };
1832
1832
 
1833
- function validate$j(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1833
+ function validate$l(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1834
1834
  const v_error = (() => {
1835
1835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1836
1836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1890,9 +1890,9 @@ function validate$j(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1890
1890
  return v_error === undefined ? null : v_error;
1891
1891
  }
1892
1892
 
1893
- const TTL$5 = 100;
1894
- const VERSION$d = "2d1628544b54fc1701aa9b4eff05127b";
1895
- function validate$i(obj, path = 'EinsteinPromptRecordRepresentation') {
1893
+ const TTL$6 = 100;
1894
+ const VERSION$g = "2d1628544b54fc1701aa9b4eff05127b";
1895
+ function validate$k(obj, path = 'EinsteinPromptRecordRepresentation') {
1896
1896
  const v_error = (() => {
1897
1897
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1898
1898
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1921,7 +1921,7 @@ function validate$i(obj, path = 'EinsteinPromptRecordRepresentation') {
1921
1921
  for (let i = 0; i < obj_childRelationships_prop.length; i++) {
1922
1922
  const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
1923
1923
  const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
1924
- const referencepath_childRelationships_prop_itemValidationError = validate$i(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1924
+ const referencepath_childRelationships_prop_itemValidationError = validate$k(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1925
1925
  if (referencepath_childRelationships_prop_itemValidationError !== null) {
1926
1926
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
1927
1927
  message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1941,7 +1941,7 @@ function validate$i(obj, path = 'EinsteinPromptRecordRepresentation') {
1941
1941
  const key = obj_fields_keys[i];
1942
1942
  const obj_fields_prop = obj_fields[key];
1943
1943
  const path_fields_prop = path_fields + '["' + key + '"]';
1944
- const referencepath_fields_propValidationError = validate$j(obj_fields_prop, path_fields_prop);
1944
+ const referencepath_fields_propValidationError = validate$l(obj_fields_prop, path_fields_prop);
1945
1945
  if (referencepath_fields_propValidationError !== null) {
1946
1946
  let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
1947
1947
  message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1959,49 +1959,49 @@ function validate$i(obj, path = 'EinsteinPromptRecordRepresentation') {
1959
1959
  })();
1960
1960
  return v_error === undefined ? null : v_error;
1961
1961
  }
1962
- const RepresentationType$5 = 'EinsteinPromptRecordRepresentation';
1963
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1962
+ const RepresentationType$6 = 'EinsteinPromptRecordRepresentation';
1963
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1964
1964
  return input;
1965
1965
  }
1966
- const select$l = function EinsteinPromptRecordRepresentationSelect() {
1966
+ const select$q = function EinsteinPromptRecordRepresentationSelect() {
1967
1967
  return {
1968
1968
  kind: 'Fragment',
1969
- version: VERSION$d,
1969
+ version: VERSION$g,
1970
1970
  private: [],
1971
1971
  opaque: true
1972
1972
  };
1973
1973
  };
1974
- function equals$d(existing, incoming) {
1974
+ function equals$g(existing, incoming) {
1975
1975
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1976
1976
  return false;
1977
1977
  }
1978
1978
  return true;
1979
1979
  }
1980
- const ingest$5 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
1980
+ const ingest$6 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
1981
1981
  if (process.env.NODE_ENV !== 'production') {
1982
- const validateError = validate$i(input);
1982
+ const validateError = validate$k(input);
1983
1983
  if (validateError !== null) {
1984
1984
  throw validateError;
1985
1985
  }
1986
1986
  }
1987
1987
  const key = path.fullPath;
1988
- const ttlToUse = TTL$5;
1989
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$d, RepresentationType$5, equals$d);
1988
+ const ttlToUse = TTL$6;
1989
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$g, RepresentationType$6, equals$g);
1990
1990
  return createLink(key);
1991
1991
  };
1992
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1992
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1993
1993
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1994
1994
  const rootKey = fullPathFactory();
1995
1995
  rootKeySet.set(rootKey, {
1996
1996
  namespace: keyPrefix,
1997
- representationName: RepresentationType$5,
1997
+ representationName: RepresentationType$6,
1998
1998
  mergeable: false
1999
1999
  });
2000
2000
  }
2001
2001
 
2002
- const TTL$4 = 100;
2003
- const VERSION$c = "5fd7b8a03d155ba601bcb4ee725e0893";
2004
- function validate$h(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2002
+ const TTL$5 = 100;
2003
+ const VERSION$f = "5fd7b8a03d155ba601bcb4ee725e0893";
2004
+ function validate$j(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2005
2005
  const v_error = (() => {
2006
2006
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2007
2007
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2020,7 +2020,7 @@ function validate$h(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2020
2020
  for (let i = 0; i < obj_promptRecords.length; i++) {
2021
2021
  const obj_promptRecords_item = obj_promptRecords[i];
2022
2022
  const path_promptRecords_item = path_promptRecords + '[' + i + ']';
2023
- const referencepath_promptRecords_itemValidationError = validate$i(obj_promptRecords_item, path_promptRecords_item);
2023
+ const referencepath_promptRecords_itemValidationError = validate$k(obj_promptRecords_item, path_promptRecords_item);
2024
2024
  if (referencepath_promptRecords_itemValidationError !== null) {
2025
2025
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
2026
2026
  message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2036,62 +2036,62 @@ function validate$h(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2036
2036
  })();
2037
2037
  return v_error === undefined ? null : v_error;
2038
2038
  }
2039
- const RepresentationType$4 = 'EinsteinPromptRecordCollectionOutputRepresentation';
2040
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2039
+ const RepresentationType$5 = 'EinsteinPromptRecordCollectionOutputRepresentation';
2040
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2041
2041
  return input;
2042
2042
  }
2043
- const select$k = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2043
+ const select$p = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2044
2044
  return {
2045
2045
  kind: 'Fragment',
2046
- version: VERSION$c,
2046
+ version: VERSION$f,
2047
2047
  private: [],
2048
2048
  opaque: true
2049
2049
  };
2050
2050
  };
2051
- function equals$c(existing, incoming) {
2051
+ function equals$f(existing, incoming) {
2052
2052
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2053
2053
  return false;
2054
2054
  }
2055
2055
  return true;
2056
2056
  }
2057
- const ingest$4 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2057
+ const ingest$5 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2058
2058
  if (process.env.NODE_ENV !== 'production') {
2059
- const validateError = validate$h(input);
2059
+ const validateError = validate$j(input);
2060
2060
  if (validateError !== null) {
2061
2061
  throw validateError;
2062
2062
  }
2063
2063
  }
2064
2064
  const key = path.fullPath;
2065
- const ttlToUse = TTL$4;
2066
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$c, RepresentationType$4, equals$c);
2065
+ const ttlToUse = TTL$5;
2066
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$f, RepresentationType$5, equals$f);
2067
2067
  return createLink(key);
2068
2068
  };
2069
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2069
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2070
2070
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2071
2071
  const rootKey = fullPathFactory();
2072
2072
  rootKeySet.set(rootKey, {
2073
2073
  namespace: keyPrefix,
2074
- representationName: RepresentationType$4,
2074
+ representationName: RepresentationType$5,
2075
2075
  mergeable: false
2076
2076
  });
2077
2077
  }
2078
2078
 
2079
- function select$j(luvio, params) {
2080
- return select$k();
2079
+ function select$o(luvio, params) {
2080
+ return select$p();
2081
2081
  }
2082
- function keyBuilder$9(luvio, params) {
2082
+ function keyBuilder$b(luvio, params) {
2083
2083
  return keyPrefix + '::EinsteinPromptRecordCollectionOutputRepresentation:(' + 'isActive:' + params.queryParams.isActive + ',' + 'fields:' + params.queryParams.fields + ',' + 'relatedEntity:' + params.queryParams.relatedEntity + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageLimit:' + params.queryParams.pageLimit + ',' + 'type:' + params.queryParams.type + ',' + 'query:' + params.queryParams.query + ',' + 'sortBy:' + params.queryParams.sortBy + ')';
2084
2084
  }
2085
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2086
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
2085
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2086
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
2087
2087
  }
2088
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2088
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2089
2089
  const { body } = response;
2090
- const key = keyBuilder$9(luvio, resourceParams);
2091
- luvio.storeIngest(key, ingest$4, body);
2090
+ const key = keyBuilder$b(luvio, resourceParams);
2091
+ luvio.storeIngest(key, ingest$5, body);
2092
2092
  const snapshot = luvio.storeLookup({
2093
2093
  recordId: key,
2094
- node: select$j(),
2094
+ node: select$o(),
2095
2095
  variables: {},
2096
2096
  }, snapshotRefresh);
2097
2097
  if (process.env.NODE_ENV !== 'production') {
@@ -2102,19 +2102,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2102
2102
  deepFreeze(snapshot.data);
2103
2103
  return snapshot;
2104
2104
  }
2105
- function ingestError$3(luvio, params, error, snapshotRefresh) {
2106
- const key = keyBuilder$9(luvio, params);
2105
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2106
+ const key = keyBuilder$b(luvio, params);
2107
2107
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2108
2108
  const storeMetadataParams = {
2109
- ttl: TTL$4,
2109
+ ttl: TTL$5,
2110
2110
  namespace: keyPrefix,
2111
- version: VERSION$c,
2112
- representationName: RepresentationType$4
2111
+ version: VERSION$f,
2112
+ representationName: RepresentationType$5
2113
2113
  };
2114
2114
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2115
2115
  return errorSnapshot;
2116
2116
  }
2117
- function createResourceRequest$7(config) {
2117
+ function createResourceRequest$9(config) {
2118
2118
  const headers = {};
2119
2119
  return {
2120
2120
  baseUri: '/services/data/v65.0',
@@ -2128,7 +2128,7 @@ function createResourceRequest$7(config) {
2128
2128
  };
2129
2129
  }
2130
2130
 
2131
- const adapterName$7 = 'getPromptTemplates';
2131
+ const adapterName$9 = 'getPromptTemplates';
2132
2132
  const getPromptTemplates_ConfigPropertyMetadata = [
2133
2133
  generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2134
2134
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
@@ -2139,91 +2139,91 @@ const getPromptTemplates_ConfigPropertyMetadata = [
2139
2139
  generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
2140
2140
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2141
2141
  ];
2142
- const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPromptTemplates_ConfigPropertyMetadata);
2143
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getPromptTemplates_ConfigPropertyMetadata);
2144
- function keyBuilder$8(luvio, config) {
2145
- const resourceParams = createResourceParams$7(config);
2146
- return keyBuilder$9(luvio, resourceParams);
2142
+ const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getPromptTemplates_ConfigPropertyMetadata);
2143
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getPromptTemplates_ConfigPropertyMetadata);
2144
+ function keyBuilder$a(luvio, config) {
2145
+ const resourceParams = createResourceParams$9(config);
2146
+ return keyBuilder$b(luvio, resourceParams);
2147
2147
  }
2148
- function typeCheckConfig$7(untrustedConfig) {
2148
+ function typeCheckConfig$9(untrustedConfig) {
2149
2149
  const config = {};
2150
- typeCheckConfig$b(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2150
+ typeCheckConfig$d(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2151
2151
  return config;
2152
2152
  }
2153
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2153
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2154
2154
  if (!untrustedIsObject(untrustedConfig)) {
2155
2155
  return null;
2156
2156
  }
2157
2157
  if (process.env.NODE_ENV !== 'production') {
2158
2158
  validateConfig(untrustedConfig, configPropertyNames);
2159
2159
  }
2160
- const config = typeCheckConfig$7(untrustedConfig);
2160
+ const config = typeCheckConfig$9(untrustedConfig);
2161
2161
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2162
2162
  return null;
2163
2163
  }
2164
2164
  return config;
2165
2165
  }
2166
- function adapterFragment$3(luvio, config) {
2167
- createResourceParams$7(config);
2168
- return select$j();
2166
+ function adapterFragment$4(luvio, config) {
2167
+ createResourceParams$9(config);
2168
+ return select$o();
2169
2169
  }
2170
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2171
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
2170
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2171
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
2172
2172
  config,
2173
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2173
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2174
2174
  });
2175
2175
  return luvio.storeBroadcast().then(() => snapshot);
2176
2176
  }
2177
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
2178
- const snapshot = ingestError$3(luvio, resourceParams, response, {
2177
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2178
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2179
2179
  config,
2180
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2180
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2181
2181
  });
2182
2182
  return luvio.storeBroadcast().then(() => snapshot);
2183
2183
  }
2184
- function buildNetworkSnapshot$7(luvio, config, options) {
2185
- const resourceParams = createResourceParams$7(config);
2186
- const request = createResourceRequest$7(resourceParams);
2184
+ function buildNetworkSnapshot$9(luvio, config, options) {
2185
+ const resourceParams = createResourceParams$9(config);
2186
+ const request = createResourceRequest$9(resourceParams);
2187
2187
  return luvio.dispatchResourceRequest(request, options)
2188
2188
  .then((response) => {
2189
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2189
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2190
2190
  const cache = new StoreKeyMap();
2191
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2191
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2192
2192
  return cache;
2193
2193
  });
2194
2194
  }, (response) => {
2195
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2195
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2196
2196
  });
2197
2197
  }
2198
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2199
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2198
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2199
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
2200
2200
  }
2201
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2201
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2202
2202
  const { luvio, config } = context;
2203
2203
  const selector = {
2204
- recordId: keyBuilder$8(luvio, config),
2205
- node: adapterFragment$3(luvio, config),
2204
+ recordId: keyBuilder$a(luvio, config),
2205
+ node: adapterFragment$4(luvio, config),
2206
2206
  variables: {},
2207
2207
  };
2208
2208
  const cacheSnapshot = storeLookup(selector, {
2209
2209
  config,
2210
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2210
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2211
2211
  });
2212
2212
  return cacheSnapshot;
2213
2213
  }
2214
2214
  const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
2215
- const config = validateAdapterConfig$7(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2215
+ const config = validateAdapterConfig$9(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2216
2216
  // Invalid or incomplete config
2217
2217
  if (config === null) {
2218
2218
  return null;
2219
2219
  }
2220
2220
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2221
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2221
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2222
2222
  };
2223
2223
 
2224
- const TTL$3 = 100;
2225
- const VERSION$b = "a90a51578e2fdd7a9741d310bed22b1d";
2226
- function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
2224
+ const TTL$4 = 100;
2225
+ const VERSION$e = "a90a51578e2fdd7a9741d310bed22b1d";
2226
+ function validate$i(obj, path = 'EinsteinPromptTemplateRepresentation') {
2227
2227
  const v_error = (() => {
2228
2228
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2229
2229
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2231,7 +2231,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
2231
2231
  if (obj.additionalData !== undefined) {
2232
2232
  const obj_additionalData = obj.additionalData;
2233
2233
  const path_additionalData = path + '.additionalData';
2234
- const referencepath_additionalDataValidationError = validate$l(obj_additionalData, path_additionalData);
2234
+ const referencepath_additionalDataValidationError = validate$n(obj_additionalData, path_additionalData);
2235
2235
  if (referencepath_additionalDataValidationError !== null) {
2236
2236
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
2237
2237
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2299,24 +2299,24 @@ function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
2299
2299
  })();
2300
2300
  return v_error === undefined ? null : v_error;
2301
2301
  }
2302
- const RepresentationType$3 = 'EinsteinPromptTemplateRepresentation';
2303
- function keyBuilder$7(luvio, config) {
2304
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.versionId;
2302
+ const RepresentationType$4 = 'EinsteinPromptTemplateRepresentation';
2303
+ function keyBuilder$9(luvio, config) {
2304
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.versionId;
2305
2305
  }
2306
2306
  function keyBuilderFromType$1(luvio, object) {
2307
2307
  const keyParams = {
2308
2308
  versionId: object.versionId
2309
2309
  };
2310
- return keyBuilder$7(luvio, keyParams);
2310
+ return keyBuilder$9(luvio, keyParams);
2311
2311
  }
2312
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2312
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2313
2313
  return input;
2314
2314
  }
2315
- const select$i = function EinsteinPromptTemplateRepresentationSelect() {
2316
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$o();
2315
+ const select$n = function EinsteinPromptTemplateRepresentationSelect() {
2316
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$t();
2317
2317
  return {
2318
2318
  kind: 'Fragment',
2319
- version: VERSION$b,
2319
+ version: VERSION$e,
2320
2320
  private: [],
2321
2321
  selections: [
2322
2322
  {
@@ -2364,7 +2364,7 @@ const select$i = function EinsteinPromptTemplateRepresentationSelect() {
2364
2364
  ]
2365
2365
  };
2366
2366
  };
2367
- function equals$b(existing, incoming) {
2367
+ function equals$e(existing, incoming) {
2368
2368
  const existing_hasWarning = existing.hasWarning;
2369
2369
  const incoming_hasWarning = incoming.hasWarning;
2370
2370
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -2420,7 +2420,7 @@ function equals$b(existing, incoming) {
2420
2420
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
2421
2421
  return false;
2422
2422
  }
2423
- if (!(equals$f(existing_additionalData, incoming_additionalData))) {
2423
+ if (!(equals$i(existing_additionalData, incoming_additionalData))) {
2424
2424
  return false;
2425
2425
  }
2426
2426
  }
@@ -2446,41 +2446,41 @@ function equals$b(existing, incoming) {
2446
2446
  }
2447
2447
  return true;
2448
2448
  }
2449
- const ingest$3 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2449
+ const ingest$4 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2450
2450
  if (process.env.NODE_ENV !== 'production') {
2451
- const validateError = validate$g(input);
2451
+ const validateError = validate$i(input);
2452
2452
  if (validateError !== null) {
2453
2453
  throw validateError;
2454
2454
  }
2455
2455
  }
2456
2456
  const key = keyBuilderFromType$1(luvio, input);
2457
- const ttlToUse = TTL$3;
2458
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$b, RepresentationType$3, equals$b);
2457
+ const ttlToUse = TTL$4;
2458
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$e, RepresentationType$4, equals$e);
2459
2459
  return createLink(key);
2460
2460
  };
2461
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2461
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2462
2462
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2463
2463
  const rootKey = keyBuilderFromType$1(luvio, input);
2464
2464
  rootKeySet.set(rootKey, {
2465
2465
  namespace: keyPrefix,
2466
- representationName: RepresentationType$3,
2466
+ representationName: RepresentationType$4,
2467
2467
  mergeable: false
2468
2468
  });
2469
2469
  }
2470
2470
 
2471
- function select$h(luvio, params) {
2472
- return select$i();
2471
+ function select$m(luvio, params) {
2472
+ return select$n();
2473
2473
  }
2474
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2475
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2474
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2475
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2476
2476
  }
2477
- function ingestSuccess$6(luvio, resourceParams, response) {
2477
+ function ingestSuccess$8(luvio, resourceParams, response) {
2478
2478
  const { body } = response;
2479
2479
  const key = keyBuilderFromType$1(luvio, body);
2480
- luvio.storeIngest(key, ingest$3, body);
2480
+ luvio.storeIngest(key, ingest$4, body);
2481
2481
  const snapshot = luvio.storeLookup({
2482
2482
  recordId: key,
2483
- node: select$h(),
2483
+ node: select$m(),
2484
2484
  variables: {},
2485
2485
  });
2486
2486
  if (process.env.NODE_ENV !== 'production') {
@@ -2491,7 +2491,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2491
2491
  deepFreeze(snapshot.data);
2492
2492
  return snapshot;
2493
2493
  }
2494
- function createResourceRequest$6(config) {
2494
+ function createResourceRequest$8(config) {
2495
2495
  const headers = {};
2496
2496
  return {
2497
2497
  baseUri: '/services/data/v65.0',
@@ -2505,7 +2505,7 @@ function createResourceRequest$6(config) {
2505
2505
  };
2506
2506
  }
2507
2507
 
2508
- const adapterName$6 = 'createPromptTemplate';
2508
+ const adapterName$8 = 'createPromptTemplate';
2509
2509
  const createPromptTemplate_ConfigPropertyMetadata = [
2510
2510
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
2511
2511
  generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
@@ -2513,11 +2513,11 @@ const createPromptTemplate_ConfigPropertyMetadata = [
2513
2513
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
2514
2514
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
2515
2515
  ];
2516
- const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPromptTemplate_ConfigPropertyMetadata);
2517
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(createPromptTemplate_ConfigPropertyMetadata);
2518
- function typeCheckConfig$6(untrustedConfig) {
2516
+ const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPromptTemplate_ConfigPropertyMetadata);
2517
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(createPromptTemplate_ConfigPropertyMetadata);
2518
+ function typeCheckConfig$8(untrustedConfig) {
2519
2519
  const config = {};
2520
- typeCheckConfig$b(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
2520
+ typeCheckConfig$d(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
2521
2521
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
2522
2522
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
2523
2523
  const untrustedConfig_childRelationships_object = {};
@@ -2557,30 +2557,30 @@ function typeCheckConfig$6(untrustedConfig) {
2557
2557
  }
2558
2558
  return config;
2559
2559
  }
2560
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2560
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2561
2561
  if (!untrustedIsObject(untrustedConfig)) {
2562
2562
  return null;
2563
2563
  }
2564
2564
  if (process.env.NODE_ENV !== 'production') {
2565
2565
  validateConfig(untrustedConfig, configPropertyNames);
2566
2566
  }
2567
- const config = typeCheckConfig$6(untrustedConfig);
2567
+ const config = typeCheckConfig$8(untrustedConfig);
2568
2568
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2569
2569
  return null;
2570
2570
  }
2571
2571
  return config;
2572
2572
  }
2573
- function buildNetworkSnapshot$6(luvio, config, options) {
2574
- const resourceParams = createResourceParams$6(config);
2575
- const request = createResourceRequest$6(resourceParams);
2573
+ function buildNetworkSnapshot$8(luvio, config, options) {
2574
+ const resourceParams = createResourceParams$8(config);
2575
+ const request = createResourceRequest$8(resourceParams);
2576
2576
  return luvio.dispatchResourceRequest(request, options)
2577
2577
  .then((response) => {
2578
2578
  return luvio.handleSuccessResponse(() => {
2579
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2579
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
2580
2580
  return luvio.storeBroadcast().then(() => snapshot);
2581
2581
  }, () => {
2582
2582
  const cache = new StoreKeyMap();
2583
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2583
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2584
2584
  return cache;
2585
2585
  });
2586
2586
  }, (response) => {
@@ -2590,16 +2590,16 @@ function buildNetworkSnapshot$6(luvio, config, options) {
2590
2590
  }
2591
2591
  const createPromptTemplateAdapterFactory = (luvio) => {
2592
2592
  return function createPromptTemplate(untrustedConfig) {
2593
- const config = validateAdapterConfig$6(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
2593
+ const config = validateAdapterConfig$8(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
2594
2594
  // Invalid or incomplete config
2595
2595
  if (config === null) {
2596
2596
  throw new Error('Invalid config for "createPromptTemplate"');
2597
2597
  }
2598
- return buildNetworkSnapshot$6(luvio, config);
2598
+ return buildNetworkSnapshot$8(luvio, config);
2599
2599
  };
2600
2600
  };
2601
2601
 
2602
- function validate$f(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2602
+ function validate$h(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2603
2603
  const v_error = (() => {
2604
2604
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2605
2605
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2618,7 +2618,7 @@ function validate$f(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
2618
2618
  return v_error === undefined ? null : v_error;
2619
2619
  }
2620
2620
 
2621
- function validate$e(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2621
+ function validate$g(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2622
2622
  const v_error = (() => {
2623
2623
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2624
2624
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2647,7 +2647,9 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
2647
2647
  return v_error === undefined ? null : v_error;
2648
2648
  }
2649
2649
 
2650
- function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2650
+ const TTL$3 = 300;
2651
+ const VERSION$d = "d4824d8c6e7848df0de89295e6d9d434";
2652
+ function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2651
2653
  const v_error = (() => {
2652
2654
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2653
2655
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2676,7 +2678,7 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2676
2678
  if (obj.defaultOutputParam !== undefined) {
2677
2679
  const obj_defaultOutputParam = obj.defaultOutputParam;
2678
2680
  const path_defaultOutputParam = path + '.defaultOutputParam';
2679
- const referencepath_defaultOutputParamValidationError = validate$f(obj_defaultOutputParam, path_defaultOutputParam);
2681
+ const referencepath_defaultOutputParamValidationError = validate$h(obj_defaultOutputParam, path_defaultOutputParam);
2680
2682
  if (referencepath_defaultOutputParamValidationError !== null) {
2681
2683
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
2682
2684
  message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2730,7 +2732,7 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2730
2732
  for (let i = 0; i < obj_inputParams.length; i++) {
2731
2733
  const obj_inputParams_item = obj_inputParams[i];
2732
2734
  const path_inputParams_item = path_inputParams + '[' + i + ']';
2733
- const referencepath_inputParams_itemValidationError = validate$e(obj_inputParams_item, path_inputParams_item);
2735
+ const referencepath_inputParams_itemValidationError = validate$g(obj_inputParams_item, path_inputParams_item);
2734
2736
  if (referencepath_inputParams_itemValidationError !== null) {
2735
2737
  let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
2736
2738
  message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2759,31 +2761,33 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2759
2761
  }
2760
2762
  }
2761
2763
  }
2762
- const obj_nodeIcon = obj.nodeIcon;
2763
- const path_nodeIcon = path + '.nodeIcon';
2764
- let obj_nodeIcon_union0 = null;
2765
- const obj_nodeIcon_union0_error = (() => {
2766
- if (typeof obj_nodeIcon !== 'string') {
2767
- return new TypeError('Expected "string" but received "' + typeof obj_nodeIcon + '" (at "' + path_nodeIcon + '")');
2764
+ if (obj.nodeIcon !== undefined) {
2765
+ const obj_nodeIcon = obj.nodeIcon;
2766
+ const path_nodeIcon = path + '.nodeIcon';
2767
+ let obj_nodeIcon_union0 = null;
2768
+ const obj_nodeIcon_union0_error = (() => {
2769
+ if (typeof obj_nodeIcon !== 'string') {
2770
+ return new TypeError('Expected "string" but received "' + typeof obj_nodeIcon + '" (at "' + path_nodeIcon + '")');
2771
+ }
2772
+ })();
2773
+ if (obj_nodeIcon_union0_error != null) {
2774
+ obj_nodeIcon_union0 = obj_nodeIcon_union0_error.message;
2768
2775
  }
2769
- })();
2770
- if (obj_nodeIcon_union0_error != null) {
2771
- obj_nodeIcon_union0 = obj_nodeIcon_union0_error.message;
2772
- }
2773
- let obj_nodeIcon_union1 = null;
2774
- const obj_nodeIcon_union1_error = (() => {
2775
- if (obj_nodeIcon !== null) {
2776
- return new TypeError('Expected "null" but received "' + typeof obj_nodeIcon + '" (at "' + path_nodeIcon + '")');
2776
+ let obj_nodeIcon_union1 = null;
2777
+ const obj_nodeIcon_union1_error = (() => {
2778
+ if (obj_nodeIcon !== null) {
2779
+ return new TypeError('Expected "null" but received "' + typeof obj_nodeIcon + '" (at "' + path_nodeIcon + '")');
2780
+ }
2781
+ })();
2782
+ if (obj_nodeIcon_union1_error != null) {
2783
+ obj_nodeIcon_union1 = obj_nodeIcon_union1_error.message;
2784
+ }
2785
+ if (obj_nodeIcon_union0 && obj_nodeIcon_union1) {
2786
+ let message = 'Object doesn\'t match union (at "' + path_nodeIcon + '")';
2787
+ message += '\n' + obj_nodeIcon_union0.split('\n').map((line) => '\t' + line).join('\n');
2788
+ message += '\n' + obj_nodeIcon_union1.split('\n').map((line) => '\t' + line).join('\n');
2789
+ return new TypeError(message);
2777
2790
  }
2778
- })();
2779
- if (obj_nodeIcon_union1_error != null) {
2780
- obj_nodeIcon_union1 = obj_nodeIcon_union1_error.message;
2781
- }
2782
- if (obj_nodeIcon_union0 && obj_nodeIcon_union1) {
2783
- let message = 'Object doesn\'t match union (at "' + path_nodeIcon + '")';
2784
- message += '\n' + obj_nodeIcon_union0.split('\n').map((line) => '\t' + line).join('\n');
2785
- message += '\n' + obj_nodeIcon_union1.split('\n').map((line) => '\t' + line).join('\n');
2786
- return new TypeError(message);
2787
2791
  }
2788
2792
  if (obj.outputParams !== undefined) {
2789
2793
  const obj_outputParams = obj.outputParams;
@@ -2794,7 +2798,7 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2794
2798
  for (let i = 0; i < obj_outputParams.length; i++) {
2795
2799
  const obj_outputParams_item = obj_outputParams[i];
2796
2800
  const path_outputParams_item = path_outputParams + '[' + i + ']';
2797
- const referencepath_outputParams_itemValidationError = validate$f(obj_outputParams_item, path_outputParams_item);
2801
+ const referencepath_outputParams_itemValidationError = validate$h(obj_outputParams_item, path_outputParams_item);
2798
2802
  if (referencepath_outputParams_itemValidationError !== null) {
2799
2803
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
2800
2804
  message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2866,10 +2870,49 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2866
2870
  })();
2867
2871
  return v_error === undefined ? null : v_error;
2868
2872
  }
2873
+ const RepresentationType$3 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
2874
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2875
+ return input;
2876
+ }
2877
+ const select$l = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2878
+ return {
2879
+ kind: 'Fragment',
2880
+ version: VERSION$d,
2881
+ private: [],
2882
+ opaque: true
2883
+ };
2884
+ };
2885
+ function equals$d(existing, incoming) {
2886
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2887
+ return false;
2888
+ }
2889
+ return true;
2890
+ }
2891
+ const ingest$3 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
2892
+ if (process.env.NODE_ENV !== 'production') {
2893
+ const validateError = validate$f(input);
2894
+ if (validateError !== null) {
2895
+ throw validateError;
2896
+ }
2897
+ }
2898
+ const key = path.fullPath;
2899
+ const ttlToUse = TTL$3;
2900
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$d, RepresentationType$3, equals$d);
2901
+ return createLink(key);
2902
+ };
2903
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2904
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2905
+ const rootKey = fullPathFactory();
2906
+ rootKeySet.set(rootKey, {
2907
+ namespace: keyPrefix,
2908
+ representationName: RepresentationType$3,
2909
+ mergeable: false
2910
+ });
2911
+ }
2869
2912
 
2870
2913
  const TTL$2 = 300;
2871
- const VERSION$a = "f86b04aed156ed794e7502ef43bb4171";
2872
- function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2914
+ const VERSION$c = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2915
+ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2873
2916
  const v_error = (() => {
2874
2917
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2875
2918
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2882,7 +2925,7 @@ function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
2882
2925
  for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
2883
2926
  const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
2884
2927
  const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
2885
- const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$d(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2928
+ const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$f(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2886
2929
  if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
2887
2930
  let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
2888
2931
  message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2896,15 +2939,15 @@ const RepresentationType$2 = 'PromptTemplateDataProviderInstanceConfigCollection
2896
2939
  function normalize$2(input, existing, path, luvio, store, timestamp) {
2897
2940
  return input;
2898
2941
  }
2899
- const select$g = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2942
+ const select$k = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2900
2943
  return {
2901
2944
  kind: 'Fragment',
2902
- version: VERSION$a,
2945
+ version: VERSION$c,
2903
2946
  private: [],
2904
2947
  opaque: true
2905
2948
  };
2906
2949
  };
2907
- function equals$a(existing, incoming) {
2950
+ function equals$c(existing, incoming) {
2908
2951
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2909
2952
  return false;
2910
2953
  }
@@ -2912,14 +2955,14 @@ function equals$a(existing, incoming) {
2912
2955
  }
2913
2956
  const ingest$2 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2914
2957
  if (process.env.NODE_ENV !== 'production') {
2915
- const validateError = validate$c(input);
2958
+ const validateError = validate$e(input);
2916
2959
  if (validateError !== null) {
2917
2960
  throw validateError;
2918
2961
  }
2919
2962
  }
2920
2963
  const key = path.fullPath;
2921
2964
  const ttlToUse = TTL$2;
2922
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$a, RepresentationType$2, equals$a);
2965
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$c, RepresentationType$2, equals$c);
2923
2966
  return createLink(key);
2924
2967
  };
2925
2968
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -2932,22 +2975,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2932
2975
  });
2933
2976
  }
2934
2977
 
2935
- function select$f(luvio, params) {
2936
- return select$g();
2978
+ function select$j(luvio, params) {
2979
+ return select$k();
2937
2980
  }
2938
- function keyBuilder$6(luvio, params) {
2981
+ function keyBuilder$8(luvio, params) {
2939
2982
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + (params.body.groupName === undefined ? 'groupName' : 'groupName:' + params.body.groupName) + '::' + (params.body.target === undefined ? 'target' : 'target:' + params.body.target) + '::' + 'templateInputs:' + params.body.templateInputs + '::' + 'templateTypeName:' + params.body.templateTypeName + ')';
2940
2983
  }
2941
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2942
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
2984
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2985
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
2943
2986
  }
2944
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2987
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2945
2988
  const { body } = response;
2946
- const key = keyBuilder$6(luvio, resourceParams);
2989
+ const key = keyBuilder$8(luvio, resourceParams);
2947
2990
  luvio.storeIngest(key, ingest$2, body);
2948
2991
  const snapshot = luvio.storeLookup({
2949
2992
  recordId: key,
2950
- node: select$f(),
2993
+ node: select$j(),
2951
2994
  variables: {},
2952
2995
  }, snapshotRefresh);
2953
2996
  if (process.env.NODE_ENV !== 'production') {
@@ -2958,19 +3001,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2958
3001
  deepFreeze(snapshot.data);
2959
3002
  return snapshot;
2960
3003
  }
2961
- function ingestError$2(luvio, params, error, snapshotRefresh) {
2962
- const key = keyBuilder$6(luvio, params);
3004
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
3005
+ const key = keyBuilder$8(luvio, params);
2963
3006
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2964
3007
  const storeMetadataParams = {
2965
3008
  ttl: TTL$2,
2966
3009
  namespace: keyPrefix,
2967
- version: VERSION$a,
3010
+ version: VERSION$c,
2968
3011
  representationName: RepresentationType$2
2969
3012
  };
2970
3013
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2971
3014
  return errorSnapshot;
2972
3015
  }
2973
- function createResourceRequest$5(config) {
3016
+ function createResourceRequest$7(config) {
2974
3017
  const headers = {};
2975
3018
  return {
2976
3019
  baseUri: '/services/data/v65.0',
@@ -2984,22 +3027,22 @@ function createResourceRequest$5(config) {
2984
3027
  };
2985
3028
  }
2986
3029
 
2987
- const adapterName$5 = 'getInputMappedDataProviders';
3030
+ const adapterName$7 = 'getInputMappedDataProviders';
2988
3031
  const getInputMappedDataProviders_ConfigPropertyMetadata = [
2989
3032
  generateParamConfigMetadata('groupName', false, 2 /* Body */, 0 /* String */),
2990
3033
  generateParamConfigMetadata('target', false, 2 /* Body */, 0 /* String */),
2991
3034
  generateParamConfigMetadata('templateInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
2992
3035
  generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
2993
3036
  ];
2994
- const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getInputMappedDataProviders_ConfigPropertyMetadata);
2995
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getInputMappedDataProviders_ConfigPropertyMetadata);
2996
- function keyBuilder$5(luvio, config) {
2997
- const resourceParams = createResourceParams$5(config);
2998
- return keyBuilder$6(luvio, resourceParams);
3037
+ const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getInputMappedDataProviders_ConfigPropertyMetadata);
3038
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getInputMappedDataProviders_ConfigPropertyMetadata);
3039
+ function keyBuilder$7(luvio, config) {
3040
+ const resourceParams = createResourceParams$7(config);
3041
+ return keyBuilder$8(luvio, resourceParams);
2999
3042
  }
3000
- function typeCheckConfig$5(untrustedConfig) {
3043
+ function typeCheckConfig$7(untrustedConfig) {
3001
3044
  const config = {};
3002
- typeCheckConfig$b(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3045
+ typeCheckConfig$d(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3003
3046
  const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
3004
3047
  if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
3005
3048
  const untrustedConfig_templateInputs_array = [];
@@ -3011,45 +3054,200 @@ function typeCheckConfig$5(untrustedConfig) {
3011
3054
  }
3012
3055
  return config;
3013
3056
  }
3014
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3057
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
3015
3058
  if (!untrustedIsObject(untrustedConfig)) {
3016
3059
  return null;
3017
3060
  }
3018
3061
  if (process.env.NODE_ENV !== 'production') {
3019
3062
  validateConfig(untrustedConfig, configPropertyNames);
3020
3063
  }
3021
- const config = typeCheckConfig$5(untrustedConfig);
3064
+ const config = typeCheckConfig$7(untrustedConfig);
3065
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3066
+ return null;
3067
+ }
3068
+ return config;
3069
+ }
3070
+ function adapterFragment$3(luvio, config) {
3071
+ createResourceParams$7(config);
3072
+ return select$j();
3073
+ }
3074
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
3075
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
3076
+ config,
3077
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3078
+ });
3079
+ return luvio.storeBroadcast().then(() => snapshot);
3080
+ }
3081
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
3082
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
3083
+ config,
3084
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3085
+ });
3086
+ return luvio.storeBroadcast().then(() => snapshot);
3087
+ }
3088
+ function buildNetworkSnapshot$7(luvio, config, options) {
3089
+ const resourceParams = createResourceParams$7(config);
3090
+ const request = createResourceRequest$7(resourceParams);
3091
+ return luvio.dispatchResourceRequest(request, options)
3092
+ .then((response) => {
3093
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
3094
+ const cache = new StoreKeyMap();
3095
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
3096
+ return cache;
3097
+ });
3098
+ }, (response) => {
3099
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
3100
+ });
3101
+ }
3102
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3103
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, 'get', false);
3104
+ }
3105
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3106
+ const { luvio, config } = context;
3107
+ const selector = {
3108
+ recordId: keyBuilder$7(luvio, config),
3109
+ node: adapterFragment$3(luvio, config),
3110
+ variables: {},
3111
+ };
3112
+ const cacheSnapshot = storeLookup(selector, {
3113
+ config,
3114
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3115
+ });
3116
+ return cacheSnapshot;
3117
+ }
3118
+ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
3119
+ const config = validateAdapterConfig$7(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3120
+ // Invalid or incomplete config
3121
+ if (config === null) {
3122
+ return null;
3123
+ }
3124
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3125
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3126
+ };
3127
+
3128
+ function select$i(luvio, params) {
3129
+ return select$l();
3130
+ }
3131
+ function keyBuilder$6(luvio, params) {
3132
+ return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
3133
+ }
3134
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3135
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
3136
+ }
3137
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
3138
+ const { body } = response;
3139
+ const key = keyBuilder$6(luvio, resourceParams);
3140
+ luvio.storeIngest(key, ingest$3, body);
3141
+ const snapshot = luvio.storeLookup({
3142
+ recordId: key,
3143
+ node: select$i(),
3144
+ variables: {},
3145
+ }, snapshotRefresh);
3146
+ if (process.env.NODE_ENV !== 'production') {
3147
+ if (snapshot.state !== 'Fulfilled') {
3148
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3149
+ }
3150
+ }
3151
+ deepFreeze(snapshot.data);
3152
+ return snapshot;
3153
+ }
3154
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
3155
+ const key = keyBuilder$6(luvio, params);
3156
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3157
+ const storeMetadataParams = {
3158
+ ttl: TTL$3,
3159
+ namespace: keyPrefix,
3160
+ version: VERSION$d,
3161
+ representationName: RepresentationType$3
3162
+ };
3163
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3164
+ return errorSnapshot;
3165
+ }
3166
+ function createResourceRequest$6(config) {
3167
+ const headers = {};
3168
+ return {
3169
+ baseUri: '/services/data/v65.0',
3170
+ basePath: '/einstein/prompt-templates/data-provider/describe',
3171
+ method: 'post',
3172
+ body: config.body,
3173
+ urlParams: {},
3174
+ queryParams: {},
3175
+ headers,
3176
+ priority: 'normal',
3177
+ };
3178
+ }
3179
+
3180
+ const adapterName$6 = 'getDataProviderInstanceConfig';
3181
+ const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
3182
+ generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
3183
+ generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
3184
+ generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
3185
+ ];
3186
+ const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3187
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getDataProviderInstanceConfig_ConfigPropertyMetadata);
3188
+ function keyBuilder$5(luvio, config) {
3189
+ const resourceParams = createResourceParams$6(config);
3190
+ return keyBuilder$6(luvio, resourceParams);
3191
+ }
3192
+ function typeCheckConfig$6(untrustedConfig) {
3193
+ const config = {};
3194
+ typeCheckConfig$d(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
3195
+ const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
3196
+ if (untrustedIsObject(untrustedConfig_additionalParam)) {
3197
+ const untrustedConfig_additionalParam_object = {};
3198
+ const untrustedConfig_additionalParam_keys = Object.keys(untrustedConfig_additionalParam);
3199
+ for (let i = 0, arrayLength = untrustedConfig_additionalParam_keys.length; i < arrayLength; i++) {
3200
+ const key = untrustedConfig_additionalParam_keys[i];
3201
+ const untrustedConfig_additionalParam_prop = untrustedConfig_additionalParam[key];
3202
+ if (untrustedConfig_additionalParam_object !== undefined) {
3203
+ untrustedConfig_additionalParam_object[key] = untrustedConfig_additionalParam_prop;
3204
+ }
3205
+ }
3206
+ if (untrustedConfig_additionalParam_object !== undefined && Object.keys(untrustedConfig_additionalParam_object).length >= 0) {
3207
+ config.additionalParam = untrustedConfig_additionalParam_object;
3208
+ }
3209
+ }
3210
+ return config;
3211
+ }
3212
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
3213
+ if (!untrustedIsObject(untrustedConfig)) {
3214
+ return null;
3215
+ }
3216
+ if (process.env.NODE_ENV !== 'production') {
3217
+ validateConfig(untrustedConfig, configPropertyNames);
3218
+ }
3219
+ const config = typeCheckConfig$6(untrustedConfig);
3022
3220
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3023
3221
  return null;
3024
3222
  }
3025
3223
  return config;
3026
3224
  }
3027
3225
  function adapterFragment$2(luvio, config) {
3028
- createResourceParams$5(config);
3029
- return select$f();
3226
+ createResourceParams$6(config);
3227
+ return select$i();
3030
3228
  }
3031
3229
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3032
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
3230
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
3033
3231
  config,
3034
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3232
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
3035
3233
  });
3036
3234
  return luvio.storeBroadcast().then(() => snapshot);
3037
3235
  }
3038
3236
  function onFetchResponseError$2(luvio, config, resourceParams, response) {
3039
3237
  const snapshot = ingestError$2(luvio, resourceParams, response, {
3040
3238
  config,
3041
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3239
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
3042
3240
  });
3043
3241
  return luvio.storeBroadcast().then(() => snapshot);
3044
3242
  }
3045
- function buildNetworkSnapshot$5(luvio, config, options) {
3046
- const resourceParams = createResourceParams$5(config);
3047
- const request = createResourceRequest$5(resourceParams);
3243
+ function buildNetworkSnapshot$6(luvio, config, options) {
3244
+ const resourceParams = createResourceParams$6(config);
3245
+ const request = createResourceRequest$6(resourceParams);
3048
3246
  return luvio.dispatchResourceRequest(request, options)
3049
3247
  .then((response) => {
3050
3248
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3051
3249
  const cache = new StoreKeyMap();
3052
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3250
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
3053
3251
  return cache;
3054
3252
  });
3055
3253
  }, (response) => {
@@ -3057,7 +3255,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3057
3255
  });
3058
3256
  }
3059
3257
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3060
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
3258
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
3061
3259
  }
3062
3260
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3063
3261
  const { luvio, config } = context;
@@ -3068,12 +3266,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3068
3266
  };
3069
3267
  const cacheSnapshot = storeLookup(selector, {
3070
3268
  config,
3071
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3269
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
3072
3270
  });
3073
3271
  return cacheSnapshot;
3074
3272
  }
3075
- const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
3076
- const config = validateAdapterConfig$5(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3273
+ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
3274
+ const config = validateAdapterConfig$6(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
3077
3275
  // Invalid or incomplete config
3078
3276
  if (config === null) {
3079
3277
  return null;
@@ -3082,22 +3280,22 @@ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLL
3082
3280
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
3083
3281
  };
3084
3282
 
3085
- function select$e(luvio, params) {
3086
- return select$l();
3283
+ function select$h(luvio, params) {
3284
+ return select$q();
3087
3285
  }
3088
3286
  function keyBuilder$4(luvio, params) {
3089
3287
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
3090
3288
  }
3091
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3092
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
3289
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3290
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
3093
3291
  }
3094
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
3292
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
3095
3293
  const { body } = response;
3096
3294
  const key = keyBuilder$4(luvio, resourceParams);
3097
- luvio.storeIngest(key, ingest$5, body);
3295
+ luvio.storeIngest(key, ingest$6, body);
3098
3296
  const snapshot = luvio.storeLookup({
3099
3297
  recordId: key,
3100
- node: select$e(),
3298
+ node: select$h(),
3101
3299
  variables: {},
3102
3300
  }, snapshotRefresh);
3103
3301
  if (process.env.NODE_ENV !== 'production') {
@@ -3112,15 +3310,15 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
3112
3310
  const key = keyBuilder$4(luvio, params);
3113
3311
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3114
3312
  const storeMetadataParams = {
3115
- ttl: TTL$5,
3313
+ ttl: TTL$6,
3116
3314
  namespace: keyPrefix,
3117
- version: VERSION$d,
3118
- representationName: RepresentationType$5
3315
+ version: VERSION$g,
3316
+ representationName: RepresentationType$6
3119
3317
  };
3120
3318
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3121
3319
  return errorSnapshot;
3122
3320
  }
3123
- function createResourceRequest$4(config) {
3321
+ function createResourceRequest$5(config) {
3124
3322
  const headers = {};
3125
3323
  return {
3126
3324
  baseUri: '/services/data/v65.0',
@@ -3134,106 +3332,238 @@ function createResourceRequest$4(config) {
3134
3332
  };
3135
3333
  }
3136
3334
 
3137
- const adapterName$4 = 'getPromptTemplate';
3335
+ const adapterName$5 = 'getPromptTemplate';
3138
3336
  const getPromptTemplate_ConfigPropertyMetadata = [
3139
3337
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3140
3338
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3141
3339
  ];
3142
- const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getPromptTemplate_ConfigPropertyMetadata);
3143
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getPromptTemplate_ConfigPropertyMetadata);
3340
+ const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPromptTemplate_ConfigPropertyMetadata);
3341
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(getPromptTemplate_ConfigPropertyMetadata);
3144
3342
  function keyBuilder$3(luvio, config) {
3145
- const resourceParams = createResourceParams$4(config);
3343
+ const resourceParams = createResourceParams$5(config);
3146
3344
  return keyBuilder$4(luvio, resourceParams);
3147
3345
  }
3148
- function typeCheckConfig$4(untrustedConfig) {
3346
+ function typeCheckConfig$5(untrustedConfig) {
3149
3347
  const config = {};
3150
- typeCheckConfig$b(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3348
+ typeCheckConfig$d(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3151
3349
  return config;
3152
3350
  }
3153
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3351
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3154
3352
  if (!untrustedIsObject(untrustedConfig)) {
3155
3353
  return null;
3156
3354
  }
3157
3355
  if (process.env.NODE_ENV !== 'production') {
3158
3356
  validateConfig(untrustedConfig, configPropertyNames);
3159
3357
  }
3160
- const config = typeCheckConfig$4(untrustedConfig);
3358
+ const config = typeCheckConfig$5(untrustedConfig);
3161
3359
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3162
3360
  return null;
3163
3361
  }
3164
3362
  return config;
3165
3363
  }
3166
3364
  function adapterFragment$1(luvio, config) {
3167
- createResourceParams$4(config);
3168
- return select$e();
3365
+ createResourceParams$5(config);
3366
+ return select$h();
3169
3367
  }
3170
3368
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
3171
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
3369
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
3172
3370
  config,
3173
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3371
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3174
3372
  });
3175
3373
  return luvio.storeBroadcast().then(() => snapshot);
3176
3374
  }
3177
3375
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
3178
3376
  const snapshot = ingestError$1(luvio, resourceParams, response, {
3179
3377
  config,
3180
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3378
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3181
3379
  });
3182
3380
  return luvio.storeBroadcast().then(() => snapshot);
3183
3381
  }
3382
+ function buildNetworkSnapshot$5(luvio, config, options) {
3383
+ const resourceParams = createResourceParams$5(config);
3384
+ const request = createResourceRequest$5(resourceParams);
3385
+ return luvio.dispatchResourceRequest(request, options)
3386
+ .then((response) => {
3387
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3388
+ const cache = new StoreKeyMap();
3389
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3390
+ return cache;
3391
+ });
3392
+ }, (response) => {
3393
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
3394
+ });
3395
+ }
3396
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3397
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
3398
+ }
3399
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3400
+ const { luvio, config } = context;
3401
+ const selector = {
3402
+ recordId: keyBuilder$3(luvio, config),
3403
+ node: adapterFragment$1(luvio, config),
3404
+ variables: {},
3405
+ };
3406
+ const cacheSnapshot = storeLookup(selector, {
3407
+ config,
3408
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3409
+ });
3410
+ return cacheSnapshot;
3411
+ }
3412
+ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplate(untrustedConfig, requestContext) {
3413
+ const config = validateAdapterConfig$5(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
3414
+ // Invalid or incomplete config
3415
+ if (config === null) {
3416
+ return null;
3417
+ }
3418
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3419
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3420
+ };
3421
+
3422
+ function select$g(luvio, params) {
3423
+ return select$n();
3424
+ }
3425
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3426
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
3427
+ }
3428
+ function ingestSuccess$4(luvio, resourceParams, response) {
3429
+ const { body } = response;
3430
+ const key = keyBuilderFromType$1(luvio, body);
3431
+ luvio.storeIngest(key, ingest$4, body);
3432
+ const snapshot = luvio.storeLookup({
3433
+ recordId: key,
3434
+ node: select$g(),
3435
+ variables: {},
3436
+ });
3437
+ if (process.env.NODE_ENV !== 'production') {
3438
+ if (snapshot.state !== 'Fulfilled') {
3439
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3440
+ }
3441
+ }
3442
+ deepFreeze(snapshot.data);
3443
+ return snapshot;
3444
+ }
3445
+ function createResourceRequest$4(config) {
3446
+ const headers = {};
3447
+ return {
3448
+ baseUri: '/services/data/v65.0',
3449
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
3450
+ method: 'post',
3451
+ body: config.body,
3452
+ urlParams: config.urlParams,
3453
+ queryParams: {},
3454
+ headers,
3455
+ priority: 'normal',
3456
+ };
3457
+ }
3458
+
3459
+ const adapterName$4 = 'createPromptTemplateVersion';
3460
+ const createPromptTemplateVersion_ConfigPropertyMetadata = [
3461
+ generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3462
+ generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
3463
+ generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
3464
+ generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */, true),
3465
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3466
+ generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3467
+ ];
3468
+ const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createPromptTemplateVersion_ConfigPropertyMetadata);
3469
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(createPromptTemplateVersion_ConfigPropertyMetadata);
3470
+ function typeCheckConfig$4(untrustedConfig) {
3471
+ const config = {};
3472
+ typeCheckConfig$d(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3473
+ const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3474
+ if (untrustedIsObject(untrustedConfig_childRelationships)) {
3475
+ const untrustedConfig_childRelationships_object = {};
3476
+ const untrustedConfig_childRelationships_keys = Object.keys(untrustedConfig_childRelationships);
3477
+ for (let i = 0, arrayLength = untrustedConfig_childRelationships_keys.length; i < arrayLength; i++) {
3478
+ const key = untrustedConfig_childRelationships_keys[i];
3479
+ const untrustedConfig_childRelationships_prop = untrustedConfig_childRelationships[key];
3480
+ if (untrustedConfig_childRelationships_object !== undefined) {
3481
+ untrustedConfig_childRelationships_object[key] = untrustedConfig_childRelationships_prop;
3482
+ }
3483
+ }
3484
+ if (untrustedConfig_childRelationships_object !== undefined && Object.keys(untrustedConfig_childRelationships_object).length >= 0) {
3485
+ config.childRelationships = untrustedConfig_childRelationships_object;
3486
+ }
3487
+ }
3488
+ const untrustedConfig_fields = untrustedConfig.fields;
3489
+ if (ArrayIsArray$1(untrustedConfig_fields)) {
3490
+ const untrustedConfig_fields_array = [];
3491
+ for (let i = 0, arrayLength = untrustedConfig_fields.length; i < arrayLength; i++) {
3492
+ const untrustedConfig_fields_item = untrustedConfig_fields[i];
3493
+ if (untrustedIsObject(untrustedConfig_fields_item)) {
3494
+ const untrustedConfig_fields_item_object = {};
3495
+ const untrustedConfig_fields_item_keys = Object.keys(untrustedConfig_fields_item);
3496
+ for (let i = 0, arrayLength = untrustedConfig_fields_item_keys.length; i < arrayLength; i++) {
3497
+ const key = untrustedConfig_fields_item_keys[i];
3498
+ const untrustedConfig_fields_item_prop = untrustedConfig_fields_item[key];
3499
+ if (untrustedConfig_fields_item_object !== undefined) {
3500
+ untrustedConfig_fields_item_object[key] = untrustedConfig_fields_item_prop;
3501
+ }
3502
+ }
3503
+ if (untrustedConfig_fields_item_object !== undefined && Object.keys(untrustedConfig_fields_item_object).length >= 0) {
3504
+ untrustedConfig_fields_array.push(untrustedConfig_fields_item_object);
3505
+ }
3506
+ }
3507
+ }
3508
+ config.fields = untrustedConfig_fields_array;
3509
+ }
3510
+ return config;
3511
+ }
3512
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3513
+ if (!untrustedIsObject(untrustedConfig)) {
3514
+ return null;
3515
+ }
3516
+ if (process.env.NODE_ENV !== 'production') {
3517
+ validateConfig(untrustedConfig, configPropertyNames);
3518
+ }
3519
+ const config = typeCheckConfig$4(untrustedConfig);
3520
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3521
+ return null;
3522
+ }
3523
+ return config;
3524
+ }
3184
3525
  function buildNetworkSnapshot$4(luvio, config, options) {
3185
3526
  const resourceParams = createResourceParams$4(config);
3186
3527
  const request = createResourceRequest$4(resourceParams);
3187
3528
  return luvio.dispatchResourceRequest(request, options)
3188
3529
  .then((response) => {
3189
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3530
+ return luvio.handleSuccessResponse(() => {
3531
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3532
+ return luvio.storeBroadcast().then(() => snapshot);
3533
+ }, () => {
3190
3534
  const cache = new StoreKeyMap();
3191
3535
  getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3192
3536
  return cache;
3193
3537
  });
3194
3538
  }, (response) => {
3195
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
3539
+ deepFreeze(response);
3540
+ throw response;
3196
3541
  });
3197
3542
  }
3198
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3199
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
3200
- }
3201
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3202
- const { luvio, config } = context;
3203
- const selector = {
3204
- recordId: keyBuilder$3(luvio, config),
3205
- node: adapterFragment$1(luvio, config),
3206
- variables: {},
3543
+ const createPromptTemplateVersionAdapterFactory = (luvio) => {
3544
+ return function createPromptTemplateVersion(untrustedConfig) {
3545
+ const config = validateAdapterConfig$4(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
3546
+ // Invalid or incomplete config
3547
+ if (config === null) {
3548
+ throw new Error('Invalid config for "createPromptTemplateVersion"');
3549
+ }
3550
+ return buildNetworkSnapshot$4(luvio, config);
3207
3551
  };
3208
- const cacheSnapshot = storeLookup(selector, {
3209
- config,
3210
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3211
- });
3212
- return cacheSnapshot;
3213
- }
3214
- const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplate(untrustedConfig, requestContext) {
3215
- const config = validateAdapterConfig$4(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
3216
- // Invalid or incomplete config
3217
- if (config === null) {
3218
- return null;
3219
- }
3220
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3221
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3222
3552
  };
3223
3553
 
3224
- function select$d(luvio, params) {
3225
- return select$i();
3554
+ function select$f(luvio, params) {
3555
+ return select$n();
3226
3556
  }
3227
3557
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3228
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3558
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
3229
3559
  }
3230
3560
  function ingestSuccess$3(luvio, resourceParams, response) {
3231
3561
  const { body } = response;
3232
3562
  const key = keyBuilderFromType$1(luvio, body);
3233
- luvio.storeIngest(key, ingest$3, body);
3563
+ luvio.storeIngest(key, ingest$4, body);
3234
3564
  const snapshot = luvio.storeLookup({
3235
3565
  recordId: key,
3236
- node: select$d(),
3566
+ node: select$f(),
3237
3567
  variables: {},
3238
3568
  });
3239
3569
  if (process.env.NODE_ENV !== 'production') {
@@ -3248,8 +3578,8 @@ function createResourceRequest$3(config) {
3248
3578
  const headers = {};
3249
3579
  return {
3250
3580
  baseUri: '/services/data/v65.0',
3251
- basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
3252
- method: 'post',
3581
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
3582
+ method: 'put',
3253
3583
  body: config.body,
3254
3584
  urlParams: config.urlParams,
3255
3585
  queryParams: {},
@@ -3258,20 +3588,21 @@ function createResourceRequest$3(config) {
3258
3588
  };
3259
3589
  }
3260
3590
 
3261
- const adapterName$3 = 'createPromptTemplateVersion';
3262
- const createPromptTemplateVersion_ConfigPropertyMetadata = [
3591
+ const adapterName$3 = 'updatePromptTemplateVersion';
3592
+ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
3263
3593
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3594
+ generateParamConfigMetadata('versionId', true, 0 /* UrlParameter */, 0 /* String */),
3264
3595
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
3265
3596
  generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
3266
3597
  generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */, true),
3267
3598
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3268
3599
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3269
3600
  ];
3270
- const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createPromptTemplateVersion_ConfigPropertyMetadata);
3271
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(createPromptTemplateVersion_ConfigPropertyMetadata);
3601
+ const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePromptTemplateVersion_ConfigPropertyMetadata);
3602
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(updatePromptTemplateVersion_ConfigPropertyMetadata);
3272
3603
  function typeCheckConfig$3(untrustedConfig) {
3273
3604
  const config = {};
3274
- typeCheckConfig$b(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3605
+ typeCheckConfig$d(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
3275
3606
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3276
3607
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
3277
3608
  const untrustedConfig_childRelationships_object = {};
@@ -3342,30 +3673,30 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3342
3673
  throw response;
3343
3674
  });
3344
3675
  }
3345
- const createPromptTemplateVersionAdapterFactory = (luvio) => {
3346
- return function createPromptTemplateVersion(untrustedConfig) {
3347
- const config = validateAdapterConfig$3(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
3676
+ const updatePromptTemplateVersionAdapterFactory = (luvio) => {
3677
+ return function updatePromptTemplateVersion(untrustedConfig) {
3678
+ const config = validateAdapterConfig$3(untrustedConfig, updatePromptTemplateVersion_ConfigPropertyNames);
3348
3679
  // Invalid or incomplete config
3349
3680
  if (config === null) {
3350
- throw new Error('Invalid config for "createPromptTemplateVersion"');
3681
+ throw new Error('Invalid config for "updatePromptTemplateVersion"');
3351
3682
  }
3352
3683
  return buildNetworkSnapshot$3(luvio, config);
3353
3684
  };
3354
3685
  };
3355
3686
 
3356
- function select$c(luvio, params) {
3357
- return select$i();
3687
+ function select$e(luvio, params) {
3688
+ return select$n();
3358
3689
  }
3359
3690
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3360
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3691
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
3361
3692
  }
3362
3693
  function ingestSuccess$2(luvio, resourceParams, response) {
3363
3694
  const { body } = response;
3364
3695
  const key = keyBuilderFromType$1(luvio, body);
3365
- luvio.storeIngest(key, ingest$3, body);
3696
+ luvio.storeIngest(key, ingest$4, body);
3366
3697
  const snapshot = luvio.storeLookup({
3367
3698
  recordId: key,
3368
- node: select$c(),
3699
+ node: select$e(),
3369
3700
  variables: {},
3370
3701
  });
3371
3702
  if (process.env.NODE_ENV !== 'production') {
@@ -3380,68 +3711,28 @@ function createResourceRequest$2(config) {
3380
3711
  const headers = {};
3381
3712
  return {
3382
3713
  baseUri: '/services/data/v65.0',
3383
- basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
3714
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
3384
3715
  method: 'put',
3385
- body: config.body,
3716
+ body: null,
3386
3717
  urlParams: config.urlParams,
3387
- queryParams: {},
3718
+ queryParams: config.queryParams,
3388
3719
  headers,
3389
3720
  priority: 'normal',
3390
3721
  };
3391
3722
  }
3392
3723
 
3393
- const adapterName$2 = 'updatePromptTemplateVersion';
3394
- const updatePromptTemplateVersion_ConfigPropertyMetadata = [
3724
+ const adapterName$2 = 'putEinsteinPromptTemplateVersionStatus';
3725
+ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata = [
3395
3726
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3396
3727
  generateParamConfigMetadata('versionId', true, 0 /* UrlParameter */, 0 /* String */),
3397
- generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
3398
- generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
3399
- generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */, true),
3400
- generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3401
- generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3728
+ generateParamConfigMetadata('action', false, 1 /* QueryParameter */, 0 /* String */),
3729
+ generateParamConfigMetadata('ignoreWarnings', false, 1 /* QueryParameter */, 1 /* Boolean */),
3402
3730
  ];
3403
- const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updatePromptTemplateVersion_ConfigPropertyMetadata);
3404
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(updatePromptTemplateVersion_ConfigPropertyMetadata);
3731
+ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
3732
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
3405
3733
  function typeCheckConfig$2(untrustedConfig) {
3406
3734
  const config = {};
3407
- typeCheckConfig$b(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
3408
- const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3409
- if (untrustedIsObject(untrustedConfig_childRelationships)) {
3410
- const untrustedConfig_childRelationships_object = {};
3411
- const untrustedConfig_childRelationships_keys = Object.keys(untrustedConfig_childRelationships);
3412
- for (let i = 0, arrayLength = untrustedConfig_childRelationships_keys.length; i < arrayLength; i++) {
3413
- const key = untrustedConfig_childRelationships_keys[i];
3414
- const untrustedConfig_childRelationships_prop = untrustedConfig_childRelationships[key];
3415
- if (untrustedConfig_childRelationships_object !== undefined) {
3416
- untrustedConfig_childRelationships_object[key] = untrustedConfig_childRelationships_prop;
3417
- }
3418
- }
3419
- if (untrustedConfig_childRelationships_object !== undefined && Object.keys(untrustedConfig_childRelationships_object).length >= 0) {
3420
- config.childRelationships = untrustedConfig_childRelationships_object;
3421
- }
3422
- }
3423
- const untrustedConfig_fields = untrustedConfig.fields;
3424
- if (ArrayIsArray$1(untrustedConfig_fields)) {
3425
- const untrustedConfig_fields_array = [];
3426
- for (let i = 0, arrayLength = untrustedConfig_fields.length; i < arrayLength; i++) {
3427
- const untrustedConfig_fields_item = untrustedConfig_fields[i];
3428
- if (untrustedIsObject(untrustedConfig_fields_item)) {
3429
- const untrustedConfig_fields_item_object = {};
3430
- const untrustedConfig_fields_item_keys = Object.keys(untrustedConfig_fields_item);
3431
- for (let i = 0, arrayLength = untrustedConfig_fields_item_keys.length; i < arrayLength; i++) {
3432
- const key = untrustedConfig_fields_item_keys[i];
3433
- const untrustedConfig_fields_item_prop = untrustedConfig_fields_item[key];
3434
- if (untrustedConfig_fields_item_object !== undefined) {
3435
- untrustedConfig_fields_item_object[key] = untrustedConfig_fields_item_prop;
3436
- }
3437
- }
3438
- if (untrustedConfig_fields_item_object !== undefined && Object.keys(untrustedConfig_fields_item_object).length >= 0) {
3439
- untrustedConfig_fields_array.push(untrustedConfig_fields_item_object);
3440
- }
3441
- }
3442
- }
3443
- config.fields = untrustedConfig_fields_array;
3444
- }
3735
+ typeCheckConfig$d(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
3445
3736
  return config;
3446
3737
  }
3447
3738
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -3475,18 +3766,18 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3475
3766
  throw response;
3476
3767
  });
3477
3768
  }
3478
- const updatePromptTemplateVersionAdapterFactory = (luvio) => {
3479
- return function updatePromptTemplateVersion(untrustedConfig) {
3480
- const config = validateAdapterConfig$2(untrustedConfig, updatePromptTemplateVersion_ConfigPropertyNames);
3769
+ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
3770
+ return function putEinsteinPromptTemplateVersionStatus(untrustedConfig) {
3771
+ const config = validateAdapterConfig$2(untrustedConfig, putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames);
3481
3772
  // Invalid or incomplete config
3482
3773
  if (config === null) {
3483
- throw new Error('Invalid config for "updatePromptTemplateVersion"');
3774
+ throw new Error('Invalid config for "putEinsteinPromptTemplateVersionStatus"');
3484
3775
  }
3485
3776
  return buildNetworkSnapshot$2(luvio, config);
3486
3777
  };
3487
3778
  };
3488
3779
 
3489
- function validate$b(obj, path = 'WrappedValueMap') {
3780
+ function validate$d(obj, path = 'WrappedValueMap') {
3490
3781
  const v_error = (() => {
3491
3782
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3492
3783
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3509,7 +3800,7 @@ function validate$b(obj, path = 'WrappedValueMap') {
3509
3800
  return v_error === undefined ? null : v_error;
3510
3801
  }
3511
3802
 
3512
- function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
3803
+ function validate$c(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
3513
3804
  const v_error = (() => {
3514
3805
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3515
3806
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3517,7 +3808,7 @@ function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
3517
3808
  if (obj.additionalConfig !== undefined) {
3518
3809
  const obj_additionalConfig = obj.additionalConfig;
3519
3810
  const path_additionalConfig = path + '.additionalConfig';
3520
- const referencepath_additionalConfigValidationError = validate$q(obj_additionalConfig, path_additionalConfig);
3811
+ const referencepath_additionalConfigValidationError = validate$s(obj_additionalConfig, path_additionalConfig);
3521
3812
  if (referencepath_additionalConfigValidationError !== null) {
3522
3813
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
3523
3814
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3526,7 +3817,7 @@ function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
3526
3817
  }
3527
3818
  const obj_inputParams = obj.inputParams;
3528
3819
  const path_inputParams = path + '.inputParams';
3529
- const referencepath_inputParamsValidationError = validate$b(obj_inputParams, path_inputParams);
3820
+ const referencepath_inputParamsValidationError = validate$d(obj_inputParams, path_inputParams);
3530
3821
  if (referencepath_inputParamsValidationError !== null) {
3531
3822
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
3532
3823
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3562,6 +3853,244 @@ function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
3562
3853
  return v_error === undefined ? null : v_error;
3563
3854
  }
3564
3855
 
3856
+ const VERSION$b = "63584d83290e21bdff26b1bef3db119c";
3857
+ function validate$b(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
3858
+ const v_error = (() => {
3859
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3860
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3861
+ }
3862
+ if (obj.citationLocations !== undefined) {
3863
+ const obj_citationLocations = obj.citationLocations;
3864
+ const path_citationLocations = path + '.citationLocations';
3865
+ if (!ArrayIsArray(obj_citationLocations)) {
3866
+ return new TypeError('Expected "array" but received "' + typeof obj_citationLocations + '" (at "' + path_citationLocations + '")');
3867
+ }
3868
+ for (let i = 0; i < obj_citationLocations.length; i++) {
3869
+ const obj_citationLocations_item = obj_citationLocations[i];
3870
+ const path_citationLocations_item = path_citationLocations + '[' + i + ']';
3871
+ if (typeof obj_citationLocations_item !== 'number' || (typeof obj_citationLocations_item === 'number' && Math.floor(obj_citationLocations_item) !== obj_citationLocations_item)) {
3872
+ return new TypeError('Expected "integer" but received "' + typeof obj_citationLocations_item + '" (at "' + path_citationLocations_item + '")');
3873
+ }
3874
+ }
3875
+ }
3876
+ if (obj.claims !== undefined) {
3877
+ const obj_claims = obj.claims;
3878
+ const path_claims = path + '.claims';
3879
+ if (!ArrayIsArray(obj_claims)) {
3880
+ return new TypeError('Expected "array" but received "' + typeof obj_claims + '" (at "' + path_claims + '")');
3881
+ }
3882
+ for (let i = 0; i < obj_claims.length; i++) {
3883
+ const obj_claims_item = obj_claims[i];
3884
+ const path_claims_item = path_claims + '[' + i + ']';
3885
+ if (typeof obj_claims_item !== 'string') {
3886
+ return new TypeError('Expected "string" but received "' + typeof obj_claims_item + '" (at "' + path_claims_item + '")');
3887
+ }
3888
+ }
3889
+ }
3890
+ if (obj.link !== undefined) {
3891
+ const obj_link = obj.link;
3892
+ const path_link = path + '.link';
3893
+ if (typeof obj_link !== 'string') {
3894
+ return new TypeError('Expected "string" but received "' + typeof obj_link + '" (at "' + path_link + '")');
3895
+ }
3896
+ }
3897
+ if (obj.sourceObjectApiName !== undefined) {
3898
+ const obj_sourceObjectApiName = obj.sourceObjectApiName;
3899
+ const path_sourceObjectApiName = path + '.sourceObjectApiName';
3900
+ if (typeof obj_sourceObjectApiName !== 'string') {
3901
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectApiName + '" (at "' + path_sourceObjectApiName + '")');
3902
+ }
3903
+ }
3904
+ if (obj.sourceObjectRecordId !== undefined) {
3905
+ const obj_sourceObjectRecordId = obj.sourceObjectRecordId;
3906
+ const path_sourceObjectRecordId = path + '.sourceObjectRecordId';
3907
+ if (typeof obj_sourceObjectRecordId !== 'string') {
3908
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectRecordId + '" (at "' + path_sourceObjectRecordId + '")');
3909
+ }
3910
+ }
3911
+ })();
3912
+ return v_error === undefined ? null : v_error;
3913
+ }
3914
+ const select$d = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
3915
+ return {
3916
+ kind: 'Fragment',
3917
+ version: VERSION$b,
3918
+ private: [],
3919
+ selections: [
3920
+ {
3921
+ name: 'citationLocations',
3922
+ kind: 'Scalar',
3923
+ plural: true,
3924
+ required: false
3925
+ },
3926
+ {
3927
+ name: 'claims',
3928
+ kind: 'Scalar',
3929
+ plural: true,
3930
+ required: false
3931
+ },
3932
+ {
3933
+ name: 'link',
3934
+ kind: 'Scalar',
3935
+ required: false
3936
+ },
3937
+ {
3938
+ name: 'sourceObjectApiName',
3939
+ kind: 'Scalar',
3940
+ required: false
3941
+ },
3942
+ {
3943
+ name: 'sourceObjectRecordId',
3944
+ kind: 'Scalar',
3945
+ required: false
3946
+ }
3947
+ ]
3948
+ };
3949
+ };
3950
+ function equals$b(existing, incoming) {
3951
+ const existing_link = existing.link;
3952
+ const incoming_link = incoming.link;
3953
+ // if at least one of these optionals is defined
3954
+ if (existing_link !== undefined || incoming_link !== undefined) {
3955
+ // if one of these is not defined we know the other is defined and therefore
3956
+ // not equal
3957
+ if (existing_link === undefined || incoming_link === undefined) {
3958
+ return false;
3959
+ }
3960
+ if (!(existing_link === incoming_link)) {
3961
+ return false;
3962
+ }
3963
+ }
3964
+ const existing_sourceObjectApiName = existing.sourceObjectApiName;
3965
+ const incoming_sourceObjectApiName = incoming.sourceObjectApiName;
3966
+ // if at least one of these optionals is defined
3967
+ if (existing_sourceObjectApiName !== undefined || incoming_sourceObjectApiName !== undefined) {
3968
+ // if one of these is not defined we know the other is defined and therefore
3969
+ // not equal
3970
+ if (existing_sourceObjectApiName === undefined || incoming_sourceObjectApiName === undefined) {
3971
+ return false;
3972
+ }
3973
+ if (!(existing_sourceObjectApiName === incoming_sourceObjectApiName)) {
3974
+ return false;
3975
+ }
3976
+ }
3977
+ const existing_sourceObjectRecordId = existing.sourceObjectRecordId;
3978
+ const incoming_sourceObjectRecordId = incoming.sourceObjectRecordId;
3979
+ // if at least one of these optionals is defined
3980
+ if (existing_sourceObjectRecordId !== undefined || incoming_sourceObjectRecordId !== undefined) {
3981
+ // if one of these is not defined we know the other is defined and therefore
3982
+ // not equal
3983
+ if (existing_sourceObjectRecordId === undefined || incoming_sourceObjectRecordId === undefined) {
3984
+ return false;
3985
+ }
3986
+ if (!(existing_sourceObjectRecordId === incoming_sourceObjectRecordId)) {
3987
+ return false;
3988
+ }
3989
+ }
3990
+ const existing_citationLocations = existing.citationLocations;
3991
+ const incoming_citationLocations = incoming.citationLocations;
3992
+ // if at least one of these optionals is defined
3993
+ if (existing_citationLocations !== undefined || incoming_citationLocations !== undefined) {
3994
+ // if one of these is not defined we know the other is defined and therefore
3995
+ // not equal
3996
+ if (existing_citationLocations === undefined || incoming_citationLocations === undefined) {
3997
+ return false;
3998
+ }
3999
+ const equals_citationLocations_items = equalsArray(existing_citationLocations, incoming_citationLocations, (existing_citationLocations_item, incoming_citationLocations_item) => {
4000
+ if (!(existing_citationLocations_item === incoming_citationLocations_item)) {
4001
+ return false;
4002
+ }
4003
+ });
4004
+ if (equals_citationLocations_items === false) {
4005
+ return false;
4006
+ }
4007
+ }
4008
+ const existing_claims = existing.claims;
4009
+ const incoming_claims = incoming.claims;
4010
+ // if at least one of these optionals is defined
4011
+ if (existing_claims !== undefined || incoming_claims !== undefined) {
4012
+ // if one of these is not defined we know the other is defined and therefore
4013
+ // not equal
4014
+ if (existing_claims === undefined || incoming_claims === undefined) {
4015
+ return false;
4016
+ }
4017
+ const equals_claims_items = equalsArray(existing_claims, incoming_claims, (existing_claims_item, incoming_claims_item) => {
4018
+ if (!(existing_claims_item === incoming_claims_item)) {
4019
+ return false;
4020
+ }
4021
+ });
4022
+ if (equals_claims_items === false) {
4023
+ return false;
4024
+ }
4025
+ }
4026
+ return true;
4027
+ }
4028
+
4029
+ const VERSION$a = "bcc0ea08323732f4187dd2b9f70fea6c";
4030
+ function validate$a(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
4031
+ const v_error = (() => {
4032
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4033
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4034
+ }
4035
+ if (obj.citedReferences !== undefined) {
4036
+ const obj_citedReferences = obj.citedReferences;
4037
+ const path_citedReferences = path + '.citedReferences';
4038
+ if (!ArrayIsArray(obj_citedReferences)) {
4039
+ return new TypeError('Expected "array" but received "' + typeof obj_citedReferences + '" (at "' + path_citedReferences + '")');
4040
+ }
4041
+ for (let i = 0; i < obj_citedReferences.length; i++) {
4042
+ const obj_citedReferences_item = obj_citedReferences[i];
4043
+ const path_citedReferences_item = path_citedReferences + '[' + i + ']';
4044
+ const referencepath_citedReferences_itemValidationError = validate$b(obj_citedReferences_item, path_citedReferences_item);
4045
+ if (referencepath_citedReferences_itemValidationError !== null) {
4046
+ let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
4047
+ message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4048
+ return new TypeError(message);
4049
+ }
4050
+ }
4051
+ }
4052
+ })();
4053
+ return v_error === undefined ? null : v_error;
4054
+ }
4055
+ const select$c = function EinsteinLlmGenerationCitationRepresentationSelect() {
4056
+ const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$d();
4057
+ return {
4058
+ kind: 'Fragment',
4059
+ version: VERSION$a,
4060
+ private: [],
4061
+ selections: [
4062
+ {
4063
+ name: 'citedReferences',
4064
+ kind: 'Object',
4065
+ plural: true,
4066
+ selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections,
4067
+ required: false
4068
+ }
4069
+ ]
4070
+ };
4071
+ };
4072
+ function equals$a(existing, incoming) {
4073
+ const existing_citedReferences = existing.citedReferences;
4074
+ const incoming_citedReferences = incoming.citedReferences;
4075
+ // if at least one of these optionals is defined
4076
+ if (existing_citedReferences !== undefined || incoming_citedReferences !== undefined) {
4077
+ // if one of these is not defined we know the other is defined and therefore
4078
+ // not equal
4079
+ if (existing_citedReferences === undefined || incoming_citedReferences === undefined) {
4080
+ return false;
4081
+ }
4082
+ const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
4083
+ if (!(equals$b(existing_citedReferences_item, incoming_citedReferences_item))) {
4084
+ return false;
4085
+ }
4086
+ });
4087
+ if (equals_citedReferences_items === false) {
4088
+ return false;
4089
+ }
4090
+ }
4091
+ return true;
4092
+ }
4093
+
3565
4094
  const VERSION$9 = "f62ac44b024b123f079b57f349e05230";
3566
4095
  function validate$9(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
3567
4096
  const v_error = (() => {
@@ -4064,12 +4593,22 @@ function equals$4(existing, incoming) {
4064
4593
  }
4065
4594
 
4066
4595
  const TTL$1 = 100;
4067
- const VERSION$3 = "492c5045545dfbf96d7f660532a30499";
4596
+ const VERSION$3 = "25461f267931be0754b36e2788461191";
4068
4597
  function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
4069
4598
  const v_error = (() => {
4070
4599
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4071
4600
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4072
4601
  }
4602
+ if (obj.citations !== undefined) {
4603
+ const obj_citations = obj.citations;
4604
+ const path_citations = path + '.citations';
4605
+ const referencepath_citationsValidationError = validate$a(obj_citations, path_citations);
4606
+ if (referencepath_citationsValidationError !== null) {
4607
+ let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
4608
+ message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4609
+ return new TypeError(message);
4610
+ }
4611
+ }
4073
4612
  if (obj.fileData !== undefined) {
4074
4613
  const obj_fileData = obj.fileData;
4075
4614
  const path_fileData = path + '.fileData';
@@ -4112,7 +4651,7 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
4112
4651
  for (let i = 0; i < obj_generations.length; i++) {
4113
4652
  const obj_generations_item = obj_generations[i];
4114
4653
  const path_generations_item = path_generations + '[' + i + ']';
4115
- const referencepath_generations_itemValidationError = validate$m(obj_generations_item, path_generations_item);
4654
+ const referencepath_generations_itemValidationError = validate$o(obj_generations_item, path_generations_item);
4116
4655
  if (referencepath_generations_itemValidationError !== null) {
4117
4656
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
4118
4657
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4139,7 +4678,7 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
4139
4678
  const path_parameters = path + '.parameters';
4140
4679
  let obj_parameters_union0 = null;
4141
4680
  const obj_parameters_union0_error = (() => {
4142
- const referencepath_parametersValidationError = validate$l(obj_parameters, path_parameters);
4681
+ const referencepath_parametersValidationError = validate$n(obj_parameters, path_parameters);
4143
4682
  if (referencepath_parametersValidationError !== null) {
4144
4683
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
4145
4684
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4268,10 +4807,11 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
4268
4807
  return input;
4269
4808
  }
4270
4809
  const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
4810
+ const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$c();
4271
4811
  const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$a();
4272
4812
  const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$9();
4273
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$p();
4274
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$o();
4813
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$u();
4814
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$t();
4275
4815
  const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$7();
4276
4816
  const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$6();
4277
4817
  return {
@@ -4279,6 +4819,12 @@ const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
4279
4819
  version: VERSION$3,
4280
4820
  private: [],
4281
4821
  selections: [
4822
+ {
4823
+ name: 'citations',
4824
+ kind: 'Object',
4825
+ selections: EinsteinLlmGenerationCitationRepresentation__selections,
4826
+ required: false
4827
+ },
4282
4828
  {
4283
4829
  name: 'fileData',
4284
4830
  kind: 'Object',
@@ -4357,6 +4903,19 @@ function equals$3(existing, incoming) {
4357
4903
  if (!(existing_requestId === incoming_requestId)) {
4358
4904
  return false;
4359
4905
  }
4906
+ const existing_citations = existing.citations;
4907
+ const incoming_citations = incoming.citations;
4908
+ // if at least one of these optionals is defined
4909
+ if (existing_citations !== undefined || incoming_citations !== undefined) {
4910
+ // if one of these is not defined we know the other is defined and therefore
4911
+ // not equal
4912
+ if (existing_citations === undefined || incoming_citations === undefined) {
4913
+ return false;
4914
+ }
4915
+ if (!(equals$a(existing_citations, incoming_citations))) {
4916
+ return false;
4917
+ }
4918
+ }
4360
4919
  const existing_fileData = existing.fileData;
4361
4920
  const incoming_fileData = incoming.fileData;
4362
4921
  // if at least one of these optionals is defined
@@ -4396,7 +4955,7 @@ function equals$3(existing, incoming) {
4396
4955
  const existing_generations = existing.generations;
4397
4956
  const incoming_generations = incoming.generations;
4398
4957
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
4399
- if (!(equals$g(existing_generations_item, incoming_generations_item))) {
4958
+ if (!(equals$j(existing_generations_item, incoming_generations_item))) {
4400
4959
  return false;
4401
4960
  }
4402
4961
  });
@@ -4426,7 +4985,7 @@ function equals$3(existing, incoming) {
4426
4985
  if (!(existing_parameters === incoming_parameters
4427
4986
  || (existing_parameters != null &&
4428
4987
  incoming_parameters != null &&
4429
- equals$f(existing_parameters, incoming_parameters)))) {
4988
+ equals$i(existing_parameters, incoming_parameters)))) {
4430
4989
  return false;
4431
4990
  }
4432
4991
  const existing_prompt = existing.prompt;
@@ -4556,12 +5115,12 @@ const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
4556
5115
  generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
4557
5116
  ];
4558
5117
  const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
4559
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5118
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
4560
5119
  function typeCheckConfig$1(untrustedConfig) {
4561
5120
  const config = {};
4562
- typeCheckConfig$b(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
5121
+ typeCheckConfig$d(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
4563
5122
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
4564
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$a(untrustedConfig_promptTemplateGenerationsInput);
5123
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$c(untrustedConfig_promptTemplateGenerationsInput);
4565
5124
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
4566
5125
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
4567
5126
  }
@@ -4922,14 +5481,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
4922
5481
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
4923
5482
  ];
4924
5483
  const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOutputLanguages_ConfigPropertyMetadata);
4925
- const createResourceParams = /*#__PURE__*/ createResourceParams$b(getOutputLanguages_ConfigPropertyMetadata);
5484
+ const createResourceParams = /*#__PURE__*/ createResourceParams$d(getOutputLanguages_ConfigPropertyMetadata);
4926
5485
  function keyBuilder(luvio, config) {
4927
5486
  const resourceParams = createResourceParams(config);
4928
5487
  return keyBuilder$1(luvio, resourceParams);
4929
5488
  }
4930
5489
  function typeCheckConfig(untrustedConfig) {
4931
5490
  const config = {};
4932
- typeCheckConfig$b(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
5491
+ typeCheckConfig$d(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
4933
5492
  return config;
4934
5493
  }
4935
5494
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4978,7 +5537,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4978
5537
  });
4979
5538
  }
4980
5539
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4981
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
5540
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4982
5541
  }
4983
5542
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4984
5543
  const { luvio, config } = context;
@@ -5003,4 +5562,4 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
5003
5562
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
5004
5563
  };
5005
5564
 
5006
- export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, createPromptTemplateAdapterFactory, createPromptTemplateVersionAdapterFactory, getInputMappedDataProvidersAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplatesAdapterFactory, updatePromptTemplateVersionAdapterFactory };
5565
+ export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, createPromptTemplateAdapterFactory, createPromptTemplateVersionAdapterFactory, getDataProviderInstanceConfigAdapterFactory, getInputMappedDataProvidersAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplatesAdapterFactory, putEinsteinPromptTemplateVersionStatusAdapterFactory, updatePromptTemplateVersionAdapterFactory };