@wildix/xbees-conversations-client 1.1.18 → 1.1.20
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.
- package/dist-cjs/Conversations.js +2 -2
- package/dist-cjs/commands/{SendTemplateMessageCommand.js → SendSystemMessageCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -1
- package/dist-cjs/models/models_0.js +11 -1
- package/dist-cjs/protocols/Aws_restJson1.js +8 -8
- package/dist-es/Conversations.js +2 -2
- package/dist-es/commands/SendSystemMessageCommand.js +17 -0
- package/dist-es/commands/index.js +1 -1
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -4
- package/dist-types/Conversations.d.ts +5 -5
- package/dist-types/ConversationsClient.d.ts +3 -3
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +22 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +55 -0
- package/dist-types/commands/GetMessageCommand.d.ts +11 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +11 -0
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +11 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +22 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +11 -0
- package/dist-types/commands/SendMessageCommand.d.ts +22 -0
- package/dist-types/commands/{SendTemplateMessageCommand.d.ts → SendSystemMessageCommand.d.ts} +36 -33
- package/dist-types/commands/UpdateMessageCommand.d.ts +22 -0
- package/dist-types/commands/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +49 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +5 -5
- package/package.json +2 -2
- package/dist-es/commands/SendTemplateMessageCommand.js +0 -17
|
@@ -54,7 +54,7 @@ const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerRe
|
|
|
54
54
|
const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
|
|
55
55
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
56
56
|
const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
|
|
57
|
-
const
|
|
57
|
+
const SendSystemMessageCommand_1 = require("./commands/SendSystemMessageCommand");
|
|
58
58
|
const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
|
|
59
59
|
const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
|
|
60
60
|
const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
|
|
@@ -121,7 +121,7 @@ const commands = {
|
|
|
121
121
|
SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
|
|
122
122
|
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
123
123
|
SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
|
|
124
|
-
|
|
124
|
+
SendSystemMessageCommand: SendSystemMessageCommand_1.SendSystemMessageCommand,
|
|
125
125
|
SendTypingStartCommand: SendTypingStartCommand_1.SendTypingStartCommand,
|
|
126
126
|
SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
|
|
127
127
|
ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SendSystemMessageCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class SendSystemMessageCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("Conversations", "
|
|
15
|
-
.n("ConversationsClient", "
|
|
14
|
+
.s("Conversations", "SendSystemMessage", {})
|
|
15
|
+
.n("ConversationsClient", "SendSystemMessageCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendSystemMessageCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendSystemMessageCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.SendSystemMessageCommand = SendSystemMessageCommand;
|
|
@@ -53,7 +53,7 @@ tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
|
|
|
53
53
|
tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
|
|
54
54
|
tslib_1.__exportStar(require("./SendMessageCommand"), exports);
|
|
55
55
|
tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
|
|
56
|
-
tslib_1.__exportStar(require("./
|
|
56
|
+
tslib_1.__exportStar(require("./SendSystemMessageCommand"), exports);
|
|
57
57
|
tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
|
|
58
58
|
tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
|
|
59
59
|
tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -198,6 +198,8 @@ exports.TagsLimitReachedException = TagsLimitReachedException;
|
|
|
198
198
|
var Element;
|
|
199
199
|
(function (Element) {
|
|
200
200
|
Element.visit = (value, visitor) => {
|
|
201
|
+
if (value.template !== undefined)
|
|
202
|
+
return visitor.template(value.template);
|
|
201
203
|
if (value.actions !== undefined)
|
|
202
204
|
return visitor.actions(value.actions);
|
|
203
205
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -387,6 +389,14 @@ class ConversationsServiceException extends ConversationsServiceException_1.Conv
|
|
|
387
389
|
}
|
|
388
390
|
}
|
|
389
391
|
exports.ConversationsServiceException = ConversationsServiceException;
|
|
392
|
+
var SystemMessage;
|
|
393
|
+
(function (SystemMessage) {
|
|
394
|
+
SystemMessage.visit = (value, visitor) => {
|
|
395
|
+
if (value.whatsAppClosed !== undefined)
|
|
396
|
+
return visitor.whatsAppClosed(value.whatsAppClosed);
|
|
397
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
398
|
+
};
|
|
399
|
+
})(SystemMessage || (exports.SystemMessage = SystemMessage = {}));
|
|
390
400
|
class TaggedChannelsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
391
401
|
name = "TaggedChannelsLimitReachedException";
|
|
392
402
|
$fault = "client";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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.
|
|
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.
|
|
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_SendSystemMessageCommand = 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_SendSystemMessageCommand = 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");
|
|
@@ -998,24 +998,24 @@ const se_SendMessageReactionCommand = async (input, context) => {
|
|
|
998
998
|
return b.build();
|
|
999
999
|
};
|
|
1000
1000
|
exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
|
|
1001
|
-
const
|
|
1001
|
+
const se_SendSystemMessageCommand = async (input, context) => {
|
|
1002
1002
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
1003
1003
|
const headers = {
|
|
1004
1004
|
'content-type': 'application/json',
|
|
1005
1005
|
};
|
|
1006
|
-
b.bp("/v2/conversations/channels/{channelId}/
|
|
1006
|
+
b.bp("/v2/conversations/channels/{channelId}/system-messages");
|
|
1007
1007
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1008
1008
|
let body;
|
|
1009
1009
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1010
|
+
'message': _ => (0, smithy_client_1._json)(_),
|
|
1010
1011
|
'userId': [],
|
|
1011
|
-
'whatsapp': _ => (0, smithy_client_1._json)(_),
|
|
1012
1012
|
}));
|
|
1013
1013
|
b.m("POST")
|
|
1014
1014
|
.h(headers)
|
|
1015
1015
|
.b(body);
|
|
1016
1016
|
return b.build();
|
|
1017
1017
|
};
|
|
1018
|
-
exports.
|
|
1018
|
+
exports.se_SendSystemMessageCommand = se_SendSystemMessageCommand;
|
|
1019
1019
|
const se_SendTypingStartCommand = async (input, context) => {
|
|
1020
1020
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
1021
1021
|
const headers = {};
|
|
@@ -1999,7 +1999,7 @@ const de_SendMessageReactionCommand = async (output, context) => {
|
|
|
1999
1999
|
return contents;
|
|
2000
2000
|
};
|
|
2001
2001
|
exports.de_SendMessageReactionCommand = de_SendMessageReactionCommand;
|
|
2002
|
-
const
|
|
2002
|
+
const de_SendSystemMessageCommand = async (output, context) => {
|
|
2003
2003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2004
2004
|
return de_CommandError(output, context);
|
|
2005
2005
|
}
|
|
@@ -2013,7 +2013,7 @@ const de_SendTemplateMessageCommand = async (output, context) => {
|
|
|
2013
2013
|
Object.assign(contents, doc);
|
|
2014
2014
|
return contents;
|
|
2015
2015
|
};
|
|
2016
|
-
exports.
|
|
2016
|
+
exports.de_SendSystemMessageCommand = de_SendSystemMessageCommand;
|
|
2017
2017
|
const de_SendTypingStartCommand = async (output, context) => {
|
|
2018
2018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
2019
|
return de_CommandError(output, context);
|
package/dist-es/Conversations.js
CHANGED
|
@@ -51,7 +51,7 @@ import { SendActionTriggerResultCommand, } from "./commands/SendActionTriggerRes
|
|
|
51
51
|
import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
|
|
52
52
|
import { SendMessageCommand, } from "./commands/SendMessageCommand";
|
|
53
53
|
import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
|
|
54
|
-
import {
|
|
54
|
+
import { SendSystemMessageCommand, } from "./commands/SendSystemMessageCommand";
|
|
55
55
|
import { SendTypingStartCommand, } from "./commands/SendTypingStartCommand";
|
|
56
56
|
import { SendTypingStopCommand, } from "./commands/SendTypingStopCommand";
|
|
57
57
|
import { ShowChannelCommand, } from "./commands/ShowChannelCommand";
|
|
@@ -118,7 +118,7 @@ const commands = {
|
|
|
118
118
|
SendGiphyCommand,
|
|
119
119
|
SendMessageCommand,
|
|
120
120
|
SendMessageReactionCommand,
|
|
121
|
-
|
|
121
|
+
SendSystemMessageCommand,
|
|
122
122
|
SendTypingStartCommand,
|
|
123
123
|
SendTypingStopCommand,
|
|
124
124
|
ShowChannelCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendSystemMessageCommand, se_SendSystemMessageCommand, } 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 SendSystemMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "SendSystemMessage", {})
|
|
12
|
+
.n("ConversationsClient", "SendSystemMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendSystemMessageCommand)
|
|
15
|
+
.de(de_SendSystemMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -50,7 +50,7 @@ export * from "./SendActionTriggerResultCommand";
|
|
|
50
50
|
export * from "./SendGiphyCommand";
|
|
51
51
|
export * from "./SendMessageCommand";
|
|
52
52
|
export * from "./SendMessageReactionCommand";
|
|
53
|
-
export * from "./
|
|
53
|
+
export * from "./SendSystemMessageCommand";
|
|
54
54
|
export * from "./SendTypingStartCommand";
|
|
55
55
|
export * from "./SendTypingStopCommand";
|
|
56
56
|
export * from "./ShowChannelCommand";
|
|
@@ -187,6 +187,8 @@ export class TagsLimitReachedException extends __BaseException {
|
|
|
187
187
|
export var Element;
|
|
188
188
|
(function (Element) {
|
|
189
189
|
Element.visit = (value, visitor) => {
|
|
190
|
+
if (value.template !== undefined)
|
|
191
|
+
return visitor.template(value.template);
|
|
190
192
|
if (value.actions !== undefined)
|
|
191
193
|
return visitor.actions(value.actions);
|
|
192
194
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -367,6 +369,14 @@ export class ConversationsServiceException extends __BaseException {
|
|
|
367
369
|
Object.setPrototypeOf(this, ConversationsServiceException.prototype);
|
|
368
370
|
}
|
|
369
371
|
}
|
|
372
|
+
export var SystemMessage;
|
|
373
|
+
(function (SystemMessage) {
|
|
374
|
+
SystemMessage.visit = (value, visitor) => {
|
|
375
|
+
if (value.whatsAppClosed !== undefined)
|
|
376
|
+
return visitor.whatsAppClosed(value.whatsAppClosed);
|
|
377
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
378
|
+
};
|
|
379
|
+
})(SystemMessage || (SystemMessage = {}));
|
|
370
380
|
export class TaggedChannelsLimitReachedException extends __BaseException {
|
|
371
381
|
name = "TaggedChannelsLimitReachedException";
|
|
372
382
|
$fault = "client";
|
|
@@ -941,17 +941,17 @@ export const se_SendMessageReactionCommand = async (input, context) => {
|
|
|
941
941
|
.b(body);
|
|
942
942
|
return b.build();
|
|
943
943
|
};
|
|
944
|
-
export const
|
|
944
|
+
export const se_SendSystemMessageCommand = async (input, context) => {
|
|
945
945
|
const b = rb(input, context);
|
|
946
946
|
const headers = {
|
|
947
947
|
'content-type': 'application/json',
|
|
948
948
|
};
|
|
949
|
-
b.bp("/v2/conversations/channels/{channelId}/
|
|
949
|
+
b.bp("/v2/conversations/channels/{channelId}/system-messages");
|
|
950
950
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
951
951
|
let body;
|
|
952
952
|
body = JSON.stringify(take(input, {
|
|
953
|
+
'message': _ => _json(_),
|
|
953
954
|
'userId': [],
|
|
954
|
-
'whatsapp': _ => _json(_),
|
|
955
955
|
}));
|
|
956
956
|
b.m("POST")
|
|
957
957
|
.h(headers)
|
|
@@ -1877,7 +1877,7 @@ export const de_SendMessageReactionCommand = async (output, context) => {
|
|
|
1877
1877
|
await collectBody(output.body, context);
|
|
1878
1878
|
return contents;
|
|
1879
1879
|
};
|
|
1880
|
-
export const
|
|
1880
|
+
export const de_SendSystemMessageCommand = async (output, context) => {
|
|
1881
1881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
1882
|
return de_CommandError(output, context);
|
|
1883
1883
|
}
|
|
@@ -51,7 +51,7 @@ import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutp
|
|
|
51
51
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
52
52
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
53
53
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
|
|
54
|
-
import {
|
|
54
|
+
import { SendSystemMessageCommandInput, SendSystemMessageCommandOutput } from "./commands/SendSystemMessageCommand";
|
|
55
55
|
import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
|
|
56
56
|
import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
|
|
57
57
|
import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
|
|
@@ -388,11 +388,11 @@ export interface Conversations {
|
|
|
388
388
|
sendMessageReaction(args: SendMessageReactionCommandInput, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
|
|
389
389
|
sendMessageReaction(args: SendMessageReactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
|
|
390
390
|
/**
|
|
391
|
-
* @see {@link
|
|
391
|
+
* @see {@link SendSystemMessageCommand}
|
|
392
392
|
*/
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
393
|
+
sendSystemMessage(args: SendSystemMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendSystemMessageCommandOutput>;
|
|
394
|
+
sendSystemMessage(args: SendSystemMessageCommandInput, cb: (err: any, data?: SendSystemMessageCommandOutput) => void): void;
|
|
395
|
+
sendSystemMessage(args: SendSystemMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSystemMessageCommandOutput) => void): void;
|
|
396
396
|
/**
|
|
397
397
|
* @see {@link SendTypingStartCommand}
|
|
398
398
|
*/
|
|
@@ -50,7 +50,7 @@ import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutp
|
|
|
50
50
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
51
51
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
52
52
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
|
|
53
|
-
import {
|
|
53
|
+
import { SendSystemMessageCommandInput, SendSystemMessageCommandOutput } from "./commands/SendSystemMessageCommand";
|
|
54
54
|
import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
|
|
55
55
|
import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
|
|
56
56
|
import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
|
|
@@ -74,11 +74,11 @@ export { __Client };
|
|
|
74
74
|
/**
|
|
75
75
|
* @public
|
|
76
76
|
*/
|
|
77
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput |
|
|
77
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
78
78
|
/**
|
|
79
79
|
* @public
|
|
80
80
|
*/
|
|
81
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput |
|
|
81
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
82
82
|
/**
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
@@ -44,6 +44,17 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
44
44
|
* text: "STRING_VALUE",
|
|
45
45
|
* elements: [ // ElementsList
|
|
46
46
|
* { // Element Union: only one key present
|
|
47
|
+
* template: { // MessageTemplateConfig
|
|
48
|
+
* whatsapp: { // TemplateWithParameters
|
|
49
|
+
* name: "STRING_VALUE", // required
|
|
50
|
+
* parameters: [ // ListTemplateParameter // required
|
|
51
|
+
* { // TemplateParameter
|
|
52
|
+
* name: "STRING_VALUE", // required
|
|
53
|
+
* value: "STRING_VALUE", // required
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
47
58
|
* actions: [ // ActionsElementsList
|
|
48
59
|
* { // ActionElement Union: only one key present
|
|
49
60
|
* button: { // ButtonElement
|
|
@@ -173,6 +184,17 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
173
184
|
* text: "STRING_VALUE",
|
|
174
185
|
* elements: [
|
|
175
186
|
* {// Union: only one key present
|
|
187
|
+
* template: {
|
|
188
|
+
* whatsapp: {
|
|
189
|
+
* name: "STRING_VALUE", // required
|
|
190
|
+
* parameters: [ // required
|
|
191
|
+
* {
|
|
192
|
+
* name: "STRING_VALUE", // required
|
|
193
|
+
* value: "STRING_VALUE", // required
|
|
194
|
+
* },
|
|
195
|
+
* ],
|
|
196
|
+
* },
|
|
197
|
+
* },
|
|
176
198
|
* actions: [
|
|
177
199
|
* {// Union: only one key present
|
|
178
200
|
* button: {
|
|
@@ -488,6 +488,17 @@ declare const DescribeEventCommand_base: {
|
|
|
488
488
|
* // text: "STRING_VALUE",
|
|
489
489
|
* // elements: [ // ElementsList
|
|
490
490
|
* // { // Element Union: only one key present
|
|
491
|
+
* // template: { // MessageTemplateConfig
|
|
492
|
+
* // whatsapp: { // TemplateWithParameters
|
|
493
|
+
* // name: "STRING_VALUE", // required
|
|
494
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
495
|
+
* // { // TemplateParameter
|
|
496
|
+
* // name: "STRING_VALUE", // required
|
|
497
|
+
* // value: "STRING_VALUE", // required
|
|
498
|
+
* // },
|
|
499
|
+
* // ],
|
|
500
|
+
* // },
|
|
501
|
+
* // },
|
|
491
502
|
* // actions: [ // ActionsElementsList
|
|
492
503
|
* // { // ActionElement Union: only one key present
|
|
493
504
|
* // button: { // ButtonElement
|
|
@@ -616,6 +627,17 @@ declare const DescribeEventCommand_base: {
|
|
|
616
627
|
* // text: "STRING_VALUE",
|
|
617
628
|
* // elements: [
|
|
618
629
|
* // {// Union: only one key present
|
|
630
|
+
* // template: {
|
|
631
|
+
* // whatsapp: {
|
|
632
|
+
* // name: "STRING_VALUE", // required
|
|
633
|
+
* // parameters: [ // required
|
|
634
|
+
* // {
|
|
635
|
+
* // name: "STRING_VALUE", // required
|
|
636
|
+
* // value: "STRING_VALUE", // required
|
|
637
|
+
* // },
|
|
638
|
+
* // ],
|
|
639
|
+
* // },
|
|
640
|
+
* // },
|
|
619
641
|
* // actions: [
|
|
620
642
|
* // {// Union: only one key present
|
|
621
643
|
* // button: {
|
|
@@ -742,6 +764,17 @@ declare const DescribeEventCommand_base: {
|
|
|
742
764
|
* // text: "STRING_VALUE",
|
|
743
765
|
* // elements: [
|
|
744
766
|
* // {// Union: only one key present
|
|
767
|
+
* // template: {
|
|
768
|
+
* // whatsapp: {
|
|
769
|
+
* // name: "STRING_VALUE", // required
|
|
770
|
+
* // parameters: [ // required
|
|
771
|
+
* // {
|
|
772
|
+
* // name: "STRING_VALUE", // required
|
|
773
|
+
* // value: "STRING_VALUE", // required
|
|
774
|
+
* // },
|
|
775
|
+
* // ],
|
|
776
|
+
* // },
|
|
777
|
+
* // },
|
|
745
778
|
* // actions: [
|
|
746
779
|
* // {// Union: only one key present
|
|
747
780
|
* // button: {
|
|
@@ -844,6 +877,17 @@ declare const DescribeEventCommand_base: {
|
|
|
844
877
|
* // text: "STRING_VALUE",
|
|
845
878
|
* // elements: [
|
|
846
879
|
* // {// Union: only one key present
|
|
880
|
+
* // template: {
|
|
881
|
+
* // whatsapp: {
|
|
882
|
+
* // name: "STRING_VALUE", // required
|
|
883
|
+
* // parameters: [ // required
|
|
884
|
+
* // {
|
|
885
|
+
* // name: "STRING_VALUE", // required
|
|
886
|
+
* // value: "STRING_VALUE", // required
|
|
887
|
+
* // },
|
|
888
|
+
* // ],
|
|
889
|
+
* // },
|
|
890
|
+
* // },
|
|
847
891
|
* // actions: [
|
|
848
892
|
* // {// Union: only one key present
|
|
849
893
|
* // button: {
|
|
@@ -928,6 +972,17 @@ declare const DescribeEventCommand_base: {
|
|
|
928
972
|
* // text: "STRING_VALUE",
|
|
929
973
|
* // elements: [
|
|
930
974
|
* // {// Union: only one key present
|
|
975
|
+
* // template: {
|
|
976
|
+
* // whatsapp: {
|
|
977
|
+
* // name: "STRING_VALUE", // required
|
|
978
|
+
* // parameters: [ // required
|
|
979
|
+
* // {
|
|
980
|
+
* // name: "STRING_VALUE", // required
|
|
981
|
+
* // value: "STRING_VALUE", // required
|
|
982
|
+
* // },
|
|
983
|
+
* // ],
|
|
984
|
+
* // },
|
|
985
|
+
* // },
|
|
931
986
|
* // actions: [
|
|
932
987
|
* // {// Union: only one key present
|
|
933
988
|
* // button: {
|
|
@@ -45,6 +45,17 @@ declare const GetMessageCommand_base: {
|
|
|
45
45
|
* // text: "STRING_VALUE",
|
|
46
46
|
* // elements: [ // ElementsList
|
|
47
47
|
* // { // Element Union: only one key present
|
|
48
|
+
* // template: { // MessageTemplateConfig
|
|
49
|
+
* // whatsapp: { // TemplateWithParameters
|
|
50
|
+
* // name: "STRING_VALUE", // required
|
|
51
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
52
|
+
* // { // TemplateParameter
|
|
53
|
+
* // name: "STRING_VALUE", // required
|
|
54
|
+
* // value: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
48
59
|
* // actions: [ // ActionsElementsList
|
|
49
60
|
* // { // ActionElement Union: only one key present
|
|
50
61
|
* // button: { // ButtonElement
|
|
@@ -47,6 +47,17 @@ declare const ListMessagesCommand_base: {
|
|
|
47
47
|
* // text: "STRING_VALUE",
|
|
48
48
|
* // elements: [ // ElementsList
|
|
49
49
|
* // { // Element Union: only one key present
|
|
50
|
+
* // template: { // MessageTemplateConfig
|
|
51
|
+
* // whatsapp: { // TemplateWithParameters
|
|
52
|
+
* // name: "STRING_VALUE", // required
|
|
53
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
54
|
+
* // { // TemplateParameter
|
|
55
|
+
* // name: "STRING_VALUE", // required
|
|
56
|
+
* // value: "STRING_VALUE", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // },
|
|
60
|
+
* // },
|
|
50
61
|
* // actions: [ // ActionsElementsList
|
|
51
62
|
* // { // ActionElement Union: only one key present
|
|
52
63
|
* // button: { // ButtonElement
|
|
@@ -47,6 +47,17 @@ declare const ListPinnedMessagesCommand_base: {
|
|
|
47
47
|
* // text: "STRING_VALUE",
|
|
48
48
|
* // elements: [ // ElementsList
|
|
49
49
|
* // { // Element Union: only one key present
|
|
50
|
+
* // template: { // MessageTemplateConfig
|
|
51
|
+
* // whatsapp: { // TemplateWithParameters
|
|
52
|
+
* // name: "STRING_VALUE", // required
|
|
53
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
54
|
+
* // { // TemplateParameter
|
|
55
|
+
* // name: "STRING_VALUE", // required
|
|
56
|
+
* // value: "STRING_VALUE", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // },
|
|
60
|
+
* // },
|
|
50
61
|
* // actions: [ // ActionsElementsList
|
|
51
62
|
* // { // ActionElement Union: only one key present
|
|
52
63
|
* // button: { // ButtonElement
|
|
@@ -42,6 +42,17 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
42
42
|
* text: "STRING_VALUE",
|
|
43
43
|
* elements: [ // ElementsList
|
|
44
44
|
* { // Element Union: only one key present
|
|
45
|
+
* template: { // MessageTemplateConfig
|
|
46
|
+
* whatsapp: { // TemplateWithParameters
|
|
47
|
+
* name: "STRING_VALUE", // required
|
|
48
|
+
* parameters: [ // ListTemplateParameter // required
|
|
49
|
+
* { // TemplateParameter
|
|
50
|
+
* name: "STRING_VALUE", // required
|
|
51
|
+
* value: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
45
56
|
* actions: [ // ActionsElementsList
|
|
46
57
|
* { // ActionElement Union: only one key present
|
|
47
58
|
* button: { // ButtonElement
|
|
@@ -176,6 +187,17 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
176
187
|
* // text: "STRING_VALUE",
|
|
177
188
|
* // elements: [ // ElementsList
|
|
178
189
|
* // { // Element Union: only one key present
|
|
190
|
+
* // template: { // MessageTemplateConfig
|
|
191
|
+
* // whatsapp: { // TemplateWithParameters
|
|
192
|
+
* // name: "STRING_VALUE", // required
|
|
193
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
194
|
+
* // { // TemplateParameter
|
|
195
|
+
* // name: "STRING_VALUE", // required
|
|
196
|
+
* // value: "STRING_VALUE", // required
|
|
197
|
+
* // },
|
|
198
|
+
* // ],
|
|
199
|
+
* // },
|
|
200
|
+
* // },
|
|
179
201
|
* // actions: [ // ActionsElementsList
|
|
180
202
|
* // { // ActionElement Union: only one key present
|
|
181
203
|
* // button: { // ButtonElement
|
|
@@ -53,6 +53,17 @@ declare const SendGiphyCommand_base: {
|
|
|
53
53
|
* // text: "STRING_VALUE",
|
|
54
54
|
* // elements: [ // ElementsList
|
|
55
55
|
* // { // Element Union: only one key present
|
|
56
|
+
* // template: { // MessageTemplateConfig
|
|
57
|
+
* // whatsapp: { // TemplateWithParameters
|
|
58
|
+
* // name: "STRING_VALUE", // required
|
|
59
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
60
|
+
* // { // TemplateParameter
|
|
61
|
+
* // name: "STRING_VALUE", // required
|
|
62
|
+
* // value: "STRING_VALUE", // required
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
56
67
|
* // actions: [ // ActionsElementsList
|
|
57
68
|
* // { // ActionElement Union: only one key present
|
|
58
69
|
* // button: { // ButtonElement
|
|
@@ -38,6 +38,17 @@ declare const SendMessageCommand_base: {
|
|
|
38
38
|
* text: "STRING_VALUE",
|
|
39
39
|
* elements: [ // ElementsList
|
|
40
40
|
* { // Element Union: only one key present
|
|
41
|
+
* template: { // MessageTemplateConfig
|
|
42
|
+
* whatsapp: { // TemplateWithParameters
|
|
43
|
+
* name: "STRING_VALUE", // required
|
|
44
|
+
* parameters: [ // ListTemplateParameter // required
|
|
45
|
+
* { // TemplateParameter
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* value: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
41
52
|
* actions: [ // ActionsElementsList
|
|
42
53
|
* { // ActionElement Union: only one key present
|
|
43
54
|
* button: { // ButtonElement
|
|
@@ -170,6 +181,17 @@ declare const SendMessageCommand_base: {
|
|
|
170
181
|
* // text: "STRING_VALUE",
|
|
171
182
|
* // elements: [ // ElementsList
|
|
172
183
|
* // { // Element Union: only one key present
|
|
184
|
+
* // template: { // MessageTemplateConfig
|
|
185
|
+
* // whatsapp: { // TemplateWithParameters
|
|
186
|
+
* // name: "STRING_VALUE", // required
|
|
187
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
188
|
+
* // { // TemplateParameter
|
|
189
|
+
* // name: "STRING_VALUE", // required
|
|
190
|
+
* // value: "STRING_VALUE", // required
|
|
191
|
+
* // },
|
|
192
|
+
* // ],
|
|
193
|
+
* // },
|
|
194
|
+
* // },
|
|
173
195
|
* // actions: [ // ActionsElementsList
|
|
174
196
|
* // { // ActionElement Union: only one key present
|
|
175
197
|
* // button: { // ButtonElement
|
package/dist-types/commands/{SendTemplateMessageCommand.d.ts → SendSystemMessageCommand.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
-
import {
|
|
2
|
+
import { SendSystemMessageInput, SendSystemMessageOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
5
|
/**
|
|
@@ -10,52 +10,55 @@ export { $Command };
|
|
|
10
10
|
/**
|
|
11
11
|
* @public
|
|
12
12
|
*
|
|
13
|
-
* The input for {@link
|
|
13
|
+
* The input for {@link SendSystemMessageCommand}.
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface SendSystemMessageCommandInput extends SendSystemMessageInput {
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
19
19
|
*
|
|
20
|
-
* The output of {@link
|
|
20
|
+
* The output of {@link SendSystemMessageCommand}.
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface SendSystemMessageCommandOutput extends SendSystemMessageOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
|
-
declare const
|
|
25
|
-
new (input:
|
|
26
|
-
new (__0_0:
|
|
24
|
+
declare const SendSystemMessageCommand_base: {
|
|
25
|
+
new (input: SendSystemMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendSystemMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Sends a
|
|
30
|
+
* Sends a system message to a specified channel. This operation available with S2S authorization only.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { ConversationsClient,
|
|
35
|
-
* // const { ConversationsClient,
|
|
34
|
+
* import { ConversationsClient, SendSystemMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, SendSystemMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
|
-
* const input = { //
|
|
37
|
+
* const input = { // SendSystemMessageInput
|
|
38
38
|
* channelId: "STRING_VALUE", // required
|
|
39
39
|
* userId: "STRING_VALUE",
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* name: "STRING_VALUE", // required
|
|
43
|
-
* parameters: [ // ListTemplateParameter // required
|
|
44
|
-
* { // TemplateParameter
|
|
45
|
-
* name: "STRING_VALUE", // required
|
|
46
|
-
* value: "STRING_VALUE", // required
|
|
47
|
-
* },
|
|
48
|
-
* ],
|
|
49
|
-
* },
|
|
40
|
+
* message: { // SystemMessage Union: only one key present
|
|
41
|
+
* whatsAppClosed: {},
|
|
50
42
|
* },
|
|
51
43
|
* };
|
|
52
|
-
* const command = new
|
|
44
|
+
* const command = new SendSystemMessageCommand(input);
|
|
53
45
|
* const response = await client.send(command);
|
|
54
|
-
* // { //
|
|
46
|
+
* // { // SendSystemMessageOutput
|
|
55
47
|
* // message: { // Message
|
|
56
48
|
* // text: "STRING_VALUE",
|
|
57
49
|
* // elements: [ // ElementsList
|
|
58
50
|
* // { // Element Union: only one key present
|
|
51
|
+
* // template: { // MessageTemplateConfig
|
|
52
|
+
* // whatsapp: { // TemplateWithParameters
|
|
53
|
+
* // name: "STRING_VALUE", // required
|
|
54
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
55
|
+
* // { // TemplateParameter
|
|
56
|
+
* // name: "STRING_VALUE", // required
|
|
57
|
+
* // value: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
59
62
|
* // actions: [ // ActionsElementsList
|
|
60
63
|
* // { // ActionElement Union: only one key present
|
|
61
64
|
* // button: { // ButtonElement
|
|
@@ -209,10 +212,10 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
209
212
|
*
|
|
210
213
|
* ```
|
|
211
214
|
*
|
|
212
|
-
* @param
|
|
213
|
-
* @returns {@link
|
|
214
|
-
* @see {@link
|
|
215
|
-
* @see {@link
|
|
215
|
+
* @param SendSystemMessageCommandInput - {@link SendSystemMessageCommandInput}
|
|
216
|
+
* @returns {@link SendSystemMessageCommandOutput}
|
|
217
|
+
* @see {@link SendSystemMessageCommandInput} for command's `input` shape.
|
|
218
|
+
* @see {@link SendSystemMessageCommandOutput} for command's `response` shape.
|
|
216
219
|
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
217
220
|
*
|
|
218
221
|
* @throws {@link ChannelNotFoundException} (client fault)
|
|
@@ -229,16 +232,16 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
229
232
|
*
|
|
230
233
|
* @public
|
|
231
234
|
*/
|
|
232
|
-
export declare class
|
|
235
|
+
export declare class SendSystemMessageCommand extends SendSystemMessageCommand_base {
|
|
233
236
|
/** @internal type navigation helper, not in runtime. */
|
|
234
237
|
protected static __types: {
|
|
235
238
|
api: {
|
|
236
|
-
input:
|
|
237
|
-
output:
|
|
239
|
+
input: SendSystemMessageInput;
|
|
240
|
+
output: SendSystemMessageOutput;
|
|
238
241
|
};
|
|
239
242
|
sdk: {
|
|
240
|
-
input:
|
|
241
|
-
output:
|
|
243
|
+
input: SendSystemMessageCommandInput;
|
|
244
|
+
output: SendSystemMessageCommandOutput;
|
|
242
245
|
};
|
|
243
246
|
};
|
|
244
247
|
}
|
|
@@ -38,6 +38,17 @@ declare const UpdateMessageCommand_base: {
|
|
|
38
38
|
* text: "STRING_VALUE",
|
|
39
39
|
* elements: [ // ElementsList
|
|
40
40
|
* { // Element Union: only one key present
|
|
41
|
+
* template: { // MessageTemplateConfig
|
|
42
|
+
* whatsapp: { // TemplateWithParameters
|
|
43
|
+
* name: "STRING_VALUE", // required
|
|
44
|
+
* parameters: [ // ListTemplateParameter // required
|
|
45
|
+
* { // TemplateParameter
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* value: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
41
52
|
* actions: [ // ActionsElementsList
|
|
42
53
|
* { // ActionElement Union: only one key present
|
|
43
54
|
* button: { // ButtonElement
|
|
@@ -171,6 +182,17 @@ declare const UpdateMessageCommand_base: {
|
|
|
171
182
|
* // text: "STRING_VALUE",
|
|
172
183
|
* // elements: [ // ElementsList
|
|
173
184
|
* // { // Element Union: only one key present
|
|
185
|
+
* // template: { // MessageTemplateConfig
|
|
186
|
+
* // whatsapp: { // TemplateWithParameters
|
|
187
|
+
* // name: "STRING_VALUE", // required
|
|
188
|
+
* // parameters: [ // ListTemplateParameter // required
|
|
189
|
+
* // { // TemplateParameter
|
|
190
|
+
* // name: "STRING_VALUE", // required
|
|
191
|
+
* // value: "STRING_VALUE", // required
|
|
192
|
+
* // },
|
|
193
|
+
* // ],
|
|
194
|
+
* // },
|
|
195
|
+
* // },
|
|
174
196
|
* // actions: [ // ActionsElementsList
|
|
175
197
|
* // { // ActionElement Union: only one key present
|
|
176
198
|
* // button: { // ButtonElement
|
|
@@ -50,7 +50,7 @@ export * from "./SendActionTriggerResultCommand";
|
|
|
50
50
|
export * from "./SendGiphyCommand";
|
|
51
51
|
export * from "./SendMessageCommand";
|
|
52
52
|
export * from "./SendMessageReactionCommand";
|
|
53
|
-
export * from "./
|
|
53
|
+
export * from "./SendSystemMessageCommand";
|
|
54
54
|
export * from "./SendTypingStartCommand";
|
|
55
55
|
export * from "./SendTypingStopCommand";
|
|
56
56
|
export * from "./ShowChannelCommand";
|
|
@@ -855,12 +855,24 @@ export interface MessageAttachment {
|
|
|
855
855
|
/**
|
|
856
856
|
* @public
|
|
857
857
|
*/
|
|
858
|
-
export
|
|
858
|
+
export interface MessageTemplateConfig {
|
|
859
|
+
whatsapp?: TemplateWithParameters | undefined;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* @public
|
|
863
|
+
*/
|
|
864
|
+
export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
|
|
859
865
|
/**
|
|
860
866
|
* @public
|
|
861
867
|
*/
|
|
862
868
|
export declare namespace Element {
|
|
869
|
+
interface TemplateMember {
|
|
870
|
+
template: MessageTemplateConfig;
|
|
871
|
+
actions?: never;
|
|
872
|
+
$unknown?: never;
|
|
873
|
+
}
|
|
863
874
|
interface ActionsMember {
|
|
875
|
+
template?: never;
|
|
864
876
|
actions: (ActionElement)[];
|
|
865
877
|
$unknown?: never;
|
|
866
878
|
}
|
|
@@ -868,10 +880,12 @@ export declare namespace Element {
|
|
|
868
880
|
* @public
|
|
869
881
|
*/
|
|
870
882
|
interface $UnknownMember {
|
|
883
|
+
template?: never;
|
|
871
884
|
actions?: never;
|
|
872
885
|
$unknown: [string, any];
|
|
873
886
|
}
|
|
874
887
|
interface Visitor<T> {
|
|
888
|
+
template: (value: MessageTemplateConfig) => T;
|
|
875
889
|
actions: (value: (ActionElement)[]) => T;
|
|
876
890
|
_: (name: string, value: any) => T;
|
|
877
891
|
}
|
|
@@ -2774,15 +2788,43 @@ export interface SendMessageReactionOutput {
|
|
|
2774
2788
|
/**
|
|
2775
2789
|
* @public
|
|
2776
2790
|
*/
|
|
2777
|
-
export interface
|
|
2778
|
-
template: TemplateWithParameters;
|
|
2791
|
+
export interface WhatsAppClosedSystemMessage {
|
|
2779
2792
|
}
|
|
2780
2793
|
/**
|
|
2781
2794
|
* @public
|
|
2782
2795
|
*/
|
|
2783
|
-
export
|
|
2796
|
+
export type SystemMessage = SystemMessage.WhatsAppClosedMember | SystemMessage.$UnknownMember;
|
|
2797
|
+
/**
|
|
2798
|
+
* @public
|
|
2799
|
+
*/
|
|
2800
|
+
export declare namespace SystemMessage {
|
|
2801
|
+
/**
|
|
2802
|
+
* A message indicating that the WhatsApp channel has been closed after 24 hours. This message type has empty payload.
|
|
2803
|
+
* @public
|
|
2804
|
+
*/
|
|
2805
|
+
interface WhatsAppClosedMember {
|
|
2806
|
+
whatsAppClosed: WhatsAppClosedSystemMessage;
|
|
2807
|
+
$unknown?: never;
|
|
2808
|
+
}
|
|
2784
2809
|
/**
|
|
2785
|
-
*
|
|
2810
|
+
* @public
|
|
2811
|
+
*/
|
|
2812
|
+
interface $UnknownMember {
|
|
2813
|
+
whatsAppClosed?: never;
|
|
2814
|
+
$unknown: [string, any];
|
|
2815
|
+
}
|
|
2816
|
+
interface Visitor<T> {
|
|
2817
|
+
whatsAppClosed: (value: WhatsAppClosedSystemMessage) => T;
|
|
2818
|
+
_: (name: string, value: any) => T;
|
|
2819
|
+
}
|
|
2820
|
+
const visit: <T>(value: SystemMessage, visitor: Visitor<T>) => T;
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* @public
|
|
2824
|
+
*/
|
|
2825
|
+
export interface SendSystemMessageInput {
|
|
2826
|
+
/**
|
|
2827
|
+
* The unique identifier of the channel to which the message is sent.
|
|
2786
2828
|
* @public
|
|
2787
2829
|
*/
|
|
2788
2830
|
channelId: string;
|
|
@@ -2791,12 +2833,12 @@ export interface SendTemplateMessageInput {
|
|
|
2791
2833
|
* @public
|
|
2792
2834
|
*/
|
|
2793
2835
|
userId?: string | undefined;
|
|
2794
|
-
|
|
2836
|
+
message: SystemMessage;
|
|
2795
2837
|
}
|
|
2796
2838
|
/**
|
|
2797
2839
|
* @public
|
|
2798
2840
|
*/
|
|
2799
|
-
export interface
|
|
2841
|
+
export interface SendSystemMessageOutput {
|
|
2800
2842
|
message: Message;
|
|
2801
2843
|
}
|
|
2802
2844
|
/**
|
|
@@ -50,7 +50,7 @@ import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutp
|
|
|
50
50
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "../commands/SendGiphyCommand";
|
|
51
51
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "../commands/SendMessageCommand";
|
|
52
52
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "../commands/SendMessageReactionCommand";
|
|
53
|
-
import {
|
|
53
|
+
import { SendSystemMessageCommandInput, SendSystemMessageCommandOutput } from "../commands/SendSystemMessageCommand";
|
|
54
54
|
import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "../commands/SendTypingStartCommand";
|
|
55
55
|
import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "../commands/SendTypingStopCommand";
|
|
56
56
|
import { ShowChannelCommandInput, ShowChannelCommandOutput } from "../commands/ShowChannelCommand";
|
|
@@ -274,9 +274,9 @@ export declare const se_SendMessageCommand: (input: SendMessageCommandInput, con
|
|
|
274
274
|
*/
|
|
275
275
|
export declare const se_SendMessageReactionCommand: (input: SendMessageReactionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
276
276
|
/**
|
|
277
|
-
*
|
|
277
|
+
* serializeAws_restJson1SendSystemMessageCommand
|
|
278
278
|
*/
|
|
279
|
-
export declare const
|
|
279
|
+
export declare const se_SendSystemMessageCommand: (input: SendSystemMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
280
280
|
/**
|
|
281
281
|
* serializeAws_restJson1SendTypingStartCommand
|
|
282
282
|
*/
|
|
@@ -534,9 +534,9 @@ export declare const de_SendMessageCommand: (output: __HttpResponse, context: __
|
|
|
534
534
|
*/
|
|
535
535
|
export declare const de_SendMessageReactionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendMessageReactionCommandOutput>;
|
|
536
536
|
/**
|
|
537
|
-
*
|
|
537
|
+
* deserializeAws_restJson1SendSystemMessageCommand
|
|
538
538
|
*/
|
|
539
|
-
export declare const
|
|
539
|
+
export declare const de_SendSystemMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendSystemMessageCommandOutput>;
|
|
540
540
|
/**
|
|
541
541
|
* deserializeAws_restJson1SendTypingStartCommand
|
|
542
542
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.20",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"react-native": {
|
|
81
81
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_SendTemplateMessageCommand, se_SendTemplateMessageCommand, } 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 SendTemplateMessageCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("Conversations", "SendTemplateMessage", {})
|
|
12
|
-
.n("ConversationsClient", "SendTemplateMessageCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_SendTemplateMessageCommand)
|
|
15
|
-
.de(de_SendTemplateMessageCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|