@salesforce/lds-adapters-service-einstein-copilot-bot 1.265.0 → 1.266.0-dev10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,6 +72,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
72
72
  const keyPrefix = 'einstein-copilot-bot';
73
73
 
74
74
  const { isArray: ArrayIsArray } = Array;
75
+ const { stringify: JSONStringify } = JSON;
75
76
  function equalsArray(a, b, equalsItem) {
76
77
  const aLength = a.length;
77
78
  const bLength = b.length;
@@ -338,12 +339,17 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
338
339
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
339
340
  };
340
341
 
341
- const VERSION$4 = "414b0e089081e78bc86ab595f115e269";
342
+ const VERSION$4 = "eaa88c9352375a84f304d76d13628b5a";
342
343
  function validate$5(obj, path = 'EsTypeMessageRepresentation') {
343
344
  const v_error = (() => {
344
345
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
345
346
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
346
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
+ }
347
353
  const obj_type = obj.type;
348
354
  const path_type = path + '.type';
349
355
  if (typeof obj_type !== 'string') {
@@ -351,8 +357,8 @@ function validate$5(obj, path = 'EsTypeMessageRepresentation') {
351
357
  }
352
358
  const obj_value = obj.value;
353
359
  const path_value = path + '.value';
354
- if (typeof obj_value !== 'object' || ArrayIsArray(obj_value) || obj_value === null) {
355
- return new TypeError('Expected "object" but received "' + typeof obj_value + '" (at "' + path_value + '")');
360
+ if (obj_value === undefined) {
361
+ return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
356
362
  }
357
363
  })();
358
364
  return v_error === undefined ? null : v_error;
@@ -363,21 +369,38 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
363
369
  version: VERSION$4,
364
370
  private: [],
365
371
  selections: [
372
+ {
373
+ name: 'property',
374
+ kind: 'Scalar'
375
+ },
366
376
  {
367
377
  name: 'type',
368
378
  kind: 'Scalar'
379
+ },
380
+ {
381
+ name: 'value',
382
+ kind: 'Object',
383
+ // any
369
384
  }
370
385
  ]
371
386
  };
372
387
  };
373
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
+ }
374
394
  const existing_type = existing.type;
375
395
  const incoming_type = incoming.type;
376
396
  if (!(existing_type === incoming_type)) {
377
397
  return false;
378
398
  }
379
- existing.value;
380
- incoming.value;
399
+ const existing_value = existing.value;
400
+ const incoming_value = incoming.value;
401
+ if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
402
+ return false;
403
+ }
381
404
  return true;
382
405
  }
383
406
 
@@ -506,7 +529,7 @@ function equals$2(existing, incoming) {
506
529
  }
507
530
 
508
531
  const TTL$1 = 30000;
509
- const VERSION$1 = "d0d96f922e0e6a5215ead292fbeb0363";
532
+ const VERSION$1 = "d3d34b56efe68a37c173d0cb91c57ba1";
510
533
  function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
511
534
  const v_error = (() => {
512
535
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -605,6 +628,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
605
628
  return new TypeError(message);
606
629
  }
607
630
  }
631
+ const obj_feedbackId = obj.feedbackId;
632
+ const path_feedbackId = path + '.feedbackId';
633
+ let obj_feedbackId_union0 = null;
634
+ const obj_feedbackId_union0_error = (() => {
635
+ if (typeof obj_feedbackId !== 'string') {
636
+ return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
637
+ }
638
+ })();
639
+ if (obj_feedbackId_union0_error != null) {
640
+ obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
641
+ }
642
+ let obj_feedbackId_union1 = null;
643
+ const obj_feedbackId_union1_error = (() => {
644
+ if (obj_feedbackId !== null) {
645
+ return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
646
+ }
647
+ })();
648
+ if (obj_feedbackId_union1_error != null) {
649
+ obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
650
+ }
651
+ if (obj_feedbackId_union0 && obj_feedbackId_union1) {
652
+ let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
653
+ message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
654
+ message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
655
+ return new TypeError(message);
656
+ }
608
657
  const obj_id = obj.id;
609
658
  const path_id = path + '.id';
610
659
  if (typeof obj_id !== 'string') {
@@ -666,6 +715,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
666
715
  return new TypeError(message);
667
716
  }
668
717
  }
