@wildix/xbees-conversations-client 1.0.44 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist-cjs/Conversations.js +2 -0
  2. package/dist-cjs/commands/DescribeEventCommand.js +21 -0
  3. package/dist-cjs/commands/index.js +1 -0
  4. package/dist-cjs/models/models_0.js +21 -19
  5. package/dist-cjs/protocols/Aws_restJson1.js +39 -2
  6. package/dist-es/Conversations.js +2 -0
  7. package/dist-es/commands/DescribeEventCommand.js +17 -0
  8. package/dist-es/commands/index.js +1 -0
  9. package/dist-es/models/models_0.js +20 -18
  10. package/dist-es/protocols/Aws_restJson1.js +35 -0
  11. package/dist-types/Conversations.d.ts +8 -0
  12. package/dist-types/ConversationsClient.d.ts +3 -2
  13. package/dist-types/commands/CreateGroupChannelCommand.d.ts +0 -2
  14. package/dist-types/commands/DescribeEventCommand.d.ts +845 -0
  15. package/dist-types/commands/GetChannelCommand.d.ts +0 -2
  16. package/dist-types/commands/GetMessageCommand.d.ts +0 -2
  17. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +0 -2
  18. package/dist-types/commands/JoinChannelCommand.d.ts +0 -2
  19. package/dist-types/commands/ListChannelsCommand.d.ts +0 -2
  20. package/dist-types/commands/ListMessagesCommand.d.ts +0 -2
  21. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +0 -2
  22. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +0 -2
  23. package/dist-types/commands/SendGiphyCommand.d.ts +0 -2
  24. package/dist-types/commands/SendMessageCommand.d.ts +0 -2
  25. package/dist-types/commands/UpdateChannelCommand.d.ts +0 -2
  26. package/dist-types/commands/UpdateMessageCommand.d.ts +0 -2
  27. package/dist-types/commands/index.d.ts +1 -0
  28. package/dist-types/models/models_0.d.ts +240 -83
  29. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  30. package/package.json +1 -1
@@ -9,6 +9,7 @@ const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
9
9
  const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
10
10
  const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
11
11
  const DeleteMessageReactionCommand_1 = require("./commands/DeleteMessageReactionCommand");
12
+ const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
12
13
  const GetChannelCommand_1 = require("./commands/GetChannelCommand");
13
14
  const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
14
15
  const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
@@ -46,6 +47,7 @@ const commands = {
46
47
  DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
47
48
  DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
48
49
  DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
50
+ DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
49
51
  GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
50
52
  GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
51
53
  GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeEventCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DescribeEventCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "DescribeEvent", {})
