@wildix/xbees-conversations-client 1.0.65 → 1.1.0

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 (42) hide show
  1. package/dist-cjs/Conversations.js +0 -12
  2. package/dist-cjs/commands/index.js +0 -6
  3. package/dist-cjs/models/models_0.js +30 -105
  4. package/dist-cjs/protocols/Aws_restJson1.js +2 -230
  5. package/dist-es/Conversations.js +0 -12
  6. package/dist-es/commands/index.js +0 -6
  7. package/dist-es/models/models_0.js +28 -101
  8. package/dist-es/protocols/Aws_restJson1.js +1 -216
  9. package/dist-types/Conversations.d.ts +0 -42
  10. package/dist-types/ConversationsClient.d.ts +2 -8
  11. package/dist-types/commands/DescribeEventCommand.d.ts +19 -274
  12. package/dist-types/commands/GetMessageCommand.d.ts +23 -84
  13. package/dist-types/commands/ListMessagesCommand.d.ts +23 -84
  14. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +47 -173
  15. package/dist-types/commands/SendGiphyCommand.d.ts +23 -84
  16. package/dist-types/commands/SendMessageCommand.d.ts +46 -168
  17. package/dist-types/commands/UpdateMessageCommand.d.ts +46 -169
  18. package/dist-types/commands/index.d.ts +0 -6
  19. package/dist-types/models/models_0.d.ts +91 -604
  20. package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
  21. package/dist-types/runtimeConfig.browser.d.ts +0 -1
  22. package/dist-types/runtimeConfig.d.ts +0 -1
  23. package/dist-types/runtimeConfig.native.d.ts +0 -1
  24. package/package.json +1 -1
  25. package/dist-cjs/commands/GetActionTriggerResultCommand.js +0 -21
  26. package/dist-cjs/commands/ListPinnedMessagesCommand.js +0 -21
  27. package/dist-cjs/commands/PinMessageCommand.js +0 -21
  28. package/dist-cjs/commands/SendActionTriggerResultCommand.js +0 -21
  29. package/dist-cjs/commands/TriggerMessageActionCommand.js +0 -21
  30. package/dist-cjs/commands/UnpinMessageCommand.js +0 -21
  31. package/dist-es/commands/GetActionTriggerResultCommand.js +0 -17
  32. package/dist-es/commands/ListPinnedMessagesCommand.js +0 -17
  33. package/dist-es/commands/PinMessageCommand.js +0 -17
  34. package/dist-es/commands/SendActionTriggerResultCommand.js +0 -17
  35. package/dist-es/commands/TriggerMessageActionCommand.js +0 -17
  36. package/dist-es/commands/UnpinMessageCommand.js +0 -17
  37. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +0 -70
  38. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +0 -261
  39. package/dist-types/commands/PinMessageCommand.d.ts +0 -73
  40. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +0 -68
  41. package/dist-types/commands/TriggerMessageActionCommand.d.ts +0 -75
  42. package/dist-types/commands/UnpinMessageCommand.d.ts +0 -71
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateChannelCommand = 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_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
- exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = 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_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = void 0;
5
- exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = 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;
6
5
  const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
7
6
  const models_0_1 = require("../models/models_0");
8
7
  const core_1 = require("@smithy/core");
@@ -197,22 +196,6 @@ const se_DescribeEventCommand = async (input, context) => {
197
196
  return b.build();
198
197
  };
199
198
  exports.se_DescribeEventCommand = se_DescribeEventCommand;
