@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev4 → 1.266.0-dev6
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 +37 -1
- 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/ConversationRuntimeProxyInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +38 -2
- package/src/raml/api.raml +7 -0
|
@@ -515,7 +515,7 @@ function equals$2(existing, incoming) {
|
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
const TTL$1 = 30000;
|
|
518
|
-
const VERSION$1 = "
|
|
518
|
+
const VERSION$1 = "53998cb206e03ee8323bb768b0dfc50f";
|
|
519
519
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
520
520
|
const v_error = (() => {
|
|
521
521
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -614,6 +614,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
614
614
|
return new TypeError(message);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
+
const obj_feedbackId = obj.feedbackId;
|
|
618
|
+
const path_feedbackId = path + '.feedbackId';
|
|
619
|
+
let obj_feedbackId_union0 = null;
|
|
620
|
+
const obj_feedbackId_union0_error = (() => {
|
|
621
|
+
if (typeof obj_feedbackId !== 'string') {
|
|
622
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
623
|
+
}
|
|
624
|
+
})();
|
|
625
|
+
if (obj_feedbackId_union0_error != null) {
|
|
626
|
+
obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
|
|
627
|
+
}
|
|
628
|
+
let obj_feedbackId_union1 = null;
|
|
629
|
+
const obj_feedbackId_union1_error = (() => {
|
|
630
|
+
if (obj_feedbackId !== null) {
|
|
631
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
632
|
+
}
|
|
633
|
+
})();
|
|
634
|
+
if (obj_feedbackId_union1_error != null) {
|
|
635
|
+
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
636
|
+
}
|
|
637
|
+
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
638
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
639
|
+
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
640
|
+
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
641
|
+
return new TypeError(message);
|
|
642
|
+
}
|
|
617
643
|
const obj_id = obj.id;
|
|
618
644
|
const path_id = path + '.id';
|
|
619
645
|
if (typeof obj_id !== 'string') {
|
|
@@ -812,6 +838,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
812
838
|
kind: 'Scalar',
|
|
813
839
|
required: false
|
|
814
840
|
},
|
|
841
|
+
{
|
|
842
|
+
name: 'feedbackId',
|
|
843
|
+
kind: 'Scalar'
|
|
844
|
+
},
|
|
815
845
|
{
|
|
816
846
|
name: 'id',
|
|
817
847
|
kind: 'Scalar'
|
|
@@ -955,6 +985,11 @@ function equals$1(existing, incoming) {
|
|
|
955
985
|
return false;
|
|
956
986
|
}
|
|
957
987
|
}
|
|
988
|
+
const existing_feedbackId = existing.feedbackId;
|
|
989
|
+
const incoming_feedbackId = incoming.feedbackId;
|
|
990
|
+
if (!(existing_feedbackId === incoming_feedbackId)) {
|
|
991
|
+
return false;
|
|
992
|
+
}
|
|
958
993
|
const existing_message = existing.message;
|
|
959
994
|
const incoming_message = incoming.message;
|
|
960
995
|
// if at least one of these optionals is defined
|
|
@@ -1280,6 +1315,7 @@ const sendMessage_ConfigPropertyMetadata = [
|
|
|
1280
1315
|
generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1281
1316
|
generateParamConfigMetadata('message', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1282
1317
|
generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1318
|
+
generateParamConfigMetadata('inReplyToMessageId', false, 2 /* Body */, 0 /* String */),
|
|
1283
1319
|
generateParamConfigMetadata('messageType', false, 2 /* Body */, 0 /* String */),
|
|
1284
1320
|
generateParamConfigMetadata('reply', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1285
1321
|
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;
|
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 = "53998cb206e03ee8323bb768b0dfc50f";
|
|
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,6 +37,8 @@ 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. */
|
|
@@ -64,6 +66,7 @@ export interface ConversationRuntimeProxyMessageRepresentation {
|
|
|
64
66
|
confirm?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
65
67
|
errors?: Array<string>;
|
|
66
68
|
failureCode?: string | null;
|
|
69
|
+
feedbackId: string | null;
|
|
67
70
|
id: string;
|
|
68
71
|
message?: string | null;
|
|
69
72
|
messageType?: string | null;
|
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-dev6",
|
|
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-dev6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev6"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -525,7 +525,7 @@ function equals$2(existing, incoming) {
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
const TTL$1 = 30000;
|
|
528
|
-
const VERSION$1 = "
|
|
528
|
+
const VERSION$1 = "53998cb206e03ee8323bb768b0dfc50f";
|
|
529
529
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
530
530
|
const v_error = (() => {
|
|
531
531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -624,6 +624,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
624
624
|
return new TypeError(message);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
+
const obj_feedbackId = obj.feedbackId;
|
|
628
|
+
const path_feedbackId = path + '.feedbackId';
|
|
629
|
+
let obj_feedbackId_union0 = null;
|
|
630
|
+
const obj_feedbackId_union0_error = (() => {
|
|
631
|
+
if (typeof obj_feedbackId !== 'string') {
|
|
632
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
633
|
+
}
|
|
634
|
+
})();
|
|
635
|
+
if (obj_feedbackId_union0_error != null) {
|
|
636
|
+
obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
|
|
637
|
+
}
|
|
638
|
+
let obj_feedbackId_union1 = null;
|
|
639
|
+
const obj_feedbackId_union1_error = (() => {
|
|
640
|
+
if (obj_feedbackId !== null) {
|
|
641
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
|
|
642
|
+
}
|
|
643
|
+
})();
|
|
644
|
+
if (obj_feedbackId_union1_error != null) {
|
|
645
|
+
obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
|
|
646
|
+
}
|
|
647
|
+
if (obj_feedbackId_union0 && obj_feedbackId_union1) {
|
|
648
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
|
|
649
|
+
message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
650
|
+
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
651
|
+
return new TypeError(message);
|
|
652
|
+
}
|
|
627
653
|
const obj_id = obj.id;
|
|
628
654
|
const path_id = path + '.id';
|
|
629
655
|
if (typeof obj_id !== 'string') {
|
|
@@ -822,6 +848,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
822
848
|
kind: 'Scalar',
|
|
823
849
|
required: false
|
|
824
850
|
},
|
|
851
|
+
{
|
|
852
|
+
name: 'feedbackId',
|
|
853
|
+
kind: 'Scalar'
|
|
854
|
+
},
|
|
825
855
|
{
|
|
826
856
|
name: 'id',
|
|
827
857
|
kind: 'Scalar'
|
|
@@ -965,6 +995,11 @@ function equals$1(existing, incoming) {
|
|
|
965
995
|
return false;
|
|
966
996
|
}
|
|
967
997
|
}
|
|
998
|
+
const existing_feedbackId = existing.feedbackId;
|
|
999
|
+
const incoming_feedbackId = incoming.feedbackId;
|
|
1000
|
+
if (!(existing_feedbackId === incoming_feedbackId)) {
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
968
1003
|
const existing_message = existing.message;
|
|
969
1004
|
const incoming_message = incoming.message;
|
|
970
1005
|
// if at least one of these optionals is defined
|
|
@@ -1290,6 +1325,7 @@ const sendMessage_ConfigPropertyMetadata = [
|
|
|
1290
1325
|
generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1291
1326
|
generateParamConfigMetadata('message', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1292
1327
|
generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1328
|
+
generateParamConfigMetadata('inReplyToMessageId', false, 2 /* Body */, 0 /* String */),
|
|
1293
1329
|
generateParamConfigMetadata('messageType', false, 2 /* Body */, 0 /* String */),
|
|
1294
1330
|
generateParamConfigMetadata('reply', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1295
1331
|
generateParamConfigMetadata('text', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1396,4 +1432,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1396
1432
|
});
|
|
1397
1433
|
|
|
1398
1434
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1399
|
-
// version: 1.266.0-
|
|
1435
|
+
// version: 1.266.0-dev6-769774ed6
|
package/src/raml/api.raml
CHANGED
|
@@ -49,6 +49,10 @@ types:
|
|
|
49
49
|
description: Bot conversation input
|
|
50
50
|
type: object
|
|
51
51
|
properties:
|
|
52
|
+
inReplyToMessageId:
|
|
53
|
+
description: Message ID that this message is replying to
|
|
54
|
+
type: string
|
|
55
|
+
required: false
|
|
52
56
|
messageType:
|
|
53
57
|
description: Message type
|
|
54
58
|
type: string
|
|
@@ -112,6 +116,9 @@ types:
|
|
|
112
116
|
description: The failure code for a Failure message.
|
|
113
117
|
type: string | nil
|
|
114
118
|
required: false
|
|
119
|
+
feedbackId:
|
|
120
|
+
description: Feedback ID for this generated message.
|
|
121
|
+
type: string | nil
|
|
115
122
|
id:
|
|
116
123
|
description: Unique id of this message
|
|
117
124
|
type: string
|