@wildix/xbees-conversations-client 1.0.56 → 1.0.57

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.
Files changed (56) hide show
  1. package/dist-cjs/Conversations.js +22 -2
  2. package/dist-cjs/commands/{CreateKiteChannelCommand.js → CreateInboxTagCommand.js} +7 -7
  3. package/dist-cjs/commands/DeleteInboxTagCommand.js +21 -0
  4. package/dist-cjs/commands/GetInboxStateCommand.js +21 -0
  5. package/dist-cjs/commands/ListInboxTaggedChannelsCommand.js +21 -0
  6. package/dist-cjs/commands/ListInboxTagsCommand.js +21 -0
  7. package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
  8. package/dist-cjs/commands/PinChannelCommand.js +21 -0
  9. package/dist-cjs/commands/TagChannelCommand.js +21 -0
  10. package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
  11. package/dist-cjs/commands/UntagChannelCommand.js +21 -0
  12. package/dist-cjs/commands/UpdateInboxTagCommand.js +21 -0
  13. package/dist-cjs/commands/index.js +11 -1
  14. package/dist-cjs/models/models_0.js +74 -39
  15. package/dist-cjs/protocols/Aws_restJson1.js +373 -26
  16. package/dist-es/Conversations.js +22 -2
  17. package/dist-es/commands/CreateInboxTagCommand.js +17 -0
  18. package/dist-es/commands/DeleteInboxTagCommand.js +17 -0
  19. package/dist-es/commands/GetInboxStateCommand.js +17 -0
  20. package/dist-es/commands/ListInboxTaggedChannelsCommand.js +17 -0
  21. package/dist-es/commands/ListInboxTagsCommand.js +17 -0
  22. package/dist-es/commands/MarkUnreadCommand.js +17 -0
  23. package/dist-es/commands/PinChannelCommand.js +17 -0
  24. package/dist-es/commands/TagChannelCommand.js +17 -0
  25. package/dist-es/commands/UnpinChannelCommand.js +17 -0
  26. package/dist-es/commands/UntagChannelCommand.js +17 -0
  27. package/dist-es/commands/UpdateInboxTagCommand.js +17 -0
  28. package/dist-es/commands/index.js +11 -1
  29. package/dist-es/models/models_0.js +68 -36
  30. package/dist-es/protocols/Aws_restJson1.js +350 -23
  31. package/dist-types/Conversations.d.ts +77 -5
  32. package/dist-types/ConversationsClient.d.ts +13 -3
  33. package/dist-types/commands/CreateInboxTagCommand.d.ts +73 -0
  34. package/dist-types/commands/DeleteInboxTagCommand.d.ts +65 -0
  35. package/dist-types/commands/DescribeEventCommand.d.ts +0 -30
  36. package/dist-types/commands/GetInboxStateCommand.d.ts +92 -0
  37. package/dist-types/commands/GetMessageCommand.d.ts +0 -6
  38. package/dist-types/commands/ListInboxTaggedChannelsCommand.d.ts +74 -0
  39. package/dist-types/commands/ListInboxTagsCommand.d.ts +71 -0
  40. package/dist-types/commands/ListMessagesCommand.d.ts +0 -6
  41. package/dist-types/commands/MarkUnreadCommand.d.ts +76 -0
  42. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +0 -12
  43. package/dist-types/commands/PinChannelCommand.d.ts +75 -0
  44. package/dist-types/commands/SendGiphyCommand.d.ts +0 -6
  45. package/dist-types/commands/SendMessageCommand.d.ts +0 -12
  46. package/dist-types/commands/TagChannelCommand.d.ts +76 -0
  47. package/dist-types/commands/UnpinChannelCommand.d.ts +67 -0
  48. package/dist-types/commands/UntagChannelCommand.d.ts +68 -0
  49. package/dist-types/commands/UpdateInboxTagCommand.d.ts +73 -0
  50. package/dist-types/commands/UpdateMessageCommand.d.ts +0 -12
  51. package/dist-types/commands/index.d.ts +11 -1
  52. package/dist-types/models/models_0.d.ts +412 -217
  53. package/dist-types/protocols/Aws_restJson1.d.ts +95 -5
  54. package/package.json +1 -1
  55. package/dist-es/commands/CreateKiteChannelCommand.js +0 -17
  56. package/dist-types/commands/CreateKiteChannelCommand.d.ts +0 -300
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
- exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = void 0;
3
+ exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinChannelCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListInboxTagsCommand = exports.se_ListInboxTaggedChannelsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxStateCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinChannelCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListInboxTagsCommand = exports.de_ListInboxTaggedChannelsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxStateCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateInboxTagCommand = void 0;
5
5
  const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@smithy/core");
