@salesforce/lds-adapters-service-einsteinllm 1.302.0 → 1.304.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sfdc/index.js CHANGED
@@ -178,7 +178,7 @@ function createLink(ref) {
178
178
  };
179
179
  }
180
180
 
181
- function validate$m(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
181
+ function validate$n(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$m(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
222
222
  return v_error === undefined ? null : v_error;
223
223
  }
224
224
 
225
- function validate$l(obj, path = 'WrappedListString') {
225
+ function validate$m(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$l(obj, path = 'WrappedListString') {
243
243
  return v_error === undefined ? null : v_error;
244
244
  }
245
245
 
246
- function validate$k(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
246
+ function validate$l(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$m(obj_additionalConfig, path_additionalConfig);
253
+ const referencepath_additionalConfigValidationError = validate$n(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$k(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
258
258
  }
259
259
  const obj_prompts = obj.prompts;
260
260
  const path_prompts = path + '.prompts';
261
- const referencepath_promptsValidationError = validate$l(obj_prompts, path_prompts);
261
+ const referencepath_promptsValidationError = validate$m(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$k(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
275
275
  return v_error === undefined ? null : v_error;
276
276
  }
277
277
 
278
- const VERSION$e = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
- function validate$j(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
278
+ const VERSION$d = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
+ function validate$k(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$j(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
297
297
  })();
298
298
  return v_error === undefined ? null : v_error;
299
299
  }
300
- const select$j = function EinsteinLlmEmbeddingItemRepresentationSelect() {
300
+ const select$i = function EinsteinLlmEmbeddingItemRepresentationSelect() {
301
301
  return {
302
302
  kind: 'Fragment',
303
- version: VERSION$e,
303
+ version: VERSION$d,
304
304
  private: [],
305
305
  selections: [
306
306
  {
@@ -315,7 +315,7 @@ const select$j = function EinsteinLlmEmbeddingItemRepresentationSelect() {
315
315
  ]
316
316
  };
317
317
  };
318
- function equals$e(existing, incoming) {
318
+ function equals$d(existing, incoming) {
319
319
  const existing_index = existing.index;
320
320
  const incoming_index = incoming.index;
321
321
  if (!(existing_index === incoming_index)) {
@@ -335,8 +335,8 @@ function equals$e(existing, incoming) {
335
335
  }
336
336
 
337
337
  const TTL$4 = 100;
338
- const VERSION$d = "d9873651f09d29764ef4d4231eb653d7";
339
- function validate$i(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
338
+ const VERSION$c = "d9873651f09d29764ef4d4231eb653d7";
339
+ function validate$j(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$i(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$j(obj_embeddings_item, path_embeddings_item);
352
+ const referencepath_embeddings_itemValidationError = validate$k(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');
@@ -377,11 +377,11 @@ const RepresentationType$4 = 'EinsteinLlmEmbeddingsRepresentation';
377
377
  function normalize$4(input, existing, path, luvio, store, timestamp) {
378
378
  return input;
379
379
  }
380
- const select$i = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$j();
380
+ const select$h = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$i();
382
382
  return {
383
383
  kind: 'Fragment',
384
- version: VERSION$d,
384
+ version: VERSION$c,
385
385
  private: [],
386
386
  selections: [
387
387
  {
@@ -398,11 +398,11 @@ const select$i = function EinsteinLlmEmbeddingsRepresentationSelect() {
398
398
  ]
399
399
  };
400
400
  };
401
- function equals$d(existing, incoming) {
401
+ function equals$c(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$e(existing_embeddings_item, incoming_embeddings_item))) {
405
+ if (!(equals$d(existing_embeddings_item, incoming_embeddings_item))) {
406
406
  return false;
407
407
  }
408
408
  });
@@ -423,14 +423,14 @@ function equals$d(existing, incoming) {
423
423
  }
424
424
  const ingest$4 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
425
425
  if (process.env.NODE_ENV !== 'production') {
426
- const validateError = validate$i(input);
426
+ const validateError = validate$j(input);
427
427
  if (validateError !== null) {
428
428
  throw validateError;
429
429
  }
430
430
  }
431
431
  const key = path.fullPath;
432
432
  const ttlToUse = TTL$4;
433
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$d, RepresentationType$4, equals$d);
433
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$c, RepresentationType$4, equals$c);
434
434
  return createLink(key);
435
435
  };
436
436
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -443,8 +443,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
443
443
  });
444
444
  }
445
445
 
446
- function select$h(luvio, params) {
447
- return select$i();
446
+ function select$g(luvio, params) {
447
+ return select$h();
448
448
  }
449
449
  function keyBuilder$6(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) + ')';
@@ -458,7 +458,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
458
458
  luvio.storeIngest(key, ingest$4, body);
459
459
  const snapshot = luvio.storeLookup({
460
460
  recordId: key,
461
- node: select$h(),
461
+ node: select$g(),
462
462
  variables: {},
463
463
  }, snapshotRefresh);
464
464
  if (process.env.NODE_ENV !== 'production') {
@@ -475,7 +475,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
475
475
  const storeMetadataParams = {
476
476
  ttl: TTL$4,
477
477
  namespace: keyPrefix,
478
- version: VERSION$d,
478
+ version: VERSION$c,
479
479
  representationName: RepresentationType$4
480
480
  };
481
481
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -508,7 +508,7 @@ function keyBuilder$5(luvio, config) {
508
508
  function typeCheckConfig$4(untrustedConfig) {
509
509
  const config = {};
510
510
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
511
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$k(untrustedConfig_embeddingsInput);
511
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$l(untrustedConfig_embeddingsInput);
512
512
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
513
513
  config.embeddingsInput = untrustedConfig_embeddingsInput;
514
514
  }
@@ -529,7 +529,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
529
529
  }
530
530
  function adapterFragment$1(luvio, config) {
531
531
  createResourceParams$4(config);
532
- return select$h();
532
+ return select$g();
533
533
  }
534
534
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
535
535
  const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
@@ -585,7 +585,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
585
585
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
586
586
  };
587
587
 
588
- function validate$h(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
588
+ function validate$i(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 + '")');
@@ -633,8 +633,8 @@ function validate$h(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
633
633
  }
634
634
 
635
635
  const TTL$3 = 100;
636
- const VERSION$c = "4033328f65865dd5d80c68a7573a4522";
637
- function validate$g(obj, path = 'EinsteinLlmFeedbackRepresentation') {
636
+ const VERSION$b = "4033328f65865dd5d80c68a7573a4522";
637
+ function validate$h(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 + '")');
@@ -660,10 +660,10 @@ function keyBuilderFromType$2(luvio, object) {
660
660
  function normalize$3(input, existing, path, luvio, store, timestamp) {
661
661
  return input;
662
662
  }
663
- const select$g = function EinsteinLlmFeedbackRepresentationSelect() {
663
+ const select$f = function EinsteinLlmFeedbackRepresentationSelect() {
664
664
  return {
665
665
  kind: 'Fragment',
666
- version: VERSION$c,
666
+ version: VERSION$b,
667
667
  private: [],
668
668
  selections: [
669
669
  {
@@ -673,7 +673,7 @@ const select$g = function EinsteinLlmFeedbackRepresentationSelect() {
673
673
  ]
674
674
  };
675
675
  };
676
- function equals$c(existing, incoming) {
676
+ function equals$b(existing, incoming) {
677
677
  const existing_message = existing.message;
678
678
  const incoming_message = incoming.message;
679
679
  if (!(existing_message === incoming_message)) {
@@ -683,14 +683,14 @@ function equals$c(existing, incoming) {
683
683
  }
684
684
  const ingest$3 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
685
685
  if (process.env.NODE_ENV !== 'production') {
686
- const validateError = validate$g(input);
686
+ const validateError = validate$h(input);
687
687
  if (validateError !== null) {
688
688
  throw validateError;
689
689
  }
690
690
  }
691
691
  const key = keyBuilderFromType$2(luvio, input);
692
692
  const ttlToUse = TTL$3;
693
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$c, RepresentationType$3, equals$c);
693
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$b, RepresentationType$3, equals$b);
694
694
  return createLink(key);
695
695
  };
696
696
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -703,8 +703,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
703
703
  });
704
704
  }
705
705
 
706
- function select$f(luvio, params) {
707
- return select$g();
706
+ function select$e(luvio, params) {
707
+ return select$f();
708
708
  }
709
709
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
710
710
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -715,7 +715,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
715
715
  luvio.storeIngest(key, ingest$3, body);
716
716
  const snapshot = luvio.storeLookup({
717
717
  recordId: key,
718
- node: select$f(),
718
+ node: select$e(),
719
719
  variables: {},
720
720
  });
721
721
  if (process.env.NODE_ENV !== 'production') {
@@ -749,7 +749,7 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createFeedba
749
749
  function typeCheckConfig$3(untrustedConfig) {
750
750
  const config = {};
751
751
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
752
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$h(untrustedConfig_feedbackInput);
752
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$i(untrustedConfig_feedbackInput);
753
753
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
754
754
  config.feedbackInput = untrustedConfig_feedbackInput;
755
755
  }
@@ -797,7 +797,7 @@ const createFeedbackAdapterFactory = (luvio) => {
797
797
  };
798
798
  };
799
799
 
800
- function validate$f(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
800
+ function validate$g(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$f(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
880
880
  return v_error === undefined ? null : v_error;
881
881
  }
882
882
 
883
- function validate$e(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
883
+ function validate$f(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$e(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$f(obj_additionalConfig, path_additionalConfig);
891
+ const referencepath_additionalConfigValidationError = validate$g(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$e(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
911
911
  return v_error === undefined ? null : v_error;
912
912
  }
913
913
 
914
- const VERSION$b = "9ebac74e6f964c363d5fd1913df363af";
915
- function validate$d(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
914
+ const VERSION$a = "9ebac74e6f964c363d5fd1913df363af";
915
+ function validate$e(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$d(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
948
948
  })();
949
949
  return v_error === undefined ? null : v_error;
950
950
  }
951
- const select$e = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
951
+ const select$d = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
952
952
  return {
953
953
  kind: 'Fragment',
954
- version: VERSION$b,
954
+ version: VERSION$a,
955
955
  private: [],
956
956
  selections: [
957
957
  {
@@ -962,7 +962,7 @@ const select$e = function EinsteinLlmGenerationsContentQualityRepresentationSele
962
962
  ]
963
963
  };
964
964
  };
965
- function equals$b(existing, incoming) {
965
+ function equals$a(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$b(existing, incoming) {
979
979
  return true;
980
980
  }
981
981
 
982
- const VERSION$a = "77af44a252cb5b45b4d9a8101368d2aa";
983
- function validate$c(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
982
+ const VERSION$9 = "77af44a252cb5b45b4d9a8101368d2aa";
983
+ function validate$d(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$c(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1184
1184
  })();
1185
1185
  return v_error === undefined ? null : v_error;
1186
1186
  }
1187
- const select$d = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1187
+ const select$c = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1188
1188
  return {
1189
1189
  kind: 'Fragment',
1190
- version: VERSION$a,
1190
+ version: VERSION$9,
1191
1191
  private: [],
1192
1192
  selections: [
1193
1193
  {
@@ -1228,7 +1228,7 @@ const select$d = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1228
1228
  ]
1229
1229
  };
1230
1230
  };
1231
- function equals$a(existing, incoming) {
1231
+ function equals$9(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$a(existing, incoming) {
1323
1323
  return true;
1324
1324
  }
1325
1325
 
1326
- const VERSION$9 = "4a07778ff6c595d91c575188146647a1";
1327
- function validate$b(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1326
+ const VERSION$8 = "4a07778ff6c595d91c575188146647a1";
1327
+ function validate$c(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$b(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$d(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1337
+ const referencepath_contentQualityRepresentationValidationError = validate$e(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$b(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$c(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1385
+ const referencepath_safetyScoreRepresentationValidationError = validate$d(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$b(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1416
1416
  })();
1417
1417
  return v_error === undefined ? null : v_error;
1418
1418
  }
1419
- const select$c = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$e();
1421
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$d();
1419
+ const select$b = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$d();
1421
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$c();
1422
1422
  return {
1423
1423
  kind: 'Fragment',
1424
- version: VERSION$9,
1424
+ version: VERSION$8,
1425
1425
  private: [],
1426
1426
  selections: [
1427
1427
  {
@@ -1458,7 +1458,7 @@ const select$c = function EinsteinLlmGenerationItemRepresentationSelect() {
1458
1458
  ]
1459
1459
  };
1460
1460
  };
1461
- function equals$9(existing, incoming) {
1461
+ function equals$8(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$9(existing, incoming) {
1499
1499
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1500
1500
  || (existing_contentQualityRepresentation != null &&
1501
1501
  incoming_contentQualityRepresentation != null &&
1502
- equals$b(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1502
+ equals$a(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1503
1503
  return false;
1504
1504
  }
1505
1505
  }
@@ -1515,15 +1515,15 @@ function equals$9(existing, incoming) {
1515
1515
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1516
1516
  || (existing_safetyScoreRepresentation != null &&
1517
1517
  incoming_safetyScoreRepresentation != null &&
1518
- equals$a(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1518
+ equals$9(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1519
1519
  return false;
1520
1520
  }
1521
1521
  }
1522
1522
  return true;
1523
1523
  }
1524
1524
 
1525
- const VERSION$8 = "4656c961c9d093a9e206c1db7d4de0b0";
1526
- function validate$a(obj, path = 'WrappedMap') {
1525
+ const VERSION$7 = "4656c961c9d093a9e206c1db7d4de0b0";
1526
+ function validate$b(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$a(obj, path = 'WrappedMap') {
1545
1545
  })();
1546
1546
  return v_error === undefined ? null : v_error;
1547
1547
  }
1548
- const select$b = function WrappedMapSelect() {
1548
+ const select$a = function WrappedMapSelect() {
1549
1549
  return {
1550
1550
  kind: 'Fragment',
1551
- version: VERSION$8,
1551
+ version: VERSION$7,
1552
1552
  private: [],
1553
1553
  selections: []
1554
1554
  };
1555
1555
  };
1556
- function equals$8(existing, incoming) {
1556
+ function equals$7(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) => {
@@ -1565,8 +1565,8 @@ function equals$8(existing, incoming) {
1565
1565
  }
1566
1566
 
1567
1567
  const TTL$2 = 100;
1568
- const VERSION$7 = "d8abd72a42e842b253da1c38954dafbc";
1569
- function validate$9(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1568
+ const VERSION$6 = "d8abd72a42e842b253da1c38954dafbc";
1569
+ function validate$a(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$9(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$b(obj_generations_item, path_generations_item);
1582
+ const referencepath_generations_itemValidationError = validate$c(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$9(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$a(obj_parameters, path_parameters);
1593
+ const referencepath_parametersValidationError = validate$b(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');
@@ -1662,12 +1662,12 @@ function keyBuilderFromType$1(luvio, object) {
1662
1662
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1663
1663
  return input;
1664
1664
  }
1665
- const select$a = function EinsteinLlmGenerationsRepresentationSelect() {
1666
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$c();
1667
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$b();
1665
+ const select$9 = function EinsteinLlmGenerationsRepresentationSelect() {
1666
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$b();
1667
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$a();
1668
1668
  return {
1669
1669
  kind: 'Fragment',
1670
- version: VERSION$7,
1670
+ version: VERSION$6,
1671
1671
  private: [],
1672
1672
  selections: [
1673
1673
  {
@@ -1693,7 +1693,7 @@ const select$a = function EinsteinLlmGenerationsRepresentationSelect() {
1693
1693
  ]
1694
1694
  };
1695
1695
  };
1696
- function equals$7(existing, incoming) {
1696
+ function equals$6(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$7(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$9(existing_generations_item, incoming_generations_item))) {
1705
+ if (!(equals$8(existing_generations_item, incoming_generations_item))) {
1706
1706
  return false;
1707
1707
  }
1708
1708
  });
@@ -1714,7 +1714,7 @@ function equals$7(existing, incoming) {
1714
1714
  if (!(existing_parameters === incoming_parameters
1715
1715
  || (existing_parameters != null &&
1716
1716
  incoming_parameters != null &&
1717
- equals$8(existing_parameters, incoming_parameters)))) {
1717
+ equals$7(existing_parameters, incoming_parameters)))) {
1718
1718
  return false;
1719
1719
  }
1720
1720
  const existing_prompt = existing.prompt;
@@ -1726,14 +1726,14 @@ function equals$7(existing, incoming) {
1726
1726
  }
1727
1727
  const ingest$2 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1728
1728
  if (process.env.NODE_ENV !== 'production') {
1729
- const validateError = validate$9(input);
1729
+ const validateError = validate$a(input);
1730
1730
  if (validateError !== null) {
1731
1731
  throw validateError;
1732
1732
  }
1733
1733
  }
1734
1734
  const key = keyBuilderFromType$1(luvio, input);
1735
1735
  const ttlToUse = TTL$2;
1736
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$7, RepresentationType$2, equals$7);
1736
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$6, RepresentationType$2, equals$6);
1737
1737
  return createLink(key);
1738
1738
  };
1739
1739
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -1746,8 +1746,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1746
1746
  });
1747
1747
  }
1748
1748
 
1749
- function select$9(luvio, params) {
1750
- return select$a();
1749
+ function select$8(luvio, params) {
1750
+ return select$9();
1751
1751
  }
1752
1752
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1753
1753
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -1758,7 +1758,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1758
1758
  luvio.storeIngest(key, ingest$2, body);
1759
1759
  const snapshot = luvio.storeLookup({
1760
1760
  recordId: key,
1761
- node: select$9(),
1761
+ node: select$8(),
1762
1762
  variables: {},
1763
1763
  });
1764
1764
  if (process.env.NODE_ENV !== 'production') {
@@ -1792,7 +1792,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(createGenera
1792
1792
  function typeCheckConfig$2(untrustedConfig) {
1793
1793
  const config = {};
1794
1794
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1795
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$e(untrustedConfig_generationsInput);
1795
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$f(untrustedConfig_generationsInput);
1796
1796
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1797
1797
  config.generationsInput = untrustedConfig_generationsInput;
1798
1798
  }
@@ -1840,7 +1840,7 @@ const createGenerationsAdapterFactory = (luvio) => {
1840
1840
  };
1841
1841
  };
1842
1842
 
1843
- function validate$8(obj, path = 'WrappedValueMap') {
1843
+ function validate$9(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$8(obj, path = 'WrappedValueMap') {
1863
1863
  return v_error === undefined ? null : v_error;
1864
1864
  }
1865
1865
 
1866
- function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1866
+ function validate$8(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$7(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$f(obj_additionalConfig, path_additionalConfig);
1874
+ const referencepath_additionalConfigValidationError = validate$g(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$7(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1880
1880
  }
1881
1881
  const obj_inputParams = obj.inputParams;
1882
1882
  const path_inputParams = path + '.inputParams';
1883
- const referencepath_inputParamsValidationError = validate$8(obj_inputParams, path_inputParams);
1883
+ const referencepath_inputParamsValidationError = validate$9(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');
@@ -1909,8 +1909,8 @@ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1909
1909
  return v_error === undefined ? null : v_error;
1910
1910
  }
1911
1911
 
1912
- const VERSION$6 = "6458d624e5a1691821c764b6de0badb3";
1913
- function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
1912
+ const VERSION$5 = "6458d624e5a1691821c764b6de0badb3";
1913
+ function validate$7(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
1914
1914
  const v_error = (() => {
1915
1915
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1916
1916
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1940,10 +1940,10 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
1940
1940
  })();
1941
1941
  return v_error === undefined ? null : v_error;
1942
1942
  }
1943
- const select$8 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
1943
+ const select$7 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
1944
1944
  return {
1945
1945
  kind: 'Fragment',
1946
- version: VERSION$6,
1946
+ version: VERSION$5,
1947
1947
  private: [],
1948
1948
  selections: [
1949
1949
  {
@@ -1966,7 +1966,7 @@ const select$8 = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
1966
1966
  ]
1967
1967
  };
1968
1968
  };
1969
- function equals$6(existing, incoming) {
1969
+ function equals$5(existing, incoming) {
1970
1970
  const existing_errorMessage = existing.errorMessage;
1971
1971
  const incoming_errorMessage = incoming.errorMessage;
1972
1972
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -1998,8 +1998,8 @@ function equals$6(existing, incoming) {
1998
1998
  return true;
1999
1999
  }
2000
2000
 
2001
- const VERSION$5 = "7c417ce44e4bc05dfcc454e6825590e8";
2002
- function validate$5(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2001
+ const VERSION$4 = "7c417ce44e4bc05dfcc454e6825590e8";
2002
+ function validate$6(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2003
2003
  const v_error = (() => {
2004
2004
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2005
2005
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2012,10 +2012,10 @@ function validate$5(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
2012
2012
  })();
2013
2013
  return v_error === undefined ? null : v_error;
2014
2014
  }
2015
- const select$7 = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2015
+ const select$6 = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2016
2016
  return {
2017
2017
  kind: 'Fragment',
2018
- version: VERSION$5,
2018
+ version: VERSION$4,
2019
2019
  private: [],
2020
2020
  selections: [
2021
2021
  {
@@ -2025,7 +2025,7 @@ const select$7 = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
2025
2025
  ]
2026
2026
  };
2027
2027
  };
2028
- function equals$5(existing, incoming) {
2028
+ function equals$4(existing, incoming) {
2029
2029
  const existing_enableModeration = existing.enableModeration;
2030
2030
  const incoming_enableModeration = incoming.enableModeration;
2031
2031
  if (!(existing_enableModeration === incoming_enableModeration)) {
@@ -2034,8 +2034,8 @@ function equals$5(existing, incoming) {
2034
2034
  return true;
2035
2035
  }
2036
2036
 
2037
- const VERSION$4 = "92ad1abd0e2a60bc36941409cadda7e2";
2038
- function validate$4(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
2037
+ const VERSION$3 = "92ad1abd0e2a60bc36941409cadda7e2";
2038
+ function validate$5(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
2039
2039
  const v_error = (() => {
2040
2040
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2041
2041
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2050,7 +2050,7 @@ function validate$4(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
2050
2050
  const path_moderationSettings = path + '.moderationSettings';
2051
2051
  let obj_moderationSettings_union0 = null;
2052
2052
  const obj_moderationSettings_union0_error = (() => {
2053
- const referencepath_moderationSettingsValidationError = validate$5(obj_moderationSettings, path_moderationSettings);
2053
+ const referencepath_moderationSettingsValidationError = validate$6(obj_moderationSettings, path_moderationSettings);
2054
2054
  if (referencepath_moderationSettingsValidationError !== null) {
2055
2055
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
2056
2056
  message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2086,11 +2086,11 @@ function validate$4(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
2086
2086
  })();
2087
2087
  return v_error === undefined ? null : v_error;
2088
2088
  }
2089
- const select$6 = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
2090
- const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$7();
2089
+ const select$5 = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
2090
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$6();
2091
2091
  return {
2092
2092
  kind: 'Fragment',
2093
- version: VERSION$4,
2093
+ version: VERSION$3,
2094
2094
  private: [],
2095
2095
  selections: [
2096
2096
  {
@@ -2112,7 +2112,7 @@ const select$6 = function EinsteinPromptTemplateMaskContentRepresentationSelect(
2112
2112
  ]
2113
2113
  };
2114
2114
  };
2115
- function equals$4(existing, incoming) {
2115
+ function equals$3(existing, incoming) {
2116
2116
  const existing_content = existing.content;
2117
2117
  const incoming_content = incoming.content;
2118
2118
  if (!(existing_content === incoming_content)) {
@@ -2143,15 +2143,15 @@ function equals$4(existing, incoming) {
2143
2143
  if (!(existing_moderationSettings === incoming_moderationSettings
2144
2144
  || (existing_moderationSettings != null &&
2145
2145
  incoming_moderationSettings != null &&
2146
- equals$5(existing_moderationSettings, incoming_moderationSettings)))) {
2146
+ equals$4(existing_moderationSettings, incoming_moderationSettings)))) {
2147
2147
  return false;
2148
2148
  }
2149
2149
  }
2150
2150
  return true;
2151
2151
  }
2152
2152
 
2153
- const VERSION$3 = "507a815605f8d30ae9b52b0ec513d25e";
2154
- function validate$3(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
2153
+ const VERSION$2 = "507a815605f8d30ae9b52b0ec513d25e";
2154
+ function validate$4(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
2155
2155
  const v_error = (() => {
2156
2156
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2157
2157
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2181,10 +2181,10 @@ function validate$3(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
2181
2181
  })();
2182
2182
  return v_error === undefined ? null : v_error;
2183
2183
  }
2184
- const select$5 = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2184
+ const select$4 = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2185
2185
  return {
2186
2186
  kind: 'Fragment',
2187
- version: VERSION$3,
2187
+ version: VERSION$2,
2188
2188
  private: [],
2189
2189
  selections: [
2190
2190
  {
@@ -2203,7 +2203,7 @@ const select$5 = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
2203
2203
  ]
2204
2204
  };
2205
2205
  };
2206
- function equals$3(existing, incoming) {
2206
+ function equals$2(existing, incoming) {
2207
2207
  const existing_originalValue = existing.originalValue;
2208
2208
  const incoming_originalValue = incoming.originalValue;
2209
2209
  if (!(existing_originalValue === incoming_originalValue)) {
@@ -2228,8 +2228,8 @@ function equals$3(existing, incoming) {
2228
2228
  }
2229
2229
 
2230
2230
  const TTL$1 = 100;
2231
- const VERSION$2 = "af7cfa8bd9d9cdd1923263da1734499c";
2232
- function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2231
+ const VERSION$1 = "af7cfa8bd9d9cdd1923263da1734499c";
2232
+ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2233
2233
  const v_error = (() => {
2234
2234
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2235
2235
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2243,7 +2243,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2243
2243
  for (let i = 0; i < obj_generationErrors.length; i++) {
2244
2244
  const obj_generationErrors_item = obj_generationErrors[i];
2245
2245
  const path_generationErrors_item = path_generationErrors + '[' + i + ']';
2246
- const referencepath_generationErrors_itemValidationError = validate$6(obj_generationErrors_item, path_generationErrors_item);
2246
+ const referencepath_generationErrors_itemValidationError = validate$7(obj_generationErrors_item, path_generationErrors_item);
2247
2247
  if (referencepath_generationErrors_itemValidationError !== null) {
2248
2248
  let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
2249
2249
  message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2259,7 +2259,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2259
2259
  for (let i = 0; i < obj_generations.length; i++) {
2260
2260
  const obj_generations_item = obj_generations[i];
2261
2261
  const path_generations_item = path_generations + '[' + i + ']';
2262
- const referencepath_generations_itemValidationError = validate$b(obj_generations_item, path_generations_item);
2262
+ const referencepath_generations_itemValidationError = validate$c(obj_generations_item, path_generations_item);
2263
2263
  if (referencepath_generations_itemValidationError !== null) {
2264
2264
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
2265
2265
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2270,7 +2270,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2270
2270
  const path_parameters = path + '.parameters';
2271
2271
  let obj_parameters_union0 = null;
2272
2272
  const obj_parameters_union0_error = (() => {
2273
- const referencepath_parametersValidationError = validate$a(obj_parameters, path_parameters);
2273
+ const referencepath_parametersValidationError = validate$b(obj_parameters, path_parameters);
2274
2274
  if (referencepath_parametersValidationError !== null) {
2275
2275
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
2276
2276
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2340,7 +2340,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2340
2340
  for (let i = 0; i < obj_requestMessages.length; i++) {
2341
2341
  const obj_requestMessages_item = obj_requestMessages[i];
2342
2342
  const path_requestMessages_item = path_requestMessages + '[' + i + ']';
2343
- const referencepath_requestMessages_itemValidationError = validate$4(obj_requestMessages_item, path_requestMessages_item);
2343
+ const referencepath_requestMessages_itemValidationError = validate$5(obj_requestMessages_item, path_requestMessages_item);
2344
2344
  if (referencepath_requestMessages_itemValidationError !== null) {
2345
2345
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
2346
2346
  message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2357,7 +2357,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2357
2357
  for (let i = 0; i < obj_responseMessages.length; i++) {
2358
2358
  const obj_responseMessages_item = obj_responseMessages[i];
2359
2359
  const path_responseMessages_item = path_responseMessages + '[' + i + ']';
2360
- const referencepath_responseMessages_itemValidationError = validate$4(obj_responseMessages_item, path_responseMessages_item);
2360
+ const referencepath_responseMessages_itemValidationError = validate$5(obj_responseMessages_item, path_responseMessages_item);
2361
2361
  if (referencepath_responseMessages_itemValidationError !== null) {
2362
2362
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
2363
2363
  message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2374,7 +2374,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2374
2374
  for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
2375
2375
  const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
2376
2376
  const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
2377
- const referencepath_slotsMaskingInformation_itemValidationError = validate$3(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
2377
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$4(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
2378
2378
  if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
2379
2379
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
2380
2380
  message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2398,15 +2398,15 @@ function keyBuilderFromType(luvio, object) {
2398
2398
  function normalize$1(input, existing, path, luvio, store, timestamp) {
2399
2399
  return input;
2400
2400
  }
2401
- const select$4 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2402
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$8();
2403
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$c();
2404
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$b();
2405
- const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$6();
2406
- const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$5();
2401
+ const select$3 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2402
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$7();
2403
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$b();
2404
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$a();
2405
+ const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$5();
2406
+ const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$4();
2407
2407
  return {
2408
2408
  kind: 'Fragment',
2409
- version: VERSION$2,
2409
+ version: VERSION$1,
2410
2410
  private: [],
2411
2411
  selections: [
2412
2412
  {
@@ -2464,7 +2464,7 @@ const select$4 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
2464
2464
  ]
2465
2465
  };
2466
2466
  };
2467
- function equals$2(existing, incoming) {
2467
+ function equals$1(existing, incoming) {
2468
2468
  const existing_promptTemplateDevName = existing.promptTemplateDevName;
2469
2469
  const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
2470
2470
  if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
@@ -2485,7 +2485,7 @@ function equals$2(existing, incoming) {
2485
2485
  return false;
2486
2486
  }
2487
2487
  const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
2488
- if (!(equals$6(existing_generationErrors_item, incoming_generationErrors_item))) {
2488
+ if (!(equals$5(existing_generationErrors_item, incoming_generationErrors_item))) {
2489
2489
  return false;
2490
2490
  }
2491
2491
  });
@@ -2496,7 +2496,7 @@ function equals$2(existing, incoming) {
2496
2496
  const existing_generations = existing.generations;
2497
2497
  const incoming_generations = incoming.generations;
2498
2498
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
2499
- if (!(equals$9(existing_generations_item, incoming_generations_item))) {
2499
+ if (!(equals$8(existing_generations_item, incoming_generations_item))) {
2500
2500
  return false;
2501
2501
  }
2502
2502
  });
@@ -2508,7 +2508,7 @@ function equals$2(existing, incoming) {
2508
2508
  if (!(existing_parameters === incoming_parameters
2509
2509
  || (existing_parameters != null &&
2510
2510
  incoming_parameters != null &&
2511
- equals$8(existing_parameters, incoming_parameters)))) {
2511
+ equals$7(existing_parameters, incoming_parameters)))) {
2512
2512
  return false;
2513
2513
  }
2514
2514
  const existing_prompt = existing.prompt;
@@ -2526,7 +2526,7 @@ function equals$2(existing, incoming) {
2526
2526
  return false;
2527
2527
  }
2528
2528
  const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
2529
- if (!(equals$4(existing_requestMessages_item, incoming_requestMessages_item))) {
2529
+ if (!(equals$3(existing_requestMessages_item, incoming_requestMessages_item))) {
2530
2530
  return false;
2531
2531
  }
2532
2532
  });
@@ -2544,7 +2544,7 @@ function equals$2(existing, incoming) {
2544
2544
  return false;
2545
2545
  }
2546
2546
  const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
2547
- if (!(equals$4(existing_responseMessages_item, incoming_responseMessages_item))) {
2547
+ if (!(equals$3(existing_responseMessages_item, incoming_responseMessages_item))) {
2548
2548
  return false;
2549
2549
  }
2550
2550
  });
@@ -2562,7 +2562,7 @@ function equals$2(existing, incoming) {
2562
2562
  return false;
2563
2563
  }
2564
2564
  const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
2565
- if (!(equals$3(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2565
+ if (!(equals$2(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2566
2566
  return false;
2567
2567
  }
2568
2568
  });
@@ -2574,14 +2574,14 @@ function equals$2(existing, incoming) {
2574
2574
  }
2575
2575
  const ingest$1 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
2576
2576
  if (process.env.NODE_ENV !== 'production') {
2577
- const validateError = validate$2(input);
2577
+ const validateError = validate$3(input);
2578
2578
  if (validateError !== null) {
2579
2579
  throw validateError;
2580
2580
  }
2581
2581
  }
2582
2582
  const key = keyBuilderFromType(luvio, input);
2583
2583
  const ttlToUse = TTL$1;
2584
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$2, RepresentationType$1, equals$2);
2584
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$1, RepresentationType$1, equals$1);
2585
2585
  return createLink(key);
2586
2586
  };
2587
2587
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -2594,8 +2594,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2594
2594
  });
2595
2595
  }
2596
2596
 
2597
- function select$3(luvio, params) {
2598
- return select$4();
2597
+ function select$2(luvio, params) {
2598
+ return select$3();
2599
2599
  }
2600
2600
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2601
2601
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
@@ -2606,7 +2606,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
2606
2606
  luvio.storeIngest(key, ingest$1, body);
2607
2607
  const snapshot = luvio.storeLookup({
2608
2608
  recordId: key,
2609
- node: select$3(),
2609
+ node: select$2(),
2610
2610
  variables: {},
2611
2611
  });
2612
2612
  if (process.env.NODE_ENV !== 'production') {
@@ -2643,7 +2643,7 @@ function typeCheckConfig$1(untrustedConfig) {
2643
2643
  const config = {};
2644
2644
  typeCheckConfig$5(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
2645
2645
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
2646
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$7(untrustedConfig_promptTemplateGenerationsInput);
2646
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$8(untrustedConfig_promptTemplateGenerationsInput);
2647
2647
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
2648
2648
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
2649
2649
  }
@@ -2691,173 +2691,183 @@ const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
2691
2691
  };
2692
2692
  };
2693
2693
 
2694
- const VERSION$1 = "dae416517e0a664e0253f2c108824225";
2695
- function validate$1(obj, path = 'EinsteinPromptTemplateRepresentation') {
2694
+ function validate$2(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
2696
2695
  const v_error = (() => {
2697
2696
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2698
2697
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2699
2698
  }
2700
- if (obj.id !== undefined) {
2701
- const obj_id = obj.id;
2702
- const path_id = path + '.id';
2703
- if (typeof obj_id !== 'string') {
2704
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2699
+ const obj_displayValue = obj.displayValue;
2700
+ const path_displayValue = path + '.displayValue';
2701
+ if (typeof obj_displayValue !== 'string') {
2702
+ return new TypeError('Expected "string" but received "' + typeof obj_displayValue + '" (at "' + path_displayValue + '")');
2703
+ }
2704
+ const obj_value = obj.value;
2705
+ const path_value = path + '.value';
2706
+ let obj_value_union0 = null;
2707
+ const obj_value_union0_error = (() => {
2708
+ if (typeof obj_value !== 'boolean') {
2709
+ return new TypeError('Expected "boolean" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2710
+ }
2711
+ })();
2712
+ if (obj_value_union0_error != null) {
2713
+ obj_value_union0 = obj_value_union0_error.message;
2714
+ }
2715
+ let obj_value_union1 = null;
2716
+ const obj_value_union1_error = (() => {
2717
+ if (typeof obj_value !== 'number' || (typeof obj_value === 'number' && Math.floor(obj_value) !== obj_value)) {
2718
+ return new TypeError('Expected "integer" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2705
2719
  }
2720
+ })();
2721
+ if (obj_value_union1_error != null) {
2722
+ obj_value_union1 = obj_value_union1_error.message;
2706
2723
  }
2707
- if (obj.label !== undefined) {
2708
- const obj_label = obj.label;
2709
- const path_label = path + '.label';
2710
- if (typeof obj_label !== 'string') {
2711
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2724
+ let obj_value_union2 = null;
2725
+ const obj_value_union2_error = (() => {
2726
+ if (typeof obj_value !== 'string') {
2727
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2712
2728
  }
2729
+ })();
2730
+ if (obj_value_union2_error != null) {
2731
+ obj_value_union2 = obj_value_union2_error.message;
2713
2732
  }
2714
- if (obj.name !== undefined) {
2715
- const obj_name = obj.name;
2716
- const path_name = path + '.name';
2717
- if (typeof obj_name !== 'string') {
2718
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2733
+ let obj_value_union3 = null;
2734
+ const obj_value_union3_error = (() => {
2735
+ if (obj_value !== null) {
2736
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2719
2737
  }
2738
+ })();
2739
+ if (obj_value_union3_error != null) {
2740
+ obj_value_union3 = obj_value_union3_error.message;
2741
+ }
2742
+ if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3) {
2743
+ let message = 'Object doesn\'t match union (at "' + path_value + '")';
2744
+ message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
2745
+ message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
2746
+ message += '\n' + obj_value_union2.split('\n').map((line) => '\t' + line).join('\n');
2747
+ message += '\n' + obj_value_union3.split('\n').map((line) => '\t' + line).join('\n');
2748
+ return new TypeError(message);
2720
2749
  }
2721
2750
  })();
2722
2751
  return v_error === undefined ? null : v_error;
2723
2752
  }
2724
- const select$2 = function EinsteinPromptTemplateRepresentationSelect() {
2725
- return {
2726
- kind: 'Fragment',
2727
- version: VERSION$1,
2728
- private: [],
2729
- selections: [
2730
- {
2731
- name: 'id',
2732
- kind: 'Scalar',
2733
- required: false
2734
- },
2735
- {
2736
- name: 'label',
2737
- kind: 'Scalar',
2738
- required: false
2739
- },
2740
- {
2741
- name: 'name',
2742
- kind: 'Scalar',
2743
- required: false
2744
- }
2745
- ]
2746
- };
2747
- };
2748
- function equals$1(existing, incoming) {
2749
- const existing_id = existing.id;
2750
- const incoming_id = incoming.id;
2751
- // if at least one of these optionals is defined
2752
- if (existing_id !== undefined || incoming_id !== undefined) {
2753
- // if one of these is not defined we know the other is defined and therefore
2754
- // not equal
2755
- if (existing_id === undefined || incoming_id === undefined) {
2756
- return false;
2757
- }
2758
- if (!(existing_id === incoming_id)) {
2759
- return false;
2760
- }
2761
- }
2762
- const existing_label = existing.label;
2763
- const incoming_label = incoming.label;
2764
- // if at least one of these optionals is defined
2765
- if (existing_label !== undefined || incoming_label !== undefined) {
2766
- // if one of these is not defined we know the other is defined and therefore
2767
- // not equal
2768
- if (existing_label === undefined || incoming_label === undefined) {
2769
- return false;
2753
+
2754
+ function validate$1(obj, path = 'EinsteinPromptRecordRepresentation') {
2755
+ const v_error = (() => {
2756
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2757
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2770
2758
  }
2771
- if (!(existing_label === incoming_label)) {
2772
- return false;
2759
+ if (obj.apiName !== undefined) {
2760
+ const obj_apiName = obj.apiName;
2761
+ const path_apiName = path + '.apiName';
2762
+ if (typeof obj_apiName !== 'string') {
2763
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
2764
+ }
2765
+ }
2766
+ if (obj.childRelationships !== undefined) {
2767
+ const obj_childRelationships = obj.childRelationships;
2768
+ const path_childRelationships = path + '.childRelationships';
2769
+ if (typeof obj_childRelationships !== 'object' || ArrayIsArray(obj_childRelationships) || obj_childRelationships === null) {
2770
+ return new TypeError('Expected "object" but received "' + typeof obj_childRelationships + '" (at "' + path_childRelationships + '")');
2771
+ }
2772
+ const obj_childRelationships_keys = ObjectKeys(obj_childRelationships);
2773
+ for (let i = 0; i < obj_childRelationships_keys.length; i++) {
2774
+ const key = obj_childRelationships_keys[i];
2775
+ const obj_childRelationships_prop = obj_childRelationships[key];
2776
+ const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
2777
+ const referencepath_childRelationships_propValidationError = validate$1(obj_childRelationships_prop, path_childRelationships_prop);
2778
+ if (referencepath_childRelationships_propValidationError !== null) {
2779
+ let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop + '")\n';
2780
+ message += referencepath_childRelationships_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2781
+ return new TypeError(message);
2782
+ }
2783
+ }
2773
2784
  }
2774
- }
2775
- const existing_name = existing.name;
2776
- const incoming_name = incoming.name;
2777
- // if at least one of these optionals is defined
2778
- if (existing_name !== undefined || incoming_name !== undefined) {
2779
- // if one of these is not defined we know the other is defined and therefore
2780
- // not equal
2781
- if (existing_name === undefined || incoming_name === undefined) {
2782
- return false;
2785
+ if (obj.fields !== undefined) {
2786
+ const obj_fields = obj.fields;
2787
+ const path_fields = path + '.fields';
2788
+ if (typeof obj_fields !== 'object' || ArrayIsArray(obj_fields) || obj_fields === null) {
2789
+ return new TypeError('Expected "object" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
2790
+ }
2791
+ const obj_fields_keys = ObjectKeys(obj_fields);
2792
+ for (let i = 0; i < obj_fields_keys.length; i++) {
2793
+ const key = obj_fields_keys[i];
2794
+ const obj_fields_prop = obj_fields[key];
2795
+ const path_fields_prop = path_fields + '["' + key + '"]';
2796
+ const referencepath_fields_propValidationError = validate$2(obj_fields_prop, path_fields_prop);
2797
+ if (referencepath_fields_propValidationError !== null) {
2798
+ let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
2799
+ message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2800
+ return new TypeError(message);
2801
+ }
2802
+ }
2783
2803
  }
2784
- if (!(existing_name === incoming_name)) {
2785
- return false;
2804
+ if (obj.id !== undefined) {
2805
+ const obj_id = obj.id;
2806
+ const path_id = path + '.id';
2807
+ if (typeof obj_id !== 'string') {
2808
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2809
+ }
2786
2810
  }
2787
- }
2788
- return true;
2811
+ })();
2812
+ return v_error === undefined ? null : v_error;
2789
2813
  }
2790
2814
 
2791
2815
  const TTL = 100;
2792
- const VERSION = "74ddb28bbbb6ed1fc91167ffb7d4c2ed";
2793
- function validate(obj, path = 'EinsteinPromptTemplateOutputRepresentation') {
2816
+ const VERSION = "b1bbf0a799a9fd0defceb1b9ff7e7502";
2817
+ function validate(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2794
2818
  const v_error = (() => {
2795
2819
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2796
2820
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2797
2821
  }
2798
- if (obj.promptTemplates !== undefined) {
2799
- const obj_promptTemplates = obj.promptTemplates;
2800
- const path_promptTemplates = path + '.promptTemplates';
2801
- if (!ArrayIsArray(obj_promptTemplates)) {
2802
- return new TypeError('Expected "array" but received "' + typeof obj_promptTemplates + '" (at "' + path_promptTemplates + '")');
2803
- }
2804
- for (let i = 0; i < obj_promptTemplates.length; i++) {
2805
- const obj_promptTemplates_item = obj_promptTemplates[i];
2806
- const path_promptTemplates_item = path_promptTemplates + '[' + i + ']';
2807
- const referencepath_promptTemplates_itemValidationError = validate$1(obj_promptTemplates_item, path_promptTemplates_item);
2808
- if (referencepath_promptTemplates_itemValidationError !== null) {
2809
- let message = 'Object doesn\'t match EinsteinPromptTemplateRepresentation (at "' + path_promptTemplates_item + '")\n';
2810
- message += referencepath_promptTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2822
+ const obj_hasMoreRecords = obj.hasMoreRecords;
2823
+ const path_hasMoreRecords = path + '.hasMoreRecords';
2824
+ if (typeof obj_hasMoreRecords !== 'boolean') {
2825
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasMoreRecords + '" (at "' + path_hasMoreRecords + '")');
2826
+ }
2827
+ if (obj.promptRecords !== undefined) {
2828
+ const obj_promptRecords = obj.promptRecords;
2829
+ const path_promptRecords = path + '.promptRecords';
2830
+ if (!ArrayIsArray(obj_promptRecords)) {
2831
+ return new TypeError('Expected "array" but received "' + typeof obj_promptRecords + '" (at "' + path_promptRecords + '")');
2832
+ }
2833
+ for (let i = 0; i < obj_promptRecords.length; i++) {
2834
+ const obj_promptRecords_item = obj_promptRecords[i];
2835
+ const path_promptRecords_item = path_promptRecords + '[' + i + ']';
2836
+ const referencepath_promptRecords_itemValidationError = validate$1(obj_promptRecords_item, path_promptRecords_item);
2837
+ if (referencepath_promptRecords_itemValidationError !== null) {
2838
+ let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
2839
+ message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2811
2840
  return new TypeError(message);
2812
2841
  }
2813
2842
  }
2814
2843
  }
2844
+ const obj_totalPromptRecords = obj.totalPromptRecords;
2845
+ const path_totalPromptRecords = path + '.totalPromptRecords';
2846
+ if (typeof obj_totalPromptRecords !== 'number' || (typeof obj_totalPromptRecords === 'number' && Math.floor(obj_totalPromptRecords) !== obj_totalPromptRecords)) {
2847
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalPromptRecords + '" (at "' + path_totalPromptRecords + '")');
2848
+ }
2815
2849
  })();
2816
2850
  return v_error === undefined ? null : v_error;
2817
2851
  }
2818
- const RepresentationType = 'EinsteinPromptTemplateOutputRepresentation';
2852
+ const RepresentationType = 'EinsteinPromptRecordCollectionOutputRepresentation';
2819
2853
  function normalize(input, existing, path, luvio, store, timestamp) {
2820
2854
  return input;
2821
2855
  }
2822
- const select$1 = function EinsteinPromptTemplateOutputRepresentationSelect() {
2823
- const { selections: EinsteinPromptTemplateRepresentation__selections, opaque: EinsteinPromptTemplateRepresentation__opaque, } = select$2();
2856
+ const select$1 = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2824
2857
  return {
2825
2858
  kind: 'Fragment',
2826
2859
  version: VERSION,
2827
2860
  private: [],
2828
- selections: [
2829
- {
2830
- name: 'promptTemplates',
2831
- kind: 'Object',
2832
- plural: true,
2833
- selections: EinsteinPromptTemplateRepresentation__selections,
2834
- required: false
2835
- }
2836
- ]
2861
+ opaque: true
2837
2862
  };
2838
2863
  };
2839
2864
  function equals(existing, incoming) {
2840
- const existing_promptTemplates = existing.promptTemplates;
2841
- const incoming_promptTemplates = incoming.promptTemplates;
2842
- // if at least one of these optionals is defined
2843
- if (existing_promptTemplates !== undefined || incoming_promptTemplates !== undefined) {
2844
- // if one of these is not defined we know the other is defined and therefore
2845
- // not equal
2846
- if (existing_promptTemplates === undefined || incoming_promptTemplates === undefined) {
2847
- return false;
2848
- }
2849
- const equals_promptTemplates_items = equalsArray(existing_promptTemplates, incoming_promptTemplates, (existing_promptTemplates_item, incoming_promptTemplates_item) => {
2850
- if (!(equals$1(existing_promptTemplates_item, incoming_promptTemplates_item))) {
2851
- return false;
2852
- }
2853
- });
2854
- if (equals_promptTemplates_items === false) {
2855
- return false;
2856
- }
2865
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2866
+ return false;
2857
2867
  }
2858
2868
  return true;
2859
2869
  }
2860
- const ingest = function EinsteinPromptTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2870
+ const ingest = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2861
2871
  if (process.env.NODE_ENV !== 'production') {
2862
2872
  const validateError = validate(input);
2863
2873
  if (validateError !== null) {
@@ -2883,7 +2893,7 @@ function select(luvio, params) {
2883
2893
  return select$1();
2884
2894
  }
2885
2895
  function keyBuilder$1(luvio, params) {
2886
- return keyPrefix + '::EinsteinPromptTemplateOutputRepresentation:(' + 'objectName:' + params.queryParams.objectName + ',' + 'promptType:' + params.queryParams.promptType + ')';
2896
+ 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 + ')';
2887
2897
  }
2888
2898
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
2889
2899
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -2933,8 +2943,14 @@ function createResourceRequest(config) {
2933
2943
 
2934
2944
  const adapterName = 'getPromptTemplates';
2935
2945
  const getPromptTemplates_ConfigPropertyMetadata = [
2936
- generateParamConfigMetadata('objectName', false, 1 /* QueryParameter */, 0 /* String */),
2937
- generateParamConfigMetadata('promptType', false, 1 /* QueryParameter */, 0 /* String */),
2946
+ generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2947
+ generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
2948
+ generateParamConfigMetadata('relatedEntity', false, 1 /* QueryParameter */, 0 /* String */),
2949
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2950
+ generateParamConfigMetadata('pageLimit', false, 1 /* QueryParameter */, 3 /* Integer */),
2951
+ generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
2952
+ generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
2953
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2938
2954
  ];
2939
2955
  const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPromptTemplates_ConfigPropertyMetadata);
2940
2956
  const createResourceParams = /*#__PURE__*/ createResourceParams$5(getPromptTemplates_ConfigPropertyMetadata);
@@ -3067,4 +3083,4 @@ withDefaultLuvio((luvio) => {
3067
3083
  });
3068
3084
 
3069
3085
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, getPromptTemplates, getPromptTemplates_imperative };
3070
- // version: 1.302.0-5fb014108f
3086
+ // version: 1.304.0-d87b57badb