@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev18 → 1.266.0-dev19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einstein-copilot-bot.js +173 -118
- package/dist/es/es2018/types/src/generated/types/CollectMessageRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/EsTypeMessageRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +174 -119
- package/src/raml/api.raml +5 -0
|
@@ -359,37 +359,39 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
359
359
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
const VERSION$6 = "
|
|
362
|
+
const VERSION$6 = "e8cb7e20392935088ea2f98edb927e8a";
|
|
363
363
|
function validate$7(obj, path = 'EsTypeMessageRepresentation') {
|
|
364
364
|
const v_error = (() => {
|
|
365
365
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
366
366
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
368
|
+
if (obj.property !== undefined) {
|
|
369
|
+
const obj_property = obj.property;
|
|
370
|
+
const path_property = path + '.property';
|
|
371
|
+
let obj_property_union0 = null;
|
|
372
|
+
const obj_property_union0_error = (() => {
|
|
373
|
+
if (typeof obj_property !== 'string') {
|
|
374
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
375
|
+
}
|
|
376
|
+
})();
|
|
377
|
+
if (obj_property_union0_error != null) {
|
|
378
|
+
obj_property_union0 = obj_property_union0_error.message;
|
|
374
379
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
if (
|
|
382
|
-
|
|
380
|
+
let obj_property_union1 = null;
|
|
381
|
+
const obj_property_union1_error = (() => {
|
|
382
|
+
if (obj_property !== null) {
|
|
383
|
+
return new TypeError('Expected "null" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
384
|
+
}
|
|
385
|
+
})();
|
|
386
|
+
if (obj_property_union1_error != null) {
|
|
387
|
+
obj_property_union1 = obj_property_union1_error.message;
|
|
388
|
+
}
|
|
389
|
+
if (obj_property_union0 && obj_property_union1) {
|
|
390
|
+
let message = 'Object doesn\'t match union (at "' + path_property + '")';
|
|
391
|
+
message += '\n' + obj_property_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
392
|
+
message += '\n' + obj_property_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
393
|
+
return new TypeError(message);
|
|
383
394
|
}
|
|
384
|
-
})();
|
|
385
|
-
if (obj_property_union1_error != null) {
|
|
386
|
-
obj_property_union1 = obj_property_union1_error.message;
|
|
387
|
-
}
|
|
388
|
-
if (obj_property_union0 && obj_property_union1) {
|
|
389
|
-
let message = 'Object doesn\'t match union (at "' + path_property + '")';
|
|
390
|
-
message += '\n' + obj_property_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
391
|
-
message += '\n' + obj_property_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
392
|
-
return new TypeError(message);
|
|
393
395
|
}
|
|
394
396
|
const obj_type = obj.type;
|
|
395
397
|
const path_type = path + '.type';
|
|
@@ -412,7 +414,8 @@ const select$8 = function EsTypeMessageRepresentationSelect() {
|
|
|
412
414
|
selections: [
|
|
413
415
|
{
|
|
414
416
|
name: 'property',
|
|
415
|
-
kind: 'Scalar'
|
|
417
|
+
kind: 'Scalar',
|
|
418
|
+
required: false
|
|
416
419
|
},
|
|
417
420
|
{
|
|
418
421
|
name: 'type',
|
|
@@ -434,8 +437,16 @@ function equals$6(existing, incoming) {
|
|
|
434
437
|
}
|
|
435
438
|
const existing_property = existing.property;
|
|
436
439
|
const incoming_property = incoming.property;
|
|
437
|
-
if
|
|
438
|
-
|
|
440
|
+
// if at least one of these optionals is defined
|
|
441
|
+
if (existing_property !== undefined || incoming_property !== undefined) {
|
|
442
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
443
|
+
// not equal
|
|
444
|
+
if (existing_property === undefined || incoming_property === undefined) {
|
|
445
|
+
return false;
|
|
446
|
+
}
|
|
447
|
+
if (!(existing_property === incoming_property)) {
|
|
448
|
+
return false;
|
|
449
|
+
}
|
|
439
450
|
}
|
|
440
451
|
const existing_value = existing.value;
|
|
441
452
|
const incoming_value = incoming.value;
|
|
@@ -516,45 +527,49 @@ function equals$5(existing, incoming) {
|
|
|
516
527
|
return true;
|
|
517
528
|
}
|
|
518
529
|
|
|
519
|
-
const VERSION$4 = "
|
|
530
|
+
const VERSION$4 = "477724425d0742c030025796c88ebf5d";
|
|
520
531
|
function validate$4(obj, path = 'CollectMessageRepresentation') {
|
|
521
532
|
const v_error = (() => {
|
|
522
533
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
523
534
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
524
535
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
const obj_targetProperty = obj.targetProperty;
|
|
534
|
-
const path_targetProperty = path + '.targetProperty';
|
|
535
|
-
let obj_targetProperty_union0 = null;
|
|
536
|
-
const obj_targetProperty_union0_error = (() => {
|
|
537
|
-
if (typeof obj_targetProperty !== 'string') {
|
|
538
|
-
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
539
|
-
}
|
|
540
|
-
})();
|
|
541
|
-
if (obj_targetProperty_union0_error != null) {
|
|
542
|
-
obj_targetProperty_union0 = obj_targetProperty_union0_error.message;
|
|
543
|
-
}
|
|
544
|
-
let obj_targetProperty_union1 = null;
|
|
545
|
-
const obj_targetProperty_union1_error = (() => {
|
|
546
|
-
if (obj_targetProperty !== null) {
|
|
547
|
-
return new TypeError('Expected "null" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
536
|
+
if (obj.data !== undefined) {
|
|
537
|
+
const obj_data = obj.data;
|
|
538
|
+
const path_data = path + '.data';
|
|
539
|
+
const referencepath_dataValidationError = validate$7(obj_data, path_data);
|
|
540
|
+
if (referencepath_dataValidationError !== null) {
|
|
541
|
+
let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
|
|
542
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
543
|
+
return new TypeError(message);
|
|
548
544
|
}
|
|
549
|
-
})();
|
|
550
|
-
if (obj_targetProperty_union1_error != null) {
|
|
551
|
-
obj_targetProperty_union1 = obj_targetProperty_union1_error.message;
|
|
552
545
|
}
|
|
553
|
-
if (
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
546
|
+
if (obj.targetProperty !== undefined) {
|
|
547
|
+
const obj_targetProperty = obj.targetProperty;
|
|
548
|
+
const path_targetProperty = path + '.targetProperty';
|
|
549
|
+
let obj_targetProperty_union0 = null;
|
|
550
|
+
const obj_targetProperty_union0_error = (() => {
|
|
551
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
552
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
553
|
+
}
|
|
554
|
+
})();
|
|
555
|
+
if (obj_targetProperty_union0_error != null) {
|
|
556
|
+
obj_targetProperty_union0 = obj_targetProperty_union0_error.message;
|
|
557
|
+
}
|
|
558
|
+
let obj_targetProperty_union1 = null;
|
|
559
|
+
const obj_targetProperty_union1_error = (() => {
|
|
560
|
+
if (obj_targetProperty !== null) {
|
|
561
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
562
|
+
}
|
|
563
|
+
})();
|
|
564
|
+
if (obj_targetProperty_union1_error != null) {
|
|
565
|
+
obj_targetProperty_union1 = obj_targetProperty_union1_error.message;
|
|
566
|
+
}
|
|
567
|
+
if (obj_targetProperty_union0 && obj_targetProperty_union1) {
|
|
568
|
+
let message = 'Object doesn\'t match union (at "' + path_targetProperty + '")';
|
|
569
|
+
message += '\n' + obj_targetProperty_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
570
|
+
message += '\n' + obj_targetProperty_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
571
|
+
return new TypeError(message);
|
|
572
|
+
}
|
|
558
573
|
}
|
|
559
574
|
const obj_targetType = obj.targetType;
|
|
560
575
|
const path_targetType = path + '.targetType';
|
|
@@ -574,11 +589,13 @@ const select$6 = function CollectMessageRepresentationSelect() {
|
|
|
574
589
|
{
|
|
575
590
|
name: 'data',
|
|
576
591
|
kind: 'Object',
|
|
577
|
-
selections: EsTypeMessageRepresentation__selections
|
|
592
|
+
selections: EsTypeMessageRepresentation__selections,
|
|
593
|
+
required: false
|
|
578
594
|
},
|
|
579
595
|
{
|
|
580
596
|
name: 'targetProperty',
|
|
581
|
-
kind: 'Scalar'
|
|
597
|
+
kind: 'Scalar',
|
|
598
|
+
required: false
|
|
582
599
|
},
|
|
583
600
|
{
|
|
584
601
|
name: 'targetType',
|
|
@@ -595,19 +612,35 @@ function equals$4(existing, incoming) {
|
|
|
595
612
|
}
|
|
596
613
|
const existing_data = existing.data;
|
|
597
614
|
const incoming_data = incoming.data;
|
|
598
|
-
if
|
|
599
|
-
|
|
615
|
+
// if at least one of these optionals is defined
|
|
616
|
+
if (existing_data !== undefined || incoming_data !== undefined) {
|
|
617
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
618
|
+
// not equal
|
|
619
|
+
if (existing_data === undefined || incoming_data === undefined) {
|
|
620
|
+
return false;
|
|
621
|
+
}
|
|
622
|
+
if (!(equals$6(existing_data, incoming_data))) {
|
|
623
|
+
return false;
|
|
624
|
+
}
|
|
600
625
|
}
|
|
601
626
|
const existing_targetProperty = existing.targetProperty;
|
|
602
627
|
const incoming_targetProperty = incoming.targetProperty;
|
|
603
|
-
if
|
|
604
|
-
|
|
628
|
+
// if at least one of these optionals is defined
|
|
629
|
+
if (existing_targetProperty !== undefined || incoming_targetProperty !== undefined) {
|
|
630
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
631
|
+
// not equal
|
|
632
|
+
if (existing_targetProperty === undefined || incoming_targetProperty === undefined) {
|
|
633
|
+
return false;
|
|
634
|
+
}
|
|
635
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
636
|
+
return false;
|
|
637
|
+
}
|
|
605
638
|
}
|
|
606
639
|
return true;
|
|
607
640
|
}
|
|
608
641
|
|
|
609
642
|
const TTL$2 = 30000;
|
|
610
|
-
const VERSION$3 = "
|
|
643
|
+
const VERSION$3 = "55ac02bd055f57a2a12aa0fa4844d1a2";
|
|
611
644
|
function validate$3(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
612
645
|
const v_error = (() => {
|
|
613
646
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -706,31 +739,33 @@ function validate$3(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
706
739
|
return new TypeError(message);
|
|
707
740
|
}
|
|
708
741
|
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
742
|
+
if (obj.feedbackId !== undefined) {
|
|
743
|
+
const obj_feedbackId = obj.feedbackId;
|
|
744
|
+
const path_feedbackId = path + '.feedbackId';
|
|
745
|
+
let obj_feedbackId_union0 = null;
|
|
746
|
+
const obj_feedbackId_union0_error = (() => {
|
|
747
|
+
if (typeof obj_feedbackId !== 'string') {
|
|
748
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
749
|
+
}
|
|
750
|
+
})();
|
|
751
|
+
if (obj_feedbackId_union0_error != null) {
|
|
752
|
+
obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
|
|
715
753
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
if (
|
|
723
|
-
|
|
754
|
+
let obj_feedbackId_union1 = null;
|
|
755
|
+
const obj_feedbackId_union1_error = (() => {
|
|
756
|
+
if (obj_feedbackId !== null) {
|
|
757
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
758
|
+
}
|
|
759
|
+
})();
|
|
760
|
+
if (obj_feedbackId_union1_error != null) {
|
|
761
|
+
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
762
|
+
}
|
|
763
|
+
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
764
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
765
|
+
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
766
|
+
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
767
|
+
return new TypeError(message);
|
|
724
768
|
}
|
|
725
|
-
})();
|
|
726
|
-
if (obj_feedbackId_union1_error != null) {
|
|
727
|
-
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
728
|
-
}
|
|
729
|
-
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
730
|
-
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
731
|
-
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
732
|
-
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
733
|
-
return new TypeError(message);
|
|
734
769
|
}
|
|
735
770
|
const obj_id = obj.id;
|
|
736
771
|
const path_id = path + '.id';
|
|
@@ -793,31 +828,33 @@ function validate$3(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
793
828
|
return new TypeError(message);
|
|
794
829
|
}
|
|
795
830
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
831
|
+
if (obj.planId !== undefined) {
|
|
832
|
+
const obj_planId = obj.planId;
|
|
833
|
+
const path_planId = path + '.planId';
|
|
834
|
+
let obj_planId_union0 = null;
|
|
835
|
+
const obj_planId_union0_error = (() => {
|
|
836
|
+
if (typeof obj_planId !== 'string') {
|
|
837
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
838
|
+
}
|
|
839
|
+
})();
|
|
840
|
+
if (obj_planId_union0_error != null) {
|
|
841
|
+
obj_planId_union0 = obj_planId_union0_error.message;
|
|
842
|
+
}
|
|
843
|
+
let obj_planId_union1 = null;
|
|
844
|
+
const obj_planId_union1_error = (() => {
|
|
845
|
+
if (obj_planId !== null) {
|
|
846
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
847
|
+
}
|
|
848
|
+
})();
|
|
849
|
+
if (obj_planId_union1_error != null) {
|
|
850
|
+
obj_planId_union1 = obj_planId_union1_error.message;
|
|
802
851
|
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
const obj_planId_union1_error = (() => {
|
|
809
|
-
if (obj_planId !== null) {
|
|
810
|
-
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
852
|
+
if (obj_planId_union0 && obj_planId_union1) {
|
|
853
|
+
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
854
|
+
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
855
|
+
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
856
|
+
return new TypeError(message);
|
|
811
857
|
}
|
|
812
|
-
})();
|
|
813
|
-
if (obj_planId_union1_error != null) {
|
|
814
|
-
obj_planId_union1 = obj_planId_union1_error.message;
|
|
815
|
-
}
|
|
816
|
-
if (obj_planId_union0 && obj_planId_union1) {
|
|
817
|
-
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
818
|
-
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
819
|
-
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
820
|
-
return new TypeError(message);
|
|
821
858
|
}
|
|
822
859
|
if (obj.result !== undefined) {
|
|
823
860
|
const obj_result = obj.result;
|
|
@@ -958,7 +995,8 @@ const select$5 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
958
995
|
},
|
|
959
996
|
{
|
|
960
997
|
name: 'feedbackId',
|
|
961
|
-
kind: 'Scalar'
|
|
998
|
+
kind: 'Scalar',
|
|
999
|
+
required: false
|
|
962
1000
|
},
|
|
963
1001
|
{
|
|
964
1002
|
name: 'id',
|
|
@@ -976,7 +1014,8 @@ const select$5 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
976
1014
|
},
|
|
977
1015
|
{
|
|
978
1016
|
name: 'planId',
|
|
979
|
-
kind: 'Scalar'
|
|
1017
|
+
kind: 'Scalar',
|
|
1018
|
+
required: false
|
|
980
1019
|
},
|
|
981
1020
|
{
|
|
982
1021
|
name: 'result',
|
|
@@ -1109,8 +1148,16 @@ function equals$3(existing, incoming) {
|
|
|
1109
1148
|
}
|
|
1110
1149
|
const existing_feedbackId = existing.feedbackId;
|
|
1111
1150
|
const incoming_feedbackId = incoming.feedbackId;
|
|
1112
|
-
if
|
|
1113
|
-
|
|
1151
|
+
// if at least one of these optionals is defined
|
|
1152
|
+
if (existing_feedbackId !== undefined || incoming_feedbackId !== undefined) {
|
|
1153
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1154
|
+
// not equal
|
|
1155
|
+
if (existing_feedbackId === undefined || incoming_feedbackId === undefined) {
|
|
1156
|
+
return false;
|
|
1157
|
+
}
|
|
1158
|
+
if (!(existing_feedbackId === incoming_feedbackId)) {
|
|
1159
|
+
return false;
|
|
1160
|
+
}
|
|
1114
1161
|
}
|
|
1115
1162
|
const existing_message = existing.message;
|
|
1116
1163
|
const incoming_message = incoming.message;
|
|
@@ -1140,8 +1187,16 @@ function equals$3(existing, incoming) {
|
|
|
1140
1187
|
}
|
|
1141
1188
|
const existing_planId = existing.planId;
|
|
1142
1189
|
const incoming_planId = incoming.planId;
|
|
1143
|
-
if
|
|
1144
|
-
|
|
1190
|
+
// if at least one of these optionals is defined
|
|
1191
|
+
if (existing_planId !== undefined || incoming_planId !== undefined) {
|
|
1192
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1193
|
+
// not equal
|
|
1194
|
+
if (existing_planId === undefined || incoming_planId === undefined) {
|
|
1195
|
+
return false;
|
|
1196
|
+
}
|
|
1197
|
+
if (!(existing_planId === incoming_planId)) {
|
|
1198
|
+
return false;
|
|
1199
|
+
}
|
|
1145
1200
|
}
|
|
1146
1201
|
const existing_result = existing.result;
|
|
1147
1202
|
const incoming_result = incoming.result;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 30000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "477724425d0742c030025796c88ebf5d";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: CollectMessageRepresentation, existing: CollectMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CollectMessageRepresentationNormalized;
|
|
@@ -16,9 +16,9 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
* (none)
|
|
17
17
|
*/
|
|
18
18
|
export interface CollectMessageRepresentationNormalized {
|
|
19
|
-
data
|
|
19
|
+
data?: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
20
20
|
/** Target property for the collect message. */
|
|
21
|
-
targetProperty
|
|
21
|
+
targetProperty?: string | null;
|
|
22
22
|
/** Target type for the collect message. */
|
|
23
23
|
targetType: string;
|
|
24
24
|
}
|
|
@@ -29,7 +29,7 @@ export interface CollectMessageRepresentationNormalized {
|
|
|
29
29
|
* (none)
|
|
30
30
|
*/
|
|
31
31
|
export interface CollectMessageRepresentation {
|
|
32
|
-
data
|
|
33
|
-
targetProperty
|
|
32
|
+
data?: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
33
|
+
targetProperty?: string | null;
|
|
34
34
|
targetType: string;
|
|
35
35
|
}
|
package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CollectMessageRepresentation as CollectMessageRepresentation_CollectMes
|
|
|
3
3
|
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
4
4
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
5
5
|
export declare const TTL = 30000;
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "55ac02bd055f57a2a12aa0fa4844d1a2";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -38,7 +38,7 @@ export interface ConversationRuntimeProxyMessageRepresentationNormalized {
|
|
|
38
38
|
/** The failure code for a Failure message. */
|
|
39
39
|
failureCode?: string | null;
|
|
40
40
|
/** Feedback ID for this generated message. */
|
|
41
|
-
feedbackId
|
|
41
|
+
feedbackId?: string | null;
|
|
42
42
|
/** Unique id of this message */
|
|
43
43
|
id: string;
|
|
44
44
|
/** The message for an ES Type message. */
|
|
@@ -46,7 +46,7 @@ export interface ConversationRuntimeProxyMessageRepresentationNormalized {
|
|
|
46
46
|
/** The message type for an ES Type message. */
|
|
47
47
|
messageType?: string | null;
|
|
48
48
|
/** Plan ID for the generated plan. */
|
|
49
|
-
planId
|
|
49
|
+
planId?: string | null;
|
|
50
50
|
/** The result response for an Inform message. */
|
|
51
51
|
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
52
52
|
/** The message text, if applicable for the type. */
|
|
@@ -68,11 +68,11 @@ export interface ConversationRuntimeProxyMessageRepresentation {
|
|
|
68
68
|
confirm?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
69
69
|
errors?: Array<string>;
|
|
70
70
|
failureCode?: string | null;
|
|
71
|
-
feedbackId
|
|
71
|
+
feedbackId?: string | null;
|
|
72
72
|
id: string;
|
|
73
73
|
message?: string | null;
|
|
74
74
|
messageType?: string | null;
|
|
75
|
-
planId
|
|
75
|
+
planId?: string | null;
|
|
76
76
|
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
77
77
|
text?: string | null;
|
|
78
78
|
type?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 30000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "e8cb7e20392935088ea2f98edb927e8a";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: EsTypeMessageRepresentation, existing: EsTypeMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EsTypeMessageRepresentationNormalized;
|
|
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
*/
|
|
17
17
|
export interface EsTypeMessageRepresentationNormalized {
|
|
18
18
|
/** Property for the ES type message. */
|
|
19
|
-
property
|
|
19
|
+
property?: string | null;
|
|
20
20
|
/** Type for the ES type message. */
|
|
21
21
|
type: string;
|
|
22
22
|
/** Value for the ES type message. */
|
|
@@ -29,7 +29,7 @@ export interface EsTypeMessageRepresentationNormalized {
|
|
|
29
29
|
* (none)
|
|
30
30
|
*/
|
|
31
31
|
export interface EsTypeMessageRepresentation {
|
|
32
|
-
property
|
|
32
|
+
property?: string | null;
|
|
33
33
|
type: string;
|
|
34
34
|
value: unknown;
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev19",
|
|
4
4
|
"description": "Einstein Copilot Bot API Family",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-einstein-copilot-bot.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.266.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.266.0-dev19"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev19"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -734,37 +734,39 @@ const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCo
|
|
|
734
734
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
735
735
|
};
|
|
736
736
|
|
|
737
|
-
const VERSION$4 = "
|
|
737
|
+
const VERSION$4 = "e8cb7e20392935088ea2f98edb927e8a";
|
|
738
738
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
739
739
|
const v_error = (() => {
|
|
740
740
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
741
741
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
742
742
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
743
|
+
if (obj.property !== undefined) {
|
|
744
|
+
const obj_property = obj.property;
|
|
745
|
+
const path_property = path + '.property';
|
|
746
|
+
let obj_property_union0 = null;
|
|
747
|
+
const obj_property_union0_error = (() => {
|
|
748
|
+
if (typeof obj_property !== 'string') {
|
|
749
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
750
|
+
}
|
|
751
|
+
})();
|
|
752
|
+
if (obj_property_union0_error != null) {
|
|
753
|
+
obj_property_union0 = obj_property_union0_error.message;
|
|
749
754
|
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
if (
|
|
757
|
-
|
|
755
|
+
let obj_property_union1 = null;
|
|
756
|
+
const obj_property_union1_error = (() => {
|
|
757
|
+
if (obj_property !== null) {
|
|
758
|
+
return new TypeError('Expected "null" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
759
|
+
}
|
|
760
|
+
})();
|
|
761
|
+
if (obj_property_union1_error != null) {
|
|
762
|
+
obj_property_union1 = obj_property_union1_error.message;
|
|
763
|
+
}
|
|
764
|
+
if (obj_property_union0 && obj_property_union1) {
|
|
765
|
+
let message = 'Object doesn\'t match union (at "' + path_property + '")';
|
|
766
|
+
message += '\n' + obj_property_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
767
|
+
message += '\n' + obj_property_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
768
|
+
return new TypeError(message);
|
|
758
769
|
}
|
|
759
|
-
})();
|
|
760
|
-
if (obj_property_union1_error != null) {
|
|
761
|
-
obj_property_union1 = obj_property_union1_error.message;
|
|
762
|
-
}
|
|
763
|
-
if (obj_property_union0 && obj_property_union1) {
|
|
764
|
-
let message = 'Object doesn\'t match union (at "' + path_property + '")';
|
|
765
|
-
message += '\n' + obj_property_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
766
|
-
message += '\n' + obj_property_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
767
|
-
return new TypeError(message);
|
|
768
770
|
}
|
|
769
771
|
const obj_type = obj.type;
|
|
770
772
|
const path_type = path + '.type';
|
|
@@ -787,7 +789,8 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
787
789
|
selections: [
|
|
788
790
|
{
|
|
789
791
|
name: 'property',
|
|
790
|
-
kind: 'Scalar'
|
|
792
|
+
kind: 'Scalar',
|
|
793
|
+
required: false
|
|
791
794
|
},
|
|
792
795
|
{
|
|
793
796
|
name: 'type',
|
|
@@ -809,8 +812,16 @@ function equals$4(existing, incoming) {
|
|
|
809
812
|
}
|
|
810
813
|
const existing_property = existing.property;
|
|
811
814
|
const incoming_property = incoming.property;
|
|
812
|
-
if
|
|
813
|
-
|
|
815
|
+
// if at least one of these optionals is defined
|
|
816
|
+
if (existing_property !== undefined || incoming_property !== undefined) {
|
|
817
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
818
|
+
// not equal
|
|
819
|
+
if (existing_property === undefined || incoming_property === undefined) {
|
|
820
|
+
return false;
|
|
821
|
+
}
|
|
822
|
+
if (!(existing_property === incoming_property)) {
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
814
825
|
}
|
|
815
826
|
const existing_value = existing.value;
|
|
816
827
|
const incoming_value = incoming.value;
|
|
@@ -891,45 +902,49 @@ function equals$3(existing, incoming) {
|
|
|
891
902
|
return true;
|
|
892
903
|
}
|
|
893
904
|
|
|
894
|
-
const VERSION$2 = "
|
|
905
|
+
const VERSION$2 = "477724425d0742c030025796c88ebf5d";
|
|
895
906
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
896
907
|
const v_error = (() => {
|
|
897
908
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
898
909
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
899
910
|
}
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
const obj_targetProperty = obj.targetProperty;
|
|
909
|
-
const path_targetProperty = path + '.targetProperty';
|
|
910
|
-
let obj_targetProperty_union0 = null;
|
|
911
|
-
const obj_targetProperty_union0_error = (() => {
|
|
912
|
-
if (typeof obj_targetProperty !== 'string') {
|
|
913
|
-
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
914
|
-
}
|
|
915
|
-
})();
|
|
916
|
-
if (obj_targetProperty_union0_error != null) {
|
|
917
|
-
obj_targetProperty_union0 = obj_targetProperty_union0_error.message;
|
|
918
|
-
}
|
|
919
|
-
let obj_targetProperty_union1 = null;
|
|
920
|
-
const obj_targetProperty_union1_error = (() => {
|
|
921
|
-
if (obj_targetProperty !== null) {
|
|
922
|
-
return new TypeError('Expected "null" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
911
|
+
if (obj.data !== undefined) {
|
|
912
|
+
const obj_data = obj.data;
|
|
913
|
+
const path_data = path + '.data';
|
|
914
|
+
const referencepath_dataValidationError = validate$5(obj_data, path_data);
|
|
915
|
+
if (referencepath_dataValidationError !== null) {
|
|
916
|
+
let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
|
|
917
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
918
|
+
return new TypeError(message);
|
|
923
919
|
}
|
|
924
|
-
})();
|
|
925
|
-
if (obj_targetProperty_union1_error != null) {
|
|
926
|
-
obj_targetProperty_union1 = obj_targetProperty_union1_error.message;
|
|
927
920
|
}
|
|
928
|
-
if (
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
921
|
+
if (obj.targetProperty !== undefined) {
|
|
922
|
+
const obj_targetProperty = obj.targetProperty;
|
|
923
|
+
const path_targetProperty = path + '.targetProperty';
|
|
924
|
+
let obj_targetProperty_union0 = null;
|
|
925
|
+
const obj_targetProperty_union0_error = (() => {
|
|
926
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
927
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
928
|
+
}
|
|
929
|
+
})();
|
|
930
|
+
if (obj_targetProperty_union0_error != null) {
|
|
931
|
+
obj_targetProperty_union0 = obj_targetProperty_union0_error.message;
|
|
932
|
+
}
|
|
933
|
+
let obj_targetProperty_union1 = null;
|
|
934
|
+
const obj_targetProperty_union1_error = (() => {
|
|
935
|
+
if (obj_targetProperty !== null) {
|
|
936
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
937
|
+
}
|
|
938
|
+
})();
|
|
939
|
+
if (obj_targetProperty_union1_error != null) {
|
|
940
|
+
obj_targetProperty_union1 = obj_targetProperty_union1_error.message;
|
|
941
|
+
}
|
|
942
|
+
if (obj_targetProperty_union0 && obj_targetProperty_union1) {
|
|
943
|
+
let message = 'Object doesn\'t match union (at "' + path_targetProperty + '")';
|
|
944
|
+
message += '\n' + obj_targetProperty_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
945
|
+
message += '\n' + obj_targetProperty_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
946
|
+
return new TypeError(message);
|
|
947
|
+
}
|
|
933
948
|
}
|
|
934
949
|
const obj_targetType = obj.targetType;
|
|
935
950
|
const path_targetType = path + '.targetType';
|
|
@@ -949,11 +964,13 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
949
964
|
{
|
|
950
965
|
name: 'data',
|
|
951
966
|
kind: 'Object',
|
|
952
|
-
selections: EsTypeMessageRepresentation__selections
|
|
967
|
+
selections: EsTypeMessageRepresentation__selections,
|
|
968
|
+
required: false
|
|
953
969
|
},
|
|
954
970
|
{
|
|
955
971
|
name: 'targetProperty',
|
|
956
|
-
kind: 'Scalar'
|
|
972
|
+
kind: 'Scalar',
|
|
973
|
+
required: false
|
|
957
974
|
},
|
|
958
975
|
{
|
|
959
976
|
name: 'targetType',
|
|
@@ -970,19 +987,35 @@ function equals$2(existing, incoming) {
|
|
|
970
987
|
}
|
|
971
988
|
const existing_data = existing.data;
|
|
972
989
|
const incoming_data = incoming.data;
|
|
973
|
-
if
|
|
974
|
-
|
|
990
|
+
// if at least one of these optionals is defined
|
|
991
|
+
if (existing_data !== undefined || incoming_data !== undefined) {
|
|
992
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
993
|
+
// not equal
|
|
994
|
+
if (existing_data === undefined || incoming_data === undefined) {
|
|
995
|
+
return false;
|
|
996
|
+
}
|
|
997
|
+
if (!(equals$4(existing_data, incoming_data))) {
|
|
998
|
+
return false;
|
|
999
|
+
}
|
|
975
1000
|
}
|
|
976
1001
|
const existing_targetProperty = existing.targetProperty;
|
|
977
1002
|
const incoming_targetProperty = incoming.targetProperty;
|
|
978
|
-
if
|
|
979
|
-
|
|
1003
|
+
// if at least one of these optionals is defined
|
|
1004
|
+
if (existing_targetProperty !== undefined || incoming_targetProperty !== undefined) {
|
|
1005
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1006
|
+
// not equal
|
|
1007
|
+
if (existing_targetProperty === undefined || incoming_targetProperty === undefined) {
|
|
1008
|
+
return false;
|
|
1009
|
+
}
|
|
1010
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
1011
|
+
return false;
|
|
1012
|
+
}
|
|
980
1013
|
}
|
|
981
1014
|
return true;
|
|
982
1015
|
}
|
|
983
1016
|
|
|
984
1017
|
const TTL$1 = 30000;
|
|
985
|
-
const VERSION$1 = "
|
|
1018
|
+
const VERSION$1 = "55ac02bd055f57a2a12aa0fa4844d1a2";
|
|
986
1019
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
987
1020
|
const v_error = (() => {
|
|
988
1021
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1081,31 +1114,33 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
1081
1114
|
return new TypeError(message);
|
|
1082
1115
|
}
|
|
1083
1116
|
}
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1117
|
+
if (obj.feedbackId !== undefined) {
|
|
1118
|
+
const obj_feedbackId = obj.feedbackId;
|
|
1119
|
+
const path_feedbackId = path + '.feedbackId';
|
|
1120
|
+
let obj_feedbackId_union0 = null;
|
|
1121
|
+
const obj_feedbackId_union0_error = (() => {
|
|
1122
|
+
if (typeof obj_feedbackId !== 'string') {
|
|
1123
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
1124
|
+
}
|
|
1125
|
+
})();
|
|
1126
|
+
if (obj_feedbackId_union0_error != null) {
|
|
1127
|
+
obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
|
|
1090
1128
|
}
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
if (
|
|
1098
|
-
|
|
1129
|
+
let obj_feedbackId_union1 = null;
|
|
1130
|
+
const obj_feedbackId_union1_error = (() => {
|
|
1131
|
+
if (obj_feedbackId !== null) {
|
|
1132
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
1133
|
+
}
|
|
1134
|
+
})();
|
|
1135
|
+
if (obj_feedbackId_union1_error != null) {
|
|
1136
|
+
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
1137
|
+
}
|
|
1138
|
+
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
1139
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
1140
|
+
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1141
|
+
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1142
|
+
return new TypeError(message);
|
|
1099
1143
|
}
|
|
1100
|
-
})();
|
|
1101
|
-
if (obj_feedbackId_union1_error != null) {
|
|
1102
|
-
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
1103
|
-
}
|
|
1104
|
-
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
1105
|
-
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
1106
|
-
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1107
|
-
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1108
|
-
return new TypeError(message);
|
|
1109
1144
|
}
|
|
1110
1145
|
const obj_id = obj.id;
|
|
1111
1146
|
const path_id = path + '.id';
|
|
@@ -1168,31 +1203,33 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
1168
1203
|
return new TypeError(message);
|
|
1169
1204
|
}
|
|
1170
1205
|
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1206
|
+
if (obj.planId !== undefined) {
|
|
1207
|
+
const obj_planId = obj.planId;
|
|
1208
|
+
const path_planId = path + '.planId';
|
|
1209
|
+
let obj_planId_union0 = null;
|
|
1210
|
+
const obj_planId_union0_error = (() => {
|
|
1211
|
+
if (typeof obj_planId !== 'string') {
|
|
1212
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
1213
|
+
}
|
|
1214
|
+
})();
|
|
1215
|
+
if (obj_planId_union0_error != null) {
|
|
1216
|
+
obj_planId_union0 = obj_planId_union0_error.message;
|
|
1217
|
+
}
|
|
1218
|
+
let obj_planId_union1 = null;
|
|
1219
|
+
const obj_planId_union1_error = (() => {
|
|
1220
|
+
if (obj_planId !== null) {
|
|
1221
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
1222
|
+
}
|
|
1223
|
+
})();
|
|
1224
|
+
if (obj_planId_union1_error != null) {
|
|
1225
|
+
obj_planId_union1 = obj_planId_union1_error.message;
|
|
1177
1226
|
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
const obj_planId_union1_error = (() => {
|
|
1184
|
-
if (obj_planId !== null) {
|
|
1185
|
-
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
1227
|
+
if (obj_planId_union0 && obj_planId_union1) {
|
|
1228
|
+
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
1229
|
+
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1230
|
+
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1231
|
+
return new TypeError(message);
|
|
1186
1232
|
}
|
|
1187
|
-
})();
|
|
1188
|
-
if (obj_planId_union1_error != null) {
|
|
1189
|
-
obj_planId_union1 = obj_planId_union1_error.message;
|
|
1190
|
-
}
|
|
1191
|
-
if (obj_planId_union0 && obj_planId_union1) {
|
|
1192
|
-
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
1193
|
-
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1194
|
-
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1195
|
-
return new TypeError(message);
|
|
1196
1233
|
}
|
|
1197
1234
|
if (obj.result !== undefined) {
|
|
1198
1235
|
const obj_result = obj.result;
|
|
@@ -1333,7 +1370,8 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
1333
1370
|
},
|
|
1334
1371
|
{
|
|
1335
1372
|
name: 'feedbackId',
|
|
1336
|
-
kind: 'Scalar'
|
|
1373
|
+
kind: 'Scalar',
|
|
1374
|
+
required: false
|
|
1337
1375
|
},
|
|
1338
1376
|
{
|
|
1339
1377
|
name: 'id',
|
|
@@ -1351,7 +1389,8 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
1351
1389
|
},
|
|
1352
1390
|
{
|
|
1353
1391
|
name: 'planId',
|
|
1354
|
-
kind: 'Scalar'
|
|
1392
|
+
kind: 'Scalar',
|
|
1393
|
+
required: false
|
|
1355
1394
|
},
|
|
1356
1395
|
{
|
|
1357
1396
|
name: 'result',
|
|
@@ -1484,8 +1523,16 @@ function equals$1(existing, incoming) {
|
|
|
1484
1523
|
}
|
|
1485
1524
|
const existing_feedbackId = existing.feedbackId;
|
|
1486
1525
|
const incoming_feedbackId = incoming.feedbackId;
|
|
1487
|
-
if
|
|
1488
|
-
|
|
1526
|
+
// if at least one of these optionals is defined
|
|
1527
|
+
if (existing_feedbackId !== undefined || incoming_feedbackId !== undefined) {
|
|
1528
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1529
|
+
// not equal
|
|
1530
|
+
if (existing_feedbackId === undefined || incoming_feedbackId === undefined) {
|
|
1531
|
+
return false;
|
|
1532
|
+
}
|
|
1533
|
+
if (!(existing_feedbackId === incoming_feedbackId)) {
|
|
1534
|
+
return false;
|
|
1535
|
+
}
|
|
1489
1536
|
}
|
|
1490
1537
|
const existing_message = existing.message;
|
|
1491
1538
|
const incoming_message = incoming.message;
|
|
@@ -1515,8 +1562,16 @@ function equals$1(existing, incoming) {
|
|
|
1515
1562
|
}
|
|
1516
1563
|
const existing_planId = existing.planId;
|
|
1517
1564
|
const incoming_planId = incoming.planId;
|
|
1518
|
-
if
|
|
1519
|
-
|
|
1565
|
+
// if at least one of these optionals is defined
|
|
1566
|
+
if (existing_planId !== undefined || incoming_planId !== undefined) {
|
|
1567
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1568
|
+
// not equal
|
|
1569
|
+
if (existing_planId === undefined || incoming_planId === undefined) {
|
|
1570
|
+
return false;
|
|
1571
|
+
}
|
|
1572
|
+
if (!(existing_planId === incoming_planId)) {
|
|
1573
|
+
return false;
|
|
1574
|
+
}
|
|
1520
1575
|
}
|
|
1521
1576
|
const existing_result = existing.result;
|
|
1522
1577
|
const incoming_result = incoming.result;
|
|
@@ -1946,4 +2001,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1946
2001
|
});
|
|
1947
2002
|
|
|
1948
2003
|
export { getBotId, getBotId_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage };
|
|
1949
|
-
// version: 1.266.0-
|
|
2004
|
+
// version: 1.266.0-dev19-3b7e488f6
|
package/src/raml/api.raml
CHANGED
|
@@ -32,9 +32,11 @@ types:
|
|
|
32
32
|
data:
|
|
33
33
|
description: Data for the collect message.
|
|
34
34
|
type: EsTypeMessageRepresentation
|
|
35
|
+
required: false
|
|
35
36
|
targetProperty:
|
|
36
37
|
description: Target property for the collect message.
|
|
37
38
|
type: string | nil
|
|
39
|
+
required: false
|
|
38
40
|
targetType:
|
|
39
41
|
description: Target type for the collect message.
|
|
40
42
|
type: string
|
|
@@ -139,6 +141,7 @@ types:
|
|
|
139
141
|
feedbackId:
|
|
140
142
|
description: Feedback ID for this generated message.
|
|
141
143
|
type: string | nil
|
|
144
|
+
required: false
|
|
142
145
|
id:
|
|
143
146
|
description: Unique id of this message
|
|
144
147
|
type: string
|
|
@@ -153,6 +156,7 @@ types:
|
|
|
153
156
|
planId:
|
|
154
157
|
description: Plan ID for the generated plan.
|
|
155
158
|
type: string | nil
|
|
159
|
+
required: false
|
|
156
160
|
result:
|
|
157
161
|
description: The result response for an Inform message.
|
|
158
162
|
type: array
|
|
@@ -231,6 +235,7 @@ types:
|
|
|
231
235
|
property:
|
|
232
236
|
description: Property for the ES type message.
|
|
233
237
|
type: string | nil
|
|
238
|
+
required: false
|
|
234
239
|
type:
|
|
235
240
|
description: Type for the ES type message.
|
|
236
241
|
type: string
|