@wildix/xbees-conversations-client 1.0.49 → 1.0.51

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.
@@ -464,6 +464,9 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
464
464
  b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
465
465
  b.p('channelId', () => input.channelId, '{channelId}', false);
466
466
  b.p('messageId', () => input.messageId, '{messageId}', false);
467
+ const query = (0, smithy_client_1.map)({
468
+ [_u]: [, input[_uI]],
469
+ });
467
470
  let body;
468
471
  body = JSON.stringify((0, smithy_client_1.take)(input, {
469
472
  'set': _ => (0, smithy_client_1._json)(_),
@@ -471,6 +474,7 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
471
474
  }));
472
475
  b.m("PATCH")
473
476
  .h(headers)
477
+ .q(query)
474
478
  .b(body);
475
479
  return b.build();
476
480
  };
@@ -644,6 +648,9 @@ const se_UpdateMessageCommand = async (input, context) => {
644
648
  b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
645
649
  b.p('channelId', () => input.channelId, '{channelId}', false);
646
650
  b.p('messageId', () => input.messageId, '{messageId}', false);
651
+ const query = (0, smithy_client_1.map)({
652
+ [_u]: [, input[_uI]],
653
+ });
647
654
  let body;
648
655
  body = JSON.stringify((0, smithy_client_1.take)(input, {
649
656
  'attachments': _ => (0, smithy_client_1._json)(_),
@@ -654,6 +661,7 @@ const se_UpdateMessageCommand = async (input, context) => {
654
661
  }));
655
662
  b.m("PUT")
656
663
  .h(headers)
664
+ .q(query)
657
665
  .b(body);
658
666
  return b.build();
659
667
  };
@@ -435,6 +435,9 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
435
435
  b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
436
436
  b.p('channelId', () => input.channelId, '{channelId}', false);
437
437
  b.p('messageId', () => input.messageId, '{messageId}', false);
438
+ const query = map({
439
+ [_u]: [, input[_uI]],
440
+ });
438
441
  let body;
439
442
  body = JSON.stringify(take(input, {
440
443
  'set': _ => _json(_),
@@ -442,6 +445,7 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
442
445
  }));
443
446
  b.m("PATCH")
444
447
  .h(headers)
448
+ .q(query)
445
449
  .b(body);
446
450
  return b.build();
447
451
  };
@@ -606,6 +610,9 @@ export const se_UpdateMessageCommand = async (input, context) => {
606
610
  b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
607
611
  b.p('channelId', () => input.channelId, '{channelId}', false);
608
612
  b.p('messageId', () => input.messageId, '{messageId}', false);
613
+ const query = map({
614
+ [_u]: [, input[_uI]],
615
+ });
609
616
  let body;
610
617
  body = JSON.stringify(take(input, {
611
618
  'attachments': _ => _json(_),
@@ -616,6 +623,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
616
623
  }));
617
624
  b.m("PUT")
618
625
  .h(headers)
626
+ .q(query)
619
627
  .b(body);
620
628
  return b.build();
621
629
  };
@@ -37,6 +37,7 @@ declare const PartialUpdateMessageCommand_base: {
37
37
  * const input = { // PartialUpdateMessageInput
38
38
  * channelId: "STRING_VALUE", // required
39
39
  * messageId: "STRING_VALUE", // required
40
+ * userId: "STRING_VALUE",
40
41
  * set: { // PartialUpdateMessageSetInput
41
42
  * text: "STRING_VALUE",
42
43
  * attachments: [ // MessageAttachmentList
@@ -126,6 +126,7 @@ declare const UpdateMessageCommand_base: {
126
126
  * },
127
127
  * channelId: "STRING_VALUE", // required
128
128
  * messageId: "STRING_VALUE", // required
129
+ * userId: "STRING_VALUE",
129
130
  * mentions: [ // UsersIdList
130
131
  * "STRING_VALUE",
131
132
  * ],
@@ -1019,7 +1019,7 @@ export interface GetMessageInput {
1019
1019
  * @public
1020
1020
  */
1021
1021
  export interface GetMessageOutput {
1022
- message?: Message;
1022
+ message: Message;
1023
1023
  }
1024
1024
  /**
1025
1025
  * @public
@@ -1438,6 +1438,11 @@ export interface PartialUpdateMessageInput {
1438
1438
  * @public
1439
1439
  */
1440
1440
  messageId: string;
1441
+ /**
1442
+ * The unique identifier of the user when a service token is used.
1443
+ * @public
1444
+ */
1445
+ userId?: string;
1441
1446
  /**
1442
1447
  * Fields to set during the partial update.
1443
1448
  * @public
@@ -1453,7 +1458,7 @@ export interface PartialUpdateMessageInput {
1453
1458
  * @public
1454
1459
  */
1455
1460
  export interface PartialUpdateMessageOutput {
1456
- message?: Message;
1461
+ message: Message;
1457
1462
  }
1458
1463
  /**
1459
1464
  * @public
@@ -1510,7 +1515,7 @@ export interface SendGiphyInput {
1510
1515
  * @public
1511
1516
  */
1512
1517
  export interface SendGiphyOutput {
1513
- message?: Message;
1518
+ message: Message;
1514
1519
  }
1515
1520
  /**
1516
1521
  * @public
@@ -1545,7 +1550,7 @@ export interface SendMessageInput {
1545
1550
  * @public
1546
1551
  */
1547
1552
  export interface SendMessageOutput {
1548
- message?: Message;
1553
+ message: Message;
1549
1554
  }
1550
1555
  /**
1551
1556
  * @public
@@ -1711,6 +1716,11 @@ export interface UpdateMessageInput {
1711
1716
  * @public
1712
1717
  */
1713
1718
  messageId: string;
1719
+ /**
1720
+ * The unique identifier of the user when a service token is used.
1721
+ * @public
1722
+ */
1723
+ userId?: string;
1714
1724
  /**
1715
1725
  * A list of user IDs mentioned in the message.
1716
1726
  * @public
@@ -1721,7 +1731,7 @@ export interface UpdateMessageInput {
1721
1731
  * @public
1722
1732
  */
1723
1733
  export interface UpdateMessageOutput {
1724
- message?: Message;
1734
+ message: Message;
1725
1735
  }
1726
1736
  /**
1727
1737
  * @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.51",
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",