@wildix/xbees-conversations-client 1.1.0 → 1.1.2

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 (45) hide show
  1. package/dist-cjs/Conversations.js +14 -0
  2. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
  4. package/dist-cjs/commands/ListPinnedMessagesCommand.js +21 -0
  5. package/dist-cjs/commands/PinMessageCommand.js +21 -0
  6. package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
  7. package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
  8. package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
  9. package/dist-cjs/commands/index.js +7 -0
  10. package/dist-cjs/models/models_0.js +107 -12
  11. package/dist-cjs/protocols/Aws_restJson1.js +302 -2
  12. package/dist-es/Conversations.js +14 -0
  13. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  14. package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
  15. package/dist-es/commands/ListPinnedMessagesCommand.js +17 -0
  16. package/dist-es/commands/PinMessageCommand.js +17 -0
  17. package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
  18. package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
  19. package/dist-es/commands/UnpinMessageCommand.js +17 -0
  20. package/dist-es/commands/index.js +7 -0
  21. package/dist-es/models/models_0.js +102 -11
  22. package/dist-es/protocols/Aws_restJson1.js +286 -1
  23. package/dist-types/Conversations.d.ts +49 -0
  24. package/dist-types/ConversationsClient.d.ts +9 -2
  25. package/dist-types/commands/CreateKiteChannelCommand.d.ts +240 -0
  26. package/dist-types/commands/DescribeEventCommand.d.ts +144 -9
  27. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
  28. package/dist-types/commands/GetMessageCommand.d.ts +24 -0
  29. package/dist-types/commands/ListMessagesCommand.d.ts +24 -0
  30. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +224 -0
  31. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +53 -1
  32. package/dist-types/commands/PinMessageCommand.d.ts +73 -0
  33. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
  34. package/dist-types/commands/SendGiphyCommand.d.ts +24 -0
  35. package/dist-types/commands/SendMessageCommand.d.ts +48 -0
  36. package/dist-types/commands/TriggerMessageActionCommand.d.ts +75 -0
  37. package/dist-types/commands/UnpinMessageCommand.d.ts +71 -0
  38. package/dist-types/commands/UpdateMessageCommand.d.ts +49 -0
  39. package/dist-types/commands/index.d.ts +7 -0
  40. package/dist-types/models/models_0.d.ts +578 -102
  41. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.se_UntagChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = exports.se_TriggerMessageActionCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListPinnedMessagesCommand = 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_GetActionTriggerResultCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListPinnedMessagesCommand = 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_GetActionTriggerResultCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = void 0;
5
+ exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = void 0;
5
6
  const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
6
7
  const models_0_1 = require("../models/models_0");
7
8
  const core_1 = require("@smithy/core");
@@ -101,6 +102,30 @@ const se_CreateInboxTagCommand = async (input, context) => {
101
102
  return b.build();
102
103
  };
103
104
  exports.se_CreateInboxTagCommand = se_CreateInboxTagCommand;
