@wildix/xbees-conversations-client 1.1.17 → 1.1.19

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.
@@ -54,7 +54,6 @@ 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 SendTemplateMessageCommand_1 = require("./commands/SendTemplateMessageCommand");
58
57
  const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
59
58
  const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
60
59
  const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
@@ -121,7 +120,6 @@ const commands = {
121
120
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
122
121
  SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
123
122
  SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
124
- SendTemplateMessageCommand: SendTemplateMessageCommand_1.SendTemplateMessageCommand,
125
123
  SendTypingStartCommand: SendTypingStartCommand_1.SendTypingStartCommand,
126
124
  SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
127
125
  ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
@@ -53,7 +53,6 @@ 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("./SendTemplateMessageCommand"), exports);
57
56
  tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
58
57
  tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
59
58
  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.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = 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.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,11 +198,25 @@ 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]);
204
206
  };
205
207
  })(Element || (exports.Element = Element = {}));
208
+ exports.MessageSmsStatus = {
209
+ DELIVERED: "delivered",
210
+ ERROR: "error",
211
+ SENT: "sent",
212
+ TRYING: "trying",
213
+ };
214
+ exports.MessageWhatsAppStatus = {
215
+ DELIVERED: "delivered",
216
+ ERROR: "error",
217
+ SENT: "sent",
218
+ TRYING: "trying",
219
+ };
206
220
  exports.TargetNotEligibleReason = {
207
221
  NO_LICENSE: "no_license",
208
222
  };
@@ -271,22 +285,10 @@ exports.ReactionType = {
271
285
  THUMBSUP: "thumbsup",
272
286
  WHITE_CHECK_MARK: "white_check_mark",
273
287
  };
274
- exports.MessageSmsStatus = {
275
- DELIVERED: "delivered",
276
- ERROR: "error",
277
- SENT: "sent",
278
- TRYING: "trying",
279
- };
280
288
  exports.MessageType = {
281
289
  REGULAR: "regular",
282
290
  SYSTEM: "system",
283
291
  };
284
- exports.MessageWhatsAppStatus = {
285
- DELIVERED: "delivered",
286
- ERROR: "error",
287
- SENT: "sent",
288
- TRYING: "trying",
289
- };
290
292
  exports.WebhookEventType = {
291
293
  ACTION_TRIGGERED: "chat:action:triggered",
292
294
  CHANNEL_CREATED: "chat:channel:created",
@@ -355,7 +357,11 @@ exports.MessageUnsetFields = {
355
357
  FORWARD: "forward",
356
358
  MENTIONS: "mentions",
357
359
  QUOTE: "quote",
360
+ SMS: "sms",
361
+ SMS_STATUS: "smsStatus",
358
362
  TEXT: "text",
363
+ WHATSAPP: "whatsapp",
364
+ WHATSAPP_STATUS: "whatsappStatus",
359
365
  };
360
366
  class PinnedChannelsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
361
367
  name = "PinnedChannelsLimitReachedException";
@@ -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.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;
4
+ exports.de_ListInboxTaggedChannelsCommand = 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_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_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 = 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");
@@ -963,7 +963,11 @@ const se_SendMessageCommand = async (input, context) => {
963
963
  'mentions': _ => (0, smithy_client_1._json)(_),
964
964
  'messageId': [],
965
965
  'quote': _ => (0, smithy_client_1._json)(_),
966
+ 'sms': [],
967
+ 'smsStatus': [],
966
968
  'text': [],
969
+ 'whatsapp': [],
970
+ 'whatsappStatus': [],
967
971
  }));
968
972
  b.m("POST")
969
973
  .h(headers)
@@ -994,31 +998,6 @@ const se_SendMessageReactionCommand = async (input, context) => {
994
998
  return b.build();
995
999
  };
996
1000
  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
- 'text': [],
1013
- 'userId': [],
1014
- 'whatsapp': _ => (0, smithy_client_1._json)(_),
1015
- }));
1016
- b.m("POST")
1017
- .h(headers)
1018
- .b(body);
1019
- return b.build();
1020
- };
1021
- exports.se_SendTemplateMessageCommand = se_SendTemplateMessageCommand;
1022
1001
  const se_SendTypingStartCommand = async (input, context) => {
1023
1002
  const b = (0, core_2.requestBuilder)(input, context);
1024
1003
  const headers = {};
@@ -1226,7 +1205,11 @@ const se_UpdateMessageCommand = async (input, context) => {
1226
1205
  'mentions': _ => (0, smithy_client_1._json)(_),
1227
1206
  'quote': _ => (0, smithy_client_1._json)(_),
1228
1207
  'silent': [],
1208
+ 'sms': [],
1209
+ 'smsStatus': [],
1229
1210
  'text': [],
1211
+ 'whatsapp': [],
1212
+ 'whatsappStatus': [],
1230
1213
  }));
1231
1214
  b.m("PUT")
1232
1215
  .h(headers)