718
+ const obj_planId = obj.planId;
719
+ const path_planId = path + '.planId';
720
+ let obj_planId_union0 = null;
721
+ const obj_planId_union0_error = (() => {
722
+ if (typeof obj_planId !== 'string') {
723
+ return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
724
+ }
725
+ })();
726
+ if (obj_planId_union0_error != null) {
727
+ obj_planId_union0 = obj_planId_union0_error.message;
728
+ }
729
+ let obj_planId_union1 = null;
730
+ const obj_planId_union1_error = (() => {
731
+ if (obj_planId !== null) {
732
+ return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
733
+ }
734
+ })();
735
+ if (obj_planId_union1_error != null) {
736
+ obj_planId_union1 = obj_planId_union1_error.message;
737
+ }
738
+ if (obj_planId_union0 && obj_planId_union1) {
739
+ let message = 'Object doesn\'t match union (at "' + path_planId + '")';
740
+ message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
741
+ message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
742
+ return new TypeError(message);
743
+ }
669
744
  if (obj.result !== undefined) {
670
745
  const obj_result = obj.result;
671
746
  const path_result = path + '.result';
@@ -803,6 +878,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
803
878
  kind: 'Scalar',
804
879
  required: false
805
880
  },
881
+ {
882
+ name: 'feedbackId',
883
+ kind: 'Scalar'
884
+ },
806
885
  {
807
886
  name: 'id',
808
887
  kind: 'Scalar'
@@ -817,6 +896,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
817
896
  kind: 'Scalar',
818
897
  required: false
819
898
  },
899
+ {
900
+ name: 'planId',
901
+ kind: 'Scalar'
902
+ },
820
903
  {
821
904
  name: 'result',
822
905
  kind: 'Object',
@@ -946,6 +1029,11 @@ function equals$1(existing, incoming) {
946
1029
  return false;
947
1030
  }
948
1031
  }
1032
+ const existing_feedbackId = existing.feedbackId;
1033
+ const incoming_feedbackId = incoming.feedbackId;
1034
+ if (!(existing_feedbackId === incoming_feedbackId)) {
1035
+ return false;
1036
+ }
949
1037
  const existing_message = existing.message;
950
1038
  const incoming_message = incoming.message;
951
1039
  // if at least one of these optionals is defined
@@ -972,6 +1060,11 @@ function equals$1(existing, incoming) {
972
1060
  return false;
973
1061
  }
974
1062
  }
1063
+ const existing_planId = existing.planId;
1064
+ const incoming_planId = incoming.planId;
1065
+ if (!(existing_planId === incoming_planId)) {
1066
+ return false;
1067
+ }
975
1068
  const existing_result = existing.result;
976
1069
  const incoming_result = incoming.result;
977
1070
  // if at least one of these optionals is defined
