@salesforce/lds-adapters-service-einsteinllm 1.414.1 → 1.415.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,7 +168,7 @@ function createLink(ref) {
168
168
  };
169
169
  }
170
170
 
171
- function validate$F(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
171
+ function validate$N(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
172
172
  const v_error = (() => {
173
173
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
174
174
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -212,7 +212,7 @@ function validate$F(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
212
212
  return v_error === undefined ? null : v_error;
213
213
  }
214
214
 
215
- function validate$E(obj, path = 'WrappedListString') {
215
+ function validate$M(obj, path = 'WrappedListString') {
216
216
  const v_error = (() => {
217
217
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
218
218
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -233,14 +233,14 @@ function validate$E(obj, path = 'WrappedListString') {
233
233
  return v_error === undefined ? null : v_error;
234
234
  }
235
235
 
236
- function validate$D(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
236
+ function validate$L(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
237
237
  const v_error = (() => {
238
238
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
239
239
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
240
240
  }
241
241
  const obj_additionalConfig = obj.additionalConfig;
242
242
  const path_additionalConfig = path + '.additionalConfig';
243
- const referencepath_additionalConfigValidationError = validate$F(obj_additionalConfig, path_additionalConfig);
243
+ const referencepath_additionalConfigValidationError = validate$N(obj_additionalConfig, path_additionalConfig);
244
244
  if (referencepath_additionalConfigValidationError !== null) {
245
245
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
246
246
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -248,7 +248,7 @@ function validate$D(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
248
248
  }
249
249
  const obj_prompts = obj.prompts;
250
250
  const path_prompts = path + '.prompts';
251
- const referencepath_promptsValidationError = validate$E(obj_prompts, path_prompts);
251
+ const referencepath_promptsValidationError = validate$M(obj_prompts, path_prompts);
252
252
  if (referencepath_promptsValidationError !== null) {
253
253
  let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
254
254
  message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -265,8 +265,8 @@ function validate$D(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- const VERSION$t = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
- function validate$C(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
268
+ const VERSION$B = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
+ function validate$K(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
270
270
  const v_error = (() => {
271
271
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
272
272
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -287,10 +287,10 @@ function validate$C(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
287
287
  })();
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
- const select$M = function EinsteinLlmEmbeddingItemRepresentationSelect() {
290
+ const select$U = function EinsteinLlmEmbeddingItemRepresentationSelect() {
291
291
  return {
292
292
  kind: 'Fragment',
293
- version: VERSION$t,
293
+ version: VERSION$B,
294
294
  private: [],
295
295
  selections: [
296
296
  {
@@ -305,7 +305,7 @@ const select$M = function EinsteinLlmEmbeddingItemRepresentationSelect() {
305
305
  ]
306
306
  };
307
307
  };
308
- function equals$t(existing, incoming) {
308
+ function equals$B(existing, incoming) {
309
309
  const existing_index = existing.index;
310
310
  const incoming_index = incoming.index;
311
311
  if (!(existing_index === incoming_index)) {
@@ -325,8 +325,8 @@ function equals$t(existing, incoming) {
325
325
  }
326
326
 
327
327
  const TTL$c = 100;
328
- const VERSION$s = "d9873651f09d29764ef4d4231eb653d7";
329
- function validate$B(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
328
+ const VERSION$A = "d9873651f09d29764ef4d4231eb653d7";
329
+ function validate$J(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -339,7 +339,7 @@ function validate$B(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
339
339
  for (let i = 0; i < obj_embeddings.length; i++) {
340
340
  const obj_embeddings_item = obj_embeddings[i];
341
341
  const path_embeddings_item = path_embeddings + '[' + i + ']';
342
- const referencepath_embeddings_itemValidationError = validate$C(obj_embeddings_item, path_embeddings_item);
342
+ const referencepath_embeddings_itemValidationError = validate$K(obj_embeddings_item, path_embeddings_item);
343
343
  if (referencepath_embeddings_itemValidationError !== null) {
344
344
  let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
345
345
  message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -367,11 +367,11 @@ const RepresentationType$c = 'EinsteinLlmEmbeddingsRepresentation';
367
367
  function normalize$c(input, existing, path, luvio, store, timestamp) {
368
368
  return input;
369
369
  }
370
- const select$L = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$M();
370
+ const select$T = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$U();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$s,
374
+ version: VERSION$A,
375
375
  private: [],
376
376
  selections: [
377
377
  {
@@ -388,11 +388,11 @@ const select$L = function EinsteinLlmEmbeddingsRepresentationSelect() {
388
388
  ]
389
389
  };
390
390
  };
391
- function equals$s(existing, incoming) {
391
+ function equals$A(existing, incoming) {
392
392
  const existing_embeddings = existing.embeddings;
393
393
  const incoming_embeddings = incoming.embeddings;
394
394
  const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
395
- if (!(equals$t(existing_embeddings_item, incoming_embeddings_item))) {
395
+ if (!(equals$B(existing_embeddings_item, incoming_embeddings_item))) {
396
396
  return false;
397
397
  }
398
398
  });
@@ -413,14 +413,14 @@ function equals$s(existing, incoming) {
413
413
  }
414
414
  const ingest$c = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$B(input);
416
+ const validateError = validate$J(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
422
  const ttlToUse = TTL$c;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$s, RepresentationType$c, equals$s);
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$A, RepresentationType$c, equals$A);
424
424
  return createLink(key);
425
425
  };
426
426
  function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
@@ -433,8 +433,8 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
433
433
  });
434
434
  }
435
435
 
436
- function select$K(luvio, params) {
437
- return select$L();
436
+ function select$S(luvio, params) {
437
+ return select$T();
438
438
  }
439
439
  function keyBuilder$q(luvio, params) {
440
440
  return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
@@ -448,7 +448,7 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
448
448
  luvio.storeIngest(key, ingest$c, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$K(),
451
+ node: select$S(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -465,7 +465,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
465
465
  const storeMetadataParams = {
466
466
  ttl: TTL$c,
467
467
  namespace: keyPrefix,
468
- version: VERSION$s,
468
+ version: VERSION$A,
469
469
  representationName: RepresentationType$c
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -498,7 +498,7 @@ function keyBuilder$p(luvio, config) {
498
498
  function typeCheckConfig$i(untrustedConfig) {
499
499
  const config = {};
500
500
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
501
- const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$D(untrustedConfig_embeddingsInput);
501
+ const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$L(untrustedConfig_embeddingsInput);
502
502
  if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
503
503
  config.embeddingsInput = untrustedConfig_embeddingsInput;
504
504
  }
@@ -519,7 +519,7 @@ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
519
519
  }
520
520
  function adapterFragment$a(luvio, config) {
521
521
  createResourceParams$i(config);
522
- return select$K();
522
+ return select$S();
523
523
  }
524
524
  function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
525
525
  const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
@@ -575,7 +575,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
575
575
  buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
576
576
  };
577
577
 
578
- function validate$A(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
578
+ function validate$I(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
579
579
  const v_error = (() => {
580
580
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
581
581
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -623,8 +623,8 @@ function validate$A(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
623
623
  }
624
624
 
625
625
  const TTL$b = 100;
626
- const VERSION$r = "4033328f65865dd5d80c68a7573a4522";
627
- function validate$z(obj, path = 'EinsteinLlmFeedbackRepresentation') {
626
+ const VERSION$z = "4033328f65865dd5d80c68a7573a4522";
627
+ function validate$H(obj, path = 'EinsteinLlmFeedbackRepresentation') {
628
628
  const v_error = (() => {
629
629
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
630
630
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -650,10 +650,10 @@ function keyBuilderFromType$4(luvio, object) {
650
650
  function normalize$b(input, existing, path, luvio, store, timestamp) {
651
651
  return input;
652
652
  }
653
- const select$J = function EinsteinLlmFeedbackRepresentationSelect() {
653
+ const select$R = function EinsteinLlmFeedbackRepresentationSelect() {
654
654
  return {
655
655
  kind: 'Fragment',
656
- version: VERSION$r,
656
+ version: VERSION$z,
657
657
  private: [],
658
658
  selections: [
659
659
  {
@@ -663,7 +663,7 @@ const select$J = function EinsteinLlmFeedbackRepresentationSelect() {
663
663
  ]
664
664
  };
665
665
  };
666
- function equals$r(existing, incoming) {
666
+ function equals$z(existing, incoming) {
667
667
  const existing_message = existing.message;
668
668
  const incoming_message = incoming.message;
669
669
  if (!(existing_message === incoming_message)) {
@@ -673,14 +673,14 @@ function equals$r(existing, incoming) {
673
673
  }
674
674
  const ingest$b = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
675
675
  if (process.env.NODE_ENV !== 'production') {
676
- const validateError = validate$z(input);
676
+ const validateError = validate$H(input);
677
677
  if (validateError !== null) {
678
678
  throw validateError;
679
679
  }
680
680
  }
681
681
  const key = keyBuilderFromType$4(luvio, input);
682
682
  const ttlToUse = TTL$b;
683
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$r, RepresentationType$b, equals$r);
683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$z, RepresentationType$b, equals$z);
684
684
  return createLink(key);
685
685
  };
686
686
  function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
@@ -693,8 +693,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
693
693
  });
694
694
  }
695
695
 
696
- function select$I(luvio, params) {
697
- return select$J();
696
+ function select$Q(luvio, params) {
697
+ return select$R();
698
698
  }
699
699
  function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
700
700
  getTypeCacheKeys$b(storeKeyMap, luvio, response);
@@ -705,7 +705,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
705
705
  luvio.storeIngest(key, ingest$b, body);
706
706
  const snapshot = luvio.storeLookup({
707
707
  recordId: key,
708
- node: select$I(),
708
+ node: select$Q(),
709
709
  variables: {},
710
710
  });
711
711
  if (process.env.NODE_ENV !== 'production') {
@@ -739,7 +739,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(createFeedba
739
739
  function typeCheckConfig$h(untrustedConfig) {
740
740
  const config = {};
741
741
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
742
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$A(untrustedConfig_feedbackInput);
742
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$I(untrustedConfig_feedbackInput);
743
743
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
744
744
  config.feedbackInput = untrustedConfig_feedbackInput;
745
745
  }
@@ -787,7 +787,7 @@ const createFeedbackAdapterFactory = (luvio) => {
787
787
  };
788
788
  };
789
789
 
790
- function validate$y(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
790
+ function validate$G(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
791
791
  const v_error = (() => {
792
792
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
793
793
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -870,7 +870,7 @@ function validate$y(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
870
870
  return v_error === undefined ? null : v_error;
871
871
  }
872
872
 
873
- function validate$x(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
873
+ function validate$F(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
874
874
  const v_error = (() => {
875
875
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
876
876
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -878,7 +878,7 @@ function validate$x(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
878
878
  if (obj.additionalConfig !== undefined) {
879
879
  const obj_additionalConfig = obj.additionalConfig;
880
880
  const path_additionalConfig = path + '.additionalConfig';
881
- const referencepath_additionalConfigValidationError = validate$y(obj_additionalConfig, path_additionalConfig);
881
+ const referencepath_additionalConfigValidationError = validate$G(obj_additionalConfig, path_additionalConfig);
882
882
  if (referencepath_additionalConfigValidationError !== null) {
883
883
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
884
884
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -901,8 +901,8 @@ function validate$x(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
901
901
  return v_error === undefined ? null : v_error;
902
902
  }
903
903
 
904
- const VERSION$q = "9ebac74e6f964c363d5fd1913df363af";
905
- function validate$w(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
904
+ const VERSION$y = "9ebac74e6f964c363d5fd1913df363af";
905
+ function validate$E(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
906
906
  const v_error = (() => {
907
907
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
908
908
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -938,10 +938,10 @@ function validate$w(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
938
938
  })();
939
939
  return v_error === undefined ? null : v_error;
940
940
  }
941
- const select$H = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
941
+ const select$P = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
942
942
  return {
943
943
  kind: 'Fragment',
944
- version: VERSION$q,
944
+ version: VERSION$y,
945
945
  private: [],
946
946
  selections: [
947
947
  {
@@ -952,7 +952,7 @@ const select$H = function EinsteinLlmGenerationsContentQualityRepresentationSele
952
952
  ]
953
953
  };
954
954
  };
955
- function equals$q(existing, incoming) {
955
+ function equals$y(existing, incoming) {
956
956
  const existing_isToxicityDetected = existing.isToxicityDetected;
957
957
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
958
958
  // if at least one of these optionals is defined
@@ -969,8 +969,8 @@ function equals$q(existing, incoming) {
969
969
  return true;
970
970
  }
971
971
 
972
- const VERSION$p = "77af44a252cb5b45b4d9a8101368d2aa";
973
- function validate$v(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
972
+ const VERSION$x = "77af44a252cb5b45b4d9a8101368d2aa";
973
+ function validate$D(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
974
974
  const v_error = (() => {
975
975
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
976
976
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1174,10 +1174,10 @@ function validate$v(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1174
1174
  })();
1175
1175
  return v_error === undefined ? null : v_error;
1176
1176
  }
1177
- const select$G = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1177
+ const select$O = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1178
1178
  return {
1179
1179
  kind: 'Fragment',
1180
- version: VERSION$p,
1180
+ version: VERSION$x,
1181
1181
  private: [],
1182
1182
  selections: [
1183
1183
  {
@@ -1218,7 +1218,7 @@ const select$G = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1218
1218
  ]
1219
1219
  };
1220
1220
  };
1221
- function equals$p(existing, incoming) {
1221
+ function equals$x(existing, incoming) {
1222
1222
  const existing_hateScore = existing.hateScore;
1223
1223
  const incoming_hateScore = incoming.hateScore;
1224
1224
  // if at least one of these optionals is defined
@@ -1313,8 +1313,8 @@ function equals$p(existing, incoming) {
1313
1313
  return true;
1314
1314
  }
1315
1315
 
1316
- const VERSION$o = "4a07778ff6c595d91c575188146647a1";
1317
- function validate$u(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1316
+ const VERSION$w = "4a07778ff6c595d91c575188146647a1";
1317
+ function validate$C(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1318
1318
  const v_error = (() => {
1319
1319
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1320
1320
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1324,7 +1324,7 @@ function validate$u(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1324
1324
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
1325
1325
  let obj_contentQualityRepresentation_union0 = null;
1326
1326
  const obj_contentQualityRepresentation_union0_error = (() => {
1327
- const referencepath_contentQualityRepresentationValidationError = validate$w(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1327
+ const referencepath_contentQualityRepresentationValidationError = validate$E(obj_contentQualityRepresentation, path_contentQualityRepresentation);
1328
1328
  if (referencepath_contentQualityRepresentationValidationError !== null) {
1329
1329
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
1330
1330
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1372,7 +1372,7 @@ function validate$u(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1372
1372
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
1373
1373
  let obj_safetyScoreRepresentation_union0 = null;
1374
1374
  const obj_safetyScoreRepresentation_union0_error = (() => {
1375
- const referencepath_safetyScoreRepresentationValidationError = validate$v(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1375
+ const referencepath_safetyScoreRepresentationValidationError = validate$D(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
1376
1376
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
1377
1377
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
1378
1378
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1406,12 +1406,12 @@ function validate$u(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1406
1406
  })();
1407
1407
  return v_error === undefined ? null : v_error;
1408
1408
  }
1409
- const select$F = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$H();
1411
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$G();
1409
+ const select$N = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$P();
1411
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$O();
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$o,
1414
+ version: VERSION$w,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1448,7 +1448,7 @@ const select$F = function EinsteinLlmGenerationItemRepresentationSelect() {
1448
1448
  ]
1449
1449
  };
1450
1450
  };
1451
- function equals$o(existing, incoming) {
1451
+ function equals$w(existing, incoming) {
1452
1452
  const existing_isSummarized = existing.isSummarized;
1453
1453
  const incoming_isSummarized = incoming.isSummarized;
1454
1454
  // if at least one of these optionals is defined
@@ -1489,7 +1489,7 @@ function equals$o(existing, incoming) {
1489
1489
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1490
1490
  || (existing_contentQualityRepresentation != null &&
1491
1491
  incoming_contentQualityRepresentation != null &&
1492
- equals$q(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1492
+ equals$y(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1493
1493
  return false;
1494
1494
  }
1495
1495
  }
@@ -1505,15 +1505,15 @@ function equals$o(existing, incoming) {
1505
1505
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1506
1506
  || (existing_safetyScoreRepresentation != null &&
1507
1507
  incoming_safetyScoreRepresentation != null &&
1508
- equals$p(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1508
+ equals$x(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  }
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$n = "379fd960d1a0118f506f458ab2c8dd7e";
1516
- function validate$t(obj, path = 'WrappedMap') {
1515
+ const VERSION$v = "379fd960d1a0118f506f458ab2c8dd7e";
1516
+ function validate$B(obj, path = 'WrappedMap') {
1517
1517
  const v_error = (() => {
1518
1518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1519
1519
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1535,10 +1535,10 @@ function validate$t(obj, path = 'WrappedMap') {
1535
1535
  })();
1536
1536
  return v_error === undefined ? null : v_error;
1537
1537
  }
1538
- const select$E = function WrappedMapSelect() {
1538
+ const select$M = function WrappedMapSelect() {
1539
1539
  return {
1540
1540
  kind: 'Fragment',
1541
- version: VERSION$n,
1541
+ version: VERSION$v,
1542
1542
  private: [],
1543
1543
  selections: [
1544
1544
  {
@@ -1549,7 +1549,7 @@ const select$E = function WrappedMapSelect() {
1549
1549
  ]
1550
1550
  };
1551
1551
  };
1552
- function equals$n(existing, incoming) {
1552
+ function equals$v(existing, incoming) {
1553
1553
  const existing_wrappedMap = existing.wrappedMap;
1554
1554
  const incoming_wrappedMap = incoming.wrappedMap;
1555
1555
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1564,8 +1564,8 @@ function equals$n(existing, incoming) {
1564
1564
  }
1565
1565
 
1566
1566
  const TTL$a = 100;
1567
- const VERSION$m = "d8abd72a42e842b253da1c38954dafbc";
1568
- function validate$s(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1567
+ const VERSION$u = "d8abd72a42e842b253da1c38954dafbc";
1568
+ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1569
1569
  const v_error = (() => {
1570
1570
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1571
1571
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1578,7 +1578,7 @@ function validate$s(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1578
1578
  for (let i = 0; i < obj_generations.length; i++) {
1579
1579
  const obj_generations_item = obj_generations[i];
1580
1580
  const path_generations_item = path_generations + '[' + i + ']';
1581
- const referencepath_generations_itemValidationError = validate$u(obj_generations_item, path_generations_item);
1581
+ const referencepath_generations_itemValidationError = validate$C(obj_generations_item, path_generations_item);
1582
1582
  if (referencepath_generations_itemValidationError !== null) {
1583
1583
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1584
1584
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1589,7 +1589,7 @@ function validate$s(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1589
1589
  const path_parameters = path + '.parameters';
1590
1590
  let obj_parameters_union0 = null;
1591
1591
  const obj_parameters_union0_error = (() => {
1592
- const referencepath_parametersValidationError = validate$t(obj_parameters, path_parameters);
1592
+ const referencepath_parametersValidationError = validate$B(obj_parameters, path_parameters);
1593
1593
  if (referencepath_parametersValidationError !== null) {
1594
1594
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1595
1595
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1661,12 +1661,12 @@ function keyBuilderFromType$3(luvio, object) {
1661
1661
  function normalize$a(input, existing, path, luvio, store, timestamp) {
1662
1662
  return input;
1663
1663
  }
1664
- const select$D = function EinsteinLlmGenerationsRepresentationSelect() {
1665
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$F();
1666
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
1664
+ const select$L = function EinsteinLlmGenerationsRepresentationSelect() {
1665
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$N();
1666
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
1667
1667
  return {
1668
1668
  kind: 'Fragment',
1669
- version: VERSION$m,
1669
+ version: VERSION$u,
1670
1670
  private: [],
1671
1671
  selections: [
1672
1672
  {
@@ -1692,7 +1692,7 @@ const select$D = function EinsteinLlmGenerationsRepresentationSelect() {
1692
1692
  ]
1693
1693
  };
1694
1694
  };
1695
- function equals$m(existing, incoming) {
1695
+ function equals$u(existing, incoming) {
1696
1696
  const existing_requestId = existing.requestId;
1697
1697
  const incoming_requestId = incoming.requestId;
1698
1698
  if (!(existing_requestId === incoming_requestId)) {
@@ -1701,7 +1701,7 @@ function equals$m(existing, incoming) {
1701
1701
  const existing_generations = existing.generations;
1702
1702
  const incoming_generations = incoming.generations;
1703
1703
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1704
- if (!(equals$o(existing_generations_item, incoming_generations_item))) {
1704
+ if (!(equals$w(existing_generations_item, incoming_generations_item))) {
1705
1705
  return false;
1706
1706
  }
1707
1707
  });
@@ -1713,7 +1713,7 @@ function equals$m(existing, incoming) {
1713
1713
  if (!(existing_parameters === incoming_parameters
1714
1714
  || (existing_parameters != null &&
1715
1715
  incoming_parameters != null &&
1716
- equals$n(existing_parameters, incoming_parameters)))) {
1716
+ equals$v(existing_parameters, incoming_parameters)))) {
1717
1717
  return false;
1718
1718
  }
1719
1719
  const existing_prompt = existing.prompt;
@@ -1725,14 +1725,14 @@ function equals$m(existing, incoming) {
1725
1725
  }
1726
1726
  const ingest$a = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1727
1727
  if (process.env.NODE_ENV !== 'production') {
1728
- const validateError = validate$s(input);
1728
+ const validateError = validate$A(input);
1729
1729
  if (validateError !== null) {
1730
1730
  throw validateError;
1731
1731
  }
1732
1732
  }
1733
1733
  const key = keyBuilderFromType$3(luvio, input);
1734
1734
  const ttlToUse = TTL$a;
1735
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$m, RepresentationType$a, equals$m);
1735
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$u, RepresentationType$a, equals$u);
1736
1736
  return createLink(key);
1737
1737
  };
1738
1738
  function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
@@ -1745,8 +1745,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1745
1745
  });
1746
1746
  }
1747
1747
 
1748
- function select$C(luvio, params) {
1749
- return select$D();
1748
+ function select$K(luvio, params) {
1749
+ return select$L();
1750
1750
  }
1751
1751
  function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
1752
1752
  getTypeCacheKeys$a(storeKeyMap, luvio, response);
@@ -1757,7 +1757,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
1757
1757
  luvio.storeIngest(key, ingest$a, body);
1758
1758
  const snapshot = luvio.storeLookup({
1759
1759
  recordId: key,
1760
- node: select$C(),
1760
+ node: select$K(),
1761
1761
  variables: {},
1762
1762
  });
1763
1763
  if (process.env.NODE_ENV !== 'production') {
@@ -1791,7 +1791,7 @@ const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(createGenera
1791
1791
  function typeCheckConfig$g(untrustedConfig) {
1792
1792
  const config = {};
1793
1793
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1794
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$x(untrustedConfig_generationsInput);
1794
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$F(untrustedConfig_generationsInput);
1795
1795
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1796
1796
  config.generationsInput = untrustedConfig_generationsInput;
1797
1797
  }
@@ -1839,7 +1839,7 @@ const createGenerationsAdapterFactory = (luvio) => {
1839
1839
  };
1840
1840
  };
1841
1841
 
1842
- function validate$r(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1842
+ function validate$z(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1843
1843
  const v_error = (() => {
1844
1844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1845
1845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1917,8 +1917,8 @@ function validate$r(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1917
1917
  }
1918
1918
 
1919
1919
  const TTL$9 = 100;
1920
- const VERSION$l = "2d1628544b54fc1701aa9b4eff05127b";
1921
- function validate$q(obj, path = 'EinsteinPromptRecordRepresentation') {
1920
+ const VERSION$t = "2d1628544b54fc1701aa9b4eff05127b";
1921
+ function validate$y(obj, path = 'EinsteinPromptRecordRepresentation') {
1922
1922
  const v_error = (() => {
1923
1923
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1924
1924
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1947,7 +1947,7 @@ function validate$q(obj, path = 'EinsteinPromptRecordRepresentation') {
1947
1947
  for (let i = 0; i < obj_childRelationships_prop.length; i++) {
1948
1948
  const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
1949
1949
  const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
1950
- const referencepath_childRelationships_prop_itemValidationError = validate$q(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1950
+ const referencepath_childRelationships_prop_itemValidationError = validate$y(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1951
1951
  if (referencepath_childRelationships_prop_itemValidationError !== null) {
1952
1952
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
1953
1953
  message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1967,7 +1967,7 @@ function validate$q(obj, path = 'EinsteinPromptRecordRepresentation') {
1967
1967
  const key = obj_fields_keys[i];
1968
1968
  const obj_fields_prop = obj_fields[key];
1969
1969
  const path_fields_prop = path_fields + '["' + key + '"]';
1970
- const referencepath_fields_propValidationError = validate$r(obj_fields_prop, path_fields_prop);
1970
+ const referencepath_fields_propValidationError = validate$z(obj_fields_prop, path_fields_prop);
1971
1971
  if (referencepath_fields_propValidationError !== null) {
1972
1972
  let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
1973
1973
  message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1989,15 +1989,15 @@ const RepresentationType$9 = 'EinsteinPromptRecordRepresentation';
1989
1989
  function normalize$9(input, existing, path, luvio, store, timestamp) {
1990
1990
  return input;
1991
1991
  }
1992
- const select$B = function EinsteinPromptRecordRepresentationSelect() {
1992
+ const select$J = function EinsteinPromptRecordRepresentationSelect() {
1993
1993
  return {
1994
1994
  kind: 'Fragment',
1995
- version: VERSION$l,
1995
+ version: VERSION$t,
1996
1996
  private: [],
1997
1997
  opaque: true
1998
1998
  };
1999
1999
  };
2000
- function equals$l(existing, incoming) {
2000
+ function equals$t(existing, incoming) {
2001
2001
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2002
2002
  return false;
2003
2003
  }
@@ -2005,14 +2005,14 @@ function equals$l(existing, incoming) {
2005
2005
  }
2006
2006
  const ingest$9 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
2007
2007
  if (process.env.NODE_ENV !== 'production') {
2008
- const validateError = validate$q(input);
2008
+ const validateError = validate$y(input);
2009
2009
  if (validateError !== null) {
2010
2010
  throw validateError;
2011
2011
  }
2012
2012
  }
2013
2013
  const key = path.fullPath;
2014
2014
  const ttlToUse = TTL$9;
2015
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$l, RepresentationType$9, equals$l);
2015
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$t, RepresentationType$9, equals$t);
2016
2016
  return createLink(key);
2017
2017
  };
2018
2018
  function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
@@ -2026,8 +2026,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2026
2026
  }
2027
2027
 
2028
2028
  const TTL$8 = 100;
2029
- const VERSION$k = "5fd7b8a03d155ba601bcb4ee725e0893";
2030
- function validate$p(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2029
+ const VERSION$s = "5fd7b8a03d155ba601bcb4ee725e0893";
2030
+ function validate$x(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
2031
2031
  const v_error = (() => {
2032
2032
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2033
2033
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2046,7 +2046,7 @@ function validate$p(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
2046
2046
  for (let i = 0; i < obj_promptRecords.length; i++) {
2047
2047
  const obj_promptRecords_item = obj_promptRecords[i];
2048
2048
  const path_promptRecords_item = path_promptRecords + '[' + i + ']';
2049
- const referencepath_promptRecords_itemValidationError = validate$q(obj_promptRecords_item, path_promptRecords_item);
2049
+ const referencepath_promptRecords_itemValidationError = validate$y(obj_promptRecords_item, path_promptRecords_item);
2050
2050
  if (referencepath_promptRecords_itemValidationError !== null) {
2051
2051
  let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
2052
2052
  message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2066,15 +2066,15 @@ const RepresentationType$8 = 'EinsteinPromptRecordCollectionOutputRepresentation
2066
2066
  function normalize$8(input, existing, path, luvio, store, timestamp) {
2067
2067
  return input;
2068
2068
  }
2069
- const select$A = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2069
+ const select$I = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2070
2070
  return {
2071
2071
  kind: 'Fragment',
2072
- version: VERSION$k,
2072
+ version: VERSION$s,
2073
2073
  private: [],
2074
2074
  opaque: true
2075
2075
  };
2076
2076
  };
2077
- function equals$k(existing, incoming) {
2077
+ function equals$s(existing, incoming) {
2078
2078
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2079
2079
  return false;
2080
2080
  }
@@ -2082,14 +2082,14 @@ function equals$k(existing, incoming) {
2082
2082
  }
2083
2083
  const ingest$8 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2084
2084
  if (process.env.NODE_ENV !== 'production') {
2085
- const validateError = validate$p(input);
2085
+ const validateError = validate$x(input);
2086
2086
  if (validateError !== null) {
2087
2087
  throw validateError;
2088
2088
  }
2089
2089
  }
2090
2090
  const key = path.fullPath;
2091
2091
  const ttlToUse = TTL$8;
2092
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$k, RepresentationType$8, equals$k);
2092
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$s, RepresentationType$8, equals$s);
2093
2093
  return createLink(key);
2094
2094
  };
2095
2095
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -2102,8 +2102,8 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2102
2102
  });
2103
2103
  }
2104
2104
 
2105
- function select$z(luvio, params) {
2106
- return select$A();
2105
+ function select$H(luvio, params) {
2106
+ return select$I();
2107
2107
  }
2108
2108
  function keyBuilder$m(luvio, params) {
2109
2109
  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 + ')';
@@ -2117,7 +2117,7 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
2117
2117
  luvio.storeIngest(key, ingest$8, body);
2118
2118
  const snapshot = luvio.storeLookup({
2119
2119
  recordId: key,
2120
- node: select$z(),
2120
+ node: select$H(),
2121
2121
  variables: {},
2122
2122
  }, snapshotRefresh);
2123
2123
  if (process.env.NODE_ENV !== 'production') {
@@ -2134,7 +2134,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
2134
2134
  const storeMetadataParams = {
2135
2135
  ttl: TTL$8,
2136
2136
  namespace: keyPrefix,
2137
- version: VERSION$k,
2137
+ version: VERSION$s,
2138
2138
  representationName: RepresentationType$8
2139
2139
  };
2140
2140
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -2191,7 +2191,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
2191
2191
  }
2192
2192
  function adapterFragment$9(luvio, config) {
2193
2193
  createResourceParams$f(config);
2194
- return select$z();
2194
+ return select$H();
2195
2195
  }
2196
2196
  function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
2197
2197
  const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
@@ -2248,8 +2248,8 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
2248
2248
  };
2249
2249
 
2250
2250
  const TTL$7 = 100;
2251
- const VERSION$j = "a90a51578e2fdd7a9741d310bed22b1d";
2252
- function validate$o(obj, path = 'EinsteinPromptTemplateRepresentation') {
2251
+ const VERSION$r = "a90a51578e2fdd7a9741d310bed22b1d";
2252
+ function validate$w(obj, path = 'EinsteinPromptTemplateRepresentation') {
2253
2253
  const v_error = (() => {
2254
2254
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2255
2255
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2257,7 +2257,7 @@ function validate$o(obj, path = 'EinsteinPromptTemplateRepresentation') {
2257
2257
  if (obj.additionalData !== undefined) {
2258
2258
  const obj_additionalData = obj.additionalData;
2259
2259
  const path_additionalData = path + '.additionalData';
2260
- const referencepath_additionalDataValidationError = validate$t(obj_additionalData, path_additionalData);
2260
+ const referencepath_additionalDataValidationError = validate$B(obj_additionalData, path_additionalData);
2261
2261
  if (referencepath_additionalDataValidationError !== null) {
2262
2262
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
2263
2263
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2338,11 +2338,11 @@ function keyBuilderFromType$2(luvio, object) {
2338
2338
  function normalize$7(input, existing, path, luvio, store, timestamp) {
2339
2339
  return input;
2340
2340
  }
2341
- const select$y = function EinsteinPromptTemplateRepresentationSelect() {
2342
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
2341
+ const select$G = function EinsteinPromptTemplateRepresentationSelect() {
2342
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
2343
2343
  return {
2344
2344
  kind: 'Fragment',
2345
- version: VERSION$j,
2345
+ version: VERSION$r,
2346
2346
  private: [],
2347
2347
  selections: [
2348
2348
  {
@@ -2390,7 +2390,7 @@ const select$y = function EinsteinPromptTemplateRepresentationSelect() {
2390
2390
  ]
2391
2391
  };
2392
2392
  };
2393
- function equals$j(existing, incoming) {
2393
+ function equals$r(existing, incoming) {
2394
2394
  const existing_hasWarning = existing.hasWarning;
2395
2395
  const incoming_hasWarning = incoming.hasWarning;
2396
2396
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -2446,7 +2446,7 @@ function equals$j(existing, incoming) {
2446
2446
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
2447
2447
  return false;
2448
2448
  }
2449
- if (!(equals$n(existing_additionalData, incoming_additionalData))) {
2449
+ if (!(equals$v(existing_additionalData, incoming_additionalData))) {
2450
2450
  return false;
2451
2451
  }
2452
2452
  }
@@ -2474,14 +2474,14 @@ function equals$j(existing, incoming) {
2474
2474
  }
2475
2475
  const ingest$7 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
2476
2476
  if (process.env.NODE_ENV !== 'production') {
2477
- const validateError = validate$o(input);
2477
+ const validateError = validate$w(input);
2478
2478
  if (validateError !== null) {
2479
2479
  throw validateError;
2480
2480
  }
2481
2481
  }
2482
2482
  const key = keyBuilderFromType$2(luvio, input);
2483
2483
  const ttlToUse = TTL$7;
2484
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$j, RepresentationType$7, equals$j);
2484
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$r, RepresentationType$7, equals$r);
2485
2485
  return createLink(key);
2486
2486
  };
2487
2487
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -2494,8 +2494,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
2494
2494
  });
2495
2495
  }
2496
2496
 
2497
- function select$x(luvio, params) {
2498
- return select$y();
2497
+ function select$F(luvio, params) {
2498
+ return select$G();
2499
2499
  }
2500
2500
  function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
2501
2501
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
@@ -2506,7 +2506,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
2506
2506
  luvio.storeIngest(key, ingest$7, body);
2507
2507
  const snapshot = luvio.storeLookup({
2508
2508
  recordId: key,
2509
- node: select$x(),
2509
+ node: select$F(),
2510
2510
  variables: {},
2511
2511
  });
2512
2512
  if (process.env.NODE_ENV !== 'production') {
@@ -2617,7 +2617,7 @@ const createPromptTemplateAdapterFactory = (luvio) => {
2617
2617
  };
2618
2618
  };
2619
2619
 
2620
- function validate$n(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2620
+ function validate$v(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
2621
2621
  const v_error = (() => {
2622
2622
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2623
2623
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2643,7 +2643,7 @@ function validate$n(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
2643
2643
  return v_error === undefined ? null : v_error;
2644
2644
  }
2645
2645
 
2646
- function validate$m(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2646
+ function validate$u(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
2647
2647
  const v_error = (() => {
2648
2648
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2649
2649
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2673,8 +2673,8 @@ function validate$m(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
2673
2673
  }
2674
2674
 
2675
2675
  const TTL$6 = 300;
2676
- const VERSION$i = "d4824d8c6e7848df0de89295e6d9d434";
2677
- function validate$l(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2676
+ const VERSION$q = "d4824d8c6e7848df0de89295e6d9d434";
2677
+ function validate$t(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2678
2678
  const v_error = (() => {
2679
2679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2680
2680
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2703,7 +2703,7 @@ function validate$l(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2703
2703
  if (obj.defaultOutputParam !== undefined) {
2704
2704
  const obj_defaultOutputParam = obj.defaultOutputParam;
2705
2705
  const path_defaultOutputParam = path + '.defaultOutputParam';
2706
- const referencepath_defaultOutputParamValidationError = validate$n(obj_defaultOutputParam, path_defaultOutputParam);
2706
+ const referencepath_defaultOutputParamValidationError = validate$v(obj_defaultOutputParam, path_defaultOutputParam);
2707
2707
  if (referencepath_defaultOutputParamValidationError !== null) {
2708
2708
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
2709
2709
  message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2757,7 +2757,7 @@ function validate$l(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2757
2757
  for (let i = 0; i < obj_inputParams.length; i++) {
2758
2758
  const obj_inputParams_item = obj_inputParams[i];
2759
2759
  const path_inputParams_item = path_inputParams + '[' + i + ']';
2760
- const referencepath_inputParams_itemValidationError = validate$m(obj_inputParams_item, path_inputParams_item);
2760
+ const referencepath_inputParams_itemValidationError = validate$u(obj_inputParams_item, path_inputParams_item);
2761
2761
  if (referencepath_inputParams_itemValidationError !== null) {
2762
2762
  let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
2763
2763
  message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2823,7 +2823,7 @@ function validate$l(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2823
2823
  for (let i = 0; i < obj_outputParams.length; i++) {
2824
2824
  const obj_outputParams_item = obj_outputParams[i];
2825
2825
  const path_outputParams_item = path_outputParams + '[' + i + ']';
2826
- const referencepath_outputParams_itemValidationError = validate$n(obj_outputParams_item, path_outputParams_item);
2826
+ const referencepath_outputParams_itemValidationError = validate$v(obj_outputParams_item, path_outputParams_item);
2827
2827
  if (referencepath_outputParams_itemValidationError !== null) {
2828
2828
  let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
2829
2829
  message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2899,15 +2899,15 @@ const RepresentationType$6 = 'PromptTemplateDataProviderInstanceConfigRepresenta
2899
2899
  function normalize$6(input, existing, path, luvio, store, timestamp) {
2900
2900
  return input;
2901
2901
  }
2902
- const select$w = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2902
+ const select$E = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
2903
2903
  return {
2904
2904
  kind: 'Fragment',
2905
- version: VERSION$i,
2905
+ version: VERSION$q,
2906
2906
  private: [],
2907
2907
  opaque: true
2908
2908
  };
2909
2909
  };
2910
- function equals$i(existing, incoming) {
2910
+ function equals$q(existing, incoming) {
2911
2911
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2912
2912
  return false;
2913
2913
  }
@@ -2915,14 +2915,14 @@ function equals$i(existing, incoming) {
2915
2915
  }
2916
2916
  const ingest$6 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
2917
2917
  if (process.env.NODE_ENV !== 'production') {
2918
- const validateError = validate$l(input);
2918
+ const validateError = validate$t(input);
2919
2919
  if (validateError !== null) {
2920
2920
  throw validateError;
2921
2921
  }
2922
2922
  }
2923
2923
  const key = path.fullPath;
2924
2924
  const ttlToUse = TTL$6;
2925
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$i, RepresentationType$6, equals$i);
2925
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$q, RepresentationType$6, equals$q);
2926
2926
  return createLink(key);
2927
2927
  };
2928
2928
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -2936,8 +2936,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2936
2936
  }
2937
2937
 
2938
2938
  const TTL$5 = 300;
2939
- const VERSION$h = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2940
- function validate$k(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2939
+ const VERSION$p = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
2940
+ function validate$s(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
2941
2941
  const v_error = (() => {
2942
2942
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2943
2943
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2950,7 +2950,7 @@ function validate$k(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
2950
2950
  for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
2951
2951
  const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
2952
2952
  const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
2953
- const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$l(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2953
+ const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$t(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
2954
2954
  if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
2955
2955
  let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
2956
2956
  message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2964,15 +2964,15 @@ const RepresentationType$5 = 'PromptTemplateDataProviderInstanceConfigCollection
2964
2964
  function normalize$5(input, existing, path, luvio, store, timestamp) {
2965
2965
  return input;
2966
2966
  }
2967
- const select$v = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2967
+ const select$D = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
2968
2968
  return {
2969
2969
  kind: 'Fragment',
2970
- version: VERSION$h,
2970
+ version: VERSION$p,
2971
2971
  private: [],
2972
2972
  opaque: true
2973
2973
  };
2974
2974
  };
2975
- function equals$h(existing, incoming) {
2975
+ function equals$p(existing, incoming) {
2976
2976
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2977
2977
  return false;
2978
2978
  }
@@ -2980,14 +2980,14 @@ function equals$h(existing, incoming) {
2980
2980
  }
2981
2981
  const ingest$5 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2982
2982
  if (process.env.NODE_ENV !== 'production') {
2983
- const validateError = validate$k(input);
2983
+ const validateError = validate$s(input);
2984
2984
  if (validateError !== null) {
2985
2985
  throw validateError;
2986
2986
  }
2987
2987
  }
2988
2988
  const key = path.fullPath;
2989
2989
  const ttlToUse = TTL$5;
2990
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$h, RepresentationType$5, equals$h);
2990
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$p, RepresentationType$5, equals$p);
2991
2991
  return createLink(key);
2992
2992
  };
2993
2993
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -3000,8 +3000,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3000
3000
  });
3001
3001
  }
3002
3002
 
3003
- function select$u(luvio, params) {
3004
- return select$v();
3003
+ function select$C(luvio, params) {
3004
+ return select$D();
3005
3005
  }
3006
3006
  function keyBuilder$j(luvio, params) {
3007
3007
  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 + ')';
@@ -3015,7 +3015,7 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
3015
3015
  luvio.storeIngest(key, ingest$5, body);
3016
3016
  const snapshot = luvio.storeLookup({
3017
3017
  recordId: key,
3018
- node: select$u(),
3018
+ node: select$C(),
3019
3019
  variables: {},
3020
3020
  }, snapshotRefresh);
3021
3021
  if (process.env.NODE_ENV !== 'production') {
@@ -3032,7 +3032,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
3032
3032
  const storeMetadataParams = {
3033
3033
  ttl: TTL$5,
3034
3034
  namespace: keyPrefix,
3035
- version: VERSION$h,
3035
+ version: VERSION$p,
3036
3036
  representationName: RepresentationType$5
3037
3037
  };
3038
3038
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -3094,7 +3094,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3094
3094
  }
3095
3095
  function adapterFragment$8(luvio, config) {
3096
3096
  createResourceParams$d(config);
3097
- return select$u();
3097
+ return select$C();
3098
3098
  }
3099
3099
  function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
3100
3100
  const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
@@ -3150,8 +3150,8 @@ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLL
3150
3150
  buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
3151
3151
  };
3152
3152
 
3153
- function select$t(luvio, params) {
3154
- return select$v();
3153
+ function select$B(luvio, params) {
3154
+ return select$D();
3155
3155
  }
3156
3156
  function keyBuilder$h(luvio, params) {
3157
3157
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
@@ -3165,7 +3165,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
3165
3165
  luvio.storeIngest(key, ingest$5, body);
3166
3166
  const snapshot = luvio.storeLookup({
3167
3167
  recordId: key,
3168
- node: select$t(),
3168
+ node: select$B(),
3169
3169
  variables: {},
3170
3170
  }, snapshotRefresh);
3171
3171
  if (process.env.NODE_ENV !== 'production') {
@@ -3182,7 +3182,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
3182
3182
  const storeMetadataParams = {
3183
3183
  ttl: TTL$5,
3184
3184
  namespace: keyPrefix,
3185
- version: VERSION$h,
3185
+ version: VERSION$p,
3186
3186
  representationName: RepresentationType$5
3187
3187
  };
3188
3188
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -3234,7 +3234,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3234
3234
  }
3235
3235
  function adapterFragment$7(luvio, config) {
3236
3236
  createResourceParams$c(config);
3237
- return select$t();
3237
+ return select$B();
3238
3238
  }
3239
3239
  function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
3240
3240
  const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
@@ -3290,8 +3290,8 @@ const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataP
3290
3290
  buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
3291
3291
  };
3292
3292
 
3293
- function select$s(luvio, params) {
3294
- return select$w();
3293
+ function select$A(luvio, params) {
3294
+ return select$E();
3295
3295
  }
3296
3296
  function keyBuilder$f(luvio, params) {
3297
3297
  return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
@@ -3305,7 +3305,7 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
3305
3305
  luvio.storeIngest(key, ingest$6, body);
3306
3306
  const snapshot = luvio.storeLookup({
3307
3307
  recordId: key,
3308
- node: select$s(),
3308
+ node: select$A(),
3309
3309
  variables: {},
3310
3310
  }, snapshotRefresh);
3311
3311
  if (process.env.NODE_ENV !== 'production') {
@@ -3322,7 +3322,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
3322
3322
  const storeMetadataParams = {
3323
3323
  ttl: TTL$6,
3324
3324
  namespace: keyPrefix,
3325
- version: VERSION$i,
3325
+ version: VERSION$q,
3326
3326
  representationName: RepresentationType$6
3327
3327
  };
3328
3328
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -3389,7 +3389,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
3389
3389
  }
3390
3390
  function adapterFragment$6(luvio, config) {
3391
3391
  createResourceParams$b(config);
3392
- return select$s();
3392
+ return select$A();
3393
3393
  }
3394
3394
  function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
3395
3395
  const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
@@ -3445,7 +3445,7 @@ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function Einstein
3445
3445
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3446
3446
  };
3447
3447
 
3448
- function validate$j(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
3448
+ function validate$r(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
3449
3449
  const v_error = (() => {
3450
3450
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3451
3451
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3496,8 +3496,8 @@ function validate$j(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentat
3496
3496
  }
3497
3497
 
3498
3498
  const TTL$4 = 300;
3499
- const VERSION$g = "212332dac1decc071b476742df3440fb";
3500
- function validate$i(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
3499
+ const VERSION$o = "212332dac1decc071b476742df3440fb";
3500
+ function validate$q(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
3501
3501
  const v_error = (() => {
3502
3502
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3503
3503
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3510,7 +3510,7 @@ function validate$i(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
3510
3510
  for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
3511
3511
  const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
3512
3512
  const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
3513
- const referencepath_dataProviderTypeConfigs_itemValidationError = validate$j(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
3513
+ const referencepath_dataProviderTypeConfigs_itemValidationError = validate$r(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
3514
3514
  if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
3515
3515
  let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
3516
3516
  message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3524,15 +3524,15 @@ const RepresentationType$4 = 'PromptTemplateDataProviderTypeConfigCollectionRepr
3524
3524
  function normalize$4(input, existing, path, luvio, store, timestamp) {
3525
3525
  return input;
3526
3526
  }
3527
- const select$r = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
3527
+ const select$z = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
3528
3528
  return {
3529
3529
  kind: 'Fragment',
3530
- version: VERSION$g,
3530
+ version: VERSION$o,
3531
3531
  private: [],
3532
3532
  opaque: true
3533
3533
  };
3534
3534
  };
3535
- function equals$g(existing, incoming) {
3535
+ function equals$o(existing, incoming) {
3536
3536
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3537
3537
  return false;
3538
3538
  }
@@ -3540,14 +3540,14 @@ function equals$g(existing, incoming) {
3540
3540
  }
3541
3541
  const ingest$4 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3542
3542
  if (process.env.NODE_ENV !== 'production') {
3543
- const validateError = validate$i(input);
3543
+ const validateError = validate$q(input);
3544
3544
  if (validateError !== null) {
3545
3545
  throw validateError;
3546
3546
  }
3547
3547
  }
3548
3548
  const key = path.fullPath;
3549
3549
  const ttlToUse = TTL$4;
3550
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$g, RepresentationType$4, equals$g);
3550
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$o, RepresentationType$4, equals$o);
3551
3551
  return createLink(key);
3552
3552
  };
3553
3553
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -3560,8 +3560,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
3560
3560
  });
3561
3561
  }
3562
3562
 
3563
- function select$q(luvio, params) {
3564
- return select$r();
3563
+ function select$y(luvio, params) {
3564
+ return select$z();
3565
3565
  }
3566
3566
  function keyBuilder$d(luvio, params) {
3567
3567
  return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
@@ -3575,7 +3575,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
3575
3575
  luvio.storeIngest(key, ingest$4, body);
3576
3576
  const snapshot = luvio.storeLookup({
3577
3577
  recordId: key,
3578
- node: select$q(),
3578
+ node: select$y(),
3579
3579
  variables: {},
3580
3580
  }, snapshotRefresh);
3581
3581
  if (process.env.NODE_ENV !== 'production') {
@@ -3592,7 +3592,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
3592
3592
  const storeMetadataParams = {
3593
3593
  ttl: TTL$4,
3594
3594
  namespace: keyPrefix,
3595
- version: VERSION$g,
3595
+ version: VERSION$o,
3596
3596
  representationName: RepresentationType$4
3597
3597
  };
3598
3598
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -3642,7 +3642,7 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
3642
3642
  }
3643
3643
  function adapterFragment$5(luvio, config) {
3644
3644
  createResourceParams$a(config);
3645
- return select$q();
3645
+ return select$y();
3646
3646
  }
3647
3647
  function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
3648
3648
  const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
@@ -3698,8 +3698,8 @@ const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM
3698
3698
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3699
3699
  };
3700
3700
 
3701
- function select$p(luvio, params) {
3702
- return select$B();
3701
+ function select$x(luvio, params) {
3702
+ return select$J();
3703
3703
  }
3704
3704
  function keyBuilder$b(luvio, params) {
3705
3705
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
@@ -3713,7 +3713,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
3713
3713
  luvio.storeIngest(key, ingest$9, body);
3714
3714
  const snapshot = luvio.storeLookup({
3715
3715
  recordId: key,
3716
- node: select$p(),
3716
+ node: select$x(),
3717
3717
  variables: {},
3718
3718
  }, snapshotRefresh);
3719
3719
  if (process.env.NODE_ENV !== 'production') {
@@ -3730,7 +3730,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
3730
3730
  const storeMetadataParams = {
3731
3731
  ttl: TTL$9,
3732
3732
  namespace: keyPrefix,
3733
- version: VERSION$l,
3733
+ version: VERSION$t,
3734
3734
  representationName: RepresentationType$9
3735
3735
  };
3736
3736
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -3781,7 +3781,7 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
3781
3781
  }
3782
3782
  function adapterFragment$4(luvio, config) {
3783
3783
  createResourceParams$9(config);
3784
- return select$p();
3784
+ return select$x();
3785
3785
  }
3786
3786
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
3787
3787
  const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
@@ -3838,8 +3838,8 @@ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getProm
3838
3838
  };
3839
3839
 
3840
3840
  const TTL$3 = 100;
3841
- const VERSION$f = "ecde90304d12947c5205ddc7c99d747b";
3842
- function validate$h(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3841
+ const VERSION$n = "ecde90304d12947c5205ddc7c99d747b";
3842
+ function validate$p(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3843
3843
  const v_error = (() => {
3844
3844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3845
3845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3847,7 +3847,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
3847
3847
  if (obj.additionalData !== undefined) {
3848
3848
  const obj_additionalData = obj.additionalData;
3849
3849
  const path_additionalData = path + '.additionalData';
3850
- const referencepath_additionalDataValidationError = validate$t(obj_additionalData, path_additionalData);
3850
+ const referencepath_additionalDataValidationError = validate$B(obj_additionalData, path_additionalData);
3851
3851
  if (referencepath_additionalDataValidationError !== null) {
3852
3852
  let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
3853
3853
  message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3923,11 +3923,11 @@ function keyBuilderFromType$1(luvio, object) {
3923
3923
  function normalize$3(input, existing, path, luvio, store, timestamp) {
3924
3924
  return input;
3925
3925
  }
3926
- const select$o = function EinsteinPromptTemplateStatusRepresentationSelect() {
3927
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
3926
+ const select$w = function EinsteinPromptTemplateStatusRepresentationSelect() {
3927
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
3928
3928
  return {
3929
3929
  kind: 'Fragment',
3930
- version: VERSION$f,
3930
+ version: VERSION$n,
3931
3931
  private: [],
3932
3932
  selections: [
3933
3933
  {
@@ -3971,7 +3971,7 @@ const select$o = function EinsteinPromptTemplateStatusRepresentationSelect() {
3971
3971
  ]
3972
3972
  };
3973
3973
  };
3974
- function equals$f(existing, incoming) {
3974
+ function equals$n(existing, incoming) {
3975
3975
  const existing_hasWarning = existing.hasWarning;
3976
3976
  const incoming_hasWarning = incoming.hasWarning;
3977
3977
  if (!(existing_hasWarning === incoming_hasWarning)) {
@@ -4022,7 +4022,7 @@ function equals$f(existing, incoming) {
4022
4022
  if (existing_additionalData === undefined || incoming_additionalData === undefined) {
4023
4023
  return false;
4024
4024
  }
4025
- if (!(equals$n(existing_additionalData, incoming_additionalData))) {
4025
+ if (!(equals$v(existing_additionalData, incoming_additionalData))) {
4026
4026
  return false;
4027
4027
  }
4028
4028
  }
@@ -4050,14 +4050,14 @@ function equals$f(existing, incoming) {
4050
4050
  }
4051
4051
  const ingest$3 = function EinsteinPromptTemplateStatusRepresentationIngest(input, path, luvio, store, timestamp) {
4052
4052
  if (process.env.NODE_ENV !== 'production') {
4053
- const validateError = validate$h(input);
4053
+ const validateError = validate$p(input);
4054
4054
  if (validateError !== null) {
4055
4055
  throw validateError;
4056
4056
  }
4057
4057
  }
4058
4058
  const key = keyBuilderFromType$1(luvio, input);
4059
4059
  const ttlToUse = TTL$3;
4060
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$f, RepresentationType$3, equals$f);
4060
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$n, RepresentationType$3, equals$n);
4061
4061
  return createLink(key);
4062
4062
  };
4063
4063
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -4070,8 +4070,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4070
4070
  });
4071
4071
  }
4072
4072
 
4073
- function select$n(luvio, params) {
4074
- return select$o();
4073
+ function select$v(luvio, params) {
4074
+ return select$w();
4075
4075
  }
4076
4076
  function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
4077
4077
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -4082,7 +4082,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
4082
4082
  luvio.storeIngest(key, ingest$3, body);
4083
4083
  const snapshot = luvio.storeLookup({
4084
4084
  recordId: key,
4085
- node: select$n(),
4085
+ node: select$v(),
4086
4086
  variables: {},
4087
4087
  });
4088
4088
  if (process.env.NODE_ENV !== 'production') {
@@ -4161,8 +4161,8 @@ const putEinsteinPromptTemplateStatusAdapterFactory = (luvio) => {
4161
4161
  };
4162
4162
  };
4163
4163
 
4164
- function select$m(luvio, params) {
4165
- return select$B();
4164
+ function select$u(luvio, params) {
4165
+ return select$J();
4166
4166
  }
4167
4167
  function keyBuilder$8(luvio, params) {
4168
4168
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
@@ -4176,7 +4176,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
4176
4176
  luvio.storeIngest(key, ingest$9, body);
4177
4177
  const snapshot = luvio.storeLookup({
4178
4178
  recordId: key,
4179
- node: select$m(),
4179
+ node: select$u(),
4180
4180
  variables: {},
4181
4181
  }, snapshotRefresh);
4182
4182
  if (process.env.NODE_ENV !== 'production') {
@@ -4193,7 +4193,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4193
4193
  const storeMetadataParams = {
4194
4194
  ttl: TTL$9,
4195
4195
  namespace: keyPrefix,
4196
- version: VERSION$l,
4196
+ version: VERSION$t,
4197
4197
  representationName: RepresentationType$9
4198
4198
  };
4199
4199
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4245,7 +4245,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
4245
4245
  }
4246
4246
  function adapterFragment$3(luvio, config) {
4247
4247
  createResourceParams$7(config);
4248
- return select$m();
4248
+ return select$u();
4249
4249
  }
4250
4250
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
4251
4251
  const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
@@ -4301,8 +4301,8 @@ const getPromptTemplateVersionsAdapterFactory = (luvio) => function EinsteinLLM_
4301
4301
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
4302
4302
  };
4303
4303
 
4304
- function select$l(luvio, params) {
4305
- return select$y();
4304
+ function select$t(luvio, params) {
4305
+ return select$G();
4306
4306
  }
4307
4307
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
4308
4308
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
@@ -4313,7 +4313,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
4313
4313
  luvio.storeIngest(key, ingest$7, body);
4314
4314
  const snapshot = luvio.storeLookup({
4315
4315
  recordId: key,
4316
- node: select$l(),
4316
+ node: select$t(),
4317
4317
  variables: {},
4318
4318
  });
4319
4319
  if (process.env.NODE_ENV !== 'production') {
@@ -4425,8 +4425,8 @@ const createPromptTemplateVersionAdapterFactory = (luvio) => {
4425
4425
  };
4426
4426
  };
4427
4427
 
4428
- function select$k(luvio, params) {
4429
- return select$B();
4428
+ function select$s(luvio, params) {
4429
+ return select$J();
4430
4430
  }
4431
4431
  function keyBuilder$6(luvio, params) {
4432
4432
  return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ',' + 'versionId:' + params.urlParams.versionId + ')';
@@ -4440,7 +4440,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
4440
4440
  luvio.storeIngest(key, ingest$9, body);
4441
4441
  const snapshot = luvio.storeLookup({
4442
4442
  recordId: key,
4443
- node: select$k(),
4443
+ node: select$s(),
4444
4444
  variables: {},
4445
4445
  }, snapshotRefresh);
4446
4446
  if (process.env.NODE_ENV !== 'production') {
@@ -4457,7 +4457,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4457
4457
  const storeMetadataParams = {
4458
4458
  ttl: TTL$9,
4459
4459
  namespace: keyPrefix,
4460
- version: VERSION$l,
4460
+ version: VERSION$t,
4461
4461
  representationName: RepresentationType$9
4462
4462
  };
4463
4463
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4510,7 +4510,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
4510
4510
  }
4511
4511
  function adapterFragment$2(luvio, config) {
4512
4512
  createResourceParams$5(config);
4513
- return select$k();
4513
+ return select$s();
4514
4514
  }
4515
4515
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4516
4516
  const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
@@ -4566,8 +4566,8 @@ const getPromptTemplateVersionAdapterFactory = (luvio) => function EinsteinLLM__
4566
4566
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4567
4567
  };
4568
4568
 
4569
- function select$j(luvio, params) {
4570
- return select$y();
4569
+ function select$r(luvio, params) {
4570
+ return select$G();
4571
4571
  }
4572
4572
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
4573
4573
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
@@ -4578,7 +4578,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
4578
4578
  luvio.storeIngest(key, ingest$7, body);
4579
4579
  const snapshot = luvio.storeLookup({
4580
4580
  recordId: key,
4581
- node: select$j(),
4581
+ node: select$r(),
4582
4582
  variables: {},
4583
4583
  });
4584
4584
  if (process.env.NODE_ENV !== 'production') {
@@ -4691,8 +4691,8 @@ const updatePromptTemplateVersionAdapterFactory = (luvio) => {
4691
4691
  };
4692
4692
  };
4693
4693
 
4694
- function select$i(luvio, params) {
4695
- return select$y();
4694
+ function select$q(luvio, params) {
4695
+ return select$G();
4696
4696
  }
4697
4697
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4698
4698
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
@@ -4703,7 +4703,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
4703
4703
  luvio.storeIngest(key, ingest$7, body);
4704
4704
  const snapshot = luvio.storeLookup({
4705
4705
  recordId: key,
4706
- node: select$i(),
4706
+ node: select$q(),
4707
4707
  variables: {},
4708
4708
  });
4709
4709
  if (process.env.NODE_ENV !== 'production') {
@@ -4784,7 +4784,7 @@ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
4784
4784
  };
4785
4785
  };
4786
4786
 
4787
- function validate$g(obj, path = 'WrappedValueMap') {
4787
+ function validate$o(obj, path = 'WrappedValueMap') {
4788
4788
  const v_error = (() => {
4789
4789
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4790
4790
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4807,7 +4807,7 @@ function validate$g(obj, path = 'WrappedValueMap') {
4807
4807
  return v_error === undefined ? null : v_error;
4808
4808
  }
4809
4809
 
4810
- function validate$f(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
4810
+ function validate$n(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
4811
4811
  const v_error = (() => {
4812
4812
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4813
4813
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4815,16 +4815,23 @@ function validate$f(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
4815
4815
  if (obj.additionalConfig !== undefined) {
4816
4816
  const obj_additionalConfig = obj.additionalConfig;
4817
4817
  const path_additionalConfig = path + '.additionalConfig';
4818
- const referencepath_additionalConfigValidationError = validate$y(obj_additionalConfig, path_additionalConfig);
4818
+ const referencepath_additionalConfigValidationError = validate$G(obj_additionalConfig, path_additionalConfig);
4819
4819
  if (referencepath_additionalConfigValidationError !== null) {
4820
4820
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
4821
4821
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4822
4822
  return new TypeError(message);
4823
4823
  }
4824
4824
  }
4825
+ if (obj.includeMetrics !== undefined) {
4826
+ const obj_includeMetrics = obj.includeMetrics;
4827
+ const path_includeMetrics = path + '.includeMetrics';
4828
+ if (typeof obj_includeMetrics !== 'boolean') {
4829
+ return new TypeError('Expected "boolean" but received "' + typeof obj_includeMetrics + '" (at "' + path_includeMetrics + '")');
4830
+ }
4831
+ }
4825
4832
  const obj_inputParams = obj.inputParams;
4826
4833
  const path_inputParams = path + '.inputParams';
4827
- const referencepath_inputParamsValidationError = validate$g(obj_inputParams, path_inputParams);
4834
+ const referencepath_inputParamsValidationError = validate$o(obj_inputParams, path_inputParams);
4828
4835
  if (referencepath_inputParamsValidationError !== null) {
4829
4836
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
4830
4837
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4860,8 +4867,8 @@ function validate$f(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
4860
4867
  return v_error === undefined ? null : v_error;
4861
4868
  }
4862
4869
 
4863
- const VERSION$e = "6a209d0b32d59e6e04155812fdf5c985";
4864
- function validate$e(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
4870
+ const VERSION$m = "6a209d0b32d59e6e04155812fdf5c985";
4871
+ function validate$m(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
4865
4872
  const v_error = (() => {
4866
4873
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4867
4874
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4925,10 +4932,10 @@ function validate$e(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
4925
4932
  })();
4926
4933
  return v_error === undefined ? null : v_error;
4927
4934
  }
4928
- const select$h = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
4935
+ const select$p = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
4929
4936
  return {
4930
4937
  kind: 'Fragment',
4931
- version: VERSION$e,
4938
+ version: VERSION$m,
4932
4939
  private: [],
4933
4940
  selections: [
4934
4941
  {
@@ -4966,7 +4973,7 @@ const select$h = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
4966
4973
  ]
4967
4974
  };
4968
4975
  };
4969
- function equals$e(existing, incoming) {
4976
+ function equals$m(existing, incoming) {
4970
4977
  const existing_label = existing.label;
4971
4978
  const incoming_label = incoming.label;
4972
4979
  // if at least one of these optionals is defined
@@ -5058,8 +5065,8 @@ function equals$e(existing, incoming) {
5058
5065
  return true;
5059
5066
  }
5060
5067
 
5061
- const VERSION$d = "bcc0ea08323732f4187dd2b9f70fea6c";
5062
- function validate$d(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
5068
+ const VERSION$l = "bcc0ea08323732f4187dd2b9f70fea6c";
5069
+ function validate$l(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
5063
5070
  const v_error = (() => {
5064
5071
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5065
5072
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5073,7 +5080,7 @@ function validate$d(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
5073
5080
  for (let i = 0; i < obj_citedReferences.length; i++) {
5074
5081
  const obj_citedReferences_item = obj_citedReferences[i];
5075
5082
  const path_citedReferences_item = path_citedReferences + '[' + i + ']';
5076
- const referencepath_citedReferences_itemValidationError = validate$e(obj_citedReferences_item, path_citedReferences_item);
5083
+ const referencepath_citedReferences_itemValidationError = validate$m(obj_citedReferences_item, path_citedReferences_item);
5077
5084
  if (referencepath_citedReferences_itemValidationError !== null) {
5078
5085
  let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
5079
5086
  message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5084,11 +5091,11 @@ function validate$d(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
5084
5091
  })();
5085
5092
  return v_error === undefined ? null : v_error;
5086
5093
  }
5087
- const select$g = function EinsteinLlmGenerationCitationRepresentationSelect() {
5088
- const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$h();
5094
+ const select$o = function EinsteinLlmGenerationCitationRepresentationSelect() {
5095
+ const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$p();
5089
5096
  return {
5090
5097
  kind: 'Fragment',
5091
- version: VERSION$d,
5098
+ version: VERSION$l,
5092
5099
  private: [],
5093
5100
  selections: [
5094
5101
  {
@@ -5101,7 +5108,7 @@ const select$g = function EinsteinLlmGenerationCitationRepresentationSelect() {
5101
5108
  ]
5102
5109
  };
5103
5110
  };
5104
- function equals$d(existing, incoming) {
5111
+ function equals$l(existing, incoming) {
5105
5112
  const existing_citedReferences = existing.citedReferences;
5106
5113
  const incoming_citedReferences = incoming.citedReferences;
5107
5114
  // if at least one of these optionals is defined
@@ -5112,7 +5119,7 @@ function equals$d(existing, incoming) {
5112
5119
  return false;
5113
5120
  }
5114
5121
  const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
5115
- if (!(equals$e(existing_citedReferences_item, incoming_citedReferences_item))) {
5122
+ if (!(equals$m(existing_citedReferences_item, incoming_citedReferences_item))) {
5116
5123
  return false;
5117
5124
  }
5118
5125
  });
@@ -5123,8 +5130,8 @@ function equals$d(existing, incoming) {
5123
5130
  return true;
5124
5131
  }
5125
5132
 
5126
- const VERSION$c = "f62ac44b024b123f079b57f349e05230";
5127
- function validate$c(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
5133
+ const VERSION$k = "f62ac44b024b123f079b57f349e05230";
5134
+ function validate$k(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
5128
5135
  const v_error = (() => {
5129
5136
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5130
5137
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5142,10 +5149,10 @@ function validate$c(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
5142
5149
  })();
5143
5150
  return v_error === undefined ? null : v_error;
5144
5151
  }
5145
- const select$f = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
5152
+ const select$n = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
5146
5153
  return {
5147
5154
  kind: 'Fragment',
5148
- version: VERSION$c,
5155
+ version: VERSION$k,
5149
5156
  private: [],
5150
5157
  selections: [
5151
5158
  {
@@ -5159,7 +5166,7 @@ const select$f = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
5159
5166
  ]
5160
5167
  };
5161
5168
  };
5162
- function equals$c(existing, incoming) {
5169
+ function equals$k(existing, incoming) {
5163
5170
  const existing_isExcluded = existing.isExcluded;
5164
5171
  const incoming_isExcluded = incoming.isExcluded;
5165
5172
  if (!(existing_isExcluded === incoming_isExcluded)) {
@@ -5173,8 +5180,8 @@ function equals$c(existing, incoming) {
5173
5180
  return true;
5174
5181
  }
5175
5182
 
5176
- const VERSION$b = "b85a5621c60125d9f1644af130f67680";
5177
- function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
5183
+ const VERSION$j = "b85a5621c60125d9f1644af130f67680";
5184
+ function validate$j(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
5178
5185
  const v_error = (() => {
5179
5186
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5180
5187
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5182,7 +5189,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
5182
5189
  if (obj.exclusionInfo !== undefined) {
5183
5190
  const obj_exclusionInfo = obj.exclusionInfo;
5184
5191
  const path_exclusionInfo = path + '.exclusionInfo';
5185
- const referencepath_exclusionInfoValidationError = validate$c(obj_exclusionInfo, path_exclusionInfo);
5192
+ const referencepath_exclusionInfoValidationError = validate$k(obj_exclusionInfo, path_exclusionInfo);
5186
5193
  if (referencepath_exclusionInfoValidationError !== null) {
5187
5194
  let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
5188
5195
  message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5219,11 +5226,11 @@ function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
5219
5226
  })();
5220
5227
  return v_error === undefined ? null : v_error;
5221
5228
  }
5222
- const select$e = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
5223
- const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$f();
5229
+ const select$m = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
5230
+ const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$n();
5224
5231
  return {
5225
5232
  kind: 'Fragment',
5226
- version: VERSION$b,
5233
+ version: VERSION$j,
5227
5234
  private: [],
5228
5235
  selections: [
5229
5236
  {
@@ -5256,7 +5263,7 @@ const select$e = function EinsteinPromptTemplateAttachmentRepresentationSelect()
5256
5263
  ]
5257
5264
  };
5258
5265
  };
5259
- function equals$b(existing, incoming) {
5266
+ function equals$j(existing, incoming) {
5260
5267
  const existing_fileExtension = existing.fileExtension;
5261
5268
  const incoming_fileExtension = incoming.fileExtension;
5262
5269
  if (!(existing_fileExtension === incoming_fileExtension)) {
@@ -5299,15 +5306,15 @@ function equals$b(existing, incoming) {
5299
5306
  if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
5300
5307
  return false;
5301
5308
  }
5302
- if (!(equals$c(existing_exclusionInfo, incoming_exclusionInfo))) {
5309
+ if (!(equals$k(existing_exclusionInfo, incoming_exclusionInfo))) {
5303
5310
  return false;
5304
5311
  }
5305
5312
  }
5306
5313
  return true;
5307
5314
  }
5308
5315
 
5309
- const VERSION$a = "6458d624e5a1691821c764b6de0badb3";
5310
- function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
5316
+ const VERSION$i = "6458d624e5a1691821c764b6de0badb3";
5317
+ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
5311
5318
  const v_error = (() => {
5312
5319
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5313
5320
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5337,10 +5344,10 @@ function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
5337
5344
  })();
5338
5345
  return v_error === undefined ? null : v_error;
5339
5346
  }
5340
- const select$d = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
5347
+ const select$l = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
5341
5348
  return {
5342
5349
  kind: 'Fragment',
5343
- version: VERSION$a,
5350
+ version: VERSION$i,
5344
5351
  private: [],
5345
5352
  selections: [
5346
5353
  {
@@ -5363,7 +5370,7 @@ const select$d = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
5363
5370
  ]
5364
5371
  };
5365
5372
  };
5366
- function equals$a(existing, incoming) {
5373
+ function equals$i(existing, incoming) {
5367
5374
  const existing_errorMessage = existing.errorMessage;
5368
5375
  const incoming_errorMessage = incoming.errorMessage;
5369
5376
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -5395,124 +5402,559 @@ function equals$a(existing, incoming) {
5395
5402
  return true;
5396
5403
  }
5397
5404
 
5398
- const VERSION$9 = "7c417ce44e4bc05dfcc454e6825590e8";
5399
- function validate$9(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
5405
+ const VERSION$h = "3ce695c87c874dcb5ac019766a3b64f0";
5406
+ function validate$h(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
5400
5407
  const v_error = (() => {
5401
5408
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5402
5409
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5403
5410
  }
5404
- const obj_enableModeration = obj.enableModeration;
5405
- const path_enableModeration = path + '.enableModeration';
5406
- if (typeof obj_enableModeration !== 'boolean') {
5407
- return new TypeError('Expected "boolean" but received "' + typeof obj_enableModeration + '" (at "' + path_enableModeration + '")');
5411
+ const obj_duration = obj.duration;
5412
+ const path_duration = path + '.duration';
5413
+ if (typeof obj_duration !== 'number' || (typeof obj_duration === 'number' && Math.floor(obj_duration) !== obj_duration)) {
5414
+ return new TypeError('Expected "integer" but received "' + typeof obj_duration + '" (at "' + path_duration + '")');
5415
+ }
5416
+ const obj_startTime = obj.startTime;
5417
+ const path_startTime = path + '.startTime';
5418
+ if (typeof obj_startTime !== 'number' || (typeof obj_startTime === 'number' && Math.floor(obj_startTime) !== obj_startTime)) {
5419
+ return new TypeError('Expected "integer" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
5408
5420
  }
5409
5421
  })();
5410
5422
  return v_error === undefined ? null : v_error;
5411
5423
  }
5412
- const select$c = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
5424
+ const select$k = function EinsteinPromptTemplateLatencyRepresentationSelect() {
5413
5425
  return {
5414
5426
  kind: 'Fragment',
5415
- version: VERSION$9,
5427
+ version: VERSION$h,
5416
5428
  private: [],
5417
5429
  selections: [
5418
5430
  {
5419
- name: 'enableModeration',
5431
+ name: 'duration',
5432
+ kind: 'Scalar'
5433
+ },
5434
+ {
5435
+ name: 'startTime',
5420
5436
  kind: 'Scalar'
5421
5437
  }
5422
5438
  ]
5423
5439
  };
5424
5440
  };
5425
- function equals$9(existing, incoming) {
5426
- const existing_enableModeration = existing.enableModeration;
5427
- const incoming_enableModeration = incoming.enableModeration;
5428
- if (!(existing_enableModeration === incoming_enableModeration)) {
5441
+ function equals$h(existing, incoming) {
5442
+ const existing_duration = existing.duration;
5443
+ const incoming_duration = incoming.duration;
5444
+ if (!(existing_duration === incoming_duration)) {
5445
+ return false;
5446
+ }
5447
+ const existing_startTime = existing.startTime;
5448
+ const incoming_startTime = incoming.startTime;
5449
+ if (!(existing_startTime === incoming_startTime)) {
5429
5450
  return false;
5430
5451
  }
5431
5452
  return true;
5432
5453
  }
5433
5454
 
5434
- const VERSION$8 = "92ad1abd0e2a60bc36941409cadda7e2";
5435
- function validate$8(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
5455
+ const VERSION$g = "9ef738d379a8db0dc8193d438d7995ad";
5456
+ function validate$g(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepresentation') {
5436
5457
  const v_error = (() => {
5437
5458
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5438
5459
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5439
5460
  }
5440
- const obj_content = obj.content;
5441
- const path_content = path + '.content';
5442
- if (typeof obj_content !== 'string') {
5443
- return new TypeError('Expected "string" but received "' + typeof obj_content + '" (at "' + path_content + '")');
5461
+ const obj_latency = obj.latency;
5462
+ const path_latency = path + '.latency';
5463
+ const referencepath_latencyValidationError = validate$h(obj_latency, path_latency);
5464
+ if (referencepath_latencyValidationError !== null) {
5465
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
5466
+ message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5467
+ return new TypeError(message);
5444
5468
  }
5445
- if (obj.moderationSettings !== undefined) {
5446
- const obj_moderationSettings = obj.moderationSettings;
5447
- const path_moderationSettings = path + '.moderationSettings';
5448
- let obj_moderationSettings_union0 = null;
5449
- const obj_moderationSettings_union0_error = (() => {
5450
- const referencepath_moderationSettingsValidationError = validate$9(obj_moderationSettings, path_moderationSettings);
5451
- if (referencepath_moderationSettingsValidationError !== null) {
5452
- let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
5453
- message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5454
- return new TypeError(message);
5455
- }
5456
- })();
5457
- if (obj_moderationSettings_union0_error != null) {
5458
- obj_moderationSettings_union0 = obj_moderationSettings_union0_error.message;
5469
+ const obj_referenceName = obj.referenceName;
5470
+ const path_referenceName = path + '.referenceName';
5471
+ if (typeof obj_referenceName !== 'string') {
5472
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceName + '" (at "' + path_referenceName + '")');
5473
+ }
5474
+ })();
5475
+ return v_error === undefined ? null : v_error;
5476
+ }
5477
+ const select$j = function EinsteinPromptTemplateLatencyBreakdownItemRepresentationSelect() {
5478
+ const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$k();
5479
+ return {
5480
+ kind: 'Fragment',
5481
+ version: VERSION$g,
5482
+ private: [],
5483
+ selections: [
5484
+ {
5485
+ name: 'latency',
5486
+ kind: 'Object',
5487
+ selections: EinsteinPromptTemplateLatencyRepresentation__selections
5488
+ },
5489
+ {
5490
+ name: 'referenceName',
5491
+ kind: 'Scalar'
5459
5492
  }
5460
- let obj_moderationSettings_union1 = null;
5461
- const obj_moderationSettings_union1_error = (() => {
5462
- if (obj_moderationSettings !== null) {
5463
- return new TypeError('Expected "null" but received "' + typeof obj_moderationSettings + '" (at "' + path_moderationSettings + '")');
5493
+ ]
5494
+ };
5495
+ };
5496
+ function equals$g(existing, incoming) {
5497
+ const existing_referenceName = existing.referenceName;
5498
+ const incoming_referenceName = incoming.referenceName;
5499
+ if (!(existing_referenceName === incoming_referenceName)) {
5500
+ return false;
5501
+ }
5502
+ const existing_latency = existing.latency;
5503
+ const incoming_latency = incoming.latency;
5504
+ if (!(equals$h(existing_latency, incoming_latency))) {
5505
+ return false;
5506
+ }
5507
+ return true;
5508
+ }
5509
+
5510
+ const VERSION$f = "4b1840167fa1759c2413bafa7708e137";
5511
+ function validate$f(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation') {
5512
+ const v_error = (() => {
5513
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5514
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5515
+ }
5516
+ if (obj.breakdown !== undefined) {
5517
+ const obj_breakdown = obj.breakdown;
5518
+ const path_breakdown = path + '.breakdown';
5519
+ if (!ArrayIsArray(obj_breakdown)) {
5520
+ return new TypeError('Expected "array" but received "' + typeof obj_breakdown + '" (at "' + path_breakdown + '")');
5521
+ }
5522
+ for (let i = 0; i < obj_breakdown.length; i++) {
5523
+ const obj_breakdown_item = obj_breakdown[i];
5524
+ const path_breakdown_item = path_breakdown + '[' + i + ']';
5525
+ const referencepath_breakdown_itemValidationError = validate$g(obj_breakdown_item, path_breakdown_item);
5526
+ if (referencepath_breakdown_itemValidationError !== null) {
5527
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyBreakdownItemRepresentation (at "' + path_breakdown_item + '")\n';
5528
+ message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5529
+ return new TypeError(message);
5464
5530
  }
5465
- })();
5466
- if (obj_moderationSettings_union1_error != null) {
5467
- obj_moderationSettings_union1 = obj_moderationSettings_union1_error.message;
5468
- }
5469
- if (obj_moderationSettings_union0 && obj_moderationSettings_union1) {
5470
- let message = 'Object doesn\'t match union (at "' + path_moderationSettings + '")';
5471
- message += '\n' + obj_moderationSettings_union0.split('\n').map((line) => '\t' + line).join('\n');
5472
- message += '\n' + obj_moderationSettings_union1.split('\n').map((line) => '\t' + line).join('\n');
5473
- return new TypeError(message);
5474
5531
  }
5475
5532
  }
5476
- if (obj.role !== undefined) {
5477
- const obj_role = obj.role;
5478
- const path_role = path + '.role';
5479
- if (typeof obj_role !== 'string') {
5480
- return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
5481
- }
5533
+ const obj_latency = obj.latency;
5534
+ const path_latency = path + '.latency';
5535
+ const referencepath_latencyValidationError = validate$h(obj_latency, path_latency);
5536
+ if (referencepath_latencyValidationError !== null) {
5537
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
5538
+ message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5539
+ return new TypeError(message);
5482
5540
  }
5483
5541
  })();
5484
5542
  return v_error === undefined ? null : v_error;
5485
5543
  }
5486
- const select$b = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
5487
- const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$c();
5544
+ const select$i = function EinsteinPromptTemplateLatencyStepRepresentationSelect() {
5545
+ const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$j();
5546
+ const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$k();
5488
5547
  return {
5489
5548
  kind: 'Fragment',
5490
- version: VERSION$8,
5549
+ version: VERSION$f,
5491
5550
  private: [],
5492
5551
  selections: [
5493
5552
  {
5494
- name: 'content',
5495
- kind: 'Scalar'
5496
- },
5497
- {
5498
- name: 'moderationSettings',
5553
+ name: 'breakdown',
5499
5554
  kind: 'Object',
5500
- nullable: true,
5501
- selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections,
5555
+ plural: true,
5556
+ selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections,
5502
5557
  required: false
5503
5558
  },
5504
5559
  {
5505
- name: 'role',
5506
- kind: 'Scalar',
5507
- required: false
5560
+ name: 'latency',
5561
+ kind: 'Object',
5562
+ selections: EinsteinPromptTemplateLatencyRepresentation__selections
5508
5563
  }
5509
5564
  ]
5510
5565
  };
5511
5566
  };
5512
- function equals$8(existing, incoming) {
5513
- const existing_content = existing.content;
5514
- const incoming_content = incoming.content;
5515
- if (!(existing_content === incoming_content)) {
5567
+ function equals$f(existing, incoming) {
5568
+ const existing_breakdown = existing.breakdown;
5569
+ const incoming_breakdown = incoming.breakdown;
5570
+ // if at least one of these optionals is defined
5571
+ if (existing_breakdown !== undefined || incoming_breakdown !== undefined) {
5572
+ // if one of these is not defined we know the other is defined and therefore
5573
+ // not equal
5574
+ if (existing_breakdown === undefined || incoming_breakdown === undefined) {
5575
+ return false;
5576
+ }
5577
+ const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
5578
+ if (!(equals$g(existing_breakdown_item, incoming_breakdown_item))) {
5579
+ return false;
5580
+ }
5581
+ });
5582
+ if (equals_breakdown_items === false) {
5583
+ return false;
5584
+ }
5585
+ }
5586
+ const existing_latency = existing.latency;
5587
+ const incoming_latency = incoming.latency;
5588
+ if (!(equals$h(existing_latency, incoming_latency))) {
5589
+ return false;
5590
+ }
5591
+ return true;
5592
+ }
5593
+
5594
+ const VERSION$e = "d6838fb296069ed6df17b2215be2da09";
5595
+ function validate$e(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
5596
+ const v_error = (() => {
5597
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5598
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5599
+ }
5600
+ if (obj.generation !== undefined) {
5601
+ const obj_generation = obj.generation;
5602
+ const path_generation = path + '.generation';
5603
+ const referencepath_generationValidationError = validate$f(obj_generation, path_generation);
5604
+ if (referencepath_generationValidationError !== null) {
5605
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_generation + '")\n';
5606
+ message += referencepath_generationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5607
+ return new TypeError(message);
5608
+ }
5609
+ }
5610
+ if (obj.hydration !== undefined) {
5611
+ const obj_hydration = obj.hydration;
5612
+ const path_hydration = path + '.hydration';
5613
+ const referencepath_hydrationValidationError = validate$f(obj_hydration, path_hydration);
5614
+ if (referencepath_hydrationValidationError !== null) {
5615
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_hydration + '")\n';
5616
+ message += referencepath_hydrationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5617
+ return new TypeError(message);
5618
+ }
5619
+ }
5620
+ const obj_loadTemplate = obj.loadTemplate;
5621
+ const path_loadTemplate = path + '.loadTemplate';
5622
+ const referencepath_loadTemplateValidationError = validate$f(obj_loadTemplate, path_loadTemplate);
5623
+ if (referencepath_loadTemplateValidationError !== null) {
5624
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_loadTemplate + '")\n';
5625
+ message += referencepath_loadTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5626
+ return new TypeError(message);
5627
+ }
5628
+ if (obj.mask !== undefined) {
5629
+ const obj_mask = obj.mask;
5630
+ const path_mask = path + '.mask';
5631
+ const referencepath_maskValidationError = validate$f(obj_mask, path_mask);
5632
+ if (referencepath_maskValidationError !== null) {
5633
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_mask + '")\n';
5634
+ message += referencepath_maskValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5635
+ return new TypeError(message);
5636
+ }
5637
+ }
5638
+ if (obj.resolveData !== undefined) {
5639
+ const obj_resolveData = obj.resolveData;
5640
+ const path_resolveData = path + '.resolveData';
5641
+ const referencepath_resolveDataValidationError = validate$f(obj_resolveData, path_resolveData);
5642
+ if (referencepath_resolveDataValidationError !== null) {
5643
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_resolveData + '")\n';
5644
+ message += referencepath_resolveDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5645
+ return new TypeError(message);
5646
+ }
5647
+ }
5648
+ if (obj.summarize !== undefined) {
5649
+ const obj_summarize = obj.summarize;
5650
+ const path_summarize = path + '.summarize';
5651
+ const referencepath_summarizeValidationError = validate$f(obj_summarize, path_summarize);
5652
+ if (referencepath_summarizeValidationError !== null) {
5653
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_summarize + '")\n';
5654
+ message += referencepath_summarizeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5655
+ return new TypeError(message);
5656
+ }
5657
+ }
5658
+ })();
5659
+ return v_error === undefined ? null : v_error;
5660
+ }
5661
+ const select$h = function EinsteinPromptTemplateLatencyExecutionRepresentationSelect() {
5662
+ const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$i();
5663
+ return {
5664
+ kind: 'Fragment',
5665
+ version: VERSION$e,
5666
+ private: [],
5667
+ selections: [
5668
+ {
5669
+ name: 'generation',
5670
+ kind: 'Object',
5671
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
5672
+ required: false
5673
+ },
5674
+ {
5675
+ name: 'hydration',
5676
+ kind: 'Object',
5677
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
5678
+ required: false
5679
+ },
5680
+ {
5681
+ name: 'loadTemplate',
5682
+ kind: 'Object',
5683
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections
5684
+ },
5685
+ {
5686
+ name: 'mask',
5687
+ kind: 'Object',
5688
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
5689
+ required: false
5690
+ },
5691
+ {
5692
+ name: 'resolveData',
5693
+ kind: 'Object',
5694
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
5695
+ required: false
5696
+ },
5697
+ {
5698
+ name: 'summarize',
5699
+ kind: 'Object',
5700
+ selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
5701
+ required: false
5702
+ }
5703
+ ]
5704
+ };
5705
+ };
5706
+ function equals$e(existing, incoming) {
5707
+ const existing_generation = existing.generation;
5708
+ const incoming_generation = incoming.generation;
5709
+ // if at least one of these optionals is defined
5710
+ if (existing_generation !== undefined || incoming_generation !== undefined) {
5711
+ // if one of these is not defined we know the other is defined and therefore
5712
+ // not equal
5713
+ if (existing_generation === undefined || incoming_generation === undefined) {
5714
+ return false;
5715
+ }
5716
+ if (!(equals$f(existing_generation, incoming_generation))) {
5717
+ return false;
5718
+ }
5719
+ }
5720
+ const existing_hydration = existing.hydration;
5721
+ const incoming_hydration = incoming.hydration;
5722
+ // if at least one of these optionals is defined
5723
+ if (existing_hydration !== undefined || incoming_hydration !== undefined) {
5724
+ // if one of these is not defined we know the other is defined and therefore
5725
+ // not equal
5726
+ if (existing_hydration === undefined || incoming_hydration === undefined) {
5727
+ return false;
5728
+ }
5729
+ if (!(equals$f(existing_hydration, incoming_hydration))) {
5730
+ return false;
5731
+ }
5732
+ }
5733
+ const existing_loadTemplate = existing.loadTemplate;
5734
+ const incoming_loadTemplate = incoming.loadTemplate;
5735
+ if (!(equals$f(existing_loadTemplate, incoming_loadTemplate))) {
5736
+ return false;
5737
+ }
5738
+ const existing_mask = existing.mask;
5739
+ const incoming_mask = incoming.mask;
5740
+ // if at least one of these optionals is defined
5741
+ if (existing_mask !== undefined || incoming_mask !== undefined) {
5742
+ // if one of these is not defined we know the other is defined and therefore
5743
+ // not equal
5744
+ if (existing_mask === undefined || incoming_mask === undefined) {
5745
+ return false;
5746
+ }
5747
+ if (!(equals$f(existing_mask, incoming_mask))) {
5748
+ return false;
5749
+ }
5750
+ }
5751
+ const existing_resolveData = existing.resolveData;
5752
+ const incoming_resolveData = incoming.resolveData;
5753
+ // if at least one of these optionals is defined
5754
+ if (existing_resolveData !== undefined || incoming_resolveData !== undefined) {
5755
+ // if one of these is not defined we know the other is defined and therefore
5756
+ // not equal
5757
+ if (existing_resolveData === undefined || incoming_resolveData === undefined) {
5758
+ return false;
5759
+ }
5760
+ if (!(equals$f(existing_resolveData, incoming_resolveData))) {
5761
+ return false;
5762
+ }
5763
+ }
5764
+ const existing_summarize = existing.summarize;
5765
+ const incoming_summarize = incoming.summarize;
5766
+ // if at least one of these optionals is defined
5767
+ if (existing_summarize !== undefined || incoming_summarize !== undefined) {
5768
+ // if one of these is not defined we know the other is defined and therefore
5769
+ // not equal
5770
+ if (existing_summarize === undefined || incoming_summarize === undefined) {
5771
+ return false;
5772
+ }
5773
+ if (!(equals$f(existing_summarize, incoming_summarize))) {
5774
+ return false;
5775
+ }
5776
+ }
5777
+ return true;
5778
+ }
5779
+
5780
+ const VERSION$d = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
5781
+ function validate$d(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation') {
5782
+ const v_error = (() => {
5783
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5784
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5785
+ }
5786
+ const obj_execution = obj.execution;
5787
+ const path_execution = path + '.execution';
5788
+ const referencepath_executionValidationError = validate$e(obj_execution, path_execution);
5789
+ if (referencepath_executionValidationError !== null) {
5790
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyExecutionRepresentation (at "' + path_execution + '")\n';
5791
+ message += referencepath_executionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5792
+ return new TypeError(message);
5793
+ }
5794
+ const obj_latency = obj.latency;
5795
+ const path_latency = path + '.latency';
5796
+ const referencepath_latencyValidationError = validate$h(obj_latency, path_latency);
5797
+ if (referencepath_latencyValidationError !== null) {
5798
+ let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
5799
+ message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5800
+ return new TypeError(message);
5801
+ }
5802
+ })();
5803
+ return v_error === undefined ? null : v_error;
5804
+ }
5805
+ const select$g = function EinsteinPromptTemplatePerformanceRepresentationSelect() {
5806
+ const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$h();
5807
+ const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$k();
5808
+ return {
5809
+ kind: 'Fragment',
5810
+ version: VERSION$d,
5811
+ private: [],
5812
+ selections: [
5813
+ {
5814
+ name: 'execution',
5815
+ kind: 'Object',
5816
+ selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections
5817
+ },
5818
+ {
5819
+ name: 'latency',
5820
+ kind: 'Object',
5821
+ selections: EinsteinPromptTemplateLatencyRepresentation__selections
5822
+ }
5823
+ ]
5824
+ };
5825
+ };
5826
+ function equals$d(existing, incoming) {
5827
+ const existing_execution = existing.execution;
5828
+ const incoming_execution = incoming.execution;
5829
+ if (!(equals$e(existing_execution, incoming_execution))) {
5830
+ return false;
5831
+ }
5832
+ const existing_latency = existing.latency;
5833
+ const incoming_latency = incoming.latency;
5834
+ if (!(equals$h(existing_latency, incoming_latency))) {
5835
+ return false;
5836
+ }
5837
+ return true;
5838
+ }
5839
+
5840
+ const VERSION$c = "7c417ce44e4bc05dfcc454e6825590e8";
5841
+ function validate$c(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
5842
+ const v_error = (() => {
5843
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5844
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5845
+ }
5846
+ const obj_enableModeration = obj.enableModeration;
5847
+ const path_enableModeration = path + '.enableModeration';
5848
+ if (typeof obj_enableModeration !== 'boolean') {
5849
+ return new TypeError('Expected "boolean" but received "' + typeof obj_enableModeration + '" (at "' + path_enableModeration + '")');
5850
+ }
5851
+ })();
5852
+ return v_error === undefined ? null : v_error;
5853
+ }
5854
+ const select$f = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
5855
+ return {
5856
+ kind: 'Fragment',
5857
+ version: VERSION$c,
5858
+ private: [],
5859
+ selections: [
5860
+ {
5861
+ name: 'enableModeration',
5862
+ kind: 'Scalar'
5863
+ }
5864
+ ]
5865
+ };
5866
+ };
5867
+ function equals$c(existing, incoming) {
5868
+ const existing_enableModeration = existing.enableModeration;
5869
+ const incoming_enableModeration = incoming.enableModeration;
5870
+ if (!(existing_enableModeration === incoming_enableModeration)) {
5871
+ return false;
5872
+ }
5873
+ return true;
5874
+ }
5875
+
5876
+ const VERSION$b = "92ad1abd0e2a60bc36941409cadda7e2";
5877
+ function validate$b(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
5878
+ const v_error = (() => {
5879
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5880
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5881
+ }
5882
+ const obj_content = obj.content;
5883
+ const path_content = path + '.content';
5884
+ if (typeof obj_content !== 'string') {
5885
+ return new TypeError('Expected "string" but received "' + typeof obj_content + '" (at "' + path_content + '")');
5886
+ }
5887
+ if (obj.moderationSettings !== undefined) {
5888
+ const obj_moderationSettings = obj.moderationSettings;
5889
+ const path_moderationSettings = path + '.moderationSettings';
5890
+ let obj_moderationSettings_union0 = null;
5891
+ const obj_moderationSettings_union0_error = (() => {
5892
+ const referencepath_moderationSettingsValidationError = validate$c(obj_moderationSettings, path_moderationSettings);
5893
+ if (referencepath_moderationSettingsValidationError !== null) {
5894
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
5895
+ message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5896
+ return new TypeError(message);
5897
+ }
5898
+ })();
5899
+ if (obj_moderationSettings_union0_error != null) {
5900
+ obj_moderationSettings_union0 = obj_moderationSettings_union0_error.message;
5901
+ }
5902
+ let obj_moderationSettings_union1 = null;
5903
+ const obj_moderationSettings_union1_error = (() => {
5904
+ if (obj_moderationSettings !== null) {
5905
+ return new TypeError('Expected "null" but received "' + typeof obj_moderationSettings + '" (at "' + path_moderationSettings + '")');
5906
+ }
5907
+ })();
5908
+ if (obj_moderationSettings_union1_error != null) {
5909
+ obj_moderationSettings_union1 = obj_moderationSettings_union1_error.message;
5910
+ }
5911
+ if (obj_moderationSettings_union0 && obj_moderationSettings_union1) {
5912
+ let message = 'Object doesn\'t match union (at "' + path_moderationSettings + '")';
5913
+ message += '\n' + obj_moderationSettings_union0.split('\n').map((line) => '\t' + line).join('\n');
5914
+ message += '\n' + obj_moderationSettings_union1.split('\n').map((line) => '\t' + line).join('\n');
5915
+ return new TypeError(message);
5916
+ }
5917
+ }
5918
+ if (obj.role !== undefined) {
5919
+ const obj_role = obj.role;
5920
+ const path_role = path + '.role';
5921
+ if (typeof obj_role !== 'string') {
5922
+ return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
5923
+ }
5924
+ }
5925
+ })();
5926
+ return v_error === undefined ? null : v_error;
5927
+ }
5928
+ const select$e = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
5929
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$f();
5930
+ return {
5931
+ kind: 'Fragment',
5932
+ version: VERSION$b,
5933
+ private: [],
5934
+ selections: [
5935
+ {
5936
+ name: 'content',
5937
+ kind: 'Scalar'
5938
+ },
5939
+ {
5940
+ name: 'moderationSettings',
5941
+ kind: 'Object',
5942
+ nullable: true,
5943
+ selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections,
5944
+ required: false
5945
+ },
5946
+ {
5947
+ name: 'role',
5948
+ kind: 'Scalar',
5949
+ required: false
5950
+ }
5951
+ ]
5952
+ };
5953
+ };
5954
+ function equals$b(existing, incoming) {
5955
+ const existing_content = existing.content;
5956
+ const incoming_content = incoming.content;
5957
+ if (!(existing_content === incoming_content)) {
5516
5958
  return false;
5517
5959
  }
5518
5960
  const existing_role = existing.role;
@@ -5540,15 +5982,15 @@ function equals$8(existing, incoming) {
5540
5982
  if (!(existing_moderationSettings === incoming_moderationSettings
5541
5983
  || (existing_moderationSettings != null &&
5542
5984
  incoming_moderationSettings != null &&
5543
- equals$9(existing_moderationSettings, incoming_moderationSettings)))) {
5985
+ equals$c(existing_moderationSettings, incoming_moderationSettings)))) {
5544
5986
  return false;
5545
5987
  }
5546
5988
  }
5547
5989
  return true;
5548
5990
  }
5549
5991
 
5550
- const VERSION$7 = "507a815605f8d30ae9b52b0ec513d25e";
5551
- function validate$7(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
5992
+ const VERSION$a = "507a815605f8d30ae9b52b0ec513d25e";
5993
+ function validate$a(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
5552
5994
  const v_error = (() => {
5553
5995
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5554
5996
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5578,10 +6020,10 @@ function validate$7(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
5578
6020
  })();
5579
6021
  return v_error === undefined ? null : v_error;
5580
6022
  }
5581
- const select$a = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
6023
+ const select$d = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
5582
6024
  return {
5583
6025
  kind: 'Fragment',
5584
- version: VERSION$7,
6026
+ version: VERSION$a,
5585
6027
  private: [],
5586
6028
  selections: [
5587
6029
  {
@@ -5600,7 +6042,7 @@ const select$a = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
5600
6042
  ]
5601
6043
  };
5602
6044
  };
5603
- function equals$7(existing, incoming) {
6045
+ function equals$a(existing, incoming) {
5604
6046
  const existing_originalValue = existing.originalValue;
5605
6047
  const incoming_originalValue = incoming.originalValue;
5606
6048
  if (!(existing_originalValue === incoming_originalValue)) {
@@ -5624,8 +6066,234 @@ function equals$7(existing, incoming) {
5624
6066
  return true;
5625
6067
  }
5626
6068
 
6069
+ const VERSION$9 = "76811380b919e1427b00791d86819029";
6070
+ function validate$9(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentation') {
6071
+ const v_error = (() => {
6072
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6073
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6074
+ }
6075
+ const obj_occurrences = obj.occurrences;
6076
+ const path_occurrences = path + '.occurrences';
6077
+ if (typeof obj_occurrences !== 'number' || (typeof obj_occurrences === 'number' && Math.floor(obj_occurrences) !== obj_occurrences)) {
6078
+ return new TypeError('Expected "integer" but received "' + typeof obj_occurrences + '" (at "' + path_occurrences + '")');
6079
+ }
6080
+ const obj_role = obj.role;
6081
+ const path_role = path + '.role';
6082
+ if (typeof obj_role !== 'string') {
6083
+ return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
6084
+ }
6085
+ const obj_source = obj.source;
6086
+ const path_source = path + '.source';
6087
+ if (typeof obj_source !== 'string') {
6088
+ return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
6089
+ }
6090
+ const obj_tokens = obj.tokens;
6091
+ const path_tokens = path + '.tokens';
6092
+ if (typeof obj_tokens !== 'number' || (typeof obj_tokens === 'number' && Math.floor(obj_tokens) !== obj_tokens)) {
6093
+ return new TypeError('Expected "integer" but received "' + typeof obj_tokens + '" (at "' + path_tokens + '")');
6094
+ }
6095
+ })();
6096
+ return v_error === undefined ? null : v_error;
6097
+ }
6098
+ const select$c = function EinsteinPromptTemplateTokenBreakdownRepresentationSelect() {
6099
+ return {
6100
+ kind: 'Fragment',
6101
+ version: VERSION$9,
6102
+ private: [],
6103
+ selections: [
6104
+ {
6105
+ name: 'occurrences',
6106
+ kind: 'Scalar'
6107
+ },
6108
+ {
6109
+ name: 'role',
6110
+ kind: 'Scalar'
6111
+ },
6112
+ {
6113
+ name: 'source',
6114
+ kind: 'Scalar'
6115
+ },
6116
+ {
6117
+ name: 'tokens',
6118
+ kind: 'Scalar'
6119
+ }
6120
+ ]
6121
+ };
6122
+ };
6123
+ function equals$9(existing, incoming) {
6124
+ const existing_occurrences = existing.occurrences;
6125
+ const incoming_occurrences = incoming.occurrences;
6126
+ if (!(existing_occurrences === incoming_occurrences)) {
6127
+ return false;
6128
+ }
6129
+ const existing_tokens = existing.tokens;
6130
+ const incoming_tokens = incoming.tokens;
6131
+ if (!(existing_tokens === incoming_tokens)) {
6132
+ return false;
6133
+ }
6134
+ const existing_role = existing.role;
6135
+ const incoming_role = incoming.role;
6136
+ if (!(existing_role === incoming_role)) {
6137
+ return false;
6138
+ }
6139
+ const existing_source = existing.source;
6140
+ const incoming_source = incoming.source;
6141
+ if (!(existing_source === incoming_source)) {
6142
+ return false;
6143
+ }
6144
+ return true;
6145
+ }
6146
+
6147
+ const VERSION$8 = "7212a778ca53a828691ec38760108a72";
6148
+ function validate$8(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresentation') {
6149
+ const v_error = (() => {
6150
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6151
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6152
+ }
6153
+ if (obj.breakdown !== undefined) {
6154
+ const obj_breakdown = obj.breakdown;
6155
+ const path_breakdown = path + '.breakdown';
6156
+ if (!ArrayIsArray(obj_breakdown)) {
6157
+ return new TypeError('Expected "array" but received "' + typeof obj_breakdown + '" (at "' + path_breakdown + '")');
6158
+ }
6159
+ for (let i = 0; i < obj_breakdown.length; i++) {
6160
+ const obj_breakdown_item = obj_breakdown[i];
6161
+ const path_breakdown_item = path_breakdown + '[' + i + ']';
6162
+ const referencepath_breakdown_itemValidationError = validate$9(obj_breakdown_item, path_breakdown_item);
6163
+ if (referencepath_breakdown_itemValidationError !== null) {
6164
+ let message = 'Object doesn\'t match EinsteinPromptTemplateTokenBreakdownRepresentation (at "' + path_breakdown_item + '")\n';
6165
+ message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6166
+ return new TypeError(message);
6167
+ }
6168
+ }
6169
+ }
6170
+ const obj_total = obj.total;
6171
+ const path_total = path + '.total';
6172
+ if (typeof obj_total !== 'number' || (typeof obj_total === 'number' && Math.floor(obj_total) !== obj_total)) {
6173
+ return new TypeError('Expected "integer" but received "' + typeof obj_total + '" (at "' + path_total + '")');
6174
+ }
6175
+ })();
6176
+ return v_error === undefined ? null : v_error;
6177
+ }
6178
+ const select$b = function EinsteinPromptTemplatePromptTokenUsageRepresentationSelect() {
6179
+ const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$c();
6180
+ return {
6181
+ kind: 'Fragment',
6182
+ version: VERSION$8,
6183
+ private: [],
6184
+ selections: [
6185
+ {
6186
+ name: 'breakdown',
6187
+ kind: 'Object',
6188
+ plural: true,
6189
+ selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections,
6190
+ required: false
6191
+ },
6192
+ {
6193
+ name: 'total',
6194
+ kind: 'Scalar'
6195
+ }
6196
+ ]
6197
+ };
6198
+ };
6199
+ function equals$8(existing, incoming) {
6200
+ const existing_total = existing.total;
6201
+ const incoming_total = incoming.total;
6202
+ if (!(existing_total === incoming_total)) {
6203
+ return false;
6204
+ }
6205
+ const existing_breakdown = existing.breakdown;
6206
+ const incoming_breakdown = incoming.breakdown;
6207
+ // if at least one of these optionals is defined
6208
+ if (existing_breakdown !== undefined || incoming_breakdown !== undefined) {
6209
+ // if one of these is not defined we know the other is defined and therefore
6210
+ // not equal
6211
+ if (existing_breakdown === undefined || incoming_breakdown === undefined) {
6212
+ return false;
6213
+ }
6214
+ const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
6215
+ if (!(equals$9(existing_breakdown_item, incoming_breakdown_item))) {
6216
+ return false;
6217
+ }
6218
+ });
6219
+ if (equals_breakdown_items === false) {
6220
+ return false;
6221
+ }
6222
+ }
6223
+ return true;
6224
+ }
6225
+
6226
+ const VERSION$7 = "20ed3f8bf15ce2c8910245591e27fae5";
6227
+ function validate$7(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
6228
+ const v_error = (() => {
6229
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6230
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6231
+ }
6232
+ const obj_completion = obj.completion;
6233
+ const path_completion = path + '.completion';
6234
+ if (typeof obj_completion !== 'number' || (typeof obj_completion === 'number' && Math.floor(obj_completion) !== obj_completion)) {
6235
+ return new TypeError('Expected "integer" but received "' + typeof obj_completion + '" (at "' + path_completion + '")');
6236
+ }
6237
+ const obj_prompt = obj.prompt;
6238
+ const path_prompt = path + '.prompt';
6239
+ const referencepath_promptValidationError = validate$8(obj_prompt, path_prompt);
6240
+ if (referencepath_promptValidationError !== null) {
6241
+ let message = 'Object doesn\'t match EinsteinPromptTemplatePromptTokenUsageRepresentation (at "' + path_prompt + '")\n';
6242
+ message += referencepath_promptValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6243
+ return new TypeError(message);
6244
+ }
6245
+ const obj_total = obj.total;
6246
+ const path_total = path + '.total';
6247
+ if (typeof obj_total !== 'number' || (typeof obj_total === 'number' && Math.floor(obj_total) !== obj_total)) {
6248
+ return new TypeError('Expected "integer" but received "' + typeof obj_total + '" (at "' + path_total + '")');
6249
+ }
6250
+ })();
6251
+ return v_error === undefined ? null : v_error;
6252
+ }
6253
+ const select$a = function EinsteinPromptTemplateTokenUsageRepresentationSelect() {
6254
+ const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$b();
6255
+ return {
6256
+ kind: 'Fragment',
6257
+ version: VERSION$7,
6258
+ private: [],
6259
+ selections: [
6260
+ {
6261
+ name: 'completion',
6262
+ kind: 'Scalar'
6263
+ },
6264
+ {
6265
+ name: 'prompt',
6266
+ kind: 'Object',
6267
+ selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections
6268
+ },
6269
+ {
6270
+ name: 'total',
6271
+ kind: 'Scalar'
6272
+ }
6273
+ ]
6274
+ };
6275
+ };
6276
+ function equals$7(existing, incoming) {
6277
+ const existing_completion = existing.completion;
6278
+ const incoming_completion = incoming.completion;
6279
+ if (!(existing_completion === incoming_completion)) {
6280
+ return false;
6281
+ }
6282
+ const existing_total = existing.total;
6283
+ const incoming_total = incoming.total;
6284
+ if (!(existing_total === incoming_total)) {
6285
+ return false;
6286
+ }
6287
+ const existing_prompt = existing.prompt;
6288
+ const incoming_prompt = incoming.prompt;
6289
+ if (!(equals$8(existing_prompt, incoming_prompt))) {
6290
+ return false;
6291
+ }
6292
+ return true;
6293
+ }
6294
+
5627
6295
  const TTL$2 = 100;
5628
- const VERSION$6 = "4f8799314eebcd45e3fca72dcdf7722d";
6296
+ const VERSION$6 = "c298962a9a914e248606ab1ac01d1d08";
5629
6297
  function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
5630
6298
  const v_error = (() => {
5631
6299
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5634,7 +6302,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5634
6302
  if (obj.citations !== undefined) {
5635
6303
  const obj_citations = obj.citations;
5636
6304
  const path_citations = path + '.citations';
5637
- const referencepath_citationsValidationError = validate$d(obj_citations, path_citations);
6305
+ const referencepath_citationsValidationError = validate$l(obj_citations, path_citations);
5638
6306
  if (referencepath_citationsValidationError !== null) {
5639
6307
  let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
5640
6308
  message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5650,7 +6318,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5650
6318
  for (let i = 0; i < obj_fileData.length; i++) {
5651
6319
  const obj_fileData_item = obj_fileData[i];
5652
6320
  const path_fileData_item = path_fileData + '[' + i + ']';
5653
- const referencepath_fileData_itemValidationError = validate$b(obj_fileData_item, path_fileData_item);
6321
+ const referencepath_fileData_itemValidationError = validate$j(obj_fileData_item, path_fileData_item);
5654
6322
  if (referencepath_fileData_itemValidationError !== null) {
5655
6323
  let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
5656
6324
  message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5667,7 +6335,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5667
6335
  for (let i = 0; i < obj_generationErrors.length; i++) {
5668
6336
  const obj_generationErrors_item = obj_generationErrors[i];
5669
6337
  const path_generationErrors_item = path_generationErrors + '[' + i + ']';
5670
- const referencepath_generationErrors_itemValidationError = validate$a(obj_generationErrors_item, path_generationErrors_item);
6338
+ const referencepath_generationErrors_itemValidationError = validate$i(obj_generationErrors_item, path_generationErrors_item);
5671
6339
  if (referencepath_generationErrors_itemValidationError !== null) {
5672
6340
  let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
5673
6341
  message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5683,7 +6351,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5683
6351
  for (let i = 0; i < obj_generations.length; i++) {
5684
6352
  const obj_generations_item = obj_generations[i];
5685
6353
  const path_generations_item = path_generations + '[' + i + ']';
5686
- const referencepath_generations_itemValidationError = validate$u(obj_generations_item, path_generations_item);
6354
+ const referencepath_generations_itemValidationError = validate$C(obj_generations_item, path_generations_item);
5687
6355
  if (referencepath_generations_itemValidationError !== null) {
5688
6356
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
5689
6357
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5710,7 +6378,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5710
6378
  const path_parameters = path + '.parameters';
5711
6379
  let obj_parameters_union0 = null;
5712
6380
  const obj_parameters_union0_error = (() => {
5713
- const referencepath_parametersValidationError = validate$t(obj_parameters, path_parameters);
6381
+ const referencepath_parametersValidationError = validate$B(obj_parameters, path_parameters);
5714
6382
  if (referencepath_parametersValidationError !== null) {
5715
6383
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
5716
6384
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5735,6 +6403,16 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5735
6403
  message += '\n' + obj_parameters_union1.split('\n').map((line) => '\t' + line).join('\n');
5736
6404
  return new TypeError(message);
5737
6405
  }
6406
+ if (obj.performance !== undefined) {
6407
+ const obj_performance = obj.performance;
6408
+ const path_performance = path + '.performance';
6409
+ const referencepath_performanceValidationError = validate$d(obj_performance, path_performance);
6410
+ if (referencepath_performanceValidationError !== null) {
6411
+ let message = 'Object doesn\'t match EinsteinPromptTemplatePerformanceRepresentation (at "' + path_performance + '")\n';
6412
+ message += referencepath_performanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6413
+ return new TypeError(message);
6414
+ }
6415
+ }
5738
6416
  const obj_prompt = obj.prompt;
5739
6417
  const path_prompt = path + '.prompt';
5740
6418
  let obj_prompt_union0 = null;
@@ -5806,7 +6484,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5806
6484
  for (let i = 0; i < obj_requestMessages.length; i++) {
5807
6485
  const obj_requestMessages_item = obj_requestMessages[i];
5808
6486
  const path_requestMessages_item = path_requestMessages + '[' + i + ']';
5809
- const referencepath_requestMessages_itemValidationError = validate$8(obj_requestMessages_item, path_requestMessages_item);
6487
+ const referencepath_requestMessages_itemValidationError = validate$b(obj_requestMessages_item, path_requestMessages_item);
5810
6488
  if (referencepath_requestMessages_itemValidationError !== null) {
5811
6489
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
5812
6490
  message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5823,7 +6501,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5823
6501
  for (let i = 0; i < obj_responseMessages.length; i++) {
5824
6502
  const obj_responseMessages_item = obj_responseMessages[i];
5825
6503
  const path_responseMessages_item = path_responseMessages + '[' + i + ']';
5826
- const referencepath_responseMessages_itemValidationError = validate$8(obj_responseMessages_item, path_responseMessages_item);
6504
+ const referencepath_responseMessages_itemValidationError = validate$b(obj_responseMessages_item, path_responseMessages_item);
5827
6505
  if (referencepath_responseMessages_itemValidationError !== null) {
5828
6506
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
5829
6507
  message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5840,7 +6518,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5840
6518
  for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
5841
6519
  const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
5842
6520
  const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
5843
- const referencepath_slotsMaskingInformation_itemValidationError = validate$7(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
6521
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$a(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
5844
6522
  if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
5845
6523
  let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
5846
6524
  message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5848,6 +6526,16 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5848
6526
  }
5849
6527
  }
5850
6528
  }
6529
+ if (obj.tokenUsage !== undefined) {
6530
+ const obj_tokenUsage = obj.tokenUsage;
6531
+ const path_tokenUsage = path + '.tokenUsage';
6532
+ const referencepath_tokenUsageValidationError = validate$7(obj_tokenUsage, path_tokenUsage);
6533
+ if (referencepath_tokenUsageValidationError !== null) {
6534
+ let message = 'Object doesn\'t match EinsteinPromptTemplateTokenUsageRepresentation (at "' + path_tokenUsage + '")\n';
6535
+ message += referencepath_tokenUsageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6536
+ return new TypeError(message);
6537
+ }
6538
+ }
5851
6539
  })();
5852
6540
  return v_error === undefined ? null : v_error;
5853
6541
  }
@@ -5865,13 +6553,15 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
5865
6553
  return input;
5866
6554
  }
5867
6555
  const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
5868
- const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$g();
5869
- const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$e();
5870
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$d();
5871
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$F();
5872
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
5873
- const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$b();
5874
- const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$a();
6556
+ const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$o();
6557
+ const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$m();
6558
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$l();
6559
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$N();
6560
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
6561
+ const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$g();
6562
+ const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$e();
6563
+ const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$d();
6564
+ const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$a();
5875
6565
  return {
5876
6566
  kind: 'Fragment',
5877
6567
  version: VERSION$6,
@@ -5914,6 +6604,12 @@ const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
5914
6604
  nullable: true,
5915
6605
  selections: WrappedMap__selections
5916
6606
  },
6607
+ {
6608
+ name: 'performance',
6609
+ kind: 'Object',
6610
+ selections: EinsteinPromptTemplatePerformanceRepresentation__selections,
6611
+ required: false
6612
+ },
5917
6613
  {
5918
6614
  name: 'prompt',
5919
6615
  kind: 'Scalar'
@@ -5950,6 +6646,12 @@ const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
5950
6646
  plural: true,
5951
6647
  selections: EinsteinPromptTemplateMaskDataRepresentation__selections,
5952
6648
  required: false
6649
+ },
6650
+ {
6651
+ name: 'tokenUsage',
6652
+ kind: 'Object',
6653
+ selections: EinsteinPromptTemplateTokenUsageRepresentation__selections,
6654
+ required: false
5953
6655
  }
5954
6656
  ]
5955
6657
  };
@@ -5974,7 +6676,7 @@ function equals$6(existing, incoming) {
5974
6676
  if (existing_citations === undefined || incoming_citations === undefined) {
5975
6677
  return false;
5976
6678
  }
5977
- if (!(equals$d(existing_citations, incoming_citations))) {
6679
+ if (!(equals$l(existing_citations, incoming_citations))) {
5978
6680
  return false;
5979
6681
  }
5980
6682
  }
@@ -5988,7 +6690,7 @@ function equals$6(existing, incoming) {
5988
6690
  return false;
5989
6691
  }
5990
6692
  const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
5991
- if (!(equals$b(existing_fileData_item, incoming_fileData_item))) {
6693
+ if (!(equals$j(existing_fileData_item, incoming_fileData_item))) {
5992
6694
  return false;
5993
6695
  }
5994
6696
  });
@@ -6006,7 +6708,7 @@ function equals$6(existing, incoming) {
6006
6708
  return false;
6007
6709
  }
6008
6710
  const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
6009
- if (!(equals$a(existing_generationErrors_item, incoming_generationErrors_item))) {
6711
+ if (!(equals$i(existing_generationErrors_item, incoming_generationErrors_item))) {
6010
6712
  return false;
6011
6713
  }
6012
6714
  });
@@ -6017,7 +6719,7 @@ function equals$6(existing, incoming) {
6017
6719
  const existing_generations = existing.generations;
6018
6720
  const incoming_generations = incoming.generations;
6019
6721
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
6020
- if (!(equals$o(existing_generations_item, incoming_generations_item))) {
6722
+ if (!(equals$w(existing_generations_item, incoming_generations_item))) {
6021
6723
  return false;
6022
6724
  }
6023
6725
  });
@@ -6047,9 +6749,22 @@ function equals$6(existing, incoming) {
6047
6749
  if (!(existing_parameters === incoming_parameters
6048
6750
  || (existing_parameters != null &&
6049
6751
  incoming_parameters != null &&
6050
- equals$n(existing_parameters, incoming_parameters)))) {
6752
+ equals$v(existing_parameters, incoming_parameters)))) {
6051
6753
  return false;
6052
6754
  }
6755
+ const existing_performance = existing.performance;
6756
+ const incoming_performance = incoming.performance;
6757
+ // if at least one of these optionals is defined
6758
+ if (existing_performance !== undefined || incoming_performance !== undefined) {
6759
+ // if one of these is not defined we know the other is defined and therefore
6760
+ // not equal
6761
+ if (existing_performance === undefined || incoming_performance === undefined) {
6762
+ return false;
6763
+ }
6764
+ if (!(equals$d(existing_performance, incoming_performance))) {
6765
+ return false;
6766
+ }
6767
+ }
6053
6768
  const existing_prompt = existing.prompt;
6054
6769
  const incoming_prompt = incoming.prompt;
6055
6770
  if (!(existing_prompt === incoming_prompt)) {
@@ -6070,7 +6785,7 @@ function equals$6(existing, incoming) {
6070
6785
  return false;
6071
6786
  }
6072
6787
  const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
6073
- if (!(equals$8(existing_requestMessages_item, incoming_requestMessages_item))) {
6788
+ if (!(equals$b(existing_requestMessages_item, incoming_requestMessages_item))) {
6074
6789
  return false;
6075
6790
  }
6076
6791
  });
@@ -6088,7 +6803,7 @@ function equals$6(existing, incoming) {
6088
6803
  return false;
6089
6804
  }
6090
6805
  const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
6091
- if (!(equals$8(existing_responseMessages_item, incoming_responseMessages_item))) {
6806
+ if (!(equals$b(existing_responseMessages_item, incoming_responseMessages_item))) {
6092
6807
  return false;
6093
6808
  }
6094
6809
  });
@@ -6106,7 +6821,7 @@ function equals$6(existing, incoming) {
6106
6821
  return false;
6107
6822
  }
6108
6823
  const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
6109
- if (!(equals$7(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
6824
+ if (!(equals$a(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
6110
6825
  return false;
6111
6826
  }
6112
6827
  });
@@ -6114,6 +6829,19 @@ function equals$6(existing, incoming) {
6114
6829
  return false;
6115
6830
  }
6116
6831
  }
6832
+ const existing_tokenUsage = existing.tokenUsage;
6833
+ const incoming_tokenUsage = incoming.tokenUsage;
6834
+ // if at least one of these optionals is defined
6835
+ if (existing_tokenUsage !== undefined || incoming_tokenUsage !== undefined) {
6836
+ // if one of these is not defined we know the other is defined and therefore
6837
+ // not equal
6838
+ if (existing_tokenUsage === undefined || incoming_tokenUsage === undefined) {
6839
+ return false;
6840
+ }
6841
+ if (!(equals$7(existing_tokenUsage, incoming_tokenUsage))) {
6842
+ return false;
6843
+ }
6844
+ }
6117
6845
  return true;
6118
6846
  }
6119
6847
  const ingest$2 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -6187,7 +6915,7 @@ function typeCheckConfig$2(untrustedConfig) {
6187
6915
  const config = {};
6188
6916
  typeCheckConfig$j(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
6189
6917
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
6190
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$f(untrustedConfig_promptTemplateGenerationsInput);
6918
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$n(untrustedConfig_promptTemplateGenerationsInput);
6191
6919
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
6192
6920
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
6193
6921
  }