@@ -1998,21 +1981,6 @@ const de_SendMessageReactionCommand = async (output, context) => {
1998
1981
  return contents;
1999
1982
  };
2000
1983
  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;
2016
1984
  const de_SendTypingStartCommand = async (output, context) => {
2017
1985
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2018
1986
  return de_CommandError(output, context);
@@ -51,7 +51,6 @@ 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 { SendTemplateMessageCommand, } from "./commands/SendTemplateMessageCommand";
55
54
  import { SendTypingStartCommand, } from "./commands/SendTypingStartCommand";
56
55
  import { SendTypingStopCommand, } from "./commands/SendTypingStopCommand";
57
56
  import { ShowChannelCommand, } from "./commands/ShowChannelCommand";
@@ -118,7 +117,6 @@ const commands = {
118
117
  SendGiphyCommand,
119
118
  SendMessageCommand,
120
119
  SendMessageReactionCommand,
121
- SendTemplateMessageCommand,
122
120
  SendTypingStartCommand,
123
121
  SendTypingStopCommand,
124
122
  ShowChannelCommand,
@@ -50,7 +50,6 @@ export * from "./SendActionTriggerResultCommand";
50
50
  export * from "./SendGiphyCommand";
51
51
  export * from "./SendMessageCommand";
52
52
  export * from "./SendMessageReactionCommand";
53
- export * from "./SendTemplateMessageCommand";
54
53
  export * from "./SendTypingStartCommand";
55
54
  export * from "./SendTypingStopCommand";
56
55
  export * from "./ShowChannelCommand";
@@ -187,11 +187,25 @@ 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]);
193
195
  };
194
196
  })(Element || (Element = {}));
197
+ export const MessageSmsStatus = {
198
+ DELIVERED: "delivered",
199
+ ERROR: "error",
200
+ SENT: "sent",
201
+ TRYING: "trying",
202
+ };
203
+ export const MessageWhatsAppStatus = {
204
+ DELIVERED: "delivered",
205
+ ERROR: "error",
206
+ SENT: "sent",
207
+ TRYING: "trying",
208
+ };
195
209
  export const TargetNotEligibleReason = {
196
210
  NO_LICENSE: "no_license",
197
211
  };
@@ -256,22 +270,10 @@ export const ReactionType = {
256
270
  THUMBSUP: "thumbsup",
257
271
  WHITE_CHECK_MARK: "white_check_mark",
258
272
  };
259
- export const MessageSmsStatus = {
260
- DELIVERED: "delivered",
261
- ERROR: "error",
262
- SENT: "sent",
263
- TRYING: "trying",
264
- };
265
273
  export const MessageType = {
266
274
  REGULAR: "regular",
267
275
  SYSTEM: "system",
268
276
  };
269
- export const MessageWhatsAppStatus = {
270
- DELIVERED: "delivered",
271
- ERROR: "error",
272
- SENT: "sent",
273
- TRYING: "trying",
274
- };
275
277
  export const WebhookEventType = {
276
278
  ACTION_TRIGGERED: "chat:action:triggered",
277
279
  CHANNEL_CREATED: "chat:channel:created",
@@ -337,7 +339,11 @@ export const MessageUnsetFields = {
337
339
  FORWARD: "forward",
338
340
  MENTIONS: "mentions",
339
341
  QUOTE: "quote",
342
+ SMS: "sms",
343
+ SMS_STATUS: "smsStatus",
340
344
  TEXT: "text",
345
+ WHATSAPP: "whatsapp",
346
+ WHATSAPP_STATUS: "whatsappStatus",
341
347
  };
342
348
  export class PinnedChannelsLimitReachedException extends __BaseException {
343
349
  name = "PinnedChannelsLimitReachedException";
@@ -908,7 +908,11 @@ export const se_SendMessageCommand = async (input, context) => {
908
908
  'mentions': _ => _json(_),
909
909
  'messageId': [],
910
910
  'quote': _ => _json(_),
911
+ 'sms': [],
912
+ 'smsStatus': [],
911
913
  'text': [],
914
+ 'whatsapp': [],
915
+ 'whatsappStatus': [],
912
916
  }));
913
917
  b.m("POST")
914
918
  .h(headers)
@@ -937,30 +941,6 @@ export const se_SendMessageReactionCommand = async (input, context) => {
937
941
  .b(body);
938
942
  return b.build();
939
943
  };
