@wildix/xbees-conversations-client 1.0.49 → 1.0.50

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.
@@ -529,6 +529,7 @@ const se_SendMessageCommand = async (input, context) => {
529
529
  'forward': _ => (0, smithy_client_1._json)(_),
530
530
  'mentions': _ => (0, smithy_client_1._json)(_),
531
531
  'messageId': [],
532
+ 'predefinedReplies': _ => (0, smithy_client_1._json)(_),
532
533
  'quote': _ => (0, smithy_client_1._json)(_),
533
534
  'text': [],
534
535
  }));
@@ -649,6 +650,7 @@ const se_UpdateMessageCommand = async (input, context) => {
649
650
  'attachments': _ => (0, smithy_client_1._json)(_),
650
651
  'forward': _ => (0, smithy_client_1._json)(_),
651
652
  'mentions': _ => (0, smithy_client_1._json)(_),
653
+ 'predefinedReplies': _ => (0, smithy_client_1._json)(_),
652
654
  'quote': _ => (0, smithy_client_1._json)(_),
653
655
  'text': [],
654
656
  }));
@@ -497,6 +497,7 @@ export const se_SendMessageCommand = async (input, context) => {
497
497
  'forward': _ => _json(_),
498
498
  'mentions': _ => _json(_),
499
499
  'messageId': [],
500
+ 'predefinedReplies': _ => _json(_),
500
501
  'quote': _ => _json(_),
501
502
  'text': [],
502
503
  }));
@@ -611,6 +612,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
611
612
  'attachments': _ => _json(_),
612
613
  'forward': _ => _json(_),
613
614
  'mentions': _ => _json(_),
615
+ 'predefinedReplies': _ => _json(_),
614
616
  'quote': _ => _json(_),
615
617
  'text': [],
616
618
  }));
