@salesforce/lds-adapters-service-einsteinllm 1.450.0 → 1.451.0-dev10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sfdc/index.js CHANGED
@@ -178,7 +178,7 @@ function createLink(ref) {
178
178
  };
179
179
  }
180
180
 
181
- function validate$O(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
181
+ function validate$P(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
182
182
  const v_error = (() => {
183
183
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
184
184
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -222,7 +222,7 @@ function validate$O(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
222
222
  return v_error === undefined ? null : v_error;
223
223
  }
224
224
 
225
- function validate$N(obj, path = 'WrappedListString') {
225
+ function validate$O(obj, path = 'WrappedListString') {
226
226
  const v_error = (() => {
227
227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
228
228
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -243,14 +243,14 @@ function validate$N(obj, path = 'WrappedListString') {
243
243
  return v_error === undefined ? null : v_error;
244
244
  }
245
245
 
246
- function validate$M(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
246
+ function validate$N(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
247
247
  const v_error = (() => {
248
248
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
249
249
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
250
250
  }
251
251
  const obj_additionalConfig = obj.additionalConfig;
252
252
  const path_additionalConfig = path + '.additionalConfig';
253
- const referencepath_additionalConfigValidationError = validate$O(obj_additionalConfig, path_additionalConfig);
253
+ const referencepath_additionalConfigValidationError = validate$P(obj_additionalConfig, path_additionalConfig);
254
254
  if (referencepath_additionalConfigValidationError !== null) {
255
255
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
256
256
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -258,7 +258,7 @@ function validate$M(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
258
258
  }
259
259
  const obj_prompts = obj.prompts;
260
260
  const path_prompts = path + '.prompts';
261
- const referencepath_promptsValidationError = validate$N(obj_prompts, path_prompts);
261
+ const referencepath_promptsValidationError = validate$O(obj_prompts, path_prompts);
262
262
  if (referencepath_promptsValidationError !== null) {
263
263
  let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
264
264
  message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -275,8 +275,8 @@ function validate$M(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
275
275
  return v_error === undefined ? null : v_error;
276
276
  }
277
277
 
278
- const VERSION$C = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
- function validate$L(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
278
+ const VERSION$D = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
279
+ function validate$M(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
280
280
  const v_error = (() => {
281
281
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
282
282
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -297,10 +297,10 @@ function validate$L(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
297
297
  })();
298
298
  return v_error === undefined ? null : v_error;
299
299
  }
300
- const select$W = function EinsteinLlmEmbeddingItemRepresentationSelect() {
300
+ const select$X = function EinsteinLlmEmbeddingItemRepresentationSelect() {
301
301
  return {
302
302
  kind: 'Fragment',
303
- version: VERSION$C,
303
+ version: VERSION$D,
304
304
  private: [],
305
305
  selections: [
306
306
  {
@@ -315,7 +315,7 @@ const select$W = function EinsteinLlmEmbeddingItemRepresentationSelect() {
315
315
  ]
316
316
  };
317
317
  };
318
- function equals$C(existing, incoming) {
318
+ function equals$D(existing, incoming) {
319
319
  const existing_index = existing.index;
320
320
  const incoming_index = incoming.index;
321
321
  if (!(existing_index === incoming_index)) {
@@ -335,8 +335,8 @@ function equals$C(existing, incoming) {
335
335
  }
336
336
 
337
337
  const TTL$d = 100;
338
- const VERSION$B = "d9873651f09d29764ef4d4231eb653d7";
339
- function validate$K(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
338
+ const VERSION$C = "d9873651f09d29764ef4d4231eb653d7";
339
+ function validate$L(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
340
340
  const v_error = (() => {
341
341
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
342
342
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -349,7 +349,7 @@ function validate$K(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
349
349
  for (let i = 0; i < obj_embeddings.length; i++) {
350
350
  const obj_embeddings_item = obj_embeddings[i];
351
351
  const path_embeddings_item = path_embeddings + '[' + i + ']';
352
- const referencepath_embeddings_itemValidationError = validate$L(obj_embeddings_item, path_embeddings_item);
352
+ const referencepath_embeddings_itemValidationError = validate$M(obj_embeddings_item, path_embeddings_item);
353
353
  if (referencepath_embeddings_itemValidationError !== null) {
354
354
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
355
355
  message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -377,11 +377,11 @@ const RepresentationType$d = 'EinsteinLlmEmbeddingsRepresentation';
377
377
  function normalize$d(input, existing, path, luvio, store, timestamp) {
378
378
  return input;
379
379
  }
380
- const select$V = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$W();
380
+ const select$W = function EinsteinLlmEmbeddingsRepresentationSelect() {
381
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$X();
382
382
  return {
383
383
  kind: 'Fragment',
384
- version: VERSION$B,
384
+ version: VERSION$C,
385
385
  private: [],
386
386
  selections: [
387
387
  {
@@ -398,11 +398,11 @@ const select$V = function EinsteinLlmEmbeddingsRepresentationSelect() {
398
398
  ]
399
399
  };
400
400
  };
401
- function equals$B(existing, incoming) {
401
+ function equals$C(existing, incoming) {
402
402
  const existing_embeddings = existing.embeddings;
403
403
  const incoming_embeddings = incoming.embeddings;
404
404
  const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
405
- if (!(equals$C(existing_embeddings_item, incoming_embeddings_item))) {
405
+ if (!(equals$D(existing_embeddings_item, incoming_embeddings_item))) {
406
406
  return false;
407
407
  }
408
408
  });
@@ -423,14 +423,14 @@ function equals$B(existing, incoming) {
423
423
  }
424
424
  const ingest$d = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
425
425
  if (process.env.NODE_ENV !== 'production') {
426
- const validateError = validate$K(input);
426
+ const validateError = validate$L(input);
427
427
  if (validateError !== null) {
428
428
  throw validateError;
429
429
  }
430
430
  }
431
431
  const key = path.fullPath;
432
432
  const ttlToUse = TTL$d;
433
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "EinsteinLLM", VERSION$B, RepresentationType$d, equals$B);
433
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "EinsteinLLM", VERSION$C, RepresentationType$d, equals$C);
434
434
  return createLink(key);
435
435
  };
436
436
  function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
@@ -443,8 +443,8 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
443
443
  });
444
444
  }
445
445
 
446
- function select$U(luvio, params) {
447
- return select$V();
446
+ function select$V(luvio, params) {
447
+ return select$W();
448
448
  }
449
449
  function keyBuilder$s(luvio, params) {
450
450
  return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
@@ -458,7 +458,7 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
458
458
  luvio.storeIngest(key, ingest$d, body);
459
459
  const snapshot = luvio.storeLookup({
460
460
  recordId: key,
461
- node: select$U(),
461
+ node: select$V(),
462
462
  variables: {},
463
463
  }, snapshotRefresh);
464
464
  if (process.env.NODE_ENV !== 'production') {
@@ -475,7 +475,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
475
475
  const storeMetadataParams = {
476
476
  ttl: TTL$d,
477
477
  namespace: keyPrefix,
478
- version: VERSION$B,
478
+ version: VERSION$C,
479
479
  representationName: RepresentationType$d
480
480
  };
481
481
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -508,7 +508,7 @@ function keyBuilder$r(luvio, config) {
508
508
  function typeCheckConfig$j(untrustedConfig) {
509
509
  const config = {};
510
510
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
511
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$M(untrustedConfig_embeddingsInput);
511
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$N(untrustedConfig_embeddingsInput);
512
512
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
513
513
  config.embeddingsInput = untrustedConfig_embeddingsInput;
514
514
  }
@@ -529,7 +529,7 @@ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
529
529
  }
530
530
  function adapterFragment$b(luvio, config) {
531
531
  createResourceParams$j(config);
532
- return select$U();
532
+ return select$V();
533
533
  }
534
534
  function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
535
535
  const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
@@ -585,7 +585,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
585
585
  buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
586
586
  };
587
587
 
588
- function validate$J(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
588
+ function validate$K(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
589
589
  const v_error = (() => {
590
590
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
591
591
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -633,8 +633,8 @@ function validate$J(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
633
633
  }
634
634
 
635
635
  const TTL$c = 100;
636
- const VERSION$A = "4033328f65865dd5d80c68a7573a4522";
637
- function validate$I(obj, path = 'EinsteinLlmFeedbackRepresentation') {
636
+ const VERSION$B = "4033328f65865dd5d80c68a7573a4522";
637
+ function validate$J(obj, path = 'EinsteinLlmFeedbackRepresentation') {
638
638
  const v_error = (() => {
639
639
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
640
640
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -660,10 +660,10 @@ function keyBuilderFromType$4(luvio, object) {
660
660
  function normalize$c(input, existing, path, luvio, store, timestamp) {
661
661
  return input;
662
662
  }
663
- const select$T = function EinsteinLlmFeedbackRepresentationSelect() {
663
+ const select$U = function EinsteinLlmFeedbackRepresentationSelect() {
664
664
  return {
665
665
  kind: 'Fragment',
666
- version: VERSION$A,
666
+ version: VERSION$B,
667
667
  private: [],
668
668
  selections: [
669
669
  {
@@ -673,7 +673,7 @@ const select$T = function EinsteinLlmFeedbackRepresentationSelect() {
673
673
  ]
674
674
  };
675
675
  };
676
- function equals$A(existing, incoming) {
676
+ function equals$B(existing, incoming) {
677
677
  const existing_message = existing.message;
678
678
  const incoming_message = incoming.message;
679
679
  if (!(existing_message === incoming_message)) {
@@ -683,14 +683,14 @@ function equals$A(existing, incoming) {
683
683
  }
684
684
  const ingest$c = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
685
685
  if (process.env.NODE_ENV !== 'production') {
686
- const validateError = validate$I(input);
686
+ const validateError = validate$J(input);
687
687
  if (validateError !== null) {
688
688
  throw validateError;
689
689
  }
690
690
  }
691
691
  const key = keyBuilderFromType$4(luvio, input);
692
692
  const ttlToUse = TTL$c;
693
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$A, RepresentationType$c, equals$A);
693
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$B, RepresentationType$c, equals$B);
694
694
  return createLink(key);
695
695
  };
696
696
  function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
@@ -703,8 +703,8 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
703
703
  });
704
704
  }
705
705
 
706
- function select$S(luvio, params) {
707
- return select$T();
706
+ function select$T(luvio, params) {
707
+ return select$U();
708
708
  }
709
709
  function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
710
710
  getTypeCacheKeys$c(storeKeyMap, luvio, response);
@@ -715,7 +715,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
715
715
  luvio.storeIngest(key, ingest$c, body);
716
716
  const snapshot = luvio.storeLookup({
717
717
  recordId: key,
718
- node: select$S(),
718
+ node: select$T(),
719
719
  variables: {},
720
720
  });
721
721
  if (process.env.NODE_ENV !== 'production') {
@@ -749,7 +749,7 @@ const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(createFeedba
749
749
  function typeCheckConfig$i(untrustedConfig) {
750
750
  const config = {};
751
751
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
752
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$J(untrustedConfig_feedbackInput);
752
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$K(untrustedConfig_feedbackInput);
753
753
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
754
754
  config.feedbackInput = untrustedConfig_feedbackInput;
755
755
  }
@@ -797,7 +797,7 @@ const createFeedbackAdapterFactory = (luvio) => {
797
797
  };
798
798
  };
799
799
 
800
- function validate$H(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
800
+ function validate$I(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
801
801
  const v_error = (() => {
802
802
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
803
803
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -880,7 +880,7 @@ function validate$H(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
880
880
  return v_error === undefined ? null : v_error;
881
881
  }
882
882
 
883
- function validate$G(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
883
+ function validate$H(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
884
884
  const v_error = (() => {
885
885
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
886
886
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -888,7 +888,7 @@ function validate$G(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
888
888
  if (obj.additionalConfig !== undefined) {
889
889
  const obj_additionalConfig = obj.additionalConfig;
890
890
  const path_additionalConfig = path + '.additionalConfig';
891
- const referencepath_additionalConfigValidationError = validate$H(obj_additionalConfig, path_additionalConfig);
891
+ const referencepath_additionalConfigValidationError = validate$I(obj_additionalConfig, path_additionalConfig);
892
892
  if (referencepath_additionalConfigValidationError !== null) {
893
893
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
894
894
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -911,8 +911,8 @@ function validate$G(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
911
911
  return v_error === undefined ? null : v_error;
912
912
  }
913
913
 
914
- const VERSION$z = "9ebac74e6f964c363d5fd1913df363af";
915
- function validate$F(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
914
+ const VERSION$A = "9ebac74e6f964c363d5fd1913df363af";
915
+ function validate$G(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
916
916
  const v_error = (() => {
917
917
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
918
918
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -948,10 +948,10 @@ function validate$F(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
948
948
  })();
949
949
  return v_error === undefined ? null : v_error;
950
950
  }
951
- const select$R = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
951
+ const select$S = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
952
952
  return {
953
953
  kind: 'Fragment',
954
- version: VERSION$z,
954
+ version: VERSION$A,
955
955
  private: [],
956
956
  selections: [
957
957
  {
@@ -962,7 +962,7 @@ const select$R = function EinsteinLlmGenerationsContentQualityRepresentationSele
962
962
  ]
963
963
  };
964
964
  };
965
- function equals$z(existing, incoming) {
965
+ function equals$A(existing, incoming) {
966
966
  const existing_isToxicityDetected = existing.isToxicityDetected;
967
967
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
968
968
  // if at least one of these optionals is defined
@@ -979,8 +979,8 @@ function equals$z(existing, incoming) {
979
979
  return true;
980
980
  }
981
981
 
982
- const VERSION$y = "77af44a252cb5b45b4d9a8101368d2aa";
983
- function validate$E(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
982
+ const VERSION$z = "77af44a252cb5b45b4d9a8101368d2aa";
983
+ function validate$F(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
984
984
  const v_error = (() => {
985
985
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
986
986
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1184,10 +1184,10 @@ function validate$E(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1184
1184
  })();
1185
1185
  return v_error === undefined ? null : v_error;
1186
1186
  }
1187
- const select$Q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1187
+ const select$R = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1188
1188
  return {
1189
1189
  kind: 'Fragment',
1190
- version: VERSION$y,
1190
+ version: VERSION$z,
1191
1191
  private: [],
1192
1192
  selections: [
1193
1193
  {
@@ -1228,7 +1228,7 @@ const select$Q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1228
1228
  ]
1229
1229
  };
1230
1230
  };
1231
- function equals$y(existing, incoming) {
1231
+ function equals$z(existing, incoming) {
1232
1232
  const existing_hateScore = existing.hateScore;
1233
1233
  const incoming_hateScore = incoming.hateScore;
1234
1234
  // if at least one of these optionals is defined
@@ -1323,8 +1323,8 @@ function equals$y(existing, incoming) {
1323
1323
  return true;
1324
1324
  }
1325
1325
 
1326
- const VERSION$x = "4a07778ff6c595d91c575188146647a1";
1327
- function validate$D(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1326
+ const VERSION$y = "4a07778ff6c595d91c575188146647a1";
1327
+ function validate$E(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1328
1328
  const v_error = (() => {
1329
1329
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1330
1330
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1334,7 +1334,7 @@ function validate$D(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1334
1334
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
1335
1335
  let obj_contentQualityRepresentation_union0 = null;
1336
1336
  const obj_contentQualityRepresentation_union0_error = (() => {
1337
- const referencepath_contentQualityRepresentationValidationError = validate$F(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1337
+ const referencepath_contentQualityRepresentationValidationError = validate$G(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1338
1338
  if (referencepath_contentQualityRepresentationValidationError !== null) {
1339
1339
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
1340
1340
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1382,7 +1382,7 @@ function validate$D(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1382
1382
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
1383
1383
  let obj_safetyScoreRepresentation_union0 = null;
1384
1384
  const obj_safetyScoreRepresentation_union0_error = (() => {
1385
- const referencepath_safetyScoreRepresentationValidationError = validate$E(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1385
+ const referencepath_safetyScoreRepresentationValidationError = validate$F(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1386
1386
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
1387
1387
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
1388
1388
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1416,12 +1416,12 @@ function validate$D(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1416
1416
  })();
1417
1417
  return v_error === undefined ? null : v_error;
1418
1418
  }
1419
- const select$P = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$R();
1421
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$Q();
1419
+ const select$Q = function EinsteinLlmGenerationItemRepresentationSelect() {
1420
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$S();
1421
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$R();
1422
1422
  return {
1423
1423
  kind: 'Fragment',
1424
- version: VERSION$x,
1424
+ version: VERSION$y,
1425
1425
  private: [],
1426
1426
  selections: [
1427
1427
  {
@@ -1458,7 +1458,7 @@ const select$P = function EinsteinLlmGenerationItemRepresentationSelect() {
1458
1458
  ]
1459
1459
  };
1460
1460
  };
1461
- function equals$x(existing, incoming) {
1461
+ function equals$y(existing, incoming) {
1462
1462
  const existing_isSummarized = existing.isSummarized;
1463
1463
  const incoming_isSummarized = incoming.isSummarized;
1464
1464
  // if at least one of these optionals is defined
@@ -1499,7 +1499,7 @@ function equals$x(existing, incoming) {
1499
1499
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1500
1500
  || (existing_contentQualityRepresentation != null &&
1501
1501
  incoming_contentQualityRepresentation != null &&
1502
- equals$z(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1502
+ equals$A(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1503
1503
  return false;
1504
1504
  }
1505
1505
  }
@@ -1515,15 +1515,15 @@ function equals$x(existing, incoming) {
1515
1515
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1516
1516
  || (existing_safetyScoreRepresentation != null &&
1517
1517
  incoming_safetyScoreRepresentation != null &&
1518
- equals$y(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1518
+ equals$z(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1519
1519
  return false;
1520
1520
  }
1521
1521
  }
1522
1522
  return true;
1523
1523
  }
1524
1524
 
1525
- const VERSION$w = "379fd960d1a0118f506f458ab2c8dd7e";
1526
- function validate$C(obj, path = 'WrappedMap') {
1525
+ const VERSION$x = "379fd960d1a0118f506f458ab2c8dd7e";
1526
+ function validate$D(obj, path = 'WrappedMap') {
1527
1527
  const v_error = (() => {
1528
1528
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1529
1529
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1545,10 +1545,10 @@ function validate$C(obj, path = 'WrappedMap') {
1545
1545
  })();
1546
1546
  return v_error === undefined ? null : v_error;
1547
1547
  }
1548
- const select$O = function WrappedMapSelect() {
1548
+ const select$P = function WrappedMapSelect() {
1549
1549
  return {
1550
1550
  kind: 'Fragment',
1551
- version: VERSION$w,
1551
+ version: VERSION$x,
1552
1552
  private: [],
1553
1553
  selections: [
1554
1554
  {
@@ -1559,7 +1559,7 @@ const select$O = function WrappedMapSelect() {
1559
1559
  ]
1560
1560
  };
1561
1561
  };
1562
- function equals$w(existing, incoming) {
1562
+ function equals$x(existing, incoming) {
1563
1563
  const existing_wrappedMap = existing.wrappedMap;
1564
1564
  const incoming_wrappedMap = incoming.wrappedMap;
1565
1565
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1574,8 +1574,8 @@ function equals$w(existing, incoming) {
1574
1574
  }
1575
1575
 
1576
1576
  const TTL$b = 100;
1577
- const VERSION$v = "d8abd72a42e842b253da1c38954dafbc";
1578
- function validate$B(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1577
+ const VERSION$w = "d8abd72a42e842b253da1c38954dafbc";
1578
+ function validate$C(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1579
1579
  const v_error = (() => {
1580
1580
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1581
1581
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1588,7 +1588,7 @@ function validate$B(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1588
1588
  for (let i = 0; i < obj_generations.length; i++) {
1589
1589
  const obj_generations_item = obj_generations[i];
1590
1590
  const path_generations_item = path_generations + '[' + i + ']';
1591
- const referencepath_generations_itemValidationError = validate$D(obj_generations_item, path_generations_item);
1591
+ const referencepath_generations_itemValidationError = validate$E(obj_generations_item, path_generations_item);
1592
1592
  if (referencepath_generations_itemValidationError !== null) {
1593
1593
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1594
1594
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1599,7 +1599,7 @@ function validate$B(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1599
1599
  const path_parameters = path + '.parameters';
1600
1600
  let obj_parameters_union0 = null;
1601
1601
  const obj_parameters_union0_error = (() => {
1602
- const referencepath_parametersValidationError = validate$C(obj_parameters, path_parameters);
1602
+ const referencepath_parametersValidationError = validate$D(obj_parameters, path_parameters);
1603
1603
  if (referencepath_parametersValidationError !== null) {
1604
1604
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1605
1605
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1671,12 +1671,12 @@ function keyBuilderFromType$3(luvio, object) {
1671
1671
  function normalize$b(input, existing, path, luvio, store, timestamp) {
1672
1672
  return input;
1673
1673
  }
1674
- const select$N = function EinsteinLlmGenerationsRepresentationSelect() {
1675
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$P();
1676
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
1674
+ const select$O = function EinsteinLlmGenerationsRepresentationSelect() {
1675
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$Q();
1676
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
1677
1677
  return {
1678
1678
  kind: 'Fragment',
1679
- version: VERSION$v,
1679
+ version: VERSION$w,
1680
1680
  private: [],
1681
1681
  selections: [
1682
1682
  {
@@ -1702,7 +1702,7 @@ const select$N = function EinsteinLlmGenerationsRepresentationSelect() {
1702
1702
  ]
1703
1703
  };
1704
1704
  };
1705
- function equals$v(existing, incoming) {
1705
+ function equals$w(existing, incoming) {
1706
1706
  const existing_requestId = existing.requestId;
1707
1707
  const incoming_requestId = incoming.requestId;
1708
1708
  if (!(existing_requestId === incoming_requestId)) {
@@ -1711,7 +1711,7 @@ function equals$v(existing, incoming) {
1711
1711
  const existing_generations = existing.generations;
1712
1712
  const incoming_generations = incoming.generations;
1713
1713
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1714
- if (!(equals$x(existing_generations_item, incoming_generations_item))) {
1714
+ if (!(equals$y(existing_generations_item, incoming_generations_item))) {
1715
1715
  return false;
1716
1716
  }
1717
1717
  });
@@ -1723,7 +1723,7 @@ function equals$v(existing, incoming) {
1723
1723
  if (!(existing_parameters === incoming_parameters
1724
1724
  || (existing_parameters != null &&
1725
1725
  incoming_parameters != null &&
1726
- equals$w(existing_parameters, incoming_parameters)))) {
1726
+ equals$x(existing_parameters, incoming_parameters)))) {
1727
1727
  return false;
1728
1728
  }
1729
1729
  const existing_prompt = existing.prompt;
@@ -1735,14 +1735,14 @@ function equals$v(existing, incoming) {
1735
1735
  }
1736
1736
  const ingest$b = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1737
1737
  if (process.env.NODE_ENV !== 'production') {
1738
- const validateError = validate$B(input);
1738
+ const validateError = validate$C(input);
1739
1739
  if (validateError !== null) {
1740
1740
  throw validateError;
1741
1741
  }
1742
1742
  }
1743
1743
  const key = keyBuilderFromType$3(luvio, input);
1744
1744
  const ttlToUse = TTL$b;
1745
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$v, RepresentationType$b, equals$v);
1745
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$w, RepresentationType$b, equals$w);
1746
1746
  return createLink(key);
1747
1747
  };
1748
1748
  function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
@@ -1755,8 +1755,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1755
1755
  });
1756
1756
  }
1757
1757
 
1758
- function select$M(luvio, params) {
1759
- return select$N();
1758
+ function select$N(luvio, params) {
1759
+ return select$O();
1760
1760
  }
1761
1761
  function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
1762
1762
  getTypeCacheKeys$b(storeKeyMap, luvio, response);
@@ -1767,7 +1767,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
1767
1767
  luvio.storeIngest(key, ingest$b, body);
1768
1768
  const snapshot = luvio.storeLookup({
1769
1769
  recordId: key,
1770
- node: select$M(),
1770
+ node: select$N(),
1771
1771
  variables: {},
1772
1772
  });
1773
1773
  if (process.env.NODE_ENV !== 'production') {
@@ -1801,7 +1801,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createGenera
1801
1801
  function typeCheckConfig$h(untrustedConfig) {
1802
1802
  const config = {};
1803
1803
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1804
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$G(untrustedConfig_generationsInput);
1804
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$H(untrustedConfig_generationsInput);
1805
1805
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1806
1806
  config.generationsInput = untrustedConfig_generationsInput;
1807
1807
  }
@@ -1849,7 +1849,7 @@ const createGenerationsAdapterFactory = (luvio) => {
1849
1849
  };
1850
1850
  };
1851
1851
 
1852
- function validate$A(obj, path = 'WrappedValueMap') {
1852
+ function validate$B(obj, path = 'WrappedValueMap') {
1853
1853
  const v_error = (() => {
1854
1854
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1855
1855
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1872,7 +1872,7 @@ function validate$A(obj, path = 'WrappedValueMap') {
1872
1872
  return v_error === undefined ? null : v_error;
1873
1873
  }
1874
1874
 
1875
- function validate$z(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1875
+ function validate$A(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1876
1876
  const v_error = (() => {
1877
1877
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1878
1878
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1880,7 +1880,7 @@ function validate$z(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1880
1880
  if (obj.additionalConfig !== undefined) {
1881
1881
  const obj_additionalConfig = obj.additionalConfig;
1882
1882
  const path_additionalConfig = path + '.additionalConfig';
1883
- const referencepath_additionalConfigValidationError = validate$H(obj_additionalConfig, path_additionalConfig);
1883
+ const referencepath_additionalConfigValidationError = validate$I(obj_additionalConfig, path_additionalConfig);
1884
1884
  if (referencepath_additionalConfigValidationError !== null) {
1885
1885
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
1886
1886
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1896,7 +1896,7 @@ function validate$z(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1896
1896
  }
1897
1897
  const obj_inputParams = obj.inputParams;
1898
1898
  const path_inputParams = path + '.inputParams';
1899
- const referencepath_inputParamsValidationError = validate$A(obj_inputParams, path_inputParams);
1899
+ const referencepath_inputParamsValidationError = validate$B(obj_inputParams, path_inputParams);
1900
1900
  if (referencepath_inputParamsValidationError !== null) {
1901
1901
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
1902
1902
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1932,8 +1932,8 @@ function validate$z(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1932
1932
  return v_error === undefined ? null : v_error;
1933
1933
  }
1934
1934
 
1935
- const VERSION$u = "6a209d0b32d59e6e04155812fdf5c985";
1936
- function validate$y(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
1935
+ const VERSION$v = "6a209d0b32d59e6e04155812fdf5c985";
1936
+ function validate$z(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
1937
1937
  const v_error = (() => {
1938
1938
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1939
1939
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1997,10 +1997,10 @@ function validate$y(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
1997
1997
  })();
1998
1998
  return v_error === undefined ? null : v_error;
1999
1999
  }
2000
- const select$L = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
2000
+ const select$M = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
2001
2001
  return {
2002
2002
  kind: 'Fragment',
2003
- version: VERSION$u,
2003
+ version: VERSION$v,
2004
2004
  private: [],
2005
2005
  selections: [
2006
2006
  {
@@ -2038,7 +2038,7 @@ const select$L = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
2038
2038
  ]
2039
2039
  };
2040
2040
  };
2041
- function equals$u(existing, incoming) {
2041
+ function equals$v(existing, incoming) {
2042
2042
  const existing_label = existing.label;
2043
2043
  const incoming_label = incoming.label;
2044
2044
  // if at least one of these optionals is defined
@@ -2130,8 +2130,8 @@ function equals$u(existing, incoming) {
2130
2130
  return true;
2131
2131
  }
2132
2132
 
2133
- const VERSION$t = "bcc0ea08323732f4187dd2b9f70fea6c";
2134
- function validate$x(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
2133
+ const VERSION$u = "bcc0ea08323732f4187dd2b9f70fea6c";
2134
+ function validate$y(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
2135
2135
  const v_error = (() => {
2136
2136
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2137
2137
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2145,7 +2145,7 @@ function validate$x(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
2145
2145
  for (let i = 0; i < obj_citedReferences.length; i++) {
2146
2146
  const obj_citedReferences_item = obj_citedReferences[i];
2147
2147
  const path_citedReferences_item = path_citedReferences + '[' + i + ']';
2148
- const referencepath_citedReferences_itemValidationError = validate$y(obj_citedReferences_item, path_citedReferences_item);
2148
+ const referencepath_citedReferences_itemValidationError = validate$z(obj_citedReferences_item, path_citedReferences_item);
2149
2149
  if (referencepath_citedReferences_itemValidationError !== null) {
2150
2150
  let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
2151
2151
  message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2156,11 +2156,11 @@ function validate$x(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
2156
2156
  })();
2157
2157
  return v_error === undefined ? null : v_error;
2158
2158
  }
2159
- const select$K = function EinsteinLlmGenerationCitationRepresentationSelect() {
2160
- const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$L();
2159
+ const select$L = function EinsteinLlmGenerationCitationRepresentationSelect() {
2160
+ const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$M();
2161
2161
  return {
2162
2162
  kind: 'Fragment',
2163
- version: VERSION$t,
2163
+ version: VERSION$u,
2164
2164
  private: [],
2165
2165
  selections: [
2166
2166
  {
@@ -2173,7 +2173,7 @@ const select$K = function EinsteinLlmGenerationCitationRepresentationSelect() {
2173
2173
  ]
2174
2174
  };
2175
2175
  };
2176
- function equals$t(existing, incoming) {
2176
+ function equals$u(existing, incoming) {
2177
2177
  const existing_citedReferences = existing.citedReferences;
2178
2178
  const incoming_citedReferences = incoming.citedReferences;
2179
2179
  // if at least one of these optionals is defined
@@ -2184,7 +2184,7 @@ function equals$t(existing, incoming) {
2184
2184
  return false;
2185
2185
  }
2186
2186
  const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
2187
- if (!(equals$u(existing_citedReferences_item, incoming_citedReferences_item))) {
2187
+ if (!(equals$v(existing_citedReferences_item, incoming_citedReferences_item))) {
2188
2188
  return false;
2189
2189
  }
2190
2190
  });
@@ -2195,8 +2195,8 @@ function equals$t(existing, incoming) {
2195
2195
  return true;
2196
2196
  }
2197
2197
 
2198
- const VERSION$s = "f62ac44b024b123f079b57f349e05230";
2199
- function validate$w(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
2198
+ const VERSION$t = "f62ac44b024b123f079b57f349e05230";
2199
+ function validate$x(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
2200
2200
  const v_error = (() => {
2201
2201
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2202
2202
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2214,10 +2214,10 @@ function validate$w(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
2214
2214
  })();
2215
2215
  return v_error === undefined ? null : v_error;
2216
2216
  }
2217
- const select$J = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
2217
+ const select$K = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
2218
2218
  return {
2219
2219
  kind: 'Fragment',
2220
- version: VERSION$s,
2220
+ version: VERSION$t,
2221
2221
  private: [],
2222
2222
  selections: [
2223
2223
  {
@@ -2231,7 +2231,7 @@ const select$J = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
2231
2231
  ]
2232
2232
  };
2233
2233
  };
2234
- function equals$s(existing, incoming) {
2234
+ function equals$t(existing, incoming) {
2235
2235
  const existing_isExcluded = existing.isExcluded;
2236
2236
  const incoming_isExcluded = incoming.isExcluded;
2237
2237
  if (!(existing_isExcluded === incoming_isExcluded)) {
@@ -2245,8 +2245,8 @@ function equals$s(existing, incoming) {
2245
2245
  return true;
2246
2246
  }
2247
2247
 
2248
- const VERSION$r = "9edc7f85ed953923f7b48f294886471a";
2249
- function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
2248
+ const VERSION$s = "c7f101a8a143591c7e9c5e987860078e";
2249
+ function validate$w(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
2250
2250
  const v_error = (() => {
2251
2251
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2252
2252
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2261,7 +2261,7 @@ function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
2261
2261
  if (obj.exclusionInfo !== undefined) {
2262
2262
  const obj_exclusionInfo = obj.exclusionInfo;
2263
2263
  const path_exclusionInfo = path + '.exclusionInfo';
2264
- const referencepath_exclusionInfoValidationError = validate$w(obj_exclusionInfo, path_exclusionInfo);
2264
+ const referencepath_exclusionInfoValidationError = validate$x(obj_exclusionInfo, path_exclusionInfo);
2265
2265
  if (referencepath_exclusionInfoValidationError !== null) {
2266
2266
  let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
2267
2267
  message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2295,14 +2295,30 @@ function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
2295
2295
  if (typeof obj_title !== 'string') {
2296
2296
  return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
2297
2297
  }
2298
+ if (obj.transformationInfo !== undefined) {
2299
+ const obj_transformationInfo = obj.transformationInfo;
2300
+ const path_transformationInfo = path + '.transformationInfo';
2301
+ if (typeof obj_transformationInfo !== 'object' || ArrayIsArray(obj_transformationInfo) || obj_transformationInfo === null) {
2302
+ return new TypeError('Expected "object" but received "' + typeof obj_transformationInfo + '" (at "' + path_transformationInfo + '")');
2303
+ }
2304
+ const obj_transformationInfo_keys = ObjectKeys(obj_transformationInfo);
2305
+ for (let i = 0; i < obj_transformationInfo_keys.length; i++) {
2306
+ const key = obj_transformationInfo_keys[i];
2307
+ const obj_transformationInfo_prop = obj_transformationInfo[key];
2308
+ const path_transformationInfo_prop = path_transformationInfo + '["' + key + '"]';
2309
+ if (typeof obj_transformationInfo_prop !== 'string') {
2310
+ return new TypeError('Expected "string" but received "' + typeof obj_transformationInfo_prop + '" (at "' + path_transformationInfo_prop + '")');
2311
+ }
2312
+ }
2313
+ }
2298
2314
  })();
2299
2315
  return v_error === undefined ? null : v_error;
2300
2316
  }
2301
- const select$I = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
2302
- const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$J();
2317
+ const select$J = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
2318
+ const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$K();
2303
2319
  return {
2304
2320
  kind: 'Fragment',
2305
- version: VERSION$r,
2321
+ version: VERSION$s,
2306
2322
  private: [],
2307
2323
  selections: [
2308
2324
  {
@@ -2336,11 +2352,17 @@ const select$I = function EinsteinPromptTemplateAttachmentRepresentationSelect()
2336
2352
  {
2337
2353
  name: 'title',
2338
2354
  kind: 'Scalar'
2355
+ },
2356
+ {
2357
+ name: 'transformationInfo',
2358
+ kind: 'Scalar',
2359
+ map: true,
2360
+ required: false
2339
2361
  }
2340
2362
  ]
2341
2363
  };
2342
2364
  };
2343
- function equals$r(existing, incoming) {
2365
+ function equals$s(existing, incoming) {
2344
2366
  const existing_actualFileMimeType = existing.actualFileMimeType;
2345
2367
  const incoming_actualFileMimeType = incoming.actualFileMimeType;
2346
2368
  // if at least one of these optionals is defined
@@ -2396,15 +2418,33 @@ function equals$r(existing, incoming) {
2396
2418
  if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
2397
2419
  return false;
2398
2420
  }
2399
- if (!(equals$s(existing_exclusionInfo, incoming_exclusionInfo))) {
2421
+ if (!(equals$t(existing_exclusionInfo, incoming_exclusionInfo))) {
2422
+ return false;
2423
+ }
2424
+ }
2425
+ const existing_transformationInfo = existing.transformationInfo;
2426
+ const incoming_transformationInfo = incoming.transformationInfo;
2427
+ // if at least one of these optionals is defined
2428
+ if (existing_transformationInfo !== undefined || incoming_transformationInfo !== undefined) {
2429
+ // if one of these is not defined we know the other is defined and therefore
2430
+ // not equal
2431
+ if (existing_transformationInfo === undefined || incoming_transformationInfo === undefined) {
2432
+ return false;
2433
+ }
2434
+ const equals_transformationInfo_props = equalsObject(existing_transformationInfo, incoming_transformationInfo, (existing_transformationInfo_prop, incoming_transformationInfo_prop) => {
2435
+ if (!(existing_transformationInfo_prop === incoming_transformationInfo_prop)) {
2436
+ return false;
2437
+ }
2438
+ });
2439
+ if (equals_transformationInfo_props === false) {
2400
2440
  return false;
2401
2441
  }
2402
2442
  }
2403
2443
  return true;
2404
2444
  }
2405
2445
 
2406
- const VERSION$q = "6458d624e5a1691821c764b6de0badb3";
2407
- function validate$u(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
2446
+ const VERSION$r = "6458d624e5a1691821c764b6de0badb3";
2447
+ function validate$v(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
2408
2448
  const v_error = (() => {
2409
2449
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2410
2450
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2434,10 +2474,10 @@ function validate$u(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
2434
2474
  })();
2435
2475
  return v_error === undefined ? null : v_error;
2436
2476
  }
2437
- const select$H = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
2477
+ const select$I = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
2438
2478
  return {
2439
2479
  kind: 'Fragment',
2440
- version: VERSION$q,
2480
+ version: VERSION$r,
2441
2481
  private: [],
2442
2482
  selections: [
2443
2483
  {
@@ -2460,7 +2500,7 @@ const select$H = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
2460
2500
  ]
2461
2501
  };
2462
2502
  };
2463
- function equals$q(existing, incoming) {
2503
+ function equals$r(existing, incoming) {
2464
2504
  const existing_errorMessage = existing.errorMessage;
2465
2505
  const incoming_errorMessage = incoming.errorMessage;
2466
2506
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -2492,8 +2532,8 @@ function equals$q(existing, incoming) {
2492
2532
  return true;
2493
2533
  }
2494
2534
 
2495
- const VERSION$p = "3ce695c87c874dcb5ac019766a3b64f0";
2496
- function validate$t(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
2535
+ const VERSION$q = "3ce695c87c874dcb5ac019766a3b64f0";
2536
+ function validate$u(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
2497
2537
  const v_error = (() => {
2498
2538
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2499
2539
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2511,10 +2551,10 @@ function validate$t(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
2511
2551
  })();
2512
2552
  return v_error === undefined ? null : v_error;
2513
2553
  }
2514
- const select$G = function EinsteinPromptTemplateLatencyRepresentationSelect() {
2554
+ const select$H = function EinsteinPromptTemplateLatencyRepresentationSelect() {
2515
2555
  return {
2516
2556
  kind: 'Fragment',
2517
- version: VERSION$p,
2557
+ version: VERSION$q,
2518
2558
  private: [],
2519
2559
  selections: [
2520
2560
  {
@@ -2528,7 +2568,7 @@ const select$G = function EinsteinPromptTemplateLatencyRepresentationSelect() {
2528
2568
  ]
2529
2569
  };
2530
2570
  };
2531
- function equals$p(existing, incoming) {
2571
+ function equals$q(existing, incoming) {
2532
2572
  const existing_duration = existing.duration;
2533
2573
  const incoming_duration = incoming.duration;
2534
2574
  if (!(existing_duration === incoming_duration)) {
@@ -2542,15 +2582,15 @@ function equals$p(existing, incoming) {
2542
2582
  return true;
2543
2583
  }
2544
2584
 
2545
- const VERSION$o = "9ef738d379a8db0dc8193d438d7995ad";
2546
- function validate$s(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepresentation') {
2585
+ const VERSION$p = "9ef738d379a8db0dc8193d438d7995ad";
2586
+ function validate$t(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepresentation') {
2547
2587
  const v_error = (() => {
2548
2588
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2549
2589
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2550
2590
  }
2551
2591
  const obj_latency = obj.latency;
2552
2592
  const path_latency = path + '.latency';
2553
- const referencepath_latencyValidationError = validate$t(obj_latency, path_latency);
2593
+ const referencepath_latencyValidationError = validate$u(obj_latency, path_latency);
2554
2594
  if (referencepath_latencyValidationError !== null) {
2555
2595
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
2556
2596
  message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2564,11 +2604,11 @@ function validate$s(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepre
2564
2604
  })();
2565
2605
  return v_error === undefined ? null : v_error;
2566
2606
  }
2567
- const select$F = function EinsteinPromptTemplateLatencyBreakdownItemRepresentationSelect() {
2568
- const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$G();
2607
+ const select$G = function EinsteinPromptTemplateLatencyBreakdownItemRepresentationSelect() {
2608
+ const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$H();
2569
2609
  return {
2570
2610
  kind: 'Fragment',
2571
- version: VERSION$o,
2611
+ version: VERSION$p,
2572
2612
  private: [],
2573
2613
  selections: [
2574
2614
  {
@@ -2583,7 +2623,7 @@ const select$F = function EinsteinPromptTemplateLatencyBreakdownItemRepresentati
2583
2623
  ]
2584
2624
  };
2585
2625
  };
2586
- function equals$o(existing, incoming) {
2626
+ function equals$p(existing, incoming) {
2587
2627
  const existing_referenceName = existing.referenceName;
2588
2628
  const incoming_referenceName = incoming.referenceName;
2589
2629
  if (!(existing_referenceName === incoming_referenceName)) {
@@ -2591,14 +2631,14 @@ function equals$o(existing, incoming) {
2591
2631
  }
2592
2632
  const existing_latency = existing.latency;
2593
2633
  const incoming_latency = incoming.latency;
2594
- if (!(equals$p(existing_latency, incoming_latency))) {
2634
+ if (!(equals$q(existing_latency, incoming_latency))) {
2595
2635
  return false;
2596
2636
  }
2597
2637
  return true;
2598
2638
  }
2599
2639
 
2600
- const VERSION$n = "4b1840167fa1759c2413bafa7708e137";
2601
- function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation') {
2640
+ const VERSION$o = "4b1840167fa1759c2413bafa7708e137";
2641
+ function validate$s(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation') {
2602
2642
  const v_error = (() => {
2603
2643
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2604
2644
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2612,7 +2652,7 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
2612
2652
  for (let i = 0; i < obj_breakdown.length; i++) {
2613
2653
  const obj_breakdown_item = obj_breakdown[i];
2614
2654
  const path_breakdown_item = path_breakdown + '[' + i + ']';
2615
- const referencepath_breakdown_itemValidationError = validate$s(obj_breakdown_item, path_breakdown_item);
2655
+ const referencepath_breakdown_itemValidationError = validate$t(obj_breakdown_item, path_breakdown_item);
2616
2656
  if (referencepath_breakdown_itemValidationError !== null) {
2617
2657
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyBreakdownItemRepresentation (at "' + path_breakdown_item + '")\n';
2618
2658
  message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2622,7 +2662,7 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
2622
2662
  }
2623
2663
  const obj_latency = obj.latency;
2624
2664
  const path_latency = path + '.latency';
2625
- const referencepath_latencyValidationError = validate$t(obj_latency, path_latency);
2665
+ const referencepath_latencyValidationError = validate$u(obj_latency, path_latency);
2626
2666
  if (referencepath_latencyValidationError !== null) {
2627
2667
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
2628
2668
  message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2631,12 +2671,12 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
2631
2671
  })();
2632
2672
  return v_error === undefined ? null : v_error;
2633
2673
  }
2634
- const select$E = function EinsteinPromptTemplateLatencyStepRepresentationSelect() {
2635
- const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$F();
2636
- const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$G();
2674
+ const select$F = function EinsteinPromptTemplateLatencyStepRepresentationSelect() {
2675
+ const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$G();
2676
+ const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$H();
2637
2677
  return {
2638
2678
  kind: 'Fragment',
2639
- version: VERSION$n,
2679
+ version: VERSION$o,
2640
2680
  private: [],
2641
2681
  selections: [
2642
2682
  {
@@ -2654,7 +2694,7 @@ const select$E = function EinsteinPromptTemplateLatencyStepRepresentationSelect(
2654
2694
  ]
2655
2695
  };
2656
2696
  };
2657
- function equals$n(existing, incoming) {
2697
+ function equals$o(existing, incoming) {
2658
2698
  const existing_breakdown = existing.breakdown;
2659
2699
  const incoming_breakdown = incoming.breakdown;
2660
2700
  // if at least one of these optionals is defined
@@ -2665,7 +2705,7 @@ function equals$n(existing, incoming) {
2665
2705
  return false;
2666
2706
  }
2667
2707
  const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
2668
- if (!(equals$o(existing_breakdown_item, incoming_breakdown_item))) {
2708
+ if (!(equals$p(existing_breakdown_item, incoming_breakdown_item))) {
2669
2709
  return false;
2670
2710
  }
2671
2711
  });
@@ -2675,22 +2715,32 @@ function equals$n(existing, incoming) {
2675
2715
  }
2676
2716
  const existing_latency = existing.latency;
2677
2717
  const incoming_latency = incoming.latency;
2678
- if (!(equals$p(existing_latency, incoming_latency))) {
2718
+ if (!(equals$q(existing_latency, incoming_latency))) {
2679
2719
  return false;
2680
2720
  }
2681
2721
  return true;
2682
2722
  }
2683
2723
 
2684
- const VERSION$m = "d6838fb296069ed6df17b2215be2da09";
2685
- function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
2724
+ const VERSION$n = "b9a79aedb4ae9102574eccd6cbc6831c";
2725
+ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
2686
2726
  const v_error = (() => {
2687
2727
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2688
2728
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2689
2729
  }
2730
+ if (obj.fileProcessing !== undefined) {
2731
+ const obj_fileProcessing = obj.fileProcessing;
2732
+ const path_fileProcessing = path + '.fileProcessing';
2733
+ const referencepath_fileProcessingValidationError = validate$s(obj_fileProcessing, path_fileProcessing);
2734
+ if (referencepath_fileProcessingValidationError !== null) {
2735
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_fileProcessing + '")\n';
2736
+ message += referencepath_fileProcessingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2737
+ return new TypeError(message);
2738
+ }
2739
+ }
2690
2740
  if (obj.generation !== undefined) {
2691
2741
  const obj_generation = obj.generation;
2692
2742
  const path_generation = path + '.generation';
2693
- const referencepath_generationValidationError = validate$r(obj_generation, path_generation);
2743
+ const referencepath_generationValidationError = validate$s(obj_generation, path_generation);
2694
2744
  if (referencepath_generationValidationError !== null) {
2695
2745
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_generation + '")\n';
2696
2746
  message += referencepath_generationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2700,7 +2750,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
2700
2750
  if (obj.hydration !== undefined) {
2701
2751
  const obj_hydration = obj.hydration;
2702
2752
  const path_hydration = path + '.hydration';
2703
- const referencepath_hydrationValidationError = validate$r(obj_hydration, path_hydration);
2753
+ const referencepath_hydrationValidationError = validate$s(obj_hydration, path_hydration);
2704
2754
  if (referencepath_hydrationValidationError !== null) {
2705
2755
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_hydration + '")\n';
2706
2756
  message += referencepath_hydrationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2709,7 +2759,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
2709
2759
  }
2710
2760
  const obj_loadTemplate = obj.loadTemplate;
2711
2761
  const path_loadTemplate = path + '.loadTemplate';
2712
- const referencepath_loadTemplateValidationError = validate$r(obj_loadTemplate, path_loadTemplate);
2762
+ const referencepath_loadTemplateValidationError = validate$s(obj_loadTemplate, path_loadTemplate);
2713
2763
  if (referencepath_loadTemplateValidationError !== null) {
2714
2764
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_loadTemplate + '")\n';
2715
2765
  message += referencepath_loadTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2718,7 +2768,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
2718
2768
  if (obj.mask !== undefined) {
2719
2769
  const obj_mask = obj.mask;
2720
2770
  const path_mask = path + '.mask';
2721
- const referencepath_maskValidationError = validate$r(obj_mask, path_mask);
2771
+ const referencepath_maskValidationError = validate$s(obj_mask, path_mask);
2722
2772
  if (referencepath_maskValidationError !== null) {
2723
2773
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_mask + '")\n';
2724
2774
  message += referencepath_maskValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2728,7 +2778,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
2728
2778
  if (obj.resolveData !== undefined) {
2729
2779
  const obj_resolveData = obj.resolveData;
2730
2780
  const path_resolveData = path + '.resolveData';
2731
- const referencepath_resolveDataValidationError = validate$r(obj_resolveData, path_resolveData);
2781
+ const referencepath_resolveDataValidationError = validate$s(obj_resolveData, path_resolveData);
2732
2782
  if (referencepath_resolveDataValidationError !== null) {
2733
2783
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_resolveData + '")\n';
2734
2784
  message += referencepath_resolveDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2738,7 +2788,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
2738
2788
  if (obj.summarize !== undefined) {
2739
2789
  const obj_summarize = obj.summarize;
2740
2790
  const path_summarize = path + '.summarize';
2741
- const referencepath_summarizeValidationError = validate$r(obj_summarize, path_summarize);
2791
+ const referencepath_summarizeValidationError = validate$s(obj_summarize, path_summarize);
2742
2792
  if (referencepath_summarizeValidationError !== null) {
2743
2793
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_summarize + '")\n';
2744
2794
  message += referencepath_summarizeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2748,13 +2798,19 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
2748
2798
  })();
2749
2799
  return v_error === undefined ? null : v_error;
2750
2800
  }
2751
- const select$D = function EinsteinPromptTemplateLatencyExecutionRepresentationSelect() {
2752
- const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$E();
2801
+ const select$E = function EinsteinPromptTemplateLatencyExecutionRepresentationSelect() {
2802
+ const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$F();
2753
2803
  return {
2754
2804
  kind: 'Fragment',
2755
- version: VERSION$m,
2805
+ version: VERSION$n,
2756
2806
  private: [],
2757
2807
  selections: [
2808
+ {
2809
+ name: 'fileProcessing',
2810
+ kind: 'Object',
2811
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
2812
+ required: false
2813
+ },
2758
2814
  {
2759
2815
  name: 'generation',
2760
2816
  kind: 'Object',
@@ -2793,7 +2849,20 @@ const select$D = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
2793
2849
  ]
2794
2850
  };
2795
2851
  };
2796
- function equals$m(existing, incoming) {
2852
+ function equals$n(existing, incoming) {
2853
+ const existing_fileProcessing = existing.fileProcessing;
2854
+ const incoming_fileProcessing = incoming.fileProcessing;
2855
+ // if at least one of these optionals is defined
2856
+ if (existing_fileProcessing !== undefined || incoming_fileProcessing !== undefined) {
2857
+ // if one of these is not defined we know the other is defined and therefore
2858
+ // not equal
2859
+ if (existing_fileProcessing === undefined || incoming_fileProcessing === undefined) {
2860
+ return false;
2861
+ }
2862
+ if (!(equals$o(existing_fileProcessing, incoming_fileProcessing))) {
2863
+ return false;
2864
+ }
2865
+ }
2797
2866
  const existing_generation = existing.generation;
2798
2867
  const incoming_generation = incoming.generation;
2799
2868
  // if at least one of these optionals is defined
@@ -2803,7 +2872,7 @@ function equals$m(existing, incoming) {
2803
2872
  if (existing_generation === undefined || incoming_generation === undefined) {
2804
2873
  return false;
2805
2874
  }
2806
- if (!(equals$n(existing_generation, incoming_generation))) {
2875
+ if (!(equals$o(existing_generation, incoming_generation))) {
2807
2876
  return false;
2808
2877
  }
2809
2878
  }
@@ -2816,13 +2885,13 @@ function equals$m(existing, incoming) {
2816
2885
  if (existing_hydration === undefined || incoming_hydration === undefined) {
2817
2886
  return false;
2818
2887
  }
2819
- if (!(equals$n(existing_hydration, incoming_hydration))) {
2888
+ if (!(equals$o(existing_hydration, incoming_hydration))) {
2820
2889
  return false;
2821
2890
  }
2822
2891
  }
2823
2892
  const existing_loadTemplate = existing.loadTemplate;
2824
2893
  const incoming_loadTemplate = incoming.loadTemplate;
2825
- if (!(equals$n(existing_loadTemplate, incoming_loadTemplate))) {
2894
+ if (!(equals$o(existing_loadTemplate, incoming_loadTemplate))) {
2826
2895
  return false;
2827
2896
  }
2828
2897
  const existing_mask = existing.mask;
@@ -2834,7 +2903,7 @@ function equals$m(existing, incoming) {
2834
2903
  if (existing_mask === undefined || incoming_mask === undefined) {
2835
2904
  return false;
2836
2905
  }
2837
- if (!(equals$n(existing_mask, incoming_mask))) {
2906
+ if (!(equals$o(existing_mask, incoming_mask))) {
2838
2907
  return false;
2839
2908
  }
2840
2909
  }
@@ -2847,7 +2916,7 @@ function equals$m(existing, incoming) {
2847
2916
  if (existing_resolveData === undefined || incoming_resolveData === undefined) {
2848
2917
  return false;
2849
2918
  }
2850
- if (!(equals$n(existing_resolveData, incoming_resolveData))) {
2919
+ if (!(equals$o(existing_resolveData, incoming_resolveData))) {
2851
2920
  return false;
2852
2921
  }
2853
2922
  }
@@ -2860,22 +2929,22 @@ function equals$m(existing, incoming) {
2860
2929
  if (existing_summarize === undefined || incoming_summarize === undefined) {
2861
2930
  return false;
2862
2931
  }
2863
- if (!(equals$n(existing_summarize, incoming_summarize))) {
2932
+ if (!(equals$o(existing_summarize, incoming_summarize))) {
2864
2933
  return false;
2865
2934
  }
2866
2935
  }
2867
2936
  return true;
2868
2937
  }
2869
2938
 
2870
- const VERSION$l = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
2871
- function validate$p(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation') {
2939
+ const VERSION$m = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
2940
+ function validate$q(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation') {
2872
2941
  const v_error = (() => {
2873
2942
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2874
2943
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2875
2944
  }
2876
2945
  const obj_execution = obj.execution;
2877
2946
  const path_execution = path + '.execution';
2878
- const referencepath_executionValidationError = validate$q(obj_execution, path_execution);
2947
+ const referencepath_executionValidationError = validate$r(obj_execution, path_execution);
2879
2948
  if (referencepath_executionValidationError !== null) {
2880
2949
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyExecutionRepresentation (at "' + path_execution + '")\n';
2881
2950
  message += referencepath_executionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2883,7 +2952,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation
2883
2952
  }
2884
2953
  const obj_latency = obj.latency;
2885
2954
  const path_latency = path + '.latency';
2886
- const referencepath_latencyValidationError = validate$t(obj_latency, path_latency);
2955
+ const referencepath_latencyValidationError = validate$u(obj_latency, path_latency);
2887
2956
  if (referencepath_latencyValidationError !== null) {
2888
2957
  let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
2889
2958
  message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2892,12 +2961,12 @@ function validate$p(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation
2892
2961
  })();
2893
2962
  return v_error === undefined ? null : v_error;
2894
2963
  }
2895
- const select$C = function EinsteinPromptTemplatePerformanceRepresentationSelect() {
2896
- const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$D();
2897
- const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$G();
2964
+ const select$D = function EinsteinPromptTemplatePerformanceRepresentationSelect() {
2965
+ const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$E();
2966
+ const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$H();
2898
2967
  return {
2899
2968
  kind: 'Fragment',
2900
- version: VERSION$l,
2969
+ version: VERSION$m,
2901
2970
  private: [],
2902
2971
  selections: [
2903
2972
  {
@@ -2913,22 +2982,22 @@ const select$C = function EinsteinPromptTemplatePerformanceRepresentationSelect(
2913
2982
  ]
2914
2983
  };
2915
2984
  };
2916
- function equals$l(existing, incoming) {
2985
+ function equals$m(existing, incoming) {
2917
2986
  const existing_execution = existing.execution;
2918
2987
  const incoming_execution = incoming.execution;
2919
- if (!(equals$m(existing_execution, incoming_execution))) {
2988
+ if (!(equals$n(existing_execution, incoming_execution))) {
2920
2989
  return false;
2921
2990
  }
2922
2991
  const existing_latency = existing.latency;
2923
2992
  const incoming_latency = incoming.latency;
2924
- if (!(equals$p(existing_latency, incoming_latency))) {
2993
+ if (!(equals$q(existing_latency, incoming_latency))) {
2925
2994
  return false;
2926
2995
  }
2927
2996
  return true;
2928
2997
  }
2929
2998
 
2930
- const VERSION$k = "7c417ce44e4bc05dfcc454e6825590e8";
2931
- function validate$o(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2999
+ const VERSION$l = "7c417ce44e4bc05dfcc454e6825590e8";
3000
+ function validate$p(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
2932
3001
  const v_error = (() => {
2933
3002
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2934
3003
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2941,10 +3010,10 @@ function validate$o(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
2941
3010
  })();
2942
3011
  return v_error === undefined ? null : v_error;
2943
3012
  }
2944
- const select$B = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
3013
+ const select$C = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
2945
3014
  return {
2946
3015
  kind: 'Fragment',
2947
- version: VERSION$k,
3016
+ version: VERSION$l,
2948
3017
  private: [],
2949
3018
  selections: [
2950
3019
  {
@@ -2954,7 +3023,7 @@ const select$B = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
2954
3023
  ]
2955
3024
  };
2956
3025
  };
2957
- function equals$k(existing, incoming) {
3026
+ function equals$l(existing, incoming) {
2958
3027
  const existing_enableModeration = existing.enableModeration;
2959
3028
  const incoming_enableModeration = incoming.enableModeration;
2960
3029
  if (!(existing_enableModeration === incoming_enableModeration)) {
@@ -2963,8 +3032,8 @@ function equals$k(existing, incoming) {
2963
3032
  return true;
2964
3033
  }
2965
3034
 
2966
- const VERSION$j = "92ad1abd0e2a60bc36941409cadda7e2";
2967
- function validate$n(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
3035
+ const VERSION$k = "92ad1abd0e2a60bc36941409cadda7e2";
3036
+ function validate$o(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
2968
3037
  const v_error = (() => {
2969
3038
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2970
3039
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2979,7 +3048,7 @@ function validate$n(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
2979
3048
  const path_moderationSettings = path + '.moderationSettings';
2980
3049
  let obj_moderationSettings_union0 = null;
2981
3050
  const obj_moderationSettings_union0_error = (() => {
2982
- const referencepath_moderationSettingsValidationError = validate$o(obj_moderationSettings, path_moderationSettings);
3051
+ const referencepath_moderationSettingsValidationError = validate$p(obj_moderationSettings, path_moderationSettings);
2983
3052
  if (referencepath_moderationSettingsValidationError !== null) {
2984
3053
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
2985
3054
  message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3015,11 +3084,11 @@ function validate$n(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
3015
3084
  })();
3016
3085
  return v_error === undefined ? null : v_error;
3017
3086
  }
3018
- const select$A = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
3019
- const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$B();
3087
+ const select$B = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
3088
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$C();
3020
3089
  return {
3021
3090
  kind: 'Fragment',
3022
- version: VERSION$j,
3091
+ version: VERSION$k,
3023
3092
  private: [],
3024
3093
  selections: [
3025
3094
  {
@@ -3041,7 +3110,7 @@ const select$A = function EinsteinPromptTemplateMaskContentRepresentationSelect(
3041
3110
  ]
3042
3111
  };
3043
3112
  };
3044
- function equals$j(existing, incoming) {
3113
+ function equals$k(existing, incoming) {
3045
3114
  const existing_content = existing.content;
3046
3115
  const incoming_content = incoming.content;
3047
3116
  if (!(existing_content === incoming_content)) {
@@ -3072,15 +3141,15 @@ function equals$j(existing, incoming) {
3072
3141
  if (!(existing_moderationSettings === incoming_moderationSettings
3073
3142
  || (existing_moderationSettings != null &&
3074
3143
  incoming_moderationSettings != null &&
3075
- equals$k(existing_moderationSettings, incoming_moderationSettings)))) {
3144
+ equals$l(existing_moderationSettings, incoming_moderationSettings)))) {
3076
3145
  return false;
3077
3146
  }
3078
3147
  }
3079
3148
  return true;
3080
3149
  }
3081
3150
 
3082
- const VERSION$i = "507a815605f8d30ae9b52b0ec513d25e";
3083
- function validate$m(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
3151
+ const VERSION$j = "507a815605f8d30ae9b52b0ec513d25e";
3152
+ function validate$n(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
3084
3153
  const v_error = (() => {
3085
3154
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3086
3155
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3110,10 +3179,10 @@ function validate$m(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
3110
3179
  })();
3111
3180
  return v_error === undefined ? null : v_error;
3112
3181
  }
3113
- const select$z = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
3182
+ const select$A = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
3114
3183
  return {
3115
3184
  kind: 'Fragment',
3116
- version: VERSION$i,
3185
+ version: VERSION$j,
3117
3186
  private: [],
3118
3187
  selections: [
3119
3188
  {
@@ -3132,7 +3201,7 @@ const select$z = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
3132
3201
  ]
3133
3202
  };
3134
3203
  };
3135
- function equals$i(existing, incoming) {
3204
+ function equals$j(existing, incoming) {
3136
3205
  const existing_originalValue = existing.originalValue;
3137
3206
  const incoming_originalValue = incoming.originalValue;
3138
3207
  if (!(existing_originalValue === incoming_originalValue)) {
@@ -3156,8 +3225,8 @@ function equals$i(existing, incoming) {
3156
3225
  return true;
3157
3226
  }
3158
3227
 
3159
- const VERSION$h = "76811380b919e1427b00791d86819029";
3160
- function validate$l(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentation') {
3228
+ const VERSION$i = "76811380b919e1427b00791d86819029";
3229
+ function validate$m(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentation') {
3161
3230
  const v_error = (() => {
3162
3231
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3163
3232
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3185,10 +3254,10 @@ function validate$l(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentat
3185
3254
  })();
3186
3255
  return v_error === undefined ? null : v_error;
3187
3256
  }
3188
- const select$y = function EinsteinPromptTemplateTokenBreakdownRepresentationSelect() {
3257
+ const select$z = function EinsteinPromptTemplateTokenBreakdownRepresentationSelect() {
3189
3258
  return {
3190
3259
  kind: 'Fragment',
3191
- version: VERSION$h,
3260
+ version: VERSION$i,
3192
3261
  private: [],
3193
3262
  selections: [
3194
3263
  {
@@ -3210,7 +3279,7 @@ const select$y = function EinsteinPromptTemplateTokenBreakdownRepresentationSele
3210
3279
  ]
3211
3280
  };
3212
3281
  };
3213
- function equals$h(existing, incoming) {
3282
+ function equals$i(existing, incoming) {
3214
3283
  const existing_occurrences = existing.occurrences;
3215
3284
  const incoming_occurrences = incoming.occurrences;
3216
3285
  if (!(existing_occurrences === incoming_occurrences)) {
@@ -3234,8 +3303,8 @@ function equals$h(existing, incoming) {
3234
3303
  return true;
3235
3304
  }
3236
3305
 
3237
- const VERSION$g = "7212a778ca53a828691ec38760108a72";
3238
- function validate$k(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresentation') {
3306
+ const VERSION$h = "7212a778ca53a828691ec38760108a72";
3307
+ function validate$l(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresentation') {
3239
3308
  const v_error = (() => {
3240
3309
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3241
3310
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3249,7 +3318,7 @@ function validate$k(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresent
3249
3318
  for (let i = 0; i < obj_breakdown.length; i++) {
3250
3319
  const obj_breakdown_item = obj_breakdown[i];
3251
3320
  const path_breakdown_item = path_breakdown + '[' + i + ']';
3252
- const referencepath_breakdown_itemValidationError = validate$l(obj_breakdown_item, path_breakdown_item);
3321
+ const referencepath_breakdown_itemValidationError = validate$m(obj_breakdown_item, path_breakdown_item);
3253
3322
  if (referencepath_breakdown_itemValidationError !== null) {
3254
3323
  let message = 'Object doesn\'t match EinsteinPromptTemplateTokenBreakdownRepresentation (at "' + path_breakdown_item + '")\n';
3255
3324
  message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3265,11 +3334,11 @@ function validate$k(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresent
3265
3334
  })();
3266
3335
  return v_error === undefined ? null : v_error;
3267
3336
  }
3268
- const select$x = function EinsteinPromptTemplatePromptTokenUsageRepresentationSelect() {
3269
- const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$y();
3337
+ const select$y = function EinsteinPromptTemplatePromptTokenUsageRepresentationSelect() {
3338
+ const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$z();
3270
3339
  return {
3271
3340
  kind: 'Fragment',
3272
- version: VERSION$g,
3341
+ version: VERSION$h,
3273
3342
  private: [],
3274
3343
  selections: [
3275
3344
  {
@@ -3286,7 +3355,7 @@ const select$x = function EinsteinPromptTemplatePromptTokenUsageRepresentationSe
3286
3355
  ]
3287
3356
  };
3288
3357
  };
3289
- function equals$g(existing, incoming) {
3358
+ function equals$h(existing, incoming) {
3290
3359
  const existing_total = existing.total;
3291
3360
  const incoming_total = incoming.total;
3292
3361
  if (!(existing_total === incoming_total)) {
@@ -3302,7 +3371,7 @@ function equals$g(existing, incoming) {
3302
3371
  return false;
3303
3372
  }
3304
3373
  const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
3305
- if (!(equals$h(existing_breakdown_item, incoming_breakdown_item))) {
3374
+ if (!(equals$i(existing_breakdown_item, incoming_breakdown_item))) {
3306
3375
  return false;
3307
3376
  }
3308
3377
  });
@@ -3313,12 +3382,26 @@ function equals$g(existing, incoming) {
3313
3382
  return true;
3314
3383
  }
3315
3384
 
3316
- const VERSION$f = "20ed3f8bf15ce2c8910245591e27fae5";
3317
- function validate$j(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
3385
+ const VERSION$g = "f27af32e86a9a76c9625ede41c99c08e";
3386
+ function validate$k(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
3318
3387
  const v_error = (() => {
3319
3388
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3320
3389
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3321
3390
  }
3391
+ if (obj.cacheReadTokens !== undefined) {
3392
+ const obj_cacheReadTokens = obj.cacheReadTokens;
3393
+ const path_cacheReadTokens = path + '.cacheReadTokens';
3394
+ if (typeof obj_cacheReadTokens !== 'number' || (typeof obj_cacheReadTokens === 'number' && Math.floor(obj_cacheReadTokens) !== obj_cacheReadTokens)) {
3395
+ return new TypeError('Expected "integer" but received "' + typeof obj_cacheReadTokens + '" (at "' + path_cacheReadTokens + '")');
3396
+ }
3397
+ }
3398
+ if (obj.cacheWriteTokens !== undefined) {
3399
+ const obj_cacheWriteTokens = obj.cacheWriteTokens;
3400
+ const path_cacheWriteTokens = path + '.cacheWriteTokens';
3401
+ if (typeof obj_cacheWriteTokens !== 'number' || (typeof obj_cacheWriteTokens === 'number' && Math.floor(obj_cacheWriteTokens) !== obj_cacheWriteTokens)) {
3402
+ return new TypeError('Expected "integer" but received "' + typeof obj_cacheWriteTokens + '" (at "' + path_cacheWriteTokens + '")');
3403
+ }
3404
+ }
3322
3405
  const obj_completion = obj.completion;
3323
3406
  const path_completion = path + '.completion';
3324
3407
  if (typeof obj_completion !== 'number' || (typeof obj_completion === 'number' && Math.floor(obj_completion) !== obj_completion)) {
@@ -3326,7 +3409,7 @@ function validate$j(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation'
3326
3409
  }
3327
3410
  const obj_prompt = obj.prompt;
3328
3411
  const path_prompt = path + '.prompt';
3329
- const referencepath_promptValidationError = validate$k(obj_prompt, path_prompt);
3412
+ const referencepath_promptValidationError = validate$l(obj_prompt, path_prompt);
3330
3413
  if (referencepath_promptValidationError !== null) {
3331
3414
  let message = 'Object doesn\'t match EinsteinPromptTemplatePromptTokenUsageRepresentation (at "' + path_prompt + '")\n';
3332
3415
  message += referencepath_promptValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3340,13 +3423,23 @@ function validate$j(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation'
3340
3423
  })();
3341
3424
  return v_error === undefined ? null : v_error;
3342
3425
  }
3343
- const select$w = function EinsteinPromptTemplateTokenUsageRepresentationSelect() {
3344
- const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$x();
3426
+ const select$x = function EinsteinPromptTemplateTokenUsageRepresentationSelect() {
3427
+ const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$y();
3345
3428
  return {
3346
3429
  kind: 'Fragment',
3347
- version: VERSION$f,
3430
+ version: VERSION$g,
3348
3431
  private: [],
3349
3432
  selections: [
3433
+ {
3434
+ name: 'cacheReadTokens',
3435
+ kind: 'Scalar',
3436
+ required: false
3437
+ },
3438
+ {
3439
+ name: 'cacheWriteTokens',
3440
+ kind: 'Scalar',
3441
+ required: false
3442
+ },
3350
3443
  {
3351
3444
  name: 'completion',
3352
3445
  kind: 'Scalar'
@@ -3363,7 +3456,33 @@ const select$w = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
3363
3456
  ]
3364
3457
  };
3365
3458
  };
3366
- function equals$f(existing, incoming) {
3459
+ function equals$g(existing, incoming) {
3460
+ const existing_cacheReadTokens = existing.cacheReadTokens;
3461
+ const incoming_cacheReadTokens = incoming.cacheReadTokens;
3462
+ // if at least one of these optionals is defined
3463
+ if (existing_cacheReadTokens !== undefined || incoming_cacheReadTokens !== undefined) {
3464
+ // if one of these is not defined we know the other is defined and therefore
3465
+ // not equal
3466
+ if (existing_cacheReadTokens === undefined || incoming_cacheReadTokens === undefined) {
3467
+ return false;
3468
+ }
3469
+ if (!(existing_cacheReadTokens === incoming_cacheReadTokens)) {
3470
+ return false;
3471
+ }
3472
+ }
3473
+ const existing_cacheWriteTokens = existing.cacheWriteTokens;
3474
+ const incoming_cacheWriteTokens = incoming.cacheWriteTokens;
3475
+ // if at least one of these optionals is defined
3476
+ if (existing_cacheWriteTokens !== undefined || incoming_cacheWriteTokens !== undefined) {
3477
+ // if one of these is not defined we know the other is defined and therefore
3478
+ // not equal
3479
+ if (existing_cacheWriteTokens === undefined || incoming_cacheWriteTokens === undefined) {
3480
+ return false;
3481
+ }
3482
+ if (!(existing_cacheWriteTokens === incoming_cacheWriteTokens)) {
3483
+ return false;
3484
+ }
3485
+ }
3367
3486
  const existing_completion = existing.completion;
3368
3487
  const incoming_completion = incoming.completion;
3369
3488
  if (!(existing_completion === incoming_completion)) {
@@ -3376,15 +3495,15 @@ function equals$f(existing, incoming) {
3376
3495
  }
3377
3496
  const existing_prompt = existing.prompt;
3378
3497
  const incoming_prompt = incoming.prompt;
3379
- if (!(equals$g(existing_prompt, incoming_prompt))) {
3498
+ if (!(equals$h(existing_prompt, incoming_prompt))) {
3380
3499
  return false;
3381
3500
  }
3382
3501
  return true;
3383
3502
  }
3384
3503
 
3385
3504
  const TTL$a = 100;
3386
- const VERSION$e = "c298962a9a914e248606ab1ac01d1d08";
3387
- function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
3505
+ const VERSION$f = "c298962a9a914e248606ab1ac01d1d08";
3506
+ function validate$j(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
3388
3507
  const v_error = (() => {
3389
3508
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3390
3509
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3392,7 +3511,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3392
3511
  if (obj.citations !== undefined) {
3393
3512
  const obj_citations = obj.citations;
3394
3513
  const path_citations = path + '.citations';
3395
- const referencepath_citationsValidationError = validate$x(obj_citations, path_citations);
3514
+ const referencepath_citationsValidationError = validate$y(obj_citations, path_citations);
3396
3515
  if (referencepath_citationsValidationError !== null) {
3397
3516
  let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
3398
3517
  message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3408,7 +3527,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3408
3527
  for (let i = 0; i < obj_fileData.length; i++) {
3409
3528
  const obj_fileData_item = obj_fileData[i];
3410
3529
  const path_fileData_item = path_fileData + '[' + i + ']';
3411
- const referencepath_fileData_itemValidationError = validate$v(obj_fileData_item, path_fileData_item);
3530
+ const referencepath_fileData_itemValidationError = validate$w(obj_fileData_item, path_fileData_item);
3412
3531
  if (referencepath_fileData_itemValidationError !== null) {
3413
3532
  let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
3414
3533
  message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3425,7 +3544,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3425
3544
  for (let i = 0; i < obj_generationErrors.length; i++) {
3426
3545
  const obj_generationErrors_item = obj_generationErrors[i];
3427
3546
  const path_generationErrors_item = path_generationErrors + '[' + i + ']';
3428
- const referencepath_generationErrors_itemValidationError = validate$u(obj_generationErrors_item, path_generationErrors_item);
3547
+ const referencepath_generationErrors_itemValidationError = validate$v(obj_generationErrors_item, path_generationErrors_item);
3429
3548
  if (referencepath_generationErrors_itemValidationError !== null) {
3430
3549
  let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
3431
3550
  message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3441,7 +3560,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3441
3560
  for (let i = 0; i < obj_generations.length; i++) {
3442
3561
  const obj_generations_item = obj_generations[i];
3443
3562
  const path_generations_item = path_generations + '[' + i + ']';
3444
- const referencepath_generations_itemValidationError = validate$D(obj_generations_item, path_generations_item);
3563
+ const referencepath_generations_itemValidationError = validate$E(obj_generations_item, path_generations_item);
3445
3564
  if (referencepath_generations_itemValidationError !== null) {
3446
3565
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
3447
3566
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3468,7 +3587,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3468
3587
  const path_parameters = path + '.parameters';
3469
3588
  let obj_parameters_union0 = null;
3470
3589
  const obj_parameters_union0_error = (() => {
3471
- const referencepath_parametersValidationError = validate$C(obj_parameters, path_parameters);
3590
+ const referencepath_parametersValidationError = validate$D(obj_parameters, path_parameters);
3472
3591
  if (referencepath_parametersValidationError !== null) {
3473
3592
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
3474
3593
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3496,7 +3615,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3496
3615
  if (obj.performance !== undefined) {
3497
3616
  const obj_performance = obj.performance;
3498
3617
  const path_performance = path + '.performance';
3499
- const referencepath_performanceValidationError = validate$p(obj_performance, path_performance);
3618
+ const referencepath_performanceValidationError = validate$q(obj_performance, path_performance);
3500
3619
  if (referencepath_performanceValidationError !== null) {
3501
3620
  let message = 'Object doesn\'t match EinsteinPromptTemplatePerformanceRepresentation (at "' + path_performance + '")\n';
3502
3621
  message += referencepath_performanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3574,7 +3693,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3574
3693
  for (let i = 0; i < obj_requestMessages.length; i++) {
3575
3694
  const obj_requestMessages_item = obj_requestMessages[i];
3576
3695
  const path_requestMessages_item = path_requestMessages + '[' + i + ']';
3577
- const referencepath_requestMessages_itemValidationError = validate$n(obj_requestMessages_item, path_requestMessages_item);
3696
+ const referencepath_requestMessages_itemValidationError = validate$o(obj_requestMessages_item, path_requestMessages_item);
3578
3697
  if (referencepath_requestMessages_itemValidationError !== null) {
3579
3698
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
3580
3699
  message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3591,7 +3710,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3591
3710
  for (let i = 0; i < obj_responseMessages.length; i++) {
3592
3711
  const obj_responseMessages_item = obj_responseMessages[i];
3593
3712
  const path_responseMessages_item = path_responseMessages + '[' + i + ']';
3594
- const referencepath_responseMessages_itemValidationError = validate$n(obj_responseMessages_item, path_responseMessages_item);
3713
+ const referencepath_responseMessages_itemValidationError = validate$o(obj_responseMessages_item, path_responseMessages_item);
3595
3714
  if (referencepath_responseMessages_itemValidationError !== null) {
3596
3715
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
3597
3716
  message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3608,7 +3727,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3608
3727
  for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
3609
3728
  const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
3610
3729
  const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
3611
- const referencepath_slotsMaskingInformation_itemValidationError = validate$m(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
3730
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$n(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
3612
3731
  if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
3613
3732
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
3614
3733
  message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3619,7 +3738,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
3619
3738
  if (obj.tokenUsage !== undefined) {
3620
3739
  const obj_tokenUsage = obj.tokenUsage;
3621
3740
  const path_tokenUsage = path + '.tokenUsage';
3622
- const referencepath_tokenUsageValidationError = validate$j(obj_tokenUsage, path_tokenUsage);
3741
+ const referencepath_tokenUsageValidationError = validate$k(obj_tokenUsage, path_tokenUsage);
3623
3742
  if (referencepath_tokenUsageValidationError !== null) {
3624
3743
  let message = 'Object doesn\'t match EinsteinPromptTemplateTokenUsageRepresentation (at "' + path_tokenUsage + '")\n';
3625
3744
  message += referencepath_tokenUsageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3642,19 +3761,19 @@ function keyBuilderFromType$2(luvio, object) {
3642
3761
  function normalize$a(input, existing, path, luvio, store, timestamp) {
3643
3762
  return input;
3644
3763
  }
3645
- const select$v = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
3646
- const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$K();
3647
- const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$I();
3648
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$H();
3649
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$P();
3650
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
3651
- const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$C();
3652
- const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$A();
3653
- const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$z();
3654
- const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$w();
3764
+ const select$w = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
3765
+ const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$L();
3766
+ const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$J();
3767
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$I();
3768
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$Q();
3769
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
3770
+ const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$D();
3771
+ const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$B();
3772
+ const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$A();
3773
+ const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$x();
3655
3774
  return {
3656
3775
  kind: 'Fragment',
3657
- version: VERSION$e,
3776
+ version: VERSION$f,
3658
3777
  private: [],
3659
3778
  selections: [
3660
3779
  {
@@ -3746,7 +3865,7 @@ const select$v = function EinsteinPromptTemplateGenerationsRepresentationSelect(
3746
3865
  ]
3747
3866
  };
3748
3867
  };
3749
- function equals$e(existing, incoming) {
3868
+ function equals$f(existing, incoming) {
3750
3869
  const existing_promptTemplateDevName = existing.promptTemplateDevName;
3751
3870
  const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
3752
3871
  if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
@@ -3766,7 +3885,7 @@ function equals$e(existing, incoming) {
3766
3885
  if (existing_citations === undefined || incoming_citations === undefined) {
3767
3886
  return false;
3768
3887
  }
3769
- if (!(equals$t(existing_citations, incoming_citations))) {
3888
+ if (!(equals$u(existing_citations, incoming_citations))) {
3770
3889
  return false;
3771
3890
  }
3772
3891
  }
@@ -3780,7 +3899,7 @@ function equals$e(existing, incoming) {
3780
3899
  return false;
3781
3900
  }
3782
3901
  const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
3783
- if (!(equals$r(existing_fileData_item, incoming_fileData_item))) {
3902
+ if (!(equals$s(existing_fileData_item, incoming_fileData_item))) {
3784
3903
  return false;
3785
3904
  }
3786
3905
  });
@@ -3798,7 +3917,7 @@ function equals$e(existing, incoming) {
3798
3917
  return false;
3799
3918
  }
3800
3919
  const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
3801
- if (!(equals$q(existing_generationErrors_item, incoming_generationErrors_item))) {
3920
+ if (!(equals$r(existing_generationErrors_item, incoming_generationErrors_item))) {
3802
3921
  return false;
3803
3922
  }
3804
3923
  });
@@ -3809,7 +3928,7 @@ function equals$e(existing, incoming) {
3809
3928
  const existing_generations = existing.generations;
3810
3929
  const incoming_generations = incoming.generations;
3811
3930
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
3812
- if (!(equals$x(existing_generations_item, incoming_generations_item))) {
3931
+ if (!(equals$y(existing_generations_item, incoming_generations_item))) {
3813
3932
  return false;
3814
3933
  }
3815
3934
  });
@@ -3839,7 +3958,7 @@ function equals$e(existing, incoming) {
3839
3958
  if (!(existing_parameters === incoming_parameters
3840
3959
  || (existing_parameters != null &&
3841
3960
  incoming_parameters != null &&
3842
- equals$w(existing_parameters, incoming_parameters)))) {
3961
+ equals$x(existing_parameters, incoming_parameters)))) {
3843
3962
  return false;
3844
3963
  }
3845
3964
  const existing_performance = existing.performance;
@@ -3851,7 +3970,7 @@ function equals$e(existing, incoming) {
3851
3970
  if (existing_performance === undefined || incoming_performance === undefined) {
3852
3971
  return false;
3853
3972
  }
3854
- if (!(equals$l(existing_performance, incoming_performance))) {
3973
+ if (!(equals$m(existing_performance, incoming_performance))) {
3855
3974
  return false;
3856
3975
  }
3857
3976
  }
@@ -3875,7 +3994,7 @@ function equals$e(existing, incoming) {
3875
3994
  return false;
3876
3995
  }
3877
3996
  const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
3878
- if (!(equals$j(existing_requestMessages_item, incoming_requestMessages_item))) {
3997
+ if (!(equals$k(existing_requestMessages_item, incoming_requestMessages_item))) {
3879
3998
  return false;
3880
3999
  }
3881
4000
  });
@@ -3893,7 +4012,7 @@ function equals$e(existing, incoming) {
3893
4012
  return false;
3894
4013
  }
3895
4014
  const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
3896
- if (!(equals$j(existing_responseMessages_item, incoming_responseMessages_item))) {
4015
+ if (!(equals$k(existing_responseMessages_item, incoming_responseMessages_item))) {
3897
4016
  return false;
3898
4017
  }
3899
4018
  });
@@ -3911,7 +4030,7 @@ function equals$e(existing, incoming) {
3911
4030
  return false;
3912
4031
  }
3913
4032
  const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
3914
- if (!(equals$i(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
4033
+ if (!(equals$j(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
3915
4034
  return false;
3916
4035
  }
3917
4036
  });
@@ -3928,7 +4047,7 @@ function equals$e(existing, incoming) {
3928
4047
  if (existing_tokenUsage === undefined || incoming_tokenUsage === undefined) {
3929
4048
  return false;
3930
4049
  }
3931
- if (!(equals$f(existing_tokenUsage, incoming_tokenUsage))) {
4050
+ if (!(equals$g(existing_tokenUsage, incoming_tokenUsage))) {
3932
4051
  return false;
3933
4052
  }
3934
4053
  }
@@ -3936,14 +4055,14 @@ function equals$e(existing, incoming) {
3936
4055
  }
3937
4056
  const ingest$a = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
3938
4057
  if (process.env.NODE_ENV !== 'production') {
3939
- const validateError = validate$i(input);
4058
+ const validateError = validate$j(input);
3940
4059
  if (validateError !== null) {
3941
4060
  throw validateError;
3942
4061
  }
3943
4062
  }
3944
4063
  const key = keyBuilderFromType$2(luvio, input);
3945
4064
  const ttlToUse = TTL$a;
3946
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$e, RepresentationType$a, equals$e);
4065
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$f, RepresentationType$a, equals$f);
3947
4066
  return createLink(key);
3948
4067
  };
3949
4068
  function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
@@ -3956,8 +4075,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
3956
4075
  });
3957
4076
  }
3958
4077
 
3959
- function select$u(luvio, params) {
3960
- return select$v();
4078
+ function select$v(luvio, params) {
4079
+ return select$w();
3961
4080
  }
3962
4081
  function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
3963
4082
  getTypeCacheKeys$a(storeKeyMap, luvio, response);
@@ -3968,7 +4087,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
3968
4087
  luvio.storeIngest(key, ingest$a, body);
3969
4088
  const snapshot = luvio.storeLookup({
3970
4089
  recordId: key,
3971
- node: select$u(),
4090
+ node: select$v(),
3972
4091
  variables: {},
3973
4092
  });
3974
4093
  if (process.env.NODE_ENV !== 'production') {
@@ -4005,7 +4124,7 @@ function typeCheckConfig$g(untrustedConfig) {
4005
4124
  const config = {};
4006
4125
  typeCheckConfig$k(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
4007
4126
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
4008
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$z(untrustedConfig_promptTemplateGenerationsInput);
4127
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$A(untrustedConfig_promptTemplateGenerationsInput);
4009
4128
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
4010
4129
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
4011
4130
  }
@@ -4054,8 +4173,8 @@ const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
4054
4173
  };
4055
4174
 
4056
4175
  const TTL$9 = 100;
4057
- const VERSION$d = "a90a51578e2fdd7a9741d310bed22b1d";
4058
- function validate$h(obj, path = 'EinsteinPromptTemplateRepresentation') {
4176
+ const VERSION$e = "a90a51578e2fdd7a9741d310bed22b1d";
4177
+ function validate$i(obj, path = 'EinsteinPromptTemplateRepresentation') {
4059
4178
  const v_error = (() => {
4060
4179
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4061
4180
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4063,7 +4182,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateRepresentation') {
4063
4182
  if (obj.additionalData !== undefined) {
4064
4183
  const obj_additionalData = obj.additionalData;
4065
4184
  const path_additionalData = path + '.additionalData';
4066
- const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
4185
+ const referencepath_additionalDataValidationError = validate$D(obj_additionalData, path_additionalData);
4067
4186
  if (referencepath_additionalDataValidationError !== null) {
4068
4187
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
4069
4188
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4144,11 +4263,11 @@ function keyBuilderFromType$1(luvio, object) {
4144
4263
  function normalize$9(input, existing, path, luvio, store, timestamp) {
4145
4264
  return input;
4146
4265
  }
4147
- const select$t = function EinsteinPromptTemplateRepresentationSelect() {
4148
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
4266
+ const select$u = function EinsteinPromptTemplateRepresentationSelect() {
4267
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
4149
4268
  return {
4150
4269
  kind: 'Fragment',
4151
- version: VERSION$d,
4270
+ version: VERSION$e,
4152
4271
  private: [],
4153
4272
  selections: [
4154
4273
  {
@@ -4196,7 +4315,7 @@ const select$t = function EinsteinPromptTemplateRepresentationSelect() {
4196
4315
  ]
4197
4316
  };
4198
4317
  };
4199
- function equals$d(existing, incoming) {
4318
+ function equals$e(existing, incoming) {
4200
4319
  const existing_hasWarning = existing.hasWarning;
4201
4320
  const incoming_hasWarning = incoming.hasWarning;
4202
4321
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -4252,7 +4371,7 @@ function equals$d(existing, incoming) {
4252
4371
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
4253
4372
  return false;
4254
4373
  }
4255
- if (!(equals$w(existing_additionalData, incoming_additionalData))) {
4374
+ if (!(equals$x(existing_additionalData, incoming_additionalData))) {
4256
4375
  return false;
4257
4376
  }
4258
4377
  }
@@ -4280,14 +4399,14 @@ function equals$d(existing, incoming) {
4280
4399
  }
4281
4400
  const ingest$9 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
4282
4401
  if (process.env.NODE_ENV !== 'production') {
4283
- const validateError = validate$h(input);
4402
+ const validateError = validate$i(input);
4284
4403
  if (validateError !== null) {
4285
4404
  throw validateError;
4286
4405
  }
4287
4406
  }
4288
4407
  const key = keyBuilderFromType$1(luvio, input);
4289
4408
  const ttlToUse = TTL$9;
4290
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$d, RepresentationType$9, equals$d);
4409
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$e, RepresentationType$9, equals$e);
4291
4410
  return createLink(key);
4292
4411
  };
4293
4412
  function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
@@ -4300,8 +4419,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
4300
4419
  });
4301
4420
  }
4302
4421
 
4303
- function select$s(luvio, params) {
4304
- return select$t();
4422
+ function select$t(luvio, params) {
4423
+ return select$u();
4305
4424
  }
4306
4425
  function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
4307
4426
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
@@ -4312,7 +4431,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
4312
4431
  luvio.storeIngest(key, ingest$9, body);
4313
4432
  const snapshot = luvio.storeLookup({
4314
4433
  recordId: key,
4315
- node: select$s(),
4434
+ node: select$t(),
4316
4435
  variables: {},
4317
4436
  });
4318
4437
  if (process.env.NODE_ENV !== 'production') {
@@ -4423,8 +4542,8 @@ const createPromptTemplateAdapterFactory = (luvio) => {
4423
4542
  };
4424
4543
  };
4425
4544
 
4426
- function select$r(luvio, params) {
4427
- return select$t();
4545
+ function select$s(luvio, params) {
4546
+ return select$u();
4428
4547
  }
4429
4548
  function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
4430
4549
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
@@ -4435,7 +4554,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
4435
4554
  luvio.storeIngest(key, ingest$9, body);
4436
4555
  const snapshot = luvio.storeLookup({
4437
4556
  recordId: key,
4438
- node: select$r(),
4557
+ node: select$s(),
4439
4558
  variables: {},
4440
4559
  });
4441
4560
  if (process.env.NODE_ENV !== 'production') {
@@ -4547,7 +4666,7 @@ const createPromptTemplateVersionAdapterFactory = (luvio) => {
4547
4666
  };
4548
4667
  };
4549
4668
 
4550
- function validate$g(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
4669
+ function validate$h(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
4551
4670
  const v_error = (() => {
4552
4671
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4553
4672
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4573,7 +4692,7 @@ function validate$g(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
4573
4692
  return v_error === undefined ? null : v_error;
4574
4693
  }
4575
4694
 
4576
- function validate$f(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
4695
+ function validate$g(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
4577
4696
  const v_error = (() => {
4578
4697
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4579
4698
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4603,8 +4722,8 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
4603
4722
  }
4604
4723
 
4605
4724
  const TTL$8 = 300;
4606
- const VERSION$c = "fa3851cb23dffdbba0de38938eecbcaa";
4607
- function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
4725
+ const VERSION$d = "fa3851cb23dffdbba0de38938eecbcaa";
4726
+ function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
4608
4727
  const v_error = (() => {
4609
4728
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4610
4729
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4633,7 +4752,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
4633
4752
  if (obj.defaultOutputParam !== undefined) {
4634
4753
  const obj_defaultOutputParam = obj.defaultOutputParam;
4635
4754
  const path_defaultOutputParam = path + '.defaultOutputParam';
4636
- const referencepath_defaultOutputParamValidationError = validate$g(obj_defaultOutputParam, path_defaultOutputParam);
4755
+ const referencepath_defaultOutputParamValidationError = validate$h(obj_defaultOutputParam, path_defaultOutputParam);
4637
4756
  if (referencepath_defaultOutputParamValidationError !== null) {
4638
4757
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
4639
4758
  message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4687,7 +4806,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
4687
4806
  for (let i = 0; i < obj_inputParams.length; i++) {
4688
4807
  const obj_inputParams_item = obj_inputParams[i];
4689
4808
  const path_inputParams_item = path_inputParams + '[' + i + ']';
4690
- const referencepath_inputParams_itemValidationError = validate$f(obj_inputParams_item, path_inputParams_item);
4809
+ const referencepath_inputParams_itemValidationError = validate$g(obj_inputParams_item, path_inputParams_item);
4691
4810
  if (referencepath_inputParams_itemValidationError !== null) {
4692
4811
  let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
4693
4812
  message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4760,7 +4879,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
4760
4879
  for (let i = 0; i < obj_outputParams.length; i++) {
4761
4880
  const obj_outputParams_item = obj_outputParams[i];
4762
4881
  const path_outputParams_item = path_outputParams + '[' + i + ']';
4763
- const referencepath_outputParams_itemValidationError = validate$g(obj_outputParams_item, path_outputParams_item);
4882
+ const referencepath_outputParams_itemValidationError = validate$h(obj_outputParams_item, path_outputParams_item);
4764
4883
  if (referencepath_outputParams_itemValidationError !== null) {
4765
4884
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
4766
4885
  message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4836,15 +4955,15 @@ const RepresentationType$8 = 'PromptTemplateDataProviderInstanceConfigRepresenta
4836
4955
  function normalize$8(input, existing, path, luvio, store, timestamp) {
4837
4956
  return input;
4838
4957
  }
4839
- const select$q = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
4958
+ const select$r = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
4840
4959
  return {
4841
4960
  kind: 'Fragment',
4842
- version: VERSION$c,
4961
+ version: VERSION$d,
4843
4962
  private: [],
4844
4963
  opaque: true
4845
4964
  };
4846
4965
  };
4847
- function equals$c(existing, incoming) {
4966
+ function equals$d(existing, incoming) {
4848
4967
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4849
4968
  return false;
4850
4969
  }
@@ -4852,14 +4971,14 @@ function equals$c(existing, incoming) {
4852
4971
  }
4853
4972
  const ingest$8 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
4854
4973
  if (process.env.NODE_ENV !== 'production') {
4855
- const validateError = validate$e(input);
4974
+ const validateError = validate$f(input);
4856
4975
  if (validateError !== null) {
4857
4976
  throw validateError;
4858
4977
  }
4859
4978
  }
4860
4979
  const key = path.fullPath;
4861
4980
  const ttlToUse = TTL$8;
4862
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$c, RepresentationType$8, equals$c);
4981
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$d, RepresentationType$8, equals$d);
4863
4982
  return createLink(key);
4864
4983
  };
4865
4984
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -4872,8 +4991,8 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
4872
4991
  });
4873
4992
  }
4874
4993
 
4875
- function select$p(luvio, params) {
4876
- return select$q();
4994
+ function select$q(luvio, params) {
4995
+ return select$r();
4877
4996
  }
4878
4997
  function keyBuilder$m(luvio, params) {
4879
4998
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
@@ -4887,7 +5006,7 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
4887
5006
  luvio.storeIngest(key, ingest$8, body);
4888
5007
  const snapshot = luvio.storeLookup({
4889
5008
  recordId: key,
4890
- node: select$p(),
5009
+ node: select$q(),
4891
5010
  variables: {},
4892
5011
  }, snapshotRefresh);
4893
5012
  if (process.env.NODE_ENV !== 'production') {
@@ -4904,7 +5023,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
4904
5023
  const storeMetadataParams = {
4905
5024
  ttl: TTL$8,
4906
5025
  namespace: keyPrefix,
4907
- version: VERSION$c,
5026
+ version: VERSION$d,
4908
5027
  representationName: RepresentationType$8
4909
5028
  };
4910
5029
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4971,7 +5090,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
4971
5090
  }
4972
5091
  function adapterFragment$a(luvio, config) {
4973
5092
  createResourceParams$d(config);
4974
- return select$p();
5093
+ return select$q();
4975
5094
  }
4976
5095
  function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
4977
5096
  const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
@@ -5027,7 +5146,7 @@ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function Einstein
5027
5146
  buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
5028
5147
  };
5029
5148
 
5030
- function validate$d(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
5149
+ function validate$e(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
5031
5150
  const v_error = (() => {
5032
5151
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5033
5152
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5078,8 +5197,8 @@ function validate$d(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentat
5078
5197
  }
5079
5198
 
5080
5199
  const TTL$7 = 300;
5081
- const VERSION$b = "212332dac1decc071b476742df3440fb";
5082
- function validate$c(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
5200
+ const VERSION$c = "212332dac1decc071b476742df3440fb";
5201
+ function validate$d(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
5083
5202
  const v_error = (() => {
5084
5203
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5085
5204
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5092,7 +5211,7 @@ function validate$c(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
5092
5211
  for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
5093
5212
  const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
5094
5213
  const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
5095
- const referencepath_dataProviderTypeConfigs_itemValidationError = validate$d(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
5214
+ const referencepath_dataProviderTypeConfigs_itemValidationError = validate$e(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
5096
5215
  if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
5097
5216
  let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
5098
5217
  message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5106,15 +5225,15 @@ const RepresentationType$7 = 'PromptTemplateDataProviderTypeConfigCollectionRepr
5106
5225
  function normalize$7(input, existing, path, luvio, store, timestamp) {
5107
5226
  return input;
5108
5227
  }
5109
- const select$o = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
5228
+ const select$p = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
5110
5229
  return {
5111
5230
  kind: 'Fragment',
5112
- version: VERSION$b,
5231
+ version: VERSION$c,
5113
5232
  private: [],
5114
5233
  opaque: true
5115
5234
  };
5116
5235
  };
5117
- function equals$b(existing, incoming) {
5236
+ function equals$c(existing, incoming) {
5118
5237
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
5119
5238
  return false;
5120
5239
  }
@@ -5122,14 +5241,14 @@ function equals$b(existing, incoming) {
5122
5241
  }
5123
5242
  const ingest$7 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5124
5243
  if (process.env.NODE_ENV !== 'production') {
5125
- const validateError = validate$c(input);
5244
+ const validateError = validate$d(input);
5126
5245
  if (validateError !== null) {
5127
5246
  throw validateError;
5128
5247
  }
5129
5248
  }
5130
5249
  const key = path.fullPath;
5131
5250
  const ttlToUse = TTL$7;
5132
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$b, RepresentationType$7, equals$b);
5251
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$c, RepresentationType$7, equals$c);
5133
5252
  return createLink(key);
5134
5253
  };
5135
5254
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -5142,8 +5261,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
5142
5261
  });
5143
5262
  }
5144
5263
 
5145
- function select$n(luvio, params) {
5146
- return select$o();
5264
+ function select$o(luvio, params) {
5265
+ return select$p();
5147
5266
  }
5148
5267
  function keyBuilder$k(luvio, params) {
5149
5268
  return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
@@ -5157,7 +5276,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
5157
5276
  luvio.storeIngest(key, ingest$7, body);
5158
5277
  const snapshot = luvio.storeLookup({
5159
5278
  recordId: key,
5160
- node: select$n(),
5279
+ node: select$o(),
5161
5280
  variables: {},
5162
5281
  }, snapshotRefresh);
5163
5282
  if (process.env.NODE_ENV !== 'production') {
@@ -5174,7 +5293,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
5174
5293
  const storeMetadataParams = {
5175
5294
  ttl: TTL$7,
5176
5295
  namespace: keyPrefix,
5177
- version: VERSION$b,
5296
+ version: VERSION$c,
5178
5297
  representationName: RepresentationType$7
5179
5298
  };
5180
5299
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -5224,7 +5343,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
5224
5343
  }
5225
5344
  function adapterFragment$9(luvio, config) {
5226
5345
  createResourceParams$c(config);
5227
- return select$n();
5346
+ return select$o();
5228
5347
  }
5229
5348
  function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
5230
5349
  const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
@@ -5281,8 +5400,8 @@ const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM
5281
5400
  };
5282
5401
 
5283
5402
  const TTL$6 = 300;
5284
- const VERSION$a = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
5285
- function validate$b(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
5403
+ const VERSION$b = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
5404
+ function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
5286
5405
  const v_error = (() => {
5287
5406
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5288
5407
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5295,7 +5414,7 @@ function validate$b(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
5295
5414
  for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
5296
5415
  const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
5297
5416
  const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
5298
- const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$e(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
5417
+ const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$f(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
5299
5418
  if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
5300
5419
  let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
5301
5420
  message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5309,15 +5428,15 @@ const RepresentationType$6 = 'PromptTemplateDataProviderInstanceConfigCollection
5309
5428
  function normalize$6(input, existing, path, luvio, store, timestamp) {
5310
5429
  return input;
5311
5430
  }
5312
- const select$m = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
5431
+ const select$n = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
5313
5432
  return {
5314
5433
  kind: 'Fragment',
5315
- version: VERSION$a,
5434
+ version: VERSION$b,
5316
5435
  private: [],
5317
5436
  opaque: true
5318
5437
  };
5319
5438
  };
5320
- function equals$a(existing, incoming) {
5439
+ function equals$b(existing, incoming) {
5321
5440
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
5322
5441
  return false;
5323
5442
  }
@@ -5325,14 +5444,14 @@ function equals$a(existing, incoming) {
5325
5444
  }
5326
5445
  const ingest$6 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5327
5446
  if (process.env.NODE_ENV !== 'production') {
5328
- const validateError = validate$b(input);
5447
+ const validateError = validate$c(input);
5329
5448
  if (validateError !== null) {
5330
5449
  throw validateError;
5331
5450
  }
5332
5451
  }
5333
5452
  const key = path.fullPath;
5334
5453
  const ttlToUse = TTL$6;
5335
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$a, RepresentationType$6, equals$a);
5454
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$b, RepresentationType$6, equals$b);
5336
5455
  return createLink(key);
5337
5456
  };
5338
5457
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -5345,8 +5464,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
5345
5464
  });
5346
5465
  }
5347
5466
 
5348
- function select$l(luvio, params) {
5349
- return select$m();
5467
+ function select$m(luvio, params) {
5468
+ return select$n();
5350
5469
  }
5351
5470
  function keyBuilder$i(luvio, params) {
5352
5471
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
@@ -5360,7 +5479,7 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
5360
5479
  luvio.storeIngest(key, ingest$6, body);
5361
5480
  const snapshot = luvio.storeLookup({
5362
5481
  recordId: key,
5363
- node: select$l(),
5482
+ node: select$m(),
5364
5483
  variables: {},
5365
5484
  }, snapshotRefresh);
5366
5485
  if (process.env.NODE_ENV !== 'production') {
@@ -5377,7 +5496,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
5377
5496
  const storeMetadataParams = {
5378
5497
  ttl: TTL$6,
5379
5498
  namespace: keyPrefix,
5380
- version: VERSION$a,
5499
+ version: VERSION$b,
5381
5500
  representationName: RepresentationType$6
5382
5501
  };
5383
5502
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -5429,7 +5548,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
5429
5548
  }
5430
5549
  function adapterFragment$8(luvio, config) {
5431
5550
  createResourceParams$b(config);
5432
- return select$l();
5551
+ return select$m();
5433
5552
  }
5434
5553
  function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
5435
5554
  const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
@@ -5486,8 +5605,8 @@ const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataP
5486
5605
  };
5487
5606
 
5488
5607
  const TTL$5 = 100;
5489
- const VERSION$9 = "fb53643f64759f6cff6a161f34c670fb";
5490
- function validate$a(obj, path = 'EinsteinPromptTemplateReferencesRepresentation') {
5608
+ const VERSION$a = "fb53643f64759f6cff6a161f34c670fb";
5609
+ function validate$b(obj, path = 'EinsteinPromptTemplateReferencesRepresentation') {
5491
5610
  const v_error = (() => {
5492
5611
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5493
5612
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5495,7 +5614,7 @@ function validate$a(obj, path = 'EinsteinPromptTemplateReferencesRepresentation'
5495
5614
  if (obj.additionalData !== undefined) {
5496
5615
  const obj_additionalData = obj.additionalData;
5497
5616
  const path_additionalData = path + '.additionalData';
5498
- const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
5617
+ const referencepath_additionalDataValidationError = validate$D(obj_additionalData, path_additionalData);
5499
5618
  if (referencepath_additionalDataValidationError !== null) {
5500
5619
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
5501
5620
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5562,15 +5681,15 @@ const RepresentationType$5 = 'EinsteinPromptTemplateReferencesRepresentation';
5562
5681
  function normalize$5(input, existing, path, luvio, store, timestamp) {
5563
5682
  return input;
5564
5683
  }
5565
- const select$k = function EinsteinPromptTemplateReferencesRepresentationSelect() {
5684
+ const select$l = function EinsteinPromptTemplateReferencesRepresentationSelect() {
5566
5685
  return {
5567
5686
  kind: 'Fragment',
5568
- version: VERSION$9,
5687
+ version: VERSION$a,
5569
5688
  private: [],
5570
5689
  opaque: true
5571
5690
  };
5572
5691
  };
5573
- function equals$9(existing, incoming) {
5692
+ function equals$a(existing, incoming) {
5574
5693
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
5575
5694
  return false;
5576
5695
  }
@@ -5578,14 +5697,14 @@ function equals$9(existing, incoming) {
5578
5697
  }
5579
5698
  const ingest$5 = function EinsteinPromptTemplateReferencesRepresentationIngest(input, path, luvio, store, timestamp) {
5580
5699
  if (process.env.NODE_ENV !== 'production') {
5581
- const validateError = validate$a(input);
5700
+ const validateError = validate$b(input);
5582
5701
  if (validateError !== null) {
5583
5702
  throw validateError;
5584
5703
  }
5585
5704
  }
5586
5705
  const key = path.fullPath;
5587
5706
  const ttlToUse = TTL$5;
5588
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$9, RepresentationType$5, equals$9);
5707
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$a, RepresentationType$5, equals$a);
5589
5708
  return createLink(key);
5590
5709
  };
5591
5710
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -5598,8 +5717,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
5598
5717
  });
5599
5718
  }
5600
5719
 
5601
- function select$j(luvio, params) {
5602
- return select$k();
5720
+ function select$k(luvio, params) {
5721
+ return select$l();
5603
5722
  }
5604
5723
  function keyBuilder$g(luvio, params) {
5605
5724
  return keyPrefix + '::EinsteinPromptTemplateReferencesRepresentation:(' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
@@ -5613,7 +5732,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
5613
5732
  luvio.storeIngest(key, ingest$5, body);
5614
5733
  const snapshot = luvio.storeLookup({
5615
5734
  recordId: key,
5616
- node: select$j(),
5735
+ node: select$k(),
5617
5736
  variables: {},
5618
5737
  }, snapshotRefresh);
5619
5738
  if (process.env.NODE_ENV !== 'production') {
@@ -5630,7 +5749,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
5630
5749
  const storeMetadataParams = {
5631
5750
  ttl: TTL$5,
5632
5751
  namespace: keyPrefix,
5633
- version: VERSION$9,
5752
+ version: VERSION$a,
5634
5753
  representationName: RepresentationType$5
5635
5754
  };
5636
5755
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -5680,7 +5799,7 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
5680
5799
  }
5681
5800
  function adapterFragment$7(luvio, config) {
5682
5801
  createResourceParams$a(config);
5683
- return select$j();
5802
+ return select$k();
5684
5803
  }
5685
5804
  function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
5686
5805
  const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
@@ -5736,8 +5855,8 @@ const getEinsteinPromptTemplateReferencesAdapterFactory = (luvio) => function Ei
5736
5855
  buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
5737
5856
  };
5738
5857
 
5739
- function select$i(luvio, params) {
5740
- return select$m();
5858
+ function select$j(luvio, params) {
5859
+ return select$n();
5741
5860
  }
5742
5861
  function keyBuilder$e(luvio, params) {
5743
5862
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + (params.body.groupName === undefined ? 'groupName' : 'groupName:' + params.body.groupName) + '::' + (params.body.target === undefined ? 'target' : 'target:' + params.body.target) + '::' + 'templateInputs:' + params.body.templateInputs + '::' + 'templateTypeName:' + params.body.templateTypeName + ')';
@@ -5751,7 +5870,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
5751
5870
  luvio.storeIngest(key, ingest$6, body);
5752
5871
  const snapshot = luvio.storeLookup({
5753
5872
  recordId: key,
5754
- node: select$i(),
5873
+ node: select$j(),
5755
5874
  variables: {},
5756
5875
  }, snapshotRefresh);
5757
5876
  if (process.env.NODE_ENV !== 'production') {
@@ -5768,7 +5887,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
5768
5887
  const storeMetadataParams = {
5769
5888
  ttl: TTL$6,
5770
5889
  namespace: keyPrefix,
5771
- version: VERSION$a,
5890
+ version: VERSION$b,
5772
5891
  representationName: RepresentationType$6
5773
5892
  };
5774
5893
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -5830,7 +5949,7 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
5830
5949
  }
5831
5950
  function adapterFragment$6(luvio, config) {
5832
5951
  createResourceParams$9(config);
5833
- return select$i();
5952
+ return select$j();
5834
5953
  }
5835
5954
  function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
5836
5955
  const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
@@ -5886,8 +6005,8 @@ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLL
5886
6005
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
5887
6006
  };
5888
6007
 
5889
- const VERSION$8 = "b513bbac1672327d8eaaf120660e94b5";
5890
- function validate$9(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
6008
+ const VERSION$9 = "b513bbac1672327d8eaaf120660e94b5";
6009
+ function validate$a(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
5891
6010
  const v_error = (() => {
5892
6011
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5893
6012
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5905,10 +6024,10 @@ function validate$9(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRep
5905
6024
  })();
5906
6025
  return v_error === undefined ? null : v_error;
5907
6026
  }
5908
- const select$h = function EinsteinPromptTemplateSupportedLanguageErrorRepresentationSelect() {
6027
+ const select$i = function EinsteinPromptTemplateSupportedLanguageErrorRepresentationSelect() {
5909
6028
  return {
5910
6029
  kind: 'Fragment',
5911
- version: VERSION$8,
6030
+ version: VERSION$9,
5912
6031
  private: [],
5913
6032
  selections: [
5914
6033
  {
@@ -5922,7 +6041,7 @@ const select$h = function EinsteinPromptTemplateSupportedLanguageErrorRepresenta
5922
6041
  ]
5923
6042
  };
5924
6043
  };
5925
- function equals$8(existing, incoming) {
6044
+ function equals$9(existing, incoming) {
5926
6045
  const existing_errorMessage = existing.errorMessage;
5927
6046
  const incoming_errorMessage = incoming.errorMessage;
5928
6047
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -5936,8 +6055,8 @@ function equals$8(existing, incoming) {
5936
6055
  return true;
5937
6056
  }
5938
6057
 
5939
- const VERSION$7 = "65a17d345c28eeca91872a73d8ffe9fd";
5940
- function validate$8(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresentation') {
6058
+ const VERSION$8 = "65a17d345c28eeca91872a73d8ffe9fd";
6059
+ function validate$9(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresentation') {
5941
6060
  const v_error = (() => {
5942
6061
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5943
6062
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5955,10 +6074,10 @@ function validate$8(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresen
5955
6074
  })();
5956
6075
  return v_error === undefined ? null : v_error;
5957
6076
  }
5958
- const select$g = function EinsteinPromptTemplateSupportedLanguageRepresentationSelect() {
6077
+ const select$h = function EinsteinPromptTemplateSupportedLanguageRepresentationSelect() {
5959
6078
  return {
5960
6079
  kind: 'Fragment',
5961
- version: VERSION$7,
6080
+ version: VERSION$8,
5962
6081
  private: [],
5963
6082
  selections: [
5964
6083
  {
@@ -5972,7 +6091,7 @@ const select$g = function EinsteinPromptTemplateSupportedLanguageRepresentationS
5972
6091
  ]
5973
6092
  };
5974
6093
  };
5975
- function equals$7(existing, incoming) {
6094
+ function equals$8(existing, incoming) {
5976
6095
  const existing_languageCode = existing.languageCode;
5977
6096
  const incoming_languageCode = incoming.languageCode;
5978
6097
  if (!(existing_languageCode === incoming_languageCode)) {
@@ -5987,8 +6106,8 @@ function equals$7(existing, incoming) {
5987
6106
  }
5988
6107
 
5989
6108
  const TTL$4 = 100;
5990
- const VERSION$6 = "c635f260bce9a11f7c3bf31d60f42b53";
5991
- function validate$7(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRepresentation') {
6109
+ const VERSION$7 = "c635f260bce9a11f7c3bf31d60f42b53";
6110
+ function validate$8(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRepresentation') {
5992
6111
  const v_error = (() => {
5993
6112
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5994
6113
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6001,7 +6120,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
6001
6120
  for (let i = 0; i < obj_errors.length; i++) {
6002
6121
  const obj_errors_item = obj_errors[i];
6003
6122
  const path_errors_item = path_errors + '[' + i + ']';
6004
- const referencepath_errors_itemValidationError = validate$9(obj_errors_item, path_errors_item);
6123
+ const referencepath_errors_itemValidationError = validate$a(obj_errors_item, path_errors_item);
6005
6124
  if (referencepath_errors_itemValidationError !== null) {
6006
6125
  let message = 'Object doesn\'t match EinsteinPromptTemplateSupportedLanguageErrorRepresentation (at "' + path_errors_item + '")\n';
6007
6126
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6026,7 +6145,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
6026
6145
  for (let i = 0; i < obj_supportedLanguages.length; i++) {
6027
6146
  const obj_supportedLanguages_item = obj_supportedLanguages[i];
6028
6147
  const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
6029
- const referencepath_supportedLanguages_itemValidationError = validate$8(obj_supportedLanguages_item, path_supportedLanguages_item);
6148
+ const referencepath_supportedLanguages_itemValidationError = validate$9(obj_supportedLanguages_item, path_supportedLanguages_item);
6030
6149
  if (referencepath_supportedLanguages_itemValidationError !== null) {
6031
6150
  let message = 'Object doesn\'t match EinsteinPromptTemplateSupportedLanguageRepresentation (at "' + path_supportedLanguages_item + '")\n';
6032
6151
  message += referencepath_supportedLanguages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6045,12 +6164,12 @@ const RepresentationType$4 = 'EinsteinPromptTemplateVersionOutputLanguagesRepres
6045
6164
  function normalize$4(input, existing, path, luvio, store, timestamp) {
6046
6165
  return input;
6047
6166
  }
6048
- const select$f = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationSelect() {
6049
- const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$h();
6050
- const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$g();
6167
+ const select$g = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationSelect() {
6168
+ const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$i();
6169
+ const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$h();
6051
6170
  return {
6052
6171
  kind: 'Fragment',
6053
- version: VERSION$6,
6172
+ version: VERSION$7,
6054
6173
  private: [],
6055
6174
  selections: [
6056
6175
  {
@@ -6080,7 +6199,7 @@ const select$f = function EinsteinPromptTemplateVersionOutputLanguagesRepresenta
6080
6199
  ]
6081
6200
  };
6082
6201
  };
6083
- function equals$6(existing, incoming) {
6202
+ function equals$7(existing, incoming) {
6084
6203
  const existing_isSuccess = existing.isSuccess;
6085
6204
  const incoming_isSuccess = incoming.isSuccess;
6086
6205
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -6099,7 +6218,7 @@ function equals$6(existing, incoming) {
6099
6218
  const existing_errors = existing.errors;
6100
6219
  const incoming_errors = incoming.errors;
6101
6220
  const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
6102
- if (!(equals$8(existing_errors_item, incoming_errors_item))) {
6221
+ if (!(equals$9(existing_errors_item, incoming_errors_item))) {
6103
6222
  return false;
6104
6223
  }
6105
6224
  });
@@ -6109,7 +6228,7 @@ function equals$6(existing, incoming) {
6109
6228
  const existing_supportedLanguages = existing.supportedLanguages;
6110
6229
  const incoming_supportedLanguages = incoming.supportedLanguages;
6111
6230
  const equals_supportedLanguages_items = equalsArray(existing_supportedLanguages, incoming_supportedLanguages, (existing_supportedLanguages_item, incoming_supportedLanguages_item) => {
6112
- if (!(equals$7(existing_supportedLanguages_item, incoming_supportedLanguages_item))) {
6231
+ if (!(equals$8(existing_supportedLanguages_item, incoming_supportedLanguages_item))) {
6113
6232
  return false;
6114
6233
  }
6115
6234
  });
@@ -6120,14 +6239,14 @@ function equals$6(existing, incoming) {
6120
6239
  }
6121
6240
  const ingest$4 = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationIngest(input, path, luvio, store, timestamp) {
6122
6241
  if (process.env.NODE_ENV !== 'production') {
6123
- const validateError = validate$7(input);
6242
+ const validateError = validate$8(input);
6124
6243
  if (validateError !== null) {
6125
6244
  throw validateError;
6126
6245
  }
6127
6246
  }
6128
6247
  const key = path.fullPath;
6129
6248
  const ttlToUse = TTL$4;
6130
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$6, RepresentationType$4, equals$6);
6249
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$7, RepresentationType$4, equals$7);
6131
6250
  return createLink(key);
6132
6251
  };
6133
6252
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -6140,8 +6259,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
6140
6259
  });
6141
6260
  }
6142
6261
 
6143
- function select$e(luvio, params) {
6144
- return select$f();
6262
+ function select$f(luvio, params) {
6263
+ return select$g();
6145
6264
  }
6146
6265
  function keyBuilder$c(luvio, params) {
6147
6266
  return keyPrefix + '::EinsteinPromptTemplateVersionOutputLanguagesRepresentation:(' + 'useStandardVersion:' + params.queryParams.useStandardVersion + ',' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
@@ -6155,7 +6274,7 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
6155
6274
  luvio.storeIngest(key, ingest$4, body);
6156
6275
  const snapshot = luvio.storeLookup({
6157
6276
  recordId: key,
6158
- node: select$e(),
6277
+ node: select$f(),
6159
6278
  variables: {},
6160
6279
  }, snapshotRefresh);
6161
6280
  if (process.env.NODE_ENV !== 'production') {
@@ -6172,7 +6291,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
6172
6291
  const storeMetadataParams = {
6173
6292
  ttl: TTL$4,
6174
6293
  namespace: keyPrefix,
6175
- version: VERSION$6,
6294
+ version: VERSION$7,
6176
6295
  representationName: RepresentationType$4
6177
6296
  };
6178
6297
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -6224,7 +6343,7 @@ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
6224
6343
  }
6225
6344
  function adapterFragment$5(luvio, config) {
6226
6345
  createResourceParams$8(config);
6227
- return select$e();
6346
+ return select$f();
6228
6347
  }
6229
6348
  function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
6230
6349
  const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
@@ -6280,7 +6399,7 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
6280
6399
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
6281
6400
  };
6282
6401
 
6283
- function validate$6(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
6402
+ function validate$7(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
6284
6403
  const v_error = (() => {
6285
6404
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6286
6405
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6358,8 +6477,8 @@ function validate$6(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
6358
6477
  }
6359
6478
 
6360
6479
  const TTL$3 = 100;
6361
- const VERSION$5 = "2d1628544b54fc1701aa9b4eff05127b";
6362
- function validate$5(obj, path = 'EinsteinPromptRecordRepresentation') {
6480
+ const VERSION$6 = "2d1628544b54fc1701aa9b4eff05127b";
6481
+ function validate$6(obj, path = 'EinsteinPromptRecordRepresentation') {
6363
6482
  const v_error = (() => {
6364
6483
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6365
6484
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6388,7 +6507,7 @@ function validate$5(obj, path = 'EinsteinPromptRecordRepresentation') {
6388
6507
  for (let i = 0; i < obj_childRelationships_prop.length; i++) {
6389
6508
  const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
6390
6509
  const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
6391
- const referencepath_childRelationships_prop_itemValidationError = validate$5(obj_childRelationships_prop_item, path_childRelationships_prop_item);
6510
+ const referencepath_childRelationships_prop_itemValidationError = validate$6(obj_childRelationships_prop_item, path_childRelationships_prop_item);
6392
6511
  if (referencepath_childRelationships_prop_itemValidationError !== null) {
6393
6512
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
6394
6513
  message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6408,7 +6527,7 @@ function validate$5(obj, path = 'EinsteinPromptRecordRepresentation') {
6408
6527
  const key = obj_fields_keys[i];
6409
6528
  const obj_fields_prop = obj_fields[key];
6410
6529
  const path_fields_prop = path_fields + '["' + key + '"]';
6411
- const referencepath_fields_propValidationError = validate$6(obj_fields_prop, path_fields_prop);
6530
+ const referencepath_fields_propValidationError = validate$7(obj_fields_prop, path_fields_prop);
6412
6531
  if (referencepath_fields_propValidationError !== null) {
6413
6532
  let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
6414
6533
  message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6430,15 +6549,15 @@ const RepresentationType$3 = 'EinsteinPromptRecordRepresentation';
6430
6549
  function normalize$3(input, existing, path, luvio, store, timestamp) {
6431
6550
  return input;
6432
6551
  }
6433
- const select$d = function EinsteinPromptRecordRepresentationSelect() {
6552
+ const select$e = function EinsteinPromptRecordRepresentationSelect() {
6434
6553
  return {
6435
6554
  kind: 'Fragment',
6436
- version: VERSION$5,
6555
+ version: VERSION$6,
6437
6556
  private: [],
6438
6557
  opaque: true
6439
6558
  };
6440
6559
  };
6441
- function equals$5(existing, incoming) {
6560
+ function equals$6(existing, incoming) {
6442
6561
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
6443
6562
  return false;
6444
6563
  }
@@ -6446,14 +6565,14 @@ function equals$5(existing, incoming) {
6446
6565
  }
6447
6566
  const ingest$3 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
6448
6567
  if (process.env.NODE_ENV !== 'production') {
6449
- const validateError = validate$5(input);
6568
+ const validateError = validate$6(input);
6450
6569
  if (validateError !== null) {
6451
6570
  throw validateError;
6452
6571
  }
6453
6572
  }
6454
6573
  const key = path.fullPath;
6455
6574
  const ttlToUse = TTL$3;
6456
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$5, RepresentationType$3, equals$5);
6575
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$6, RepresentationType$3, equals$6);
6457
6576
  return createLink(key);
6458
6577
  };
6459
6578
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -6466,8 +6585,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
6466
6585
  });
6467
6586
  }
6468
6587
 
6469
- function select$c(luvio, params) {
6470
- return select$d();
6588
+ function select$d(luvio, params) {
6589
+ return select$e();
6471
6590
  }
6472
6591
  function keyBuilder$a(luvio, params) {
6473
6592
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
@@ -6481,7 +6600,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
6481
6600
  luvio.storeIngest(key, ingest$3, body);
6482
6601
  const snapshot = luvio.storeLookup({
6483
6602
  recordId: key,
6484
- node: select$c(),
6603
+ node: select$d(),
6485
6604
  variables: {},
6486
6605
  }, snapshotRefresh);
6487
6606
  if (process.env.NODE_ENV !== 'production') {
@@ -6498,7 +6617,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
6498
6617
  const storeMetadataParams = {
6499
6618
  ttl: TTL$3,
6500
6619
  namespace: keyPrefix,
6501
- version: VERSION$5,
6620
+ version: VERSION$6,
6502
6621
  representationName: RepresentationType$3
6503
6622
  };
6504
6623
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -6549,7 +6668,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
6549
6668
  }
6550
6669
  function adapterFragment$4(luvio, config) {
6551
6670
  createResourceParams$7(config);
6552
- return select$c();
6671
+ return select$d();
6553
6672
  }
6554
6673
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
6555
6674
  const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
@@ -6605,8 +6724,8 @@ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getProm
6605
6724
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
6606
6725
  };
6607
6726
 
6608
- function select$b(luvio, params) {
6609
- return select$d();
6727
+ function select$c(luvio, params) {
6728
+ return select$e();
6610
6729
  }
6611
6730
  function keyBuilder$8(luvio, params) {
6612
6731
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ',' + 'versionId:' + params.urlParams.versionId + ')';
@@ -6620,7 +6739,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
6620
6739
  luvio.storeIngest(key, ingest$3, body);
6621
6740
  const snapshot = luvio.storeLookup({
6622
6741
  recordId: key,
6623
- node: select$b(),
6742
+ node: select$c(),
6624
6743
  variables: {},
6625
6744
  }, snapshotRefresh);
6626
6745
  if (process.env.NODE_ENV !== 'production') {
@@ -6637,7 +6756,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
6637
6756
  const storeMetadataParams = {
6638
6757
  ttl: TTL$3,
6639
6758
  namespace: keyPrefix,
6640
- version: VERSION$5,
6759
+ version: VERSION$6,
6641
6760
  representationName: RepresentationType$3
6642
6761
  };
6643
6762
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -6690,7 +6809,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
6690
6809
  }
6691
6810
  function adapterFragment$3(luvio, config) {
6692
6811
  createResourceParams$6(config);
6693
- return select$b();
6812
+ return select$c();
6694
6813
  }
6695
6814
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
6696
6815
  const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
@@ -6746,8 +6865,8 @@ const getPromptTemplateVersionAdapterFactory = (luvio) => function EinsteinLLM__
6746
6865
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
6747
6866
  };
6748
6867
 
6749
- function select$a(luvio, params) {
6750
- return select$d();
6868
+ function select$b(luvio, params) {
6869
+ return select$e();
6751
6870
  }
6752
6871
  function keyBuilder$6(luvio, params) {
6753
6872
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
@@ -6761,7 +6880,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
6761
6880
  luvio.storeIngest(key, ingest$3, body);
6762
6881
  const snapshot = luvio.storeLookup({
6763
6882
  recordId: key,
6764
- node: select$a(),
6883
+ node: select$b(),
6765
6884
  variables: {},
6766
6885
  }, snapshotRefresh);
6767
6886
  if (process.env.NODE_ENV !== 'production') {
@@ -6778,7 +6897,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
6778
6897
  const storeMetadataParams = {
6779
6898
  ttl: TTL$3,
6780
6899
  namespace: keyPrefix,
6781
- version: VERSION$5,
6900
+ version: VERSION$6,
6782
6901
  representationName: RepresentationType$3
6783
6902
  };
6784
6903
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -6830,7 +6949,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
6830
6949
  }
6831
6950
  function adapterFragment$2(luvio, config) {
6832
6951
  createResourceParams$5(config);
6833
- return select$a();
6952
+ return select$b();
6834
6953
  }
6835
6954
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
6836
6955
  const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
@@ -6887,8 +7006,8 @@ const getPromptTemplateVersionsAdapterFactory = (luvio) => function EinsteinLLM_
6887
7006
  };
6888
7007
 
6889
7008
  const TTL$2 = 100;
6890
- const VERSION$4 = "5fd7b8a03d155ba601bcb4ee725e0893";
6891
- function validate$4(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
7009
+ const VERSION$5 = "5fd7b8a03d155ba601bcb4ee725e0893";
7010
+ function validate$5(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
6892
7011
  const v_error = (() => {
6893
7012
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6894
7013
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6907,7 +7026,7 @@ function validate$4(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
6907
7026
  for (let i = 0; i < obj_promptRecords.length; i++) {
6908
7027
  const obj_promptRecords_item = obj_promptRecords[i];
6909
7028
  const path_promptRecords_item = path_promptRecords + '[' + i + ']';
6910
- const referencepath_promptRecords_itemValidationError = validate$5(obj_promptRecords_item, path_promptRecords_item);
7029
+ const referencepath_promptRecords_itemValidationError = validate$6(obj_promptRecords_item, path_promptRecords_item);
6911
7030
  if (referencepath_promptRecords_itemValidationError !== null) {
6912
7031
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
6913
7032
  message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6927,15 +7046,15 @@ const RepresentationType$2 = 'EinsteinPromptRecordCollectionOutputRepresentation
6927
7046
  function normalize$2(input, existing, path, luvio, store, timestamp) {
6928
7047
  return input;
6929
7048
  }
6930
- const select$9 = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
7049
+ const select$a = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
6931
7050
  return {
6932
7051
  kind: 'Fragment',
6933
- version: VERSION$4,
7052
+ version: VERSION$5,
6934
7053
  private: [],
6935
7054
  opaque: true
6936
7055
  };
6937
7056
  };
6938
- function equals$4(existing, incoming) {
7057
+ function equals$5(existing, incoming) {
6939
7058
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
6940
7059
  return false;
6941
7060
  }
@@ -6943,14 +7062,14 @@ function equals$4(existing, incoming) {
6943
7062
  }
6944
7063
  const ingest$2 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6945
7064
  if (process.env.NODE_ENV !== 'production') {
6946
- const validateError = validate$4(input);
7065
+ const validateError = validate$5(input);
6947
7066
  if (validateError !== null) {
6948
7067
  throw validateError;
6949
7068
  }
6950
7069
  }
6951
7070
  const key = path.fullPath;
6952
7071
  const ttlToUse = TTL$2;
6953
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$4, RepresentationType$2, equals$4);
7072
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$5, RepresentationType$2, equals$5);
6954
7073
  return createLink(key);
6955
7074
  };
6956
7075
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -6963,8 +7082,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
6963
7082
  });
6964
7083
  }
6965
7084
 
6966
- function select$8(luvio, params) {
6967
- return select$9();
7085
+ function select$9(luvio, params) {
7086
+ return select$a();
6968
7087
  }
6969
7088
  function keyBuilder$4(luvio, params) {
6970
7089
  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 + ')';
@@ -6978,7 +7097,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
6978
7097
  luvio.storeIngest(key, ingest$2, body);
6979
7098
  const snapshot = luvio.storeLookup({
6980
7099
  recordId: key,
6981
- node: select$8(),
7100
+ node: select$9(),
6982
7101
  variables: {},
6983
7102
  }, snapshotRefresh);
6984
7103
  if (process.env.NODE_ENV !== 'production') {
@@ -6995,7 +7114,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
6995
7114
  const storeMetadataParams = {
6996
7115
  ttl: TTL$2,
6997
7116
  namespace: keyPrefix,
6998
- version: VERSION$4,
7117
+ version: VERSION$5,
6999
7118
  representationName: RepresentationType$2
7000
7119
  };
7001
7120
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -7052,7 +7171,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
7052
7171
  }
7053
7172
  function adapterFragment$1(luvio, config) {
7054
7173
  createResourceParams$4(config);
7055
- return select$8();
7174
+ return select$9();
7056
7175
  }
7057
7176
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
7058
7177
  const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
@@ -7108,6 +7227,104 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
7108
7227
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
7109
7228
  };
7110
7229
 
7230
+ const VERSION$4 = "623bf343adaad84a1a57137d70c052cf";
7231
+ function validate$4(obj, path = 'EinsteinPromptTypeModelAffinityRepresentation') {
7232
+ const v_error = (() => {
7233
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7234
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7235
+ }
7236
+ if (obj.preferredCapabilities !== undefined) {
7237
+ const obj_preferredCapabilities = obj.preferredCapabilities;
7238
+ const path_preferredCapabilities = path + '.preferredCapabilities';
7239
+ if (!ArrayIsArray(obj_preferredCapabilities)) {
7240
+ return new TypeError('Expected "array" but received "' + typeof obj_preferredCapabilities + '" (at "' + path_preferredCapabilities + '")');
7241
+ }
7242
+ for (let i = 0; i < obj_preferredCapabilities.length; i++) {
7243
+ const obj_preferredCapabilities_item = obj_preferredCapabilities[i];
7244
+ const path_preferredCapabilities_item = path_preferredCapabilities + '[' + i + ']';
7245
+ if (typeof obj_preferredCapabilities_item !== 'string') {
7246
+ return new TypeError('Expected "string" but received "' + typeof obj_preferredCapabilities_item + '" (at "' + path_preferredCapabilities_item + '")');
7247
+ }
7248
+ }
7249
+ }
7250
+ if (obj.requiredCapabilities !== undefined) {
7251
+ const obj_requiredCapabilities = obj.requiredCapabilities;
7252
+ const path_requiredCapabilities = path + '.requiredCapabilities';
7253
+ if (!ArrayIsArray(obj_requiredCapabilities)) {
7254
+ return new TypeError('Expected "array" but received "' + typeof obj_requiredCapabilities + '" (at "' + path_requiredCapabilities + '")');
7255
+ }
7256
+ for (let i = 0; i < obj_requiredCapabilities.length; i++) {
7257
+ const obj_requiredCapabilities_item = obj_requiredCapabilities[i];
7258
+ const path_requiredCapabilities_item = path_requiredCapabilities + '[' + i + ']';
7259
+ if (typeof obj_requiredCapabilities_item !== 'string') {
7260
+ return new TypeError('Expected "string" but received "' + typeof obj_requiredCapabilities_item + '" (at "' + path_requiredCapabilities_item + '")');
7261
+ }
7262
+ }
7263
+ }
7264
+ })();
7265
+ return v_error === undefined ? null : v_error;
7266
+ }
7267
+ const select$8 = function EinsteinPromptTypeModelAffinityRepresentationSelect() {
7268
+ return {
7269
+ kind: 'Fragment',
7270
+ version: VERSION$4,
7271
+ private: [],
7272
+ selections: [
7273
+ {
7274
+ name: 'preferredCapabilities',
7275
+ kind: 'Scalar',
7276
+ plural: true,
7277
+ required: false
7278
+ },
7279
+ {
7280
+ name: 'requiredCapabilities',
7281
+ kind: 'Scalar',
7282
+ plural: true,
7283
+ required: false
7284
+ }
7285
+ ]
7286
+ };
7287
+ };
7288
+ function equals$4(existing, incoming) {
7289
+ const existing_preferredCapabilities = existing.preferredCapabilities;
7290
+ const incoming_preferredCapabilities = incoming.preferredCapabilities;
7291
+ // if at least one of these optionals is defined
7292
+ if (existing_preferredCapabilities !== undefined || incoming_preferredCapabilities !== undefined) {
7293
+ // if one of these is not defined we know the other is defined and therefore
7294
+ // not equal
7295
+ if (existing_preferredCapabilities === undefined || incoming_preferredCapabilities === undefined) {
7296
+ return false;
7297
+ }
7298
+ const equals_preferredCapabilities_items = equalsArray(existing_preferredCapabilities, incoming_preferredCapabilities, (existing_preferredCapabilities_item, incoming_preferredCapabilities_item) => {
7299
+ if (!(existing_preferredCapabilities_item === incoming_preferredCapabilities_item)) {
7300
+ return false;
7301
+ }
7302
+ });
7303
+ if (equals_preferredCapabilities_items === false) {
7304
+ return false;
7305
+ }
7306
+ }
7307
+ const existing_requiredCapabilities = existing.requiredCapabilities;
7308
+ const incoming_requiredCapabilities = incoming.requiredCapabilities;
7309
+ // if at least one of these optionals is defined
7310
+ if (existing_requiredCapabilities !== undefined || incoming_requiredCapabilities !== undefined) {
7311
+ // if one of these is not defined we know the other is defined and therefore
7312
+ // not equal
7313
+ if (existing_requiredCapabilities === undefined || incoming_requiredCapabilities === undefined) {
7314
+ return false;
7315
+ }
7316
+ const equals_requiredCapabilities_items = equalsArray(existing_requiredCapabilities, incoming_requiredCapabilities, (existing_requiredCapabilities_item, incoming_requiredCapabilities_item) => {
7317
+ if (!(existing_requiredCapabilities_item === incoming_requiredCapabilities_item)) {
7318
+ return false;
7319
+ }
7320
+ });
7321
+ if (equals_requiredCapabilities_items === false) {
7322
+ return false;
7323
+ }
7324
+ }
7325
+ return true;
7326
+ }
7327
+
7111
7328
  const VERSION$3 = "f08355bdc491f090c787309a8a476caa";
7112
7329
  function validate$3(obj, path = 'EinsteinPromptTypeSchemaInputFieldRepresentation') {
7113
7330
  const v_error = (() => {
@@ -7313,12 +7530,33 @@ function equals$2(existing, incoming) {
7313
7530
  }
7314
7531
 
7315
7532
  const TTL$1 = 300;
7316
- const VERSION$1 = "bb627c12e7041da02926d6b2affc98a1";
7533
+ const VERSION$1 = "687e1fa3402f444465804964fd16a221";
7317
7534
  function validate$1(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
7318
7535
  const v_error = (() => {
7319
7536
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7320
7537
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7321
7538
  }
7539
+ if (obj.allowActions !== undefined) {
7540
+ const obj_allowActions = obj.allowActions;
7541
+ const path_allowActions = path + '.allowActions';
7542
+ if (typeof obj_allowActions !== 'boolean') {
7543
+ return new TypeError('Expected "boolean" but received "' + typeof obj_allowActions + '" (at "' + path_allowActions + '")');
7544
+ }
7545
+ }
7546
+ if (obj.allowedInputTypes !== undefined) {
7547
+ const obj_allowedInputTypes = obj.allowedInputTypes;
7548
+ const path_allowedInputTypes = path + '.allowedInputTypes';
7549
+ if (!ArrayIsArray(obj_allowedInputTypes)) {
7550
+ return new TypeError('Expected "array" but received "' + typeof obj_allowedInputTypes + '" (at "' + path_allowedInputTypes + '")');
7551
+ }
7552
+ for (let i = 0; i < obj_allowedInputTypes.length; i++) {
7553
+ const obj_allowedInputTypes_item = obj_allowedInputTypes[i];
7554
+ const path_allowedInputTypes_item = path_allowedInputTypes + '[' + i + ']';
7555
+ if (typeof obj_allowedInputTypes_item !== 'string') {
7556
+ return new TypeError('Expected "string" but received "' + typeof obj_allowedInputTypes_item + '" (at "' + path_allowedInputTypes_item + '")');
7557
+ }
7558
+ }
7559
+ }
7322
7560
  const obj_excludedGlobalVariables = obj.excludedGlobalVariables;
7323
7561
  const path_excludedGlobalVariables = path + '.excludedGlobalVariables';
7324
7562
  if (!ArrayIsArray(obj_excludedGlobalVariables)) {
@@ -7331,6 +7569,16 @@ function validate$1(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
7331
7569
  return new TypeError('Expected "string" but received "' + typeof obj_excludedGlobalVariables_item + '" (at "' + path_excludedGlobalVariables_item + '")');
7332
7570
  }
7333
7571
  }
7572
+ if (obj.modelAffinity !== undefined) {
7573
+ const obj_modelAffinity = obj.modelAffinity;
7574
+ const path_modelAffinity = path + '.modelAffinity';
7575
+ const referencepath_modelAffinityValidationError = validate$4(obj_modelAffinity, path_modelAffinity);
7576
+ if (referencepath_modelAffinityValidationError !== null) {
7577
+ let message = 'Object doesn\'t match EinsteinPromptTypeModelAffinityRepresentation (at "' + path_modelAffinity + '")\n';
7578
+ message += referencepath_modelAffinityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
7579
+ return new TypeError(message);
7580
+ }
7581
+ }
7334
7582
  const obj_schema = obj.schema;
7335
7583
  const path_schema = path + '.schema';
7336
7584
  const referencepath_schemaValidationError = validate$2(obj_schema, path_schema);
@@ -7352,17 +7600,35 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
7352
7600
  return input;
7353
7601
  }
7354
7602
  const select$5 = function EinsteinPromptTypeRecordRepresentationSelect() {
7603
+ const { selections: EinsteinPromptTypeModelAffinityRepresentation__selections, opaque: EinsteinPromptTypeModelAffinityRepresentation__opaque, } = select$8();
7355
7604
  const { selections: EinsteinPromptTypeSchemaRepresentation__selections, opaque: EinsteinPromptTypeSchemaRepresentation__opaque, } = select$6();
7356
7605
  return {
7357
7606
  kind: 'Fragment',
7358
7607
  version: VERSION$1,
7359
7608
  private: [],
7360
7609
  selections: [
7610
+ {
7611
+ name: 'allowActions',
7612
+ kind: 'Scalar',
7613
+ required: false
7614
+ },
7615
+ {
7616
+ name: 'allowedInputTypes',
7617
+ kind: 'Scalar',
7618
+ plural: true,
7619
+ required: false
7620
+ },
7361
7621
  {
7362
7622
  name: 'excludedGlobalVariables',
7363
7623
  kind: 'Scalar',
7364
7624
  plural: true
7365
7625
  },
7626
+ {
7627
+ name: 'modelAffinity',
7628
+ kind: 'Object',
7629
+ selections: EinsteinPromptTypeModelAffinityRepresentation__selections,
7630
+ required: false
7631
+ },
7366
7632
  {
7367
7633
  name: 'schema',
7368
7634
  kind: 'Object',
@@ -7376,11 +7642,42 @@ const select$5 = function EinsteinPromptTypeRecordRepresentationSelect() {
7376
7642
  };
7377
7643
  };
7378
7644
  function equals$1(existing, incoming) {
7645
+ const existing_allowActions = existing.allowActions;
7646
+ const incoming_allowActions = incoming.allowActions;
7647
+ // if at least one of these optionals is defined
7648
+ if (existing_allowActions !== undefined || incoming_allowActions !== undefined) {
7649
+ // if one of these is not defined we know the other is defined and therefore
7650
+ // not equal
7651
+ if (existing_allowActions === undefined || incoming_allowActions === undefined) {
7652
+ return false;
7653
+ }
7654
+ if (!(existing_allowActions === incoming_allowActions)) {
7655
+ return false;
7656
+ }
7657
+ }
7379
7658
  const existing_templateTypeName = existing.templateTypeName;
7380
7659
  const incoming_templateTypeName = incoming.templateTypeName;
7381
7660
  if (!(existing_templateTypeName === incoming_templateTypeName)) {
7382
7661
  return false;
7383
7662
  }
7663
+ const existing_allowedInputTypes = existing.allowedInputTypes;
7664
+ const incoming_allowedInputTypes = incoming.allowedInputTypes;
7665
+ // if at least one of these optionals is defined
7666
+ if (existing_allowedInputTypes !== undefined || incoming_allowedInputTypes !== undefined) {
7667
+ // if one of these is not defined we know the other is defined and therefore
7668
+ // not equal
7669
+ if (existing_allowedInputTypes === undefined || incoming_allowedInputTypes === undefined) {
7670
+ return false;
7671
+ }
7672
+ const equals_allowedInputTypes_items = equalsArray(existing_allowedInputTypes, incoming_allowedInputTypes, (existing_allowedInputTypes_item, incoming_allowedInputTypes_item) => {
7673
+ if (!(existing_allowedInputTypes_item === incoming_allowedInputTypes_item)) {
7674
+ return false;
7675
+ }
7676
+ });
7677
+ if (equals_allowedInputTypes_items === false) {
7678
+ return false;
7679
+ }
7680
+ }
7384
7681
  const existing_excludedGlobalVariables = existing.excludedGlobalVariables;
7385
7682
  const incoming_excludedGlobalVariables = incoming.excludedGlobalVariables;
7386
7683
  const equals_excludedGlobalVariables_items = equalsArray(existing_excludedGlobalVariables, incoming_excludedGlobalVariables, (existing_excludedGlobalVariables_item, incoming_excludedGlobalVariables_item) => {
@@ -7391,6 +7688,19 @@ function equals$1(existing, incoming) {
7391
7688
  if (equals_excludedGlobalVariables_items === false) {
7392
7689
  return false;
7393
7690
  }
7691
+ const existing_modelAffinity = existing.modelAffinity;
7692
+ const incoming_modelAffinity = incoming.modelAffinity;
7693
+ // if at least one of these optionals is defined
7694
+ if (existing_modelAffinity !== undefined || incoming_modelAffinity !== undefined) {
7695
+ // if one of these is not defined we know the other is defined and therefore
7696
+ // not equal
7697
+ if (existing_modelAffinity === undefined || incoming_modelAffinity === undefined) {
7698
+ return false;
7699
+ }
7700
+ if (!(equals$4(existing_modelAffinity, incoming_modelAffinity))) {
7701
+ return false;
7702
+ }
7703
+ }
7394
7704
  const existing_schema = existing.schema;
7395
7705
  const incoming_schema = incoming.schema;
7396
7706
  if (!(equals$2(existing_schema, incoming_schema))) {
@@ -7568,7 +7878,7 @@ function validate(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
7568
7878
  if (obj.additionalData !== undefined) {
7569
7879
  const obj_additionalData = obj.additionalData;
7570
7880
  const path_additionalData = path + '.additionalData';
7571
- const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
7881
+ const referencepath_additionalDataValidationError = validate$D(obj_additionalData, path_additionalData);
7572
7882
  if (referencepath_additionalDataValidationError !== null) {
7573
7883
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
7574
7884
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7645,7 +7955,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
7645
7955
  return input;
7646
7956
  }
7647
7957
  const select$3 = function EinsteinPromptTemplateStatusRepresentationSelect() {
7648
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
7958
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
7649
7959
  return {
7650
7960
  kind: 'Fragment',
7651
7961
  version: VERSION,
@@ -7743,7 +8053,7 @@ function equals(existing, incoming) {
7743
8053
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
7744
8054
  return false;
7745
8055
  }
7746
- if (!(equals$w(existing_additionalData, incoming_additionalData))) {
8056
+ if (!(equals$x(existing_additionalData, incoming_additionalData))) {
7747
8057
  return false;
7748
8058
  }
7749
8059
  }
@@ -7883,7 +8193,7 @@ const putEinsteinPromptTemplateStatusAdapterFactory = (luvio) => {
7883
8193
  };
7884
8194
 
7885
8195
  function select$1(luvio, params) {
7886
- return select$t();
8196
+ return select$u();
7887
8197
  }
7888
8198
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
7889
8199
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
@@ -7976,7 +8286,7 @@ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
7976
8286
  };
7977
8287
 
7978
8288
  function select(luvio, params) {
7979
- return select$t();
8289
+ return select$u();
7980
8290
  }
7981
8291
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
7982
8292
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
@@ -8272,4 +8582,4 @@ withDefaultLuvio((luvio) => {
8272
8582
  });
8273
8583
 
8274
8584
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getEinsteinPromptTemplateReferences, getEinsteinPromptTemplateReferences_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
8275
- // version: 1.450.0-b7557fd74b
8585
+ // version: 1.451.0-dev10-1dd3380fb3