@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev1 → 1.266.0-dev11
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 +102 -3
- package/dist/es/es2018/types/src/generated/adapters/sendMessage.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectConversationRuntimeProxy.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/CollectMessageRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/EsTypeMessageRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +103 -4
- package/src/raml/api.raml +16 -0
|
@@ -339,12 +339,17 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
339
339
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
const VERSION$4 = "
|
|
342
|
+
const VERSION$4 = "eaa88c9352375a84f304d76d13628b5a";
|
|
343
343
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
344
344
|
const v_error = (() => {
|
|
345
345
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
346
346
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
347
347
|
}
|
|
348
|
+
const obj_property = obj.property;
|
|
349
|
+
const path_property = path + '.property';
|
|
350
|
+
if (typeof obj_property !== 'string') {
|
|
351
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
352
|
+
}
|
|
348
353
|
const obj_type = obj.type;
|
|
349
354
|
const path_type = path + '.type';
|
|
350
355
|
if (typeof obj_type !== 'string') {
|
|
@@ -364,6 +369,10 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
364
369
|
version: VERSION$4,
|
|
365
370
|
private: [],
|
|
366
371
|
selections: [
|
|
372
|
+
{
|
|
373
|
+
name: 'property',
|
|
374
|
+
kind: 'Scalar'
|
|
375
|
+
},
|
|
367
376
|
{
|
|
368
377
|
name: 'type',
|
|
369
378
|
kind: 'Scalar'
|
|
@@ -377,6 +386,11 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
377
386
|
};
|
|
378
387
|
};
|
|
379
388
|
function equals$4(existing, incoming) {
|
|
389
|
+
const existing_property = existing.property;
|
|
390
|
+
const incoming_property = incoming.property;
|
|
391
|
+
if (!(existing_property === incoming_property)) {
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
380
394
|
const existing_type = existing.type;
|
|
381
395
|
const incoming_type = incoming.type;
|
|
382
396
|
if (!(existing_type === incoming_type)) {
|
|
@@ -459,7 +473,7 @@ function equals$3(existing, incoming) {
|
|
|
459
473
|
return true;
|
|
460
474
|
}
|
|
461
475
|
|
|
462
|
-
const VERSION$2 = "
|
|
476
|
+
const VERSION$2 = "2fe61f5346db4feb51352f6cf58b0c1b";
|
|
463
477
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
464
478
|
const v_error = (() => {
|
|
465
479
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -473,6 +487,11 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
473
487
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
474
488
|
return new TypeError(message);
|
|
475
489
|
}
|
|
490
|
+
const obj_targetProperty = obj.targetProperty;
|
|
491
|
+
const path_targetProperty = path + '.targetProperty';
|
|
492
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
493
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
494
|
+
}
|
|
476
495
|
const obj_targetType = obj.targetType;
|
|
477
496
|
const path_targetType = path + '.targetType';
|
|
478
497
|
if (typeof obj_targetType !== 'string') {
|
|
@@ -493,6 +512,10 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
493
512
|
kind: 'Object',
|
|
494
513
|
selections: EsTypeMessageRepresentation__selections
|
|
495
514
|
},
|
|
515
|
+
{
|
|
516
|
+
name: 'targetProperty',
|
|
517
|
+
kind: 'Scalar'
|
|
518
|
+
},
|
|
496
519
|
{
|
|
497
520
|
name: 'targetType',
|
|
498
521
|
kind: 'Scalar'
|
|
@@ -501,6 +524,11 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
501
524
|
};
|
|
502
525
|
};
|
|
503
526
|
function equals$2(existing, incoming) {
|
|
527
|
+
const existing_targetProperty = existing.targetProperty;
|
|
528
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
529
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
530
|
+
return false;
|
|
531
|
+
}
|
|
504
532
|
const existing_targetType = existing.targetType;
|
|
505
533
|
const incoming_targetType = incoming.targetType;
|
|
506
534
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -515,7 +543,7 @@ function equals$2(existing, incoming) {
|
|
|
515
543
|
}
|
|
516
544
|
|
|
517
545
|
const TTL$1 = 30000;
|
|
518
|
-
const VERSION$1 = "
|
|
546
|
+
const VERSION$1 = "d3d34b56efe68a37c173d0cb91c57ba1";
|
|
519
547
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
520
548
|
const v_error = (() => {
|
|
521
549
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -614,6 +642,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
614
642
|
return new TypeError(message);
|
|
615
643
|
}
|
|
616
644
|
}
|
|
645
|
+
const obj_feedbackId = obj.feedbackId;
|
|
646
|
+
const path_feedbackId = path + '.feedbackId';
|
|
647
|
+
let obj_feedbackId_union0 = null;
|
|
648
|
+
const obj_feedbackId_union0_error = (() => {
|
|
649
|
+
if (typeof obj_feedbackId !== 'string') {
|
|
650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
651
|
+
}
|
|
652
|
+
})();
|
|
653
|
+
if (obj_feedbackId_union0_error != null) {
|
|
654
|
+
obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
|
|
655
|
+
}
|
|
656
|
+
let obj_feedbackId_union1 = null;
|
|
657
|
+
const obj_feedbackId_union1_error = (() => {
|
|
658
|
+
if (obj_feedbackId !== null) {
|
|
659
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
660
|
+
}
|
|
661
|
+
})();
|
|
662
|
+
if (obj_feedbackId_union1_error != null) {
|
|
663
|
+
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
664
|
+
}
|
|
665
|
+
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
666
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
667
|
+
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
668
|
+
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
669
|
+
return new TypeError(message);
|
|
670
|
+
}
|
|
617
671
|
const obj_id = obj.id;
|
|
618
672
|
const path_id = path + '.id';
|
|
619
673
|
if (typeof obj_id !== 'string') {
|
|
@@ -675,6 +729,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
675
729
|
return new TypeError(message);
|
|
676
730
|
}
|
|
677
731
|
}
|
|
732
|
+
const obj_planId = obj.planId;
|
|
733
|
+
const path_planId = path + '.planId';
|
|
734
|
+
let obj_planId_union0 = null;
|
|
735
|
+
const obj_planId_union0_error = (() => {
|
|
736
|
+
if (typeof obj_planId !== 'string') {
|
|
737
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
738
|
+
}
|
|
739
|
+
})();
|
|
740
|
+
if (obj_planId_union0_error != null) {
|
|
741
|
+
obj_planId_union0 = obj_planId_union0_error.message;
|
|
742
|
+
}
|
|
743
|
+
let obj_planId_union1 = null;
|
|
744
|
+
const obj_planId_union1_error = (() => {
|
|
745
|
+
if (obj_planId !== null) {
|
|
746
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
747
|
+
}
|
|
748
|
+
})();
|
|
749
|
+
if (obj_planId_union1_error != null) {
|
|
750
|
+
obj_planId_union1 = obj_planId_union1_error.message;
|
|
751
|
+
}
|
|
752
|
+
if (obj_planId_union0 && obj_planId_union1) {
|
|
753
|
+
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
754
|
+
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
755
|
+
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
756
|
+
return new TypeError(message);
|
|
757
|
+
}
|
|
678
758
|
if (obj.result !== undefined) {
|
|
679
759
|
const obj_result = obj.result;
|
|
680
760
|
const path_result = path + '.result';
|
|
@@ -812,6 +892,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
812
892
|
kind: 'Scalar',
|
|
813
893
|
required: false
|
|
814
894
|
},
|
|
895
|
+
{
|
|
896
|
+
name: 'feedbackId',
|
|
897
|
+
kind: 'Scalar'
|
|
898
|
+
},
|
|
815
899
|
{
|
|
816
900
|
name: 'id',
|
|
817
901
|
kind: 'Scalar'
|
|
@@ -826,6 +910,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
826
910
|
kind: 'Scalar',
|
|
827
911
|
required: false
|
|
828
912
|
},
|
|
913
|
+
{
|
|
914
|
+
name: 'planId',
|
|
915
|
+
kind: 'Scalar'
|
|
916
|
+
},
|
|
829
917
|
{
|
|
830
918
|
name: 'result',
|
|
831
919
|
kind: 'Object',
|
|
@@ -955,6 +1043,11 @@ function equals$1(existing, incoming) {
|
|
|
955
1043
|
return false;
|
|
956
1044
|
}
|
|
957
1045
|
}
|
|
1046
|
+
const existing_feedbackId = existing.feedbackId;
|
|
1047
|
+
const incoming_feedbackId = incoming.feedbackId;
|
|
1048
|
+
if (!(existing_feedbackId === incoming_feedbackId)) {
|
|
1049
|
+
return false;
|
|
1050
|
+
}
|
|
958
1051
|
const existing_message = existing.message;
|
|
959
1052
|
const incoming_message = incoming.message;
|
|
960
1053
|
// if at least one of these optionals is defined
|
|
@@ -981,6 +1074,11 @@ function equals$1(existing, incoming) {
|
|
|
981
1074
|
return false;
|
|
982
1075
|
}
|
|
983
1076
|
}
|
|
1077
|
+
const existing_planId = existing.planId;
|
|
1078
|
+
const incoming_planId = incoming.planId;
|
|
1079
|
+
if (!(existing_planId === incoming_planId)) {
|
|
1080
|
+
return false;
|
|
1081
|
+
}
|
|
984
1082
|
const existing_result = existing.result;
|
|
985
1083
|
const incoming_result = incoming.result;
|
|
986
1084
|
// if at least one of these optionals is defined
|
|
@@ -1280,6 +1378,7 @@ const sendMessage_ConfigPropertyMetadata = [
|
|
|
1280
1378
|
generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1281
1379
|
generateParamConfigMetadata('message', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1282
1380
|
generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1381
|
+
generateParamConfigMetadata('inReplyToMessageId', false, 2 /* Body */, 0 /* String */),
|
|
1283
1382
|
generateParamConfigMetadata('messageType', false, 2 /* Body */, 0 /* String */),
|
|
1284
1383
|
generateParamConfigMetadata('reply', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1285
1384
|
generateParamConfigMetadata('text', false, 2 /* Body */, 0 /* String */),
|
|
@@ -12,6 +12,7 @@ export interface SendMessageConfig {
|
|
|
12
12
|
botVersionId?: string;
|
|
13
13
|
message?: string;
|
|
14
14
|
sessionId?: string;
|
|
15
|
+
inReplyToMessageId?: string;
|
|
15
16
|
messageType?: string;
|
|
16
17
|
reply?: Array<types_EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
17
18
|
text?: string;
|
|
@@ -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 = "2fe61f5346db4feb51352f6cf58b0c1b";
|
|
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;
|
|
@@ -17,6 +17,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CollectMessageRepresentationNormalized {
|
|
19
19
|
data: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
20
|
+
/** Target property for the collect message. */
|
|
21
|
+
targetProperty: string;
|
|
20
22
|
/** Target type for the collect message. */
|
|
21
23
|
targetType: string;
|
|
22
24
|
}
|
|
@@ -28,5 +30,6 @@ export interface CollectMessageRepresentationNormalized {
|
|
|
28
30
|
*/
|
|
29
31
|
export interface CollectMessageRepresentation {
|
|
30
32
|
data: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
33
|
+
targetProperty: string;
|
|
31
34
|
targetType: string;
|
|
32
35
|
}
|
package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyInputRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
2
2
|
import { VariableRepresentation as VariableRepresentation_VariableRepresentation } from './VariableRepresentation';
|
|
3
3
|
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';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "976a695a1e2e9489f7727d7e57740771";
|
|
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: ConversationRuntimeProxyInputRepresentation, existing: ConversationRuntimeProxyInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRuntimeProxyInputRepresentationNormalized;
|
|
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
* (none)
|
|
17
17
|
*/
|
|
18
18
|
export interface ConversationRuntimeProxyInputRepresentationNormalized {
|
|
19
|
+
/** Message ID that this message is replying to */
|
|
20
|
+
inReplyToMessageId?: string;
|
|
19
21
|
/** Message type */
|
|
20
22
|
messageType?: string;
|
|
21
23
|
/** Reply */
|
|
@@ -34,6 +36,7 @@ export interface ConversationRuntimeProxyInputRepresentationNormalized {
|
|
|
34
36
|
* (none)
|
|
35
37
|
*/
|
|
36
38
|
export interface ConversationRuntimeProxyInputRepresentation {
|
|
39
|
+
inReplyToMessageId?: string;
|
|
37
40
|
messageType?: string;
|
|
38
41
|
reply?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
39
42
|
text?: string;
|
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 = "d3d34b56efe68a37c173d0cb91c57ba1";
|
|
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 {
|
|
@@ -37,12 +37,16 @@ export interface ConversationRuntimeProxyMessageRepresentationNormalized {
|
|
|
37
37
|
errors?: Array<string>;
|
|
38
38
|
/** The failure code for a Failure message. */
|
|
39
39
|
failureCode?: string | null;
|
|
40
|
+
/** Feedback ID for this generated message. */
|
|
41
|
+
feedbackId: string | null;
|
|
40
42
|
/** Unique id of this message */
|
|
41
43
|
id: string;
|
|
42
44
|
/** The message for an ES Type message. */
|
|
43
45
|
message?: string | null;
|
|
44
46
|
/** The message type for an ES Type message. */
|
|
45
47
|
messageType?: string | null;
|
|
48
|
+
/** Plan ID for the generated plan. */
|
|
49
|
+
planId: string | null;
|
|
46
50
|
/** The result response for an Inform message. */
|
|
47
51
|
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
48
52
|
/** The message text, if applicable for the type. */
|
|
@@ -64,9 +68,11 @@ export interface ConversationRuntimeProxyMessageRepresentation {
|
|
|
64
68
|
confirm?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
65
69
|
errors?: Array<string>;
|
|
66
70
|
failureCode?: string | null;
|
|
71
|
+
feedbackId: string | null;
|
|
67
72
|
id: string;
|
|
68
73
|
message?: string | null;
|
|
69
74
|
messageType?: string | null;
|
|
75
|
+
planId: string | null;
|
|
70
76
|
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
71
77
|
text?: string | null;
|
|
72
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 = "eaa88c9352375a84f304d76d13628b5a";
|
|
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;
|
|
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface EsTypeMessageRepresentationNormalized {
|
|
18
|
+
/** Property for the ES type message. */
|
|
19
|
+
property: string;
|
|
18
20
|
/** Type for the ES type message. */
|
|
19
21
|
type: string;
|
|
20
22
|
/** Value for the ES type message. */
|
|
@@ -27,6 +29,7 @@ export interface EsTypeMessageRepresentationNormalized {
|
|
|
27
29
|
* (none)
|
|
28
30
|
*/
|
|
29
31
|
export interface EsTypeMessageRepresentation {
|
|
32
|
+
property: string;
|
|
30
33
|
type: string;
|
|
31
34
|
value: unknown;
|
|
32
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-dev11",
|
|
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-dev11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev11"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -349,12 +349,17 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
349
349
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
350
350
|
};
|
|
351
351
|
|
|
352
|
-
const VERSION$4 = "
|
|
352
|
+
const VERSION$4 = "eaa88c9352375a84f304d76d13628b5a";
|
|
353
353
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
354
354
|
const v_error = (() => {
|
|
355
355
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
356
356
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
357
357
|
}
|
|
358
|
+
const obj_property = obj.property;
|
|
359
|
+
const path_property = path + '.property';
|
|
360
|
+
if (typeof obj_property !== 'string') {
|
|
361
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
362
|
+
}
|
|
358
363
|
const obj_type = obj.type;
|
|
359
364
|
const path_type = path + '.type';
|
|
360
365
|
if (typeof obj_type !== 'string') {
|
|
@@ -374,6 +379,10 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
374
379
|
version: VERSION$4,
|
|
375
380
|
private: [],
|
|
376
381
|
selections: [
|
|
382
|
+
{
|
|
383
|
+
name: 'property',
|
|
384
|
+
kind: 'Scalar'
|
|
385
|
+
},
|
|
377
386
|
{
|
|
378
387
|
name: 'type',
|
|
379
388
|
kind: 'Scalar'
|
|
@@ -387,6 +396,11 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
387
396
|
};
|
|
388
397
|
};
|
|
389
398
|
function equals$4(existing, incoming) {
|
|
399
|
+
const existing_property = existing.property;
|
|
400
|
+
const incoming_property = incoming.property;
|
|
401
|
+
if (!(existing_property === incoming_property)) {
|
|
402
|
+
return false;
|
|
403
|
+
}
|
|
390
404
|
const existing_type = existing.type;
|
|
391
405
|
const incoming_type = incoming.type;
|
|
392
406
|
if (!(existing_type === incoming_type)) {
|
|
@@ -469,7 +483,7 @@ function equals$3(existing, incoming) {
|
|
|
469
483
|
return true;
|
|
470
484
|
}
|
|
471
485
|
|
|
472
|
-
const VERSION$2 = "
|
|
486
|
+
const VERSION$2 = "2fe61f5346db4feb51352f6cf58b0c1b";
|
|
473
487
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
474
488
|
const v_error = (() => {
|
|
475
489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -483,6 +497,11 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
483
497
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
484
498
|
return new TypeError(message);
|
|
485
499
|
}
|
|
500
|
+
const obj_targetProperty = obj.targetProperty;
|
|
501
|
+
const path_targetProperty = path + '.targetProperty';
|
|
502
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
503
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
504
|
+
}
|
|
486
505
|
const obj_targetType = obj.targetType;
|
|
487
506
|
const path_targetType = path + '.targetType';
|
|
488
507
|
if (typeof obj_targetType !== 'string') {
|
|
@@ -503,6 +522,10 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
503
522
|
kind: 'Object',
|
|
504
523
|
selections: EsTypeMessageRepresentation__selections
|
|
505
524
|
},
|
|
525
|
+
{
|
|
526
|
+
name: 'targetProperty',
|
|
527
|
+
kind: 'Scalar'
|
|
528
|
+
},
|
|
506
529
|
{
|
|
507
530
|
name: 'targetType',
|
|
508
531
|
kind: 'Scalar'
|
|
@@ -511,6 +534,11 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
511
534
|
};
|
|
512
535
|
};
|
|
513
536
|
function equals$2(existing, incoming) {
|
|
537
|
+
const existing_targetProperty = existing.targetProperty;
|
|
538
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
539
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
540
|
+
return false;
|
|
541
|
+
}
|
|
514
542
|
const existing_targetType = existing.targetType;
|
|
515
543
|
const incoming_targetType = incoming.targetType;
|
|
516
544
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -525,7 +553,7 @@ function equals$2(existing, incoming) {
|
|
|
525
553
|
}
|
|
526
554
|
|
|
527
555
|
const TTL$1 = 30000;
|
|
528
|
-
const VERSION$1 = "
|
|
556
|
+
const VERSION$1 = "d3d34b56efe68a37c173d0cb91c57ba1";
|
|
529
557
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
530
558
|
const v_error = (() => {
|
|
531
559
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -624,6 +652,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
624
652
|
return new TypeError(message);
|
|
625
653
|
}
|
|
626
654
|
}
|
|
655
|
+
const obj_feedbackId = obj.feedbackId;
|
|
656
|
+
const path_feedbackId = path + '.feedbackId';
|
|
657
|
+
let obj_feedbackId_union0 = null;
|
|
658
|
+
const obj_feedbackId_union0_error = (() => {
|
|
659
|
+
if (typeof obj_feedbackId !== 'string') {
|
|
660
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
661
|
+
}
|
|
662
|
+
})();
|
|
663
|
+
if (obj_feedbackId_union0_error != null) {
|
|
664
|
+
obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
|
|
665
|
+
}
|
|
666
|
+
let obj_feedbackId_union1 = null;
|
|
667
|
+
const obj_feedbackId_union1_error = (() => {
|
|
668
|
+
if (obj_feedbackId !== null) {
|
|
669
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
670
|
+
}
|
|
671
|
+
})();
|
|
672
|
+
if (obj_feedbackId_union1_error != null) {
|
|
673
|
+
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
674
|
+
}
|
|
675
|
+
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
676
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
677
|
+
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
678
|
+
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
679
|
+
return new TypeError(message);
|
|
680
|
+
}
|
|
627
681
|
const obj_id = obj.id;
|
|
628
682
|
const path_id = path + '.id';
|
|
629
683
|
if (typeof obj_id !== 'string') {
|
|
@@ -685,6 +739,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
685
739
|
return new TypeError(message);
|
|
686
740
|
}
|
|
687
741
|
}
|
|
742
|
+
const obj_planId = obj.planId;
|
|
743
|
+
const path_planId = path + '.planId';
|
|
744
|
+
let obj_planId_union0 = null;
|
|
745
|
+
const obj_planId_union0_error = (() => {
|
|
746
|
+
if (typeof obj_planId !== 'string') {
|
|
747
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
748
|
+
}
|
|
749
|
+
})();
|
|
750
|
+
if (obj_planId_union0_error != null) {
|
|
751
|
+
obj_planId_union0 = obj_planId_union0_error.message;
|
|
752
|
+
}
|
|
753
|
+
let obj_planId_union1 = null;
|
|
754
|
+
const obj_planId_union1_error = (() => {
|
|
755
|
+
if (obj_planId !== null) {
|
|
756
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
757
|
+
}
|
|
758
|
+
})();
|
|
759
|
+
if (obj_planId_union1_error != null) {
|
|
760
|
+
obj_planId_union1 = obj_planId_union1_error.message;
|
|
761
|
+
}
|
|
762
|
+
if (obj_planId_union0 && obj_planId_union1) {
|
|
763
|
+
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
764
|
+
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
765
|
+
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
766
|
+
return new TypeError(message);
|
|
767
|
+
}
|
|
688
768
|
if (obj.result !== undefined) {
|
|
689
769
|
const obj_result = obj.result;
|
|
690
770
|
const path_result = path + '.result';
|
|
@@ -822,6 +902,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
822
902
|
kind: 'Scalar',
|
|
823
903
|
required: false
|
|
824
904
|
},
|
|
905
|
+
{
|
|
906
|
+
name: 'feedbackId',
|
|
907
|
+
kind: 'Scalar'
|
|
908
|
+
},
|
|
825
909
|
{
|
|
826
910
|
name: 'id',
|
|
827
911
|
kind: 'Scalar'
|
|
@@ -836,6 +920,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
836
920
|
kind: 'Scalar',
|
|
837
921
|
required: false
|
|
838
922
|
},
|
|
923
|
+
{
|
|
924
|
+
name: 'planId',
|
|
925
|
+
kind: 'Scalar'
|
|
926
|
+
},
|
|
839
927
|
{
|
|
840
928
|
name: 'result',
|
|
841
929
|
kind: 'Object',
|
|
@@ -965,6 +1053,11 @@ function equals$1(existing, incoming) {
|
|
|
965
1053
|
return false;
|
|
966
1054
|
}
|
|
967
1055
|
}
|
|
1056
|
+
const existing_feedbackId = existing.feedbackId;
|
|
1057
|
+
const incoming_feedbackId = incoming.feedbackId;
|
|
1058
|
+
if (!(existing_feedbackId === incoming_feedbackId)) {
|
|
1059
|
+
return false;
|
|
1060
|
+
}
|
|
968
1061
|
const existing_message = existing.message;
|
|
969
1062
|
const incoming_message = incoming.message;
|
|
970
1063
|
// if at least one of these optionals is defined
|
|
@@ -991,6 +1084,11 @@ function equals$1(existing, incoming) {
|
|
|
991
1084
|
return false;
|
|
992
1085
|
}
|
|
993
1086
|
}
|
|
1087
|
+
const existing_planId = existing.planId;
|
|
1088
|
+
const incoming_planId = incoming.planId;
|
|
1089
|
+
if (!(existing_planId === incoming_planId)) {
|
|
1090
|
+
return false;
|
|
1091
|
+
}
|
|
994
1092
|
const existing_result = existing.result;
|
|
995
1093
|
const incoming_result = incoming.result;
|
|
996
1094
|
// if at least one of these optionals is defined
|
|
@@ -1290,6 +1388,7 @@ const sendMessage_ConfigPropertyMetadata = [
|
|
|
1290
1388
|
generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1291
1389
|
generateParamConfigMetadata('message', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1292
1390
|
generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1391
|
+
generateParamConfigMetadata('inReplyToMessageId', false, 2 /* Body */, 0 /* String */),
|
|
1293
1392
|
generateParamConfigMetadata('messageType', false, 2 /* Body */, 0 /* String */),
|
|
1294
1393
|
generateParamConfigMetadata('reply', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1295
1394
|
generateParamConfigMetadata('text', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1396,4 +1495,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1396
1495
|
});
|
|
1397
1496
|
|
|
1398
1497
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1399
|
-
// version: 1.266.0-
|
|
1498
|
+
// version: 1.266.0-dev11-54133651d
|
package/src/raml/api.raml
CHANGED
|
@@ -32,6 +32,9 @@ types:
|
|
|
32
32
|
data:
|
|
33
33
|
description: Data for the collect message.
|
|
34
34
|
type: EsTypeMessageRepresentation
|
|
35
|
+
targetProperty:
|
|
36
|
+
description: Target property for the collect message.
|
|
37
|
+
type: string
|
|
35
38
|
targetType:
|
|
36
39
|
description: Target type for the collect message.
|
|
37
40
|
type: string
|
|
@@ -49,6 +52,10 @@ types:
|
|
|
49
52
|
description: Bot conversation input
|
|
50
53
|
type: object
|
|
51
54
|
properties:
|
|
55
|
+
inReplyToMessageId:
|
|
56
|
+
description: Message ID that this message is replying to
|
|
57
|
+
type: string
|
|
58
|
+
required: false
|
|
52
59
|
messageType:
|
|
53
60
|
description: Message type
|
|
54
61
|
type: string
|
|
@@ -112,6 +119,9 @@ types:
|
|
|
112
119
|
description: The failure code for a Failure message.
|
|
113
120
|
type: string | nil
|
|
114
121
|
required: false
|
|
122
|
+
feedbackId:
|
|
123
|
+
description: Feedback ID for this generated message.
|
|
124
|
+
type: string | nil
|
|
115
125
|
id:
|
|
116
126
|
description: Unique id of this message
|
|
117
127
|
type: string
|
|
@@ -123,6 +133,9 @@ types:
|
|
|
123
133
|
description: The message type for an ES Type message.
|
|
124
134
|
type: string | nil
|
|
125
135
|
required: false
|
|
136
|
+
planId:
|
|
137
|
+
description: Plan ID for the generated plan.
|
|
138
|
+
type: string | nil
|
|
126
139
|
result:
|
|
127
140
|
description: The result response for an Inform message.
|
|
128
141
|
type: array
|
|
@@ -198,6 +211,9 @@ types:
|
|
|
198
211
|
description: Represents a ES type message
|
|
199
212
|
type: object
|
|
200
213
|
properties:
|
|
214
|
+
property:
|
|
215
|
+
description: Property for the ES type message.
|
|
216
|
+
type: string
|
|
201
217
|
type:
|
|
202
218
|
description: Type for the ES type message.
|
|
203
219
|
type: string
|