15
+ .n("ConversationsClient", "DescribeEventCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DescribeEventCommand)
18
+ .de(Aws_restJson1_1.de_DescribeEventCommand)
19
+ .build() {
20
+ }
21
+ exports.DescribeEventCommand = DescribeEventCommand;
@@ -8,6 +8,7 @@ tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
10
10
  tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
11
+ tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
11
12
  tslib_1.__exportStar(require("./GetChannelCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.FileNotFoundException = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const ConversationsServiceException_1 = require("./ConversationsServiceException");
5
5
  class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
6
6
  constructor(opts) {
@@ -75,9 +75,6 @@ exports.ChannelContextEventAttendeeStatus = {
75
75
  exports.ChannelContextSource = {
76
76
  KITE: "kite",
77
77
  };
78
- exports.ChannelWhatsAppStatus = {
79
- CHANNEL_CLOSED: "24h_channel_closed",
80
- };
81
78
  class ChannelAlreadyExistException extends ConversationsServiceException_1.ConversationsServiceException {
82
79
  constructor(opts) {
83
80
  super({
@@ -132,6 +129,26 @@ exports.ReactionType = {
132
129
  THUMBSUP: "thumbsup",
133
130
  WHITE_CHECK_MARK: "white_check_mark",
134
131
  };
132
+ exports.WebhookEventType = {
133
+ CHANNEL_CREATED: "chat:channel:created",
134
+ CHANNEL_UPDATED: "chat:channel:updated",
135
+ MEMBER_ADDED: "chat:member:added",
136
+ MEMBER_REMOVED: "chat:member:removed",
137
+ MESSAGE_DELETED: "chat:message:deleted",
138
+ MESSAGE_NEW: "chat:message:new",
139
+ MESSAGE_UPDATED: "chat:message:updated",
140
+ REACTION_DELETED: "chat:reaction:deleted",
141
+ REACTION_NEW: "chat:reaction:new",
142
+ };
143
+ exports.MessageSmsStatus = {
144
+ DELIVERED: "delivered",
145
+ ERROR: "error",
146
+ SENT: "sent",
147
+ TRYING: "trying",
148
+ };
149
+ exports.MessageType = {
150
+ REGULAR: "regular",
151
+ };
135
152
  class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
136
153
  constructor(opts) {
137
154
  super({
@@ -145,21 +162,6 @@ class FileNotFoundException extends ConversationsServiceException_1.Conversation
145
162
  }
146
163
  }
147
164
  exports.FileNotFoundException = FileNotFoundException;
148
- exports.MessageSmsStatus = {
149
- DELIVERED: "delivered",
150
- ERROR: "error",
151
- SENT: "sent",
152
- TRYING: "trying",
153
- };
154
- exports.MessageType = {
155
- REGULAR: "regular",
156
- };
157
- exports.MessageWhatsAppStatus = {
158
- DELIVERED: "delivered",
159
- ERROR: "error",
160
- SENT: "sent",
161
- TRYING: "trying",
162
- };
163
165
  exports.GroupChannelUnsetOptions = {
164
166
  ACCESS: "access",
165
167
  BROADCAST: "broadcast",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
- exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = void 0;
3
+ exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = void 0;
5
5
  const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@smithy/core");
@@ -145,6 +145,20 @@ const se_DeleteMessageReactionCommand = async (input, context) => {
145
145
  return b.build();
146
146
  };
147
147
  exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
148
+ const se_DescribeEventCommand = async (input, context) => {
149
+ const b = (0, core_1.requestBuilder)(input, context);
150
+ const headers = {
151
+ 'content-type': 'application/json',
152
+ };
153
+ b.bp("/v2/conversations/describe");
154
+ let body;
155
+ body = "";
156
+ b.m("POST")
157
+ .h(headers)
158
+ .b(body);
159
+ return b.build();
160
+ };
161
+ exports.se_DescribeEventCommand = se_DescribeEventCommand;
148
162
  const se_GetChannelCommand = async (input, context) => {
149
163
  const b = (0, core_1.requestBuilder)(input, context);
150
164
  const headers = {};
@@ -753,6 +767,29 @@ const de_DeleteMessageReactionCommand = async (output, context) => {
753
767
  return contents;
754
768
  };
755
769
  exports.de_DeleteMessageReactionCommand = de_DeleteMessageReactionCommand;
770
+ const de_DescribeEventCommand = async (output, context) => {
771
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
772
+ return de_CommandError(output, context);
773
+ }
774
+ const contents = (0, smithy_client_1.map)({
775
+ $metadata: deserializeMetadata(output),
776
+ });
777
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
778
+ const doc = (0, smithy_client_1.take)(data, {
779
+ 'WebhookChatChannelCreatedEvent': smithy_client_1._json,
780
+ 'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
781
+ 'WebhookChatMemberAddedEvent': smithy_client_1._json,
782
+ 'WebhookChatMemberRemovedEvent': smithy_client_1._json,
783
+ 'WebhookChatMessageDeletedEvent': smithy_client_1._json,
784
+ 'WebhookChatMessageNewEvent': smithy_client_1._json,
785
+ 'WebhookChatMessageUpdatedEvent': smithy_client_1._json,
786
+ 'WebhookChatReactionDeletedEvent': smithy_client_1._json,
787
+ 'WebhookChatReactionNewEvent': smithy_client_1._json,
788
+ });
789
+ Object.assign(contents, doc);
790
+ return contents;
791
+ };
792
+ exports.de_DescribeEventCommand = de_DescribeEventCommand;
756
793
  const de_GetChannelCommand = async (output, context) => {
757
794
  if (output.statusCode !== 200 && output.statusCode >= 300) {
758
795
  return de_CommandError(output, context);
@@ -6,6 +6,7 @@ import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
6
6
  import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
7
7
  import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
8
8
  import { DeleteMessageReactionCommand, } from "./commands/DeleteMessageReactionCommand";
9
+ import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
9
10
  import { GetChannelCommand, } from "./commands/GetChannelCommand";
10
11
  import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
11
12
  import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
@@ -43,6 +44,7 @@ const commands = {
43
44
  DeleteChannelMemberCommand,
44
45
  DeleteMessageCommand,
45
46
  DeleteMessageReactionCommand,
47
+ DescribeEventCommand,
46
48
  GetChannelCommand,
47
49
  GetChannelMemberCommand,
48
50
  GetDirectChannelIdCommand,
@@ -0,0 +1,17 @@
1
+ import { de_DescribeEventCommand, se_DescribeEventCommand, } 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 DescribeEventCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "DescribeEvent", {})
12
+ .n("ConversationsClient", "DescribeEventCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DescribeEventCommand)
15
+ .de(de_DescribeEventCommand)
16
+ .build() {
17
+ }
@@ -5,6 +5,7 @@ export * from "./DeleteChannelCommand";
5
5
  export * from "./DeleteChannelMemberCommand";
6
6
  export * from "./DeleteMessageCommand";
7
7
  export * from "./DeleteMessageReactionCommand";
8
+ export * from "./DescribeEventCommand";
8
9
  export * from "./GetChannelCommand";
9
10
  export * from "./GetChannelMemberCommand";
10
11
  export * from "./GetDirectChannelIdCommand";
@@ -68,9 +68,6 @@ export const ChannelContextEventAttendeeStatus = {
68
68
  export const ChannelContextSource = {
69
69
  KITE: "kite",
70
70
  };
71
- export const ChannelWhatsAppStatus = {
72
- CHANNEL_CLOSED: "24h_channel_closed",
73
- };
74
71
  export class ChannelAlreadyExistException extends __BaseException {
75
72
  constructor(opts) {
76
73
  super({
@@ -122,6 +119,26 @@ export const ReactionType = {
122
119
  THUMBSUP: "thumbsup",
123
120
  WHITE_CHECK_MARK: "white_check_mark",
124
121
  };
122
+ export const WebhookEventType = {
123
+ CHANNEL_CREATED: "chat:channel:created",
124
+ CHANNEL_UPDATED: "chat:channel:updated",
125
+ MEMBER_ADDED: "chat:member:added",
126
+ MEMBER_REMOVED: "chat:member:removed",
127
+ MESSAGE_DELETED: "chat:message:deleted",
128
+ MESSAGE_NEW: "chat:message:new",
129
+ MESSAGE_UPDATED: "chat:message:updated",
130
+ REACTION_DELETED: "chat:reaction:deleted",
131
+ REACTION_NEW: "chat:reaction:new",
132
+ };
133
+ export const MessageSmsStatus = {
134
+ DELIVERED: "delivered",
135
+ ERROR: "error",
136
+ SENT: "sent",
137
+ TRYING: "trying",
138
+ };
139
+ export const MessageType = {
140
+ REGULAR: "regular",
141
+ };
125
142
  export class FileNotFoundException extends __BaseException {
126
143
  constructor(opts) {
127
144
  super({
@@ -134,21 +151,6 @@ export class FileNotFoundException extends __BaseException {
134
151
  Object.setPrototypeOf(this, FileNotFoundException.prototype);
135
152
  }
136
153
  }
137
- export const MessageSmsStatus = {
138
- DELIVERED: "delivered",
139
- ERROR: "error",
140
- SENT: "sent",
141
- TRYING: "trying",
142
- };
143
- export const MessageType = {
144
- REGULAR: "regular",
145
- };
146
- export const MessageWhatsAppStatus = {
147
- DELIVERED: "delivered",
148
- ERROR: "error",
149
- SENT: "sent",
150
- TRYING: "trying",
151
- };
152
154
  export const GroupChannelUnsetOptions = {
153
155
  ACCESS: "access",
154
156
  BROADCAST: "broadcast",
@@ -134,6 +134,19 @@ export const se_DeleteMessageReactionCommand = async (input, context) => {
134
134
  .b(body);
135
135
  return b.build();
136
136
  };
137
+ export const se_DescribeEventCommand = async (input, context) => {
138
+ const b = rb(input, context);
139
+ const headers = {
140
+ 'content-type': 'application/json',
141
+ };
142
+ b.bp("/v2/conversations/describe");
143
+ let body;
144
+ body = "";
145
+ b.m("POST")
146
+ .h(headers)
147
+ .b(body);
148
+ return b.build();
149
+ };
137
150
  export const se_GetChannelCommand = async (input, context) => {
138
151
  const b = rb(input, context);
139
152
  const headers = {};
@@ -707,6 +720,28 @@ export const de_DeleteMessageReactionCommand = async (output, context) => {
707
720
  await collectBody(output.body, context);
708
721
  return contents;
709
722
  };
723
+ export const de_DescribeEventCommand = async (output, context) => {
724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
725
+ return de_CommandError(output, context);
726
+ }
727
+ const contents = map({
728
+ $metadata: deserializeMetadata(output),
729
+ });
730
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
731
+ const doc = take(data, {
732
+ 'WebhookChatChannelCreatedEvent': _json,
733
+ 'WebhookChatChannelUpdatedEvent': _json,
734
+ 'WebhookChatMemberAddedEvent': _json,
735
+ 'WebhookChatMemberRemovedEvent': _json,
736
+ 'WebhookChatMessageDeletedEvent': _json,
737
+ 'WebhookChatMessageNewEvent': _json,
738
+ 'WebhookChatMessageUpdatedEvent': _json,
739
+ 'WebhookChatReactionDeletedEvent': _json,
740
+ 'WebhookChatReactionNewEvent': _json,
741
+ });
742
+ Object.assign(contents, doc);
743
+ return contents;
744
+ };
710
745
  export const de_GetChannelCommand = async (output, context) => {
711
746
  if (output.statusCode !== 200 && output.statusCode >= 300) {
712
747
  return de_CommandError(output, context);
@@ -6,6 +6,7 @@ import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./command
6
6
  import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
7
7
  import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
8
8
  import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput } from "./commands/DeleteMessageReactionCommand";
9
+ import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
9
10
  import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
10
11
  import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
11
12
  import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
@@ -79,6 +80,13 @@ export interface Conversations {
79
80
  deleteMessageReaction(args: DeleteMessageReactionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMessageReactionCommandOutput>;
80
81
  deleteMessageReaction(args: DeleteMessageReactionCommandInput, cb: (err: any, data?: DeleteMessageReactionCommandOutput) => void): void;
81
82
  deleteMessageReaction(args: DeleteMessageReactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMessageReactionCommandOutput) => void): void;
83
+ /**
84
+ * @see {@link DescribeEventCommand}
85
+ */
86
+ describeEvent(): Promise<DescribeEventCommandOutput>;
87
+ describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
88
+ describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
89
+ describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
82
90
  /**
83
91
  * @see {@link GetChannelCommand}
84
92
  */
@@ -5,6 +5,7 @@ import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./command
5
5
  import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
6
6
  import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
7
7
  import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput } from "./commands/DeleteMessageReactionCommand";
8
+ import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
8
9
  import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
9
10
  import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
10
11
  import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
@@ -43,11 +44,11 @@ export { __Client };
43
44
  /**
44
45
  * @public
45
46
  */
46
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
47
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
47
48
  /**
48
49
  * @public
49
50
  */
50
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
51
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
51
52
  /**
52
53
  * @public
53
54
  */
@@ -115,8 +115,6 @@ declare const CreateGroupChannelCommand_base: {
115
115
  * // telephony: true || false,
116
116
  * // sms: true || false,
117
117
  * // mms: true || false,
118
- * // whatsapp: true || false,
119
- * // whatsappStatus: "24h_channel_closed",
120
118
  * // broadcast: true || false,
121
119
  * // external: true || false,
122
120
  * // channelId: "STRING_VALUE", // required