@@ -80,22 +80,19 @@ const se_CreateGroupChannelCommand = async (input, context) => {
80
80
  return b.build();
81
81
  };
82
82
  exports.se_CreateGroupChannelCommand = se_CreateGroupChannelCommand;
83
- const se_CreateKiteChannelCommand = async (input, context) => {
83
+ const se_CreateInboxTagCommand = async (input, context) => {
84
84
  const b = (0, core_1.requestBuilder)(input, context);
85
85
  const headers = {
86
86
  'content-type': 'application/json',
87
87
  };
88
- b.bp("/v2/conversations/kite");
88
+ b.bp("/v2/conversations/inbox/tags");
89
89
  const query = (0, smithy_client_1.map)({
90
90
  [_u]: [, input[_uI]],
91
91
  });
92
92
  let body;
93
93
  body = JSON.stringify((0, smithy_client_1.take)(input, {
94
- 'channelId': [],
95
- 'initialMessage': _ => (0, smithy_client_1._json)(_),
96
- 'targetId': [],
97
- 'targetRouteId': [],
98
- 'welcomeMessages': _ => (0, smithy_client_1._json)(_),
94
+ 'name': [],
95
+ 'tagId': [],
99
96
  }));
100
97
  b.m("POST")
101
98
  .h(headers)
@@ -103,7 +100,7 @@ const se_CreateKiteChannelCommand = async (input, context) => {
103
100
  .b(body);
104
101
  return b.build();
105
102
  };
106
- exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
103
+ exports.se_CreateInboxTagCommand = se_CreateInboxTagCommand;
107
104
  const se_DeleteChannelCommand = async (input, context) => {
108
105
  const b = (0, core_1.requestBuilder)(input, context);
109
106
  const headers = {};
@@ -134,6 +131,22 @@ const se_DeleteChannelMemberCommand = async (input, context) => {
134
131
  return b.build();
135
132
  };
136
133
  exports.se_DeleteChannelMemberCommand = se_DeleteChannelMemberCommand;
134
+ const se_DeleteInboxTagCommand = async (input, context) => {
135
+ const b = (0, core_1.requestBuilder)(input, context);
136
+ const headers = {};
137
+ b.bp("/v2/conversations/inbox/tags/{tagId}");
138
+ b.p('tagId', () => input.tagId, '{tagId}', false);
139
+ const query = (0, smithy_client_1.map)({
140
+ [_u]: [, input[_uI]],
141
+ });
142
+ let body;
143
+ b.m("DELETE")
144
+ .h(headers)
145
+ .q(query)
146
+ .b(body);
147
+ return b.build();
148
+ };
149
+ exports.se_DeleteInboxTagCommand = se_DeleteInboxTagCommand;
137
150
  const se_DeleteMessageCommand = async (input, context) => {
138
151
  const b = (0, core_1.requestBuilder)(input, context);
139
152
  const headers = {};
@@ -247,6 +260,21 @@ const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
247
260
  return b.build();
248
261
  };
249
262
  exports.se_GetFilePresignedDownloadUrlCommand = se_GetFilePresignedDownloadUrlCommand;
263
+ const se_GetInboxStateCommand = async (input, context) => {
264
+ const b = (0, core_1.requestBuilder)(input, context);
265
+ const headers = {};
266
+ b.bp("/v2/conversations/inbox/state");
267
+ const query = (0, smithy_client_1.map)({
268
+ [_u]: [, input[_uI]],
269
+ });
270
+ let body;
271
+ b.m("GET")
272
+ .h(headers)
273
+ .q(query)
274
+ .b(body);
275
+ return b.build();
276
+ };
277
+ exports.se_GetInboxStateCommand = se_GetInboxStateCommand;
250
278
  const se_GetMessageCommand = async (input, context) => {
251
279
  const b = (0, core_1.requestBuilder)(input, context);
252
280
  const headers = {};
@@ -406,6 +434,37 @@ const se_ListChannelsCommand = async (input, context) => {
406
434
  return b.build();
407
435
  };
408
436
  exports.se_ListChannelsCommand = se_ListChannelsCommand;
437
+ const se_ListInboxTaggedChannelsCommand = async (input, context) => {
438
+ const b = (0, core_1.requestBuilder)(input, context);
439
+ const headers = {};
440
+ b.bp("/v2/conversations/inbox/tags/{tagId}");
441
+ b.p('tagId', () => input.tagId, '{tagId}', false);
442
+ const query = (0, smithy_client_1.map)({
443
+ [_u]: [, input[_uI]],
444
+ });
445
+ let body;
446
+ b.m("GET")
447
+ .h(headers)
448
+ .q(query)
449
+ .b(body);
450
+ return b.build();
451
+ };
452
+ exports.se_ListInboxTaggedChannelsCommand = se_ListInboxTaggedChannelsCommand;
453
+ const se_ListInboxTagsCommand = async (input, context) => {
454
+ const b = (0, core_1.requestBuilder)(input, context);
455
+ const headers = {};
456
+ b.bp("/v2/conversations/inbox/tags");
457
+ const query = (0, smithy_client_1.map)({
458
+ [_u]: [, input[_uI]],
459
+ });
460
+ let body;
461
+ b.m("GET")
462
+ .h(headers)
463
+ .q(query)
464
+ .b(body);
465
+ return b.build();
466
+ };
467
+ exports.se_ListInboxTagsCommand = se_ListInboxTagsCommand;
409
468
  const se_ListMessageReactionsCommand = async (input, context) => {
410
469
  const b = (0, core_1.requestBuilder)(input, context);
411
470
  const headers = {};
@@ -457,6 +516,28 @@ const se_MarkReadCommand = async (input, context) => {
457
516
  return b.build();
458
517
  };
459
518
  exports.se_MarkReadCommand = se_MarkReadCommand;
519
+ const se_MarkUnreadCommand = async (input, context) => {
520
+ const b = (0, core_1.requestBuilder)(input, context);
521
+ const headers = {
522
+ 'content-type': 'application/json',
523
+ };
524
+ b.bp("/v2/conversations/channels/{channelId}/unread");
525
+ b.p('channelId', () => input.channelId, '{channelId}', false);
526
+ const query = (0, smithy_client_1.map)({
527
+ [_u]: [, input[_uI]],
528
+ [_f]: [() => input.force !== void 0, () => (input[_f].toString())],
529
+ });
530
+ let body;
531
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
532
+ 'messageId': [],
533
+ }));
534
+ b.m("PUT")
535
+ .h(headers)
536
+ .q(query)
537
+ .b(body);
538
+ return b.build();
539
+ };
540
+ exports.se_MarkUnreadCommand = se_MarkUnreadCommand;
460
541
  const se_PartialUpdateChannelCommand = async (input, context) => {
461
542
  const b = (0, core_1.requestBuilder)(input, context);
462
543
  const headers = {
@@ -503,6 +584,23 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
503
584
  return b.build();
504
585
  };
505
586
  exports.se_PartialUpdateMessageCommand = se_PartialUpdateMessageCommand;
587
+ const se_PinChannelCommand = async (input, context) => {
588
+ const b = (0, core_1.requestBuilder)(input, context);
589
+ const headers = {};
590
+ b.bp("/v2/conversations/channels/{channelId}/pin");
591
+ b.p('channelId', () => input.channelId, '{channelId}', false);
592
+ const query = (0, smithy_client_1.map)({
593
+ [_u]: [, input[_uI]],
594
+ [_f]: [() => input.force !== void 0, () => (input[_f].toString())],
595
+ });
596
+ let body;
597
+ b.m("POST")
598
+ .h(headers)
599
+ .q(query)
600
+ .b(body);
601
+ return b.build();
602
+ };
603
+ exports.se_PinChannelCommand = se_PinChannelCommand;
506
604
  const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
507
605
  const b = (0, core_1.requestBuilder)(input, context);
508
606
  const headers = {
@@ -557,7 +655,6 @@ const se_SendMessageCommand = async (input, context) => {
557
655
  'forward': _ => (0, smithy_client_1._json)(_),
558
656
  'mentions': _ => (0, smithy_client_1._json)(_),
559
657
  'messageId': [],
560
- 'predefinedReplies': _ => (0, smithy_client_1._json)(_),
561
658
  'quote': _ => (0, smithy_client_1._json)(_),
562
659
  'text': [],
563
660
  }));
@@ -638,6 +735,61 @@ const se_ShowChannelCommand = async (input, context) => {
638
735
  return b.build();
639
736
  };
640
737
  exports.se_ShowChannelCommand = se_ShowChannelCommand;
738
+ const se_TagChannelCommand = async (input, context) => {
739
+ const b = (0, core_1.requestBuilder)(input, context);
740
+ const headers = {};
741
+ b.bp("/v2/conversations/channels/{channelId}/tags/{tagId}");
742
+ b.p('channelId', () => input.channelId, '{channelId}', false);
743
+ b.p('tagId', () => input.tagId, '{tagId}', false);
744
+ const query = (0, smithy_client_1.map)({
745
+ [_u]: [, input[_uI]],
746
+ [_f]: [() => input.force !== void 0, () => (input[_f].toString())],
747
+ });
748
+ let body;
749
+ b.m("PUT")
750
+ .h(headers)
751
+ .q(query)
752
+ .b(body);
753
+ return b.build();
754
+ };
755
+ exports.se_TagChannelCommand = se_TagChannelCommand;
756
+ const se_UnpinChannelCommand = async (input, context) => {
757
+ const b = (0, core_1.requestBuilder)(input, context);
758
+ const headers = {};
759
+ b.bp("/v2/conversations/channels/{channelId}/pin");
760
+ b.p('channelId', () => input.channelId, '{channelId}', false);
761
+ const query = (0, smithy_client_1.map)({
762
+ [_u]: [, input[_uI]],
763
+ });
764
+ let body;
765
+ b.m("DELETE")
766
+ .h(headers)
767
+ .q(query)
768
+ .b(body);
769
+ return b.build();
770
+ };
771
+ exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
772
+ const se_UntagChannelCommand = async (input, context) => {
773
+ const b = (0, core_1.requestBuilder)(input, context);
774
+ const headers = {
775
+ 'content-type': 'application/json',
776
+ };
777
+ b.bp("/v2/conversations/channels/{channelId}/untag");
778
+ b.p('channelId', () => input.channelId, '{channelId}', false);
779
+ const query = (0, smithy_client_1.map)({
780
+ [_u]: [, input[_uI]],
781
+ });
782
+ let body;
783
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
784
+ 'tagId': [],
785
+ }));
786
+ b.m("POST")
787
+ .h(headers)
788
+ .q(query)
789
+ .b(body);
790
+ return b.build();
791
+ };
792
+ exports.se_UntagChannelCommand = se_UntagChannelCommand;
641
793
  const se_UpdateChannelCommand = async (input, context) => {
642
794
  const b = (0, core_1.requestBuilder)(input, context);
643
795
  const headers = {
@@ -665,6 +817,27 @@ const se_UpdateChannelCommand = async (input, context) => {
665
817
  return b.build();
666
818
  };
667
819
  exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
820
+ const se_UpdateInboxTagCommand = async (input, context) => {
821
+ const b = (0, core_1.requestBuilder)(input, context);
822
+ const headers = {
823
+ 'content-type': 'application/json',
824
+ };
825
+ b.bp("/v2/conversations/inbox/tags/{tagId}");
826
+ b.p('tagId', () => input.tagId, '{tagId}', false);
827
+ const query = (0, smithy_client_1.map)({
828
+ [_u]: [, input[_uI]],
829
+ });
830
+ let body;
831
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
832
+ 'name': [],
833
+ }));
834
+ b.m("PUT")
835
+ .h(headers)
836
+ .q(query)
837
+ .b(body);
838
+ return b.build();
839
+ };
840
+ exports.se_UpdateInboxTagCommand = se_UpdateInboxTagCommand;
668
841
  const se_UpdateMessageCommand = async (input, context) => {
669
842
  const b = (0, core_1.requestBuilder)(input, context);
670
843
  const headers = {
@@ -681,7 +854,6 @@ const se_UpdateMessageCommand = async (input, context) => {
681
854
  'attachments': _ => (0, smithy_client_1._json)(_),
682
855
  'forward': _ => (0, smithy_client_1._json)(_),
683
856
  'mentions': _ => (0, smithy_client_1._json)(_),
684
- 'predefinedReplies': _ => (0, smithy_client_1._json)(_),
685
857
  'quote': _ => (0, smithy_client_1._json)(_),
686
858
  'text': [],
687
859
  }));
