@wildix/xbees-conversations-client 1.1.14 → 1.1.16

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 (37) hide show
  1. package/dist-cjs/Conversations.js +16 -0
  2. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  4. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  5. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  6. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  7. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  8. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  9. package/dist-cjs/commands/SendTemplateMessageCommand.js +21 -0
  10. package/dist-cjs/commands/index.js +8 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +292 -3
  12. package/dist-es/Conversations.js +16 -0
  13. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  14. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  15. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  16. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  17. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  18. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  19. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  20. package/dist-es/commands/SendTemplateMessageCommand.js +17 -0
  21. package/dist-es/commands/index.js +8 -0
  22. package/dist-es/protocols/Aws_restJson1.js +273 -0
  23. package/dist-types/Conversations.d.ts +62 -0
  24. package/dist-types/ConversationsClient.d.ts +10 -2
  25. package/dist-types/commands/AssignChannelCommand.d.ts +4 -1
  26. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  27. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +151 -0
  28. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  29. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +81 -0
  30. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +81 -0
  31. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +81 -0
  32. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +103 -0
  33. package/dist-types/commands/SendTemplateMessageCommand.d.ts +363 -0
  34. package/dist-types/commands/index.d.ts +8 -0
  35. package/dist-types/models/models_0.d.ts +267 -0
  36. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  37. package/package.json +5 -5