@@ -1271,6 +1364,7 @@ const sendMessage_ConfigPropertyMetadata = [
1271
1364
  generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
1272
1365
  generateParamConfigMetadata('message', false, 1 /* QueryParameter */, 0 /* String */),
1273
1366
  generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
1367
+ generateParamConfigMetadata('inReplyToMessageId', false, 2 /* Body */, 0 /* String */),
1274
1368
  generateParamConfigMetadata('messageType', false, 2 /* Body */, 0 /* String */),
1275
1369
  generateParamConfigMetadata('reply', false, 2 /* Body */, 4 /* Unsupported */, true),
1276
1370
  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;
@@ -10,6 +10,7 @@ export interface ResourceRequestConfig {
10
10
  sessionId?: string;
11
11
  };
12
12
  body: {
13
+ inReplyToMessageId?: string;
13
14
  messageType?: string;
14
15
  reply?: Array<types_EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
15
16
  text?: string;
@@ -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 = "980bf6b4b948d722de8661d7f0f93eb0";
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;
@@ -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 = "d0d96f922e0e6a5215ead292fbeb0363";
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 = "414b0e089081e78bc86ab595f115e269";
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,10 +15,12 @@ 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. */
21
- value: {};
23
+ value: unknown;
22
24
  }
23
25
  /**
24
26
  * Represents a 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
- value: {};
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.265.0",
3
+ "version": "1.266.0-dev10",
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.265.0"
43
+ "@salesforce/lds-bindings": "^1.266.0-dev10"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.265.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev10"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -82,6 +82,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
82
82
  const keyPrefix = 'einstein-copilot-bot';
83
83
 
84
84
  const { isArray: ArrayIsArray } = Array;
85
+ const { stringify: JSONStringify } = JSON;
85
86
  function equalsArray(a, b, equalsItem) {
86
87
  const aLength = a.length;
87
88
  const bLength = b.length;
@@ -348,12 +349,17 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
348
349
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
349
350
  };
350
351
 
351
- const VERSION$4 = "414b0e089081e78bc86ab595f115e269";
352
+ const VERSION$4 = "eaa88c9352375a84f304d76d13628b5a";
352
353
  function validate$5(obj, path = 'EsTypeMessageRepresentation') {
353
354
  const v_error = (() => {
354
355
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
355
356
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
356
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
+ }
357
363
  const obj_type = obj.type;
358
364
  const path_type = path + '.type';
359
365
  if (typeof obj_type !== 'string') {
@@ -361,8 +367,8 @@ function validate$5(obj, path = 'EsTypeMessageRepresentation') {
361
367
  }
362
368
  const obj_value = obj.value;
363
369
  const path_value = path + '.value';
364
- if (typeof obj_value !== 'object' || ArrayIsArray(obj_value) || obj_value === null) {
365
- return new TypeError('Expected "object" but received "' + typeof obj_value + '" (at "' + path_value + '")');
370
+ if (obj_value === undefined) {
371
+ return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
366
372
  }
367
373
  })();
368
374
  return v_error === undefined ? null : v_error;
@@ -373,21 +379,38 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
373
379
  version: VERSION$4,
374
380
  private: [],
375
381
  selections: [
382
+ {
383
+ name: 'property',
384
+ kind: 'Scalar'
385
+ },
376
386
  {
377
387
  name: 'type',
378
388
  kind: 'Scalar'
389
+ },
390
+ {
391
+ name: 'value',
392
+ kind: 'Object',
393
+ // any
379
394
  }
380
395
  ]
381
396
  };
382
397
  };
383
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
+ }
384
404
  const existing_type = existing.type;
385
405
  const incoming_type = incoming.type;
386
406
  if (!(existing_type === incoming_type)) {
387
407
  return false;
388
408
  }
389
- existing.value;
390
- incoming.value;
409
+ const existing_value = existing.value;
410
+ const incoming_value = incoming.value;
411
+ if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
412
+ return false;
413
+ }
391
414
  return true;
392
415
  }
393
416
 
@@ -516,7 +539,7 @@ function equals$2(existing, incoming) {
516
539
  }
517
540
 
518
541
  const TTL$1 = 30000;
519
- const VERSION$1 = "d0d96f922e0e6a5215ead292fbeb0363";
542
+ const VERSION$1 = "d3d34b56efe68a37c173d0cb91c57ba1";
520
543
  function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
521
544
  const v_error = (() => {
522
545
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -615,6 +638,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
615
638
  return new TypeError(message);
616
639
  }
617
640
  }
641
+ const obj_feedbackId = obj.feedbackId;
642
+ const path_feedbackId = path + '.feedbackId';
643
+ let obj_feedbackId_union0 = null;
644
+ const obj_feedbackId_union0_error = (() => {
645
+ if (typeof obj_feedbackId !== 'string') {
646
+ return new TypeError('Expected "string" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
647
+ }
648
+ })();
649
+ if (obj_feedbackId_union0_error != null) {
650
+ obj_feedbackId_union0 = obj_feedbackId_union0_error.message;
651
+ }
652
+ let obj_feedbackId_union1 = null;
653
+ const obj_feedbackId_union1_error = (() => {
654
+ if (obj_feedbackId !== null) {
655
+ return new TypeError('Expected "null" but received "' + typeof obj_feedbackId + '" (at "' + path_feedbackId + '")');
656
+ }
657
+ })();
658
+ if (obj_feedbackId_union1_error != null) {
659
+ obj_feedbackId_union1 = obj_feedbackId_union1_error.message;
660
+ }
661
+ if (obj_feedbackId_union0 && obj_feedbackId_union1) {
662
+ let message = 'Object doesn\'t match union (at "' + path_feedbackId + '")';
663
+ message += '\n' + obj_feedbackId_union0.split('\n').map((line) => '\t' + line).join('\n');
664
+ message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
665
+ return new TypeError(message);
666
+ }
618
667
  const obj_id = obj.id;
619
668
  const path_id = path + '.id';
620
669
  if (typeof obj_id !== 'string') {
@@ -676,6 +725,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
676
725
  return new TypeError(message);
677
726
  }
678
727
  }
728
+ const obj_planId = obj.planId;
729
+ const path_planId = path + '.planId';
730
+ let obj_planId_union0 = null;
731
+ const obj_planId_union0_error = (() => {
732
+ if (typeof obj_planId !== 'string') {
733
+ return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
734
+ }
735
+ })();
736
+ if (obj_planId_union0_error != null) {
737
+ obj_planId_union0 = obj_planId_union0_error.message;
738
+ }
739
+ let obj_planId_union1 = null;
740
+ const obj_planId_union1_error = (() => {
741
+ if (obj_planId !== null) {
742
+ return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
743
+ }
744
+ })();
745
+ if (obj_planId_union1_error != null) {
746
+ obj_planId_union1 = obj_planId_union1_error.message;
747
+ }
748
+ if (obj_planId_union0 && obj_planId_union1) {
749
+ let message = 'Object doesn\'t match union (at "' + path_planId + '")';
750
+ message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
751
+ message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
752
+ return new TypeError(message);
753
+ }
679
754
  if (obj.result !== undefined) {
680
755
  const obj_result = obj.result;
681
756
  const path_result = path + '.result';
@@ -813,6 +888,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
813
888
  kind: 'Scalar',
814
889
  required: false
815
890
  },
891
+ {
892
+ name: 'feedbackId',
893
+ kind: 'Scalar'
894
+ },
816
895
  {
817
896
  name: 'id',
818
897
  kind: 'Scalar'
@@ -827,6 +906,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
827
906
  kind: 'Scalar',
828
907
  required: false
829
908
  },
909
+ {
910
+ name: 'planId',
911
+ kind: 'Scalar'
912
+ },
830
913
  {
831
914
  name: 'result',
832
915
  kind: 'Object',
@@ -956,6 +1039,11 @@ function equals$1(existing, incoming) {
956
1039
  return false;
957
1040
  }
958
1041
  }
1042
+ const existing_feedbackId = existing.feedbackId;
1043
+ const incoming_feedbackId = incoming.feedbackId;
1044
+ if (!(existing_feedbackId === incoming_feedbackId)) {
1045
+ return false;
1046
+ }
959
1047
  const existing_message = existing.message;
960
1048
  const incoming_message = incoming.message;
961
1049
  // if at least one of these optionals is defined
@@ -982,6 +1070,11 @@ function equals$1(existing, incoming) {
982
1070
  return false;
983
1071
  }
984
1072
  }
1073
+ const existing_planId = existing.planId;
1074
+ const incoming_planId = incoming.planId;
1075
+ if (!(existing_planId === incoming_planId)) {
1076
+ return false;
1077
+ }
985
1078
  const existing_result = existing.result;
986
1079
  const incoming_result = incoming.result;
987
1080
  // if at least one of these optionals is defined
@@ -1281,6 +1374,7 @@ const sendMessage_ConfigPropertyMetadata = [
1281
1374
  generateParamConfigMetadata('botVersionId', false, 1 /* QueryParameter */, 0 /* String */),