@@ -761,7 +933,7 @@ const de_CreateGroupChannelCommand = async (output, context) => {
761
933
  return contents;
762
934
  };
763
935
  exports.de_CreateGroupChannelCommand = de_CreateGroupChannelCommand;
764
- const de_CreateKiteChannelCommand = async (output, context) => {
936
+ const de_CreateInboxTagCommand = async (output, context) => {
765
937
  if (output.statusCode !== 200 && output.statusCode >= 300) {
766
938
  return de_CommandError(output, context);
767
939
  }
@@ -770,12 +942,12 @@ const de_CreateKiteChannelCommand = async (output, context) => {
770
942
  });
771
943
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
772
944
  const doc = (0, smithy_client_1.take)(data, {
773
- 'channel': smithy_client_1._json,
945
+ 'tag': smithy_client_1._json,
774
946
  });
775
947
  Object.assign(contents, doc);
776
948
  return contents;
777
949
  };
778
- exports.de_CreateKiteChannelCommand = de_CreateKiteChannelCommand;
950
+ exports.de_CreateInboxTagCommand = de_CreateInboxTagCommand;
779
951
  const de_DeleteChannelCommand = async (output, context) => {
780
952
  if (output.statusCode !== 200 && output.statusCode >= 300) {
781
953
  return de_CommandError(output, context);
@@ -798,6 +970,17 @@ const de_DeleteChannelMemberCommand = async (output, context) => {
798
970
  return contents;
799
971
  };
800
972
  exports.de_DeleteChannelMemberCommand = de_DeleteChannelMemberCommand;
973
+ const de_DeleteInboxTagCommand = async (output, context) => {
974
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
975
+ return de_CommandError(output, context);
976
+ }
977
+ const contents = (0, smithy_client_1.map)({
978
+ $metadata: deserializeMetadata(output),
979
+ });
980
+ await (0, smithy_client_1.collectBody)(output.body, context);
981
+ return contents;
982
+ };
983
+ exports.de_DeleteInboxTagCommand = de_DeleteInboxTagCommand;
801
984
  const de_DeleteMessageCommand = async (output, context) => {
802
985
  if (output.statusCode !== 200 && output.statusCode >= 300) {
803
986
  return de_CommandError(output, context);
@@ -904,6 +1087,22 @@ const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
904
1087
  return contents;
905
1088
  };
906
1089
  exports.de_GetFilePresignedDownloadUrlCommand = de_GetFilePresignedDownloadUrlCommand;
1090
+ const de_GetInboxStateCommand = async (output, context) => {
1091
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1092
+ return de_CommandError(output, context);
1093
+ }
1094
+ const contents = (0, smithy_client_1.map)({
1095
+ $metadata: deserializeMetadata(output),
1096
+ });
1097
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1098
+ const doc = (0, smithy_client_1.take)(data, {
1099
+ 'channels': smithy_client_1._json,
1100
+ 'tags': smithy_client_1._json,
1101
+ });
1102
+ Object.assign(contents, doc);
1103
+ return contents;
1104
+ };
1105
+ exports.de_GetInboxStateCommand = de_GetInboxStateCommand;
907
1106
  const de_GetMessageCommand = async (output, context) => {
908
1107
  if (output.statusCode !== 200 && output.statusCode >= 300) {
909
1108
  return de_CommandError(output, context);
@@ -1032,6 +1231,36 @@ const de_ListChannelsCommand = async (output, context) => {
1032
1231
  return contents;
1033
1232
  };
1034
1233
  exports.de_ListChannelsCommand = de_ListChannelsCommand;
1234
+ const de_ListInboxTaggedChannelsCommand = async (output, context) => {
1235
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1236
+ return de_CommandError(output, context);
1237
+ }
1238
+ const contents = (0, smithy_client_1.map)({
1239
+ $metadata: deserializeMetadata(output),
1240
+ });
1241
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1242
+ const doc = (0, smithy_client_1.take)(data, {
1243
+ 'channels': smithy_client_1._json,
1244
+ });
1245
+ Object.assign(contents, doc);
1246
+ return contents;
1247
+ };
1248
+ exports.de_ListInboxTaggedChannelsCommand = de_ListInboxTaggedChannelsCommand;
1249
+ const de_ListInboxTagsCommand = async (output, context) => {
1250
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1251
+ return de_CommandError(output, context);
1252
+ }
1253
+ const contents = (0, smithy_client_1.map)({
1254
+ $metadata: deserializeMetadata(output),
1255
+ });
1256
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1257
+ const doc = (0, smithy_client_1.take)(data, {
1258
+ 'tags': smithy_client_1._json,
1259
+ });
1260
+ Object.assign(contents, doc);
1261
+ return contents;
1262
+ };
1263
+ exports.de_ListInboxTagsCommand = de_ListInboxTagsCommand;
1035
1264
  const de_ListMessageReactionsCommand = async (output, context) => {
1036
1265
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1037
1266
  return de_CommandError(output, context);
@@ -1073,6 +1302,17 @@ const de_MarkReadCommand = async (output, context) => {
1073
1302
  return contents;
1074
1303
  };
1075
1304
  exports.de_MarkReadCommand = de_MarkReadCommand;
1305
+ const de_MarkUnreadCommand = async (output, context) => {
1306
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1307
+ return de_CommandError(output, context);
1308
+ }
1309
+ const contents = (0, smithy_client_1.map)({
1310
+ $metadata: deserializeMetadata(output),
1311
+ });
1312
+ await (0, smithy_client_1.collectBody)(output.body, context);
1313
+ return contents;
1314
+ };
1315
+ exports.de_MarkUnreadCommand = de_MarkUnreadCommand;
1076
1316
  const de_PartialUpdateChannelCommand = async (output, context) => {
1077
1317
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1078
1318
  return de_CommandError(output, context);
@@ -1103,6 +1343,17 @@ const de_PartialUpdateMessageCommand = async (output, context) => {
1103
1343
  return contents;
1104
1344
  };
1105
1345
  exports.de_PartialUpdateMessageCommand = de_PartialUpdateMessageCommand;
1346
+ const de_PinChannelCommand = async (output, context) => {
1347
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1348
+ return de_CommandError(output, context);
1349
+ }
1350
+ const contents = (0, smithy_client_1.map)({
1351
+ $metadata: deserializeMetadata(output),
1352
+ });
1353
+ await (0, smithy_client_1.collectBody)(output.body, context);
1354
+ return contents;
1355
+ };
1356
+ exports.de_PinChannelCommand = de_PinChannelCommand;
1106
1357
  const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1107
1358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
1359
  return de_CommandError(output, context);
@@ -1188,6 +1439,39 @@ const de_ShowChannelCommand = async (output, context) => {
1188
1439
  return contents;
1189
1440
  };
1190
1441
  exports.de_ShowChannelCommand = de_ShowChannelCommand;
1442
+ const de_TagChannelCommand = async (output, context) => {
1443
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1444
+ return de_CommandError(output, context);
1445
+ }
1446
+ const contents = (0, smithy_client_1.map)({
1447
+ $metadata: deserializeMetadata(output),
1448
+ });
1449
+ await (0, smithy_client_1.collectBody)(output.body, context);
1450
+ return contents;
1451
+ };
1452
+ exports.de_TagChannelCommand = de_TagChannelCommand;
1453
+ const de_UnpinChannelCommand = async (output, context) => {
1454
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1455
+ return de_CommandError(output, context);
1456
+ }
1457
+ const contents = (0, smithy_client_1.map)({
1458
+ $metadata: deserializeMetadata(output),
1459
+ });
1460
+ await (0, smithy_client_1.collectBody)(output.body, context);
1461
+ return contents;
1462
+ };
1463
+ exports.de_UnpinChannelCommand = de_UnpinChannelCommand;
1464
+ const de_UntagChannelCommand = async (output, context) => {
1465
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1466
+ return de_CommandError(output, context);
1467
+ }
1468
+ const contents = (0, smithy_client_1.map)({
1469
+ $metadata: deserializeMetadata(output),
1470
+ });
1471
+ await (0, smithy_client_1.collectBody)(output.body, context);
1472
+ return contents;
1473
+ };
1474
+ exports.de_UntagChannelCommand = de_UntagChannelCommand;
1191
1475
  const de_UpdateChannelCommand = async (output, context) => {
1192
1476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1193
1477
  return de_CommandError(output, context);
@@ -1203,6 +1487,21 @@ const de_UpdateChannelCommand = async (output, context) => {
1203
1487
  return contents;
1204
1488
  };
1205
1489
  exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
1490
+ const de_UpdateInboxTagCommand = async (output, context) => {
1491
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1492
+ return de_CommandError(output, context);
1493
+ }
1494
+ const contents = (0, smithy_client_1.map)({
1495
+ $metadata: deserializeMetadata(output),
1496
+ });
1497
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1498
+ const doc = (0, smithy_client_1.take)(data, {
1499
+ 'tag': smithy_client_1._json,
1500
+ });
1501
+ Object.assign(contents, doc);
1502
+ return contents;
1503
+ };
1504
+ exports.de_UpdateInboxTagCommand = de_UpdateInboxTagCommand;
1206
1505
  const de_UpdateMessageCommand = async (output, context) => {
1207
1506
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1208
1507
  return de_CommandError(output, context);
@@ -1259,12 +1558,9 @@ const de_CommandError = async (output, context) => {
1259
1558
  case "ChannelAlreadyExistException":
1260
1559
  case "wildix.xbees.conversations#ChannelAlreadyExistException":
1261
1560
  throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
1262
- case "TargetNotEligibleException":
1263
- case "wildix.xbees.conversations#TargetNotEligibleException":
1264
- throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
1265
- case "TargetNotFoundException":
1266
- case "wildix.xbees.conversations#TargetNotFoundException":
1267
- throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
1561
+ case "TagsLimitReachedException":
1562
+ case "wildix.xbees.conversations#TagsLimitReachedException":
1563
+ throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
1268
1564
  case "MemberNotFoundException":
1269
1565
  case "wildix.xbees.conversations#MemberNotFoundException":
1270
1566
  throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
@@ -1274,9 +1570,21 @@ const de_CommandError = async (output, context) => {
1274
1570
  case "FileNotFoundException":
1275
1571
  case "wildix.xbees.conversations#FileNotFoundException":
1276
1572
  throw await de_FileNotFoundExceptionRes(parsedOutput, context);
1573
+ case "TagNotFoundException":
1574
+ case "wildix.xbees.conversations#TagNotFoundException":
1575
+ throw await de_TagNotFoundExceptionRes(parsedOutput, context);
1576
+ case "MarkUnreadChannelsLimitReachedException":
1577
+ case "wildix.xbees.conversations#MarkUnreadChannelsLimitReachedException":
1578
+ throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
1579
+ case "PinnedChannelsLimitReachedException":
1580
+ case "wildix.xbees.conversations#PinnedChannelsLimitReachedException":
1581
+ throw await de_PinnedChannelsLimitReachedExceptionRes(parsedOutput, context);
1277
1582
  case "ConversationsServiceException":
1278
1583
  case "wildix.xbees.conversations#ConversationsServiceException":
1279
1584
  throw await de_ConversationsServiceExceptionRes(parsedOutput, context);
1585
+ case "TaggedChannelsLimitReachedException":
1586
+ case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
1587
+ throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
1280
1588
  default:
1281
1589
  const parsedBody = parsedOutput.body;
1282
1590
  return throwDefaultError({
@@ -1383,6 +1691,19 @@ const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
1383
1691
  });
1384
1692
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1385
1693
  };
1694
+ const de_MarkUnreadChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
1695
+ const contents = (0, smithy_client_1.map)({});
1696
+ const data = parsedOutput.body;
1697
+ const doc = (0, smithy_client_1.take)(data, {
1698
+ 'message': smithy_client_1.expectString,
1699
+ });
1700
+ Object.assign(contents, doc);
1701
+ const exception = new models_0_1.MarkUnreadChannelsLimitReachedException({
1702
+ $metadata: deserializeMetadata(parsedOutput),
1703
+ ...contents
1704
+ });
1705
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1706
+ };
1386
1707
  const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
1387
1708
  const contents = (0, smithy_client_1.map)({});
1388
1709
  const data = parsedOutput.body;
@@ -1422,28 +1743,53 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
1422
1743
  });
