@salesforce/lds-adapters-service-einsteinllm 1.303.0 → 1.305.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.
@@ -168,7 +168,7 @@ function createLink(ref) {
168
168
  };
169
169
  }
170
170
 
171
- function validate$m(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
171
+ function validate$n(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
172
172
  const v_error = (() => {
173
173
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
174
174
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -212,7 +212,7 @@ function validate$m(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
212
212
  return v_error === undefined ? null : v_error;
213
213
  }
214
214
 
215
- function validate$l(obj, path = 'WrappedListString') {
215
+ function validate$m(obj, path = 'WrappedListString') {
216
216
  const v_error = (() => {
217
217
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
218
218
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -233,14 +233,14 @@ function validate$l(obj, path = 'WrappedListString') {
233
233
  return v_error === undefined ? null : v_error;
234
234
  }
235
235
 
236
- function validate$k(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
236
+ function validate$l(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
237
237
  const v_error = (() => {
238
238
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
239
239
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
240
240
  }
241
241
  const obj_additionalConfig = obj.additionalConfig;
242
242
  const path_additionalConfig = path + '.additionalConfig';
243
- const referencepath_additionalConfigValidationError = validate$m(obj_additionalConfig, path_additionalConfig);
243
+ const referencepath_additionalConfigValidationError = validate$n(obj_additionalConfig, path_additionalConfig);
244
244
  if (referencepath_additionalConfigValidationError !== null) {
245
245
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
246
246
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -248,7 +248,7 @@ function validate$k(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
248
248
  }
249
249
  const obj_prompts = obj.prompts;
250
250
  const path_prompts = path + '.prompts';
251
- const referencepath_promptsValidationError = validate$l(obj_prompts, path_prompts);
251
+ const referencepath_promptsValidationError = validate$m(obj_prompts, path_prompts);
252
252
  if (referencepath_promptsValidationError !== null) {
253
253
  let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
254
254
  message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -265,8 +265,8 @@ function validate$k(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- const VERSION$e = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
- function validate$j(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
268
+ const VERSION$d = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
+ function validate$k(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
270
270
  const v_error = (() => {
271
271
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
272
272
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -287,10 +287,10 @@ function validate$j(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
287
287
  })();
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
- const select$j = function EinsteinLlmEmbeddingItemRepresentationSelect() {
290
+ const select$i = function EinsteinLlmEmbeddingItemRepresentationSelect() {
291
291
  return {
292
292
  kind: 'Fragment',
293
- version: VERSION$e,
293
+ version: VERSION$d,
294
294
  private: [],
295
295
  selections: [
296
296
  {
@@ -305,7 +305,7 @@ const select$j = function EinsteinLlmEmbeddingItemRepresentationSelect() {
305
305
  ]
306
306
  };
307
307
  };
308
- function equals$e(existing, incoming) {
308
+ function equals$d(existing, incoming) {
309
309
  const existing_index = existing.index;
310
310
  const incoming_index = incoming.index;
311
311
  if (!(existing_index === incoming_index)) {
@@ -325,8 +325,8 @@ function equals$e(existing, incoming) {
325
325
  }
326
326
 
327
327
  const TTL$4 = 100;
328
- const VERSION$d = "d9873651f09d29764ef4d4231eb653d7";
329
- function validate$i(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
328
+ const VERSION$c = "d9873651f09d29764ef4d4231eb653d7";
329
+ function validate$j(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -339,7 +339,7 @@ function validate$i(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
339
339
  for (let i = 0; i < obj_embeddings.length; i++) {
340
340
  const obj_embeddings_item = obj_embeddings[i];
341
341
  const path_embeddings_item = path_embeddings + '[' + i + ']';
342
- const referencepath_embeddings_itemValidationError = validate$j(obj_embeddings_item, path_embeddings_item);
342
+ const referencepath_embeddings_itemValidationError = validate$k(obj_embeddings_item, path_embeddings_item);
343
343
  if (referencepath_embeddings_itemValidationError !== null) {
344
344
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
345
345
  message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -367,11 +367,11 @@ const RepresentationType$4 = 'EinsteinLlmEmbeddingsRepresentation';
367
367
  function normalize$4(input, existing, path, luvio, store, timestamp) {
368
368
  return input;
369
369
  }
370
- const select$i = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$j();
370
+ const select$h = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$i();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$d,
374
+ version: VERSION$c,
375
375
  private: [],
376
376
  selections: [
377
377
  {
@@ -388,11 +388,11 @@ const select$i = function EinsteinLlmEmbeddingsRepresentationSelect() {
388
388
  ]
389
389
  };
390
390
  };
391
- function equals$d(existing, incoming) {
391
+ function equals$c(existing, incoming) {
392
392
  const existing_embeddings = existing.embeddings;
393
393
  const incoming_embeddings = incoming.embeddings;
394
394
  const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
395
- if (!(equals$e(existing_embeddings_item, incoming_embeddings_item))) {
395
+ if (!(equals$d(existing_embeddings_item, incoming_embeddings_item))) {
396
396
  return false;
397
397
  }
398
398
  });
@@ -413,14 +413,14 @@ function equals$d(existing, incoming) {
413
413
  }
414
414
  const ingest$4 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$i(input);
416
+ const validateError = validate$j(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
422
  const ttlToUse = TTL$4;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$d, RepresentationType$4, equals$d);
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$c, RepresentationType$4, equals$c);
424
424
  return createLink(key);
425
425
  };
426
426
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -433,8 +433,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
433
433
  });
434
434
  }
435
435
 
436
- function select$h(luvio, params) {
437
- return select$i();
436
+ function select$g(luvio, params) {
437
+ return select$h();
438
438
  }
439
439
  function keyBuilder$6(luvio, params) {
440
440
  return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
@@ -448,7 +448,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
448
448
  luvio.storeIngest(key, ingest$4, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$h(),
451
+ node: select$g(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -465,7 +465,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
465
465
  const storeMetadataParams = {
466
466
  ttl: TTL$4,
467
467
  namespace: keyPrefix,
468
- version: VERSION$d,
468
+ version: VERSION$c,
469
469
  representationName: RepresentationType$4
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -498,7 +498,7 @@ function keyBuilder$5(luvio, config) {
498
498
  function typeCheckConfig$4(untrustedConfig) {
499
499
  const config = {};
500
500
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
501
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$k(untrustedConfig_embeddingsInput);
501
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$l(untrustedConfig_embeddingsInput);
502
502
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
503
503
  config.embeddingsInput = untrustedConfig_embeddingsInput;
504
504
  }
@@ -519,7 +519,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
519
519
  }
520
520
  function adapterFragment$1(luvio, config) {
521
521
  createResourceParams$4(config);
522
- return select$h();
522
+ return select$g();
523
523
  }
524
524
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
525
525
  const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
@@ -575,7 +575,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
575
575
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
576
576
  };
577
577
 
578
- function validate$h(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
578
+ function validate$i(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
579
579
  const v_error = (() => {
580
580
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
581
581
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -623,8 +623,8 @@ function validate$h(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
623
623
  }
624
624
 
625
625
  const TTL$3 = 100;
626
- const VERSION$c = "4033328f65865dd5d80c68a7573a4522";
627
- function validate$g(obj, path = 'EinsteinLlmFeedbackRepresentation') {
626
+ const VERSION$b = "4033328f65865dd5d80c68a7573a4522";
627
+ function validate$h(obj, path = 'EinsteinLlmFeedbackRepresentation') {
628
628
  const v_error = (() => {
629
629
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
630
630
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -650,10 +650,10 @@ function keyBuilderFromType$2(luvio, object) {
650
650
  function normalize$3(input, existing, path, luvio, store, timestamp) {
651
651
  return input;
652
652
  }
653
- const select$g = function EinsteinLlmFeedbackRepresentationSelect() {
653
+ const select$f = function EinsteinLlmFeedbackRepresentationSelect() {
654
654
  return {
655
655
  kind: 'Fragment',
656
- version: VERSION$c,
656
+ version: VERSION$b,
657
657
  private: [],
658
658
  selections: [
659
659
  {
@@ -663,7 +663,7 @@ const select$g = function EinsteinLlmFeedbackRepresentationSelect() {
663
663
  ]
664
664
  };
665
665
  };
666
- function equals$c(existing, incoming) {
666
+ function equals$b(existing, incoming) {
667
667
  const existing_message = existing.message;
668
668
  const incoming_message = incoming.message;
669
669
  if (!(existing_message === incoming_message)) {
@@ -673,14 +673,14 @@ function equals$c(existing, incoming) {
673
673
  }
674
674
  const ingest$3 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
675
675
  if (process.env.NODE_ENV !== 'production') {
676
- const validateError = validate$g(input);
676
+ const validateError = validate$h(input);
677
677
  if (validateError !== null) {
678
678
  throw validateError;
679
679
  }
680
680
  }
681
681
  const key = keyBuilderFromType$2(luvio, input);
682
682
  const ttlToUse = TTL$3;
683
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$c, RepresentationType$3, equals$c);
683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$b, RepresentationType$3, equals$b);
684
684
  return createLink(key);
685
685
  };
686
686
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -693,8 +693,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
693
693
  });
694
694
  }
695
695
 
696
- function select$f(luvio, params) {
697
- return select$g();
696
+ function select$e(luvio, params) {
697
+ return select$f();
698
698
  }
699
699
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
700
700
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -705,7 +705,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
705
705
  luvio.storeIngest(key, ingest$3, body);
706
706
  const snapshot = luvio.storeLookup({
707
707
  recordId: key,
708
- node: select$f(),
708
+ node: select$e(),
709
709
  variables: {},
710
710
  });
711
711
  if (process.env.NODE_ENV !== 'production') {
@@ -739,7 +739,7 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createFeedba
739
739
  function typeCheckConfig$3(untrustedConfig) {
740
740
  const config = {};
741
741
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
742
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$h(untrustedConfig_feedbackInput);
742
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$i(untrustedConfig_feedbackInput);
743
743
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
744
744
  config.feedbackInput = untrustedConfig_feedbackInput;
745
745
  }
@@ -787,7 +787,7 @@ const createFeedbackAdapterFactory = (luvio) => {
787
787
  };
788
788
  };
789
789
 
790
- function validate$f(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
790
+ function validate$g(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
791
791
  const v_error = (() => {
792
792
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
793
793
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -870,7 +870,7 @@ function validate$f(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
870
870
  return v_error === undefined ? null : v_error;
871
871
  }
872
872
 
873
- function validate$e(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
873
+ function validate$f(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
874
874
  const v_error = (() => {
875
875
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
876
876
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -878,7 +878,7 @@ function validate$e(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
878
878
  if (obj.additionalConfig !== undefined) {
879
879
  const obj_additionalConfig = obj.additionalConfig;
880
880
  const path_additionalConfig = path + '.additionalConfig';
881
- const referencepath_additionalConfigValidationError = validate$f(obj_additionalConfig, path_additionalConfig);
881
+ const referencepath_additionalConfigValidationError = validate$g(obj_additionalConfig, path_additionalConfig);
882
882
  if (referencepath_additionalConfigValidationError !== null) {
883
883
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
884
884
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -901,8 +901,8 @@ function validate$e(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
901
901
  return v_error === undefined ? null : v_error;
902
902
  }
903
903
 
904
- const VERSION$b = "9ebac74e6f964c363d5fd1913df363af";
905
- function validate$d(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
904
+ const VERSION$a = "9ebac74e6f964c363d5fd1913df363af";
905
+ function validate$e(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
906
906
  const v_error = (() => {
907
907
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
908
908
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -938,10 +938,10 @@ function validate$d(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
938
938
  })();
939
939
  return v_error === undefined ? null : v_error;
940
940
  }
941
- const select$e = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
941
+ const select$d = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
942
942
  return {
943
943
  kind: 'Fragment',
944
- version: VERSION$b,
944
+ version: VERSION$a,
945
945
  private: [],
946
946
  selections: [
947
947
  {
@@ -952,7 +952,7 @@ const select$e = function EinsteinLlmGenerationsContentQualityRepresentationSele
952
952
  ]
953
953
  };
954
954
  };
955
- function equals$b(existing, incoming) {
955
+ function equals$a(existing, incoming) {
956
956
  const existing_isToxicityDetected = existing.isToxicityDetected;
957
957
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
958
958
  // if at least one of these optionals is defined
@@ -969,8 +969,8 @@ function equals$b(existing, incoming) {
969
969
  return true;
970
970
  }
971
971
 
972
- const VERSION$a = "77af44a252cb5b45b4d9a8101368d2aa";
973
- function validate$c(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
972
+ const VERSION$9 = "77af44a252cb5b45b4d9a8101368d2aa";
973
+ function validate$d(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
974
974
  const v_error = (() => {
975
975
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
976
976
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1174,10 +1174,10 @@ function validate$c(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1174
1174
  })();
1175
1175
  return v_error === undefined ? null : v_error;
1176
1176
  }
1177
- const select$d = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1177
+ const select$c = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1178
1178
  return {
1179
1179
  kind: 'Fragment',
1180
- version: VERSION$a,
1180
+ version: VERSION$9,
1181
1181
  private: [],
1182
1182
  selections: [
1183
1183
  {
@@ -1218,7 +1218,7 @@ const select$d = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1218
1218
  ]
1219
1219
  };
1220
1220
  };
1221
- function equals$a(existing, incoming) {
1221
+ function equals$9(existing, incoming) {
1222
1222
  const existing_hateScore = existing.hateScore;
1223
1223
  const incoming_hateScore = incoming.hateScore;
1224
1224
  // if at least one of these optionals is defined
@@ -1313,8 +1313,8 @@ function equals$a(existing, incoming) {
1313
1313
  return true;
1314
1314
  }
1315
1315
 
1316
- const VERSION$9 = "4a07778ff6c595d91c575188146647a1";
1317
- function validate$b(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1316
+ const VERSION$8 = "4a07778ff6c595d91c575188146647a1";
1317
+ function validate$c(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1318
1318
  const v_error = (() => {
1319
1319
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1320
1320
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1324,7 +1324,7 @@ function validate$b(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1324
1324
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
1325
1325
  let obj_contentQualityRepresentation_union0 = null;
1326
1326
  const obj_contentQualityRepresentation_union0_error = (() => {
1327
- const referencepath_contentQualityRepresentationValidationError = validate$d(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1327
+ const referencepath_contentQualityRepresentationValidationError = validate$e(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1328
1328
  if (referencepath_contentQualityRepresentationValidationError !== null) {
1329
1329
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
1330
1330
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1372,7 +1372,7 @@ function validate$b(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1372
1372
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
1373
1373
  let obj_safetyScoreRepresentation_union0 = null;
1374
1374
  const obj_safetyScoreRepresentation_union0_error = (() => {
1375
- const referencepath_safetyScoreRepresentationValidationError = validate$c(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1375
+ const referencepath_safetyScoreRepresentationValidationError = validate$d(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1376
1376
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
1377
1377
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
1378
1378
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1406,12 +1406,12 @@ function validate$b(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1406
1406
  })();
1407
1407
  return v_error === undefined ? null : v_error;
1408
1408
  }
1409
- const select$c = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$e();
1411
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$d();
1409
+ const select$b = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$d();
1411
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$c();
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$9,
1414
+ version: VERSION$8,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1448,7 +1448,7 @@ const select$c = function EinsteinLlmGenerationItemRepresentationSelect() {
1448
1448
  ]
1449
1449
  };
1450
1450
  };
1451
- function equals$9(existing, incoming) {
1451
+ function equals$8(existing, incoming) {
1452
1452
  const existing_isSummarized = existing.isSummarized;
1453
1453
  const incoming_isSummarized = incoming.isSummarized;
1454
1454
  // if at least one of these optionals is defined
@@ -1489,7 +1489,7 @@ function equals$9(existing, incoming) {
1489
1489
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1490
1490
  || (existing_contentQualityRepresentation != null &&
1491
1491
  incoming_contentQualityRepresentation != null &&
1492
- equals$b(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1492
+ equals$a(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1493
1493
  return false;
1494
1494
  }
1495
1495
  }
@@ -1505,15 +1505,15 @@ function equals$9(existing, incoming) {
1505
1505
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1506
1506
  || (existing_safetyScoreRepresentation != null &&
1507
1507
  incoming_safetyScoreRepresentation != null &&
1508
- equals$a(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1508
+ equals$9(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  }
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$8 = "4656c961c9d093a9e206c1db7d4de0b0";
1516
- function validate$a(obj, path = 'WrappedMap') {
1515
+ const VERSION$7 = "4656c961c9d093a9e206c1db7d4de0b0";
1516
+ function validate$b(obj, path = 'WrappedMap') {
1517
1517
  const v_error = (() => {
1518
1518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1519
1519
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1535,15 +1535,15 @@ function validate$a(obj, path = 'WrappedMap') {
1535
1535
  })();
1536
1536
  return v_error === undefined ? null : v_error;
1537
1537
  }
1538
- const select$b = function WrappedMapSelect() {
1538
+ const select$a = function WrappedMapSelect() {
1539
1539
  return {
1540
1540
  kind: 'Fragment',
1541
- version: VERSION$8,
1541
+ version: VERSION$7,
1542
1542
  private: [],
1543
1543
  selections: []
1544
1544
  };
1545
1545
  };
1546
- function equals$8(existing, incoming) {
1546
+ function equals$7(existing, incoming) {
1547
1547
  const existing_wrappedMap = existing.wrappedMap;
1548
1548
  const incoming_wrappedMap = incoming.wrappedMap;
1549
1549
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1555,8 +1555,8 @@ function equals$8(existing, incoming) {
1555
1555
  }
1556
1556
 
1557
1557
  const TTL$2 = 100;
1558
- const VERSION$7 = "d8abd72a42e842b253da1c38954dafbc";
1559
- function validate$9(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1558
+ const VERSION$6 = "d8abd72a42e842b253da1c38954dafbc";
1559
+ function validate$a(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1560
1560
  const v_error = (() => {
1561
1561
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1562
1562
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1569,7 +1569,7 @@ function validate$9(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1569
1569
  for (let i = 0; i < obj_generations.length; i++) {
1570
1570
  const obj_generations_item = obj_generations[i];
1571
1571
  const path_generations_item = path_generations + '[' + i + ']';
1572
- const referencepath_generations_itemValidationError = validate$b(obj_generations_item, path_generations_item);
1572
+ const referencepath_generations_itemValidationError = validate$c(obj_generations_item, path_generations_item);
1573
1573
  if (referencepath_generations_itemValidationError !== null) {
1574
1574
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1575
1575
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1580,7 +1580,7 @@ function validate$9(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1580
1580
  const path_parameters = path + '.parameters';
1581
1581
  let obj_parameters_union0 = null;
1582
1582
  const obj_parameters_union0_error = (() => {
1583
- const referencepath_parametersValidationError = validate$a(obj_parameters, path_parameters);
1583
+ const referencepath_parametersValidationError = validate$b(obj_parameters, path_parameters);
1584
1584
  if (referencepath_parametersValidationError !== null) {
1585
1585
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1586
1586
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1652,12 +1652,12 @@ function keyBuilderFromType$1(luvio, object) {
1652
1652
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1653
1653
  return input;
1654
1654
  }
1655
- const select$a = function EinsteinLlmGenerationsRepresentationSelect() {
1656
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$c();
1657
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$b();
1655
+ const select$9 = function EinsteinLlmGenerationsRepresentationSelect() {
1656
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$b();
1657
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$a();
1658
1658
  return {
1659
1659
  kind: 'Fragment',
1660
- version: VERSION$7,
1660
+ version: VERSION$6,
1661
1661
  private: [],
1662
1662
  selections: [
1663
1663
  {
@@ -1683,7 +1683,7 @@ const select$a = function EinsteinLlmGenerationsRepresentationSelect() {
1683
1683
  ]
1684
1684
  };
1685
1685
  };
1686
- function equals$7(existing, incoming) {
1686
+ function equals$6(existing, incoming) {
1687
1687
  const existing_requestId = existing.requestId;
1688
1688
  const incoming_requestId = incoming.requestId;
1689
1689
  if (!(existing_requestId === incoming_requestId)) {
@@ -1692,7 +1692,7 @@ function equals$7(existing, incoming) {
1692
1692
  const existing_generations = existing.generations;
1693
1693
  const incoming_generations = incoming.generations;
1694
1694
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1695
- if (!(equals$9(existing_generations_item, incoming_generations_item))) {
1695
+ if (!(equals$8(existing_generations_item, incoming_generations_item))) {
1696
1696
  return false;
1697
1697
  }
1698
1698
  });
@@ -1704,7 +1704,7 @@ function equals$7(existing, incoming) {
1704
1704
  if (!(existing_parameters === incoming_parameters
1705
1705
  || (existing_parameters != null &&
1706
1706
  incoming_parameters != null &&
1707
- equals$8(existing_parameters, incoming_parameters)))) {
1707
+ equals$7(existing_parameters, incoming_parameters)))) {
1708
1708
  return false;
1709
1709
  }
1710
1710
  const existing_prompt = existing.prompt;
@@ -1716,14 +1716,14 @@ function equals$7(existing, incoming) {
1716
1716
  }
1717
1717
  const ingest$2 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1718
1718
  if (process.env.NODE_ENV !== 'production') {
1719
- const validateError = validate$9(input);
1719
+ const validateError = validate$a(input);
1720
1720
  if (validateError !== null) {
1721
1721
  throw validateError;
1722
1722
  }
1723
1723
  }
1724
1724
  const key = keyBuilderFromType$1(luvio, input);
1725
1725
  const ttlToUse = TTL$2;
1726
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$7, RepresentationType$2, equals$7);
1726
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$6, RepresentationType$2, equals$6);
1727
1727
  return createLink(key);
1728
1728
  };
1729
1729
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -1736,8 +1736,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1736
1736
  });
1737
1737
  }
1738
1738
 
1739
- function select$9(luvio, params) {
1740
- return select$a();
1739
+ function select$8(luvio, params) {
1740
+ return select$9();
1741
1741
  }
1742
1742
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1743
1743
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -1748,7 +1748,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1748
1748
  luvio.storeIngest(key, ingest$2, body);
1749
1749
  const snapshot = luvio.storeLookup({
1750
1750
  recordId: key,
1751
- node: select$9(),
1751
+ node: select$8(),
1752
1752
  variables: {},
1753
1753
  });
1754
1754
  if (process.env.NODE_ENV !== 'production') {
@@ -1782,7 +1782,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(createGenera
1782
1782
  function typeCheckConfig$2(untrustedConfig) {
1783
1783
  const config = {};
1784
1784
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1785
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$e(untrustedConfig_generationsInput);
1785
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$f(untrustedConfig_generationsInput);
1786
1786
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1787
1787
  config.generationsInput = untrustedConfig_generationsInput;
1788
1788
  }
@@ -1830,173 +1830,183 @@ const createGenerationsAdapterFactory = (luvio) => {
1830
1830
  };
1831
1831
  };
1832
1832
 
1833
- const VERSION$6 = "dae416517e0a664e0253f2c108824225";
1834
- function validate$8(obj, path = 'EinsteinPromptTemplateRepresentation') {
1833
+ function validate$9(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1835
1834
  const v_error = (() => {
1836
1835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1837
1836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1838
1837
  }
1839
- if (obj.id !== undefined) {
1840
- const obj_id = obj.id;
1841
- const path_id = path + '.id';
1842
- if (typeof obj_id !== 'string') {
1843
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1838
+ const obj_displayValue = obj.displayValue;
1839
+ const path_displayValue = path + '.displayValue';
1840
+ if (typeof obj_displayValue !== 'string') {
1841
+ return new TypeError('Expected "string" but received "' + typeof obj_displayValue + '" (at "' + path_displayValue + '")');
1842
+ }
1843
+ const obj_value = obj.value;
1844
+ const path_value = path + '.value';
1845
+ let obj_value_union0 = null;
1846
+ const obj_value_union0_error = (() => {
1847
+ if (typeof obj_value !== 'boolean') {
1848
+ return new TypeError('Expected "boolean" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1849
+ }
1850
+ })();
1851
+ if (obj_value_union0_error != null) {
1852
+ obj_value_union0 = obj_value_union0_error.message;
1853
+ }
1854
+ let obj_value_union1 = null;
1855
+ const obj_value_union1_error = (() => {
1856
+ if (typeof obj_value !== 'number' || (typeof obj_value === 'number' && Math.floor(obj_value) !== obj_value)) {
1857
+ return new TypeError('Expected "integer" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1844
1858
  }
1859
+ })();
1860
+ if (obj_value_union1_error != null) {
1861
+ obj_value_union1 = obj_value_union1_error.message;
1845
1862
  }
1846
- if (obj.label !== undefined) {
1847
- const obj_label = obj.label;
1848
- const path_label = path + '.label';
1849
- if (typeof obj_label !== 'string') {
1850
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1863
+ let obj_value_union2 = null;
1864
+ const obj_value_union2_error = (() => {
1865
+ if (typeof obj_value !== 'string') {
1866
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1851
1867
  }
1868
+ })();
1869
+ if (obj_value_union2_error != null) {
1870
+ obj_value_union2 = obj_value_union2_error.message;
1852
1871
  }
1853
- if (obj.name !== undefined) {
1854
- const obj_name = obj.name;
1855
- const path_name = path + '.name';
1856
- if (typeof obj_name !== 'string') {
1857
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1872
+ let obj_value_union3 = null;
1873
+ const obj_value_union3_error = (() => {
1874
+ if (obj_value !== null) {
1875
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1858
1876
  }
1877
+ })();
1878
+ if (obj_value_union3_error != null) {
1879
+ obj_value_union3 = obj_value_union3_error.message;
1880
+ }
1881
+ if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3) {
1882
+ let message = 'Object doesn\'t match union (at "' + path_value + '")';
1883
+ message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
1884
+ message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
1885
+ message += '\n' + obj_value_union2.split('\n').map((line) => '\t' + line).join('\n');
1886
+ message += '\n' + obj_value_union3.split('\n').map((line) => '\t' + line).join('\n');
1887
+ return new TypeError(message);
1859
1888
  }
1860
1889
  })();
1861
1890
  return v_error === undefined ? null : v_error;
1862
1891
  }
1863
- const select$8 = function EinsteinPromptTemplateRepresentationSelect() {
1864
- return {
1865
- kind: 'Fragment',
1866
- version: VERSION$6,
1867
- private: [],
1868
- selections: [
1869
- {
1870
- name: 'id',
1871
- kind: 'Scalar',
1872
- required: false
1873
- },
1874
- {
1875
- name: 'label',
1876
- kind: 'Scalar',
1877
- required: false
1878
- },
1879
- {
1880
- name: 'name',
1881
- kind: 'Scalar',
1882
- required: false
1883
- }
1884
- ]
1885
- };
1886
- };
1887
- function equals$6(existing, incoming) {
1888
- const existing_id = existing.id;
1889
- const incoming_id = incoming.id;
1890
- // if at least one of these optionals is defined
1891
- if (existing_id !== undefined || incoming_id !== undefined) {
1892
- // if one of these is not defined we know the other is defined and therefore
1893
- // not equal
1894
- if (existing_id === undefined || incoming_id === undefined) {
1895
- return false;
1896
- }
1897
- if (!(existing_id === incoming_id)) {
1898
- return false;
1899
- }
1900
- }
1901
- const existing_label = existing.label;
1902
- const incoming_label = incoming.label;
1903
- // if at least one of these optionals is defined
1904
- if (existing_label !== undefined || incoming_label !== undefined) {
1905
- // if one of these is not defined we know the other is defined and therefore
1906
- // not equal
1907
- if (existing_label === undefined || incoming_label === undefined) {
1908
- return false;
1892
+
1893
+ function validate$8(obj, path = 'EinsteinPromptRecordRepresentation') {
1894
+ const v_error = (() => {
1895
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1896
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1909
1897
  }
1910
- if (!(existing_label === incoming_label)) {
1911
- return false;
1898
+ if (obj.apiName !== undefined) {
1899
+ const obj_apiName = obj.apiName;
1900
+ const path_apiName = path + '.apiName';
1901
+ if (typeof obj_apiName !== 'string') {
1902
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1903
+ }
1904
+ }
1905
+ if (obj.childRelationships !== undefined) {
1906
+ const obj_childRelationships = obj.childRelationships;
1907
+ const path_childRelationships = path + '.childRelationships';
1908
+ if (typeof obj_childRelationships !== 'object' || ArrayIsArray(obj_childRelationships) || obj_childRelationships === null) {
1909
+ return new TypeError('Expected "object" but received "' + typeof obj_childRelationships + '" (at "' + path_childRelationships + '")');
1910
+ }
1911
+ const obj_childRelationships_keys = ObjectKeys(obj_childRelationships);
1912
+ for (let i = 0; i < obj_childRelationships_keys.length; i++) {
1913
+ const key = obj_childRelationships_keys[i];
1914
+ const obj_childRelationships_prop = obj_childRelationships[key];
1915
+ const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
1916
+ const referencepath_childRelationships_propValidationError = validate$8(obj_childRelationships_prop, path_childRelationships_prop);
1917
+ if (referencepath_childRelationships_propValidationError !== null) {
1918
+ let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop + '")\n';
1919
+ message += referencepath_childRelationships_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1920
+ return new TypeError(message);
1921
+ }
1922
+ }
1912
1923
  }
1913
- }
1914
- const existing_name = existing.name;
1915
- const incoming_name = incoming.name;
1916
- // if at least one of these optionals is defined
1917
- if (existing_name !== undefined || incoming_name !== undefined) {
1918
- // if one of these is not defined we know the other is defined and therefore
1919
- // not equal
1920
- if (existing_name === undefined || incoming_name === undefined) {
1921
- return false;
1924
+ if (obj.fields !== undefined) {
1925
+ const obj_fields = obj.fields;
1926
+ const path_fields = path + '.fields';
1927
+ if (typeof obj_fields !== 'object' || ArrayIsArray(obj_fields) || obj_fields === null) {
1928
+ return new TypeError('Expected "object" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
1929
+ }
1930
+ const obj_fields_keys = ObjectKeys(obj_fields);
1931
+ for (let i = 0; i < obj_fields_keys.length; i++) {
1932
+ const key = obj_fields_keys[i];
1933
+ const obj_fields_prop = obj_fields[key];
1934
+ const path_fields_prop = path_fields + '["' + key + '"]';
1935
+ const referencepath_fields_propValidationError = validate$9(obj_fields_prop, path_fields_prop);
1936
+ if (referencepath_fields_propValidationError !== null) {
1937
+ let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
1938
+ message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1939
+ return new TypeError(message);
1940
+ }
1941
+ }
1922
1942
  }
1923
- if (!(existing_name === incoming_name)) {
1924
- return false;
1943
+ if (obj.id !== undefined) {
1944
+ const obj_id = obj.id;
1945
+ const path_id = path + '.id';
1946
+ if (typeof obj_id !== 'string') {
1947
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1948
+ }
1925
1949
  }
1926
- }
1927
- return true;
1950
+ })();
1951
+ return v_error === undefined ? null : v_error;
1928
1952
  }
1929
1953
 
1930
1954
  const TTL$1 = 100;
1931
- const VERSION$5 = "74ddb28bbbb6ed1fc91167ffb7d4c2ed";
1932
- function validate$7(obj, path = 'EinsteinPromptTemplateOutputRepresentation') {
1955
+ const VERSION$5 = "b1bbf0a799a9fd0defceb1b9ff7e7502";
1956
+ function validate$7(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
1933
1957
  const v_error = (() => {
1934
1958
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1935
1959
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1936
1960
  }
1937
- if (obj.promptTemplates !== undefined) {
1938
- const obj_promptTemplates = obj.promptTemplates;
1939
- const path_promptTemplates = path + '.promptTemplates';
1940
- if (!ArrayIsArray(obj_promptTemplates)) {
1941
- return new TypeError('Expected "array" but received "' + typeof obj_promptTemplates + '" (at "' + path_promptTemplates + '")');
1942
- }
1943
- for (let i = 0; i < obj_promptTemplates.length; i++) {
1944
- const obj_promptTemplates_item = obj_promptTemplates[i];
1945
- const path_promptTemplates_item = path_promptTemplates + '[' + i + ']';
1946
- const referencepath_promptTemplates_itemValidationError = validate$8(obj_promptTemplates_item, path_promptTemplates_item);
1947
- if (referencepath_promptTemplates_itemValidationError !== null) {
1948
- let message = 'Object doesn\'t match EinsteinPromptTemplateRepresentation (at "' + path_promptTemplates_item + '")\n';
1949
- message += referencepath_promptTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1961
+ const obj_hasMoreRecords = obj.hasMoreRecords;
1962
+ const path_hasMoreRecords = path + '.hasMoreRecords';
1963
+ if (typeof obj_hasMoreRecords !== 'boolean') {
1964
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasMoreRecords + '" (at "' + path_hasMoreRecords + '")');
1965
+ }
1966
+ if (obj.promptRecords !== undefined) {
1967
+ const obj_promptRecords = obj.promptRecords;
1968
+ const path_promptRecords = path + '.promptRecords';
1969
+ if (!ArrayIsArray(obj_promptRecords)) {
1970
+ return new TypeError('Expected "array" but received "' + typeof obj_promptRecords + '" (at "' + path_promptRecords + '")');
1971
+ }
1972
+ for (let i = 0; i < obj_promptRecords.length; i++) {
1973
+ const obj_promptRecords_item = obj_promptRecords[i];
1974
+ const path_promptRecords_item = path_promptRecords + '[' + i + ']';
1975
+ const referencepath_promptRecords_itemValidationError = validate$8(obj_promptRecords_item, path_promptRecords_item);
1976
+ if (referencepath_promptRecords_itemValidationError !== null) {
1977
+ let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
1978
+ message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1950
1979
  return new TypeError(message);
1951
1980
  }
1952
1981
  }
1953
1982
  }
1983
+ const obj_totalPromptRecords = obj.totalPromptRecords;
1984
+ const path_totalPromptRecords = path + '.totalPromptRecords';
1985
+ if (typeof obj_totalPromptRecords !== 'number' || (typeof obj_totalPromptRecords === 'number' && Math.floor(obj_totalPromptRecords) !== obj_totalPromptRecords)) {
1986
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalPromptRecords + '" (at "' + path_totalPromptRecords + '")');
1987
+ }
1954
1988
  })();
1955
1989
  return v_error === undefined ? null : v_error;
1956
1990
  }
1957
- const RepresentationType$1 = 'EinsteinPromptTemplateOutputRepresentation';
1991
+ const RepresentationType$1 = 'EinsteinPromptRecordCollectionOutputRepresentation';
1958
1992
  function normalize$1(input, existing, path, luvio, store, timestamp) {
1959
1993
  return input;
1960
1994
  }
1961
- const select$7 = function EinsteinPromptTemplateOutputRepresentationSelect() {
1962
- const { selections: EinsteinPromptTemplateRepresentation__selections, opaque: EinsteinPromptTemplateRepresentation__opaque, } = select$8();
1995
+ const select$7 = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
1963
1996
  return {
1964
1997
  kind: 'Fragment',
1965
1998
  version: VERSION$5,
1966
1999
  private: [],
1967
- selections: [
1968
- {
1969
- name: 'promptTemplates',
1970
- kind: 'Object',
1971
- plural: true,
1972
- selections: EinsteinPromptTemplateRepresentation__selections,
1973
- required: false
1974
- }
1975
- ]
2000
+ opaque: true
1976
2001
  };
1977
2002
  };
1978
2003
  function equals$5(existing, incoming) {
1979
- const existing_promptTemplates = existing.promptTemplates;
1980
- const incoming_promptTemplates = incoming.promptTemplates;
1981
- // if at least one of these optionals is defined
1982
- if (existing_promptTemplates !== undefined || incoming_promptTemplates !== undefined) {
1983
- // if one of these is not defined we know the other is defined and therefore
1984
- // not equal
1985
- if (existing_promptTemplates === undefined || incoming_promptTemplates === undefined) {
1986
- return false;
1987
- }
1988
- const equals_promptTemplates_items = equalsArray(existing_promptTemplates, incoming_promptTemplates, (existing_promptTemplates_item, incoming_promptTemplates_item) => {
1989
- if (!(equals$6(existing_promptTemplates_item, incoming_promptTemplates_item))) {
1990
- return false;
1991
- }
1992
- });
1993
- if (equals_promptTemplates_items === false) {
1994
- return false;
1995
- }
2004
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2005
+ return false;
1996
2006
  }
1997
2007
  return true;
1998
2008
  }
1999
- const ingest$1 = function EinsteinPromptTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2009
+ const ingest$1 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2000
2010
  if (process.env.NODE_ENV !== 'production') {
2001
2011
  const validateError = validate$7(input);
2002
2012
  if (validateError !== null) {
@@ -2022,7 +2032,7 @@ function select$6(luvio, params) {
2022
2032
  return select$7();
2023
2033
  }
2024
2034
  function keyBuilder$2(luvio, params) {
2025
- return keyPrefix + '::EinsteinPromptTemplateOutputRepresentation:(' + 'objectName:' + params.queryParams.objectName + ',' + 'promptType:' + params.queryParams.promptType + ')';
2035
+ 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 + ')';
2026
2036
  }
2027
2037
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2028
2038
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
@@ -2072,8 +2082,14 @@ function createResourceRequest$1(config) {
2072
2082
 
2073
2083
  const adapterName$1 = 'getPromptTemplates';
2074
2084
  const getPromptTemplates_ConfigPropertyMetadata = [
2075
- generateParamConfigMetadata('objectName', false, 1 /* QueryParameter */, 0 /* String */),
2076
- generateParamConfigMetadata('promptType', false, 1 /* QueryParameter */, 0 /* String */),
2085
+ generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2086
+ generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
2087
+ generateParamConfigMetadata('relatedEntity', false, 1 /* QueryParameter */, 0 /* String */),
2088
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2089
+ generateParamConfigMetadata('pageLimit', false, 1 /* QueryParameter */, 3 /* Integer */),
2090
+ generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
2091
+ generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
2092
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2077
2093
  ];
2078
2094
  const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPromptTemplates_ConfigPropertyMetadata);
2079
2095
  const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getPromptTemplates_ConfigPropertyMetadata);
@@ -2188,7 +2204,7 @@ function validate$5(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
2188
2204
  if (obj.additionalConfig !== undefined) {
2189
2205
  const obj_additionalConfig = obj.additionalConfig;
2190
2206
  const path_additionalConfig = path + '.additionalConfig';
2191
- const referencepath_additionalConfigValidationError = validate$f(obj_additionalConfig, path_additionalConfig);
2207
+ const referencepath_additionalConfigValidationError = validate$g(obj_additionalConfig, path_additionalConfig);
2192
2208
  if (referencepath_additionalConfigValidationError !== null) {
2193
2209
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
2194
2210
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2576,7 +2592,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
2576
2592
  for (let i = 0; i < obj_generations.length; i++) {
2577
2593
  const obj_generations_item = obj_generations[i];
2578
2594
  const path_generations_item = path_generations + '[' + i + ']';
2579
- const referencepath_generations_itemValidationError = validate$b(obj_generations_item, path_generations_item);
2595
+ const referencepath_generations_itemValidationError = validate$c(obj_generations_item, path_generations_item);
2580
2596
  if (referencepath_generations_itemValidationError !== null) {
2581
2597
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
2582
2598
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2587,7 +2603,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
2587
2603
  const path_parameters = path + '.parameters';
2588
2604
  let obj_parameters_union0 = null;
2589
2605
  const obj_parameters_union0_error = (() => {
2590
- const referencepath_parametersValidationError = validate$a(obj_parameters, path_parameters);
2606
+ const referencepath_parametersValidationError = validate$b(obj_parameters, path_parameters);
2591
2607
  if (referencepath_parametersValidationError !== null) {
2592
2608
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
2593
2609
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2717,8 +2733,8 @@ function normalize(input, existing, path, luvio, store, timestamp) {
2717
2733
  }
2718
2734
  const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2719
2735
  const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$5();
2720
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$c();
2721
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$b();
2736
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$b();
2737
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$a();
2722
2738
  const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$3();
2723
2739
  const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$2();
2724
2740
  return {
@@ -2813,7 +2829,7 @@ function equals(existing, incoming) {
2813
2829
  const existing_generations = existing.generations;
2814
2830
  const incoming_generations = incoming.generations;
2815
2831
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
2816
- if (!(equals$9(existing_generations_item, incoming_generations_item))) {
2832
+ if (!(equals$8(existing_generations_item, incoming_generations_item))) {
2817
2833
  return false;
2818
2834
  }
2819
2835
  });
@@ -2825,7 +2841,7 @@ function equals(existing, incoming) {
2825
2841
  if (!(existing_parameters === incoming_parameters
2826
2842
  || (existing_parameters != null &&
2827
2843
  incoming_parameters != null &&
2828
- equals$8(existing_parameters, incoming_parameters)))) {
2844
+ equals$7(existing_parameters, incoming_parameters)))) {
2829
2845
  return false;
2830
2846
  }
2831
2847
  const existing_prompt = existing.prompt;