1282
1375
  generateParamConfigMetadata('message', false, 1 /* QueryParameter */, 0 /* String */),
1283
1376
  generateParamConfigMetadata('sessionId', false, 1 /* QueryParameter */, 0 /* String */),
1377
+ generateParamConfigMetadata('inReplyToMessageId', false, 2 /* Body */, 0 /* String */),
1284
1378
  generateParamConfigMetadata('messageType', false, 2 /* Body */, 0 /* String */),
1285
1379
  generateParamConfigMetadata('reply', false, 2 /* Body */, 4 /* Unsupported */, true),
1286
1380
  generateParamConfigMetadata('text', false, 2 /* Body */, 0 /* String */),
@@ -1387,4 +1481,4 @@ withDefaultLuvio((luvio) => {
1387
1481
  });
1388
1482
 
1389
1483
  export { getBotId, getBotId_imperative, sendMessage };
1390
- // version: 1.265.0-25488bd30
1484
+ // version: 1.266.0-dev10-3275d4bf8
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
@@ -123,6 +130,9 @@ types:
123
130
  description: The message type for an ES Type message.
124
131
  type: string | nil
125
132
  required: false
133
+ planId:
134
+ description: Plan ID for the generated plan.
135
+ type: string | nil
126
136
  result:
127
137
  description: The result response for an Inform message.
128
138
  type: array
@@ -198,12 +208,15 @@ types:
198
208
  description: Represents a ES type message
199
209
  type: object
200
210
  properties:
211
+ property:
212
+ description: Property for the ES type message.
213
+ type: string
201
214
  type:
202
215
  description: Type for the ES type message.
203
216
  type: string
204
217
  value:
205
218
  description: Value for the ES type message.
206
- type: object
219
+ type: any
207
220
  VariableRepresentation:
208
221
  description: Represents a single variable for an operation to set variables
209
222
  type: object