1423
1744
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1424
1745
  };
1425
- const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
1746
+ const de_PinnedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
1747
+ const contents = (0, smithy_client_1.map)({});
1748
+ const data = parsedOutput.body;
1749
+ const doc = (0, smithy_client_1.take)(data, {
1750
+ 'message': smithy_client_1.expectString,
1751
+ });
1752
+ Object.assign(contents, doc);
1753
+ const exception = new models_0_1.PinnedChannelsLimitReachedException({
1754
+ $metadata: deserializeMetadata(parsedOutput),
1755
+ ...contents
1756
+ });
1757
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1758
+ };
1759
+ const de_TaggedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
1760
+ const contents = (0, smithy_client_1.map)({});
1761
+ const data = parsedOutput.body;
1762
+ const doc = (0, smithy_client_1.take)(data, {
1763
+ 'message': smithy_client_1.expectString,
1764
+ });
1765
+ Object.assign(contents, doc);
1766
+ const exception = new models_0_1.TaggedChannelsLimitReachedException({
1767
+ $metadata: deserializeMetadata(parsedOutput),
1768
+ ...contents
1769
+ });
1770
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1771
+ };
1772
+ const de_TagNotFoundExceptionRes = async (parsedOutput, context) => {
1426
1773
  const contents = (0, smithy_client_1.map)({});
1427
1774
  const data = parsedOutput.body;
1428
1775
  const doc = (0, smithy_client_1.take)(data, {
1429
1776
  'message': smithy_client_1.expectString,
1430
- 'reason': smithy_client_1.expectString,
1431
1777
  });
1432
1778
  Object.assign(contents, doc);
1433
- const exception = new models_0_1.TargetNotEligibleException({
1779
+ const exception = new models_0_1.TagNotFoundException({
1434
1780
  $metadata: deserializeMetadata(parsedOutput),
1435
1781
  ...contents
1436
1782
  });
1437
1783
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1438
1784
  };
1439
- const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
1785
+ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
1440
1786
  const contents = (0, smithy_client_1.map)({});
1441
1787
  const data = parsedOutput.body;
1442
1788
  const doc = (0, smithy_client_1.take)(data, {
1443
1789
  'message': smithy_client_1.expectString,
1444
1790
  });
1445
1791
  Object.assign(contents, doc);
1446
- const exception = new models_0_1.TargetNotFoundException({
1792
+ const exception = new models_0_1.TagsLimitReachedException({
1447
1793
  $metadata: deserializeMetadata(parsedOutput),
1448
1794
  ...contents
1449
1795
  });
@@ -1463,6 +1809,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1463
1809
  value.length != 0) &&
1464
1810
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1465
1811
  const _c = "category";
1812
+ const _f = "force";
1466
1813
  const _l = "limit";
1467
1814
  const _o = "offset";
1468
1815
  const _rA = "retryAfter";