105
+ const se_CreateKiteChannelCommand = async (input, context) => {
106
+ const b = (0, core_1.requestBuilder)(input, context);
107
+ const headers = {
108
+ 'content-type': 'application/json',
109
+ };
110
+ b.bp("/v2/conversations/kite");
111
+ const query = (0, smithy_client_1.map)({
112
+ [_u]: [, input[_uI]],
113
+ });
114
+ let body;
115
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
116
+ 'channelId': [],
117
+ 'initialMessage': _ => (0, smithy_client_1._json)(_),
118
+ 'targetId': [],
119
+ 'targetRouteId': [],
120
+ 'welcomeMessages': _ => (0, smithy_client_1._json)(_),
121
+ }));
122
+ b.m("POST")
123
+ .h(headers)
124
+ .q(query)
125
+ .b(body);
126
+ return b.build();
127
+ };
128
+ exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
104
129
  const se_DeleteChannelCommand = async (input, context) => {
105
130
  const b = (0, core_1.requestBuilder)(input, context);
106
131
  const headers = {};
@@ -196,6 +221,22 @@ const se_DescribeEventCommand = async (input, context) => {
196
221
  return b.build();
197
222
  };
198
223
  exports.se_DescribeEventCommand = se_DescribeEventCommand;
224
+ const se_GetActionTriggerResultCommand = async (input, context) => {
225
+ const b = (0, core_1.requestBuilder)(input, context);
226
+ const headers = {};
227
+ b.bp("/v2/conversations/triggers/{triggerId}/result");
228
+ b.p('triggerId', () => input.triggerId, '{triggerId}', false);
229
+ const query = (0, smithy_client_1.map)({
230
+ [_u]: [, input[_uI]],
231
+ });
232
+ let body;
233
+ b.m("GET")
234
+ .h(headers)
235
+ .q(query)
236
+ .b(body);
237
+ return b.build();
238
+ };
239
+ exports.se_GetActionTriggerResultCommand = se_GetActionTriggerResultCommand;
199
240
  const se_GetChannelCommand = async (input, context) => {
200
241
  const b = (0, core_1.requestBuilder)(input, context);
201
242
  const headers = {};
@@ -501,6 +542,23 @@ const se_ListMessagesCommand = async (input, context) => {
501
542
  return b.build();
502
543
  };
503
544
  exports.se_ListMessagesCommand = se_ListMessagesCommand;
545
+ const se_ListPinnedMessagesCommand = async (input, context) => {
546
+ const b = (0, core_1.requestBuilder)(input, context);
547
+ const headers = {};
548
+ b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
549
+ b.p('channelId', () => input.channelId, '{channelId}', false);
550
+ const query = (0, smithy_client_1.map)({
551
+ [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
552
+ [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
553
+ });
554
+ let body;
555
+ b.m("GET")
556
+ .h(headers)
557
+ .q(query)
558
+ .b(body);
559
+ return b.build();
560
+ };
561
+ exports.se_ListPinnedMessagesCommand = se_ListPinnedMessagesCommand;
504
562
  const se_MarkReadCommand = async (input, context) => {
505
563
  const b = (0, core_1.requestBuilder)(input, context);
506
564
  const headers = {};
@@ -576,6 +634,7 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
576
634
  let body;
577
635
  body = JSON.stringify((0, smithy_client_1.take)(input, {
578
636
  'set': _ => (0, smithy_client_1._json)(_),
637
+ 'silent': [],
579
638
  'unset': _ => (0, smithy_client_1._json)(_),
580
639
  }));
581
640
  b.m("PATCH")
@@ -602,6 +661,30 @@ const se_PinChannelCommand = async (input, context) => {
602
661
  return b.build();
603
662
  };
604
663
  exports.se_PinChannelCommand = se_PinChannelCommand;
664
+ const se_PinMessageCommand = async (input, context) => {
665
+ const b = (0, core_1.requestBuilder)(input, context);
666
+ const headers = {
667
+ 'content-type': 'application/json',
668
+ };
669
+ b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
670
+ b.p('channelId', () => input.channelId, '{channelId}', false);
671
+ b.p('messageId', () => input.messageId, '{messageId}', false);
672
+ const query = (0, smithy_client_1.map)({
673
+ [_u]: [, input[_uI]],
674
+ });
675
+ let body;
676
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
677
+ 'expiresAfter': [],
678
+ 'expiresAt': [],
679
+ 'silent': [],
680
+ }));
681
+ b.m("PUT")
682
+ .h(headers)
683
+ .q(query)
684
+ .b(body);
685
+ return b.build();
686
+ };
687
+ exports.se_PinMessageCommand = se_PinMessageCommand;
605
688
  const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
606
689
  const b = (0, core_1.requestBuilder)(input, context);
607
690
  const headers = {
@@ -618,6 +701,24 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
618
701
  return b.build();
619
702
  };
620
703
  exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
704
+ const se_SendActionTriggerResultCommand = async (input, context) => {
705
+ const b = (0, core_1.requestBuilder)(input, context);
706
+ const headers = {
707
+ 'content-type': 'application/json',
708
+ };
709
+ b.bp("/v2/conversations/triggers/{triggerId}/result");
710
+ b.p('triggerId', () => input.triggerId, '{triggerId}', false);
711
+ let body;
712
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
713
+ 'result': _ => (0, smithy_client_1._json)(_),
714
+ 'status': [],
715
+ }));
716
+ b.m("POST")
717
+ .h(headers)
718
+ .b(body);
719
+ return b.build();
720
+ };
721
+ exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
621
722
  const se_SendGiphyCommand = async (input, context) => {
622
723
  const b = (0, core_1.requestBuilder)(input, context);
623
724
  const headers = {
@@ -653,6 +754,7 @@ const se_SendMessageCommand = async (input, context) => {
653
754
  let body;
654
755
  body = JSON.stringify((0, smithy_client_1.take)(input, {
655
756
  'attachments': _ => (0, smithy_client_1._json)(_),
757
+ 'elements': _ => (0, smithy_client_1._json)(_),
656
758
  'forward': _ => (0, smithy_client_1._json)(_),
657
759
  'mentions': _ => (0, smithy_client_1._json)(_),
658
760
  'messageId': [],
@@ -754,6 +856,24 @@ const se_TagChannelCommand = async (input, context) => {
754
856
  return b.build();
755
857
  };
756
858
  exports.se_TagChannelCommand = se_TagChannelCommand;
859
+ const se_TriggerMessageActionCommand = async (input, context) => {
860
+ const b = (0, core_1.requestBuilder)(input, context);
861
+ const headers = {};
862
+ b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
863
+ b.p('channelId', () => input.channelId, '{channelId}', false);
864
+ b.p('messageId', () => input.messageId, '{messageId}', false);
865
+ b.p('actionId', () => input.actionId, '{actionId}', false);
866
+ const query = (0, smithy_client_1.map)({
867
+ [_u]: [, input[_uI]],
868
+ });
869
+ let body;
870
+ b.m("POST")
871
+ .h(headers)
872
+ .q(query)
873
+ .b(body);
874
+ return b.build();
875
+ };
876
+ exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
757
877
  const se_UnpinChannelCommand = async (input, context) => {
758
878
  const b = (0, core_1.requestBuilder)(input, context);
759
879
  const headers = {};
@@ -770,6 +890,24 @@ const se_UnpinChannelCommand = async (input, context) => {
770
890
  return b.build();
771
891
  };
772
892
  exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
893
+ const se_UnpinMessageCommand = async (input, context) => {
894
+ const b = (0, core_1.requestBuilder)(input, context);
895
+ const headers = {};
896
+ b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
897
+ b.p('channelId', () => input.channelId, '{channelId}', false);
898
+ b.p('messageId', () => input.messageId, '{messageId}', false);
899
+ const query = (0, smithy_client_1.map)({
900
+ [_u]: [, input[_uI]],
901
+ [_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
902
+ });
903
+ let body;
904
+ b.m("DELETE")
905
+ .h(headers)
906
+ .q(query)
907
+ .b(body);
908
+ return b.build();
909
+ };
910
+ exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
773
911
  const se_UntagChannelCommand = async (input, context) => {
774
912
  const b = (0, core_1.requestBuilder)(input, context);
775
913
  const headers = {
@@ -853,9 +991,11 @@ const se_UpdateMessageCommand = async (input, context) => {
853
991
  let body;
854
992
  body = JSON.stringify((0, smithy_client_1.take)(input, {
855
993
  'attachments': _ => (0, smithy_client_1._json)(_),
994
+ 'elements': _ => (0, smithy_client_1._json)(_),
856
995
  'forward': _ => (0, smithy_client_1._json)(_),
857
996
  'mentions': _ => (0, smithy_client_1._json)(_),
858
997
  'quote': _ => (0, smithy_client_1._json)(_),
998
+ 'silent': [],
859
999
  'text': [],
860
1000
  }));
861
1001
  b.m("PUT")
@@ -949,6 +1089,21 @@ const de_CreateInboxTagCommand = async (output, context) => {
949
1089
  return contents;
950
1090
  };
951
1091
  exports.de_CreateInboxTagCommand = de_CreateInboxTagCommand;
1092
+ const de_CreateKiteChannelCommand = async (output, context) => {
1093
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1094
+ return de_CommandError(output, context);
1095
+ }
1096
+ const contents = (0, smithy_client_1.map)({
1097
+ $metadata: deserializeMetadata(output),
1098
+ });
1099
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1100
+ const doc = (0, smithy_client_1.take)(data, {
1101
+ 'channel': smithy_client_1._json,
1102
+ });
1103
+ Object.assign(contents, doc);
1104
+ return contents;
1105
+ };
1106
+ exports.de_CreateKiteChannelCommand = de_CreateKiteChannelCommand;
952
1107
  const de_DeleteChannelCommand = async (output, context) => {
953
1108
  if (output.statusCode !== 200 && output.statusCode >= 300) {
954
1109
  return de_CommandError(output, context);
@@ -1013,6 +1168,7 @@ const de_DescribeEventCommand = async (output, context) => {
1013
1168
  });
1014
1169
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1015
1170
  const doc = (0, smithy_client_1.take)(data, {
1171
+ 'WebhookChatActionTriggeredEvent': smithy_client_1._json,
1016
1172
  'WebhookChatChannelCreatedEvent': smithy_client_1._json,
1017
1173
  'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
1018
1174
  'WebhookChatMemberAddedEvent': smithy_client_1._json,
@@ -1027,6 +1183,22 @@ const de_DescribeEventCommand = async (output, context) => {
1027
1183
  return contents;
1028
1184
  };
1029
1185
  exports.de_DescribeEventCommand = de_DescribeEventCommand;
1186
+ const de_GetActionTriggerResultCommand = async (output, context) => {
1187
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1188
+ return de_CommandError(output, context);
1189
+ }
1190
+ const contents = (0, smithy_client_1.map)({
1191
+ $metadata: deserializeMetadata(output),
1192
+ });
1193
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1194
+ const doc = (0, smithy_client_1.take)(data, {
1195
+ 'result': smithy_client_1._json,
1196
+ 'status': smithy_client_1.expectString,
1197
+ });
1198
+ Object.assign(contents, doc);
1199
+ return contents;
1200
+ };
1201
+ exports.de_GetActionTriggerResultCommand = de_GetActionTriggerResultCommand;
1030
1202
  const de_GetChannelCommand = async (output, context) => {
1031
1203
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1032
1204
  return de_CommandError(output, context);
@@ -1292,6 +1464,21 @@ const de_ListMessagesCommand = async (output, context) => {
1292
1464
  return contents;
1293
1465
  };
1294
1466
  exports.de_ListMessagesCommand = de_ListMessagesCommand;
1467
+ const de_ListPinnedMessagesCommand = async (output, context) => {
1468
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1469
+ return de_CommandError(output, context);
1470
+ }
1471
+ const contents = (0, smithy_client_1.map)({
1472
+ $metadata: deserializeMetadata(output),
1473
+ });
1474
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1475
+ const doc = (0, smithy_client_1.take)(data, {
1476
+ 'messages': smithy_client_1._json,
1477
+ });
1478
+ Object.assign(contents, doc);
1479
+ return contents;
1480
+ };
1481
+ exports.de_ListPinnedMessagesCommand = de_ListPinnedMessagesCommand;
1295
1482
  const de_MarkReadCommand = async (output, context) => {
1296
1483
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
1484
  return de_CommandError(output, context);
@@ -1355,6 +1542,17 @@ const de_PinChannelCommand = async (output, context) => {
1355
1542
  return contents;
1356
1543
  };
1357
1544
  exports.de_PinChannelCommand = de_PinChannelCommand;
1545
+ const de_PinMessageCommand = async (output, context) => {
1546
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
+ return de_CommandError(output, context);
1548
+ }
1549
+ const contents = (0, smithy_client_1.map)({
1550
+ $metadata: deserializeMetadata(output),
1551
+ });
1552
+ await (0, smithy_client_1.collectBody)(output.body, context);
1553
+ return contents;
1554
+ };
1555
+ exports.de_PinMessageCommand = de_PinMessageCommand;
1358
1556
  const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1359
1557
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
1558
  return de_CommandError(output, context);
@@ -1366,6 +1564,17 @@ const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1366
1564
  return contents;
1367
1565
  };
1368
1566
  exports.de_ScheduleExternalFlagAdjustmentJobCommand = de_ScheduleExternalFlagAdjustmentJobCommand;
1567
+ const de_SendActionTriggerResultCommand = async (output, context) => {
1568
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1569
+ return de_CommandError(output, context);
1570
+ }
1571
+ const contents = (0, smithy_client_1.map)({
1572
+ $metadata: deserializeMetadata(output),
1573
+ });
1574
+ await (0, smithy_client_1.collectBody)(output.body, context);
1575
+ return contents;
1576
+ };
1577
+ exports.de_SendActionTriggerResultCommand = de_SendActionTriggerResultCommand;
1369
1578
  const de_SendGiphyCommand = async (output, context) => {
1370
1579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1371
1580
  return de_CommandError(output, context);
@@ -1451,6 +1660,21 @@ const de_TagChannelCommand = async (output, context) => {
1451
1660
  return contents;
1452
1661
  };
1453
1662
  exports.de_TagChannelCommand = de_TagChannelCommand;
1663
+ const de_TriggerMessageActionCommand = async (output, context) => {
1664
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1665
+ return de_CommandError(output, context);
1666
+ }
1667
+ const contents = (0, smithy_client_1.map)({
1668
+ $metadata: deserializeMetadata(output),
1669
+ });
1670
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1671
+ const doc = (0, smithy_client_1.take)(data, {
1672
+ 'triggerId': smithy_client_1.expectString,
1673
+ });
1674
+ Object.assign(contents, doc);
1675
+ return contents;
1676
+ };
1677
+ exports.de_TriggerMessageActionCommand = de_TriggerMessageActionCommand;
1454
1678
  const de_UnpinChannelCommand = async (output, context) => {
1455
1679
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1456
1680
  return de_CommandError(output, context);
@@ -1462,6 +1686,17 @@ const de_UnpinChannelCommand = async (output, context) => {
1462
1686
  return contents;
1463
1687
  };
1464
1688
  exports.de_UnpinChannelCommand = de_UnpinChannelCommand;
1689
+ const de_UnpinMessageCommand = async (output, context) => {
1690
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1691
+ return de_CommandError(output, context);
1692
+ }
1693
+ const contents = (0, smithy_client_1.map)({
1694
+ $metadata: deserializeMetadata(output),
1695
+ });
1696
+ await (0, smithy_client_1.collectBody)(output.body, context);
1697
+ return contents;
1698
+ };
1699
+ exports.de_UnpinMessageCommand = de_UnpinMessageCommand;
1465
1700
  const de_UntagChannelCommand = async (output, context) => {
1466
1701
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1467
1702
  return de_CommandError(output, context);
@@ -1562,12 +1797,21 @@ const de_CommandError = async (output, context) => {
1562
1797
  case "TagsLimitReachedException":
1563
1798
  case "wildix.xbees.conversations#TagsLimitReachedException":
1564
1799
  throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
1800
+ case "TargetNotEligibleException":
1801
+ case "wildix.xbees.conversations#TargetNotEligibleException":
1802
+ throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
1803
+ case "TargetNotFoundException":
1804
+ case "wildix.xbees.conversations#TargetNotFoundException":
1805
+ throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
1565
1806
  case "MemberNotFoundException":
1566
1807
  case "wildix.xbees.conversations#MemberNotFoundException":
1567
1808
  throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
1568
1809
  case "MessageNotFoundException":
1569
1810
  case "wildix.xbees.conversations#MessageNotFoundException":
1570
1811
  throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
1812
+ case "TriggerNotFoundException":
1813
+ case "wildix.xbees.conversations#TriggerNotFoundException":
1814
+ throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
1571
1815
  case "FileNotFoundException":
1572
1816
  case "wildix.xbees.conversations#FileNotFoundException":
1573
1817
  throw await de_FileNotFoundExceptionRes(parsedOutput, context);
@@ -1586,6 +1830,9 @@ const de_CommandError = async (output, context) => {
1586
1830
  case "TaggedChannelsLimitReachedException":
1587
1831
  case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
1588
1832
  throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
1833
+ case "MessageActionNotFoundException":
1834
+ case "wildix.xbees.conversations#MessageActionNotFoundException":
1835
+ throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
1589
1836
  default:
1590
1837
  const parsedBody = parsedOutput.body;
1591
1838
  return throwDefaultError({
@@ -1731,6 +1978,19 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
1731
1978
  });
1732
1979
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1733
1980
  };
1981
+ const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
1982
+ const contents = (0, smithy_client_1.map)({});
1983
+ const data = parsedOutput.body;
1984
+ const doc = (0, smithy_client_1.take)(data, {
1985
+ 'message': smithy_client_1.expectString,
1986
+ });
1987
+ Object.assign(contents, doc);
1988
+ const exception = new models_0_1.MessageActionNotFoundException({
1989
+ $metadata: deserializeMetadata(parsedOutput),
1990
+ ...contents
1991
+ });
1992
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1993
+ };
1734
1994
  const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
1735
1995
  const contents = (0, smithy_client_1.map)({});
1736
1996
  const data = parsedOutput.body;
@@ -1796,6 +2056,46 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
1796
2056
  });
1797
2057
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1798
2058
  };
2059
+ const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
2060
+ const contents = (0, smithy_client_1.map)({});
2061
+ const data = parsedOutput.body;
2062
+ const doc = (0, smithy_client_1.take)(data, {
2063
+ 'message': smithy_client_1.expectString,
2064
+ 'reason': smithy_client_1.expectString,
2065
+ });
2066
+ Object.assign(contents, doc);
2067
+ const exception = new models_0_1.TargetNotEligibleException({
2068
+ $metadata: deserializeMetadata(parsedOutput),
2069
+ ...contents
2070
+ });
2071
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2072
+ };
2073
+ const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
2074
+ const contents = (0, smithy_client_1.map)({});
2075
+ const data = parsedOutput.body;
2076
+ const doc = (0, smithy_client_1.take)(data, {
2077
+ 'message': smithy_client_1.expectString,
2078
+ });
2079
+ Object.assign(contents, doc);
2080
+ const exception = new models_0_1.TargetNotFoundException({
2081
+ $metadata: deserializeMetadata(parsedOutput),
2082
+ ...contents
2083
+ });
2084
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2085
+ };
2086
+ const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
2087
+ const contents = (0, smithy_client_1.map)({});
2088
+ const data = parsedOutput.body;
2089
+ const doc = (0, smithy_client_1.take)(data, {
2090
+ 'message': smithy_client_1.expectString,
2091
+ });
2092
+ Object.assign(contents, doc);
2093
+ const exception = new models_0_1.TriggerNotFoundException({
2094
+ $metadata: deserializeMetadata(parsedOutput),
2095
+ ...contents
2096
+ });
2097
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2098
+ };
1799
2099
  const deserializeMetadata = (output) => ({
1800
2100
  httpStatusCode: output.statusCode,
1801
2101
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3,12 +3,14 @@ import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
3
3
  import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
4
4
  import { CreateGroupChannelCommand, } from "./commands/CreateGroupChannelCommand";
5
5
  import { CreateInboxTagCommand, } from "./commands/CreateInboxTagCommand";
6
+ import { CreateKiteChannelCommand, } from "./commands/CreateKiteChannelCommand";
6
7
  import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
7
8
  import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
8
9
  import { DeleteInboxTagCommand, } from "./commands/DeleteInboxTagCommand";
9
10
  import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
10
11
  import { DeleteMessageReactionCommand, } from "./commands/DeleteMessageReactionCommand";
11
12
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
13
+ import { GetActionTriggerResultCommand, } from "./commands/GetActionTriggerResultCommand";
12
14
  import { GetChannelCommand, } from "./commands/GetChannelCommand";
13
15
  import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
14
16
  import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
@@ -27,12 +29,15 @@ import { ListInboxTaggedChannelsCommand, } from "./commands/ListInboxTaggedChann
27
29
  import { ListInboxTagsCommand, } from "./commands/ListInboxTagsCommand";
28
30
  import { ListMessageReactionsCommand, } from "./commands/ListMessageReactionsCommand";
29
31
  import { ListMessagesCommand, } from "./commands/ListMessagesCommand";
32
+ import { ListPinnedMessagesCommand, } from "./commands/ListPinnedMessagesCommand";
30
33
  import { MarkReadCommand, } from "./commands/MarkReadCommand";
31
34
  import { MarkUnreadCommand, } from "./commands/MarkUnreadCommand";
32
35
  import { PartialUpdateChannelCommand, } from "./commands/PartialUpdateChannelCommand";
33
36
  import { PartialUpdateMessageCommand, } from "./commands/PartialUpdateMessageCommand";
34
37
  import { PinChannelCommand, } from "./commands/PinChannelCommand";
38
+ import { PinMessageCommand, } from "./commands/PinMessageCommand";
35
39
  import { ScheduleExternalFlagAdjustmentJobCommand, } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
40
+ import { SendActionTriggerResultCommand, } from "./commands/SendActionTriggerResultCommand";
36
41
  import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
37
42
  import { SendMessageCommand, } from "./commands/SendMessageCommand";
38
43
  import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
@@ -40,7 +45,9 @@ import { SendTypingStartCommand, } from "./commands/SendTypingStartCommand";
40
45
  import { SendTypingStopCommand, } from "./commands/SendTypingStopCommand";
41
46
  import { ShowChannelCommand, } from "./commands/ShowChannelCommand";
42
47
  import { TagChannelCommand, } from "./commands/TagChannelCommand";
48
+ import { TriggerMessageActionCommand, } from "./commands/TriggerMessageActionCommand";
43
49
  import { UnpinChannelCommand, } from "./commands/UnpinChannelCommand";
50
+ import { UnpinMessageCommand, } from "./commands/UnpinMessageCommand";
44
51
  import { UntagChannelCommand, } from "./commands/UntagChannelCommand";
45
52
  import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
46
53
  import { UpdateInboxTagCommand, } from "./commands/UpdateInboxTagCommand";
@@ -52,12 +59,14 @@ const commands = {
52
59
  AddChannelMembersCommand,
53
60
  CreateGroupChannelCommand,
54
61
  CreateInboxTagCommand,
62
+ CreateKiteChannelCommand,
55
63
  DeleteChannelCommand,
56
64
  DeleteChannelMemberCommand,
57
65
  DeleteInboxTagCommand,
58
66
  DeleteMessageCommand,
59
67
  DeleteMessageReactionCommand,
60
68
  DescribeEventCommand,
69
+ GetActionTriggerResultCommand,
61
70
  GetChannelCommand,
62
71
  GetChannelMemberCommand,
63
72
  GetDirectChannelIdCommand,
@@ -76,12 +85,15 @@ const commands = {
76
85
  ListInboxTagsCommand,
77
86
  ListMessageReactionsCommand,
78
87
  ListMessagesCommand,
88
+ ListPinnedMessagesCommand,
79
89
  MarkReadCommand,
80
90
  MarkUnreadCommand,
81
91
  PartialUpdateChannelCommand,
82
92
  PartialUpdateMessageCommand,
83
93
  PinChannelCommand,
94
+ PinMessageCommand,
84
95
  ScheduleExternalFlagAdjustmentJobCommand,
96
+ SendActionTriggerResultCommand,
85
97
  SendGiphyCommand,
86
98
  SendMessageCommand,
87
99
  SendMessageReactionCommand,
@@ -89,7 +101,9 @@ const commands = {
89
101
  SendTypingStopCommand,
90
102
  ShowChannelCommand,
91
103
  TagChannelCommand,
104
+ TriggerMessageActionCommand,
92
105
  UnpinChannelCommand,
106
+ UnpinMessageCommand,
93
107
  UntagChannelCommand,
94
108
  UpdateChannelCommand,
95
109
  UpdateInboxTagCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CreateKiteChannelCommand, se_CreateKiteChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class CreateKiteChannelCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "CreateKiteChannel", {})
12
+ .n("ConversationsClient", "CreateKiteChannelCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateKiteChannelCommand)
15
+ .de(de_CreateKiteChannelCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetActionTriggerResultCommand, se_GetActionTriggerResultCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetActionTriggerResultCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetActionTriggerResult", {})
12
+ .n("ConversationsClient", "GetActionTriggerResultCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetActionTriggerResultCommand)
15
+ .de(de_GetActionTriggerResultCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListPinnedMessagesCommand, se_ListPinnedMessagesCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ListPinnedMessagesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "ListPinnedMessages", {})
12
+ .n("ConversationsClient", "ListPinnedMessagesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListPinnedMessagesCommand)
15
+ .de(de_ListPinnedMessagesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PinMessageCommand, se_PinMessageCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class PinMessageCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "PinMessage", {})
12
+ .n("ConversationsClient", "PinMessageCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PinMessageCommand)
15
+ .de(de_PinMessageCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SendActionTriggerResultCommand, se_SendActionTriggerResultCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class SendActionTriggerResultCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "SendActionTriggerResult", {})
12
+ .n("ConversationsClient", "SendActionTriggerResultCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SendActionTriggerResultCommand)
15
+ .de(de_SendActionTriggerResultCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_TriggerMessageActionCommand, se_TriggerMessageActionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class TriggerMessageActionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "TriggerMessageAction", {})
12
+ .n("ConversationsClient", "TriggerMessageActionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_TriggerMessageActionCommand)
15
+ .de(de_TriggerMessageActionCommand)
16
+ .build() {
17
+ }