@salesforce/lds-adapters-service-einsteinllm 1.379.0 → 1.380.0-dev1

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$7, typeCheckConfig as typeCheckConfig$7 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a } 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$s(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
181
+ function validate$t(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$s(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
222
222
  return v_error === undefined ? null : v_error;
223
223
  }
224
224
 
225
- function validate$r(obj, path = 'WrappedListString') {
225
+ function validate$s(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$r(obj, path = 'WrappedListString') {
243
243
  return v_error === undefined ? null : v_error;
244
244
  }
245
245
 
246
- function validate$q(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
246
+ function validate$r(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$s(obj_additionalConfig, path_additionalConfig);
253
+ const referencepath_additionalConfigValidationError = validate$t(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$q(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
258
258
  }
259
259
  const obj_prompts = obj.prompts;
260
260
  const path_prompts = path + '.prompts';
261
- const referencepath_promptsValidationError = validate$r(obj_prompts, path_prompts);
261
+ const referencepath_promptsValidationError = validate$s(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$q(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
275
275
  return v_error === undefined ? null : v_error;
276
276
  }
277
277
 
278
- const VERSION$j = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
- function validate$p(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
278
+ const VERSION$k = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
+ function validate$q(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$p(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
297
297
  })();
298
298
  return v_error === undefined ? null : v_error;
299
299
  }
300
- const select$q = function EinsteinLlmEmbeddingItemRepresentationSelect() {
300
+ const select$u = function EinsteinLlmEmbeddingItemRepresentationSelect() {
301
301
  return {
302
302
  kind: 'Fragment',
303
- version: VERSION$j,
303
+ version: VERSION$k,
304
304
  private: [],
305
305
  selections: [
306
306
  {
@@ -315,7 +315,7 @@ const select$q = function EinsteinLlmEmbeddingItemRepresentationSelect() {
315
315
  ]
316
316
  };
317
317
  };
318
- function equals$j(existing, incoming) {
318
+ function equals$k(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$j(existing, incoming) {
334
334
  return true;
335
335
  }
336
336
 
337
- const TTL$6 = 100;
338
- const VERSION$i = "d9873651f09d29764ef4d4231eb653d7";
339
- function validate$o(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
337
+ const TTL$7 = 100;
338
+ const VERSION$j = "d9873651f09d29764ef4d4231eb653d7";
339
+ function validate$p(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$o(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$p(obj_embeddings_item, path_embeddings_item);
352
+ const referencepath_embeddings_itemValidationError = validate$q(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$o(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
373
373
  })();
374
374
  return v_error === undefined ? null : v_error;
375
375
  }
376
- const RepresentationType$6 = 'EinsteinLlmEmbeddingsRepresentation';
377
- function normalize$6(input, existing, path, luvio, store, timestamp) {
376
+ const RepresentationType$7 = 'EinsteinLlmEmbeddingsRepresentation';
377
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
378
378
  return input;
379
379
  }
380
- const select$p = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$q();
380
+ const select$t = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$u();
382
382
  return {
383
383
  kind: 'Fragment',
384
- version: VERSION$i,
384
+ version: VERSION$j,
385
385
  private: [],
386
386
  selections: [
387
387
  {
@@ -398,11 +398,11 @@ const select$p = function EinsteinLlmEmbeddingsRepresentationSelect() {
398
398
  ]
399
399
  };
400
400
  };
401
- function equals$i(existing, incoming) {
401
+ function equals$j(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$j(existing_embeddings_item, incoming_embeddings_item))) {
405
+ if (!(equals$k(existing_embeddings_item, incoming_embeddings_item))) {
406
406
  return false;
407
407
  }
408
408
  });
@@ -421,44 +421,44 @@ function equals$i(existing, incoming) {
421
421
  }
422
422
  return true;
423
423
  }
424
- const ingest$6 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
424
+ const ingest$7 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
425
425
  if (process.env.NODE_ENV !== 'production') {
426
- const validateError = validate$o(input);
426
+ const validateError = validate$p(input);
427
427
  if (validateError !== null) {
428
428
  throw validateError;
429
429
  }
430
430
  }
431
431
  const key = path.fullPath;
432
- const ttlToUse = TTL$6;
433
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$i, RepresentationType$6, equals$i);
432
+ const ttlToUse = TTL$7;
433
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$j, RepresentationType$7, equals$j);
434
434
  return createLink(key);
435
435
  };
436
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
436
+ function getTypeCacheKeys$7(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$6,
441
+ representationName: RepresentationType$7,
442
442
  mergeable: false
443
443
  });
444
444
  }
445
445
 
446
- function select$o(luvio, params) {
447
- return select$p();
446
+ function select$s(luvio, params) {
447
+ return select$t();
448
448
  }
449
- function keyBuilder$a(luvio, params) {
449
+ function keyBuilder$b(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$6(storeKeyMap, luvio, resourceParams, response) {
453
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
452
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
453
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
454
454
  }
455
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
455
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
456
456
  const { body } = response;
457
- const key = keyBuilder$a(luvio, resourceParams);
458
- luvio.storeIngest(key, ingest$6, body);
457
+ const key = keyBuilder$b(luvio, resourceParams);
458
+ luvio.storeIngest(key, ingest$7, body);
459
459
  const snapshot = luvio.storeLookup({
460
460
  recordId: key,
461
- node: select$o(),
461
+ node: select$s(),
462
462
  variables: {},
463
463
  }, snapshotRefresh);
464
464
  if (process.env.NODE_ENV !== 'production') {
@@ -470,18 +470,18 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
470
470
  return snapshot;
471
471
  }
472
472
  function ingestError$3(luvio, params, error, snapshotRefresh) {
473
- const key = keyBuilder$a(luvio, params);
473
+ const key = keyBuilder$b(luvio, params);
474
474
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
475
475
  const storeMetadataParams = {
476
- ttl: TTL$6,
476
+ ttl: TTL$7,
477
477
  namespace: keyPrefix,
478
- version: VERSION$i,
479
- representationName: RepresentationType$6
478
+ version: VERSION$j,
479
+ representationName: RepresentationType$7
480
480
  };
481
481
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
482
482
  return errorSnapshot;
483
483
  }
484
- function createResourceRequest$6(config) {
484
+ function createResourceRequest$9(config) {
485
485
  const headers = {};
486
486
  return {
487
487
  baseUri: '/services/data/v65.0',
@@ -495,64 +495,64 @@ function createResourceRequest$6(config) {
495
495
  };
496
496
  }
497
497
 
498
- const adapterName$6 = 'createEmbeddings';
498
+ const adapterName$9 = 'createEmbeddings';
499
499
  const createEmbeddings_ConfigPropertyMetadata = [
500
500
  generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
501
501
  ];
502
- const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createEmbeddings_ConfigPropertyMetadata);
503
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createEmbeddings_ConfigPropertyMetadata);
504
- function keyBuilder$9(luvio, config) {
505
- const resourceParams = createResourceParams$6(config);
506
- return keyBuilder$a(luvio, resourceParams);
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);
507
507
  }
508
- function typeCheckConfig$6(untrustedConfig) {
508
+ function typeCheckConfig$9(untrustedConfig) {
509
509
  const config = {};
510
510
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
511
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$q(untrustedConfig_embeddingsInput);
511
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$r(untrustedConfig_embeddingsInput);
512
512
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
513
513
  config.embeddingsInput = untrustedConfig_embeddingsInput;
514
514
  }
515
515
  return config;
516
516
  }
517
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
517
+ function validateAdapterConfig$9(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$6(untrustedConfig);
524
+ const config = typeCheckConfig$9(untrustedConfig);
525
525
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
526
526
  return null;
527
527
  }
528
528
  return config;
529
529
  }
530
530
  function adapterFragment$3(luvio, config) {
531
- createResourceParams$6(config);
532
- return select$o();
531
+ createResourceParams$9(config);
532
+ return select$s();
533
533
  }
534
534
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
535
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
535
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
536
536
  config,
537
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
537
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
538
538
  });
539
539
  return luvio.storeBroadcast().then(() => snapshot);
540
540
  }
541
541
  function onFetchResponseError$3(luvio, config, resourceParams, response) {
542
542
  const snapshot = ingestError$3(luvio, resourceParams, response, {
543
543
  config,
544
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
544
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
545
545
  });
546
546
  return luvio.storeBroadcast().then(() => snapshot);
547
547
  }
548
- function buildNetworkSnapshot$6(luvio, config, options) {
549
- const resourceParams = createResourceParams$6(config);
550
- const request = createResourceRequest$6(resourceParams);
548
+ function buildNetworkSnapshot$9(luvio, config, options) {
549
+ const resourceParams = createResourceParams$9(config);
550
+ const request = createResourceRequest$9(resourceParams);
551
551
  return luvio.dispatchResourceRequest(request, options)
552
552
  .then((response) => {
553
553
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
554
554
  const cache = new StoreKeyMap();
555
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
555
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
556
556
  return cache;
557
557
  });
558
558
  }, (response) => {
@@ -560,23 +560,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
560
560
  });
561
561
  }
562
562
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
563
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
563
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', false);
564
564
  }
565
565
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
566
566
  const { luvio, config } = context;
567
567
  const selector = {
568
- recordId: keyBuilder$9(luvio, config),
568
+ recordId: keyBuilder$a(luvio, config),
569
569
  node: adapterFragment$3(luvio, config),
570
570
  variables: {},
571
571
  };
572
572
  const cacheSnapshot = storeLookup(selector, {
573
573
  config,
574
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
574
+ resolve: () => buildNetworkSnapshot$9(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$6(untrustedConfig, createEmbeddings_ConfigPropertyNames);
579
+ const config = validateAdapterConfig$9(untrustedConfig, createEmbeddings_ConfigPropertyNames);
580
580
  // Invalid or incomplete config
581
581
  if (config === null) {
582
582
  return null;
@@ -585,7 +585,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
585
585
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
586
586
  };
587
587
 
588
- function validate$n(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
588
+ function validate$o(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$n(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
632
632
  return v_error === undefined ? null : v_error;
633
633
  }
634
634
 
635
- const TTL$5 = 100;
636
- const VERSION$h = "4033328f65865dd5d80c68a7573a4522";
637
- function validate$m(obj, path = 'EinsteinLlmFeedbackRepresentation') {
635
+ const TTL$6 = 100;
636
+ const VERSION$i = "4033328f65865dd5d80c68a7573a4522";
637
+ function validate$n(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$m(obj, path = 'EinsteinLlmFeedbackRepresentation') {
647
647
  })();
648
648
  return v_error === undefined ? null : v_error;
649
649
  }
650
- const RepresentationType$5 = 'EinsteinLlmFeedbackRepresentation';
651
- function keyBuilder$8(luvio, config) {
652
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.message;
650
+ const RepresentationType$6 = 'EinsteinLlmFeedbackRepresentation';
651
+ function keyBuilder$9(luvio, config) {
652
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.message;
653
653
  }
654
- function keyBuilderFromType$2(luvio, object) {
654
+ function keyBuilderFromType$3(luvio, object) {
655
655
  const keyParams = {
656
656
  message: object.message
657
657
  };
658
- return keyBuilder$8(luvio, keyParams);
658
+ return keyBuilder$9(luvio, keyParams);
659
659
  }
660
- function normalize$5(input, existing, path, luvio, store, timestamp) {
660
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
661
661
  return input;
662
662
  }
663
- const select$n = function EinsteinLlmFeedbackRepresentationSelect() {
663
+ const select$r = function EinsteinLlmFeedbackRepresentationSelect() {
664
664
  return {
665
665
  kind: 'Fragment',
666
- version: VERSION$h,
666
+ version: VERSION$i,
667
667
  private: [],
668
668
  selections: [
669
669
  {
@@ -673,7 +673,7 @@ const select$n = function EinsteinLlmFeedbackRepresentationSelect() {
673
673
  ]
674
674
  };
675
675
  };
676
- function equals$h(existing, incoming) {
676
+ function equals$i(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$h(existing, incoming) {
681
681
  }
682
682
  return true;
683
683
  }
684
- const ingest$5 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
684
+ const ingest$6 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
685
685
  if (process.env.NODE_ENV !== 'production') {
686
- const validateError = validate$m(input);
686
+ const validateError = validate$n(input);
687
687
  if (validateError !== null) {
688
688
  throw validateError;
689
689
  }
690
690
  }
691
- const key = keyBuilderFromType$2(luvio, input);
692
- const ttlToUse = TTL$5;
693
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$h, RepresentationType$5, equals$h);
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);
694
694
  return createLink(key);
695
695
  };
696
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
696
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
697
697
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
698
- const rootKey = keyBuilderFromType$2(luvio, input);
698
+ const rootKey = keyBuilderFromType$3(luvio, input);
699
699
  rootKeySet.set(rootKey, {
700
700
  namespace: keyPrefix,
701
- representationName: RepresentationType$5,
701
+ representationName: RepresentationType$6,
702
702
  mergeable: false
703
703
  });
704
704
  }
705
705
 
706
- function select$m(luvio, params) {
707
- return select$n();
706
+ function select$q(luvio, params) {
707
+ return select$r();
708
708
  }
709
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
710
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
709
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
710
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
711
711
  }
712
- function ingestSuccess$5(luvio, resourceParams, response) {
712
+ function ingestSuccess$8(luvio, resourceParams, response) {
713
713
  const { body } = response;
714
- const key = keyBuilderFromType$2(luvio, body);
715
- luvio.storeIngest(key, ingest$5, body);
714
+ const key = keyBuilderFromType$3(luvio, body);
715
+ luvio.storeIngest(key, ingest$6, body);
716
716
  const snapshot = luvio.storeLookup({
717
717
  recordId: key,
718
- node: select$m(),
718
+ node: select$q(),
719
719
  variables: {},
720
720
  });
721
721
  if (process.env.NODE_ENV !== 'production') {
@@ -726,7 +726,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
726
726
  deepFreeze(snapshot.data);
727
727
  return snapshot;
728
728
  }
729
- function createResourceRequest$5(config) {
729
+ function createResourceRequest$8(config) {
730
730
  const headers = {};
731
731
  return {
732
732
  baseUri: '/services/data/v65.0',
@@ -740,45 +740,45 @@ function createResourceRequest$5(config) {
740
740
  };
741
741
  }
742
742
 
743
- const adapterName$5 = 'createFeedback';
743
+ const adapterName$8 = 'createFeedback';
744
744
  const createFeedback_ConfigPropertyMetadata = [
745
745
  generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
746
746
  ];
747
- const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createFeedback_ConfigPropertyMetadata);
748
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(createFeedback_ConfigPropertyMetadata);
749
- function typeCheckConfig$5(untrustedConfig) {
747
+ const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createFeedback_ConfigPropertyMetadata);
748
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(createFeedback_ConfigPropertyMetadata);
749
+ function typeCheckConfig$8(untrustedConfig) {
750
750
  const config = {};
751
751
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
752
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$n(untrustedConfig_feedbackInput);
752
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$o(untrustedConfig_feedbackInput);
753
753
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
754
754
  config.feedbackInput = untrustedConfig_feedbackInput;
755
755
  }
756
756
  return config;
757
757
  }
758
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
758
+ function validateAdapterConfig$8(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$5(untrustedConfig);
765
+ const config = typeCheckConfig$8(untrustedConfig);
766
766
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
767
767
  return null;
768
768
  }
769
769
  return config;
770
770
  }
771
- function buildNetworkSnapshot$5(luvio, config, options) {
772
- const resourceParams = createResourceParams$5(config);
773
- const request = createResourceRequest$5(resourceParams);
771
+ function buildNetworkSnapshot$8(luvio, config, options) {
772
+ const resourceParams = createResourceParams$8(config);
773
+ const request = createResourceRequest$8(resourceParams);
774
774
  return luvio.dispatchResourceRequest(request, options)
775
775
  .then((response) => {
776
776
  return luvio.handleSuccessResponse(() => {
777
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
777
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
778
778
  return luvio.storeBroadcast().then(() => snapshot);
779
779
  }, () => {
780
780
  const cache = new StoreKeyMap();
781
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
781
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
782
782
  return cache;
783
783
  });
784
784
  }, (response) => {
@@ -788,16 +788,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
788
788
  }
789
789
  const createFeedbackAdapterFactory = (luvio) => {
790
790
  return function createFeedback(untrustedConfig) {
791
- const config = validateAdapterConfig$5(untrustedConfig, createFeedback_ConfigPropertyNames);
791
+ const config = validateAdapterConfig$8(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$5(luvio, config);
796
+ return buildNetworkSnapshot$8(luvio, config);
797
797
  };
798
798
  };
799
799
 
800
- function validate$l(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
800
+ function validate$m(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$l(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
880
880
  return v_error === undefined ? null : v_error;
881
881
  }
882
882
 
883
- function validate$k(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
883
+ function validate$l(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$k(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$l(obj_additionalConfig, path_additionalConfig);
891
+ const referencepath_additionalConfigValidationError = validate$m(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$k(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
911
911
  return v_error === undefined ? null : v_error;
912
912
  }
913
913
 
914
- const VERSION$g = "9ebac74e6f964c363d5fd1913df363af";
915
- function validate$j(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
914
+ const VERSION$h = "9ebac74e6f964c363d5fd1913df363af";
915
+ function validate$k(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$j(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
948
948
  })();
949
949
  return v_error === undefined ? null : v_error;
950
950
  }
951
- const select$l = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
951
+ const select$p = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
952
952
  return {
953
953
  kind: 'Fragment',
954
- version: VERSION$g,
954
+ version: VERSION$h,
955
955
  private: [],
956
956
  selections: [
957
957
  {
@@ -962,7 +962,7 @@ const select$l = function EinsteinLlmGenerationsContentQualityRepresentationSele
962
962
  ]
963
963
  };
964
964
  };
965
- function equals$g(existing, incoming) {
965
+ function equals$h(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$g(existing, incoming) {
979
979
  return true;
980
980
  }
981
981
 
982
- const VERSION$f = "77af44a252cb5b45b4d9a8101368d2aa";
983
- function validate$i(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
982
+ const VERSION$g = "77af44a252cb5b45b4d9a8101368d2aa";
983
+ function validate$j(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$i(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1184
1184
  })();
1185
1185
  return v_error === undefined ? null : v_error;
1186
1186
  }
1187
- const select$k = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1187
+ const select$o = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1188
1188
  return {
1189
1189
  kind: 'Fragment',
1190
- version: VERSION$f,
1190
+ version: VERSION$g,
1191
1191
  private: [],
1192
1192
  selections: [
1193
1193
  {
@@ -1228,7 +1228,7 @@ const select$k = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1228
1228
  ]
1229
1229
  };
1230
1230
  };
1231
- function equals$f(existing, incoming) {
1231
+ function equals$g(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$f(existing, incoming) {
1323
1323
  return true;
1324
1324
  }
1325
1325
 
1326
- const VERSION$e = "4a07778ff6c595d91c575188146647a1";
1327
- function validate$h(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1326
+ const VERSION$f = "4a07778ff6c595d91c575188146647a1";
1327
+ function validate$i(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$h(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$j(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1337
+ const referencepath_contentQualityRepresentationValidationError = validate$k(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$h(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$i(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1385
+ const referencepath_safetyScoreRepresentationValidationError = validate$j(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$h(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1416
1416
  })();
1417
1417
  return v_error === undefined ? null : v_error;
1418
1418
  }
1419
- const select$j = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$l();
1421
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$k();
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();
1422
1422
  return {
1423
1423
  kind: 'Fragment',
1424
- version: VERSION$e,
1424
+ version: VERSION$f,
1425
1425
  private: [],
1426
1426
  selections: [
1427
1427
  {
@@ -1458,7 +1458,7 @@ const select$j = function EinsteinLlmGenerationItemRepresentationSelect() {
1458
1458
  ]
1459
1459
  };
1460
1460
  };
1461
- function equals$e(existing, incoming) {
1461
+ function equals$f(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$e(existing, incoming) {
1499
1499
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1500
1500
  || (existing_contentQualityRepresentation != null &&
1501
1501
  incoming_contentQualityRepresentation != null &&
1502
- equals$g(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1502
+ equals$h(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1503
1503
  return false;
1504
1504
  }
1505
1505
  }
@@ -1515,15 +1515,15 @@ function equals$e(existing, incoming) {
1515
1515
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1516
1516
  || (existing_safetyScoreRepresentation != null &&
1517
1517
  incoming_safetyScoreRepresentation != null &&
1518
- equals$f(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1518
+ equals$g(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1519
1519
  return false;
1520
1520
  }
1521
1521
  }
1522
1522
  return true;
1523
1523
  }
1524
1524
 
1525
- const VERSION$d = "4656c961c9d093a9e206c1db7d4de0b0";
1526
- function validate$g(obj, path = 'WrappedMap') {
1525
+ const VERSION$e = "4656c961c9d093a9e206c1db7d4de0b0";
1526
+ function validate$h(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$g(obj, path = 'WrappedMap') {
1545
1545
  })();
1546
1546
  return v_error === undefined ? null : v_error;
1547
1547
  }
1548
- const select$i = function WrappedMapSelect() {
1548
+ const select$m = function WrappedMapSelect() {
1549
1549
  return {
1550
1550
  kind: 'Fragment',
1551
- version: VERSION$d,
1551
+ version: VERSION$e,
1552
1552
  private: [],
1553
1553
  selections: []
1554
1554
  };
1555
1555
  };
1556
- function equals$d(existing, incoming) {
1556
+ function equals$e(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$d(existing, incoming) {
1564
1564
  return true;
1565
1565
  }
1566
1566
 
1567
- const TTL$4 = 100;
1568
- const VERSION$c = "d8abd72a42e842b253da1c38954dafbc";
1569
- function validate$f(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1567
+ const TTL$5 = 100;
1568
+ const VERSION$d = "d8abd72a42e842b253da1c38954dafbc";
1569
+ function validate$g(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$f(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$h(obj_generations_item, path_generations_item);
1582
+ const referencepath_generations_itemValidationError = validate$i(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$f(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$g(obj_parameters, path_parameters);
1593
+ const referencepath_parametersValidationError = validate$h(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$f(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1649
1649
  })();
1650
1650
  return v_error === undefined ? null : v_error;
1651
1651
  }
1652
- const RepresentationType$4 = 'EinsteinLlmGenerationsRepresentation';
1653
- function keyBuilder$7(luvio, config) {
1654
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.requestId;
1652
+ const RepresentationType$5 = 'EinsteinLlmGenerationsRepresentation';
1653
+ function keyBuilder$8(luvio, config) {
1654
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.requestId;
1655
1655
  }
1656
- function keyBuilderFromType$1(luvio, object) {
1656
+ function keyBuilderFromType$2(luvio, object) {
1657
1657
  const keyParams = {
1658
1658
  requestId: object.requestId
1659
1659
  };
1660
- return keyBuilder$7(luvio, keyParams);
1660
+ return keyBuilder$8(luvio, keyParams);
1661
1661
  }
1662
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1662
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1663
1663
  return input;
1664
1664
  }
1665
- const select$h = function EinsteinLlmGenerationsRepresentationSelect() {
1666
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$j();
1667
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$i();
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();
1668
1668
  return {
1669
1669
  kind: 'Fragment',
1670
- version: VERSION$c,
1670
+ version: VERSION$d,
1671
1671
  private: [],
1672
1672
  selections: [
1673
1673
  {
@@ -1693,7 +1693,7 @@ const select$h = function EinsteinLlmGenerationsRepresentationSelect() {
1693
1693
  ]
1694
1694
  };
1695
1695
  };
1696
- function equals$c(existing, incoming) {
1696
+ function equals$d(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$c(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$e(existing_generations_item, incoming_generations_item))) {
1705
+ if (!(equals$f(existing_generations_item, incoming_generations_item))) {
1706
1706
  return false;
1707
1707
  }
1708
1708
  });
@@ -1714,7 +1714,7 @@ function equals$c(existing, incoming) {
1714
1714
  if (!(existing_parameters === incoming_parameters
1715
1715
  || (existing_parameters != null &&
1716
1716
  incoming_parameters != null &&
1717
- equals$d(existing_parameters, incoming_parameters)))) {
1717
+ equals$e(existing_parameters, incoming_parameters)))) {
1718
1718
  return false;
1719
1719
  }
1720
1720
  const existing_prompt = existing.prompt;
@@ -1724,41 +1724,41 @@ function equals$c(existing, incoming) {
1724
1724
  }
1725
1725
  return true;
1726
1726
  }
1727
- const ingest$4 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1727
+ const ingest$5 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1728
1728
  if (process.env.NODE_ENV !== 'production') {
1729
- const validateError = validate$f(input);
1729
+ const validateError = validate$g(input);
1730
1730
  if (validateError !== null) {
1731
1731
  throw validateError;
1732
1732
  }
1733
1733
  }
1734
- const key = keyBuilderFromType$1(luvio, input);
1735
- const ttlToUse = TTL$4;
1736
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$c, RepresentationType$4, equals$c);
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);
1737
1737
  return createLink(key);
1738
1738
  };
1739
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1739
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1740
1740
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1741
- const rootKey = keyBuilderFromType$1(luvio, input);
1741
+ const rootKey = keyBuilderFromType$2(luvio, input);
1742
1742
  rootKeySet.set(rootKey, {
1743
1743
  namespace: keyPrefix,
1744
- representationName: RepresentationType$4,
1744
+ representationName: RepresentationType$5,
1745
1745
  mergeable: false
1746
1746
  });
1747
1747
  }
1748
1748
 
1749
- function select$g(luvio, params) {
1750
- return select$h();
1749
+ function select$k(luvio, params) {
1750
+ return select$l();
1751
1751
  }
1752
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1753
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
1752
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1753
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1754
1754
  }
1755
- function ingestSuccess$4(luvio, resourceParams, response) {
1755
+ function ingestSuccess$7(luvio, resourceParams, response) {
1756
1756
  const { body } = response;
1757
- const key = keyBuilderFromType$1(luvio, body);
1758
- luvio.storeIngest(key, ingest$4, body);
1757
+ const key = keyBuilderFromType$2(luvio, body);
1758
+ luvio.storeIngest(key, ingest$5, body);
1759
1759
  const snapshot = luvio.storeLookup({
1760
1760
  recordId: key,
1761
- node: select$g(),
1761
+ node: select$k(),
1762
1762
  variables: {},
1763
1763
  });
1764
1764
  if (process.env.NODE_ENV !== 'production') {
@@ -1769,7 +1769,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
1769
1769
  deepFreeze(snapshot.data);
1770
1770
  return snapshot;
1771
1771
  }
1772
- function createResourceRequest$4(config) {
1772
+ function createResourceRequest$7(config) {
1773
1773
  const headers = {};
1774
1774
  return {
1775
1775
  baseUri: '/services/data/v65.0',
@@ -1783,45 +1783,45 @@ function createResourceRequest$4(config) {
1783
1783
  };
1784
1784
  }
1785
1785
 
1786
- const adapterName$4 = 'createGenerations';
1786
+ const adapterName$7 = 'createGenerations';
1787
1787
  const createGenerations_ConfigPropertyMetadata = [
1788
1788
  generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
1789
1789
  ];
1790
- const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createGenerations_ConfigPropertyMetadata);
1791
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(createGenerations_ConfigPropertyMetadata);
1792
- function typeCheckConfig$4(untrustedConfig) {
1790
+ const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createGenerations_ConfigPropertyMetadata);
1791
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(createGenerations_ConfigPropertyMetadata);
1792
+ function typeCheckConfig$7(untrustedConfig) {
1793
1793
  const config = {};
1794
1794
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1795
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$k(untrustedConfig_generationsInput);
1795
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$l(untrustedConfig_generationsInput);
1796
1796
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1797
1797
  config.generationsInput = untrustedConfig_generationsInput;
1798
1798
  }
1799
1799
  return config;
1800
1800
  }
1801
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1801
+ function validateAdapterConfig$7(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$4(untrustedConfig);
1808
+ const config = typeCheckConfig$7(untrustedConfig);
1809
1809
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1810
1810
  return null;
1811
1811
  }
1812
1812
  return config;
1813
1813
  }
1814
- function buildNetworkSnapshot$4(luvio, config, options) {
1815
- const resourceParams = createResourceParams$4(config);
1816
- const request = createResourceRequest$4(resourceParams);
1814
+ function buildNetworkSnapshot$7(luvio, config, options) {
1815
+ const resourceParams = createResourceParams$7(config);
1816
+ const request = createResourceRequest$7(resourceParams);
1817
1817
  return luvio.dispatchResourceRequest(request, options)
1818
1818
  .then((response) => {
1819
1819
  return luvio.handleSuccessResponse(() => {
1820
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1820
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1821
1821
  return luvio.storeBroadcast().then(() => snapshot);
1822
1822
  }, () => {
1823
1823
  const cache = new StoreKeyMap();
1824
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1824
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1825
1825
  return cache;
1826
1826
  });
1827
1827
  }, (response) => {
@@ -1831,16 +1831,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1831
1831
  }
1832
1832
  const createGenerationsAdapterFactory = (luvio) => {
1833
1833
  return function createGenerations(untrustedConfig) {
1834
- const config = validateAdapterConfig$4(untrustedConfig, createGenerations_ConfigPropertyNames);
1834
+ const config = validateAdapterConfig$7(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$4(luvio, config);
1839
+ return buildNetworkSnapshot$7(luvio, config);
1840
1840
  };
1841
1841
  };
1842
1842
 
1843
- function validate$e(obj, path = 'WrappedValueMap') {
1843
+ function validate$f(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$e(obj, path = 'WrappedValueMap') {
1863
1863
  return v_error === undefined ? null : v_error;
1864
1864
  }
1865
1865
 
1866
- function validate$d(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1866
+ function validate$e(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$d(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$l(obj_additionalConfig, path_additionalConfig);
1874
+ const referencepath_additionalConfigValidationError = validate$m(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$d(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1880
1880
  }
1881
1881
  const obj_inputParams = obj.inputParams;
1882
1882
  const path_inputParams = path + '.inputParams';
1883
- const referencepath_inputParamsValidationError = validate$e(obj_inputParams, path_inputParams);
1883
+ const referencepath_inputParamsValidationError = validate$f(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$d(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1916
1916
  return v_error === undefined ? null : v_error;
1917
1917
  }
1918
1918
 
1919
- const VERSION$b = "f62ac44b024b123f079b57f349e05230";
1920
- function validate$c(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
1919
+ const VERSION$c = "f62ac44b024b123f079b57f349e05230";
1920
+ function validate$d(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$c(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
1935
1935
  })();
1936
1936
  return v_error === undefined ? null : v_error;
1937
1937
  }
1938
- const select$f = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
1938
+ const select$j = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
1939
1939
  return {
1940
1940
  kind: 'Fragment',
1941
- version: VERSION$b,
1941
+ version: VERSION$c,
1942
1942
  private: [],
1943
1943
  selections: [
1944
1944
  {
@@ -1952,7 +1952,7 @@ const select$f = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
1952
1952
  ]
1953
1953
  };
1954
1954
  };
1955
- function equals$b(existing, incoming) {
1955
+ function equals$c(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$b(existing, incoming) {
1966
1966
  return true;
1967
1967
  }
1968
1968
 
1969
- const VERSION$a = "b85a5621c60125d9f1644af130f67680";
1970
- function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
1969
+ const VERSION$b = "b85a5621c60125d9f1644af130f67680";
1970
+ function validate$c(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$b(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$c(obj_exclusionInfo, path_exclusionInfo);
1978
+ const referencepath_exclusionInfoValidationError = validate$d(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$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
2012
2012
  })();
2013
2013
  return v_error === undefined ? null : v_error;
2014
2014
  }
2015
- const select$e = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
2016
- const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$f();
2015
+ const select$i = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
2016
+ const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$j();
2017
2017
  return {
2018
2018
  kind: 'Fragment',
2019
- version: VERSION$a,
2019
+ version: VERSION$b,
2020
2020
  private: [],
2021
2021
  selections: [
2022
2022
  {
@@ -2049,7 +2049,7 @@ const select$e = function EinsteinPromptTemplateAttachmentRepresentationSelect()
2049
2049
  ]
2050
2050
  };
2051
2051
  };
2052
- function equals$a(existing, incoming) {
2052
+ function equals$b(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$a(existing, incoming) {
2092
2092
  if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
2093
2093
  return false;
2094
2094
  }
2095
- if (!(equals$b(existing_exclusionInfo, incoming_exclusionInfo))) {
2095
+ if (!(equals$c(existing_exclusionInfo, incoming_exclusionInfo))) {
2096
2096
  return false;
2097
2097
  }
2098
2098
  }
2099
2099
  return true;
2100
2100
  }
2101
2101
 
2102
- const VERSION$9 = "6458d624e5a1691821c764b6de0badb3";
2103
- function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
2102
+ const VERSION$a = "6458d624e5a1691821c764b6de0badb3";
2103
+ function validate$b(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$a(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
2130
2130
  })();
2131
2131
  return v_error === undefined ? null : v_error;
2132
2132
  }
2133
- const select$d = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
2133
+ const select$h = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
2134
2134
  return {
2135
2135
  kind: 'Fragment',
2136
- version: VERSION$9,
2136
+ version: VERSION$a,
2137
2137
  private: [],
2138
2138
  selections: [
2139
2139
  {
@@ -2156,7 +2156,7 @@ const select$d = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
2156
2156
  ]
2157
2157
  };
2158
2158
  };
2159
- function equals$9(existing, incoming) {
2159
+ function equals$a(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$9(existing, incoming) {
2188
2188
  return true;
2189
2189
  }
2190
2190
 
2191
- const VERSION$8 = "7c417ce44e4bc05dfcc454e6825590e8";
2192
- function validate$9(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2191
+ const VERSION$9 = "7c417ce44e4bc05dfcc454e6825590e8";
2192
+ function validate$a(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$9(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
2202
2202
  })();
2203
2203
  return v_error === undefined ? null : v_error;
2204
2204
  }
2205
- const select$c = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2205
+ const select$g = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2206
2206
  return {
2207
2207
  kind: 'Fragment',
2208
- version: VERSION$8,
2208
+ version: VERSION$9,
2209
2209
  private: [],
2210
2210
  selections: [
2211
2211
  {
@@ -2215,7 +2215,7 @@ const select$c = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
2215
2215
  ]
2216
2216
  };
2217
2217
  };
2218
- function equals$8(existing, incoming) {
2218
+ function equals$9(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$8(existing, incoming) {
2224
2224
  return true;
2225
2225
  }
2226
2226
 
2227
- const VERSION$7 = "92ad1abd0e2a60bc36941409cadda7e2";
2228
- function validate$8(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
2227
+ const VERSION$8 = "92ad1abd0e2a60bc36941409cadda7e2";
2228
+ function validate$9(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$8(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$9(obj_moderationSettings, path_moderationSettings);
2243
+ const referencepath_moderationSettingsValidationError = validate$a(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$8(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
2276
2276
  })();
2277
2277
  return v_error === undefined ? null : v_error;
2278
2278
  }
2279
- const select$b = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
2280
- const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$c();
2279
+ const select$f = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
2280
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$g();
2281
2281
  return {
2282
2282
  kind: 'Fragment',
2283
- version: VERSION$7,
2283
+ version: VERSION$8,
2284
2284
  private: [],
2285
2285
  selections: [
2286
2286
  {
@@ -2302,7 +2302,7 @@ const select$b = function EinsteinPromptTemplateMaskContentRepresentationSelect(
2302
2302
  ]
2303
2303
  };
2304
2304
  };
2305
- function equals$7(existing, incoming) {
2305
+ function equals$8(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$7(existing, incoming) {
2333
2333
  if (!(existing_moderationSettings === incoming_moderationSettings
2334
2334
  || (existing_moderationSettings != null &&
2335
2335
  incoming_moderationSettings != null &&
2336
- equals$8(existing_moderationSettings, incoming_moderationSettings)))) {
2336
+ equals$9(existing_moderationSettings, incoming_moderationSettings)))) {
2337
2337
  return false;
2338
2338
  }
2339
2339
  }
2340
2340
  return true;
2341
2341
  }
2342
2342
 
2343
- const VERSION$6 = "507a815605f8d30ae9b52b0ec513d25e";
2344
- function validate$7(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
2343
+ const VERSION$7 = "507a815605f8d30ae9b52b0ec513d25e";
2344
+ function validate$8(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$7(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
2371
2371
  })();
2372
2372
  return v_error === undefined ? null : v_error;
2373
2373
  }
2374
- const select$a = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2374
+ const select$e = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2375
2375
  return {
2376
2376
  kind: 'Fragment',
2377
- version: VERSION$6,
2377
+ version: VERSION$7,
2378
2378
  private: [],
2379
2379
  selections: [
2380
2380
  {
@@ -2393,7 +2393,7 @@ const select$a = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2393
2393
  ]
2394
2394
  };
2395
2395
  };
2396
- function equals$6(existing, incoming) {
2396
+ function equals$7(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$6(existing, incoming) {
2417
2417
  return true;
2418
2418
  }
2419
2419
 
2420
- const TTL$3 = 100;
2421
- const VERSION$5 = "492c5045545dfbf96d7f660532a30499";
2422
- function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2420
+ const TTL$4 = 100;
2421
+ const VERSION$6 = "492c5045545dfbf96d7f660532a30499";
2422
+ function validate$7(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$6(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$b(obj_fileData_item, path_fileData_item);
2436
+ const referencepath_fileData_itemValidationError = validate$c(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$6(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$a(obj_generationErrors_item, path_generationErrors_item);
2453
+ const referencepath_generationErrors_itemValidationError = validate$b(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$6(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$h(obj_generations_item, path_generations_item);
2469
+ const referencepath_generations_itemValidationError = validate$i(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$6(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$g(obj_parameters, path_parameters);
2496
+ const referencepath_parametersValidationError = validate$h(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$6(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$8(obj_requestMessages_item, path_requestMessages_item);
2566
+ const referencepath_requestMessages_itemValidationError = validate$9(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$6(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$8(obj_responseMessages_item, path_responseMessages_item);
2583
+ const referencepath_responseMessages_itemValidationError = validate$9(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$6(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$7(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
2600
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$8(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$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2608
2608
  })();
2609
2609
  return v_error === undefined ? null : v_error;
2610
2610
  }
2611
- const RepresentationType$3 = 'EinsteinPromptTemplateGenerationsRepresentation';
2612
- function keyBuilder$6(luvio, config) {
2613
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.requestId;
2611
+ const RepresentationType$4 = 'EinsteinPromptTemplateGenerationsRepresentation';
2612
+ function keyBuilder$7(luvio, config) {
2613
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.requestId;
2614
2614
  }
2615
- function keyBuilderFromType(luvio, object) {
2615
+ function keyBuilderFromType$1(luvio, object) {
2616
2616
  const keyParams = {
2617
2617
  requestId: object.requestId
2618
2618
  };
2619
- return keyBuilder$6(luvio, keyParams);
2619
+ return keyBuilder$7(luvio, keyParams);
2620
2620
  }
2621
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2621
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2622
2622
  return input;
2623
2623
  }
2624
- const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2625
- const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$e();
2626
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$d();
2627
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$j();
2628
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$i();
2629
- const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$b();
2630
- const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$a();
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();
2631
2631
  return {
2632
2632
  kind: 'Fragment',
2633
- version: VERSION$5,
2633
+ version: VERSION$6,
2634
2634
  private: [],
2635
2635
  selections: [
2636
2636
  {
@@ -2700,7 +2700,7 @@ const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
2700
2700
  ]
2701
2701
  };
2702
2702
  };
2703
- function equals$5(existing, incoming) {
2703
+ function equals$6(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$5(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$a(existing_fileData_item, incoming_fileData_item))) {
2724
+ if (!(equals$b(existing_fileData_item, incoming_fileData_item))) {
2725
2725
  return false;
2726
2726
  }
2727
2727
  });
@@ -2739,7 +2739,7 @@ function equals$5(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$9(existing_generationErrors_item, incoming_generationErrors_item))) {
2742
+ if (!(equals$a(existing_generationErrors_item, incoming_generationErrors_item))) {
2743
2743
  return false;
2744
2744
  }
2745
2745
  });
@@ -2750,7 +2750,7 @@ function equals$5(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$e(existing_generations_item, incoming_generations_item))) {
2753
+ if (!(equals$f(existing_generations_item, incoming_generations_item))) {
2754
2754
  return false;
2755
2755
  }
2756
2756
  });
@@ -2780,7 +2780,7 @@ function equals$5(existing, incoming) {
2780
2780
  if (!(existing_parameters === incoming_parameters
2781
2781
  || (existing_parameters != null &&
2782
2782
  incoming_parameters != null &&
2783
- equals$d(existing_parameters, incoming_parameters)))) {
2783
+ equals$e(existing_parameters, incoming_parameters)))) {
2784
2784
  return false;
2785
2785
  }
2786
2786
  const existing_prompt = existing.prompt;
@@ -2798,7 +2798,7 @@ function equals$5(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$7(existing_requestMessages_item, incoming_requestMessages_item))) {
2801
+ if (!(equals$8(existing_requestMessages_item, incoming_requestMessages_item))) {
2802
2802
  return false;
2803
2803
  }
2804
2804
  });
@@ -2816,7 +2816,7 @@ function equals$5(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$7(existing_responseMessages_item, incoming_responseMessages_item))) {
2819
+ if (!(equals$8(existing_responseMessages_item, incoming_responseMessages_item))) {
2820
2820
  return false;
2821
2821
  }
2822
2822
  });
@@ -2834,7 +2834,7 @@ function equals$5(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$6(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2837
+ if (!(equals$7(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2838
2838
  return false;
2839
2839
  }
2840
2840
  });
@@ -2844,41 +2844,41 @@ function equals$5(existing, incoming) {
2844
2844
  }
2845
2845
  return true;
2846
2846
  }
2847
- const ingest$3 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
2847
+ const ingest$4 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
2848
2848
  if (process.env.NODE_ENV !== 'production') {
2849
- const validateError = validate$6(input);
2849
+ const validateError = validate$7(input);
2850
2850
  if (validateError !== null) {
2851
2851
  throw validateError;
2852
2852
  }
2853
2853
  }
2854
- const key = keyBuilderFromType(luvio, input);
2855
- const ttlToUse = TTL$3;
2856
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$5, RepresentationType$3, equals$5);
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);
2857
2857
  return createLink(key);
2858
2858
  };
2859
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2859
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2860
2860
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2861
- const rootKey = keyBuilderFromType(luvio, input);
2861
+ const rootKey = keyBuilderFromType$1(luvio, input);
2862
2862
  rootKeySet.set(rootKey, {
2863
2863
  namespace: keyPrefix,
2864
- representationName: RepresentationType$3,
2864
+ representationName: RepresentationType$4,
2865
2865
  mergeable: false
2866
2866
  });
2867
2867
  }
2868
2868
 
2869
- function select$8(luvio, params) {
2870
- return select$9();
2869
+ function select$c(luvio, params) {
2870
+ return select$d();
2871
2871
  }
2872
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2873
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2872
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2873
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2874
2874
  }
2875
- function ingestSuccess$3(luvio, resourceParams, response) {
2875
+ function ingestSuccess$6(luvio, resourceParams, response) {
2876
2876
  const { body } = response;
2877
- const key = keyBuilderFromType(luvio, body);
2878
- luvio.storeIngest(key, ingest$3, body);
2877
+ const key = keyBuilderFromType$1(luvio, body);
2878
+ luvio.storeIngest(key, ingest$4, body);
2879
2879
  const snapshot = luvio.storeLookup({
2880
2880
  recordId: key,
2881
- node: select$8(),
2881
+ node: select$c(),
2882
2882
  variables: {},
2883
2883
  });
2884
2884
  if (process.env.NODE_ENV !== 'production') {
@@ -2889,7 +2889,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
2889
2889
  deepFreeze(snapshot.data);
2890
2890
  return snapshot;
2891
2891
  }
2892
- function createResourceRequest$3(config) {
2892
+ function createResourceRequest$6(config) {
2893
2893
  const headers = {};
2894
2894
  return {
2895
2895
  baseUri: '/services/data/v65.0',
@@ -2903,48 +2903,48 @@ function createResourceRequest$3(config) {
2903
2903
  };
2904
2904
  }
2905
2905
 
2906
- const adapterName$3 = 'createGenerationsForPromptTemplate';
2906
+ const adapterName$6 = '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$3, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2913
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2914
- function typeCheckConfig$3(untrustedConfig) {
2912
+ const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2913
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2914
+ function typeCheckConfig$6(untrustedConfig) {
2915
2915
  const config = {};
2916
- typeCheckConfig$7(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2916
+ typeCheckConfig$a(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2917
2917
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
2918
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$d(untrustedConfig_promptTemplateGenerationsInput);
2918
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$e(untrustedConfig_promptTemplateGenerationsInput);
2919
2919
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
2920
2920
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
2921
2921
  }
2922
2922
  return config;
2923
2923
  }
2924
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2924
+ function validateAdapterConfig$6(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$3(untrustedConfig);
2931
+ const config = typeCheckConfig$6(untrustedConfig);
2932
2932
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2933
2933
  return null;
2934
2934
  }
2935
2935
  return config;
2936
2936
  }
2937
- function buildNetworkSnapshot$3(luvio, config, options) {
2938
- const resourceParams = createResourceParams$3(config);
2939
- const request = createResourceRequest$3(resourceParams);
2937
+ function buildNetworkSnapshot$6(luvio, config, options) {
2938
+ const resourceParams = createResourceParams$6(config);
2939
+ const request = createResourceRequest$6(resourceParams);
2940
2940
  return luvio.dispatchResourceRequest(request, options)
2941
2941
  .then((response) => {
2942
2942
  return luvio.handleSuccessResponse(() => {
2943
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2943
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2944
2944
  return luvio.storeBroadcast().then(() => snapshot);
2945
2945
  }, () => {
2946
2946
  const cache = new StoreKeyMap();
2947
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2947
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2948
2948
  return cache;
2949
2949
  });
2950
2950
  }, (response) => {
@@ -2954,56 +2954,566 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2954
2954
  }
2955
2955
  const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
2956
2956
  return function createGenerationsForPromptTemplate(untrustedConfig) {
2957
- const config = validateAdapterConfig$3(untrustedConfig, createGenerationsForPromptTemplate_ConfigPropertyNames);
2957
+ const config = validateAdapterConfig$6(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$3(luvio, config);
2962
+ return buildNetworkSnapshot$6(luvio, config);
2963
2963
  };
2964
2964
  };
2965
2965
 
2966
- const VERSION$4 = "b513bbac1672327d8eaaf120660e94b5";
2967
- function validate$5(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
2966
+ const TTL$3 = 100;
2967
+ const VERSION$5 = "a90a51578e2fdd7a9741d310bed22b1d";
2968
+ function validate$6(obj, path = 'EinsteinPromptTemplateRepresentation') {
2968
2969
  const v_error = (() => {
2969
2970
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2970
2971
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2971
2972
  }
2972
- const obj_errorMessage = obj.errorMessage;
2973
- const path_errorMessage = path + '.errorMessage';
2974
- if (typeof obj_errorMessage !== 'string') {
2975
- return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
2973
+ if (obj.additionalData !== undefined) {
2974
+ const obj_additionalData = obj.additionalData;
2975
+ const path_additionalData = path + '.additionalData';
2976
+ const referencepath_additionalDataValidationError = validate$h(obj_additionalData, path_additionalData);
2977
+ if (referencepath_additionalDataValidationError !== null) {
2978
+ let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
2979
+ message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2980
+ return new TypeError(message);
2981
+ }
2976
2982
  }
2977
- const obj_messageCode = obj.messageCode;
2978
- const path_messageCode = path + '.messageCode';
2979
- if (typeof obj_messageCode !== 'string') {
2980
- return new TypeError('Expected "string" but received "' + typeof obj_messageCode + '" (at "' + path_messageCode + '")');
2983
+ const obj_errorMessages = obj.errorMessages;
2984
+ const path_errorMessages = path + '.errorMessages';
2985
+ if (!ArrayIsArray(obj_errorMessages)) {
2986
+ return new TypeError('Expected "array" but received "' + typeof obj_errorMessages + '" (at "' + path_errorMessages + '")');
2987
+ }
2988
+ for (let i = 0; i < obj_errorMessages.length; i++) {
2989
+ const obj_errorMessages_item = obj_errorMessages[i];
2990
+ const path_errorMessages_item = path_errorMessages + '[' + i + ']';
2991
+ if (typeof obj_errorMessages_item !== 'string') {
2992
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessages_item + '" (at "' + path_errorMessages_item + '")');
2993
+ }
2994
+ }
2995
+ const obj_hasWarning = obj.hasWarning;
2996
+ const path_hasWarning = path + '.hasWarning';
2997
+ if (typeof obj_hasWarning !== 'boolean') {
2998
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasWarning + '" (at "' + path_hasWarning + '")');
2999
+ }
3000
+ const obj_isSuccessful = obj.isSuccessful;
3001
+ const path_isSuccessful = path + '.isSuccessful';
3002
+ if (typeof obj_isSuccessful !== 'boolean') {
3003
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccessful + '" (at "' + path_isSuccessful + '")');
3004
+ }
3005
+ if (obj.statusCode !== undefined) {
3006
+ const obj_statusCode = obj.statusCode;
3007
+ const path_statusCode = path + '.statusCode';
3008
+ if (typeof obj_statusCode !== 'string') {
3009
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
3010
+ }
3011
+ }
3012
+ const obj_templateId = obj.templateId;
3013
+ const path_templateId = path + '.templateId';
3014
+ if (typeof obj_templateId !== 'string') {
3015
+ return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
3016
+ }
3017
+ if (obj.templateType !== undefined) {
3018
+ const obj_templateType = obj.templateType;
3019
+ const path_templateType = path + '.templateType';
3020
+ if (typeof obj_templateType !== 'string') {
3021
+ return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
3022
+ }
3023
+ }
3024
+ const obj_versionId = obj.versionId;
3025
+ const path_versionId = path + '.versionId';
3026
+ if (typeof obj_versionId !== 'string') {
3027
+ return new TypeError('Expected "string" but received "' + typeof obj_versionId + '" (at "' + path_versionId + '")');
3028
+ }
3029
+ const obj_warningMessages = obj.warningMessages;
3030
+ const path_warningMessages = path + '.warningMessages';
3031
+ if (!ArrayIsArray(obj_warningMessages)) {
3032
+ return new TypeError('Expected "array" but received "' + typeof obj_warningMessages + '" (at "' + path_warningMessages + '")');
3033
+ }
3034
+ for (let i = 0; i < obj_warningMessages.length; i++) {
3035
+ const obj_warningMessages_item = obj_warningMessages[i];
3036
+ const path_warningMessages_item = path_warningMessages + '[' + i + ']';
3037
+ if (typeof obj_warningMessages_item !== 'string') {
3038
+ return new TypeError('Expected "string" but received "' + typeof obj_warningMessages_item + '" (at "' + path_warningMessages_item + '")');
3039
+ }
2981
3040
  }
2982
3041
  })();
2983
3042
  return v_error === undefined ? null : v_error;
2984
3043
  }
2985
- const select$7 = function EinsteinPromptTemplateSupportedLanguageErrorRepresentationSelect() {
3044
+ const RepresentationType$3 = 'EinsteinPromptTemplateRepresentation';
3045
+ function keyBuilder$6(luvio, config) {
3046
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.versionId;
3047
+ }
3048
+ function keyBuilderFromType(luvio, object) {
3049
+ const keyParams = {
3050
+ versionId: object.versionId
3051
+ };
3052
+ return keyBuilder$6(luvio, keyParams);
3053
+ }
3054
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
3055
+ return input;
3056
+ }
3057
+ const select$b = function EinsteinPromptTemplateRepresentationSelect() {
3058
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$m();
2986
3059
  return {
2987
3060
  kind: 'Fragment',
2988
- version: VERSION$4,
3061
+ version: VERSION$5,
2989
3062
  private: [],
2990
3063
  selections: [
2991
3064
  {
2992
- name: 'errorMessage',
3065
+ name: 'additionalData',
3066
+ kind: 'Object',
3067
+ selections: WrappedMap__selections,
3068
+ required: false
3069
+ },
3070
+ {
3071
+ name: 'errorMessages',
3072
+ kind: 'Scalar',
3073
+ plural: true
3074
+ },
3075
+ {
3076
+ name: 'hasWarning',
2993
3077
  kind: 'Scalar'
2994
3078
  },
2995
3079
  {
2996
- name: 'messageCode',
3080
+ name: 'isSuccessful',
2997
3081
  kind: 'Scalar'
2998
- }
2999
- ]
3000
- };
3001
- };
3002
- function equals$4(existing, incoming) {
3003
- const existing_errorMessage = existing.errorMessage;
3004
- const incoming_errorMessage = incoming.errorMessage;
3005
- if (!(existing_errorMessage === incoming_errorMessage)) {
3006
- return false;
3082
+ },
3083
+ {
3084
+ name: 'statusCode',
3085
+ kind: 'Scalar',
3086
+ required: false
3087
+ },
3088
+ {
3089
+ name: 'templateId',
3090
+ kind: 'Scalar'
3091
+ },
3092
+ {
3093
+ name: 'templateType',
3094
+ kind: 'Scalar',
3095
+ required: false
3096
+ },
3097
+ {
3098
+ name: 'versionId',
3099
+ kind: 'Scalar'
3100
+ },
3101
+ {
3102
+ name: 'warningMessages',
3103
+ kind: 'Scalar',
3104
+ plural: true
3105
+ }
3106
+ ]
3107
+ };
3108
+ };
3109
+ function equals$5(existing, incoming) {
3110
+ const existing_hasWarning = existing.hasWarning;
3111
+ const incoming_hasWarning = incoming.hasWarning;
3112
+ if (!(existing_hasWarning === incoming_hasWarning)) {
3113
+ return false;
3114
+ }
3115
+ const existing_isSuccessful = existing.isSuccessful;
3116
+ const incoming_isSuccessful = incoming.isSuccessful;
3117
+ if (!(existing_isSuccessful === incoming_isSuccessful)) {
3118
+ return false;
3119
+ }
3120
+ const existing_statusCode = existing.statusCode;
3121
+ const incoming_statusCode = incoming.statusCode;
3122
+ // if at least one of these optionals is defined
3123
+ if (existing_statusCode !== undefined || incoming_statusCode !== undefined) {
3124
+ // if one of these is not defined we know the other is defined and therefore
3125
+ // not equal
3126
+ if (existing_statusCode === undefined || incoming_statusCode === undefined) {
3127
+ return false;
3128
+ }
3129
+ if (!(existing_statusCode === incoming_statusCode)) {
3130
+ return false;
3131
+ }
3132
+ }
3133
+ const existing_templateId = existing.templateId;
3134
+ const incoming_templateId = incoming.templateId;
3135
+ if (!(existing_templateId === incoming_templateId)) {
3136
+ return false;
3137
+ }
3138
+ const existing_templateType = existing.templateType;
3139
+ const incoming_templateType = incoming.templateType;
3140
+ // if at least one of these optionals is defined
3141
+ if (existing_templateType !== undefined || incoming_templateType !== undefined) {
3142
+ // if one of these is not defined we know the other is defined and therefore
3143
+ // not equal
3144
+ if (existing_templateType === undefined || incoming_templateType === undefined) {
3145
+ return false;
3146
+ }
3147
+ if (!(existing_templateType === incoming_templateType)) {
3148
+ return false;
3149
+ }
3150
+ }
3151
+ const existing_versionId = existing.versionId;
3152
+ const incoming_versionId = incoming.versionId;
3153
+ if (!(existing_versionId === incoming_versionId)) {
3154
+ return false;
3155
+ }
3156
+ const existing_additionalData = existing.additionalData;
3157
+ const incoming_additionalData = incoming.additionalData;
3158
+ // if at least one of these optionals is defined
3159
+ if (existing_additionalData !== undefined || incoming_additionalData !== undefined) {
3160
+ // if one of these is not defined we know the other is defined and therefore
3161
+ // not equal
3162
+ if (existing_additionalData === undefined || incoming_additionalData === undefined) {
3163
+ return false;
3164
+ }
3165
+ if (!(equals$e(existing_additionalData, incoming_additionalData))) {
3166
+ return false;
3167
+ }
3168
+ }
3169
+ const existing_errorMessages = existing.errorMessages;
3170
+ const incoming_errorMessages = incoming.errorMessages;
3171
+ const equals_errorMessages_items = equalsArray(existing_errorMessages, incoming_errorMessages, (existing_errorMessages_item, incoming_errorMessages_item) => {
3172
+ if (!(existing_errorMessages_item === incoming_errorMessages_item)) {
3173
+ return false;
3174
+ }
3175
+ });
3176
+ if (equals_errorMessages_items === false) {
3177
+ return false;
3178
+ }
3179
+ const existing_warningMessages = existing.warningMessages;
3180
+ const incoming_warningMessages = incoming.warningMessages;
3181
+ const equals_warningMessages_items = equalsArray(existing_warningMessages, incoming_warningMessages, (existing_warningMessages_item, incoming_warningMessages_item) => {
3182
+ if (!(existing_warningMessages_item === incoming_warningMessages_item)) {
3183
+ return false;
3184
+ }
3185
+ });
3186
+ if (equals_warningMessages_items === false) {
3187
+ return false;
3188
+ }
3189
+ return true;
3190
+ }
3191
+ const ingest$3 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
3192
+ if (process.env.NODE_ENV !== 'production') {
3193
+ const validateError = validate$6(input);
3194
+ if (validateError !== null) {
3195
+ throw validateError;
3196
+ }
3197
+ }
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);
3201
+ return createLink(key);
3202
+ };
3203
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3204
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3205
+ const rootKey = keyBuilderFromType(luvio, input);
3206
+ rootKeySet.set(rootKey, {
3207
+ namespace: keyPrefix,
3208
+ representationName: RepresentationType$3,
3209
+ mergeable: false
3210
+ });
3211
+ }
3212
+
3213
+ function select$a(luvio, params) {
3214
+ return select$b();
3215
+ }
3216
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3217
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
3218
+ }
3219
+ function ingestSuccess$5(luvio, resourceParams, response) {
3220
+ const { body } = response;
3221
+ const key = keyBuilderFromType(luvio, body);
3222
+ luvio.storeIngest(key, ingest$3, body);
3223
+ const snapshot = luvio.storeLookup({
3224
+ recordId: key,
3225
+ node: select$a(),
3226
+ variables: {},
3227
+ });
3228
+ if (process.env.NODE_ENV !== 'production') {
3229
+ if (snapshot.state !== 'Fulfilled') {
3230
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3231
+ }
3232
+ }
3233
+ deepFreeze(snapshot.data);
3234
+ return snapshot;
3235
+ }
3236
+ function createResourceRequest$5(config) {
3237
+ const headers = {};
3238
+ return {
3239
+ baseUri: '/services/data/v65.0',
3240
+ basePath: '/einstein/prompt-templates',
3241
+ method: 'post',
3242
+ body: config.body,
3243
+ urlParams: {},
3244
+ queryParams: {},
3245
+ headers,
3246
+ priority: 'normal',
3247
+ };
3248
+ }
3249
+
3250
+ const adapterName$5 = 'createPromptTemplate';
3251
+ const createPromptTemplate_ConfigPropertyMetadata = [
3252
+ generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
3253
+ generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
3254
+ generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */, true),
3255
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3256
+ generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
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) {
3261
+ const config = {};
3262
+ typeCheckConfig$a(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
3263
+ const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3264
+ if (untrustedIsObject(untrustedConfig_childRelationships)) {
3265
+ const untrustedConfig_childRelationships_object = {};
3266
+ const untrustedConfig_childRelationships_keys = Object.keys(untrustedConfig_childRelationships);
3267
+ for (let i = 0, arrayLength = untrustedConfig_childRelationships_keys.length; i < arrayLength; i++) {
3268
+ const key = untrustedConfig_childRelationships_keys[i];
3269
+ const untrustedConfig_childRelationships_prop = untrustedConfig_childRelationships[key];
3270
+ if (untrustedConfig_childRelationships_object !== undefined) {
3271
+ untrustedConfig_childRelationships_object[key] = untrustedConfig_childRelationships_prop;
3272
+ }
3273
+ }
3274
+ if (untrustedConfig_childRelationships_object !== undefined && Object.keys(untrustedConfig_childRelationships_object).length >= 0) {
3275
+ config.childRelationships = untrustedConfig_childRelationships_object;
3276
+ }
3277
+ }
3278
+ const untrustedConfig_fields = untrustedConfig.fields;
3279
+ if (ArrayIsArray$1(untrustedConfig_fields)) {
3280
+ const untrustedConfig_fields_array = [];
3281
+ for (let i = 0, arrayLength = untrustedConfig_fields.length; i < arrayLength; i++) {
3282
+ const untrustedConfig_fields_item = untrustedConfig_fields[i];
3283
+ if (untrustedIsObject(untrustedConfig_fields_item)) {
3284
+ const untrustedConfig_fields_item_object = {};
3285
+ const untrustedConfig_fields_item_keys = Object.keys(untrustedConfig_fields_item);
3286
+ for (let i = 0, arrayLength = untrustedConfig_fields_item_keys.length; i < arrayLength; i++) {
3287
+ const key = untrustedConfig_fields_item_keys[i];
3288
+ const untrustedConfig_fields_item_prop = untrustedConfig_fields_item[key];
3289
+ if (untrustedConfig_fields_item_object !== undefined) {
3290
+ untrustedConfig_fields_item_object[key] = untrustedConfig_fields_item_prop;
3291
+ }
3292
+ }
3293
+ if (untrustedConfig_fields_item_object !== undefined && Object.keys(untrustedConfig_fields_item_object).length >= 0) {
3294
+ untrustedConfig_fields_array.push(untrustedConfig_fields_item_object);
3295
+ }
3296
+ }
3297
+ }
3298
+ config.fields = untrustedConfig_fields_array;
3299
+ }
3300
+ return config;
3301
+ }
3302
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3303
+ if (!untrustedIsObject(untrustedConfig)) {
3304
+ return null;
3305
+ }
3306
+ if (process.env.NODE_ENV !== 'production') {
3307
+ validateConfig(untrustedConfig, configPropertyNames);
3308
+ }
3309
+ const config = typeCheckConfig$5(untrustedConfig);
3310
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3311
+ return null;
3312
+ }
3313
+ return config;
3314
+ }
3315
+ function buildNetworkSnapshot$5(luvio, config, options) {
3316
+ const resourceParams = createResourceParams$5(config);
3317
+ const request = createResourceRequest$5(resourceParams);
3318
+ return luvio.dispatchResourceRequest(request, options)
3319
+ .then((response) => {
3320
+ return luvio.handleSuccessResponse(() => {
3321
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
3322
+ return luvio.storeBroadcast().then(() => snapshot);
3323
+ }, () => {
3324
+ const cache = new StoreKeyMap();
3325
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3326
+ return cache;
3327
+ });
3328
+ }, (response) => {
3329
+ deepFreeze(response);
3330
+ throw response;
3331
+ });
3332
+ }
3333
+ const createPromptTemplateAdapterFactory = (luvio) => {
3334
+ return function createPromptTemplate(untrustedConfig) {
3335
+ const config = validateAdapterConfig$5(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
3336
+ // Invalid or incomplete config
3337
+ if (config === null) {
3338
+ throw new Error('Invalid config for "createPromptTemplate"');
3339
+ }
3340
+ return buildNetworkSnapshot$5(luvio, config);
3341
+ };
3342
+ };
3343
+
3344
+ function select$9(luvio, params) {
3345
+ return select$b();
3346
+ }
3347
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3348
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
3349
+ }
3350
+ function ingestSuccess$4(luvio, resourceParams, response) {
3351
+ const { body } = response;
3352
+ const key = keyBuilderFromType(luvio, body);
3353
+ luvio.storeIngest(key, ingest$3, body);
3354
+ const snapshot = luvio.storeLookup({
3355
+ recordId: key,
3356
+ node: select$9(),
3357
+ variables: {},
3358
+ });
3359
+ if (process.env.NODE_ENV !== 'production') {
3360
+ if (snapshot.state !== 'Fulfilled') {
3361
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3362
+ }
3363
+ }
3364
+ deepFreeze(snapshot.data);
3365
+ return snapshot;
3366
+ }
3367
+ function createResourceRequest$4(config) {
3368
+ const headers = {};
3369
+ return {
3370
+ baseUri: '/services/data/v65.0',
3371
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
3372
+ method: 'post',
3373
+ body: config.body,
3374
+ urlParams: config.urlParams,
3375
+ queryParams: {},
3376
+ headers,
3377
+ priority: 'normal',
3378
+ };
3379
+ }
3380
+
3381
+ const adapterName$4 = 'createPromptTemplateVersion';
3382
+ const createPromptTemplateVersion_ConfigPropertyMetadata = [
3383
+ generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3384
+ generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
3385
+ generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
3386
+ generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */, true),
3387
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
3388
+ generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
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) {
3393
+ const config = {};
3394
+ typeCheckConfig$a(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
3395
+ const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
3396
+ if (untrustedIsObject(untrustedConfig_childRelationships)) {
3397
+ const untrustedConfig_childRelationships_object = {};
3398
+ const untrustedConfig_childRelationships_keys = Object.keys(untrustedConfig_childRelationships);
3399
+ for (let i = 0, arrayLength = untrustedConfig_childRelationships_keys.length; i < arrayLength; i++) {
3400
+ const key = untrustedConfig_childRelationships_keys[i];
3401
+ const untrustedConfig_childRelationships_prop = untrustedConfig_childRelationships[key];
3402
+ if (untrustedConfig_childRelationships_object !== undefined) {
3403
+ untrustedConfig_childRelationships_object[key] = untrustedConfig_childRelationships_prop;
3404
+ }
3405
+ }
3406
+ if (untrustedConfig_childRelationships_object !== undefined && Object.keys(untrustedConfig_childRelationships_object).length >= 0) {
3407
+ config.childRelationships = untrustedConfig_childRelationships_object;
3408
+ }
3409
+ }
3410
+ const untrustedConfig_fields = untrustedConfig.fields;
3411
+ if (ArrayIsArray$1(untrustedConfig_fields)) {
3412
+ const untrustedConfig_fields_array = [];
3413
+ for (let i = 0, arrayLength = untrustedConfig_fields.length; i < arrayLength; i++) {
3414
+ const untrustedConfig_fields_item = untrustedConfig_fields[i];
3415
+ if (untrustedIsObject(untrustedConfig_fields_item)) {
3416
+ const untrustedConfig_fields_item_object = {};
3417
+ const untrustedConfig_fields_item_keys = Object.keys(untrustedConfig_fields_item);
3418
+ for (let i = 0, arrayLength = untrustedConfig_fields_item_keys.length; i < arrayLength; i++) {
3419
+ const key = untrustedConfig_fields_item_keys[i];
3420
+ const untrustedConfig_fields_item_prop = untrustedConfig_fields_item[key];
3421
+ if (untrustedConfig_fields_item_object !== undefined) {
3422
+ untrustedConfig_fields_item_object[key] = untrustedConfig_fields_item_prop;
3423
+ }
3424
+ }
3425
+ if (untrustedConfig_fields_item_object !== undefined && Object.keys(untrustedConfig_fields_item_object).length >= 0) {
3426
+ untrustedConfig_fields_array.push(untrustedConfig_fields_item_object);
3427
+ }
3428
+ }
3429
+ }
3430
+ config.fields = untrustedConfig_fields_array;
3431
+ }
3432
+ return config;
3433
+ }
3434
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3435
+ if (!untrustedIsObject(untrustedConfig)) {
3436
+ return null;
3437
+ }
3438
+ if (process.env.NODE_ENV !== 'production') {
3439
+ validateConfig(untrustedConfig, configPropertyNames);
3440
+ }
3441
+ const config = typeCheckConfig$4(untrustedConfig);
3442
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3443
+ return null;
3444
+ }
3445
+ return config;
3446
+ }
3447
+ function buildNetworkSnapshot$4(luvio, config, options) {
3448
+ const resourceParams = createResourceParams$4(config);
3449
+ const request = createResourceRequest$4(resourceParams);
3450
+ return luvio.dispatchResourceRequest(request, options)
3451
+ .then((response) => {
3452
+ return luvio.handleSuccessResponse(() => {
3453
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3454
+ return luvio.storeBroadcast().then(() => snapshot);
3455
+ }, () => {
3456
+ const cache = new StoreKeyMap();
3457
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3458
+ return cache;
3459
+ });
3460
+ }, (response) => {
3461
+ deepFreeze(response);
3462
+ throw response;
3463
+ });
3464
+ }
3465
+ const createPromptTemplateVersionAdapterFactory = (luvio) => {
3466
+ return function createPromptTemplateVersion(untrustedConfig) {
3467
+ const config = validateAdapterConfig$4(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
3468
+ // Invalid or incomplete config
3469
+ if (config === null) {
3470
+ throw new Error('Invalid config for "createPromptTemplateVersion"');
3471
+ }
3472
+ return buildNetworkSnapshot$4(luvio, config);
3473
+ };
3474
+ };
3475
+
3476
+ const VERSION$4 = "b513bbac1672327d8eaaf120660e94b5";
3477
+ function validate$5(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
3478
+ const v_error = (() => {
3479
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3480
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3481
+ }
3482
+ const obj_errorMessage = obj.errorMessage;
3483
+ const path_errorMessage = path + '.errorMessage';
3484
+ if (typeof obj_errorMessage !== 'string') {
3485
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
3486
+ }
3487
+ const obj_messageCode = obj.messageCode;
3488
+ const path_messageCode = path + '.messageCode';
3489
+ if (typeof obj_messageCode !== 'string') {
3490
+ return new TypeError('Expected "string" but received "' + typeof obj_messageCode + '" (at "' + path_messageCode + '")');
3491
+ }
3492
+ })();
3493
+ return v_error === undefined ? null : v_error;
3494
+ }
3495
+ const select$8 = function EinsteinPromptTemplateSupportedLanguageErrorRepresentationSelect() {
3496
+ return {
3497
+ kind: 'Fragment',
3498
+ version: VERSION$4,
3499
+ private: [],
3500
+ selections: [
3501
+ {
3502
+ name: 'errorMessage',
3503
+ kind: 'Scalar'
3504
+ },
3505
+ {
3506
+ name: 'messageCode',
3507
+ kind: 'Scalar'
3508
+ }
3509
+ ]
3510
+ };
3511
+ };
3512
+ function equals$4(existing, incoming) {
3513
+ const existing_errorMessage = existing.errorMessage;
3514
+ const incoming_errorMessage = incoming.errorMessage;
3515
+ if (!(existing_errorMessage === incoming_errorMessage)) {
3516
+ return false;
3007
3517
  }
3008
3518
  const existing_messageCode = existing.messageCode;
3009
3519
  const incoming_messageCode = incoming.messageCode;
@@ -3032,7 +3542,7 @@ function validate$4(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresen
3032
3542
  })();
3033
3543
  return v_error === undefined ? null : v_error;
3034
3544
  }
3035
- const select$6 = function EinsteinPromptTemplateSupportedLanguageRepresentationSelect() {
3545
+ const select$7 = function EinsteinPromptTemplateSupportedLanguageRepresentationSelect() {
3036
3546
  return {
3037
3547
  kind: 'Fragment',
3038
3548
  version: VERSION$3,
@@ -3122,9 +3632,9 @@ const RepresentationType$2 = 'EinsteinPromptTemplateVersionOutputLanguagesRepres
3122
3632
  function normalize$2(input, existing, path, luvio, store, timestamp) {
3123
3633
  return input;
3124
3634
  }
3125
- const select$5 = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationSelect() {
3126
- const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$7();
3127
- const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$6();
3635
+ const select$6 = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationSelect() {
3636
+ const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$8();
3637
+ const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$7();
3128
3638
  return {
3129
3639
  kind: 'Fragment',
3130
3640
  version: VERSION$2,
@@ -3217,22 +3727,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3217
3727
  });
3218
3728
  }
3219
3729
 
3220
- function select$4(luvio, params) {
3221
- return select$5();
3730
+ function select$5(luvio, params) {
3731
+ return select$6();
3222
3732
  }
3223
3733
  function keyBuilder$5(luvio, params) {
3224
3734
  return keyPrefix + '::EinsteinPromptTemplateVersionOutputLanguagesRepresentation:(' + 'useStandardVersion:' + params.queryParams.useStandardVersion + ',' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
3225
3735
  }
3226
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3736
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3227
3737
  getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
3228
3738
  }
3229
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3739
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
3230
3740
  const { body } = response;
3231
3741
  const key = keyBuilder$5(luvio, resourceParams);
3232
3742
  luvio.storeIngest(key, ingest$2, body);
3233
3743
  const snapshot = luvio.storeLookup({
3234
3744
  recordId: key,
3235
- node: select$4(),
3745
+ node: select$5(),
3236
3746
  variables: {},
3237
3747
  }, snapshotRefresh);
3238
3748
  if (process.env.NODE_ENV !== 'production') {
@@ -3255,7 +3765,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
3255
3765
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3256
3766
  return errorSnapshot;
3257
3767
  }
3258
- function createResourceRequest$2(config) {
3768
+ function createResourceRequest$3(config) {
3259
3769
  const headers = {};
3260
3770
  return {
3261
3771
  baseUri: '/services/data/v65.0',
@@ -3269,62 +3779,62 @@ function createResourceRequest$2(config) {
3269
3779
  };
3270
3780
  }
3271
3781
 
3272
- const adapterName$2 = 'getOutputLanguages';
3782
+ const adapterName$3 = 'getOutputLanguages';
3273
3783
  const getOutputLanguages_ConfigPropertyMetadata = [
3274
3784
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3275
3785
  generateParamConfigMetadata('useStandardVersion', false, 1 /* QueryParameter */, 1 /* Boolean */),
3276
3786
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3277
3787
  ];
3278
- const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getOutputLanguages_ConfigPropertyMetadata);
3279
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getOutputLanguages_ConfigPropertyMetadata);
3788
+ const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getOutputLanguages_ConfigPropertyMetadata);
3789
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getOutputLanguages_ConfigPropertyMetadata);
3280
3790
  function keyBuilder$4(luvio, config) {
3281
- const resourceParams = createResourceParams$2(config);
3791
+ const resourceParams = createResourceParams$3(config);
3282
3792
  return keyBuilder$5(luvio, resourceParams);
3283
3793
  }
3284
- function typeCheckConfig$2(untrustedConfig) {
3794
+ function typeCheckConfig$3(untrustedConfig) {
3285
3795
  const config = {};
3286
- typeCheckConfig$7(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
3796
+ typeCheckConfig$a(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
3287
3797
  return config;
3288
3798
  }
3289
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3799
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
3290
3800
  if (!untrustedIsObject(untrustedConfig)) {
3291
3801
  return null;
3292
3802
  }
3293
3803
  if (process.env.NODE_ENV !== 'production') {
3294
3804
  validateConfig(untrustedConfig, configPropertyNames);
3295
3805
  }
3296
- const config = typeCheckConfig$2(untrustedConfig);
3806
+ const config = typeCheckConfig$3(untrustedConfig);
3297
3807
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3298
3808
  return null;
3299
3809
  }
3300
3810
  return config;
3301
3811
  }
3302
3812
  function adapterFragment$2(luvio, config) {
3303
- createResourceParams$2(config);
3304
- return select$4();
3813
+ createResourceParams$3(config);
3814
+ return select$5();
3305
3815
  }
3306
3816
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3307
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3817
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
3308
3818
  config,
3309
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3819
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3310
3820
  });
3311
3821
  return luvio.storeBroadcast().then(() => snapshot);
3312
3822
  }
3313
3823
  function onFetchResponseError$2(luvio, config, resourceParams, response) {
3314
3824
  const snapshot = ingestError$2(luvio, resourceParams, response, {
3315
3825
  config,
3316
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3826
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3317
3827
  });
3318
3828
  return luvio.storeBroadcast().then(() => snapshot);
3319
3829
  }
3320
- function buildNetworkSnapshot$2(luvio, config, options) {
3321
- const resourceParams = createResourceParams$2(config);
3322
- const request = createResourceRequest$2(resourceParams);
3830
+ function buildNetworkSnapshot$3(luvio, config, options) {
3831
+ const resourceParams = createResourceParams$3(config);
3832
+ const request = createResourceRequest$3(resourceParams);
3323
3833
  return luvio.dispatchResourceRequest(request, options)
3324
3834
  .then((response) => {
3325
3835
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3326
3836
  const cache = new StoreKeyMap();
3327
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3837
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
3328
3838
  return cache;
3329
3839
  });
3330
3840
  }, (response) => {
@@ -3332,7 +3842,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3332
3842
  });
3333
3843
  }
3334
3844
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3335
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3845
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3336
3846
  }
3337
3847
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3338
3848
  const { luvio, config } = context;
@@ -3343,12 +3853,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3343
3853
  };
3344
3854
  const cacheSnapshot = storeLookup(selector, {
3345
3855
  config,
3346
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3856
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3347
3857
  });
3348
3858
  return cacheSnapshot;
3349
3859
  }
3350
3860
  const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOutputLanguages(untrustedConfig, requestContext) {
3351
- const config = validateAdapterConfig$2(untrustedConfig, getOutputLanguages_ConfigPropertyNames);
3861
+ const config = validateAdapterConfig$3(untrustedConfig, getOutputLanguages_ConfigPropertyNames);
3352
3862
  // Invalid or incomplete config
3353
3863
  if (config === null) {
3354
3864
  return null;
@@ -3490,7 +4000,7 @@ const RepresentationType$1 = 'EinsteinPromptRecordRepresentation';
3490
4000
  function normalize$1(input, existing, path, luvio, store, timestamp) {
3491
4001
  return input;
3492
4002
  }
3493
- const select$3 = function EinsteinPromptRecordRepresentationSelect() {
4003
+ const select$4 = function EinsteinPromptRecordRepresentationSelect() {
3494
4004
  return {
3495
4005
  kind: 'Fragment',
3496
4006
  version: VERSION$1,
@@ -3526,22 +4036,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3526
4036
  });
3527
4037
  }
3528
4038
 
3529
- function select$2(luvio, params) {
3530
- return select$3();
4039
+ function select$3(luvio, params) {
4040
+ return select$4();
3531
4041
  }
3532
4042
  function keyBuilder$3(luvio, params) {
3533
4043
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
3534
4044
  }
3535
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4045
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3536
4046
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
3537
4047
  }
3538
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4048
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3539
4049
  const { body } = response;
3540
4050
  const key = keyBuilder$3(luvio, resourceParams);
3541
4051
  luvio.storeIngest(key, ingest$1, body);
3542
4052
  const snapshot = luvio.storeLookup({
3543
4053
  recordId: key,
3544
- node: select$2(),
4054
+ node: select$3(),
3545
4055
  variables: {},
3546
4056
  }, snapshotRefresh);
3547
4057
  if (process.env.NODE_ENV !== 'production') {
@@ -3564,7 +4074,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
3564
4074
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3565
4075
  return errorSnapshot;
3566
4076
  }
3567
- function createResourceRequest$1(config) {
4077
+ function createResourceRequest$2(config) {
3568
4078
  const headers = {};
3569
4079
  return {
3570
4080
  baseUri: '/services/data/v65.0',
@@ -3578,61 +4088,61 @@ function createResourceRequest$1(config) {
3578
4088
  };
3579
4089
  }
3580
4090
 
3581
- const adapterName$1 = 'getPromptTemplate';
4091
+ const adapterName$2 = 'getPromptTemplate';
3582
4092
  const getPromptTemplate_ConfigPropertyMetadata = [
3583
4093
  generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
3584
4094
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3585
4095
  ];
3586
- const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPromptTemplate_ConfigPropertyMetadata);
3587
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getPromptTemplate_ConfigPropertyMetadata);
4096
+ const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPromptTemplate_ConfigPropertyMetadata);
4097
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getPromptTemplate_ConfigPropertyMetadata);
3588
4098
  function keyBuilder$2(luvio, config) {
3589
- const resourceParams = createResourceParams$1(config);
4099
+ const resourceParams = createResourceParams$2(config);
3590
4100
  return keyBuilder$3(luvio, resourceParams);
3591
4101
  }
3592
- function typeCheckConfig$1(untrustedConfig) {
4102
+ function typeCheckConfig$2(untrustedConfig) {
3593
4103
  const config = {};
3594
- typeCheckConfig$7(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
4104
+ typeCheckConfig$a(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
3595
4105
  return config;
3596
4106
  }
3597
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4107
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3598
4108
  if (!untrustedIsObject(untrustedConfig)) {
3599
4109
  return null;
3600
4110
  }
3601
4111
  if (process.env.NODE_ENV !== 'production') {
3602
4112
  validateConfig(untrustedConfig, configPropertyNames);
3603
4113
  }
3604
- const config = typeCheckConfig$1(untrustedConfig);
4114
+ const config = typeCheckConfig$2(untrustedConfig);
3605
4115
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3606
4116
  return null;
3607
4117
  }
3608
4118
  return config;
3609
4119
  }
3610
4120
  function adapterFragment$1(luvio, config) {
3611
- createResourceParams$1(config);
3612
- return select$2();
4121
+ createResourceParams$2(config);
4122
+ return select$3();
3613
4123
  }
3614
4124
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
3615
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
4125
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3616
4126
  config,
3617
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4127
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3618
4128
  });
3619
4129
  return luvio.storeBroadcast().then(() => snapshot);
3620
4130
  }
3621
4131
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
3622
4132
  const snapshot = ingestError$1(luvio, resourceParams, response, {
3623
4133
  config,
3624
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4134
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3625
4135
  });
3626
4136
  return luvio.storeBroadcast().then(() => snapshot);
3627
4137
  }
3628
- function buildNetworkSnapshot$1(luvio, config, options) {
3629
- const resourceParams = createResourceParams$1(config);
3630
- const request = createResourceRequest$1(resourceParams);
4138
+ function buildNetworkSnapshot$2(luvio, config, options) {
4139
+ const resourceParams = createResourceParams$2(config);
4140
+ const request = createResourceRequest$2(resourceParams);
3631
4141
  return luvio.dispatchResourceRequest(request, options)
3632
4142
  .then((response) => {
3633
4143
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3634
4144
  const cache = new StoreKeyMap();
3635
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4145
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3636
4146
  return cache;
3637
4147
  });
3638
4148
  }, (response) => {
@@ -3640,7 +4150,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3640
4150
  });
3641
4151
  }
3642
4152
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3643
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4153
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3644
4154
  }
3645
4155
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3646
4156
  const { luvio, config } = context;
@@ -3651,12 +4161,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3651
4161
  };
3652
4162
  const cacheSnapshot = storeLookup(selector, {
3653
4163
  config,
3654
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4164
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3655
4165
  });
3656
4166
  return cacheSnapshot;
3657
4167
  }
3658
4168
  const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplate(untrustedConfig, requestContext) {
3659
- const config = validateAdapterConfig$1(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
4169
+ const config = validateAdapterConfig$2(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
3660
4170
  // Invalid or incomplete config
3661
4171
  if (config === null) {
3662
4172
  return null;
@@ -3706,7 +4216,7 @@ const RepresentationType = 'EinsteinPromptRecordCollectionOutputRepresentation';
3706
4216
  function normalize(input, existing, path, luvio, store, timestamp) {
3707
4217
  return input;
3708
4218
  }
3709
- const select$1 = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
4219
+ const select$2 = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
3710
4220
  return {
3711
4221
  kind: 'Fragment',
3712
4222
  version: VERSION,
@@ -3742,22 +4252,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
3742
4252
  });
3743
4253
  }
3744
4254
 
3745
- function select(luvio, params) {
3746
- return select$1();
4255
+ function select$1(luvio, params) {
4256
+ return select$2();
3747
4257
  }
3748
4258
  function keyBuilder$1(luvio, params) {
3749
4259
  return keyPrefix + '::EinsteinPromptRecordCollectionOutputRepresentation:(' + 'isActive:' + params.queryParams.isActive + ',' + 'fields:' + params.queryParams.fields + ',' + 'relatedEntity:' + params.queryParams.relatedEntity + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageLimit:' + params.queryParams.pageLimit + ',' + 'type:' + params.queryParams.type + ',' + 'query:' + params.queryParams.query + ',' + 'sortBy:' + params.queryParams.sortBy + ')';
3750
4260
  }
3751
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4261
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3752
4262
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
3753
4263
  }
3754
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4264
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3755
4265
  const { body } = response;
3756
4266
  const key = keyBuilder$1(luvio, resourceParams);
3757
4267
  luvio.storeIngest(key, ingest, body);
3758
4268
  const snapshot = luvio.storeLookup({
3759
4269
  recordId: key,
3760
- node: select(),
4270
+ node: select$1(),
3761
4271
  variables: {},
3762
4272
  }, snapshotRefresh);
3763
4273
  if (process.env.NODE_ENV !== 'production') {
@@ -3780,7 +4290,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
3780
4290
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3781
4291
  return errorSnapshot;
3782
4292
  }
3783
- function createResourceRequest(config) {
4293
+ function createResourceRequest$1(config) {
3784
4294
  const headers = {};
3785
4295
  return {
3786
4296
  baseUri: '/services/data/v65.0',
@@ -3794,7 +4304,7 @@ function createResourceRequest(config) {
3794
4304
  };
3795
4305
  }
3796
4306
 
3797
- const adapterName = 'getPromptTemplates';
4307
+ const adapterName$1 = 'getPromptTemplates';
3798
4308
  const getPromptTemplates_ConfigPropertyMetadata = [
3799
4309
  generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
3800
4310
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
@@ -3805,56 +4315,56 @@ const getPromptTemplates_ConfigPropertyMetadata = [
3805
4315
  generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
3806
4316
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
3807
4317
  ];
3808
- const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPromptTemplates_ConfigPropertyMetadata);
3809
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(getPromptTemplates_ConfigPropertyMetadata);
4318
+ const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPromptTemplates_ConfigPropertyMetadata);
4319
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getPromptTemplates_ConfigPropertyMetadata);
3810
4320
  function keyBuilder(luvio, config) {
3811
- const resourceParams = createResourceParams(config);
4321
+ const resourceParams = createResourceParams$1(config);
3812
4322
  return keyBuilder$1(luvio, resourceParams);
3813
4323
  }
3814
- function typeCheckConfig(untrustedConfig) {
4324
+ function typeCheckConfig$1(untrustedConfig) {
3815
4325
  const config = {};
3816
- typeCheckConfig$7(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
4326
+ typeCheckConfig$a(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
3817
4327
  return config;
3818
4328
  }
3819
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
4329
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3820
4330
  if (!untrustedIsObject(untrustedConfig)) {
3821
4331
  return null;
3822
4332
  }
3823
4333
  if (process.env.NODE_ENV !== 'production') {
3824
4334
  validateConfig(untrustedConfig, configPropertyNames);
3825
4335
  }
3826
- const config = typeCheckConfig(untrustedConfig);
4336
+ const config = typeCheckConfig$1(untrustedConfig);
3827
4337
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3828
4338
  return null;
3829
4339
  }
3830
4340
  return config;
3831
4341
  }
3832
4342
  function adapterFragment(luvio, config) {
3833
- createResourceParams(config);
3834
- return select();
4343
+ createResourceParams$1(config);
4344
+ return select$1();
3835
4345
  }
3836
4346
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
3837
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
4347
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
3838
4348
  config,
3839
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4349
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3840
4350
  });
3841
4351
  return luvio.storeBroadcast().then(() => snapshot);
3842
4352
  }
3843
4353
  function onFetchResponseError(luvio, config, resourceParams, response) {
3844
4354
  const snapshot = ingestError(luvio, resourceParams, response, {
3845
4355
  config,
3846
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4356
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3847
4357
  });
3848
4358
  return luvio.storeBroadcast().then(() => snapshot);
3849
4359
  }
3850
- function buildNetworkSnapshot(luvio, config, options) {
3851
- const resourceParams = createResourceParams(config);
3852
- const request = createResourceRequest(resourceParams);
4360
+ function buildNetworkSnapshot$1(luvio, config, options) {
4361
+ const resourceParams = createResourceParams$1(config);
4362
+ const request = createResourceRequest$1(resourceParams);
3853
4363
  return luvio.dispatchResourceRequest(request, options)
3854
4364
  .then((response) => {
3855
4365
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
3856
4366
  const cache = new StoreKeyMap();
3857
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
4367
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3858
4368
  return cache;
3859
4369
  });
3860
4370
  }, (response) => {
@@ -3862,7 +4372,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3862
4372
  });
3863
4373
  }
3864
4374
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3865
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4375
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3866
4376
  }
3867
4377
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3868
4378
  const { luvio, config } = context;
@@ -3873,12 +4383,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
3873
4383
  };
3874
4384
  const cacheSnapshot = storeLookup(selector, {
3875
4385
  config,
3876
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
4386
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3877
4387
  });
3878
4388
  return cacheSnapshot;
3879
4389
  }
3880
4390
  const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
3881
- const config = validateAdapterConfig(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
4391
+ const config = validateAdapterConfig$1(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
3882
4392
  // Invalid or incomplete config
3883
4393
  if (config === null) {
3884
4394
  return null;
@@ -3887,13 +4397,149 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
3887
4397
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3888
4398
  };
3889
4399
 
4400
+ function select(luvio, params) {
4401
+ return select$b();
4402
+ }
4403
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4404
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
4405
+ }
4406
+ function ingestSuccess(luvio, resourceParams, response) {
4407
+ const { body } = response;
4408
+ const key = keyBuilderFromType(luvio, body);
4409
+ luvio.storeIngest(key, ingest$3, body);
4410
+ const snapshot = luvio.storeLookup({
4411
+ recordId: key,
4412
+ node: select(),
4413
+ variables: {},
4414
+ });
4415
+ if (process.env.NODE_ENV !== 'production') {
4416
+ if (snapshot.state !== 'Fulfilled') {
4417
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4418
+ }
4419
+ }
4420
+ deepFreeze(snapshot.data);
4421
+ return snapshot;
4422
+ }
4423
+ function createResourceRequest(config) {
4424
+ const headers = {};
4425
+ return {
4426
+ baseUri: '/services/data/v65.0',
4427
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
4428
+ method: 'put',
4429
+ body: config.body,
4430
+ urlParams: config.urlParams,
4431
+ queryParams: {},
4432
+ headers,
4433
+ priority: 'normal',
4434
+ };
4435
+ }
4436
+
4437
+ const adapterName = 'updatePromptTemplateVersion';
4438
+ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
4439
+ generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
4440
+ generateParamConfigMetadata('versionId', true, 0 /* UrlParameter */, 0 /* String */),
4441
+ generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
4442
+ generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
4443
+ generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */, true),
4444
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
4445
+ generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
4446
+ ];
4447
+ const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePromptTemplateVersion_ConfigPropertyMetadata);
4448
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(updatePromptTemplateVersion_ConfigPropertyMetadata);
4449
+ function typeCheckConfig(untrustedConfig) {
4450
+ const config = {};
4451
+ typeCheckConfig$a(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
4452
+ const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
4453
+ if (untrustedIsObject(untrustedConfig_childRelationships)) {
4454
+ const untrustedConfig_childRelationships_object = {};
4455
+ const untrustedConfig_childRelationships_keys = Object.keys(untrustedConfig_childRelationships);
4456
+ for (let i = 0, arrayLength = untrustedConfig_childRelationships_keys.length; i < arrayLength; i++) {
4457
+ const key = untrustedConfig_childRelationships_keys[i];
4458
+ const untrustedConfig_childRelationships_prop = untrustedConfig_childRelationships[key];
4459
+ if (untrustedConfig_childRelationships_object !== undefined) {
4460
+ untrustedConfig_childRelationships_object[key] = untrustedConfig_childRelationships_prop;
4461
+ }
4462
+ }
4463
+ if (untrustedConfig_childRelationships_object !== undefined && Object.keys(untrustedConfig_childRelationships_object).length >= 0) {
4464
+ config.childRelationships = untrustedConfig_childRelationships_object;
4465
+ }
4466
+ }
4467
+ const untrustedConfig_fields = untrustedConfig.fields;
4468
+ if (ArrayIsArray$1(untrustedConfig_fields)) {
4469
+ const untrustedConfig_fields_array = [];
4470
+ for (let i = 0, arrayLength = untrustedConfig_fields.length; i < arrayLength; i++) {
4471
+ const untrustedConfig_fields_item = untrustedConfig_fields[i];
4472
+ if (untrustedIsObject(untrustedConfig_fields_item)) {
4473
+ const untrustedConfig_fields_item_object = {};
4474
+ const untrustedConfig_fields_item_keys = Object.keys(untrustedConfig_fields_item);
4475
+ for (let i = 0, arrayLength = untrustedConfig_fields_item_keys.length; i < arrayLength; i++) {
4476
+ const key = untrustedConfig_fields_item_keys[i];
4477
+ const untrustedConfig_fields_item_prop = untrustedConfig_fields_item[key];
4478
+ if (untrustedConfig_fields_item_object !== undefined) {
4479
+ untrustedConfig_fields_item_object[key] = untrustedConfig_fields_item_prop;
4480
+ }
4481
+ }
4482
+ if (untrustedConfig_fields_item_object !== undefined && Object.keys(untrustedConfig_fields_item_object).length >= 0) {
4483
+ untrustedConfig_fields_array.push(untrustedConfig_fields_item_object);
4484
+ }
4485
+ }
4486
+ }
4487
+ config.fields = untrustedConfig_fields_array;
4488
+ }
4489
+ return config;
4490
+ }
4491
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
4492
+ if (!untrustedIsObject(untrustedConfig)) {
4493
+ return null;
4494
+ }
4495
+ if (process.env.NODE_ENV !== 'production') {
4496
+ validateConfig(untrustedConfig, configPropertyNames);
4497
+ }
4498
+ const config = typeCheckConfig(untrustedConfig);
4499
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4500
+ return null;
4501
+ }
4502
+ return config;
4503
+ }
4504
+ function buildNetworkSnapshot(luvio, config, options) {
4505
+ const resourceParams = createResourceParams(config);
4506
+ const request = createResourceRequest(resourceParams);
4507
+ return luvio.dispatchResourceRequest(request, options)
4508
+ .then((response) => {
4509
+ return luvio.handleSuccessResponse(() => {
4510
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
4511
+ return luvio.storeBroadcast().then(() => snapshot);
4512
+ }, () => {
4513
+ const cache = new StoreKeyMap();
4514
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
4515
+ return cache;
4516
+ });
4517
+ }, (response) => {
4518
+ deepFreeze(response);
4519
+ throw response;
4520
+ });
4521
+ }
4522
+ const updatePromptTemplateVersionAdapterFactory = (luvio) => {
4523
+ return function updatePromptTemplateVersion(untrustedConfig) {
4524
+ const config = validateAdapterConfig(untrustedConfig, updatePromptTemplateVersion_ConfigPropertyNames);
4525
+ // Invalid or incomplete config
4526
+ if (config === null) {
4527
+ throw new Error('Invalid config for "updatePromptTemplateVersion"');
4528
+ }
4529
+ return buildNetworkSnapshot(luvio, config);
4530
+ };
4531
+ };
4532
+
3890
4533
  let createEmbeddings;
3891
4534
  let createFeedback;
3892
4535
  let createGenerations;
3893
4536
  let createGenerationsForPromptTemplate;
4537
+ let createPromptTemplate;
4538
+ let createPromptTemplateVersion;
3894
4539
  let getOutputLanguages;
3895
4540
  let getPromptTemplate;
3896
4541
  let getPromptTemplates;
4542
+ let updatePromptTemplateVersion;
3897
4543
  // Imperative GET Adapters
3898
4544
  let createEmbeddings_imperative;
3899
4545
  let getOutputLanguages_imperative;
@@ -3928,9 +4574,12 @@ function bindExportsTo(luvio) {
3928
4574
  createFeedback: unwrapSnapshotData(createFeedbackAdapterFactory),
3929
4575
  createGenerations: unwrapSnapshotData(createGenerationsAdapterFactory),
3930
4576
  createGenerationsForPromptTemplate: unwrapSnapshotData(createGenerationsForPromptTemplateAdapterFactory),
4577
+ createPromptTemplate: unwrapSnapshotData(createPromptTemplateAdapterFactory),
4578
+ createPromptTemplateVersion: unwrapSnapshotData(createPromptTemplateVersionAdapterFactory),
3931
4579
  getOutputLanguages: createWireAdapterConstructor(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
3932
4580
  getPromptTemplate: createWireAdapterConstructor(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
3933
4581
  getPromptTemplates: createWireAdapterConstructor(luvio, getPromptTemplates_ldsAdapter, getPromptTemplatesMetadata),
4582
+ updatePromptTemplateVersion: unwrapSnapshotData(updatePromptTemplateVersionAdapterFactory),
3934
4583
  // Imperative GET Adapters
3935
4584
  createEmbeddings_imperative: createImperativeAdapter(luvio, createEmbeddings_ldsAdapter, createEmbeddingsMetadata),
3936
4585
  getOutputLanguages_imperative: createImperativeAdapter(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
@@ -3945,9 +4594,12 @@ withDefaultLuvio((luvio) => {
3945
4594
  createFeedback,
3946
4595
  createGenerations,
3947
4596
  createGenerationsForPromptTemplate,
4597
+ createPromptTemplate,
4598
+ createPromptTemplateVersion,
3948
4599
  getOutputLanguages,
3949
4600
  getPromptTemplate,
3950
4601
  getPromptTemplates,
4602
+ updatePromptTemplateVersion,
3951
4603
  createEmbeddings_imperative,
3952
4604
  getOutputLanguages_imperative,
3953
4605
  getPromptTemplate_imperative,
@@ -3955,5 +4607,5 @@ withDefaultLuvio((luvio) => {
3955
4607
  } = bindExportsTo(luvio));
3956
4608
  });
3957
4609
 
3958
- export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative };
3959
- // version: 1.379.0-a57c798add
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