@salesforce/lds-adapters-service-einsteinllm 1.293.0 → 1.295.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
@@ -113,7 +113,7 @@ function createLink(ref) {
113
113
  };
114
114
  }
115
115
 
116
- function validate$c(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
116
+ function validate$f(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -161,8 +161,8 @@ function validate$c(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
161
161
  }
162
162
 
163
163
  const TTL$2 = 100;
164
- const VERSION$7 = "4033328f65865dd5d80c68a7573a4522";
165
- function validate$b(obj, path = 'EinsteinLlmFeedbackRepresentation') {
164
+ const VERSION$a = "4033328f65865dd5d80c68a7573a4522";
165
+ function validate$e(obj, path = 'EinsteinLlmFeedbackRepresentation') {
166
166
  const v_error = (() => {
167
167
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
168
168
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -188,10 +188,10 @@ function keyBuilderFromType$2(luvio, object) {
188
188
  function normalize$2(input, existing, path, luvio, store, timestamp) {
189
189
  return input;
190
190
  }
191
- const select$a = function EinsteinLlmFeedbackRepresentationSelect() {
191
+ const select$d = function EinsteinLlmFeedbackRepresentationSelect() {
192
192
  return {
193
193
  kind: 'Fragment',
194
- version: VERSION$7,
194
+ version: VERSION$a,
195
195
  private: [],
196
196
  selections: [
197
197
  {
@@ -201,7 +201,7 @@ const select$a = function EinsteinLlmFeedbackRepresentationSelect() {
201
201
  ]
202
202
  };
203
203
  };
204
- function equals$7(existing, incoming) {
204
+ function equals$a(existing, incoming) {
205
205
  const existing_message = existing.message;
206
206
  const incoming_message = incoming.message;
207
207
  if (!(existing_message === incoming_message)) {
@@ -211,14 +211,14 @@ function equals$7(existing, incoming) {
211
211
  }
212
212
  const ingest$2 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
213
213
  if (process.env.NODE_ENV !== 'production') {
214
- const validateError = validate$b(input);
214
+ const validateError = validate$e(input);
215
215
  if (validateError !== null) {
216
216
  throw validateError;
217
217
  }
218
218
  }
219
219
  const key = keyBuilderFromType$2(luvio, input);
220
220
  const ttlToUse = TTL$2;
221
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$7, RepresentationType$2, equals$7);
221
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$a, RepresentationType$2, equals$a);
222
222
  return createLink(key);
223
223
  };
224
224
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -231,8 +231,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
231
231
  });
232
232
  }
233
233
 
234
- function select$9(luvio, params) {
235
- return select$a();
234
+ function select$c(luvio, params) {
235
+ return select$d();
236
236
  }
237
237
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
238
238
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -243,7 +243,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
243
243
  luvio.storeIngest(key, ingest$2, body);
244
244
  const snapshot = luvio.storeLookup({
245
245
  recordId: key,
246
- node: select$9(),
246
+ node: select$c(),
247
247
  variables: {},
248
248
  });
249
249
  if (process.env.NODE_ENV !== 'production') {
@@ -277,7 +277,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(createFeedba
277
277
  function typeCheckConfig$2(untrustedConfig) {
278
278
  const config = {};
279
279
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
280
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$c(untrustedConfig_feedbackInput);
280
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$f(untrustedConfig_feedbackInput);
281
281
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
282
282
  config.feedbackInput = untrustedConfig_feedbackInput;
283
283
  }
@@ -325,7 +325,7 @@ const createFeedbackAdapterFactory = (luvio) => {
325
325
  };
326
326
  };
327
327
 
328
- function validate$a(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
328
+ function validate$d(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
329
329
  const v_error = (() => {
330
330
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
331
331
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -408,7 +408,7 @@ function validate$a(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
408
408
  return v_error === undefined ? null : v_error;
409
409
  }
410
410
 
411
- function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
411
+ function validate$c(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
412
412
  const v_error = (() => {
413
413
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
414
414
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -416,7 +416,7 @@ function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
416
416
  if (obj.additionalConfig !== undefined) {
417
417
  const obj_additionalConfig = obj.additionalConfig;
418
418
  const path_additionalConfig = path + '.additionalConfig';
419
- const referencepath_additionalConfigValidationError = validate$a(obj_additionalConfig, path_additionalConfig);
419
+ const referencepath_additionalConfigValidationError = validate$d(obj_additionalConfig, path_additionalConfig);
420
420
  if (referencepath_additionalConfigValidationError !== null) {
421
421
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
422
422
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -439,8 +439,8 @@ function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
439
439
  return v_error === undefined ? null : v_error;
440
440
  }
441
441
 
442
- const VERSION$6 = "9ebac74e6f964c363d5fd1913df363af";
443
- function validate$8(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
442
+ const VERSION$9 = "9ebac74e6f964c363d5fd1913df363af";
443
+ function validate$b(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
444
444
  const v_error = (() => {
445
445
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
446
446
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -476,10 +476,10 @@ function validate$8(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
476
476
  })();
477
477
  return v_error === undefined ? null : v_error;
478
478
  }
479
- const select$8 = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
479
+ const select$b = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
480
480
  return {
481
481
  kind: 'Fragment',
482
- version: VERSION$6,
482
+ version: VERSION$9,
483
483
  private: [],
484
484
  selections: [
485
485
  {
@@ -490,7 +490,7 @@ const select$8 = function EinsteinLlmGenerationsContentQualityRepresentationSele
490
490
  ]
491
491
  };
492
492
  };
493
- function equals$6(existing, incoming) {
493
+ function equals$9(existing, incoming) {
494
494
  const existing_isToxicityDetected = existing.isToxicityDetected;
495
495
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
496
496
  // if at least one of these optionals is defined
@@ -507,8 +507,8 @@ function equals$6(existing, incoming) {
507
507
  return true;
508
508
  }
509
509
 
510
- const VERSION$5 = "77af44a252cb5b45b4d9a8101368d2aa";
511
- function validate$7(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
510
+ const VERSION$8 = "77af44a252cb5b45b4d9a8101368d2aa";
511
+ function validate$a(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
512
512
  const v_error = (() => {
513
513
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
514
514
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -712,10 +712,10 @@ function validate$7(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
712
712
  })();
713
713
  return v_error === undefined ? null : v_error;
714
714
  }
715
- const select$7 = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
715
+ const select$a = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
716
716
  return {
717
717
  kind: 'Fragment',
718
- version: VERSION$5,
718
+ version: VERSION$8,
719
719
  private: [],
720
720
  selections: [
721
721
  {
@@ -756,7 +756,7 @@ const select$7 = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
756
756
  ]
757
757
  };
758
758
  };
759
- function equals$5(existing, incoming) {
759
+ function equals$8(existing, incoming) {
760
760
  const existing_hateScore = existing.hateScore;
761
761
  const incoming_hateScore = incoming.hateScore;
762
762
  // if at least one of these optionals is defined
@@ -851,8 +851,8 @@ function equals$5(existing, incoming) {
851
851
  return true;
852
852
  }
853
853
 
854
- const VERSION$4 = "aebe0f32437ab18bd126a1fb5ff48d9b";
855
- function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
854
+ const VERSION$7 = "aebe0f32437ab18bd126a1fb5ff48d9b";
855
+ function validate$9(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
856
856
  const v_error = (() => {
857
857
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
858
858
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -862,7 +862,7 @@ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
862
862
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
863
863
  let obj_contentQualityRepresentation_union0 = null;
864
864
  const obj_contentQualityRepresentation_union0_error = (() => {
865
- const referencepath_contentQualityRepresentationValidationError = validate$8(obj_contentQualityRepresentation, path_contentQualityRepresentation);
865
+ const referencepath_contentQualityRepresentationValidationError = validate$b(obj_contentQualityRepresentation, path_contentQualityRepresentation);
866
866
  if (referencepath_contentQualityRepresentationValidationError !== null) {
867
867
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
868
868
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -903,7 +903,7 @@ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
903
903
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
904
904
  let obj_safetyScoreRepresentation_union0 = null;
905
905
  const obj_safetyScoreRepresentation_union0_error = (() => {
906
- const referencepath_safetyScoreRepresentationValidationError = validate$7(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
906
+ const referencepath_safetyScoreRepresentationValidationError = validate$a(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
907
907
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
908
908
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
909
909
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -937,12 +937,12 @@ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
937
937
  })();
938
938
  return v_error === undefined ? null : v_error;
939
939
  }
940
- const select$6 = function EinsteinLlmGenerationItemRepresentationSelect() {
941
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$8();
942
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$7();
940
+ const select$9 = function EinsteinLlmGenerationItemRepresentationSelect() {
941
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$b();
942
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$a();
943
943
  return {
944
944
  kind: 'Fragment',
945
- version: VERSION$4,
945
+ version: VERSION$7,
946
946
  private: [],
947
947
  selections: [
948
948
  {
@@ -974,7 +974,7 @@ const select$6 = function EinsteinLlmGenerationItemRepresentationSelect() {
974
974
  ]
975
975
  };
976
976
  };
977
- function equals$4(existing, incoming) {
977
+ function equals$7(existing, incoming) {
978
978
  const existing_parameters = existing.parameters;
979
979
  const incoming_parameters = incoming.parameters;
980
980
  if (!(existing_parameters === incoming_parameters)) {
@@ -1002,7 +1002,7 @@ function equals$4(existing, incoming) {
1002
1002
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1003
1003
  || (existing_contentQualityRepresentation != null &&
1004
1004
  incoming_contentQualityRepresentation != null &&
1005
- equals$6(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1005
+ equals$9(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1006
1006
  return false;
1007
1007
  }
1008
1008
  }
@@ -1018,15 +1018,15 @@ function equals$4(existing, incoming) {
1018
1018
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1019
1019
  || (existing_safetyScoreRepresentation != null &&
1020
1020
  incoming_safetyScoreRepresentation != null &&
1021
- equals$5(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1021
+ equals$8(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1022
1022
  return false;
1023
1023
  }
1024
1024
  }
1025
1025
  return true;
1026
1026
  }
1027
1027
 
1028
- const VERSION$3 = "4656c961c9d093a9e206c1db7d4de0b0";
1029
- function validate$5(obj, path = 'WrappedMap') {
1028
+ const VERSION$6 = "4656c961c9d093a9e206c1db7d4de0b0";
1029
+ function validate$8(obj, path = 'WrappedMap') {
1030
1030
  const v_error = (() => {
1031
1031
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1032
1032
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1048,15 +1048,15 @@ function validate$5(obj, path = 'WrappedMap') {
1048
1048
  })();
1049
1049
  return v_error === undefined ? null : v_error;
1050
1050
  }
1051
- const select$5 = function WrappedMapSelect() {
1051
+ const select$8 = function WrappedMapSelect() {
1052
1052
  return {
1053
1053
  kind: 'Fragment',
1054
- version: VERSION$3,
1054
+ version: VERSION$6,
1055
1055
  private: [],
1056
1056
  selections: []
1057
1057
  };
1058
1058
  };
1059
- function equals$3(existing, incoming) {
1059
+ function equals$6(existing, incoming) {
1060
1060
  const existing_wrappedMap = existing.wrappedMap;
1061
1061
  const incoming_wrappedMap = incoming.wrappedMap;
1062
1062
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1068,8 +1068,8 @@ function equals$3(existing, incoming) {
1068
1068
  }
1069
1069
 
1070
1070
  const TTL$1 = 100;
1071
- const VERSION$2 = "d8abd72a42e842b253da1c38954dafbc";
1072
- function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1071
+ const VERSION$5 = "d8abd72a42e842b253da1c38954dafbc";
1072
+ function validate$7(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1073
1073
  const v_error = (() => {
1074
1074
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1075
1075
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1082,7 +1082,7 @@ function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1082
1082
  for (let i = 0; i < obj_generations.length; i++) {
1083
1083
  const obj_generations_item = obj_generations[i];
1084
1084
  const path_generations_item = path_generations + '[' + i + ']';
1085
- const referencepath_generations_itemValidationError = validate$6(obj_generations_item, path_generations_item);
1085
+ const referencepath_generations_itemValidationError = validate$9(obj_generations_item, path_generations_item);
1086
1086
  if (referencepath_generations_itemValidationError !== null) {
1087
1087
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1088
1088
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1093,7 +1093,7 @@ function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1093
1093
  const path_parameters = path + '.parameters';
1094
1094
  let obj_parameters_union0 = null;
1095
1095
  const obj_parameters_union0_error = (() => {
1096
- const referencepath_parametersValidationError = validate$5(obj_parameters, path_parameters);
1096
+ const referencepath_parametersValidationError = validate$8(obj_parameters, path_parameters);
1097
1097
  if (referencepath_parametersValidationError !== null) {
1098
1098
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1099
1099
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1165,12 +1165,12 @@ function keyBuilderFromType$1(luvio, object) {
1165
1165
  function normalize$1(input, existing, path, luvio, store, timestamp) {
1166
1166
  return input;
1167
1167
  }
1168
- const select$4 = function EinsteinLlmGenerationsRepresentationSelect() {
1169
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$6();
1170
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$5();
1168
+ const select$7 = function EinsteinLlmGenerationsRepresentationSelect() {
1169
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$9();
1170
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$8();
1171
1171
  return {
1172
1172
  kind: 'Fragment',
1173
- version: VERSION$2,
1173
+ version: VERSION$5,
1174
1174
  private: [],
1175
1175
  selections: [
1176
1176
  {
@@ -1196,7 +1196,7 @@ const select$4 = function EinsteinLlmGenerationsRepresentationSelect() {
1196
1196
  ]
1197
1197
  };
1198
1198
  };
1199
- function equals$2(existing, incoming) {
1199
+ function equals$5(existing, incoming) {
1200
1200
  const existing_requestId = existing.requestId;
1201
1201
  const incoming_requestId = incoming.requestId;
1202
1202
  if (!(existing_requestId === incoming_requestId)) {
@@ -1205,7 +1205,7 @@ function equals$2(existing, incoming) {
1205
1205
  const existing_generations = existing.generations;
1206
1206
  const incoming_generations = incoming.generations;
1207
1207
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1208
- if (!(equals$4(existing_generations_item, incoming_generations_item))) {
1208
+ if (!(equals$7(existing_generations_item, incoming_generations_item))) {
1209
1209
  return false;
1210
1210
  }
1211
1211
  });
@@ -1217,7 +1217,7 @@ function equals$2(existing, incoming) {
1217
1217
  if (!(existing_parameters === incoming_parameters
1218
1218
  || (existing_parameters != null &&
1219
1219
  incoming_parameters != null &&
1220
- equals$3(existing_parameters, incoming_parameters)))) {
1220
+ equals$6(existing_parameters, incoming_parameters)))) {
1221
1221
  return false;
1222
1222
  }
1223
1223
  const existing_prompt = existing.prompt;
@@ -1229,14 +1229,14 @@ function equals$2(existing, incoming) {
1229
1229
  }
1230
1230
  const ingest$1 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1231
1231
  if (process.env.NODE_ENV !== 'production') {
1232
- const validateError = validate$4(input);
1232
+ const validateError = validate$7(input);
1233
1233
  if (validateError !== null) {
1234
1234
  throw validateError;
1235
1235
  }
1236
1236
  }
1237
1237
  const key = keyBuilderFromType$1(luvio, input);
1238
1238
  const ttlToUse = TTL$1;
1239
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$2, RepresentationType$1, equals$2);
1239
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$5, RepresentationType$1, equals$5);
1240
1240
  return createLink(key);
1241
1241
  };
1242
1242
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -1249,8 +1249,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1249
1249
  });
1250
1250
  }
1251
1251
 
1252
- function select$3(luvio, params) {
1253
- return select$4();
1252
+ function select$6(luvio, params) {
1253
+ return select$7();
1254
1254
  }
1255
1255
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1256
1256
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
@@ -1261,7 +1261,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
1261
1261
  luvio.storeIngest(key, ingest$1, body);
1262
1262
  const snapshot = luvio.storeLookup({
1263
1263
  recordId: key,
1264
- node: select$3(),
1264
+ node: select$6(),
1265
1265
  variables: {},
1266
1266
  });
1267
1267
  if (process.env.NODE_ENV !== 'production') {
@@ -1295,7 +1295,7 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(createGenera
1295
1295
  function typeCheckConfig$1(untrustedConfig) {
1296
1296
  const config = {};
1297
1297
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1298
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$9(untrustedConfig_generationsInput);
1298
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$c(untrustedConfig_generationsInput);
1299
1299
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1300
1300
  config.generationsInput = untrustedConfig_generationsInput;
1301
1301
  }
@@ -1343,7 +1343,7 @@ const createGenerationsAdapterFactory = (luvio) => {
1343
1343
  };
1344
1344
  };
1345
1345
 
1346
- function validate$3(obj, path = 'WrappedValueMap') {
1346
+ function validate$6(obj, path = 'WrappedValueMap') {
1347
1347
  const v_error = (() => {
1348
1348
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1349
1349
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1366,7 +1366,7 @@ function validate$3(obj, path = 'WrappedValueMap') {
1366
1366
  return v_error === undefined ? null : v_error;
1367
1367
  }
1368
1368
 
1369
- function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1369
+ function validate$5(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1370
1370
  const v_error = (() => {
1371
1371
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1372
1372
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1374,7 +1374,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1374
1374
  if (obj.additionalConfig !== undefined) {
1375
1375
  const obj_additionalConfig = obj.additionalConfig;
1376
1376
  const path_additionalConfig = path + '.additionalConfig';
1377
- const referencepath_additionalConfigValidationError = validate$a(obj_additionalConfig, path_additionalConfig);
1377
+ const referencepath_additionalConfigValidationError = validate$d(obj_additionalConfig, path_additionalConfig);
1378
1378
  if (referencepath_additionalConfigValidationError !== null) {
1379
1379
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
1380
1380
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1383,7 +1383,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1383
1383
  }
1384
1384
  const obj_inputParams = obj.inputParams;
1385
1385
  const path_inputParams = path + '.inputParams';
1386
- const referencepath_inputParamsValidationError = validate$3(obj_inputParams, path_inputParams);
1386
+ const referencepath_inputParamsValidationError = validate$6(obj_inputParams, path_inputParams);
1387
1387
  if (referencepath_inputParamsValidationError !== null) {
1388
1388
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
1389
1389
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1405,8 +1405,8 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1405
1405
  return v_error === undefined ? null : v_error;
1406
1406
  }
1407
1407
 
1408
- const VERSION$1 = "6458d624e5a1691821c764b6de0badb3";
1409
- function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
1408
+ const VERSION$4 = "6458d624e5a1691821c764b6de0badb3";
1409
+ function validate$4(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
1410
1410
  const v_error = (() => {
1411
1411
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1412
1412
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1436,10 +1436,10 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
1436
1436
  })();
1437
1437
  return v_error === undefined ? null : v_error;
1438
1438
  }
1439
- const select$2 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
1439
+ const select$5 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
1440
1440
  return {
1441
1441
  kind: 'Fragment',
1442
- version: VERSION$1,
1442
+ version: VERSION$4,
1443
1443
  private: [],
1444
1444
  selections: [
1445
1445
  {
@@ -1462,7 +1462,7 @@ const select$2 = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
1462
1462
  ]
1463
1463
  };
1464
1464
  };
1465
- function equals$1(existing, incoming) {
1465
+ function equals$4(existing, incoming) {
1466
1466
  const existing_errorMessage = existing.errorMessage;
1467
1467
  const incoming_errorMessage = incoming.errorMessage;
1468
1468
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -1494,8 +1494,237 @@ function equals$1(existing, incoming) {
1494
1494
  return true;
1495
1495
  }
1496
1496
 
1497
+ const VERSION$3 = "7c417ce44e4bc05dfcc454e6825590e8";
1498
+ function validate$3(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
1499
+ const v_error = (() => {
1500
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1501
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1502
+ }
1503
+ const obj_enableModeration = obj.enableModeration;
1504
+ const path_enableModeration = path + '.enableModeration';
1505
+ if (typeof obj_enableModeration !== 'boolean') {
1506
+ return new TypeError('Expected "boolean" but received "' + typeof obj_enableModeration + '" (at "' + path_enableModeration + '")');
1507
+ }
1508
+ })();
1509
+ return v_error === undefined ? null : v_error;
1510
+ }
1511
+ const select$4 = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
1512
+ return {
1513
+ kind: 'Fragment',
1514
+ version: VERSION$3,
1515
+ private: [],
1516
+ selections: [
1517
+ {
1518
+ name: 'enableModeration',
1519
+ kind: 'Scalar'
1520
+ }
1521
+ ]
1522
+ };
1523
+ };
1524
+ function equals$3(existing, incoming) {
1525
+ const existing_enableModeration = existing.enableModeration;
1526
+ const incoming_enableModeration = incoming.enableModeration;
1527
+ if (!(existing_enableModeration === incoming_enableModeration)) {
1528
+ return false;
1529
+ }
1530
+ return true;
1531
+ }
1532
+
1533
+ const VERSION$2 = "92ad1abd0e2a60bc36941409cadda7e2";
1534
+ function validate$2(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
1535
+ const v_error = (() => {
1536
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1537
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1538
+ }
1539
+ const obj_content = obj.content;
1540
+ const path_content = path + '.content';
1541
+ if (typeof obj_content !== 'string') {
1542
+ return new TypeError('Expected "string" but received "' + typeof obj_content + '" (at "' + path_content + '")');
1543
+ }
1544
+ if (obj.moderationSettings !== undefined) {
1545
+ const obj_moderationSettings = obj.moderationSettings;
1546
+ const path_moderationSettings = path + '.moderationSettings';
1547
+ let obj_moderationSettings_union0 = null;
1548
+ const obj_moderationSettings_union0_error = (() => {
1549
+ const referencepath_moderationSettingsValidationError = validate$3(obj_moderationSettings, path_moderationSettings);
1550
+ if (referencepath_moderationSettingsValidationError !== null) {
1551
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
1552
+ message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1553
+ return new TypeError(message);
1554
+ }
1555
+ })();
1556
+ if (obj_moderationSettings_union0_error != null) {
1557
+ obj_moderationSettings_union0 = obj_moderationSettings_union0_error.message;
1558
+ }
1559
+ let obj_moderationSettings_union1 = null;
1560
+ const obj_moderationSettings_union1_error = (() => {
1561
+ if (obj_moderationSettings !== null) {
1562
+ return new TypeError('Expected "null" but received "' + typeof obj_moderationSettings + '" (at "' + path_moderationSettings + '")');
1563
+ }
1564
+ })();
1565
+ if (obj_moderationSettings_union1_error != null) {
1566
+ obj_moderationSettings_union1 = obj_moderationSettings_union1_error.message;
1567
+ }
1568
+ if (obj_moderationSettings_union0 && obj_moderationSettings_union1) {
1569
+ let message = 'Object doesn\'t match union (at "' + path_moderationSettings + '")';
1570
+ message += '\n' + obj_moderationSettings_union0.split('\n').map((line) => '\t' + line).join('\n');
1571
+ message += '\n' + obj_moderationSettings_union1.split('\n').map((line) => '\t' + line).join('\n');
1572
+ return new TypeError(message);
1573
+ }
1574
+ }
1575
+ if (obj.role !== undefined) {
1576
+ const obj_role = obj.role;
1577
+ const path_role = path + '.role';
1578
+ if (typeof obj_role !== 'string') {
1579
+ return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
1580
+ }
1581
+ }
1582
+ })();
1583
+ return v_error === undefined ? null : v_error;
1584
+ }
1585
+ const select$3 = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
1586
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$4();
1587
+ return {
1588
+ kind: 'Fragment',
1589
+ version: VERSION$2,
1590
+ private: [],
1591
+ selections: [
1592
+ {
1593
+ name: 'content',
1594
+ kind: 'Scalar'
1595
+ },
1596
+ {
1597
+ name: 'moderationSettings',
1598
+ kind: 'Object',
1599
+ nullable: true,
1600
+ selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections,
1601
+ required: false
1602
+ },
1603
+ {
1604
+ name: 'role',
1605
+ kind: 'Scalar',
1606
+ required: false
1607
+ }
1608
+ ]
1609
+ };
1610
+ };
1611
+ function equals$2(existing, incoming) {
1612
+ const existing_content = existing.content;
1613
+ const incoming_content = incoming.content;
1614
+ if (!(existing_content === incoming_content)) {
1615
+ return false;
1616
+ }
1617
+ const existing_role = existing.role;
1618
+ const incoming_role = incoming.role;
1619
+ // if at least one of these optionals is defined
1620
+ if (existing_role !== undefined || incoming_role !== undefined) {
1621
+ // if one of these is not defined we know the other is defined and therefore
1622
+ // not equal
1623
+ if (existing_role === undefined || incoming_role === undefined) {
1624
+ return false;
1625
+ }
1626
+ if (!(existing_role === incoming_role)) {
1627
+ return false;
1628
+ }
1629
+ }
1630
+ const existing_moderationSettings = existing.moderationSettings;
1631
+ const incoming_moderationSettings = incoming.moderationSettings;
1632
+ // if at least one of these optionals is defined
1633
+ if (existing_moderationSettings !== undefined || incoming_moderationSettings !== undefined) {
1634
+ // if one of these is not defined we know the other is defined and therefore
1635
+ // not equal
1636
+ if (existing_moderationSettings === undefined || incoming_moderationSettings === undefined) {
1637
+ return false;
1638
+ }
1639
+ if (!(existing_moderationSettings === incoming_moderationSettings
1640
+ || (existing_moderationSettings != null &&
1641
+ incoming_moderationSettings != null &&
1642
+ equals$3(existing_moderationSettings, incoming_moderationSettings)))) {
1643
+ return false;
1644
+ }
1645
+ }
1646
+ return true;
1647
+ }
1648
+
1649
+ const VERSION$1 = "507a815605f8d30ae9b52b0ec513d25e";
1650
+ function validate$1(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
1651
+ const v_error = (() => {
1652
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1653
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1654
+ }
1655
+ const obj_originalValue = obj.originalValue;
1656
+ const path_originalValue = path + '.originalValue';
1657
+ if (typeof obj_originalValue !== 'string') {
1658
+ return new TypeError('Expected "string" but received "' + typeof obj_originalValue + '" (at "' + path_originalValue + '")');
1659
+ }
1660
+ const obj_placeHolder = obj.placeHolder;
1661
+ const path_placeHolder = path + '.placeHolder';
1662
+ if (typeof obj_placeHolder !== 'string') {
1663
+ return new TypeError('Expected "string" but received "' + typeof obj_placeHolder + '" (at "' + path_placeHolder + '")');
1664
+ }
1665
+ const obj_recognizers = obj.recognizers;
1666
+ const path_recognizers = path + '.recognizers';
1667
+ if (!ArrayIsArray(obj_recognizers)) {
1668
+ return new TypeError('Expected "array" but received "' + typeof obj_recognizers + '" (at "' + path_recognizers + '")');
1669
+ }
1670
+ for (let i = 0; i < obj_recognizers.length; i++) {
1671
+ const obj_recognizers_item = obj_recognizers[i];
1672
+ const path_recognizers_item = path_recognizers + '[' + i + ']';
1673
+ if (typeof obj_recognizers_item !== 'string') {
1674
+ return new TypeError('Expected "string" but received "' + typeof obj_recognizers_item + '" (at "' + path_recognizers_item + '")');
1675
+ }
1676
+ }
1677
+ })();
1678
+ return v_error === undefined ? null : v_error;
1679
+ }
1680
+ const select$2 = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
1681
+ return {
1682
+ kind: 'Fragment',
1683
+ version: VERSION$1,
1684
+ private: [],
1685
+ selections: [
1686
+ {
1687
+ name: 'originalValue',
1688
+ kind: 'Scalar'
1689
+ },
1690
+ {
1691
+ name: 'placeHolder',
1692
+ kind: 'Scalar'
1693
+ },
1694
+ {
1695
+ name: 'recognizers',
1696
+ kind: 'Scalar',
1697
+ plural: true
1698
+ }
1699
+ ]
1700
+ };
1701
+ };
1702
+ function equals$1(existing, incoming) {
1703
+ const existing_originalValue = existing.originalValue;
1704
+ const incoming_originalValue = incoming.originalValue;
1705
+ if (!(existing_originalValue === incoming_originalValue)) {
1706
+ return false;
1707
+ }
1708
+ const existing_placeHolder = existing.placeHolder;
1709
+ const incoming_placeHolder = incoming.placeHolder;
1710
+ if (!(existing_placeHolder === incoming_placeHolder)) {
1711
+ return false;
1712
+ }
1713
+ const existing_recognizers = existing.recognizers;
1714
+ const incoming_recognizers = incoming.recognizers;
1715
+ const equals_recognizers_items = equalsArray(existing_recognizers, incoming_recognizers, (existing_recognizers_item, incoming_recognizers_item) => {
1716
+ if (!(existing_recognizers_item === incoming_recognizers_item)) {
1717
+ return false;
1718
+ }
1719
+ });
1720
+ if (equals_recognizers_items === false) {
1721
+ return false;
1722
+ }
1723
+ return true;
1724
+ }
1725
+
1497
1726
  const TTL = 100;
1498
- const VERSION = "a4c71dd12b7b696b7b04ebf6cf5101a3";
1727
+ const VERSION = "af7cfa8bd9d9cdd1923263da1734499c";
1499
1728
  function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
1500
1729
  const v_error = (() => {
1501
1730
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1510,7 +1739,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1510
1739
  for (let i = 0; i < obj_generationErrors.length; i++) {
1511
1740
  const obj_generationErrors_item = obj_generationErrors[i];
1512
1741
  const path_generationErrors_item = path_generationErrors + '[' + i + ']';
1513
- const referencepath_generationErrors_itemValidationError = validate$1(obj_generationErrors_item, path_generationErrors_item);
1742
+ const referencepath_generationErrors_itemValidationError = validate$4(obj_generationErrors_item, path_generationErrors_item);
1514
1743
  if (referencepath_generationErrors_itemValidationError !== null) {
1515
1744
  let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
1516
1745
  message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1526,7 +1755,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1526
1755
  for (let i = 0; i < obj_generations.length; i++) {
1527
1756
  const obj_generations_item = obj_generations[i];
1528
1757
  const path_generations_item = path_generations + '[' + i + ']';
1529
- const referencepath_generations_itemValidationError = validate$6(obj_generations_item, path_generations_item);
1758
+ const referencepath_generations_itemValidationError = validate$9(obj_generations_item, path_generations_item);
1530
1759
  if (referencepath_generations_itemValidationError !== null) {
1531
1760
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1532
1761
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1537,7 +1766,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1537
1766
  const path_parameters = path + '.parameters';
1538
1767
  let obj_parameters_union0 = null;
1539
1768
  const obj_parameters_union0_error = (() => {
1540
- const referencepath_parametersValidationError = validate$5(obj_parameters, path_parameters);
1769
+ const referencepath_parametersValidationError = validate$8(obj_parameters, path_parameters);
1541
1770
  if (referencepath_parametersValidationError !== null) {
1542
1771
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1543
1772
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1598,6 +1827,57 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1598
1827
  if (typeof obj_requestId !== 'string') {
1599
1828
  return new TypeError('Expected "string" but received "' + typeof obj_requestId + '" (at "' + path_requestId + '")');
1600
1829
  }
1830
+ if (obj.requestMessages !== undefined) {
1831
+ const obj_requestMessages = obj.requestMessages;
1832
+ const path_requestMessages = path + '.requestMessages';
1833
+ if (!ArrayIsArray(obj_requestMessages)) {
1834
+ return new TypeError('Expected "array" but received "' + typeof obj_requestMessages + '" (at "' + path_requestMessages + '")');
1835
+ }
1836
+ for (let i = 0; i < obj_requestMessages.length; i++) {
1837
+ const obj_requestMessages_item = obj_requestMessages[i];
1838
+ const path_requestMessages_item = path_requestMessages + '[' + i + ']';
1839
+ const referencepath_requestMessages_itemValidationError = validate$2(obj_requestMessages_item, path_requestMessages_item);
1840
+ if (referencepath_requestMessages_itemValidationError !== null) {
1841
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
1842
+ message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1843
+ return new TypeError(message);
1844
+ }
1845
+ }
1846
+ }
1847
+ if (obj.responseMessages !== undefined) {
1848
+ const obj_responseMessages = obj.responseMessages;
1849
+ const path_responseMessages = path + '.responseMessages';
1850
+ if (!ArrayIsArray(obj_responseMessages)) {
1851
+ return new TypeError('Expected "array" but received "' + typeof obj_responseMessages + '" (at "' + path_responseMessages + '")');
1852
+ }
1853
+ for (let i = 0; i < obj_responseMessages.length; i++) {
1854
+ const obj_responseMessages_item = obj_responseMessages[i];
1855
+ const path_responseMessages_item = path_responseMessages + '[' + i + ']';
1856
+ const referencepath_responseMessages_itemValidationError = validate$2(obj_responseMessages_item, path_responseMessages_item);
1857
+ if (referencepath_responseMessages_itemValidationError !== null) {
1858
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
1859
+ message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1860
+ return new TypeError(message);
1861
+ }
1862
+ }
1863
+ }
1864
+ if (obj.slotsMaskingInformation !== undefined) {
1865
+ const obj_slotsMaskingInformation = obj.slotsMaskingInformation;
1866
+ const path_slotsMaskingInformation = path + '.slotsMaskingInformation';
1867
+ if (!ArrayIsArray(obj_slotsMaskingInformation)) {
1868
+ return new TypeError('Expected "array" but received "' + typeof obj_slotsMaskingInformation + '" (at "' + path_slotsMaskingInformation + '")');
1869
+ }
1870
+ for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
1871
+ const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
1872
+ const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
1873
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$1(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
1874
+ if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
1875
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
1876
+ message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1877
+ return new TypeError(message);
1878
+ }
1879
+ }
1880
+ }
1601
1881
  })();
1602
1882
  return v_error === undefined ? null : v_error;
1603
1883
  }
@@ -1615,9 +1895,11 @@ function normalize(input, existing, path, luvio, store, timestamp) {
1615
1895
  return input;
1616
1896
  }
1617
1897
  const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
1618
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$2();
1619
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$6();
1620
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$5();
1898
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$5();
1899
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$9();
1900
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$8();
1901
+ const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$3();
1902
+ const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$2();
1621
1903
  return {
1622
1904
  kind: 'Fragment',
1623
1905
  version: VERSION,
@@ -1653,6 +1935,27 @@ const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
1653
1935
  {
1654
1936
  name: 'requestId',
1655
1937
  kind: 'Scalar'
1938
+ },
1939
+ {
1940
+ name: 'requestMessages',
1941
+ kind: 'Object',
1942
+ plural: true,
1943
+ selections: EinsteinPromptTemplateMaskContentRepresentation__selections,
1944
+ required: false
1945
+ },
1946
+ {
1947
+ name: 'responseMessages',
1948
+ kind: 'Object',
1949
+ plural: true,
1950
+ selections: EinsteinPromptTemplateMaskContentRepresentation__selections,
1951
+ required: false
1952
+ },
1953
+ {
1954
+ name: 'slotsMaskingInformation',
1955
+ kind: 'Object',
1956
+ plural: true,
1957
+ selections: EinsteinPromptTemplateMaskDataRepresentation__selections,
1958
+ required: false
1656
1959
  }
1657
1960
  ]
1658
1961
  };
@@ -1678,7 +1981,7 @@ function equals(existing, incoming) {
1678
1981
  return false;
1679
1982
  }
1680
1983
  const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
1681
- if (!(equals$1(existing_generationErrors_item, incoming_generationErrors_item))) {
1984
+ if (!(equals$4(existing_generationErrors_item, incoming_generationErrors_item))) {
1682
1985
  return false;
1683
1986
  }
1684
1987
  });
@@ -1689,7 +1992,7 @@ function equals(existing, incoming) {
1689
1992
  const existing_generations = existing.generations;
1690
1993
  const incoming_generations = incoming.generations;
1691
1994
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1692
- if (!(equals$4(existing_generations_item, incoming_generations_item))) {
1995
+ if (!(equals$7(existing_generations_item, incoming_generations_item))) {
1693
1996
  return false;
1694
1997
  }
1695
1998
  });
@@ -1701,7 +2004,7 @@ function equals(existing, incoming) {
1701
2004
  if (!(existing_parameters === incoming_parameters
1702
2005
  || (existing_parameters != null &&
1703
2006
  incoming_parameters != null &&
1704
- equals$3(existing_parameters, incoming_parameters)))) {
2007
+ equals$6(existing_parameters, incoming_parameters)))) {
1705
2008
  return false;
1706
2009
  }
1707
2010
  const existing_prompt = existing.prompt;
@@ -1709,6 +2012,60 @@ function equals(existing, incoming) {
1709
2012
  if (!(existing_prompt === incoming_prompt)) {
1710
2013
  return false;
1711
2014
  }
2015
+ const existing_requestMessages = existing.requestMessages;
2016
+ const incoming_requestMessages = incoming.requestMessages;
2017
+ // if at least one of these optionals is defined
2018
+ if (existing_requestMessages !== undefined || incoming_requestMessages !== undefined) {
2019
+ // if one of these is not defined we know the other is defined and therefore
2020
+ // not equal
2021
+ if (existing_requestMessages === undefined || incoming_requestMessages === undefined) {
2022
+ return false;
2023
+ }
2024
+ const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
2025
+ if (!(equals$2(existing_requestMessages_item, incoming_requestMessages_item))) {
2026
+ return false;
2027
+ }
2028
+ });
2029
+ if (equals_requestMessages_items === false) {
2030
+ return false;
2031
+ }
2032
+ }
2033
+ const existing_responseMessages = existing.responseMessages;
2034
+ const incoming_responseMessages = incoming.responseMessages;
2035
+ // if at least one of these optionals is defined
2036
+ if (existing_responseMessages !== undefined || incoming_responseMessages !== undefined) {
2037
+ // if one of these is not defined we know the other is defined and therefore
2038
+ // not equal
2039
+ if (existing_responseMessages === undefined || incoming_responseMessages === undefined) {
2040
+ return false;
2041
+ }
2042
+ const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
2043
+ if (!(equals$2(existing_responseMessages_item, incoming_responseMessages_item))) {
2044
+ return false;
2045
+ }
2046
+ });
2047
+ if (equals_responseMessages_items === false) {
2048
+ return false;
2049
+ }
2050
+ }
2051
+ const existing_slotsMaskingInformation = existing.slotsMaskingInformation;
2052
+ const incoming_slotsMaskingInformation = incoming.slotsMaskingInformation;
2053
+ // if at least one of these optionals is defined
2054
+ if (existing_slotsMaskingInformation !== undefined || incoming_slotsMaskingInformation !== undefined) {
2055
+ // if one of these is not defined we know the other is defined and therefore
2056
+ // not equal
2057
+ if (existing_slotsMaskingInformation === undefined || incoming_slotsMaskingInformation === undefined) {
2058
+ return false;
2059
+ }
2060
+ const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
2061
+ if (!(equals$1(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2062
+ return false;
2063
+ }
2064
+ });
2065
+ if (equals_slotsMaskingInformation_items === false) {
2066
+ return false;
2067
+ }
2068
+ }
1712
2069
  return true;
1713
2070
  }
1714
2071
  const ingest = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1782,7 +2139,7 @@ function typeCheckConfig(untrustedConfig) {
1782
2139
  const config = {};
1783
2140
  typeCheckConfig$3(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
1784
2141
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
1785
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$2(untrustedConfig_promptTemplateGenerationsInput);
2142
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$5(untrustedConfig_promptTemplateGenerationsInput);
1786
2143
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
1787
2144
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
1788
2145
  }
@@ -1854,4 +2211,4 @@ withDefaultLuvio((luvio) => {
1854
2211
  });
1855
2212
 
1856
2213
  export { createFeedback, createGenerations, createGenerationsForPromptTemplate };
1857
- // version: 1.293.0-c036bce5d
2214
+ // version: 1.295.0-e85f207c7