@@ -22,13 +22,20 @@ const GetFilePresignedDownloadUrlCommand_1 = require("./commands/GetFilePresigne
22
22
  const GetInboxStateCommand_1 = require("./commands/GetInboxStateCommand");
23
23
  const GetMessageCommand_1 = require("./commands/GetMessageCommand");
24
24
  const GetOrCreateDirectChannelCommand_1 = require("./commands/GetOrCreateDirectChannelCommand");
25
+ const GetOrCreateSmsChannelCommand_1 = require("./commands/GetOrCreateSmsChannelCommand");
26
+ const GetOrCreateTelephonyChannelCommand_1 = require("./commands/GetOrCreateTelephonyChannelCommand");
27
+ const GetOrCreateWhatsAppChannelCommand_1 = require("./commands/GetOrCreateWhatsAppChannelCommand");
28
+ const GetSmsChannelIdCommand_1 = require("./commands/GetSmsChannelIdCommand");
29
+ const GetTelephonyChannelIdCommand_1 = require("./commands/GetTelephonyChannelIdCommand");
25
30
  const GetTokenCommand_1 = require("./commands/GetTokenCommand");
26
31
  const GetUploadedFileInfoCommand_1 = require("./commands/GetUploadedFileInfoCommand");
32
+ const GetWhatsAppChannelIdCommand_1 = require("./commands/GetWhatsAppChannelIdCommand");
27
33
  const HideChannelCommand_1 = require("./commands/HideChannelCommand");
28
34
  const InviteCommand_1 = require("./commands/InviteCommand");
29
35
  const JoinChannelCommand_1 = require("./commands/JoinChannelCommand");
30
36
  const LeaveChannelCommand_1 = require("./commands/LeaveChannelCommand");
31
37
  const ListChannelMembersCommand_1 = require("./commands/ListChannelMembersCommand");
38
+ const ListChannelMembersReadStatusCommand_1 = require("./commands/ListChannelMembersReadStatusCommand");
32
39
  const ListChannelsCommand_1 = require("./commands/ListChannelsCommand");
33
40
  const ListInboxTaggedChannelsCommand_1 = require("./commands/ListInboxTaggedChannelsCommand");
34
41
  const ListInboxTagsCommand_1 = require("./commands/ListInboxTagsCommand");
@@ -47,6 +54,7 @@ const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerRe
47
54
  const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
48
55
  const SendMessageCommand_1 = require("./commands/SendMessageCommand");
49
56
  const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
57
+ const SendTemplateMessageCommand_1 = require("./commands/SendTemplateMessageCommand");
50
58
  const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
51
59
  const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
52
60
  const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
@@ -81,13 +89,20 @@ const commands = {
81
89
  GetInboxStateCommand: GetInboxStateCommand_1.GetInboxStateCommand,
82
90
  GetMessageCommand: GetMessageCommand_1.GetMessageCommand,
83
91
  GetOrCreateDirectChannelCommand: GetOrCreateDirectChannelCommand_1.GetOrCreateDirectChannelCommand,
92
+ GetOrCreateSmsChannelCommand: GetOrCreateSmsChannelCommand_1.GetOrCreateSmsChannelCommand,
93
+ GetOrCreateTelephonyChannelCommand: GetOrCreateTelephonyChannelCommand_1.GetOrCreateTelephonyChannelCommand,
94
+ GetOrCreateWhatsAppChannelCommand: GetOrCreateWhatsAppChannelCommand_1.GetOrCreateWhatsAppChannelCommand,
95
+ GetSmsChannelIdCommand: GetSmsChannelIdCommand_1.GetSmsChannelIdCommand,
96
+ GetTelephonyChannelIdCommand: GetTelephonyChannelIdCommand_1.GetTelephonyChannelIdCommand,
84
97
  GetTokenCommand: GetTokenCommand_1.GetTokenCommand,
85
98
  GetUploadedFileInfoCommand: GetUploadedFileInfoCommand_1.GetUploadedFileInfoCommand,
99
+ GetWhatsAppChannelIdCommand: GetWhatsAppChannelIdCommand_1.GetWhatsAppChannelIdCommand,
86
100
  HideChannelCommand: HideChannelCommand_1.HideChannelCommand,
87
101
  InviteCommand: InviteCommand_1.InviteCommand,
88
102
  JoinChannelCommand: JoinChannelCommand_1.JoinChannelCommand,
89
103
  LeaveChannelCommand: LeaveChannelCommand_1.LeaveChannelCommand,
90
104
  ListChannelMembersCommand: ListChannelMembersCommand_1.ListChannelMembersCommand,
105
+ ListChannelMembersReadStatusCommand: ListChannelMembersReadStatusCommand_1.ListChannelMembersReadStatusCommand,
91
106
  ListChannelsCommand: ListChannelsCommand_1.ListChannelsCommand,
92
107
  ListInboxTaggedChannelsCommand: ListInboxTaggedChannelsCommand_1.ListInboxTaggedChannelsCommand,
93
108
  ListInboxTagsCommand: ListInboxTagsCommand_1.ListInboxTagsCommand,
@@ -106,6 +121,7 @@ const commands = {
106
121
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
107
122
  SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
108
123
  SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
124
+ SendTemplateMessageCommand: SendTemplateMessageCommand_1.SendTemplateMessageCommand,
109
125
  SendTypingStartCommand: SendTypingStartCommand_1.SendTypingStartCommand,
110
126
  SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
111
127
  ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOrCreateSmsChannelCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOrCreateSmsChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetOrCreateSmsChannel", {})
15
+ .n("ConversationsClient", "GetOrCreateSmsChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOrCreateSmsChannelCommand)
18
+ .de(Aws_restJson1_1.de_GetOrCreateSmsChannelCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOrCreateSmsChannelCommand = GetOrCreateSmsChannelCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOrCreateTelephonyChannelCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOrCreateTelephonyChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetOrCreateTelephonyChannel", {})
15
+ .n("ConversationsClient", "GetOrCreateTelephonyChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOrCreateTelephonyChannelCommand)
18
+ .de(Aws_restJson1_1.de_GetOrCreateTelephonyChannelCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOrCreateTelephonyChannelCommand = GetOrCreateTelephonyChannelCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOrCreateWhatsAppChannelCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOrCreateWhatsAppChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetOrCreateWhatsAppChannel", {})
15
+ .n("ConversationsClient", "GetOrCreateWhatsAppChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOrCreateWhatsAppChannelCommand)
18
+ .de(Aws_restJson1_1.de_GetOrCreateWhatsAppChannelCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOrCreateWhatsAppChannelCommand = GetOrCreateWhatsAppChannelCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSmsChannelIdCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetSmsChannelIdCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetSmsChannelId", {})
15
+ .n("ConversationsClient", "GetSmsChannelIdCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetSmsChannelIdCommand)
18
+ .de(Aws_restJson1_1.de_GetSmsChannelIdCommand)
19
+ .build() {
20
+ }
21
+ exports.GetSmsChannelIdCommand = GetSmsChannelIdCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTelephonyChannelIdCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetTelephonyChannelIdCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetTelephonyChannelId", {})
15
+ .n("ConversationsClient", "GetTelephonyChannelIdCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetTelephonyChannelIdCommand)
18
+ .de(Aws_restJson1_1.de_GetTelephonyChannelIdCommand)
19
+ .build() {
20
+ }
21
+ exports.GetTelephonyChannelIdCommand = GetTelephonyChannelIdCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetWhatsAppChannelIdCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetWhatsAppChannelIdCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetWhatsAppChannelId", {})
15
+ .n("ConversationsClient", "GetWhatsAppChannelIdCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetWhatsAppChannelIdCommand)
18
+ .de(Aws_restJson1_1.de_GetWhatsAppChannelIdCommand)
19
+ .build() {
20
+ }
21
+ exports.GetWhatsAppChannelIdCommand = GetWhatsAppChannelIdCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListChannelMembersReadStatusCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListChannelMembersReadStatusCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "ListChannelMembersReadStatus", {})
15
+ .n("ConversationsClient", "ListChannelMembersReadStatusCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListChannelMembersReadStatusCommand)
18
+ .de(Aws_restJson1_1.de_ListChannelMembersReadStatusCommand)
19
+ .build() {
20
+ }
21
+ exports.ListChannelMembersReadStatusCommand = ListChannelMembersReadStatusCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendTemplateMessageCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class SendTemplateMessageCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "SendTemplateMessage", {})
15
+ .n("ConversationsClient", "SendTemplateMessageCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SendTemplateMessageCommand)
18
+ .de(Aws_restJson1_1.de_SendTemplateMessageCommand)
19
+ .build() {
20
+ }
21
+ exports.SendTemplateMessageCommand = SendTemplateMessageCommand;
@@ -21,13 +21,20 @@ tslib_1.__exportStar(require("./GetFilePresignedDownloadUrlCommand"), exports);
21
21
  tslib_1.__exportStar(require("./GetInboxStateCommand"), exports);
22
22
  tslib_1.__exportStar(require("./GetMessageCommand"), exports);
23
23
  tslib_1.__exportStar(require("./GetOrCreateDirectChannelCommand"), exports);
24
+ tslib_1.__exportStar(require("./GetOrCreateSmsChannelCommand"), exports);
25
+ tslib_1.__exportStar(require("./GetOrCreateTelephonyChannelCommand"), exports);
26
+ tslib_1.__exportStar(require("./GetOrCreateWhatsAppChannelCommand"), exports);
27
+ tslib_1.__exportStar(require("./GetSmsChannelIdCommand"), exports);
28
+ tslib_1.__exportStar(require("./GetTelephonyChannelIdCommand"), exports);
24
29
  tslib_1.__exportStar(require("./GetTokenCommand"), exports);
25
30
  tslib_1.__exportStar(require("./GetUploadedFileInfoCommand"), exports);
31
+ tslib_1.__exportStar(require("./GetWhatsAppChannelIdCommand"), exports);
26
32
  tslib_1.__exportStar(require("./HideChannelCommand"), exports);
27
33
  tslib_1.__exportStar(require("./InviteCommand"), exports);
28
34
  tslib_1.__exportStar(require("./JoinChannelCommand"), exports);
29
35
  tslib_1.__exportStar(require("./LeaveChannelCommand"), exports);
30
36
  tslib_1.__exportStar(require("./ListChannelMembersCommand"), exports);
37
+ tslib_1.__exportStar(require("./ListChannelMembersReadStatusCommand"), exports);
31
38
  tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
32
39
  tslib_1.__exportStar(require("./ListInboxTaggedChannelsCommand"), exports);
33
40
  tslib_1.__exportStar(require("./ListInboxTagsCommand"), exports);
@@ -46,6 +53,7 @@ tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
46
53
  tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
47
54
  tslib_1.__exportStar(require("./SendMessageCommand"), exports);
48
55
  tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
56
+ tslib_1.__exportStar(require("./SendTemplateMessageCommand"), exports);
49
57
  tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
50
58
  tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
51
59
  tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_QueryChannelsCommand = 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_GetTokenCommand = 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_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
- exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_QueryChannelsCommand = 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_GetTokenCommand = 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_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = 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 = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = void 0;
3
+ exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_QueryChannelsCommand = 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_ListChannelMembersReadStatusCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetWhatsAppChannelIdCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetTokenCommand = exports.se_GetTelephonyChannelIdCommand = exports.se_GetSmsChannelIdCommand = exports.se_GetOrCreateWhatsAppChannelCommand = exports.se_GetOrCreateTelephonyChannelCommand = exports.se_GetOrCreateSmsChannelCommand = 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_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ exports.de_ListChannelsCommand = exports.de_ListChannelMembersReadStatusCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetWhatsAppChannelIdCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetTokenCommand = exports.de_GetTelephonyChannelIdCommand = exports.de_GetSmsChannelIdCommand = exports.de_GetOrCreateWhatsAppChannelCommand = exports.de_GetOrCreateTelephonyChannelCommand = exports.de_GetOrCreateSmsChannelCommand = 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_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = 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_SendTemplateMessageCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = 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 = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendTemplateMessageCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_QueryChannelsCommand = 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 = void 0;
6
6
  const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const core_1 = require("@aws-sdk/core");
@@ -376,6 +376,116 @@ const se_GetOrCreateDirectChannelCommand = async (input, context) => {
376
376
  return b.build();
377
377
  };
378
378
  exports.se_GetOrCreateDirectChannelCommand = se_GetOrCreateDirectChannelCommand;
379
+ const se_GetOrCreateSmsChannelCommand = async (input, context) => {
380
+ const b = (0, core_2.requestBuilder)(input, context);
381
+ const headers = {
382
+ 'content-type': 'application/json',
383
+ };
384
+ b.bp("/v2/conversations/sms/get_or_create_channel");
385
+ const query = (0, smithy_client_1.map)({
386
+ [_u]: [, input[_uI]],
387
+ });
388
+ let body;
389
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
390
+ 'recipientId': [],
391
+ 'recipientNumber': [],
392
+ 'serviceUri': [],
393
+ }));
394
+ b.m("POST")
395
+ .h(headers)
396
+ .q(query)
397
+ .b(body);
398
+ return b.build();
399
+ };
400
+ exports.se_GetOrCreateSmsChannelCommand = se_GetOrCreateSmsChannelCommand;
401
+ const se_GetOrCreateTelephonyChannelCommand = async (input, context) => {
402
+ const b = (0, core_2.requestBuilder)(input, context);
403
+ const headers = {
404
+ 'content-type': 'application/json',
405
+ };
406
+ b.bp("/v2/conversations/telephony/get_or_create_channel");
407
+ const query = (0, smithy_client_1.map)({
408
+ [_u]: [, input[_uI]],
409
+ });
410
+ let body;
411
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
412
+ 'recipientId': [],
413
+ 'recipientNumber': [],
414
+ 'serviceUri': [],
415
+ }));
416
+ b.m("POST")
417
+ .h(headers)
418
+ .q(query)
419
+ .b(body);
420
+ return b.build();
421
+ };
422
+ exports.se_GetOrCreateTelephonyChannelCommand = se_GetOrCreateTelephonyChannelCommand;
423
+ const se_GetOrCreateWhatsAppChannelCommand = async (input, context) => {
424
+ const b = (0, core_2.requestBuilder)(input, context);
425
+ const headers = {
426
+ 'content-type': 'application/json',
427
+ };
428
+ b.bp("/v2/conversations/whatsapp/get_or_create_channel");
429
+ const query = (0, smithy_client_1.map)({
430
+ [_u]: [, input[_uI]],
431
+ });
432
+ let body;
433
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
434
+ 'recipientId': [],
435
+ 'recipientNumber': [],
436
+ 'serviceUri': [],
437
+ }));
438
+ b.m("POST")
439
+ .h(headers)
440
+ .q(query)
441
+ .b(body);
442
+ return b.build();
443
+ };
444
+ exports.se_GetOrCreateWhatsAppChannelCommand = se_GetOrCreateWhatsAppChannelCommand;
445
+ const se_GetSmsChannelIdCommand = async (input, context) => {
446
+ const b = (0, core_2.requestBuilder)(input, context);
447
+ const headers = {
448
+ 'content-type': 'application/json',
449
+ };
450
+ b.bp("/v2/conversations/sms/get_channel_id");
451
+ const query = (0, smithy_client_1.map)({
452
+ [_u]: [, input[_uI]],
453
+ });
454
+ let body;
455
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
456
+ 'recipientId': [],
457
+ 'recipientNumber': [],
458
+ 'serviceUri': [],
459
+ }));
460
+ b.m("POST")
461
+ .h(headers)
462
+ .q(query)
463
+ .b(body);
464
+ return b.build();
465
+ };
466
+ exports.se_GetSmsChannelIdCommand = se_GetSmsChannelIdCommand;
467
+ const se_GetTelephonyChannelIdCommand = async (input, context) => {
468
+ const b = (0, core_2.requestBuilder)(input, context);
469
+ const headers = {
470
+ 'content-type': 'application/json',
471
+ };
472
+ b.bp("/v2/conversations/telephony/get_channel_id");
473
+ const query = (0, smithy_client_1.map)({
474
+ [_u]: [, input[_uI]],
475
+ });
476
+ let body;
477
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
478
+ 'recipientId': [],
479
+ 'recipientNumber': [],
480
+ 'serviceUri': [],
481
+ }));
482
+ b.m("POST")
483
+ .h(headers)
484
+ .q(query)
485
+ .b(body);
486
+ return b.build();
487
+ };
488
+ exports.se_GetTelephonyChannelIdCommand = se_GetTelephonyChannelIdCommand;
379
489
  const se_GetTokenCommand = async (input, context) => {
380
490
  const b = (0, core_2.requestBuilder)(input, context);
381
491
  const headers = {};
@@ -404,6 +514,28 @@ const se_GetUploadedFileInfoCommand = async (input, context) => {
404
514
  return b.build();
405
515
  };
406
516
  exports.se_GetUploadedFileInfoCommand = se_GetUploadedFileInfoCommand;
517
+ const se_GetWhatsAppChannelIdCommand = async (input, context) => {
518
+ const b = (0, core_2.requestBuilder)(input, context);
519
+ const headers = {
520
+ 'content-type': 'application/json',
521
+ };
522
+ b.bp("/v2/conversations/whatsapp/get_channel_id");
523
+ const query = (0, smithy_client_1.map)({
524
+ [_u]: [, input[_uI]],
525
+ });
526
+ let body;
527
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
528
+ 'recipientId': [],
529
+ 'recipientNumber': [],
530
+ 'serviceUri': [],
531
+ }));
532
+ b.m("POST")
533
+ .h(headers)
534
+ .q(query)
535
+ .b(body);
536
+ return b.build();
537
+ };
538
+ exports.se_GetWhatsAppChannelIdCommand = se_GetWhatsAppChannelIdCommand;
407
539
  const se_HideChannelCommand = async (input, context) => {
408
540
  const b = (0, core_2.requestBuilder)(input, context);
409
541
  const headers = {};
@@ -495,6 +627,18 @@ const se_ListChannelMembersCommand = async (input, context) => {
495
627
  return b.build();
496
628
  };
497
629
  exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
630
+ const se_ListChannelMembersReadStatusCommand = async (input, context) => {
631
+ const b = (0, core_2.requestBuilder)(input, context);
632
+ const headers = {};
633
+ b.bp("/v2/conversations/channels/{channelId}/read");
634
+ b.p('channelId', () => input.channelId, '{channelId}', false);
635
+ let body;
636
+ b.m("GET")
637
+ .h(headers)
638
+ .b(body);
639
+ return b.build();
640
+ };
641
+ exports.se_ListChannelMembersReadStatusCommand = se_ListChannelMembersReadStatusCommand;
498
642
  const se_ListChannelsCommand = async (input, context) => {
499
643
  const b = (0, core_2.requestBuilder)(input, context);
500
644
  const headers = {};
@@ -850,6 +994,31 @@ const se_SendMessageReactionCommand = async (input, context) => {
850
994
  return b.build();
851
995
  };
852
996
  exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
997
+ const se_SendTemplateMessageCommand = async (input, context) => {
998
+ const b = (0, core_2.requestBuilder)(input, context);
999
+ const headers = {
1000
+ 'content-type': 'application/json',
1001
+ };
1002
+ b.bp("/v2/conversations/channels/{channelId}/send_template_message");
1003
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1004
+ let body;
1005
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1006
+ 'attachments': _ => (0, smithy_client_1._json)(_),
1007
+ 'elements': _ => (0, smithy_client_1._json)(_),
1008
+ 'forward': _ => (0, smithy_client_1._json)(_),
1009
+ 'mentions': _ => (0, smithy_client_1._json)(_),
1010
+ 'messageId': [],
1011
+ 'quote': _ => (0, smithy_client_1._json)(_),
1012
+ 'template': _ => (0, smithy_client_1._json)(_),
1013
+ 'text': [],
1014
+ 'userId': [],
1015
+ }));
1016
+ b.m("POST")
1017
+ .h(headers)
1018
+ .b(body);
1019
+ return b.build();
1020
+ };
1021
+ exports.se_SendTemplateMessageCommand = se_SendTemplateMessageCommand;
853
1022
  const se_SendTypingStartCommand = async (input, context) => {
854
1023
  const b = (0, core_2.requestBuilder)(input, context);
855
1024
  const headers = {};
@@ -1383,6 +1552,81 @@ const de_GetOrCreateDirectChannelCommand = async (output, context) => {
1383
1552
  return contents;
1384
1553
  };
1385
1554
  exports.de_GetOrCreateDirectChannelCommand = de_GetOrCreateDirectChannelCommand;
1555
+ const de_GetOrCreateSmsChannelCommand = async (output, context) => {
1556
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1557
+ return de_CommandError(output, context);
1558
+ }
1559
+ const contents = (0, smithy_client_1.map)({
1560
+ $metadata: deserializeMetadata(output),
1561
+ });
1562
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1563
+ const doc = (0, smithy_client_1.take)(data, {
1564
+ 'channel': smithy_client_1._json,
1565
+ });
1566
+ Object.assign(contents, doc);
1567
+ return contents;
1568
+ };
1569
+ exports.de_GetOrCreateSmsChannelCommand = de_GetOrCreateSmsChannelCommand;
1570
+ const de_GetOrCreateTelephonyChannelCommand = async (output, context) => {
1571
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1572
+ return de_CommandError(output, context);
1573
+ }
1574
+ const contents = (0, smithy_client_1.map)({
1575
+ $metadata: deserializeMetadata(output),
1576
+ });
1577
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1578
+ const doc = (0, smithy_client_1.take)(data, {
1579
+ 'channel': smithy_client_1._json,
1580
+ });
1581
+ Object.assign(contents, doc);
1582
+ return contents;
1583
+ };
1584
+ exports.de_GetOrCreateTelephonyChannelCommand = de_GetOrCreateTelephonyChannelCommand;
1585
+ const de_GetOrCreateWhatsAppChannelCommand = async (output, context) => {
1586
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1587
+ return de_CommandError(output, context);
1588
+ }
1589
+ const contents = (0, smithy_client_1.map)({
1590
+ $metadata: deserializeMetadata(output),
1591
+ });
1592
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1593
+ const doc = (0, smithy_client_1.take)(data, {
1594
+ 'channel': smithy_client_1._json,
1595
+ });
1596
+ Object.assign(contents, doc);
1597
+ return contents;
1598
+ };
1599
+ exports.de_GetOrCreateWhatsAppChannelCommand = de_GetOrCreateWhatsAppChannelCommand;
1600
+ const de_GetSmsChannelIdCommand = async (output, context) => {
1601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
+ return de_CommandError(output, context);
1603
+ }
1604
+ const contents = (0, smithy_client_1.map)({
1605
+ $metadata: deserializeMetadata(output),
1606
+ });
1607
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1608
+ const doc = (0, smithy_client_1.take)(data, {
1609
+ 'channelId': smithy_client_1.expectString,
1610
+ });
1611
+ Object.assign(contents, doc);
1612
+ return contents;
1613
+ };
1614
+ exports.de_GetSmsChannelIdCommand = de_GetSmsChannelIdCommand;
1615
+ const de_GetTelephonyChannelIdCommand = async (output, context) => {
1616
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1617
+ return de_CommandError(output, context);
1618
+ }
1619
+ const contents = (0, smithy_client_1.map)({
1620
+ $metadata: deserializeMetadata(output),
1621
+ });
1622
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1623
+ const doc = (0, smithy_client_1.take)(data, {
1624
+ 'channelId': smithy_client_1.expectString,
1625
+ });
1626
+ Object.assign(contents, doc);
1627
+ return contents;
1628
+ };
1629
+ exports.de_GetTelephonyChannelIdCommand = de_GetTelephonyChannelIdCommand;
1386
1630
  const de_GetTokenCommand = async (output, context) => {
1387
1631
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
1632
  return de_CommandError(output, context);
@@ -1414,6 +1658,21 @@ const de_GetUploadedFileInfoCommand = async (output, context) => {
1414
1658
  return contents;
1415
1659
  };
1416
1660
  exports.de_GetUploadedFileInfoCommand = de_GetUploadedFileInfoCommand;
1661
+ const de_GetWhatsAppChannelIdCommand = async (output, context) => {
1662
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1663
+ return de_CommandError(output, context);
1664
+ }
1665
+ const contents = (0, smithy_client_1.map)({
1666
+ $metadata: deserializeMetadata(output),
1667
+ });
1668
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1669
+ const doc = (0, smithy_client_1.take)(data, {
1670
+ 'channelId': smithy_client_1.expectString,
1671
+ });
1672
+ Object.assign(contents, doc);
1673
+ return contents;
1674
+ };
1675
+ exports.de_GetWhatsAppChannelIdCommand = de_GetWhatsAppChannelIdCommand;
1417
1676
  const de_HideChannelCommand = async (output, context) => {
1418
1677
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1419
1678
  return de_CommandError(output, context);
@@ -1482,6 +1741,21 @@ const de_ListChannelMembersCommand = async (output, context) => {
1482
1741
  return contents;
1483
1742
  };
1484
1743
  exports.de_ListChannelMembersCommand = de_ListChannelMembersCommand;
1744
+ const de_ListChannelMembersReadStatusCommand = async (output, context) => {
1745
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1746
+ return de_CommandError(output, context);
1747
+ }
1748
+ const contents = (0, smithy_client_1.map)({
1749
+ $metadata: deserializeMetadata(output),
1750
+ });
1751
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1752
+ const doc = (0, smithy_client_1.take)(data, {
1753
+ 'members': smithy_client_1._json,
1754
+ });
1755
+ Object.assign(contents, doc);
1756
+ return contents;
1757
+ };
1758
+ exports.de_ListChannelMembersReadStatusCommand = de_ListChannelMembersReadStatusCommand;
1485
1759
  const de_ListChannelsCommand = async (output, context) => {
1486
1760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1487
1761
  return de_CommandError(output, context);
@@ -1724,6 +1998,21 @@ const de_SendMessageReactionCommand = async (output, context) => {
1724
1998
  return contents;
1725
1999
  };
1726
2000
  exports.de_SendMessageReactionCommand = de_SendMessageReactionCommand;
2001
+ const de_SendTemplateMessageCommand = async (output, context) => {
2002
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2003
+ return de_CommandError(output, context);
2004
+ }
2005
+ const contents = (0, smithy_client_1.map)({
2006
+ $metadata: deserializeMetadata(output),
2007
+ });
2008
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2009
+ const doc = (0, smithy_client_1.take)(data, {
2010
+ 'message': smithy_client_1._json,
2011
+ });
2012
+ Object.assign(contents, doc);
2013
+ return contents;
2014
+ };
2015
+ exports.de_SendTemplateMessageCommand = de_SendTemplateMessageCommand;
1727
2016
  const de_SendTypingStartCommand = async (output, context) => {
1728
2017
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1729
2018
  return de_CommandError(output, context);