940
- export const se_SendTemplateMessageCommand = async (input, context) => {
941
- const b = rb(input, context);
942
- const headers = {
943
- 'content-type': 'application/json',
944
- };
945
- b.bp("/v2/conversations/channels/{channelId}/send_template_message");
946
- b.p('channelId', () => input.channelId, '{channelId}', false);
947
- let body;
948
- body = JSON.stringify(take(input, {
949
- 'attachments': _ => _json(_),
950
- 'elements': _ => _json(_),
951
- 'forward': _ => _json(_),
952
- 'mentions': _ => _json(_),
953
- 'messageId': [],
954
- 'quote': _ => _json(_),
955
- 'text': [],
956
- 'userId': [],
957
- 'whatsapp': _ => _json(_),
958
- }));
959
- b.m("POST")
960
- .h(headers)
961
- .b(body);
962
- return b.build();
963
- };
964
944
  export const se_SendTypingStartCommand = async (input, context) => {
965
945
  const b = rb(input, context);
966
946
  const headers = {};
@@ -1158,7 +1138,11 @@ export const se_UpdateMessageCommand = async (input, context) => {
1158
1138
  'mentions': _ => _json(_),
1159
1139
  'quote': _ => _json(_),
1160
1140
  'silent': [],
1141
+ 'sms': [],
1142
+ 'smsStatus': [],
1161
1143
  'text': [],
1144
+ 'whatsapp': [],
1145
+ 'whatsappStatus': [],
1162
1146
  }));
1163
1147
  b.m("PUT")
1164
1148
  .h(headers)
@@ -1876,20 +1860,6 @@ export const de_SendMessageReactionCommand = async (output, context) => {
1876
1860
  await collectBody(output.body, context);
1877
1861
  return contents;
1878
1862
  };
1879
- export const de_SendTemplateMessageCommand = async (output, context) => {
1880
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1881
- return de_CommandError(output, context);
1882
- }
1883
- const contents = map({
1884
- $metadata: deserializeMetadata(output),
1885
- });
1886
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1887
- const doc = take(data, {
1888
- 'message': _json,
1889
- });
1890
- Object.assign(contents, doc);
1891
- return contents;
1892
- };
1893
1863
  export const de_SendTypingStartCommand = async (output, context) => {
1894
1864
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1895
1865
  return de_CommandError(output, context);
@@ -51,7 +51,6 @@ 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 { SendTemplateMessageCommandInput, SendTemplateMessageCommandOutput } from "./commands/SendTemplateMessageCommand";
55
54
  import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
56
55
  import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
57
56
  import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
@@ -387,12 +386,6 @@ export interface Conversations {
387
386
  sendMessageReaction(args: SendMessageReactionCommandInput, options?: __HttpHandlerOptions): Promise<SendMessageReactionCommandOutput>;
388
387
  sendMessageReaction(args: SendMessageReactionCommandInput, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
389
388
  sendMessageReaction(args: SendMessageReactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
390
- /**
391
- * @see {@link SendTemplateMessageCommand}
392
- */
393
- sendTemplateMessage(args: SendTemplateMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendTemplateMessageCommandOutput>;
394
- sendTemplateMessage(args: SendTemplateMessageCommandInput, cb: (err: any, data?: SendTemplateMessageCommandOutput) => void): void;
395
- sendTemplateMessage(args: SendTemplateMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTemplateMessageCommandOutput) => void): void;
396
389
  /**
397
390
  * @see {@link SendTypingStartCommand}
398
391
  */
@@ -50,7 +50,6 @@ 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 { SendTemplateMessageCommandInput, SendTemplateMessageCommandOutput } from "./commands/SendTemplateMessageCommand";
54
53
  import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
55
54
  import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
56
55
  import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
@@ -74,11 +73,11 @@ export { __Client };
74
73
  /**
75
74
  * @public
76
75
  */
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 | SendTemplateMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
76
+ 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 | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
78
77
  /**
79
78
  * @public
80
79
  */
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 | SendTemplateMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
80
+ 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 | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
82
81
  /**
83
82
  * @public
84
83
  */
@@ -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
@@ -158,6 +169,10 @@ declare const CreateKiteChannelCommand_base: {
158
169
  * messageId: "STRING_VALUE", // required
159
170
  * channelId: "STRING_VALUE", // required
160
171
  * },
172
+ * whatsapp: true || false,
173
+ * whatsappStatus: "trying" || "sent" || "delivered" || "error",
174
+ * sms: true || false,
175
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
161
176
  * messageId: "STRING_VALUE", // required
162
177
  * mentions: [ // UsersIdList
163
178
  * "STRING_VALUE",
@@ -169,6 +184,17 @@ declare const CreateKiteChannelCommand_base: {
169
184
  * text: "STRING_VALUE",
170
185
  * elements: [
171
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
+ * },
172
198
  * actions: [
173
199
  * {// Union: only one key present
174
200
  * button: {
@@ -220,6 +246,10 @@ declare const CreateKiteChannelCommand_base: {
220
246
  * updatedAt: "STRING_VALUE",
221
247
  * },
222
248
  * forward: "<MessageForward>",
249
+ * whatsapp: true || false,
250
+ * whatsappStatus: "trying" || "sent" || "delivered" || "error",
251
+ * sms: true || false,
252
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
223
253
  * messageId: "STRING_VALUE", // required
224
254
  * mentions: [
225
255
  * "STRING_VALUE",