@@ -525,6 +525,12 @@ declare const DescribeEventCommand_base: {
525
525
  * // forwardEmail: "STRING_VALUE",
526
526
  * // forwardName: "STRING_VALUE",
527
527
  * // },
528
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
529
+ * // { // MessagePredefinedReply
530
+ * // text: "STRING_VALUE", // required
531
+ * // label: "STRING_VALUE",
532
+ * // },
533
+ * // ],
528
534
  * // type: "regular" || "system", // required
529
535
  * // giphy: {
530
536
  * // id: "STRING_VALUE",
@@ -623,6 +629,12 @@ declare const DescribeEventCommand_base: {
623
629
  * // forwardEmail: "STRING_VALUE",
624
630
  * // forwardName: "STRING_VALUE",
625
631
  * // },
632
+ * // predefinedReplies: [
633
+ * // {
634
+ * // text: "STRING_VALUE", // required
635
+ * // label: "STRING_VALUE",
636
+ * // },
637
+ * // ],
626
638
  * // type: "regular" || "system", // required
627
639
  * // giphy: {
628
640
  * // id: "STRING_VALUE",
@@ -705,6 +717,12 @@ declare const DescribeEventCommand_base: {
705
717
  * // updatedAt: "STRING_VALUE",
706
718
  * // },
707
719
  * // forward: "<MessageForward>",
720
+ * // predefinedReplies: [
721
+ * // {
722
+ * // text: "STRING_VALUE", // required
723
+ * // label: "STRING_VALUE",
724
+ * // },
725
+ * // ],
708
726
  * // type: "regular" || "system", // required
709
727
  * // giphy: "<MessageGiphy>",
710
728
  * // silent: true || false,
@@ -759,6 +777,12 @@ declare const DescribeEventCommand_base: {
759
777
  * // updatedAt: "STRING_VALUE",
760
778
  * // },
761
779
  * // forward: "<MessageForward>",
780
+ * // predefinedReplies: [
781
+ * // {
782
+ * // text: "STRING_VALUE", // required
783
+ * // label: "STRING_VALUE",
784
+ * // },
785
+ * // ],
762
786
  * // type: "regular" || "system", // required
763
787
  * // giphy: "<MessageGiphy>",
764
788
  * // silent: true || false,
@@ -819,6 +843,12 @@ declare const DescribeEventCommand_base: {
819
843
  * // updatedAt: "STRING_VALUE",
820
844
  * // },
821
845
  * // forward: "<MessageForward>",
846
+ * // predefinedReplies: [
847
+ * // {
848
+ * // text: "STRING_VALUE", // required
849
+ * // label: "STRING_VALUE",
850
+ * // },
851
+ * // ],
822
852
  * // type: "regular" || "system", // required
823
853
  * // giphy: "<MessageGiphy>",
824
854
  * // silent: true || false,
@@ -131,6 +131,12 @@ declare const GetMessageCommand_base: {
131
131
  * // forwardEmail: "STRING_VALUE",
132
132
  * // forwardName: "STRING_VALUE",
133
133
  * // },
134
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
135
+ * // { // MessagePredefinedReply
136
+ * // text: "STRING_VALUE", // required
137
+ * // label: "STRING_VALUE",
138
+ * // },
139
+ * // ],
134
140
  * // type: "regular" || "system", // required
135
141
  * // giphy: {
136
142
  * // id: "STRING_VALUE",
@@ -133,6 +133,12 @@ declare const ListMessagesCommand_base: {
133
133
  * // forwardEmail: "STRING_VALUE",
134
134
  * // forwardName: "STRING_VALUE",
135
135
  * // },
136
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
137
+ * // { // MessagePredefinedReply
138
+ * // text: "STRING_VALUE", // required
139
+ * // label: "STRING_VALUE",
140
+ * // },
141
+ * // ],
136
142
  * // type: "regular" || "system", // required
137
143
  * // giphy: {
138
144
  * // id: "STRING_VALUE",
@@ -127,6 +127,12 @@ declare const PartialUpdateMessageCommand_base: {
127
127
  * forwardEmail: "STRING_VALUE",
128
128
  * forwardName: "STRING_VALUE",
129
129
  * },
130
+ * predefinedReplies: [ // MessagePredefinedRepliesList
131
+ * { // MessagePredefinedReply
132
+ * text: "STRING_VALUE", // required
133
+ * label: "STRING_VALUE",
134
+ * },
135
+ * ],
130
136
  * },
131
137
  * unset: [ // MessageUnsetFieldsList
132
138
  * "text" || "attachments" || "quote" || "forward",
@@ -225,6 +231,12 @@ declare const PartialUpdateMessageCommand_base: {
225
231
  * // forwardEmail: "STRING_VALUE",
226
232
  * // forwardName: "STRING_VALUE",
227
233
  * // },
234
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
235
+ * // { // MessagePredefinedReply
236
+ * // text: "STRING_VALUE", // required
237
+ * // label: "STRING_VALUE",
238
+ * // },
239
+ * // ],
228
240
  * // type: "regular" || "system", // required
229
241
  * // giphy: {
230
242
  * // id: "STRING_VALUE",
@@ -139,6 +139,12 @@ declare const SendGiphyCommand_base: {
139
139
  * // forwardEmail: "STRING_VALUE",
140
140
  * // forwardName: "STRING_VALUE",
141
141
  * // },
142
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
143
+ * // { // MessagePredefinedReply
144
+ * // text: "STRING_VALUE", // required
145
+ * // label: "STRING_VALUE",
146
+ * // },
147
+ * // ],
142
148
  * // type: "regular" || "system", // required
143
149
  * // giphy: {
144
150
  * // id: "STRING_VALUE",
@@ -124,6 +124,12 @@ declare const SendMessageCommand_base: {
124
124
  * forwardEmail: "STRING_VALUE",
125
125
  * forwardName: "STRING_VALUE",
126
126
  * },
127
+ * predefinedReplies: [ // MessagePredefinedRepliesList
128
+ * { // MessagePredefinedReply
129
+ * text: "STRING_VALUE", // required
130
+ * label: "STRING_VALUE",
131
+ * },
132
+ * ],
127
133
  * channelId: "STRING_VALUE", // required
128
134
  * userId: "STRING_VALUE",
129
135
  * messageId: "STRING_VALUE",
@@ -224,6 +230,12 @@ declare const SendMessageCommand_base: {
224
230
  * // forwardEmail: "STRING_VALUE",
225
231
  * // forwardName: "STRING_VALUE",
226
232
  * // },
233
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
234
+ * // { // MessagePredefinedReply
235
+ * // text: "STRING_VALUE", // required
236
+ * // label: "STRING_VALUE",
237
+ * // },
238
+ * // ],
227
239
  * // type: "regular" || "system", // required
228
240
  * // giphy: {
229
241
  * // id: "STRING_VALUE",
@@ -124,6 +124,12 @@ declare const UpdateMessageCommand_base: {
124
124
  * forwardEmail: "STRING_VALUE",
125
125
  * forwardName: "STRING_VALUE",
126
126
  * },
127
+ * predefinedReplies: [ // MessagePredefinedRepliesList
128
+ * { // MessagePredefinedReply
129
+ * text: "STRING_VALUE", // required
130
+ * label: "STRING_VALUE",
131
+ * },
132
+ * ],
127
133
  * channelId: "STRING_VALUE", // required
128
134
  * messageId: "STRING_VALUE", // required
129
135
  * mentions: [ // UsersIdList
@@ -223,6 +229,12 @@ declare const UpdateMessageCommand_base: {
223
229
  * // forwardEmail: "STRING_VALUE",
224
230
  * // forwardName: "STRING_VALUE",
225
231
  * // },
232
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
233
+ * // { // MessagePredefinedReply
234
+ * // text: "STRING_VALUE", // required
235
+ * // label: "STRING_VALUE",
236
+ * // },
237
+ * // ],
226
238
  * // type: "regular" || "system", // required
227
239
  * // giphy: {
228
240
  * // id: "STRING_VALUE",
@@ -703,6 +703,21 @@ export interface Reaction {
703
703
  messageId?: string;
704
704
  user?: User;
705
705
  }
706
+ /**
707
+ * @public
708
+ */
709
+ export interface MessagePredefinedReply {
710
+ /**
711
+ * Text that will be sent to the user; clicking the text will trigger sending this message.
712
+ * @public
713
+ */
714
+ text: string;
715
+ /**
716
+ * Label that will appear on the reply button; if no label is provided, the text will be used.
717
+ * @public
718
+ */
719
+ label?: string;
720
+ }
706
721
  /**
707
722
  * @public
708
723
  */
@@ -766,6 +781,11 @@ export interface Message {
766
781
  attachments?: (MessageAttachment)[];
767
782
  quote?: MessageQuote;
768
783
  forward?: MessageForward;
784
+ /**
785
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
786
+ * @public
787
+ */
788
+ predefinedReplies?: (MessagePredefinedReply)[];
769
789
  type: MessageType;
770
790
  giphy?: MessageGiphy;
771
791
  silent?: boolean;
@@ -1409,6 +1429,11 @@ export interface PartialUpdateMessageSetInput {
1409
1429
  attachments?: (MessageAttachment)[];
1410
1430
  quote?: MessageQuote;
1411
1431
  forward?: MessageForward;
1432
+ /**
1433
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1434
+ * @public
1435
+ */
1436
+ predefinedReplies?: (MessagePredefinedReply)[];
1412
1437
  }
1413
1438
  /**
1414
1439
  * @public
@@ -1520,6 +1545,11 @@ export interface SendMessageInput {
1520
1545
  attachments?: (MessageAttachment)[];
1521
1546
  quote?: MessageQuote;
1522
1547
  forward?: MessageForward;
1548
+ /**
1549
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1550
+ * @public
1551
+ */
1552
+ predefinedReplies?: (MessagePredefinedReply)[];
1523
1553
  /**
1524
1554
  * The unique identifier of the channel to which the message is sent.
1525
1555
  * @public
@@ -1701,6 +1731,11 @@ export interface UpdateMessageInput {
1701
1731
  attachments?: (MessageAttachment)[];
1702
1732
  quote?: MessageQuote;
1703
1733
  forward?: MessageForward;
1734
+ /**
1735
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1736
+ * @public
1737
+ */
1738
+ predefinedReplies?: (MessagePredefinedReply)[];
1704
1739
  /**
1705
1740
  * The unique identifier of the channel containing the message.
1706
1741
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.0.49",
4
+ "version": "1.0.50",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",