200
- const se_GetActionTriggerResultCommand = async (input, context) => {
201
- const b = (0, core_1.requestBuilder)(input, context);
202
- const headers = {};
203
- b.bp("/v2/conversations/triggers/{triggerId}/result");
204
- b.p('triggerId', () => input.triggerId, '{triggerId}', false);
205
- const query = (0, smithy_client_1.map)({
206
- [_u]: [, input[_uI]],
207
- });
208
- let body;
209
- b.m("GET")
210
- .h(headers)
211
- .q(query)
212
- .b(body);
213
- return b.build();
214
- };
215
- exports.se_GetActionTriggerResultCommand = se_GetActionTriggerResultCommand;
216
199
  const se_GetChannelCommand = async (input, context) => {
217
200
  const b = (0, core_1.requestBuilder)(input, context);
218
201
  const headers = {};
@@ -518,23 +501,6 @@ const se_ListMessagesCommand = async (input, context) => {
518
501
  return b.build();
519
502
  };
520
503
  exports.se_ListMessagesCommand = se_ListMessagesCommand;
521
- const se_ListPinnedMessagesCommand = async (input, context) => {
522
- const b = (0, core_1.requestBuilder)(input, context);
523
- const headers = {};
524
- b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
525
- b.p('channelId', () => input.channelId, '{channelId}', false);
526
- const query = (0, smithy_client_1.map)({
527
- [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
528
- [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
529
- });
530
- let body;
531
- b.m("GET")
532
- .h(headers)
533
- .q(query)
534
- .b(body);
535
- return b.build();
536
- };
537
- exports.se_ListPinnedMessagesCommand = se_ListPinnedMessagesCommand;
538
504
  const se_MarkReadCommand = async (input, context) => {
539
505
  const b = (0, core_1.requestBuilder)(input, context);
540
506
  const headers = {};
@@ -610,7 +576,6 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
610
576
  let body;
611
577
  body = JSON.stringify((0, smithy_client_1.take)(input, {
612
578
  'set': _ => (0, smithy_client_1._json)(_),
613
- 'silent': [],
614
579
  'unset': _ => (0, smithy_client_1._json)(_),
615
580
  }));
616
581
  b.m("PATCH")
@@ -637,30 +602,6 @@ const se_PinChannelCommand = async (input, context) => {
637
602
  return b.build();
638
603
  };
639
604
  exports.se_PinChannelCommand = se_PinChannelCommand;
640
- const se_PinMessageCommand = async (input, context) => {
641
- const b = (0, core_1.requestBuilder)(input, context);
642
- const headers = {
643
- 'content-type': 'application/json',
644
- };
645
- b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
646
- b.p('channelId', () => input.channelId, '{channelId}', false);
647
- b.p('messageId', () => input.messageId, '{messageId}', false);
648
- const query = (0, smithy_client_1.map)({
649
- [_u]: [, input[_uI]],
650
- });
651
- let body;
652
- body = JSON.stringify((0, smithy_client_1.take)(input, {
653
- 'expiresAfter': [],
654
- 'expiresTill': [],
655
- 'silent': [],
656
- }));
657
- b.m("PUT")
658
- .h(headers)
659
- .q(query)
660
- .b(body);
661
- return b.build();
662
- };
663
- exports.se_PinMessageCommand = se_PinMessageCommand;
664
605
  const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
665
606
  const b = (0, core_1.requestBuilder)(input, context);
666
607
  const headers = {
@@ -677,24 +618,6 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
677
618
  return b.build();
678
619
  };
679
620
  exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
680
- const se_SendActionTriggerResultCommand = async (input, context) => {
681
- const b = (0, core_1.requestBuilder)(input, context);
682
- const headers = {
683
- 'content-type': 'application/json',
684
- };
685
- b.bp("/v2/conversations/triggers/{triggerId}/result");
686
- b.p('triggerId', () => input.triggerId, '{triggerId}', false);
687
- let body;
688
- body = JSON.stringify((0, smithy_client_1.take)(input, {
689
- 'result': _ => (0, smithy_client_1._json)(_),
690
- 'status': [],
691
- }));
692
- b.m("POST")
693
- .h(headers)
694
- .b(body);
695
- return b.build();
696
- };
697
- exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
698
621
  const se_SendGiphyCommand = async (input, context) => {
699
622
  const b = (0, core_1.requestBuilder)(input, context);
700
623
  const headers = {
@@ -730,7 +653,6 @@ const se_SendMessageCommand = async (input, context) => {
730
653
  let body;
731
654
  body = JSON.stringify((0, smithy_client_1.take)(input, {
732
655
  'attachments': _ => (0, smithy_client_1._json)(_),
733
- 'elements': _ => (0, smithy_client_1._json)(_),
734
656
  'forward': _ => (0, smithy_client_1._json)(_),
735
657
  'mentions': _ => (0, smithy_client_1._json)(_),
736
658
  'messageId': [],
@@ -832,24 +754,6 @@ const se_TagChannelCommand = async (input, context) => {
832
754
  return b.build();
833
755
  };
834
756
  exports.se_TagChannelCommand = se_TagChannelCommand;
835
- const se_TriggerMessageActionCommand = async (input, context) => {
836
- const b = (0, core_1.requestBuilder)(input, context);
837
- const headers = {};
838
- b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
839
- b.p('channelId', () => input.channelId, '{channelId}', false);
840
- b.p('messageId', () => input.messageId, '{messageId}', false);
841
- b.p('actionId', () => input.actionId, '{actionId}', false);
842
- const query = (0, smithy_client_1.map)({
843
- [_u]: [, input[_uI]],
844
- });
845
- let body;
846
- b.m("POST")
847
- .h(headers)
848
- .q(query)
849
- .b(body);
850
- return b.build();
851
- };
852
- exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
853
757
  const se_UnpinChannelCommand = async (input, context) => {
854
758
  const b = (0, core_1.requestBuilder)(input, context);
855
759
  const headers = {};
@@ -866,24 +770,6 @@ const se_UnpinChannelCommand = async (input, context) => {
866
770
  return b.build();
867
771
  };
868
772
  exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
869
- const se_UnpinMessageCommand = async (input, context) => {
870
- const b = (0, core_1.requestBuilder)(input, context);
871
- const headers = {};
872
- b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
873
- b.p('channelId', () => input.channelId, '{channelId}', false);
874
- b.p('messageId', () => input.messageId, '{messageId}', false);
875
- const query = (0, smithy_client_1.map)({
876
- [_u]: [, input[_uI]],
877
- [_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
878
- });
879
- let body;
880
- b.m("DELETE")
881
- .h(headers)
882
- .q(query)
883
- .b(body);
884
- return b.build();
885
- };
886
- exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
887
773
  const se_UntagChannelCommand = async (input, context) => {
888
774
  const b = (0, core_1.requestBuilder)(input, context);
889
775
  const headers = {
@@ -967,11 +853,9 @@ const se_UpdateMessageCommand = async (input, context) => {
967
853
  let body;
968
854
  body = JSON.stringify((0, smithy_client_1.take)(input, {
969
855
  'attachments': _ => (0, smithy_client_1._json)(_),
970
- 'elements': _ => (0, smithy_client_1._json)(_),
971
856
  'forward': _ => (0, smithy_client_1._json)(_),
972
857
  'mentions': _ => (0, smithy_client_1._json)(_),
973
858
  'quote': _ => (0, smithy_client_1._json)(_),
974
- 'silent': [],
975
859
  'text': [],
976
860
  }));
977
861
  b.m("PUT")
@@ -1129,7 +1013,6 @@ const de_DescribeEventCommand = async (output, context) => {
1129
1013
  });
1130
1014
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1131
1015
  const doc = (0, smithy_client_1.take)(data, {
1132
- 'WebhookChatActionTriggeredEvent': smithy_client_1._json,
1133
1016
  'WebhookChatChannelCreatedEvent': smithy_client_1._json,
1134
1017
  'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
1135
1018
  'WebhookChatMemberAddedEvent': smithy_client_1._json,
@@ -1144,22 +1027,6 @@ const de_DescribeEventCommand = async (output, context) => {
1144
1027
  return contents;
1145
1028
  };
1146
1029
  exports.de_DescribeEventCommand = de_DescribeEventCommand;
1147
- const de_GetActionTriggerResultCommand = async (output, context) => {
1148
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1149
- return de_CommandError(output, context);
1150
- }
1151
- const contents = (0, smithy_client_1.map)({
1152
- $metadata: deserializeMetadata(output),
1153
- });
1154
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1155
- const doc = (0, smithy_client_1.take)(data, {
1156
- 'result': smithy_client_1._json,
1157
- 'status': smithy_client_1.expectString,
1158
- });
1159
- Object.assign(contents, doc);
1160
- return contents;
1161
- };
1162
- exports.de_GetActionTriggerResultCommand = de_GetActionTriggerResultCommand;
1163
1030
  const de_GetChannelCommand = async (output, context) => {
1164
1031
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
1032
  return de_CommandError(output, context);
@@ -1425,21 +1292,6 @@ const de_ListMessagesCommand = async (output, context) => {
1425
1292
  return contents;
1426
1293
  };
1427
1294
  exports.de_ListMessagesCommand = de_ListMessagesCommand;
1428
- const de_ListPinnedMessagesCommand = async (output, context) => {
1429
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1430
- return de_CommandError(output, context);
1431
- }
1432
- const contents = (0, smithy_client_1.map)({
1433
- $metadata: deserializeMetadata(output),
1434
- });
1435
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1436
- const doc = (0, smithy_client_1.take)(data, {
1437
- 'messages': smithy_client_1._json,
1438
- });
1439
- Object.assign(contents, doc);
1440
- return contents;
1441
- };
1442
- exports.de_ListPinnedMessagesCommand = de_ListPinnedMessagesCommand;
1443
1295
  const de_MarkReadCommand = async (output, context) => {
1444
1296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1445
1297
  return de_CommandError(output, context);
@@ -1503,17 +1355,6 @@ const de_PinChannelCommand = async (output, context) => {
1503
1355
  return contents;
1504
1356
  };
1505
1357
  exports.de_PinChannelCommand = de_PinChannelCommand;
1506
- const de_PinMessageCommand = async (output, context) => {
1507
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
- return de_CommandError(output, context);
1509
- }
1510
- const contents = (0, smithy_client_1.map)({
1511
- $metadata: deserializeMetadata(output),
1512
- });
1513
- await (0, smithy_client_1.collectBody)(output.body, context);
1514
- return contents;
1515
- };
1516
- exports.de_PinMessageCommand = de_PinMessageCommand;
1517
1358
  const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1518
1359
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1519
1360
  return de_CommandError(output, context);
@@ -1525,17 +1366,6 @@ const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1525
1366
  return contents;
1526
1367
  };
1527
1368
  exports.de_ScheduleExternalFlagAdjustmentJobCommand = de_ScheduleExternalFlagAdjustmentJobCommand;
1528
- const de_SendActionTriggerResultCommand = async (output, context) => {
1529
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1530
- return de_CommandError(output, context);
1531
- }
1532
- const contents = (0, smithy_client_1.map)({
1533
- $metadata: deserializeMetadata(output),
1534
- });
1535
- await (0, smithy_client_1.collectBody)(output.body, context);
1536
- return contents;
1537
- };
1538
- exports.de_SendActionTriggerResultCommand = de_SendActionTriggerResultCommand;
1539
1369
  const de_SendGiphyCommand = async (output, context) => {
1540
1370
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1541
1371
  return de_CommandError(output, context);
@@ -1621,21 +1451,6 @@ const de_TagChannelCommand = async (output, context) => {
1621
1451
  return contents;
1622
1452
  };
1623
1453
  exports.de_TagChannelCommand = de_TagChannelCommand;
1624
- const de_TriggerMessageActionCommand = async (output, context) => {
1625
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1626
- return de_CommandError(output, context);
1627
- }
1628
- const contents = (0, smithy_client_1.map)({
1629
- $metadata: deserializeMetadata(output),
1630
- });
1631
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1632
- const doc = (0, smithy_client_1.take)(data, {
1633
- 'triggerId': smithy_client_1.expectString,
1634
- });
1635
- Object.assign(contents, doc);
1636
- return contents;
1637
- };
1638
- exports.de_TriggerMessageActionCommand = de_TriggerMessageActionCommand;
1639
1454
  const de_UnpinChannelCommand = async (output, context) => {
1640
1455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1641
1456
  return de_CommandError(output, context);
@@ -1647,17 +1462,6 @@ const de_UnpinChannelCommand = async (output, context) => {
1647
1462
  return contents;
1648
1463
  };
1649
1464
  exports.de_UnpinChannelCommand = de_UnpinChannelCommand;
1650
- const de_UnpinMessageCommand = async (output, context) => {
1651
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1652
- return de_CommandError(output, context);
1653
- }
1654
- const contents = (0, smithy_client_1.map)({
1655
- $metadata: deserializeMetadata(output),
1656
- });
1657
- await (0, smithy_client_1.collectBody)(output.body, context);
1658
- return contents;
1659
- };
1660
- exports.de_UnpinMessageCommand = de_UnpinMessageCommand;
1661
1465
  const de_UntagChannelCommand = async (output, context) => {
1662
1466
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1663
1467
  return de_CommandError(output, context);
@@ -1764,9 +1568,6 @@ const de_CommandError = async (output, context) => {
1764
1568
  case "MessageNotFoundException":
1765
1569
  case "wildix.xbees.conversations#MessageNotFoundException":
1766
1570
  throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
1767
- case "TriggerNotFoundException":
1768
- case "wildix.xbees.conversations#TriggerNotFoundException":
1769
- throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
1770
1571
  case "FileNotFoundException":
1771
1572
  case "wildix.xbees.conversations#FileNotFoundException":
1772
1573
  throw await de_FileNotFoundExceptionRes(parsedOutput, context);
@@ -1785,9 +1586,6 @@ const de_CommandError = async (output, context) => {
1785
1586
  case "TaggedChannelsLimitReachedException":
1786
1587
  case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
1787
1588
  throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
1788
- case "MessageActionNotFoundException":
1789
- case "wildix.xbees.conversations#MessageActionNotFoundException":
1790
- throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
1791
1589
  default:
1792
1590
  const parsedBody = parsedOutput.body;
1793
1591
  return throwDefaultError({
@@ -1933,19 +1731,6 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
1933
1731
  });
1934
1732
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1935
1733
  };
1936
- const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
1937
- const contents = (0, smithy_client_1.map)({});
1938
- const data = parsedOutput.body;
1939
- const doc = (0, smithy_client_1.take)(data, {
1940
- 'message': smithy_client_1.expectString,
1941
- });
1942
- Object.assign(contents, doc);
1943
- const exception = new models_0_1.MessageActionNotFoundException({
1944
- $metadata: deserializeMetadata(parsedOutput),
1945
- ...contents
1946
- });
1947
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1948
- };
1949
1734
  const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
1950
1735
  const contents = (0, smithy_client_1.map)({});
1951
1736
  const data = parsedOutput.body;
@@ -2011,19 +1796,6 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
2011
1796
  });
2012
1797
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2013
1798
  };
2014
- const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
2015
- const contents = (0, smithy_client_1.map)({});
2016
- const data = parsedOutput.body;
2017
- const doc = (0, smithy_client_1.take)(data, {
2018
- 'message': smithy_client_1.expectString,
2019
- });
2020
- Object.assign(contents, doc);
2021
- const exception = new models_0_1.TriggerNotFoundException({
2022
- $metadata: deserializeMetadata(parsedOutput),
2023
- ...contents
2024
- });
2025
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2026
- };
2027
1799
  const deserializeMetadata = (output) => ({
2028
1800
  httpStatusCode: output.statusCode,
2029
1801
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -9,7 +9,6 @@ import { DeleteInboxTagCommand, } from "./commands/DeleteInboxTagCommand";
9
9
  import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
10
10
  import { DeleteMessageReactionCommand, } from "./commands/DeleteMessageReactionCommand";
11
11
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
12
- import { GetActionTriggerResultCommand, } from "./commands/GetActionTriggerResultCommand";
13
12
  import { GetChannelCommand, } from "./commands/GetChannelCommand";
14
13
  import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
15
14
  import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
@@ -28,15 +27,12 @@ import { ListInboxTaggedChannelsCommand, } from "./commands/ListInboxTaggedChann
28
27
  import { ListInboxTagsCommand, } from "./commands/ListInboxTagsCommand";
29
28
  import { ListMessageReactionsCommand, } from "./commands/ListMessageReactionsCommand";
30
29
  import { ListMessagesCommand, } from "./commands/ListMessagesCommand";
31
- import { ListPinnedMessagesCommand, } from "./commands/ListPinnedMessagesCommand";
32
30
  import { MarkReadCommand, } from "./commands/MarkReadCommand";
33
31
  import { MarkUnreadCommand, } from "./commands/MarkUnreadCommand";
34
32
  import { PartialUpdateChannelCommand, } from "./commands/PartialUpdateChannelCommand";
35
33
  import { PartialUpdateMessageCommand, } from "./commands/PartialUpdateMessageCommand";
36
34
  import { PinChannelCommand, } from "./commands/PinChannelCommand";
37
- import { PinMessageCommand, } from "./commands/PinMessageCommand";
38
35
  import { ScheduleExternalFlagAdjustmentJobCommand, } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
39
- import { SendActionTriggerResultCommand, } from "./commands/SendActionTriggerResultCommand";
40
36
  import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
41
37
  import { SendMessageCommand, } from "./commands/SendMessageCommand";
42
38
  import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
@@ -44,9 +40,7 @@ import { SendTypingStartCommand, } from "./commands/SendTypingStartCommand";
44
40
  import { SendTypingStopCommand, } from "./commands/SendTypingStopCommand";
45
41
  import { ShowChannelCommand, } from "./commands/ShowChannelCommand";
46
42
  import { TagChannelCommand, } from "./commands/TagChannelCommand";
47
- import { TriggerMessageActionCommand, } from "./commands/TriggerMessageActionCommand";
48
43
  import { UnpinChannelCommand, } from "./commands/UnpinChannelCommand";
49
- import { UnpinMessageCommand, } from "./commands/UnpinMessageCommand";
50
44
  import { UntagChannelCommand, } from "./commands/UntagChannelCommand";
51
45
  import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
52
46
  import { UpdateInboxTagCommand, } from "./commands/UpdateInboxTagCommand";
@@ -64,7 +58,6 @@ const commands = {
64
58
  DeleteMessageCommand,
65
59
  DeleteMessageReactionCommand,
66
60
  DescribeEventCommand,
67
- GetActionTriggerResultCommand,
68
61
  GetChannelCommand,
69
62
  GetChannelMemberCommand,
70
63
  GetDirectChannelIdCommand,
@@ -83,15 +76,12 @@ const commands = {
83
76
  ListInboxTagsCommand,
84
77
  ListMessageReactionsCommand,
85
78
  ListMessagesCommand,
86
- ListPinnedMessagesCommand,
87
79
  MarkReadCommand,
88
80
  MarkUnreadCommand,
89
81
  PartialUpdateChannelCommand,
90
82
  PartialUpdateMessageCommand,
91
83
  PinChannelCommand,
92
- PinMessageCommand,
93
84
  ScheduleExternalFlagAdjustmentJobCommand,
94
- SendActionTriggerResultCommand,
95
85
  SendGiphyCommand,
96
86
  SendMessageCommand,
97
87
  SendMessageReactionCommand,
@@ -99,9 +89,7 @@ const commands = {
99
89
  SendTypingStopCommand,
100
90
  ShowChannelCommand,
101
91
  TagChannelCommand,
102
- TriggerMessageActionCommand,
103
92
  UnpinChannelCommand,
104
- UnpinMessageCommand,
105
93
  UntagChannelCommand,
106
94
  UpdateChannelCommand,
107
95
  UpdateInboxTagCommand,
@@ -8,7 +8,6 @@ export * from "./DeleteInboxTagCommand";
8
8
  export * from "./DeleteMessageCommand";
9
9
  export * from "./DeleteMessageReactionCommand";
10
10
  export * from "./DescribeEventCommand";
11
- export * from "./GetActionTriggerResultCommand";
12
11
  export * from "./GetChannelCommand";
13
12
  export * from "./GetChannelMemberCommand";
14
13
  export * from "./GetDirectChannelIdCommand";
@@ -27,15 +26,12 @@ export * from "./ListInboxTaggedChannelsCommand";
27
26
  export * from "./ListInboxTagsCommand";
28
27
  export * from "./ListMessageReactionsCommand";
29
28
  export * from "./ListMessagesCommand";
30
- export * from "./ListPinnedMessagesCommand";
31
29
  export * from "./MarkReadCommand";
32
30
  export * from "./MarkUnreadCommand";
33
31
  export * from "./PartialUpdateChannelCommand";
34
32
  export * from "./PartialUpdateMessageCommand";
35
33
  export * from "./PinChannelCommand";
36
- export * from "./PinMessageCommand";
37
34
  export * from "./ScheduleExternalFlagAdjustmentJobCommand";
38
- export * from "./SendActionTriggerResultCommand";
39
35
  export * from "./SendGiphyCommand";
40
36
  export * from "./SendMessageCommand";
41
37
  export * from "./SendMessageReactionCommand";
@@ -43,9 +39,7 @@ export * from "./SendTypingStartCommand";
43
39
  export * from "./SendTypingStopCommand";
44
40
  export * from "./ShowChannelCommand";
45
41
  export * from "./TagChannelCommand";
46
- export * from "./TriggerMessageActionCommand";
47
42
  export * from "./UnpinChannelCommand";
48
- export * from "./UnpinMessageCommand";
49
43
  export * from "./UntagChannelCommand";
50
44
  export * from "./UpdateChannelCommand";
51
45
  export * from "./UpdateInboxTagCommand";
@@ -39,38 +39,27 @@ export class RateLimitExceededException extends __BaseException {
39
39
  this.retryAfter = opts.retryAfter;
40
40
  }
41
41
  }
42
+ export const ConversationFileCategory = {
43
+ GENERAL: "channels",
44
+ RECORDING: "recordings",
45
+ WIZY_RECORDING: "wizyconfRecordings",
46
+ };
47
+ export class FileNotFoundException extends __BaseException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "FileNotFoundException",
51
+ $fault: "client",
52
+ ...opts
53
+ });
54
+ this.name = "FileNotFoundException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, FileNotFoundException.prototype);
57
+ }
58
+ }
42
59
  export const ChannelType = {
43
60
  DIRECT: "direct",
44
61
  GROUP: "group",
45
62
  };
46
- export var ButtonHandler;
47
- (function (ButtonHandler) {
48
- ButtonHandler.visit = (value, visitor) => {
49
- if (value.link !== undefined)
50
- return visitor.link(value.link);
51
- if (value.reply !== undefined)
52
- return visitor.reply(value.reply);
53
- if (value.action !== undefined)
54
- return visitor.action(value.action);
55
- return visitor._(value.$unknown[0], value.$unknown[1]);
56
- };
57
- })(ButtonHandler || (ButtonHandler = {}));
58
- export const ButtonVariant = {
59
- CONTAINED: "contained",
60
- OUTLINED: "outlined",
61
- };
62
- export var ActionElement;
63
- (function (ActionElement) {
64
- ActionElement.visit = (value, visitor) => {
65
- if (value.button !== undefined)
66
- return visitor.button(value.button);
67
- return visitor._(value.$unknown[0], value.$unknown[1]);
68
- };
69
- })(ActionElement || (ActionElement = {}));
70
- export const ActionTriggerStatus = {
71
- COMPLETED: "completed",
72
- PENDING: "pending",
73
- };
74
63
  export const ChannelMemberRole = {
75
64
  MEMBER: "member",
76
65
  SUPERVISOR: "supervisor",
@@ -127,11 +116,6 @@ export class ChannelAlreadyExistException extends __BaseException {
127
116
  Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
128
117
  }
129
118
  }
130
- export const ConversationFileCategory = {
131
- GENERAL: "channels",
132
- RECORDING: "recordings",
133
- WIZY_RECORDING: "wizyconfRecordings",
134
- };
135
119
  export class TagsLimitReachedException extends __BaseException {
136
120
  constructor(opts) {
137
121
  super({
@@ -179,24 +163,17 @@ export const ReactionType = {
179
163
  THUMBSUP: "thumbsup",
180
164
  WHITE_CHECK_MARK: "white_check_mark",
181
165
  };
182
- export var Element;
183
- (function (Element) {
184
- Element.visit = (value, visitor) => {
185
- if (value.text !== undefined)
186
- return visitor.text(value.text);
187
- if (value.link !== undefined)
188
- return visitor.link(value.link);
189
- if (value.email !== undefined)
190
- return visitor.email(value.email);
191
- if (value.phone !== undefined)
192
- return visitor.phone(value.phone);
193
- if (value.mention !== undefined)
194
- return visitor.mention(value.mention);
195
- if (value.actions !== undefined)
196
- return visitor.actions(value.actions);
197
- return visitor._(value.$unknown[0], value.$unknown[1]);
198
- };
199
- })(Element || (Element = {}));
166
+ export const WebhookEventType = {
167
+ CHANNEL_CREATED: "chat:channel:created",
168
+ CHANNEL_UPDATED: "chat:channel:updated",
169
+ MEMBER_ADDED: "chat:member:added",
170
+ MEMBER_REMOVED: "chat:member:removed",
171
+ MESSAGE_DELETED: "chat:message:deleted",
172
+ MESSAGE_NEW: "chat:message:new",
173
+ MESSAGE_UPDATED: "chat:message:updated",
174
+ REACTION_DELETED: "chat:reaction:deleted",
175
+ REACTION_NEW: "chat:reaction:new",
176
+ };
200
177
  export const MessageSmsStatus = {
201
178
  DELIVERED: "delivered",
202
179
  ERROR: "error",
@@ -213,42 +190,6 @@ export const MessageWhatsAppStatus = {
213
190
  SENT: "sent",
214
191
  TRYING: "trying",
215
192
  };
216
- export const WebhookEventType = {
217
- ACTION_TRIGGERED: "chat:action:triggered",
218
- CHANNEL_CREATED: "chat:channel:created",
219
- CHANNEL_UPDATED: "chat:channel:updated",
220
- MEMBER_ADDED: "chat:member:added",
221
- MEMBER_REMOVED: "chat:member:removed",
222
- MESSAGE_DELETED: "chat:message:deleted",
223
- MESSAGE_NEW: "chat:message:new",
224
- MESSAGE_UPDATED: "chat:message:updated",
225
- REACTION_DELETED: "chat:reaction:deleted",
226
- REACTION_NEW: "chat:reaction:new",
227
- };
228
- export class TriggerNotFoundException extends __BaseException {
229
- constructor(opts) {
230
- super({
231
- name: "TriggerNotFoundException",
232
- $fault: "client",
233
- ...opts
234
- });
235
- this.name = "TriggerNotFoundException";
236
- this.$fault = "client";
237
- Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
238
- }
239
- }
240
- export class FileNotFoundException extends __BaseException {
241
- constructor(opts) {
242
- super({
243
- name: "FileNotFoundException",
244
- $fault: "client",
245
- ...opts
246
- });
247
- this.name = "FileNotFoundException";
248
- this.$fault = "client";
249
- Object.setPrototypeOf(this, FileNotFoundException.prototype);
250
- }
251
- }
252
193
  export class TagNotFoundException extends __BaseException {
253
194
  constructor(opts) {
254
195
  super({
@@ -283,9 +224,7 @@ export const GroupChannelUnsetOptions = {
283
224
  };
284
225
  export const MessageUnsetFields = {
285
226
  ATTACHMENTS: "attachments",
286
- ELEMENTS: "elements",
287
227
  FORWARD: "forward",
288
- MENTIONS: "mentions",
289
228
  QUOTE: "quote",
290
229
  TEXT: "text",
291
230
  };
@@ -325,15 +264,3 @@ export class TaggedChannelsLimitReachedException extends __BaseException {
325
264
  Object.setPrototypeOf(this, TaggedChannelsLimitReachedException.prototype);
326
265
  }
327
266
  }
328
- export class MessageActionNotFoundException extends __BaseException {
329
- constructor(opts) {
330
- super({
331
- name: "MessageActionNotFoundException",
332
- $fault: "client",
333
- ...opts
334
- });
335
- this.name = "MessageActionNotFoundException";
336
- this.$fault = "client";
337
- Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
338
- }
339
- }