@salesforce/lds-adapters-service-einsteinllm 1.380.0-dev1 → 1.381.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.
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -178,7 +178,7 @@ function createLink(ref) {
178
178
  };
179
179
  }
180
180
 
181
- function validate$t(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
181
+ function validate$x(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
182
182
  const v_error = (() => {
183
183
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
184
184
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -222,7 +222,7 @@ function validate$t(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
222
222
  return v_error === undefined ? null : v_error;
223
223
  }
224
224
 
225
- function validate$s(obj, path = 'WrappedListString') {
225
+ function validate$w(obj, path = 'WrappedListString') {
226
226
  const v_error = (() => {
227
227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
228
228
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -243,14 +243,14 @@ function validate$s(obj, path = 'WrappedListString') {
243
243
  return v_error === undefined ? null : v_error;
244
244
  }
245
245
 
246
- function validate$r(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
246
+ function validate$v(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
247
247
  const v_error = (() => {
248
248
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
249
249
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
250
250
  }
251
251
  const obj_additionalConfig = obj.additionalConfig;
252
252
  const path_additionalConfig = path + '.additionalConfig';
253
- const referencepath_additionalConfigValidationError = validate$t(obj_additionalConfig, path_additionalConfig);
253
+ const referencepath_additionalConfigValidationError = validate$x(obj_additionalConfig, path_additionalConfig);
254
254
  if (referencepath_additionalConfigValidationError !== null) {
255
255
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
256
256
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -258,7 +258,7 @@ function validate$r(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
258
258
  }
259
259
  const obj_prompts = obj.prompts;
260
260
  const path_prompts = path + '.prompts';
261
- const referencepath_promptsValidationError = validate$s(obj_prompts, path_prompts);
261
+ const referencepath_promptsValidationError = validate$w(obj_prompts, path_prompts);
262
262
  if (referencepath_promptsValidationError !== null) {
263
263
  let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
264
264
  message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -275,8 +275,8 @@ function validate$r(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
275
275
  return v_error === undefined ? null : v_error;
276
276
  }
277
277
 
278
- const VERSION$k = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
- function validate$q(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
278
+ const VERSION$l = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
+ function validate$u(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
280
280
  const v_error = (() => {
281
281
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
282
282
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -297,10 +297,10 @@ function validate$q(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
297
297
  })();
298
298
  return v_error === undefined ? null : v_error;
299
299
  }
300
- const select$u = function EinsteinLlmEmbeddingItemRepresentationSelect() {
300
+ const select$w = function EinsteinLlmEmbeddingItemRepresentationSelect() {
301
301
  return {
302
302
  kind: 'Fragment',
303
- version: VERSION$k,
303
+ version: VERSION$l,
304
304
  private: [],
305
305
  selections: [
306
306
  {
@@ -315,7 +315,7 @@ const select$u = function EinsteinLlmEmbeddingItemRepresentationSelect() {
315
315
  ]
316
316
  };
317
317
  };
318
- function equals$k(existing, incoming) {
318
+ function equals$l(existing, incoming) {
319
319
  const existing_index = existing.index;
320
320
  const incoming_index = incoming.index;
321
321
  if (!(existing_index === incoming_index)) {
@@ -334,9 +334,9 @@ function equals$k(existing, incoming) {
334
334
  return true;
335
335
  }
336
336
 
337
- const TTL$7 = 100;
338
- const VERSION$j = "d9873651f09d29764ef4d4231eb653d7";
339
- function validate$p(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
337
+ const TTL$8 = 100;
338
+ const VERSION$k = "d9873651f09d29764ef4d4231eb653d7";
339
+ function validate$t(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
340
340
  const v_error = (() => {
341
341
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
342
342
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -349,7 +349,7 @@ function validate$p(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
349
349
  for (let i = 0; i < obj_embeddings.length; i++) {
350
350
  const obj_embeddings_item = obj_embeddings[i];
351
351
  const path_embeddings_item = path_embeddings + '[' + i + ']';
352
- const referencepath_embeddings_itemValidationError = validate$q(obj_embeddings_item, path_embeddings_item);
352
+ const referencepath_embeddings_itemValidationError = validate$u(obj_embeddings_item, path_embeddings_item);
353
353
  if (referencepath_embeddings_itemValidationError !== null) {
354
354
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
355
355
  message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -373,15 +373,15 @@ function validate$p(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
373
373
  })();
374
374
  return v_error === undefined ? null : v_error;
375
375
  }
376
- const RepresentationType$7 = 'EinsteinLlmEmbeddingsRepresentation';
377
- function normalize$7(input, existing, path, luvio, store, timestamp) {
376
+ const RepresentationType$8 = 'EinsteinLlmEmbeddingsRepresentation';
377
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
378
378
  return input;
379
379
  }
380
- const select$t = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$u();
380
+ const select$v = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$w();
382
382
  return {
383
383
  kind: 'Fragment',
384
- version: VERSION$j,
384
+ version: VERSION$k,
385
385
  private: [],
386
386
  selections: [
387
387
  {
@@ -398,11 +398,11 @@ const select$t = function EinsteinLlmEmbeddingsRepresentationSelect() {
398
398
  ]
399
399
  };
400
400
  };
401
- function equals$j(existing, incoming) {
401
+ function equals$k(existing, incoming) {
402
402
  const existing_embeddings = existing.embeddings;
403
403
  const incoming_embeddings = incoming.embeddings;
404
404
  const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
405
- if (!(equals$k(existing_embeddings_item, incoming_embeddings_item))) {
405
+ if (!(equals$l(existing_embeddings_item, incoming_embeddings_item))) {
406
406
  return false;
407
407
  }
408
408
  });
@@ -421,44 +421,44 @@ function equals$j(existing, incoming) {
421
421
  }
422
422
  return true;
423
423
  }
424
- const ingest$7 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
424
+ const ingest$8 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
425
425
  if (process.env.NODE_ENV !== 'production') {
426
- const validateError = validate$p(input);
426
+ const validateError = validate$t(input);
427
427
  if (validateError !== null) {
428
428
  throw validateError;
429
429
  }
430
430
  }
431
431
  const key = path.fullPath;
432
- const ttlToUse = TTL$7;
433
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$j, RepresentationType$7, equals$j);
432
+ const ttlToUse = TTL$8;
433
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$k, RepresentationType$8, equals$k);
434
434
  return createLink(key);
435
435
  };
436
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
436
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
437
437
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
438
438
  const rootKey = fullPathFactory();
439
439
  rootKeySet.set(rootKey, {
440
440
  namespace: keyPrefix,
441
- representationName: RepresentationType$7,
441
+ representationName: RepresentationType$8,
442
442
  mergeable: false
443
443
  });
444
444
  }
445
445
 
446
- function select$s(luvio, params) {
447
- return select$t();
446
+ function select$u(luvio, params) {
447
+ return select$v();
448
448
  }
449
- function keyBuilder$b(luvio, params) {
449
+ function keyBuilder$d(luvio, params) {
450
450
  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) + ')';
451
451
  }
452
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
453
- getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
452
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
453
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
454
454
  }
455
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
455
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
456
456
  const { body } = response;
457
- const key = keyBuilder$b(luvio, resourceParams);
458
- luvio.storeIngest(key, ingest$7, body);
457
+ const key = keyBuilder$d(luvio, resourceParams);
458
+ luvio.storeIngest(key, ingest$8, body);
459
459
  const snapshot = luvio.storeLookup({
460
460
  recordId: key,
461
- node: select$s(),
461
+ node: select$u(),
462
462
  variables: {},
463
463
  }, snapshotRefresh);
464
464
  if (process.env.NODE_ENV !== 'production') {
@@ -469,19 +469,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
469
469
  deepFreeze(snapshot.data);
470
470
  return snapshot;
471
471
  }
472
- function ingestError$3(luvio, params, error, snapshotRefresh) {
473
- const key = keyBuilder$b(luvio, params);
472
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
473
+ const key = keyBuilder$d(luvio, params);
474
474
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
475
475
  const storeMetadataParams = {
476
- ttl: TTL$7,
476
+ ttl: TTL$8,
477
477
  namespace: keyPrefix,
478
- version: VERSION$j,
479
- representationName: RepresentationType$7
478
+ version: VERSION$k,
479
+ representationName: RepresentationType$8
480
480
  };
481
481
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
482
482
  return errorSnapshot;
483
483
  }
484
- function createResourceRequest$9(config) {
484
+ function createResourceRequest$a(config) {
485
485
  const headers = {};
486
486
  return {
487
487
  baseUri: '/services/data/v65.0',
@@ -495,97 +495,97 @@ function createResourceRequest$9(config) {
495
495
  };
496
496
  }
497
497
 
498
- const adapterName$9 = 'createEmbeddings';
498
+ const adapterName$a = 'createEmbeddings';
499
499
  const createEmbeddings_ConfigPropertyMetadata = [
500
500
  generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
501
501
  ];
502
- const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createEmbeddings_ConfigPropertyMetadata);
503
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(createEmbeddings_ConfigPropertyMetadata);
504
- function keyBuilder$a(luvio, config) {
505
- const resourceParams = createResourceParams$9(config);
506
- return keyBuilder$b(luvio, resourceParams);
502
+ const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createEmbeddings_ConfigPropertyMetadata);
503
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(createEmbeddings_ConfigPropertyMetadata);
504
+ function keyBuilder$c(luvio, config) {
505
+ const resourceParams = createResourceParams$a(config);
506
+ return keyBuilder$d(luvio, resourceParams);
507
507
  }
508
- function typeCheckConfig$9(untrustedConfig) {
508
+ function typeCheckConfig$a(untrustedConfig) {
509
509
  const config = {};
510
510
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
511
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$r(untrustedConfig_embeddingsInput);
511
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$v(untrustedConfig_embeddingsInput);
512
512
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
513
513
  config.embeddingsInput = untrustedConfig_embeddingsInput;
514
514
  }
515
515
  return config;
516
516
  }
517
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
517
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
518
518
  if (!untrustedIsObject(untrustedConfig)) {
519
519
  return null;
520
520
  }
521
521
  if (process.env.NODE_ENV !== 'production') {
522
522
  validateConfig(untrustedConfig, configPropertyNames);
523
523
  }
524
- const config = typeCheckConfig$9(untrustedConfig);
524
+ const config = typeCheckConfig$a(untrustedConfig);
525
525
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
526
526
  return null;
527
527
  }
528
528
  return config;
529
529
  }
530
- function adapterFragment$3(luvio, config) {
531
- createResourceParams$9(config);
532
- return select$s();
530
+ function adapterFragment$4(luvio, config) {
531
+ createResourceParams$a(config);
532
+ return select$u();
533
533
  }
534
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
535
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
534
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
535
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
536
536
  config,
537
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
537
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
538
538
  });
539
539
  return luvio.storeBroadcast().then(() => snapshot);
540
540
  }
541
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
542
- const snapshot = ingestError$3(luvio, resourceParams, response, {
541
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
542
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
543
543
  config,
544
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
544
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
545
545
  });
546
546
  return luvio.storeBroadcast().then(() => snapshot);
547
547
  }
548
- function buildNetworkSnapshot$9(luvio, config, options) {
549
- const resourceParams = createResourceParams$9(config);
550
- const request = createResourceRequest$9(resourceParams);
548
+ function buildNetworkSnapshot$a(luvio, config, options) {
549
+ const resourceParams = createResourceParams$a(config);
550
+ const request = createResourceRequest$a(resourceParams);
551
551
  return luvio.dispatchResourceRequest(request, options)
552
552
  .then((response) => {
553
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
553
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
554
554
  const cache = new StoreKeyMap();
555
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
555
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
556
556
  return cache;
557
557
  });
558
558
  }, (response) => {
559
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
559
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
560
560
  });
561
561
  }
562
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
563
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', false);
562
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
563
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, 'get', false);
564
564
  }
565
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
565
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
566
566
  const { luvio, config } = context;
567
567
  const selector = {
568
- recordId: keyBuilder$a(luvio, config),
569
- node: adapterFragment$3(luvio, config),
568
+ recordId: keyBuilder$c(luvio, config),
569
+ node: adapterFragment$4(luvio, config),
570
570
  variables: {},
571
571
  };
572
572
  const cacheSnapshot = storeLookup(selector, {
573
573
  config,
574
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
574
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
575
575
  });
576
576
  return cacheSnapshot;
577
577
  }
578
578
  const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEmbeddings(untrustedConfig, requestContext) {
579
- const config = validateAdapterConfig$9(untrustedConfig, createEmbeddings_ConfigPropertyNames);
579
+ const config = validateAdapterConfig$a(untrustedConfig, createEmbeddings_ConfigPropertyNames);
580
580
  // Invalid or incomplete config
581
581
  if (config === null) {
582
582
  return null;
583
583
  }
584
584
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
585
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
585
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
586
586
  };
587
587
 
588
- function validate$o(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
588
+ function validate$s(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
589
589
  const v_error = (() => {
590
590
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
591
591
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -632,9 +632,9 @@ function validate$o(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
632
632
  return v_error === undefined ? null : v_error;
633
633
  }
634
634
 
635
- const TTL$6 = 100;
636
- const VERSION$i = "4033328f65865dd5d80c68a7573a4522";
637
- function validate$n(obj, path = 'EinsteinLlmFeedbackRepresentation') {
635
+ const TTL$7 = 100;
636
+ const VERSION$j = "4033328f65865dd5d80c68a7573a4522";
637
+ function validate$r(obj, path = 'EinsteinLlmFeedbackRepresentation') {
638
638
  const v_error = (() => {
639
639
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
640
640
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -647,23 +647,23 @@ function validate$n(obj, path = 'EinsteinLlmFeedbackRepresentation') {
647
647
  })();
648
648
  return v_error === undefined ? null : v_error;
649
649
  }
650
- const RepresentationType$6 = 'EinsteinLlmFeedbackRepresentation';
651
- function keyBuilder$9(luvio, config) {
652
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.message;
650
+ const RepresentationType$7 = 'EinsteinLlmFeedbackRepresentation';
651
+ function keyBuilder$b(luvio, config) {
652
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.message;
653
653
  }
654
654
  function keyBuilderFromType$3(luvio, object) {
655
655
  const keyParams = {
656
656
  message: object.message
657
657
  };
658
- return keyBuilder$9(luvio, keyParams);
658
+ return keyBuilder$b(luvio, keyParams);
659
659
  }
660
- function normalize$6(input, existing, path, luvio, store, timestamp) {
660
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
661
661
  return input;
662
662
  }
663
- const select$r = function EinsteinLlmFeedbackRepresentationSelect() {
663
+ const select$t = function EinsteinLlmFeedbackRepresentationSelect() {
664
664
  return {
665
665
  kind: 'Fragment',
666
- version: VERSION$i,
666
+ version: VERSION$j,
667
667
  private: [],
668
668
  selections: [
669
669
  {
@@ -673,7 +673,7 @@ const select$r = function EinsteinLlmFeedbackRepresentationSelect() {
673
673
  ]
674
674
  };
675
675
  };
676
- function equals$i(existing, incoming) {
676
+ function equals$j(existing, incoming) {
677
677
  const existing_message = existing.message;
678
678
  const incoming_message = incoming.message;
679
679
  if (!(existing_message === incoming_message)) {
@@ -681,41 +681,41 @@ function equals$i(existing, incoming) {
681
681
  }
682
682
  return true;
683
683
  }
684
- const ingest$6 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
684
+ const ingest$7 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
685
685
  if (process.env.NODE_ENV !== 'production') {
686
- const validateError = validate$n(input);
686
+ const validateError = validate$r(input);
687
687
  if (validateError !== null) {
688
688
  throw validateError;
689
689
  }
690
690
  }
691
691
  const key = keyBuilderFromType$3(luvio, input);
692
- const ttlToUse = TTL$6;
693
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$i, RepresentationType$6, equals$i);
692
+ const ttlToUse = TTL$7;
693
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$j, RepresentationType$7, equals$j);
694
694
  return createLink(key);
695
695
  };
696
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
696
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
697
697
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
698
698
  const rootKey = keyBuilderFromType$3(luvio, input);
699
699
  rootKeySet.set(rootKey, {
700
700
  namespace: keyPrefix,
701
- representationName: RepresentationType$6,
701
+ representationName: RepresentationType$7,
702
702
  mergeable: false
703
703
  });
704
704
  }
705
705
 
706
- function select$q(luvio, params) {
707
- return select$r();
706
+ function select$s(luvio, params) {
707
+ return select$t();
708
708
  }
709
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
710
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
709
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
710
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
711
711
  }
712
- function ingestSuccess$8(luvio, resourceParams, response) {
712
+ function ingestSuccess$9(luvio, resourceParams, response) {
713
713
  const { body } = response;
714
714
  const key = keyBuilderFromType$3(luvio, body);
715
- luvio.storeIngest(key, ingest$6, body);
715
+ luvio.storeIngest(key, ingest$7, body);
716
716
  const snapshot = luvio.storeLookup({
717
717
  recordId: key,
718
- node: select$q(),
718
+ node: select$s(),
719
719
  variables: {},
720
720
  });
721
721
  if (process.env.NODE_ENV !== 'production') {
@@ -726,7 +726,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
726
726
  deepFreeze(snapshot.data);
727
727
  return snapshot;
728
728
  }
729
- function createResourceRequest$8(config) {
729
+ function createResourceRequest$9(config) {
730
730
  const headers = {};
731
731
  return {
732
732
  baseUri: '/services/data/v65.0',
@@ -740,45 +740,45 @@ function createResourceRequest$8(config) {
740
740
  };
741
741
  }
742
742
 
743
- const adapterName$8 = 'createFeedback';
743
+ const adapterName$9 = 'createFeedback';
744
744
  const createFeedback_ConfigPropertyMetadata = [
745
745
  generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
746
746
  ];
747
- const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createFeedback_ConfigPropertyMetadata);
748
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(createFeedback_ConfigPropertyMetadata);
749
- function typeCheckConfig$8(untrustedConfig) {
747
+ const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createFeedback_ConfigPropertyMetadata);
748
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createFeedback_ConfigPropertyMetadata);
749
+ function typeCheckConfig$9(untrustedConfig) {
750
750
  const config = {};
751
751
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
752
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$o(untrustedConfig_feedbackInput);
752
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$s(untrustedConfig_feedbackInput);
753
753
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
754
754
  config.feedbackInput = untrustedConfig_feedbackInput;
755
755
  }
756
756
  return config;
757
757
  }
758
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
758
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
759
759
  if (!untrustedIsObject(untrustedConfig)) {
760
760
  return null;
761
761
  }
762
762
  if (process.env.NODE_ENV !== 'production') {
763
763
  validateConfig(untrustedConfig, configPropertyNames);
764
764
  }
765
- const config = typeCheckConfig$8(untrustedConfig);
765
+ const config = typeCheckConfig$9(untrustedConfig);
766
766
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
767
767
  return null;
768
768
  }
769
769
  return config;
770
770
  }
771
- function buildNetworkSnapshot$8(luvio, config, options) {
772
- const resourceParams = createResourceParams$8(config);
773
- const request = createResourceRequest$8(resourceParams);
771
+ function buildNetworkSnapshot$9(luvio, config, options) {
772
+ const resourceParams = createResourceParams$9(config);
773
+ const request = createResourceRequest$9(resourceParams);
774
774
  return luvio.dispatchResourceRequest(request, options)
775
775
  .then((response) => {
776
776
  return luvio.handleSuccessResponse(() => {
777
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
777
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
778
778
  return luvio.storeBroadcast().then(() => snapshot);
779
779
  }, () => {
780
780
  const cache = new StoreKeyMap();
781
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
781
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
782
782
  return cache;
783
783
  });
784
784
  }, (response) => {
@@ -788,16 +788,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
788
788
  }
789
789
  const createFeedbackAdapterFactory = (luvio) => {
790
790
  return function createFeedback(untrustedConfig) {
791
- const config = validateAdapterConfig$8(untrustedConfig, createFeedback_ConfigPropertyNames);
791
+ const config = validateAdapterConfig$9(untrustedConfig, createFeedback_ConfigPropertyNames);
792
792
  // Invalid or incomplete config
793
793
  if (config === null) {
794
794
  throw new Error('Invalid config for "createFeedback"');
795
795
  }
796
- return buildNetworkSnapshot$8(luvio, config);
796
+ return buildNetworkSnapshot$9(luvio, config);
797
797
  };
798
798
  };
799
799
 
800
- function validate$m(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
800
+ function validate$q(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
801
801
  const v_error = (() => {
802
802
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
803
803
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -880,7 +880,7 @@ function validate$m(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
880
880
  return v_error === undefined ? null : v_error;
881
881
  }
882
882
 
883
- function validate$l(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
883
+ function validate$p(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
884
884
  const v_error = (() => {
885
885
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
886
886
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -888,7 +888,7 @@ function validate$l(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
888
888
  if (obj.additionalConfig !== undefined) {
889
889
  const obj_additionalConfig = obj.additionalConfig;
890
890
  const path_additionalConfig = path + '.additionalConfig';
891
- const referencepath_additionalConfigValidationError = validate$m(obj_additionalConfig, path_additionalConfig);
891
+ const referencepath_additionalConfigValidationError = validate$q(obj_additionalConfig, path_additionalConfig);
892
892
  if (referencepath_additionalConfigValidationError !== null) {
893
893
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
894
894
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -911,8 +911,8 @@ function validate$l(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
911
911
  return v_error === undefined ? null : v_error;
912
912
  }
913
913
 
914
- const VERSION$h = "9ebac74e6f964c363d5fd1913df363af";
915
- function validate$k(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
914
+ const VERSION$i = "9ebac74e6f964c363d5fd1913df363af";
915
+ function validate$o(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
916
916
  const v_error = (() => {
917
917
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
918
918
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -948,10 +948,10 @@ function validate$k(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
948
948
  })();
949
949
  return v_error === undefined ? null : v_error;
950
950
  }
951
- const select$p = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
951
+ const select$r = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
952
952
  return {
953
953
  kind: 'Fragment',
954
- version: VERSION$h,
954
+ version: VERSION$i,
955
955
  private: [],
956
956
  selections: [
957
957
  {
@@ -962,7 +962,7 @@ const select$p = function EinsteinLlmGenerationsContentQualityRepresentationSele
962
962
  ]
963
963
  };
964
964
  };
965
- function equals$h(existing, incoming) {
965
+ function equals$i(existing, incoming) {
966
966
  const existing_isToxicityDetected = existing.isToxicityDetected;
967
967
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
968
968
  // if at least one of these optionals is defined
@@ -979,8 +979,8 @@ function equals$h(existing, incoming) {
979
979
  return true;
980
980
  }
981
981
 
982
- const VERSION$g = "77af44a252cb5b45b4d9a8101368d2aa";
983
- function validate$j(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
982
+ const VERSION$h = "77af44a252cb5b45b4d9a8101368d2aa";
983
+ function validate$n(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
984
984
  const v_error = (() => {
985
985
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
986
986
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1184,10 +1184,10 @@ function validate$j(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1184
1184
  })();
1185
1185
  return v_error === undefined ? null : v_error;
1186
1186
  }
1187
- const select$o = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1187
+ const select$q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1188
1188
  return {
1189
1189
  kind: 'Fragment',
1190
- version: VERSION$g,
1190
+ version: VERSION$h,
1191
1191
  private: [],
1192
1192
  selections: [
1193
1193
  {
@@ -1228,7 +1228,7 @@ const select$o = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1228
1228
  ]
1229
1229
  };
1230
1230
  };
1231
- function equals$g(existing, incoming) {
1231
+ function equals$h(existing, incoming) {
1232
1232
  const existing_hateScore = existing.hateScore;
1233
1233
  const incoming_hateScore = incoming.hateScore;
1234
1234
  // if at least one of these optionals is defined
@@ -1323,8 +1323,8 @@ function equals$g(existing, incoming) {
1323
1323
  return true;
1324
1324
  }
1325
1325
 
1326
- const VERSION$f = "4a07778ff6c595d91c575188146647a1";
1327
- function validate$i(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1326
+ const VERSION$g = "4a07778ff6c595d91c575188146647a1";
1327
+ function validate$m(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1328
1328
  const v_error = (() => {
1329
1329
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1330
1330
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1334,7 +1334,7 @@ function validate$i(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1334
1334
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
1335
1335
  let obj_contentQualityRepresentation_union0 = null;
1336
1336
  const obj_contentQualityRepresentation_union0_error = (() => {
1337
- const referencepath_contentQualityRepresentationValidationError = validate$k(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1337
+ const referencepath_contentQualityRepresentationValidationError = validate$o(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1338
1338
  if (referencepath_contentQualityRepresentationValidationError !== null) {
1339
1339
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
1340
1340
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1382,7 +1382,7 @@ function validate$i(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1382
1382
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
1383
1383
  let obj_safetyScoreRepresentation_union0 = null;
1384
1384
  const obj_safetyScoreRepresentation_union0_error = (() => {
1385
- const referencepath_safetyScoreRepresentationValidationError = validate$j(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1385
+ const referencepath_safetyScoreRepresentationValidationError = validate$n(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1386
1386
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
1387
1387
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
1388
1388
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1416,12 +1416,12 @@ function validate$i(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1416
1416
  })();
1417
1417
  return v_error === undefined ? null : v_error;
1418
1418
  }
1419
- const select$n = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$p();
1421
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$o();
1419
+ const select$p = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$r();
1421
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$q();
1422
1422
  return {
1423
1423
  kind: 'Fragment',
1424
- version: VERSION$f,
1424
+ version: VERSION$g,
1425
1425
  private: [],
1426
1426
  selections: [
1427
1427
  {
@@ -1458,7 +1458,7 @@ const select$n = function EinsteinLlmGenerationItemRepresentationSelect() {
1458
1458
  ]
1459
1459
  };
1460
1460
  };
1461
- function equals$f(existing, incoming) {
1461
+ function equals$g(existing, incoming) {
1462
1462
  const existing_isSummarized = existing.isSummarized;
1463
1463
  const incoming_isSummarized = incoming.isSummarized;
1464
1464
  // if at least one of these optionals is defined
@@ -1499,7 +1499,7 @@ function equals$f(existing, incoming) {
1499
1499
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1500
1500
  || (existing_contentQualityRepresentation != null &&
1501
1501
  incoming_contentQualityRepresentation != null &&
1502
- equals$h(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1502
+ equals$i(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1503
1503
  return false;
1504
1504
  }
1505
1505
  }
@@ -1515,15 +1515,15 @@ function equals$f(existing, incoming) {
1515
1515
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1516
1516
  || (existing_safetyScoreRepresentation != null &&
1517
1517
  incoming_safetyScoreRepresentation != null &&
1518
- equals$g(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1518
+ equals$h(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1519
1519
  return false;
1520
1520
  }
1521
1521
  }
1522
1522
  return true;
1523
1523
  }
1524
1524
 
1525
- const VERSION$e = "4656c961c9d093a9e206c1db7d4de0b0";
1526
- function validate$h(obj, path = 'WrappedMap') {
1525
+ const VERSION$f = "4656c961c9d093a9e206c1db7d4de0b0";
1526
+ function validate$l(obj, path = 'WrappedMap') {
1527
1527
  const v_error = (() => {
1528
1528
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1529
1529
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1545,15 +1545,15 @@ function validate$h(obj, path = 'WrappedMap') {
1545
1545
  })();
1546
1546
  return v_error === undefined ? null : v_error;
1547
1547
  }
1548
- const select$m = function WrappedMapSelect() {
1548
+ const select$o = function WrappedMapSelect() {
1549
1549
  return {
1550
1550
  kind: 'Fragment',
1551
- version: VERSION$e,
1551
+ version: VERSION$f,
1552
1552
  private: [],
1553
1553
  selections: []
1554
1554
  };
1555
1555
  };
1556
- function equals$e(existing, incoming) {
1556
+ function equals$f(existing, incoming) {
1557
1557
  const existing_wrappedMap = existing.wrappedMap;
1558
1558
  const incoming_wrappedMap = incoming.wrappedMap;
1559
1559
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1564,9 +1564,9 @@ function equals$e(existing, incoming) {
1564
1564
  return true;
1565
1565
  }
1566
1566
 
1567
- const TTL$5 = 100;
1568
- const VERSION$d = "d8abd72a42e842b253da1c38954dafbc";
1569
- function validate$g(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1567
+ const TTL$6 = 100;
1568
+ const VERSION$e = "d8abd72a42e842b253da1c38954dafbc";
1569
+ function validate$k(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1570
1570
  const v_error = (() => {
1571
1571
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1572
1572
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1579,7 +1579,7 @@ function validate$g(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1579
1579
  for (let i = 0; i < obj_generations.length; i++) {
1580
1580
  const obj_generations_item = obj_generations[i];
1581
1581
  const path_generations_item = path_generations + '[' + i + ']';
1582
- const referencepath_generations_itemValidationError = validate$i(obj_generations_item, path_generations_item);
1582
+ const referencepath_generations_itemValidationError = validate$m(obj_generations_item, path_generations_item);
1583
1583
  if (referencepath_generations_itemValidationError !== null) {
1584
1584
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1585
1585
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1590,7 +1590,7 @@ function validate$g(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1590
1590
  const path_parameters = path + '.parameters';
1591
1591
  let obj_parameters_union0 = null;
1592
1592
  const obj_parameters_union0_error = (() => {
1593
- const referencepath_parametersValidationError = validate$h(obj_parameters, path_parameters);
1593
+ const referencepath_parametersValidationError = validate$l(obj_parameters, path_parameters);
1594
1594
  if (referencepath_parametersValidationError !== null) {
1595
1595
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1596
1596
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1649,25 +1649,25 @@ function validate$g(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1649
1649
  })();
1650
1650
  return v_error === undefined ? null : v_error;
1651
1651
  }
1652
- const RepresentationType$5 = 'EinsteinLlmGenerationsRepresentation';
1653
- function keyBuilder$8(luvio, config) {
1654
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.requestId;
1652
+ const RepresentationType$6 = 'EinsteinLlmGenerationsRepresentation';
1653
+ function keyBuilder$a(luvio, config) {
1654
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.requestId;
1655
1655
  }
1656
1656
  function keyBuilderFromType$2(luvio, object) {
1657
1657
  const keyParams = {
1658
1658
  requestId: object.requestId
1659
1659
  };
1660
- return keyBuilder$8(luvio, keyParams);
1660
+ return keyBuilder$a(luvio, keyParams);
1661
1661
  }
1662
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1662
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1663
1663
  return input;
1664
1664
  }
1665
- const select$l = function EinsteinLlmGenerationsRepresentationSelect() {
1666
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$n();
1667
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$m();
1665
+ const select$n = function EinsteinLlmGenerationsRepresentationSelect() {
1666
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$p();
1667
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$o();
1668
1668
  return {
1669
1669
  kind: 'Fragment',
1670
- version: VERSION$d,
1670
+ version: VERSION$e,
1671
1671
  private: [],
1672
1672
  selections: [
1673
1673
  {
@@ -1693,7 +1693,7 @@ const select$l = function EinsteinLlmGenerationsRepresentationSelect() {
1693
1693
  ]
1694
1694
  };
1695
1695
  };
1696
- function equals$d(existing, incoming) {
1696
+ function equals$e(existing, incoming) {
1697
1697
  const existing_requestId = existing.requestId;
1698
1698
  const incoming_requestId = incoming.requestId;
1699
1699
  if (!(existing_requestId === incoming_requestId)) {
@@ -1702,7 +1702,7 @@ function equals$d(existing, incoming) {
1702
1702
  const existing_generations = existing.generations;
1703
1703
  const incoming_generations = incoming.generations;
1704
1704
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1705
- if (!(equals$f(existing_generations_item, incoming_generations_item))) {
1705
+ if (!(equals$g(existing_generations_item, incoming_generations_item))) {
1706
1706
  return false;
1707
1707
  }
1708
1708
  });
@@ -1714,7 +1714,7 @@ function equals$d(existing, incoming) {
1714
1714
  if (!(existing_parameters === incoming_parameters
1715
1715
  || (existing_parameters != null &&
1716
1716
  incoming_parameters != null &&
1717
- equals$e(existing_parameters, incoming_parameters)))) {
1717
+ equals$f(existing_parameters, incoming_parameters)))) {
1718
1718
  return false;
1719
1719
  }
1720
1720
  const existing_prompt = existing.prompt;
@@ -1724,41 +1724,41 @@ function equals$d(existing, incoming) {
1724
1724
  }
1725
1725
  return true;
1726
1726
  }
1727
- const ingest$5 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1727
+ const ingest$6 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1728
1728
  if (process.env.NODE_ENV !== 'production') {
1729
- const validateError = validate$g(input);
1729
+ const validateError = validate$k(input);
1730
1730
  if (validateError !== null) {
1731
1731
  throw validateError;
1732
1732
  }
1733
1733
  }
1734
1734
  const key = keyBuilderFromType$2(luvio, input);
1735
- const ttlToUse = TTL$5;
1736
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$d, RepresentationType$5, equals$d);
1735
+ const ttlToUse = TTL$6;
1736
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$e, RepresentationType$6, equals$e);
1737
1737
  return createLink(key);
1738
1738
  };
1739
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1739
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1740
1740
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1741
1741
  const rootKey = keyBuilderFromType$2(luvio, input);
1742
1742
  rootKeySet.set(rootKey, {
1743
1743
  namespace: keyPrefix,
1744
- representationName: RepresentationType$5,
1744
+ representationName: RepresentationType$6,
1745
1745
  mergeable: false
1746
1746
  });
1747
1747
  }
1748
1748
 
1749
- function select$k(luvio, params) {
1750
- return select$l();
1749
+ function select$m(luvio, params) {
1750
+ return select$n();
1751
1751
  }
1752
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1753
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1752
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1753
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
1754
1754
  }
1755
- function ingestSuccess$7(luvio, resourceParams, response) {
1755
+ function ingestSuccess$8(luvio, resourceParams, response) {
1756
1756
  const { body } = response;
1757
1757
  const key = keyBuilderFromType$2(luvio, body);
1758
- luvio.storeIngest(key, ingest$5, body);
1758
+ luvio.storeIngest(key, ingest$6, body);
1759
1759
  const snapshot = luvio.storeLookup({
1760
1760
  recordId: key,
1761
- node: select$k(),
1761
+ node: select$m(),
1762
1762
  variables: {},
1763
1763
  });
1764
1764
  if (process.env.NODE_ENV !== 'production') {
@@ -1769,7 +1769,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
1769
1769
  deepFreeze(snapshot.data);
1770
1770
  return snapshot;
1771
1771
  }
1772
- function createResourceRequest$7(config) {
1772
+ function createResourceRequest$8(config) {
1773
1773
  const headers = {};
1774
1774
  return {
1775
1775
  baseUri: '/services/data/v65.0',
@@ -1783,45 +1783,45 @@ function createResourceRequest$7(config) {
1783
1783
  };
1784
1784
  }
1785
1785
 
1786
- const adapterName$7 = 'createGenerations';
1786
+ const adapterName$8 = 'createGenerations';
1787
1787
  const createGenerations_ConfigPropertyMetadata = [
1788
1788
  generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
1789
1789
  ];
1790
- const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createGenerations_ConfigPropertyMetadata);
1791
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(createGenerations_ConfigPropertyMetadata);
1792
- function typeCheckConfig$7(untrustedConfig) {
1790
+ const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createGenerations_ConfigPropertyMetadata);
1791
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(createGenerations_ConfigPropertyMetadata);
1792
+ function typeCheckConfig$8(untrustedConfig) {
1793
1793
  const config = {};
1794
1794
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1795
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$l(untrustedConfig_generationsInput);
1795
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$p(untrustedConfig_generationsInput);
1796
1796
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1797
1797
  config.generationsInput = untrustedConfig_generationsInput;
1798
1798
  }
1799
1799
  return config;
1800
1800
  }
1801
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1801
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1802
1802
  if (!untrustedIsObject(untrustedConfig)) {
1803
1803
  return null;
1804
1804
  }
1805
1805
  if (process.env.NODE_ENV !== 'production') {
1806
1806
  validateConfig(untrustedConfig, configPropertyNames);
1807
1807
  }
1808
- const config = typeCheckConfig$7(untrustedConfig);
1808
+ const config = typeCheckConfig$8(untrustedConfig);
1809
1809
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1810
1810
  return null;
1811
1811
  }
1812
1812
  return config;
1813
1813
  }
1814
- function buildNetworkSnapshot$7(luvio, config, options) {
1815
- const resourceParams = createResourceParams$7(config);
1816
- const request = createResourceRequest$7(resourceParams);
1814
+ function buildNetworkSnapshot$8(luvio, config, options) {
1815
+ const resourceParams = createResourceParams$8(config);
1816
+ const request = createResourceRequest$8(resourceParams);
1817
1817
  return luvio.dispatchResourceRequest(request, options)
1818
1818
  .then((response) => {
1819
1819
  return luvio.handleSuccessResponse(() => {
1820
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1820
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1821
1821
  return luvio.storeBroadcast().then(() => snapshot);
1822
1822
  }, () => {
1823
1823
  const cache = new StoreKeyMap();
1824
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1824
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1825
1825
  return cache;
1826
1826
  });
1827
1827
  }, (response) => {
@@ -1831,16 +1831,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1831
1831
  }
1832
1832
  const createGenerationsAdapterFactory = (luvio) => {
1833
1833
  return function createGenerations(untrustedConfig) {
1834
- const config = validateAdapterConfig$7(untrustedConfig, createGenerations_ConfigPropertyNames);
1834
+ const config = validateAdapterConfig$8(untrustedConfig, createGenerations_ConfigPropertyNames);
1835
1835
  // Invalid or incomplete config
1836
1836
  if (config === null) {
1837
1837
  throw new Error('Invalid config for "createGenerations"');
1838
1838
  }
1839
- return buildNetworkSnapshot$7(luvio, config);
1839
+ return buildNetworkSnapshot$8(luvio, config);
1840
1840
  };
1841
1841
  };
1842
1842
 
1843
- function validate$f(obj, path = 'WrappedValueMap') {
1843
+ function validate$j(obj, path = 'WrappedValueMap') {
1844
1844
  const v_error = (() => {
1845
1845
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1846
1846
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1863,7 +1863,7 @@ function validate$f(obj, path = 'WrappedValueMap') {
1863
1863
  return v_error === undefined ? null : v_error;
1864
1864
  }
1865
1865
 
1866
- function validate$e(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1866
+ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1867
1867
  const v_error = (() => {
1868
1868
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1869
1869
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1871,7 +1871,7 @@ function validate$e(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1871
1871
  if (obj.additionalConfig !== undefined) {
1872
1872
  const obj_additionalConfig = obj.additionalConfig;
1873
1873
  const path_additionalConfig = path + '.additionalConfig';
1874
- const referencepath_additionalConfigValidationError = validate$m(obj_additionalConfig, path_additionalConfig);
1874
+ const referencepath_additionalConfigValidationError = validate$q(obj_additionalConfig, path_additionalConfig);
1875
1875
  if (referencepath_additionalConfigValidationError !== null) {
1876
1876
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
1877
1877
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1880,7 +1880,7 @@ function validate$e(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1880
1880
  }
1881
1881
  const obj_inputParams = obj.inputParams;
1882
1882
  const path_inputParams = path + '.inputParams';
1883
- const referencepath_inputParamsValidationError = validate$f(obj_inputParams, path_inputParams);
1883
+ const referencepath_inputParamsValidationError = validate$j(obj_inputParams, path_inputParams);
1884
1884
  if (referencepath_inputParamsValidationError !== null) {
1885
1885
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
1886
1886
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1916,8 +1916,8 @@ function validate$e(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1916
1916
  return v_error === undefined ? null : v_error;
1917
1917
  }
1918
1918
 
1919
- const VERSION$c = "f62ac44b024b123f079b57f349e05230";
1920
- function validate$d(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
1919
+ const VERSION$d = "f62ac44b024b123f079b57f349e05230";
1920
+ function validate$h(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
1921
1921
  const v_error = (() => {
1922
1922
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1923
1923
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1935,10 +1935,10 @@ function validate$d(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
1935
1935
  })();
1936
1936
  return v_error === undefined ? null : v_error;
1937
1937
  }
1938
- const select$j = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
1938
+ const select$l = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
1939
1939
  return {
1940
1940
  kind: 'Fragment',
1941
- version: VERSION$c,
1941
+ version: VERSION$d,
1942
1942
  private: [],
1943
1943
  selections: [
1944
1944
  {
@@ -1952,7 +1952,7 @@ const select$j = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
1952
1952
  ]
1953
1953
  };
1954
1954
  };
1955
- function equals$c(existing, incoming) {
1955
+ function equals$d(existing, incoming) {
1956
1956
  const existing_isExcluded = existing.isExcluded;
1957
1957
  const incoming_isExcluded = incoming.isExcluded;
1958
1958
  if (!(existing_isExcluded === incoming_isExcluded)) {
@@ -1966,8 +1966,8 @@ function equals$c(existing, incoming) {
1966
1966
  return true;
1967
1967
  }
1968
1968
 
1969
- const VERSION$b = "b85a5621c60125d9f1644af130f67680";
1970
- function validate$c(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
1969
+ const VERSION$c = "b85a5621c60125d9f1644af130f67680";
1970
+ function validate$g(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
1971
1971
  const v_error = (() => {
1972
1972
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1973
1973
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1975,7 +1975,7 @@ function validate$c(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
1975
1975
  if (obj.exclusionInfo !== undefined) {
1976
1976
  const obj_exclusionInfo = obj.exclusionInfo;
1977
1977
  const path_exclusionInfo = path + '.exclusionInfo';
1978
- const referencepath_exclusionInfoValidationError = validate$d(obj_exclusionInfo, path_exclusionInfo);
1978
+ const referencepath_exclusionInfoValidationError = validate$h(obj_exclusionInfo, path_exclusionInfo);
1979
1979
  if (referencepath_exclusionInfoValidationError !== null) {
1980
1980
  let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
1981
1981
  message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2012,11 +2012,11 @@ function validate$c(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
2012
2012
  })();
2013
2013
  return v_error === undefined ? null : v_error;
2014
2014
  }
2015
- const select$i = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
2016
- const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$j();
2015
+ const select$k = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
2016
+ const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$l();
2017
2017
  return {
2018
2018
  kind: 'Fragment',
2019
- version: VERSION$b,
2019
+ version: VERSION$c,
2020
2020
  private: [],
2021
2021
  selections: [
2022
2022
  {
@@ -2049,7 +2049,7 @@ const select$i = function EinsteinPromptTemplateAttachmentRepresentationSelect()
2049
2049
  ]
2050
2050
  };
2051
2051
  };
2052
- function equals$b(existing, incoming) {
2052
+ function equals$c(existing, incoming) {
2053
2053
  const existing_fileExtension = existing.fileExtension;
2054
2054
  const incoming_fileExtension = incoming.fileExtension;
2055
2055
  if (!(existing_fileExtension === incoming_fileExtension)) {
@@ -2092,15 +2092,15 @@ function equals$b(existing, incoming) {
2092
2092
  if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
2093
2093
  return false;
2094
2094
  }
2095
- if (!(equals$c(existing_exclusionInfo, incoming_exclusionInfo))) {
2095
+ if (!(equals$d(existing_exclusionInfo, incoming_exclusionInfo))) {
2096
2096
  return false;
2097
2097
  }
2098
2098
  }
2099
2099
  return true;
2100
2100
  }
2101
2101
 
2102
- const VERSION$a = "6458d624e5a1691821c764b6de0badb3";
2103
- function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
2102
+ const VERSION$b = "6458d624e5a1691821c764b6de0badb3";
2103
+ function validate$f(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
2104
2104
  const v_error = (() => {
2105
2105
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2106
2106
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2130,10 +2130,10 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
2130
2130
  })();
2131
2131
  return v_error === undefined ? null : v_error;
2132
2132
  }
2133
- const select$h = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
2133
+ const select$j = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
2134
2134
  return {
2135
2135
  kind: 'Fragment',
2136
- version: VERSION$a,
2136
+ version: VERSION$b,
2137
2137
  private: [],
2138
2138
  selections: [
2139
2139
  {
@@ -2156,7 +2156,7 @@ const select$h = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
2156
2156
  ]
2157
2157
  };
2158
2158
  };
2159
- function equals$a(existing, incoming) {
2159
+ function equals$b(existing, incoming) {
2160
2160
  const existing_errorMessage = existing.errorMessage;
2161
2161
  const incoming_errorMessage = incoming.errorMessage;
2162
2162
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -2188,8 +2188,8 @@ function equals$a(existing, incoming) {
2188
2188
  return true;
2189
2189
  }
2190
2190
 
2191
- const VERSION$9 = "7c417ce44e4bc05dfcc454e6825590e8";
2192
- function validate$a(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2191
+ const VERSION$a = "7c417ce44e4bc05dfcc454e6825590e8";
2192
+ function validate$e(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2193
2193
  const v_error = (() => {
2194
2194
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2195
2195
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2202,10 +2202,10 @@ function validate$a(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
2202
2202
  })();
2203
2203
  return v_error === undefined ? null : v_error;
2204
2204
  }
2205
- const select$g = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2205
+ const select$i = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2206
2206
  return {
2207
2207
  kind: 'Fragment',
2208
- version: VERSION$9,
2208
+ version: VERSION$a,
2209
2209
  private: [],
2210
2210
  selections: [
2211
2211
  {
@@ -2215,7 +2215,7 @@ const select$g = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
2215
2215
  ]
2216
2216
  };
2217
2217
  };
2218
- function equals$9(existing, incoming) {
2218
+ function equals$a(existing, incoming) {
2219
2219
  const existing_enableModeration = existing.enableModeration;
2220
2220
  const incoming_enableModeration = incoming.enableModeration;
2221
2221
  if (!(existing_enableModeration === incoming_enableModeration)) {
@@ -2224,8 +2224,8 @@ function equals$9(existing, incoming) {
2224
2224
  return true;
2225
2225
  }
2226
2226
 
2227
- const VERSION$8 = "92ad1abd0e2a60bc36941409cadda7e2";
2228
- function validate$9(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
2227
+ const VERSION$9 = "92ad1abd0e2a60bc36941409cadda7e2";
2228
+ function validate$d(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
2229
2229
  const v_error = (() => {
2230
2230
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2231
2231
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2240,7 +2240,7 @@ function validate$9(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
2240
2240
  const path_moderationSettings = path + '.moderationSettings';
2241
2241
  let obj_moderationSettings_union0 = null;
2242
2242
  const obj_moderationSettings_union0_error = (() => {
2243
- const referencepath_moderationSettingsValidationError = validate$a(obj_moderationSettings, path_moderationSettings);
2243
+ const referencepath_moderationSettingsValidationError = validate$e(obj_moderationSettings, path_moderationSettings);
2244
2244
  if (referencepath_moderationSettingsValidationError !== null) {
2245
2245
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
2246
2246
  message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2276,11 +2276,11 @@ function validate$9(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
2276
2276
  })();
2277
2277
  return v_error === undefined ? null : v_error;
2278
2278
  }
2279
- const select$f = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
2280
- const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$g();
2279
+ const select$h = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
2280
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$i();
2281
2281
  return {
2282
2282
  kind: 'Fragment',
2283
- version: VERSION$8,
2283
+ version: VERSION$9,
2284
2284
  private: [],
2285
2285
  selections: [
2286
2286
  {
@@ -2302,7 +2302,7 @@ const select$f = function EinsteinPromptTemplateMaskContentRepresentationSelect(
2302
2302
  ]
2303
2303
  };
2304
2304
  };
2305
- function equals$8(existing, incoming) {
2305
+ function equals$9(existing, incoming) {
2306
2306
  const existing_content = existing.content;
2307
2307
  const incoming_content = incoming.content;
2308
2308
  if (!(existing_content === incoming_content)) {
@@ -2333,15 +2333,15 @@ function equals$8(existing, incoming) {
2333
2333
  if (!(existing_moderationSettings === incoming_moderationSettings
2334
2334
  || (existing_moderationSettings != null &&
2335
2335
  incoming_moderationSettings != null &&
2336
- equals$9(existing_moderationSettings, incoming_moderationSettings)))) {
2336
+ equals$a(existing_moderationSettings, incoming_moderationSettings)))) {
2337
2337
  return false;
2338
2338
  }
2339
2339
  }
2340
2340
  return true;
2341
2341
  }
2342
2342
 
2343
- const VERSION$7 = "507a815605f8d30ae9b52b0ec513d25e";
2344
- function validate$8(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
2343
+ const VERSION$8 = "507a815605f8d30ae9b52b0ec513d25e";
2344
+ function validate$c(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
2345
2345
  const v_error = (() => {
2346
2346
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2347
2347
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2371,10 +2371,10 @@ function validate$8(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
2371
2371
  })();
2372
2372
  return v_error === undefined ? null : v_error;
2373
2373
  }
2374
- const select$e = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2374
+ const select$g = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2375
2375
  return {
2376
2376
  kind: 'Fragment',
2377
- version: VERSION$7,
2377
+ version: VERSION$8,
2378
2378
  private: [],
2379
2379
  selections: [
2380
2380
  {
@@ -2393,7 +2393,7 @@ const select$e = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2393
2393
  ]
2394
2394
  };
2395
2395
  };
2396
- function equals$7(existing, incoming) {
2396
+ function equals$8(existing, incoming) {
2397
2397
  const existing_originalValue = existing.originalValue;
2398
2398
  const incoming_originalValue = incoming.originalValue;
2399
2399
  if (!(existing_originalValue === incoming_originalValue)) {
@@ -2417,9 +2417,9 @@ function equals$7(existing, incoming) {
2417
2417
  return true;
2418
2418
  }
2419
2419
 
2420
- const TTL$4 = 100;
2421
- const VERSION$6 = "492c5045545dfbf96d7f660532a30499";
2422
- function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2420
+ const TTL$5 = 100;
2421
+ const VERSION$7 = "492c5045545dfbf96d7f660532a30499";
2422
+ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2423
2423
  const v_error = (() => {
2424
2424
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2425
2425
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2433,7 +2433,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2433
2433
  for (let i = 0; i < obj_fileData.length; i++) {
2434
2434
  const obj_fileData_item = obj_fileData[i];
2435
2435
  const path_fileData_item = path_fileData + '[' + i + ']';
2436
- const referencepath_fileData_itemValidationError = validate$c(obj_fileData_item, path_fileData_item);
2436
+ const referencepath_fileData_itemValidationError = validate$g(obj_fileData_item, path_fileData_item);
2437
2437
  if (referencepath_fileData_itemValidationError !== null) {
2438
2438
  let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
2439
2439
  message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2450,7 +2450,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2450
2450
  for (let i = 0; i < obj_generationErrors.length; i++) {
2451
2451
  const obj_generationErrors_item = obj_generationErrors[i];
2452
2452
  const path_generationErrors_item = path_generationErrors + '[' + i + ']';
2453
- const referencepath_generationErrors_itemValidationError = validate$b(obj_generationErrors_item, path_generationErrors_item);
2453
+ const referencepath_generationErrors_itemValidationError = validate$f(obj_generationErrors_item, path_generationErrors_item);
2454
2454
  if (referencepath_generationErrors_itemValidationError !== null) {
2455
2455
  let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
2456
2456
  message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2466,7 +2466,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2466
2466
  for (let i = 0; i < obj_generations.length; i++) {
2467
2467
  const obj_generations_item = obj_generations[i];
2468
2468
  const path_generations_item = path_generations + '[' + i + ']';
2469
- const referencepath_generations_itemValidationError = validate$i(obj_generations_item, path_generations_item);
2469
+ const referencepath_generations_itemValidationError = validate$m(obj_generations_item, path_generations_item);
2470
2470
  if (referencepath_generations_itemValidationError !== null) {
2471
2471
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
2472
2472
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2493,7 +2493,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2493
2493
  const path_parameters = path + '.parameters';
2494
2494
  let obj_parameters_union0 = null;
2495
2495
  const obj_parameters_union0_error = (() => {
2496
- const referencepath_parametersValidationError = validate$h(obj_parameters, path_parameters);
2496
+ const referencepath_parametersValidationError = validate$l(obj_parameters, path_parameters);
2497
2497
  if (referencepath_parametersValidationError !== null) {
2498
2498
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
2499
2499
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2563,7 +2563,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2563
2563
  for (let i = 0; i < obj_requestMessages.length; i++) {
2564
2564
  const obj_requestMessages_item = obj_requestMessages[i];
2565
2565
  const path_requestMessages_item = path_requestMessages + '[' + i + ']';
2566
- const referencepath_requestMessages_itemValidationError = validate$9(obj_requestMessages_item, path_requestMessages_item);
2566
+ const referencepath_requestMessages_itemValidationError = validate$d(obj_requestMessages_item, path_requestMessages_item);
2567
2567
  if (referencepath_requestMessages_itemValidationError !== null) {
2568
2568
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
2569
2569
  message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2580,7 +2580,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2580
2580
  for (let i = 0; i < obj_responseMessages.length; i++) {
2581
2581
  const obj_responseMessages_item = obj_responseMessages[i];
2582
2582
  const path_responseMessages_item = path_responseMessages + '[' + i + ']';
2583
- const referencepath_responseMessages_itemValidationError = validate$9(obj_responseMessages_item, path_responseMessages_item);
2583
+ const referencepath_responseMessages_itemValidationError = validate$d(obj_responseMessages_item, path_responseMessages_item);
2584
2584
  if (referencepath_responseMessages_itemValidationError !== null) {
2585
2585
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
2586
2586
  message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2597,7 +2597,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2597
2597
  for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
2598
2598
  const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
2599
2599
  const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
2600
- const referencepath_slotsMaskingInformation_itemValidationError = validate$8(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
2600
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$c(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
2601
2601
  if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
2602
2602
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
2603
2603
  message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2608,29 +2608,29 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2608
2608
  })();
2609
2609
  return v_error === undefined ? null : v_error;
2610
2610
  }
2611
- const RepresentationType$4 = 'EinsteinPromptTemplateGenerationsRepresentation';
2612
- function keyBuilder$7(luvio, config) {
2613
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.requestId;
2611
+ const RepresentationType$5 = 'EinsteinPromptTemplateGenerationsRepresentation';
2612
+ function keyBuilder$9(luvio, config) {
2613
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.requestId;
2614
2614
  }
2615
2615
  function keyBuilderFromType$1(luvio, object) {
2616
2616
  const keyParams = {
2617
2617
  requestId: object.requestId
2618
2618
  };
2619
- return keyBuilder$7(luvio, keyParams);
2619
+ return keyBuilder$9(luvio, keyParams);
2620
2620
  }
2621
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2621
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2622
2622
  return input;
2623
2623
  }
2624
- const select$d = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2625
- const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$i();
2626
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$h();
2627
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$n();
2628
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$m();
2629
- const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$f();
2630
- const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$e();
2624
+ const select$f = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2625
+ const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$k();
2626
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$j();
2627
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$p();
2628
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$o();
2629
+ const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$h();
2630
+ const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$g();
2631
2631
  return {
2632
2632
  kind: 'Fragment',
2633
- version: VERSION$6,
2633
+ version: VERSION$7,
2634
2634
  private: [],
2635
2635
  selections: [
2636
2636
  {
@@ -2700,7 +2700,7 @@ const select$d = function EinsteinPromptTemplateGenerationsRepresentationSelect(
2700
2700
  ]
2701
2701
  };
2702
2702
  };
2703
- function equals$6(existing, incoming) {
2703
+ function equals$7(existing, incoming) {
2704
2704
  const existing_promptTemplateDevName = existing.promptTemplateDevName;
2705
2705
  const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
2706
2706
  if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
@@ -2721,7 +2721,7 @@ function equals$6(existing, incoming) {
2721
2721
  return false;
2722
2722
  }
2723
2723
  const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
2724
- if (!(equals$b(existing_fileData_item, incoming_fileData_item))) {
2724
+ if (!(equals$c(existing_fileData_item, incoming_fileData_item))) {
2725
2725
  return false;
2726
2726
  }
2727
2727
  });
@@ -2739,7 +2739,7 @@ function equals$6(existing, incoming) {
2739
2739
  return false;
2740
2740
  }
2741
2741
  const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
2742
- if (!(equals$a(existing_generationErrors_item, incoming_generationErrors_item))) {
2742
+ if (!(equals$b(existing_generationErrors_item, incoming_generationErrors_item))) {
2743
2743
  return false;
2744
2744
  }
2745
2745
  });
@@ -2750,7 +2750,7 @@ function equals$6(existing, incoming) {
2750
2750
  const existing_generations = existing.generations;
2751
2751
  const incoming_generations = incoming.generations;
2752
2752
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
2753
- if (!(equals$f(existing_generations_item, incoming_generations_item))) {
2753
+ if (!(equals$g(existing_generations_item, incoming_generations_item))) {
2754
2754
  return false;
2755
2755
  }
2756
2756
  });
@@ -2780,7 +2780,7 @@ function equals$6(existing, incoming) {
2780
2780
  if (!(existing_parameters === incoming_parameters
2781
2781
  || (existing_parameters != null &&
2782
2782
  incoming_parameters != null &&
2783
- equals$e(existing_parameters, incoming_parameters)))) {
2783
+ equals$f(existing_parameters, incoming_parameters)))) {
2784
2784
  return false;
2785
2785
  }
2786
2786
  const existing_prompt = existing.prompt;
@@ -2798,7 +2798,7 @@ function equals$6(existing, incoming) {
2798
2798
  return false;
2799
2799
  }
2800
2800
  const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
2801
- if (!(equals$8(existing_requestMessages_item, incoming_requestMessages_item))) {
2801
+ if (!(equals$9(existing_requestMessages_item, incoming_requestMessages_item))) {
2802
2802
  return false;
2803
2803
  }
2804
2804
  });
@@ -2816,7 +2816,7 @@ function equals$6(existing, incoming) {
2816
2816
  return false;
2817
2817
  }
2818
2818
  const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
2819
- if (!(equals$8(existing_responseMessages_item, incoming_responseMessages_item))) {
2819
+ if (!(equals$9(existing_responseMessages_item, incoming_responseMessages_item))) {
2820
2820
  return false;
2821
2821
  }
2822
2822
  });
@@ -2834,7 +2834,7 @@ function equals$6(existing, incoming) {
2834
2834
  return false;
2835
2835
  }
2836
2836
  const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
2837
- if (!(equals$7(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2837
+ if (!(equals$8(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2838
2838
  return false;
2839
2839
  }
2840
2840
  });
@@ -2844,41 +2844,41 @@ function equals$6(existing, incoming) {
2844
2844
  }
2845
2845
  return true;
2846
2846
  }
2847
- const ingest$4 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
2847
+ const ingest$5 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
2848
2848
  if (process.env.NODE_ENV !== 'production') {
2849
- const validateError = validate$7(input);
2849
+ const validateError = validate$b(input);
2850
2850
  if (validateError !== null) {
2851
2851
  throw validateError;
2852
2852
  }
2853
2853
  }
2854
2854
  const key = keyBuilderFromType$1(luvio, input);
2855
- const ttlToUse = TTL$4;
2856
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$6, RepresentationType$4, equals$6);
2855
+ const ttlToUse = TTL$5;
2856
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$7, RepresentationType$5, equals$7);
2857
2857
  return createLink(key);
2858
2858
  };
2859
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2859
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2860
2860
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2861
2861
  const rootKey = keyBuilderFromType$1(luvio, input);
2862
2862
  rootKeySet.set(rootKey, {
2863
2863
  namespace: keyPrefix,
2864
- representationName: RepresentationType$4,
2864
+ representationName: RepresentationType$5,
2865
2865
  mergeable: false
2866
2866
  });
2867
2867
  }
2868
2868
 
2869
- function select$c(luvio, params) {
2870
- return select$d();
2869
+ function select$e(luvio, params) {
2870
+ return select$f();
2871
2871
  }
2872
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2873
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
2872
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2873
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2874
2874
  }
2875
- function ingestSuccess$6(luvio, resourceParams, response) {
2875
+ function ingestSuccess$7(luvio, resourceParams, response) {
2876
2876
  const { body } = response;
2877
2877
  const key = keyBuilderFromType$1(luvio, body);
2878
- luvio.storeIngest(key, ingest$4, body);
2878
+ luvio.storeIngest(key, ingest$5, body);
2879
2879
  const snapshot = luvio.storeLookup({
2880
2880
  recordId: key,
2881
- node: select$c(),
2881
+ node: select$e(),
2882
2882
  variables: {},
2883
2883
  });
2884
2884
  if (process.env.NODE_ENV !== 'production') {
@@ -2889,7 +2889,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2889
2889
  deepFreeze(snapshot.data);
2890
2890
  return snapshot;
2891
2891
  }
2892
- function createResourceRequest$6(config) {
2892
+ function createResourceRequest$7(config) {
2893
2893
  const headers = {};
2894
2894
  return {
2895
2895
  baseUri: '/services/data/v65.0',
@@ -2903,48 +2903,48 @@ function createResourceRequest$6(config) {
2903
2903
  };
2904
2904
  }
2905
2905
 
2906
- const adapterName$6 = 'createGenerationsForPromptTemplate';
2906
+ const adapterName$7 = 'createGenerationsForPromptTemplate';
2907
2907
  const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
2908
2908
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
2909
2909
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
2910
2910
  generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
2911
2911
  ];
2912
- const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2913
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2914
- function typeCheckConfig$6(untrustedConfig) {
2912
+ const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2913
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2914
+ function typeCheckConfig$7(untrustedConfig) {
2915
2915
  const config = {};
2916
- typeCheckConfig$a(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2916
+ typeCheckConfig$b(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2917
2917
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
2918
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$e(untrustedConfig_promptTemplateGenerationsInput);
2918
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$i(untrustedConfig_promptTemplateGenerationsInput);
2919
2919
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
2920
2920
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
2921
2921
  }
2922
2922
  return config;
2923
2923
  }
2924
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2924
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2925
2925
  if (!untrustedIsObject(untrustedConfig)) {
2926
2926
  return null;
2927
2927
  }
2928
2928
  if (process.env.NODE_ENV !== 'production') {
2929
2929
  validateConfig(untrustedConfig, configPropertyNames);
2930
2930
  }
2931
- const config = typeCheckConfig$6(untrustedConfig);
2931
+ const config = typeCheckConfig$7(untrustedConfig);
2932
2932
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2933
2933
  return null;
2934
2934
  }
2935
2935
  return config;
2936
2936
  }
2937
- function buildNetworkSnapshot$6(luvio, config, options) {
2938
- const resourceParams = createResourceParams$6(config);
2939
- const request = createResourceRequest$6(resourceParams);
2937
+ function buildNetworkSnapshot$7(luvio, config, options) {
2938
+ const resourceParams = createResourceParams$7(config);
2939
+ const request = createResourceRequest$7(resourceParams);
2940
2940
  return luvio.dispatchResourceRequest(request, options)
2941
2941
  .then((response) => {
2942
2942
  return luvio.handleSuccessResponse(() => {
2943
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2943
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
2944
2944
  return luvio.storeBroadcast().then(() => snapshot);
2945
2945
  }, () => {
2946
2946
  const cache = new StoreKeyMap();
2947
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2947
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2948
2948
  return cache;
2949
2949
  });
2950
2950
  }, (response) => {
@@ -2954,18 +2954,18 @@ function buildNetworkSnapshot$6(luvio, config, options) {
2954
2954
  }
2955
2955
  const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
2956
2956
  return function createGenerationsForPromptTemplate(untrustedConfig) {
2957
- const config = validateAdapterConfig$6(untrustedConfig, createGenerationsForPromptTemplate_ConfigPropertyNames);
2957
+ const config = validateAdapterConfig$7(untrustedConfig, createGenerationsForPromptTemplate_ConfigPropertyNames);
2958
2958
  // Invalid or incomplete config
2959
2959
  if (config === null) {
2960
2960
  throw new Error('Invalid config for "createGenerationsForPromptTemplate"');
2961
2961
  }
2962
- return buildNetworkSnapshot$6(luvio, config);
2962
+ return buildNetworkSnapshot$7(luvio, config);
2963
2963
  };
2964
2964
  };
2965
2965
 
2966
- const TTL$3 = 100;
2967
- const VERSION$5 = "a90a51578e2fdd7a9741d310bed22b1d";
2968
- function validate$6(obj, path = 'EinsteinPromptTemplateRepresentation') {
2966
+ const TTL$4 = 100;
2967
+ const VERSION$6 = "a90a51578e2fdd7a9741d310bed22b1d";
2968
+ function validate$a(obj, path = 'EinsteinPromptTemplateRepresentation') {
2969
2969
  const v_error = (() => {
2970
2970
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2971
2971
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2973,7 +2973,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateRepresentation') {
2973
2973
  if (obj.additionalData !== undefined) {
2974
2974
  const obj_additionalData = obj.additionalData;
2975
2975
  const path_additionalData = path + '.additionalData';
2976
- const referencepath_additionalDataValidationError = validate$h(obj_additionalData, path_additionalData);
2976
+ const referencepath_additionalDataValidationError = validate$l(obj_additionalData, path_additionalData);
2977
2977
  if (referencepath_additionalDataValidationError !== null) {
2978
2978
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
2979
2979
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3041,24 +3041,24 @@ function validate$6(obj, path = 'EinsteinPromptTemplateRepresentation') {
3041
3041
  })();
3042
3042
  return v_error === undefined ? null : v_error;
3043
3043
  }
3044
- const RepresentationType$3 = 'EinsteinPromptTemplateRepresentation';
3045
- function keyBuilder$6(luvio, config) {
3046
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.versionId;
3044
+ const RepresentationType$4 = 'EinsteinPromptTemplateRepresentation';
3045
+ function keyBuilder$8(luvio, config) {
3046
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.versionId;
3047
3047
  }
3048
3048
  function keyBuilderFromType(luvio, object) {
3049
3049
  const keyParams = {
3050
3050
  versionId: object.versionId
3051
3051
  };
3052
- return keyBuilder$6(luvio, keyParams);
3052
+ return keyBuilder$8(luvio, keyParams);
3053
3053
  }
3054
- function normalize$3(input, existing, path, luvio, store, timestamp) {
3054
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
3055
3055
  return input;
3056
3056
  }
3057
- const select$b = function EinsteinPromptTemplateRepresentationSelect() {
3058
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$m();
3057
+ const select$d = function EinsteinPromptTemplateRepresentationSelect() {
3058
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$o();
3059
3059
  return {
3060
3060
  kind: 'Fragment',
3061
- version: VERSION$5,
3061
+ version: VERSION$6,
3062
3062
  private: [],
3063
3063
  selections: [
3064
3064
  {
@@ -3106,7 +3106,7 @@ const select$b = function EinsteinPromptTemplateRepresentationSelect() {
3106
3106
  ]
3107
3107
  };
3108
3108
  };
3109
- function equals$5(existing, incoming) {
3109
+ function equals$6(existing, incoming) {
3110
3110
  const existing_hasWarning = existing.hasWarning;
3111
3111
  const incoming_hasWarning = incoming.hasWarning;
3112
3112
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -3162,7 +3162,7 @@ function equals$5(existing, incoming) {
3162
3162
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
3163
3163
  return false;
3164
3164
  }
3165
- if (!(equals$e(existing_additionalData, incoming_additionalData))) {
3165
+ if (!(equals$f(existing_additionalData, incoming_additionalData))) {
3166
3166
  return false;
3167
3167
  }
3168
3168
  }
@@ -3188,41 +3188,41 @@ function equals$5(existing, incoming) {
3188
3188
  }
3189
3189
  return true;
3190
3190
  }
3191
- const ingest$3 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
3191
+ const ingest$4 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
3192
3192
  if (process.env.NODE_ENV !== 'production') {
3193
- const validateError = validate$6(input);
3193
+ const validateError = validate$a(input);
3194
3194
  if (validateError !== null) {
3195
3195
  throw validateError;
3196
3196
  }
3197
3197
  }
3198
3198
  const key = keyBuilderFromType(luvio, input);
3199
- const ttlToUse = TTL$3;
3200
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$5, RepresentationType$3, equals$5);
3199
+ const ttlToUse = TTL$4;
3200
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$6, RepresentationType$4, equals$6);
3201
3201
  return createLink(key);
3202
3202
  };
3203
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3203
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
3204
3204
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3205
3205
  const rootKey = keyBuilderFromType(luvio, input);
3206
3206
  rootKeySet.set(rootKey, {
3207
3207
  namespace: keyPrefix,
3208
- representationName: RepresentationType$3,
3208
+ representationName: RepresentationType$4,
3209
3209
  mergeable: false
3210
3210
  });
3211
3211
  }
3212
3212
 
3213
- function select$a(luvio, params) {
3214
- return select$b();
3213
+ function select$c(luvio, params) {
3214
+ return select$d();
3215
3215
  }
3216
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3217
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3216
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3217
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
3218
3218
  }
3219
- function ingestSuccess$5(luvio, resourceParams, response) {
3219
+ function ingestSuccess$6(luvio, resourceParams, response) {
3220
3220
  const { body } = response;
3221
3221
  const key = keyBuilderFromType(luvio, body);
3222
- luvio.storeIngest(key, ingest$3, body);
3222
+ luvio.storeIngest(key, ingest$4, body);
3223
3223
  const snapshot = luvio.storeLookup({
3224
3224
  recordId: key,
3225
- node: select$a(),
3225
+ node: select$c(),
3226
3226
  variables: {},
3227
3227
  });
3228
3228
  if (process.env.NODE_ENV !== 'production') {
@@ -3233,7 +3233,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
3233
3233
  deepFreeze(snapshot.data);
3234
3234
  return snapshot;
3235
3235
  }
3236
- function createResourceRequest$5(config) {
3236
+ function createResourceRequest$6(config) {
3237
3237
  const headers = {};
3238
3238
  return {
3239
3239
  baseUri: '/services/data/v65.0',
@@ -3247,7 +3247,7 @@ function createResourceRequest$5(config) {
3247
3247
  };
3248
3248
  }
3249
3249
 
3250
- const adapterName$5 = 'createPromptTemplate';
3250
+ const adapterName$6 = 'createPromptTemplate';
3251
3251
  const createPromptTemplate_ConfigPropertyMetadata = [
3252
3252
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
3253
3253
  generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
@@ -3255,11 +3255,11 @@ const createPromptTemplate_ConfigPropertyMetadata = [
3255
3255
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3256
3256
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3257
3257
  ];
3258
- const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createPromptTemplate_ConfigPropertyMetadata);
3259
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(createPromptTemplate_ConfigPropertyMetadata);
3260
- function typeCheckConfig$5(untrustedConfig) {
3258
+ const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPromptTemplate_ConfigPropertyMetadata);
3259
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(createPromptTemplate_ConfigPropertyMetadata);
3260
+ function typeCheckConfig$6(untrustedConfig) {
3261
3261
  const config = {};
3262
- typeCheckConfig$a(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
3262
+ typeCheckConfig$b(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
3263
3263
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3264
3264
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
3265
3265
  const untrustedConfig_childRelationships_object = {};
@@ -3299,30 +3299,30 @@ function typeCheckConfig$5(untrustedConfig) {
3299
3299
  }
3300
3300
  return config;
3301
3301
  }
3302
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3302
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
3303
3303
  if (!untrustedIsObject(untrustedConfig)) {
3304
3304
  return null;
3305
3305
  }
3306
3306
  if (process.env.NODE_ENV !== 'production') {
3307
3307
  validateConfig(untrustedConfig, configPropertyNames);
3308
3308
  }
3309
- const config = typeCheckConfig$5(untrustedConfig);
3309
+ const config = typeCheckConfig$6(untrustedConfig);
3310
3310
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3311
3311
  return null;
3312
3312
  }
3313
3313
  return config;
3314
3314
  }
3315
- function buildNetworkSnapshot$5(luvio, config, options) {
3316
- const resourceParams = createResourceParams$5(config);
3317
- const request = createResourceRequest$5(resourceParams);
3315
+ function buildNetworkSnapshot$6(luvio, config, options) {
3316
+ const resourceParams = createResourceParams$6(config);
3317
+ const request = createResourceRequest$6(resourceParams);
3318
3318
  return luvio.dispatchResourceRequest(request, options)
3319
3319
  .then((response) => {
3320
3320
  return luvio.handleSuccessResponse(() => {
3321
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
3321
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
3322
3322
  return luvio.storeBroadcast().then(() => snapshot);
3323
3323
  }, () => {
3324
3324
  const cache = new StoreKeyMap();
3325
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3325
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
3326
3326
  return cache;
3327
3327
  });
3328
3328
  }, (response) => {
@@ -3332,28 +3332,28 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3332
3332
  }
3333
3333
  const createPromptTemplateAdapterFactory = (luvio) => {
3334
3334
  return function createPromptTemplate(untrustedConfig) {
3335
- const config = validateAdapterConfig$5(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
3335
+ const config = validateAdapterConfig$6(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
3336
3336
  // Invalid or incomplete config
3337
3337
  if (config === null) {
3338
3338
  throw new Error('Invalid config for "createPromptTemplate"');
3339
3339
  }
3340
- return buildNetworkSnapshot$5(luvio, config);
3340
+ return buildNetworkSnapshot$6(luvio, config);
3341
3341
  };
3342
3342
  };
3343
3343
 
3344
- function select$9(luvio, params) {
3345
- return select$b();
3344
+ function select$b(luvio, params) {
3345
+ return select$d();
3346
3346
  }
3347
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3348
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3347
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3348
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
3349
3349
  }
3350
- function ingestSuccess$4(luvio, resourceParams, response) {
3350
+ function ingestSuccess$5(luvio, resourceParams, response) {
3351
3351
  const { body } = response;
3352
3352
  const key = keyBuilderFromType(luvio, body);
3353
- luvio.storeIngest(key, ingest$3, body);
3353
+ luvio.storeIngest(key, ingest$4, body);
3354
3354
  const snapshot = luvio.storeLookup({
3355
3355
  recordId: key,
3356
- node: select$9(),
3356
+ node: select$b(),
3357
3357
  variables: {},
3358
3358
  });
3359
3359
  if (process.env.NODE_ENV !== 'production') {
@@ -3364,7 +3364,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3364
3364
  deepFreeze(snapshot.data);
3365
3365
  return snapshot;
3366
3366
  }
3367
- function createResourceRequest$4(config) {
3367
+ function createResourceRequest$5(config) {
3368
3368
  const headers = {};
3369
3369
  return {
3370
3370
  baseUri: '/services/data/v65.0',
@@ -3378,7 +3378,7 @@ function createResourceRequest$4(config) {
3378
3378
  };
3379
3379
  }
3380
3380
 
3381
- const adapterName$4 = 'createPromptTemplateVersion';
3381
+ const adapterName$5 = 'createPromptTemplateVersion';
3382
3382
  const createPromptTemplateVersion_ConfigPropertyMetadata = [
3383
3383
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3384
3384
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
@@ -3387,11 +3387,11 @@ const createPromptTemplateVersion_ConfigPropertyMetadata = [
3387
3387
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3388
3388
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
3389
3389
  ];
3390
- const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createPromptTemplateVersion_ConfigPropertyMetadata);
3391
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(createPromptTemplateVersion_ConfigPropertyMetadata);
3392
- function typeCheckConfig$4(untrustedConfig) {
3390
+ const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createPromptTemplateVersion_ConfigPropertyMetadata);
3391
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(createPromptTemplateVersion_ConfigPropertyMetadata);
3392
+ function typeCheckConfig$5(untrustedConfig) {
3393
3393
  const config = {};
3394
- typeCheckConfig$a(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3394
+ typeCheckConfig$b(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3395
3395
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3396
3396
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
3397
3397
  const untrustedConfig_childRelationships_object = {};
@@ -3431,30 +3431,30 @@ function typeCheckConfig$4(untrustedConfig) {
3431
3431
  }
3432
3432
  return config;
3433
3433
  }
3434
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3434
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3435
3435
  if (!untrustedIsObject(untrustedConfig)) {
3436
3436
  return null;
3437
3437
  }
3438
3438
  if (process.env.NODE_ENV !== 'production') {
3439
3439
  validateConfig(untrustedConfig, configPropertyNames);
3440
3440
  }
3441
- const config = typeCheckConfig$4(untrustedConfig);
3441
+ const config = typeCheckConfig$5(untrustedConfig);
3442
3442
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3443
3443
  return null;
3444
3444
  }
3445
3445
  return config;
3446
3446
  }
3447
- function buildNetworkSnapshot$4(luvio, config, options) {
3448
- const resourceParams = createResourceParams$4(config);
3449
- const request = createResourceRequest$4(resourceParams);
3447
+ function buildNetworkSnapshot$5(luvio, config, options) {
3448
+ const resourceParams = createResourceParams$5(config);
3449
+ const request = createResourceRequest$5(resourceParams);
3450
3450
  return luvio.dispatchResourceRequest(request, options)
3451
3451
  .then((response) => {
3452
3452
  return luvio.handleSuccessResponse(() => {
3453
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3453
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
3454
3454
  return luvio.storeBroadcast().then(() => snapshot);
3455
3455
  }, () => {
3456
3456
  const cache = new StoreKeyMap();
3457
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3457
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3458
3458
  return cache;
3459
3459
  });
3460
3460
  }, (response) => {
@@ -3464,15 +3464,498 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3464
3464
  }
3465
3465
  const createPromptTemplateVersionAdapterFactory = (luvio) => {
3466
3466
  return function createPromptTemplateVersion(untrustedConfig) {
3467
- const config = validateAdapterConfig$4(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
3467
+ const config = validateAdapterConfig$5(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
3468
3468
  // Invalid or incomplete config
3469
3469
  if (config === null) {
3470
3470
  throw new Error('Invalid config for "createPromptTemplateVersion"');
3471
3471
  }
3472
- return buildNetworkSnapshot$4(luvio, config);
3472
+ return buildNetworkSnapshot$5(luvio, config);
3473
3473
  };
3474
3474
  };
3475
3475
 
3476
+ function validate$9(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
3477
+ const v_error = (() => {
3478
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3479
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3480
+ }
3481
+ const obj_apiName = obj.apiName;
3482
+ const path_apiName = path + '.apiName';
3483
+ if (typeof obj_apiName !== 'string') {
3484
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
3485
+ }
3486
+ const obj_label = obj.label;
3487
+ const path_label = path + '.label';
3488
+ if (typeof obj_label !== 'string') {
3489
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3490
+ }
3491
+ })();
3492
+ return v_error === undefined ? null : v_error;
3493
+ }
3494
+
3495
+ function validate$8(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
3496
+ const v_error = (() => {
3497
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3498
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3499
+ }
3500
+ const obj_apiName = obj.apiName;
3501
+ const path_apiName = path + '.apiName';
3502
+ if (typeof obj_apiName !== 'string') {
3503
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
3504
+ }
3505
+ const obj_label = obj.label;
3506
+ const path_label = path + '.label';
3507
+ if (typeof obj_label !== 'string') {
3508
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3509
+ }
3510
+ const obj_required = obj.required;
3511
+ const path_required = path + '.required';
3512
+ if (typeof obj_required !== 'boolean') {
3513
+ return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
3514
+ }
3515
+ const obj_type = obj.type;
3516
+ const path_type = path + '.type';
3517
+ if (typeof obj_type !== 'string') {
3518
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
3519
+ }
3520
+ })();
3521
+ return v_error === undefined ? null : v_error;
3522
+ }
3523
+
3524
+ function validate$7(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
3525
+ const v_error = (() => {
3526
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3527
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3528
+ }
3529
+ const obj_apiName = obj.apiName;
3530
+ const path_apiName = path + '.apiName';
3531
+ if (typeof obj_apiName !== 'string') {
3532
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
3533
+ }
3534
+ if (obj.dataProviderBundle !== undefined) {
3535
+ const obj_dataProviderBundle = obj.dataProviderBundle;
3536
+ const path_dataProviderBundle = path + '.dataProviderBundle';
3537
+ if (typeof obj_dataProviderBundle !== 'object' || ArrayIsArray(obj_dataProviderBundle) || obj_dataProviderBundle === null) {
3538
+ return new TypeError('Expected "object" but received "' + typeof obj_dataProviderBundle + '" (at "' + path_dataProviderBundle + '")');
3539
+ }
3540
+ const obj_dataProviderBundle_keys = ObjectKeys(obj_dataProviderBundle);
3541
+ for (let i = 0; i < obj_dataProviderBundle_keys.length; i++) {
3542
+ const key = obj_dataProviderBundle_keys[i];
3543
+ const obj_dataProviderBundle_prop = obj_dataProviderBundle[key];
3544
+ const path_dataProviderBundle_prop = path_dataProviderBundle + '["' + key + '"]';
3545
+ if (obj_dataProviderBundle_prop === undefined) {
3546
+ return new TypeError('Expected "defined" but received "' + typeof obj_dataProviderBundle_prop + '" (at "' + path_dataProviderBundle_prop + '")');
3547
+ }
3548
+ }
3549
+ }
3550
+ if (obj.defaultOutputParam !== undefined) {
3551
+ const obj_defaultOutputParam = obj.defaultOutputParam;
3552
+ const path_defaultOutputParam = path + '.defaultOutputParam';
3553
+ const referencepath_defaultOutputParamValidationError = validate$9(obj_defaultOutputParam, path_defaultOutputParam);
3554
+ if (referencepath_defaultOutputParamValidationError !== null) {
3555
+ let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
3556
+ message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3557
+ return new TypeError(message);
3558
+ }
3559
+ }
3560
+ const obj_definition = obj.definition;
3561
+ const path_definition = path + '.definition';
3562
+ if (typeof obj_definition !== 'string') {
3563
+ return new TypeError('Expected "string" but received "' + typeof obj_definition + '" (at "' + path_definition + '")');
3564
+ }
3565
+ if (obj.description !== undefined) {
3566
+ const obj_description = obj.description;
3567
+ const path_description = path + '.description';
3568
+ let obj_description_union0 = null;
3569
+ const obj_description_union0_error = (() => {
3570
+ if (typeof obj_description !== 'string') {
3571
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3572
+ }
3573
+ })();
3574
+ if (obj_description_union0_error != null) {
3575
+ obj_description_union0 = obj_description_union0_error.message;
3576
+ }
3577
+ let obj_description_union1 = null;
3578
+ const obj_description_union1_error = (() => {
3579
+ if (obj_description !== null) {
3580
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3581
+ }
3582
+ })();
3583
+ if (obj_description_union1_error != null) {
3584
+ obj_description_union1 = obj_description_union1_error.message;
3585
+ }
3586
+ if (obj_description_union0 && obj_description_union1) {
3587
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
3588
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
3589
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
3590
+ return new TypeError(message);
3591
+ }
3592
+ }
3593
+ const obj_groupName = obj.groupName;
3594
+ const path_groupName = path + '.groupName';
3595
+ if (typeof obj_groupName !== 'string') {
3596
+ return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
3597
+ }
3598
+ if (obj.inputParams !== undefined) {
3599
+ const obj_inputParams = obj.inputParams;
3600
+ const path_inputParams = path + '.inputParams';
3601
+ if (!ArrayIsArray(obj_inputParams)) {
3602
+ return new TypeError('Expected "array" but received "' + typeof obj_inputParams + '" (at "' + path_inputParams + '")');
3603
+ }
3604
+ for (let i = 0; i < obj_inputParams.length; i++) {
3605
+ const obj_inputParams_item = obj_inputParams[i];
3606
+ const path_inputParams_item = path_inputParams + '[' + i + ']';
3607
+ const referencepath_inputParams_itemValidationError = validate$8(obj_inputParams_item, path_inputParams_item);
3608
+ if (referencepath_inputParams_itemValidationError !== null) {
3609
+ let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
3610
+ message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3611
+ return new TypeError(message);
3612
+ }
3613
+ }
3614
+ }
3615
+ const obj_label = obj.label;
3616
+ const path_label = path + '.label';
3617
+ if (typeof obj_label !== 'string') {
3618
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3619
+ }
3620
+ if (obj.mappedInputs !== undefined) {
3621
+ const obj_mappedInputs = obj.mappedInputs;
3622
+ const path_mappedInputs = path + '.mappedInputs';
3623
+ if (typeof obj_mappedInputs !== 'object' || ArrayIsArray(obj_mappedInputs) || obj_mappedInputs === null) {
3624
+ return new TypeError('Expected "object" but received "' + typeof obj_mappedInputs + '" (at "' + path_mappedInputs + '")');
3625
+ }
3626
+ const obj_mappedInputs_keys = ObjectKeys(obj_mappedInputs);
3627
+ for (let i = 0; i < obj_mappedInputs_keys.length; i++) {
3628
+ const key = obj_mappedInputs_keys[i];
3629
+ const obj_mappedInputs_prop = obj_mappedInputs[key];
3630
+ const path_mappedInputs_prop = path_mappedInputs + '["' + key + '"]';
3631
+ if (obj_mappedInputs_prop === undefined) {
3632
+ return new TypeError('Expected "defined" but received "' + typeof obj_mappedInputs_prop + '" (at "' + path_mappedInputs_prop + '")');
3633
+ }
3634
+ }
3635
+ }
3636
+ const obj_nodeIcon = obj.nodeIcon;
3637
+ const path_nodeIcon = path + '.nodeIcon';
3638
+ let obj_nodeIcon_union0 = null;
3639
+ const obj_nodeIcon_union0_error = (() => {
3640
+ if (typeof obj_nodeIcon !== 'string') {
3641
+ return new TypeError('Expected "string" but received "' + typeof obj_nodeIcon + '" (at "' + path_nodeIcon + '")');
3642
+ }
3643
+ })();
3644
+ if (obj_nodeIcon_union0_error != null) {
3645
+ obj_nodeIcon_union0 = obj_nodeIcon_union0_error.message;
3646
+ }
3647
+ let obj_nodeIcon_union1 = null;
3648
+ const obj_nodeIcon_union1_error = (() => {
3649
+ if (obj_nodeIcon !== null) {
3650
+ return new TypeError('Expected "null" but received "' + typeof obj_nodeIcon + '" (at "' + path_nodeIcon + '")');
3651
+ }
3652
+ })();
3653
+ if (obj_nodeIcon_union1_error != null) {
3654
+ obj_nodeIcon_union1 = obj_nodeIcon_union1_error.message;
3655
+ }
3656
+ if (obj_nodeIcon_union0 && obj_nodeIcon_union1) {
3657
+ let message = 'Object doesn\'t match union (at "' + path_nodeIcon + '")';
3658
+ message += '\n' + obj_nodeIcon_union0.split('\n').map((line) => '\t' + line).join('\n');
3659
+ message += '\n' + obj_nodeIcon_union1.split('\n').map((line) => '\t' + line).join('\n');
3660
+ return new TypeError(message);
3661
+ }
3662
+ if (obj.outputParams !== undefined) {
3663
+ const obj_outputParams = obj.outputParams;
3664
+ const path_outputParams = path + '.outputParams';
3665
+ if (!ArrayIsArray(obj_outputParams)) {
3666
+ return new TypeError('Expected "array" but received "' + typeof obj_outputParams + '" (at "' + path_outputParams + '")');
3667
+ }
3668
+ for (let i = 0; i < obj_outputParams.length; i++) {
3669
+ const obj_outputParams_item = obj_outputParams[i];
3670
+ const path_outputParams_item = path_outputParams + '[' + i + ']';
3671
+ const referencepath_outputParams_itemValidationError = validate$9(obj_outputParams_item, path_outputParams_item);
3672
+ if (referencepath_outputParams_itemValidationError !== null) {
3673
+ let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
3674
+ message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3675
+ return new TypeError(message);
3676
+ }
3677
+ }
3678
+ }
3679
+ const obj_referenceName = obj.referenceName;
3680
+ const path_referenceName = path + '.referenceName';
3681
+ if (typeof obj_referenceName !== 'string') {
3682
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceName + '" (at "' + path_referenceName + '")');
3683
+ }
3684
+ if (obj.scopedToTarget !== undefined) {
3685
+ const obj_scopedToTarget = obj.scopedToTarget;
3686
+ const path_scopedToTarget = path + '.scopedToTarget';
3687
+ let obj_scopedToTarget_union0 = null;
3688
+ const obj_scopedToTarget_union0_error = (() => {
3689
+ if (typeof obj_scopedToTarget !== 'string') {
3690
+ return new TypeError('Expected "string" but received "' + typeof obj_scopedToTarget + '" (at "' + path_scopedToTarget + '")');
3691
+ }
3692
+ })();
3693
+ if (obj_scopedToTarget_union0_error != null) {
3694
+ obj_scopedToTarget_union0 = obj_scopedToTarget_union0_error.message;
3695
+ }
3696
+ let obj_scopedToTarget_union1 = null;
3697
+ const obj_scopedToTarget_union1_error = (() => {
3698
+ if (obj_scopedToTarget !== null) {
3699
+ return new TypeError('Expected "null" but received "' + typeof obj_scopedToTarget + '" (at "' + path_scopedToTarget + '")');
3700
+ }
3701
+ })();
3702
+ if (obj_scopedToTarget_union1_error != null) {
3703
+ obj_scopedToTarget_union1 = obj_scopedToTarget_union1_error.message;
3704
+ }
3705
+ if (obj_scopedToTarget_union0 && obj_scopedToTarget_union1) {
3706
+ let message = 'Object doesn\'t match union (at "' + path_scopedToTarget + '")';
3707
+ message += '\n' + obj_scopedToTarget_union0.split('\n').map((line) => '\t' + line).join('\n');
3708
+ message += '\n' + obj_scopedToTarget_union1.split('\n').map((line) => '\t' + line).join('\n');
3709
+ return new TypeError(message);
3710
+ }
3711
+ }
3712
+ if (obj.subGroup !== undefined) {
3713
+ const obj_subGroup = obj.subGroup;
3714
+ const path_subGroup = path + '.subGroup';
3715
+ let obj_subGroup_union0 = null;
3716
+ const obj_subGroup_union0_error = (() => {
3717
+ if (typeof obj_subGroup !== 'string') {
3718
+ return new TypeError('Expected "string" but received "' + typeof obj_subGroup + '" (at "' + path_subGroup + '")');
3719
+ }
3720
+ })();
3721
+ if (obj_subGroup_union0_error != null) {
3722
+ obj_subGroup_union0 = obj_subGroup_union0_error.message;
3723
+ }
3724
+ let obj_subGroup_union1 = null;
3725
+ const obj_subGroup_union1_error = (() => {
3726
+ if (obj_subGroup !== null) {
3727
+ return new TypeError('Expected "null" but received "' + typeof obj_subGroup + '" (at "' + path_subGroup + '")');
3728
+ }
3729
+ })();
3730
+ if (obj_subGroup_union1_error != null) {
3731
+ obj_subGroup_union1 = obj_subGroup_union1_error.message;
3732
+ }
3733
+ if (obj_subGroup_union0 && obj_subGroup_union1) {
3734
+ let message = 'Object doesn\'t match union (at "' + path_subGroup + '")';
3735
+ message += '\n' + obj_subGroup_union0.split('\n').map((line) => '\t' + line).join('\n');
3736
+ message += '\n' + obj_subGroup_union1.split('\n').map((line) => '\t' + line).join('\n');
3737
+ return new TypeError(message);
3738
+ }
3739
+ }
3740
+ })();
3741
+ return v_error === undefined ? null : v_error;
3742
+ }
3743
+
3744
+ const TTL$3 = 300;
3745
+ const VERSION$5 = "f86b04aed156ed794e7502ef43bb4171";
3746
+ function validate$6(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
3747
+ const v_error = (() => {
3748
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3749
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3750
+ }
3751
+ const obj_dataProviderInstanceConfigs = obj.dataProviderInstanceConfigs;
3752
+ const path_dataProviderInstanceConfigs = path + '.dataProviderInstanceConfigs';
3753
+ if (!ArrayIsArray(obj_dataProviderInstanceConfigs)) {
3754
+ return new TypeError('Expected "array" but received "' + typeof obj_dataProviderInstanceConfigs + '" (at "' + path_dataProviderInstanceConfigs + '")');
3755
+ }
3756
+ for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
3757
+ const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
3758
+ const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
3759
+ const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$7(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
3760
+ if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
3761
+ let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
3762
+ message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3763
+ return new TypeError(message);
3764
+ }
3765
+ }
3766
+ })();
3767
+ return v_error === undefined ? null : v_error;
3768
+ }
3769
+ const RepresentationType$3 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
3770
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
3771
+ return input;
3772
+ }
3773
+ const select$a = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
3774
+ return {
3775
+ kind: 'Fragment',
3776
+ version: VERSION$5,
3777
+ private: [],
3778
+ opaque: true
3779
+ };
3780
+ };
3781
+ function equals$5(existing, incoming) {
3782
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
3783
+ return false;
3784
+ }
3785
+ return true;
3786
+ }
3787
+ const ingest$3 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3788
+ if (process.env.NODE_ENV !== 'production') {
3789
+ const validateError = validate$6(input);
3790
+ if (validateError !== null) {
3791
+ throw validateError;
3792
+ }
3793
+ }
3794
+ const key = path.fullPath;
3795
+ const ttlToUse = TTL$3;
3796
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$5, RepresentationType$3, equals$5);
3797
+ return createLink(key);
3798
+ };
3799
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3800
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3801
+ const rootKey = fullPathFactory();
3802
+ rootKeySet.set(rootKey, {
3803
+ namespace: keyPrefix,
3804
+ representationName: RepresentationType$3,
3805
+ mergeable: false
3806
+ });
3807
+ }
3808
+
3809
+ function select$9(luvio, params) {
3810
+ return select$a();
3811
+ }
3812
+ function keyBuilder$7(luvio, params) {
3813
+ 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 + ')';
3814
+ }
3815
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3816
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
3817
+ }
3818
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
3819
+ const { body } = response;
3820
+ const key = keyBuilder$7(luvio, resourceParams);
3821
+ luvio.storeIngest(key, ingest$3, body);
3822
+ const snapshot = luvio.storeLookup({
3823
+ recordId: key,
3824
+ node: select$9(),
3825
+ variables: {},
3826
+ }, snapshotRefresh);
3827
+ if (process.env.NODE_ENV !== 'production') {
3828
+ if (snapshot.state !== 'Fulfilled') {
3829
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3830
+ }
3831
+ }
3832
+ deepFreeze(snapshot.data);
3833
+ return snapshot;
3834
+ }
3835
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
3836
+ const key = keyBuilder$7(luvio, params);
3837
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3838
+ const storeMetadataParams = {
3839
+ ttl: TTL$3,
3840
+ namespace: keyPrefix,
3841
+ version: VERSION$5,
3842
+ representationName: RepresentationType$3
3843
+ };
3844
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3845
+ return errorSnapshot;
3846
+ }
3847
+ function createResourceRequest$4(config) {
3848
+ const headers = {};
3849
+ return {
3850
+ baseUri: '/services/data/v65.0',
3851
+ basePath: '/einstein/prompt-templates/data-providers/mapped',
3852
+ method: 'post',
3853
+ body: config.body,
3854
+ urlParams: {},
3855
+ queryParams: {},
3856
+ headers,
3857
+ priority: 'normal',
3858
+ };
3859
+ }
3860
+
3861
+ const adapterName$4 = 'getInputMappedDataProviders';
3862
+ const getInputMappedDataProviders_ConfigPropertyMetadata = [
3863
+ generateParamConfigMetadata('groupName', false, 2 /* Body */, 0 /* String */),
3864
+ generateParamConfigMetadata('target', false, 2 /* Body */, 0 /* String */),
3865
+ generateParamConfigMetadata('templateInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
3866
+ generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
3867
+ ];
3868
+ const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getInputMappedDataProviders_ConfigPropertyMetadata);
3869
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getInputMappedDataProviders_ConfigPropertyMetadata);
3870
+ function keyBuilder$6(luvio, config) {
3871
+ const resourceParams = createResourceParams$4(config);
3872
+ return keyBuilder$7(luvio, resourceParams);
3873
+ }
3874
+ function typeCheckConfig$4(untrustedConfig) {
3875
+ const config = {};
3876
+ typeCheckConfig$b(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
3877
+ const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
3878
+ if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
3879
+ const untrustedConfig_templateInputs_array = [];
3880
+ for (let i = 0, arrayLength = untrustedConfig_templateInputs.length; i < arrayLength; i++) {
3881
+ const untrustedConfig_templateInputs_item = untrustedConfig_templateInputs[i];
3882
+ untrustedConfig_templateInputs_array.push(untrustedConfig_templateInputs_item);
3883
+ }
3884
+ config.templateInputs = untrustedConfig_templateInputs_array;
3885
+ }
3886
+ return config;
3887
+ }
3888
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3889
+ if (!untrustedIsObject(untrustedConfig)) {
3890
+ return null;
3891
+ }
3892
+ if (process.env.NODE_ENV !== 'production') {
3893
+ validateConfig(untrustedConfig, configPropertyNames);
3894
+ }
3895
+ const config = typeCheckConfig$4(untrustedConfig);
3896
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3897
+ return null;
3898
+ }
3899
+ return config;
3900
+ }
3901
+ function adapterFragment$3(luvio, config) {
3902
+ createResourceParams$4(config);
3903
+ return select$9();
3904
+ }
3905
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
3906
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
3907
+ config,
3908
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3909
+ });
3910
+ return luvio.storeBroadcast().then(() => snapshot);
3911
+ }
3912
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
3913
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
3914
+ config,
3915
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3916
+ });
3917
+ return luvio.storeBroadcast().then(() => snapshot);
3918
+ }
3919
+ function buildNetworkSnapshot$4(luvio, config, options) {
3920
+ const resourceParams = createResourceParams$4(config);
3921
+ const request = createResourceRequest$4(resourceParams);
3922
+ return luvio.dispatchResourceRequest(request, options)
3923
+ .then((response) => {
3924
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
3925
+ const cache = new StoreKeyMap();
3926
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3927
+ return cache;
3928
+ });
3929
+ }, (response) => {
3930
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
3931
+ });
3932
+ }
3933
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3934
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
3935
+ }
3936
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3937
+ const { luvio, config } = context;
3938
+ const selector = {
3939
+ recordId: keyBuilder$6(luvio, config),
3940
+ node: adapterFragment$3(luvio, config),
3941
+ variables: {},
3942
+ };
3943
+ const cacheSnapshot = storeLookup(selector, {
3944
+ config,
3945
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
3946
+ });
3947
+ return cacheSnapshot;
3948
+ }
3949
+ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
3950
+ const config = validateAdapterConfig$4(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
3951
+ // Invalid or incomplete config
3952
+ if (config === null) {
3953
+ return null;
3954
+ }
3955
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3956
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3957
+ };
3958
+
3476
3959
  const VERSION$4 = "b513bbac1672327d8eaaf120660e94b5";
3477
3960
  function validate$5(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
3478
3961
  const v_error = (() => {
@@ -3786,14 +4269,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
3786
4269
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3787
4270
  ];
3788
4271
  const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getOutputLanguages_ConfigPropertyMetadata);
3789
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getOutputLanguages_ConfigPropertyMetadata);
4272
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getOutputLanguages_ConfigPropertyMetadata);
3790
4273
  function keyBuilder$4(luvio, config) {
3791
4274
  const resourceParams = createResourceParams$3(config);
3792
4275
  return keyBuilder$5(luvio, resourceParams);
3793
4276
  }
3794
4277
  function typeCheckConfig$3(untrustedConfig) {
3795
4278
  const config = {};
3796
- typeCheckConfig$a(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
4279
+ typeCheckConfig$b(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
3797
4280
  return config;
3798
4281
  }
3799
4282
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -3842,7 +4325,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3842
4325
  });
3843
4326
  }
3844
4327
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3845
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
4328
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3846
4329
  }
3847
4330
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3848
4331
  const { luvio, config } = context;
@@ -4094,14 +4577,14 @@ const getPromptTemplate_ConfigPropertyMetadata = [
4094
4577
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
4095
4578
  ];
4096
4579
  const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPromptTemplate_ConfigPropertyMetadata);
4097
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getPromptTemplate_ConfigPropertyMetadata);
4580
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getPromptTemplate_ConfigPropertyMetadata);
4098
4581
  function keyBuilder$2(luvio, config) {
4099
4582
  const resourceParams = createResourceParams$2(config);
4100
4583
  return keyBuilder$3(luvio, resourceParams);
4101
4584
  }
4102
4585
  function typeCheckConfig$2(untrustedConfig) {
4103
4586
  const config = {};
4104
- typeCheckConfig$a(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
4587
+ typeCheckConfig$b(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
4105
4588
  return config;
4106
4589
  }
4107
4590
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -4150,7 +4633,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
4150
4633
  });
4151
4634
  }
4152
4635
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4153
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4636
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4154
4637
  }
4155
4638
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4156
4639
  const { luvio, config } = context;
@@ -4316,14 +4799,14 @@ const getPromptTemplates_ConfigPropertyMetadata = [
4316
4799
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
4317
4800
  ];
4318
4801
  const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPromptTemplates_ConfigPropertyMetadata);
4319
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getPromptTemplates_ConfigPropertyMetadata);
4802
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getPromptTemplates_ConfigPropertyMetadata);
4320
4803
  function keyBuilder(luvio, config) {
4321
4804
  const resourceParams = createResourceParams$1(config);
4322
4805
  return keyBuilder$1(luvio, resourceParams);
4323
4806
  }
4324
4807
  function typeCheckConfig$1(untrustedConfig) {
4325
4808
  const config = {};
4326
- typeCheckConfig$a(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
4809
+ typeCheckConfig$b(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
4327
4810
  return config;
4328
4811
  }
4329
4812
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -4372,7 +4855,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4372
4855
  });
4373
4856
  }
4374
4857
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4375
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4858
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4376
4859
  }
4377
4860
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4378
4861
  const { luvio, config } = context;
@@ -4398,15 +4881,15 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
4398
4881
  };
4399
4882
 
4400
4883
  function select(luvio, params) {
4401
- return select$b();
4884
+ return select$d();
4402
4885
  }
4403
4886
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4404
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
4887
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
4405
4888
  }
4406
4889
  function ingestSuccess(luvio, resourceParams, response) {
4407
4890
  const { body } = response;
4408
4891
  const key = keyBuilderFromType(luvio, body);
4409
- luvio.storeIngest(key, ingest$3, body);
4892
+ luvio.storeIngest(key, ingest$4, body);
4410
4893
  const snapshot = luvio.storeLookup({
4411
4894
  recordId: key,
4412
4895
  node: select(),
@@ -4445,10 +4928,10 @@ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
4445
4928
  generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
4446
4929
  ];
4447
4930
  const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePromptTemplateVersion_ConfigPropertyMetadata);
4448
- const createResourceParams = /*#__PURE__*/ createResourceParams$a(updatePromptTemplateVersion_ConfigPropertyMetadata);
4931
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(updatePromptTemplateVersion_ConfigPropertyMetadata);
4449
4932
  function typeCheckConfig(untrustedConfig) {
4450
4933
  const config = {};
4451
- typeCheckConfig$a(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
4934
+ typeCheckConfig$b(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
4452
4935
  const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
4453
4936
  if (untrustedIsObject(untrustedConfig_childRelationships)) {
4454
4937
  const untrustedConfig_childRelationships_object = {};
@@ -4536,17 +5019,24 @@ let createGenerations;
4536
5019
  let createGenerationsForPromptTemplate;
4537
5020
  let createPromptTemplate;
4538
5021
  let createPromptTemplateVersion;
5022
+ let getInputMappedDataProviders;
4539
5023
  let getOutputLanguages;
4540
5024
  let getPromptTemplate;
4541
5025
  let getPromptTemplates;
4542
5026
  let updatePromptTemplateVersion;
4543
5027
  // Imperative GET Adapters
4544
5028
  let createEmbeddings_imperative;
5029
+ let getInputMappedDataProviders_imperative;
4545
5030
  let getOutputLanguages_imperative;
4546
5031
  let getPromptTemplate_imperative;
4547
5032
  let getPromptTemplates_imperative;
4548
5033
  // Adapter Metadata
4549
5034
  const createEmbeddingsMetadata = { apiFamily: 'EinsteinLLM', name: 'createEmbeddings', ttl: 100 };
5035
+ const getInputMappedDataProvidersMetadata = {
5036
+ apiFamily: 'EinsteinLLM',
5037
+ name: 'getInputMappedDataProviders',
5038
+ ttl: 300,
5039
+ };
4550
5040
  const getOutputLanguagesMetadata = {
4551
5041
  apiFamily: 'EinsteinLLM',
4552
5042
  name: 'getOutputLanguages',
@@ -4562,6 +5052,7 @@ const getPromptTemplatesMetadata = {
4562
5052
  function bindExportsTo(luvio) {
4563
5053
  // LDS Adapters
4564
5054
  const createEmbeddings_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'createEmbeddings', createEmbeddingsAdapterFactory), createEmbeddingsMetadata);
5055
+ const getInputMappedDataProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getInputMappedDataProviders', getInputMappedDataProvidersAdapterFactory), getInputMappedDataProvidersMetadata);
4565
5056
  const getOutputLanguages_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getOutputLanguages', getOutputLanguagesAdapterFactory), getOutputLanguagesMetadata);
4566
5057
  const getPromptTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPromptTemplate', getPromptTemplateAdapterFactory), getPromptTemplateMetadata);
4567
5058
  const getPromptTemplates_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPromptTemplates', getPromptTemplatesAdapterFactory), getPromptTemplatesMetadata);
@@ -4576,12 +5067,14 @@ function bindExportsTo(luvio) {
4576
5067
  createGenerationsForPromptTemplate: unwrapSnapshotData(createGenerationsForPromptTemplateAdapterFactory),
4577
5068
  createPromptTemplate: unwrapSnapshotData(createPromptTemplateAdapterFactory),
4578
5069
  createPromptTemplateVersion: unwrapSnapshotData(createPromptTemplateVersionAdapterFactory),
5070
+ getInputMappedDataProviders: createWireAdapterConstructor(luvio, getInputMappedDataProviders_ldsAdapter, getInputMappedDataProvidersMetadata),
4579
5071
  getOutputLanguages: createWireAdapterConstructor(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
4580
5072
  getPromptTemplate: createWireAdapterConstructor(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
4581
5073
  getPromptTemplates: createWireAdapterConstructor(luvio, getPromptTemplates_ldsAdapter, getPromptTemplatesMetadata),
4582
5074
  updatePromptTemplateVersion: unwrapSnapshotData(updatePromptTemplateVersionAdapterFactory),
4583
5075
  // Imperative GET Adapters
4584
5076
  createEmbeddings_imperative: createImperativeAdapter(luvio, createEmbeddings_ldsAdapter, createEmbeddingsMetadata),
5077
+ getInputMappedDataProviders_imperative: createImperativeAdapter(luvio, getInputMappedDataProviders_ldsAdapter, getInputMappedDataProvidersMetadata),
4585
5078
  getOutputLanguages_imperative: createImperativeAdapter(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
4586
5079
  getPromptTemplate_imperative: createImperativeAdapter(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
4587
5080
  getPromptTemplates_imperative: createImperativeAdapter(luvio, getPromptTemplates_ldsAdapter, getPromptTemplatesMetadata),
@@ -4596,16 +5089,18 @@ withDefaultLuvio((luvio) => {
4596
5089
  createGenerationsForPromptTemplate,
4597
5090
  createPromptTemplate,
4598
5091
  createPromptTemplateVersion,
5092
+ getInputMappedDataProviders,
4599
5093
  getOutputLanguages,
4600
5094
  getPromptTemplate,
4601
5095
  getPromptTemplates,
4602
5096
  updatePromptTemplateVersion,
4603
5097
  createEmbeddings_imperative,
5098
+ getInputMappedDataProviders_imperative,
4604
5099
  getOutputLanguages_imperative,
4605
5100
  getPromptTemplate_imperative,
4606
5101
  getPromptTemplates_imperative,
4607
5102
  } = bindExportsTo(luvio));
4608
5103
  });
4609
5104
 
4610
- export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, updatePromptTemplateVersion };
4611
- // version: 1.380.0-dev1-b7c5fad9db
5105
+ export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, updatePromptTemplateVersion };
5106
+ // version: 1.381.0-61e618aefd