@wildix/xbees-conversations-client 1.0.64 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Conversations.js +0 -12
- package/dist-cjs/commands/index.js +0 -6
- package/dist-cjs/models/models_0.js +30 -103
- package/dist-cjs/protocols/Aws_restJson1.js +2 -230
- package/dist-es/Conversations.js +0 -12
- package/dist-es/commands/index.js +0 -6
- package/dist-es/models/models_0.js +28 -99
- package/dist-es/protocols/Aws_restJson1.js +1 -216
- package/dist-types/Conversations.d.ts +0 -42
- package/dist-types/ConversationsClient.d.ts +2 -8
- package/dist-types/commands/DescribeEventCommand.d.ts +19 -274
- package/dist-types/commands/GetMessageCommand.d.ts +23 -84
- package/dist-types/commands/ListMessagesCommand.d.ts +23 -84
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -169
- package/dist-types/commands/SendGiphyCommand.d.ts +23 -84
- package/dist-types/commands/SendMessageCommand.d.ts +46 -168
- package/dist-types/commands/UpdateMessageCommand.d.ts +46 -169
- package/dist-types/commands/index.d.ts +0 -6
- package/dist-types/models/models_0.d.ts +91 -597
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
- package/dist-types/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/runtimeConfig.d.ts +0 -1
- package/dist-types/runtimeConfig.native.d.ts +0 -1
- package/package.json +1 -1
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +0 -21
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +0 -21
- package/dist-cjs/commands/PinMessageCommand.js +0 -21
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +0 -21
- package/dist-cjs/commands/TriggerMessageActionCommand.js +0 -21
- package/dist-cjs/commands/UnpinMessageCommand.js +0 -21
- package/dist-es/commands/GetActionTriggerResultCommand.js +0 -17
- package/dist-es/commands/ListPinnedMessagesCommand.js +0 -17
- package/dist-es/commands/PinMessageCommand.js +0 -17
- package/dist-es/commands/SendActionTriggerResultCommand.js +0 -17
- package/dist-es/commands/TriggerMessageActionCommand.js +0 -17
- package/dist-es/commands/UnpinMessageCommand.js +0 -17
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +0 -70
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +0 -261
- package/dist-types/commands/PinMessageCommand.d.ts +0 -73
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +0 -68
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +0 -75
- package/dist-types/commands/UnpinMessageCommand.d.ts +0 -71
|
@@ -12,7 +12,6 @@ const DeleteInboxTagCommand_1 = require("./commands/DeleteInboxTagCommand");
|
|
|
12
12
|
const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
|
|
13
13
|
const DeleteMessageReactionCommand_1 = require("./commands/DeleteMessageReactionCommand");
|
|
14
14
|
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
15
|
-
const GetActionTriggerResultCommand_1 = require("./commands/GetActionTriggerResultCommand");
|
|
16
15
|
const GetChannelCommand_1 = require("./commands/GetChannelCommand");
|
|
17
16
|
const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
|
|
18
17
|
const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
|
|
@@ -31,15 +30,12 @@ const ListInboxTaggedChannelsCommand_1 = require("./commands/ListInboxTaggedChan
|
|
|
31
30
|
const ListInboxTagsCommand_1 = require("./commands/ListInboxTagsCommand");
|
|
32
31
|
const ListMessageReactionsCommand_1 = require("./commands/ListMessageReactionsCommand");
|
|
33
32
|
const ListMessagesCommand_1 = require("./commands/ListMessagesCommand");
|
|
34
|
-
const ListPinnedMessagesCommand_1 = require("./commands/ListPinnedMessagesCommand");
|
|
35
33
|
const MarkReadCommand_1 = require("./commands/MarkReadCommand");
|
|
36
34
|
const MarkUnreadCommand_1 = require("./commands/MarkUnreadCommand");
|
|
37
35
|
const PartialUpdateChannelCommand_1 = require("./commands/PartialUpdateChannelCommand");
|
|
38
36
|
const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCommand");
|
|
39
37
|
const PinChannelCommand_1 = require("./commands/PinChannelCommand");
|
|
40
|
-
const PinMessageCommand_1 = require("./commands/PinMessageCommand");
|
|
41
38
|
const ScheduleExternalFlagAdjustmentJobCommand_1 = require("./commands/ScheduleExternalFlagAdjustmentJobCommand");
|
|
42
|
-
const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerResultCommand");
|
|
43
39
|
const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
|
|
44
40
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
45
41
|
const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
|
|
@@ -47,9 +43,7 @@ const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
|
|
|
47
43
|
const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
|
|
48
44
|
const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
|
|
49
45
|
const TagChannelCommand_1 = require("./commands/TagChannelCommand");
|
|
50
|
-
const TriggerMessageActionCommand_1 = require("./commands/TriggerMessageActionCommand");
|
|
51
46
|
const UnpinChannelCommand_1 = require("./commands/UnpinChannelCommand");
|
|
52
|
-
const UnpinMessageCommand_1 = require("./commands/UnpinMessageCommand");
|
|
53
47
|
const UntagChannelCommand_1 = require("./commands/UntagChannelCommand");
|
|
54
48
|
const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
|
|
55
49
|
const UpdateInboxTagCommand_1 = require("./commands/UpdateInboxTagCommand");
|
|
@@ -67,7 +61,6 @@ const commands = {
|
|
|
67
61
|
DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
|
|
68
62
|
DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
|
|
69
63
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
70
|
-
GetActionTriggerResultCommand: GetActionTriggerResultCommand_1.GetActionTriggerResultCommand,
|
|
71
64
|
GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
|
|
72
65
|
GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
|
|
73
66
|
GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
|
|
@@ -86,15 +79,12 @@ const commands = {
|
|
|
86
79
|
ListInboxTagsCommand: ListInboxTagsCommand_1.ListInboxTagsCommand,
|
|
87
80
|
ListMessageReactionsCommand: ListMessageReactionsCommand_1.ListMessageReactionsCommand,
|
|
88
81
|
ListMessagesCommand: ListMessagesCommand_1.ListMessagesCommand,
|
|
89
|
-
ListPinnedMessagesCommand: ListPinnedMessagesCommand_1.ListPinnedMessagesCommand,
|
|
90
82
|
MarkReadCommand: MarkReadCommand_1.MarkReadCommand,
|
|
91
83
|
MarkUnreadCommand: MarkUnreadCommand_1.MarkUnreadCommand,
|
|
92
84
|
PartialUpdateChannelCommand: PartialUpdateChannelCommand_1.PartialUpdateChannelCommand,
|
|
93
85
|
PartialUpdateMessageCommand: PartialUpdateMessageCommand_1.PartialUpdateMessageCommand,
|
|
94
86
|
PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
|
|
95
|
-
PinMessageCommand: PinMessageCommand_1.PinMessageCommand,
|
|
96
87
|
ScheduleExternalFlagAdjustmentJobCommand: ScheduleExternalFlagAdjustmentJobCommand_1.ScheduleExternalFlagAdjustmentJobCommand,
|
|
97
|
-
SendActionTriggerResultCommand: SendActionTriggerResultCommand_1.SendActionTriggerResultCommand,
|
|
98
88
|
SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
|
|
99
89
|
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
100
90
|
SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
|
|
@@ -102,9 +92,7 @@ const commands = {
|
|
|
102
92
|
SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
|
|
103
93
|
ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
|
|
104
94
|
TagChannelCommand: TagChannelCommand_1.TagChannelCommand,
|
|
105
|
-
TriggerMessageActionCommand: TriggerMessageActionCommand_1.TriggerMessageActionCommand,
|
|
106
95
|
UnpinChannelCommand: UnpinChannelCommand_1.UnpinChannelCommand,
|
|
107
|
-
UnpinMessageCommand: UnpinMessageCommand_1.UnpinMessageCommand,
|
|
108
96
|
UntagChannelCommand: UntagChannelCommand_1.UntagChannelCommand,
|
|
109
97
|
UpdateChannelCommand: UpdateChannelCommand_1.UpdateChannelCommand,
|
|
110
98
|
UpdateInboxTagCommand: UpdateInboxTagCommand_1.UpdateInboxTagCommand,
|
|
@@ -11,7 +11,6 @@ tslib_1.__exportStar(require("./DeleteInboxTagCommand"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./GetActionTriggerResultCommand"), exports);
|
|
15
14
|
tslib_1.__exportStar(require("./GetChannelCommand"), exports);
|
|
16
15
|
tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
|
|
17
16
|
tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
|
|
@@ -30,15 +29,12 @@ tslib_1.__exportStar(require("./ListInboxTaggedChannelsCommand"), exports);
|
|
|
30
29
|
tslib_1.__exportStar(require("./ListInboxTagsCommand"), exports);
|
|
31
30
|
tslib_1.__exportStar(require("./ListMessageReactionsCommand"), exports);
|
|
32
31
|
tslib_1.__exportStar(require("./ListMessagesCommand"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./ListPinnedMessagesCommand"), exports);
|
|
34
32
|
tslib_1.__exportStar(require("./MarkReadCommand"), exports);
|
|
35
33
|
tslib_1.__exportStar(require("./MarkUnreadCommand"), exports);
|
|
36
34
|
tslib_1.__exportStar(require("./PartialUpdateChannelCommand"), exports);
|
|
37
35
|
tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
|
|
38
36
|
tslib_1.__exportStar(require("./PinChannelCommand"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./PinMessageCommand"), exports);
|
|
40
37
|
tslib_1.__exportStar(require("./ScheduleExternalFlagAdjustmentJobCommand"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
|
|
42
38
|
tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
|
|
43
39
|
tslib_1.__exportStar(require("./SendMessageCommand"), exports);
|
|
44
40
|
tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
|
|
@@ -46,9 +42,7 @@ tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
|
|
|
46
42
|
tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
|
|
47
43
|
tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
|
|
48
44
|
tslib_1.__exportStar(require("./TagChannelCommand"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./TriggerMessageActionCommand"), exports);
|
|
50
45
|
tslib_1.__exportStar(require("./UnpinChannelCommand"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./UnpinMessageCommand"), exports);
|
|
52
46
|
tslib_1.__exportStar(require("./UntagChannelCommand"), exports);
|
|
53
47
|
tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
|
|
54
48
|
tslib_1.__exportStar(require("./UpdateInboxTagCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = 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
|
constructor(opts) {
|
|
@@ -45,38 +45,28 @@ class RateLimitExceededException extends ConversationsServiceException_1.Convers
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.RateLimitExceededException = RateLimitExceededException;
|
|
48
|
+
exports.ConversationFileCategory = {
|
|
49
|
+
GENERAL: "channels",
|
|
50
|
+
RECORDING: "recordings",
|
|
51
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
52
|
+
};
|
|
53
|
+
class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "FileNotFoundException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts
|
|
59
|
+
});
|
|
60
|
+
this.name = "FileNotFoundException";
|
|
61
|
+
this.$fault = "client";
|
|
62
|
+
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.FileNotFoundException = FileNotFoundException;
|
|
48
66
|
exports.ChannelType = {
|
|
49
67
|
DIRECT: "direct",
|
|
50
68
|
GROUP: "group",
|
|
51
69
|
};
|
|
52
|
-
var ButtonHandler;
|
|
53
|
-
(function (ButtonHandler) {
|
|
54
|
-
ButtonHandler.visit = (value, visitor) => {
|
|
55
|
-
if (value.link !== undefined)
|
|
56
|
-
return visitor.link(value.link);
|
|
57
|
-
if (value.reply !== undefined)
|
|
58
|
-
return visitor.reply(value.reply);
|
|
59
|
-
if (value.action !== undefined)
|
|
60
|
-
return visitor.action(value.action);
|
|
61
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
62
|
-
};
|
|
63
|
-
})(ButtonHandler = exports.ButtonHandler || (exports.ButtonHandler = {}));
|
|
64
|
-
exports.ButtonVariant = {
|
|
65
|
-
CONTAINED: "contained",
|
|
66
|
-
OUTLINED: "outlined",
|
|
67
|
-
};
|
|
68
|
-
var ActionElement;
|
|
69
|
-
(function (ActionElement) {
|
|
70
|
-
ActionElement.visit = (value, visitor) => {
|
|
71
|
-
if (value.button !== undefined)
|
|
72
|
-
return visitor.button(value.button);
|
|
73
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
74
|
-
};
|
|
75
|
-
})(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
|
|
76
|
-
exports.ActionTriggerStatus = {
|
|
77
|
-
COMPLETED: "completed",
|
|
78
|
-
PENDING: "pending",
|
|
79
|
-
};
|
|
80
70
|
exports.ChannelMemberRole = {
|
|
81
71
|
MEMBER: "member",
|
|
82
72
|
SUPERVISOR: "supervisor",
|
|
@@ -136,11 +126,6 @@ class ChannelAlreadyExistException extends ConversationsServiceException_1.Conve
|
|
|
136
126
|
}
|
|
137
127
|
}
|
|
138
128
|
exports.ChannelAlreadyExistException = ChannelAlreadyExistException;
|
|
139
|
-
exports.ConversationFileCategory = {
|
|
140
|
-
GENERAL: "channels",
|
|
141
|
-
RECORDING: "recordings",
|
|
142
|
-
WIZY_RECORDING: "wizyconfRecordings",
|
|
143
|
-
};
|
|
144
129
|
class TagsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
145
130
|
constructor(opts) {
|
|
146
131
|
super({
|
|
@@ -191,24 +176,17 @@ exports.ReactionType = {
|
|
|
191
176
|
THUMBSUP: "thumbsup",
|
|
192
177
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
193
178
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (value.mention !== undefined)
|
|
206
|
-
return visitor.mention(value.mention);
|
|
207
|
-
if (value.actions !== undefined)
|
|
208
|
-
return visitor.actions(value.actions);
|
|
209
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
210
|
-
};
|
|
211
|
-
})(Element = exports.Element || (exports.Element = {}));
|
|
179
|
+
exports.WebhookEventType = {
|
|
180
|
+
CHANNEL_CREATED: "chat:channel:created",
|
|
181
|
+
CHANNEL_UPDATED: "chat:channel:updated",
|
|
182
|
+
MEMBER_ADDED: "chat:member:added",
|
|
183
|
+
MEMBER_REMOVED: "chat:member:removed",
|
|
184
|
+
MESSAGE_DELETED: "chat:message:deleted",
|
|
185
|
+
MESSAGE_NEW: "chat:message:new",
|
|
186
|
+
MESSAGE_UPDATED: "chat:message:updated",
|
|
187
|
+
REACTION_DELETED: "chat:reaction:deleted",
|
|
188
|
+
REACTION_NEW: "chat:reaction:new",
|
|
189
|
+
};
|
|
212
190
|
exports.MessageSmsStatus = {
|
|
213
191
|
DELIVERED: "delivered",
|
|
214
192
|
ERROR: "error",
|
|
@@ -225,44 +203,6 @@ exports.MessageWhatsAppStatus = {
|
|
|
225
203
|
SENT: "sent",
|
|
226
204
|
TRYING: "trying",
|
|
227
205
|
};
|
|
228
|
-
exports.WebhookEventType = {
|
|
229
|
-
ACTION_TRIGGERED: "chat:action:triggered",
|
|
230
|
-
CHANNEL_CREATED: "chat:channel:created",
|
|
231
|
-
CHANNEL_UPDATED: "chat:channel:updated",
|
|
232
|
-
MEMBER_ADDED: "chat:member:added",
|
|
233
|
-
MEMBER_REMOVED: "chat:member:removed",
|
|
234
|
-
MESSAGE_DELETED: "chat:message:deleted",
|
|
235
|
-
MESSAGE_NEW: "chat:message:new",
|
|
236
|
-
MESSAGE_UPDATED: "chat:message:updated",
|
|
237
|
-
REACTION_DELETED: "chat:reaction:deleted",
|
|
238
|
-
REACTION_NEW: "chat:reaction:new",
|
|
239
|
-
};
|
|
240
|
-
class TriggerNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
241
|
-
constructor(opts) {
|
|
242
|
-
super({
|
|
243
|
-
name: "TriggerNotFoundException",
|
|
244
|
-
$fault: "client",
|
|
245
|
-
...opts
|
|
246
|
-
});
|
|
247
|
-
this.name = "TriggerNotFoundException";
|
|
248
|
-
this.$fault = "client";
|
|
249
|
-
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
exports.TriggerNotFoundException = TriggerNotFoundException;
|
|
253
|
-
class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
254
|
-
constructor(opts) {
|
|
255
|
-
super({
|
|
256
|
-
name: "FileNotFoundException",
|
|
257
|
-
$fault: "client",
|
|
258
|
-
...opts
|
|
259
|
-
});
|
|
260
|
-
this.name = "FileNotFoundException";
|
|
261
|
-
this.$fault = "client";
|
|
262
|
-
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
exports.FileNotFoundException = FileNotFoundException;
|
|
266
206
|
class TagNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
267
207
|
constructor(opts) {
|
|
268
208
|
super({
|
|
@@ -342,16 +282,3 @@ class TaggedChannelsLimitReachedException extends ConversationsServiceException_
|
|
|
342
282
|
}
|
|
343
283
|
}
|
|
344
284
|
exports.TaggedChannelsLimitReachedException = TaggedChannelsLimitReachedException;
|
|
345
|
-
class MessageActionNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
346
|
-
constructor(opts) {
|
|
347
|
-
super({
|
|
348
|
-
name: "MessageActionNotFoundException",
|
|
349
|
-
$fault: "client",
|
|
350
|
-
...opts
|
|
351
|
-
});
|
|
352
|
-
this.name = "MessageActionNotFoundException";
|
|
353
|
-
this.$fault = "client";
|
|
354
|
-
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
exports.MessageActionNotFoundException = MessageActionNotFoundException;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = void 0;
|
|
3
|
+
exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinChannelCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListInboxTagsCommand = exports.se_ListInboxTaggedChannelsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxStateCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinChannelCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListInboxTagsCommand = exports.de_ListInboxTaggedChannelsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxStateCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateInboxTagCommand = void 0;
|
|
6
5
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
7
6
|
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const core_1 = require("@smithy/core");
|
|
@@ -197,22 +196,6 @@ const se_DescribeEventCommand = async (input, context) => {
|
|
|
197
196
|
return b.build();
|
|
198
197
|
};
|
|
199
198
|
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
200
|
-
const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
201
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
202
|
-
const headers = {};
|
|
203
|
-
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
204
|
-
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
205
|
-
const query = (0, smithy_client_1.map)({
|
|
206
|
-
[_u]: [, input[_uI]],
|
|
207
|
-
});
|
|
208
|
-
let body;
|
|
209
|
-
b.m("GET")
|
|
210
|
-
.h(headers)
|
|
211
|
-
.q(query)
|
|
212
|
-
.b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
exports.se_GetActionTriggerResultCommand = se_GetActionTriggerResultCommand;
|
|
216
199
|
const se_GetChannelCommand = async (input, context) => {
|
|
217
200
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
218
201
|
const headers = {};
|
|
@@ -518,23 +501,6 @@ const se_ListMessagesCommand = async (input, context) => {
|
|
|
518
501
|
return b.build();
|
|
519
502
|
};
|
|
520
503
|
exports.se_ListMessagesCommand = se_ListMessagesCommand;
|
|
521
|
-
const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
522
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
523
|
-
const headers = {};
|
|
524
|
-
b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
|
|
525
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
526
|
-
const query = (0, smithy_client_1.map)({
|
|
527
|
-
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
528
|
-
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
529
|
-
});
|
|
530
|
-
let body;
|
|
531
|
-
b.m("GET")
|
|
532
|
-
.h(headers)
|
|
533
|
-
.q(query)
|
|
534
|
-
.b(body);
|
|
535
|
-
return b.build();
|
|
536
|
-
};
|
|
537
|
-
exports.se_ListPinnedMessagesCommand = se_ListPinnedMessagesCommand;
|
|
538
504
|
const se_MarkReadCommand = async (input, context) => {
|
|
539
505
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
540
506
|
const headers = {};
|
|
@@ -610,7 +576,6 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
610
576
|
let body;
|
|
611
577
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
612
578
|
'set': _ => (0, smithy_client_1._json)(_),
|
|
613
|
-
'silent': [],
|
|
614
579
|
'unset': _ => (0, smithy_client_1._json)(_),
|
|
615
580
|
}));
|
|
616
581
|
b.m("PATCH")
|
|
@@ -637,30 +602,6 @@ const se_PinChannelCommand = async (input, context) => {
|
|
|
637
602
|
return b.build();
|
|
638
603
|
};
|
|
639
604
|
exports.se_PinChannelCommand = se_PinChannelCommand;
|
|
640
|
-
const se_PinMessageCommand = async (input, context) => {
|
|
641
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
642
|
-
const headers = {
|
|
643
|
-
'content-type': 'application/json',
|
|
644
|
-
};
|
|
645
|
-
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
646
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
647
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
648
|
-
const query = (0, smithy_client_1.map)({
|
|
649
|
-
[_u]: [, input[_uI]],
|
|
650
|
-
});
|
|
651
|
-
let body;
|
|
652
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
653
|
-
'expiresAfter': [],
|
|
654
|
-
'expiresTill': [],
|
|
655
|
-
'silent': [],
|
|
656
|
-
}));
|
|
657
|
-
b.m("PUT")
|
|
658
|
-
.h(headers)
|
|
659
|
-
.q(query)
|
|
660
|
-
.b(body);
|
|
661
|
-
return b.build();
|
|
662
|
-
};
|
|
663
|
-
exports.se_PinMessageCommand = se_PinMessageCommand;
|
|
664
605
|
const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
665
606
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
666
607
|
const headers = {
|
|
@@ -677,24 +618,6 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
|
677
618
|
return b.build();
|
|
678
619
|
};
|
|
679
620
|
exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
|
|
680
|
-
const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
681
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
682
|
-
const headers = {
|
|
683
|
-
'content-type': 'application/json',
|
|
684
|
-
};
|
|
685
|
-
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
686
|
-
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
687
|
-
let body;
|
|
688
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
689
|
-
'result': _ => (0, smithy_client_1._json)(_),
|
|
690
|
-
'status': [],
|
|
691
|
-
}));
|
|
692
|
-
b.m("POST")
|
|
693
|
-
.h(headers)
|
|
694
|
-
.b(body);
|
|
695
|
-
return b.build();
|
|
696
|
-
};
|
|
697
|
-
exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
|
|
698
621
|
const se_SendGiphyCommand = async (input, context) => {
|
|
699
622
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
700
623
|
const headers = {
|
|
@@ -730,7 +653,6 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
730
653
|
let body;
|
|
731
654
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
732
655
|
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
733
|
-
'elements': _ => (0, smithy_client_1._json)(_),
|
|
734
656
|
'forward': _ => (0, smithy_client_1._json)(_),
|
|
735
657
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
736
658
|
'messageId': [],
|
|
@@ -832,24 +754,6 @@ const se_TagChannelCommand = async (input, context) => {
|
|
|
832
754
|
return b.build();
|
|
833
755
|
};
|
|
834
756
|
exports.se_TagChannelCommand = se_TagChannelCommand;
|
|
835
|
-
const se_TriggerMessageActionCommand = async (input, context) => {
|
|
836
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
837
|
-
const headers = {};
|
|
838
|
-
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
839
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
840
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
841
|
-
b.p('actionId', () => input.actionId, '{actionId}', false);
|
|
842
|
-
const query = (0, smithy_client_1.map)({
|
|
843
|
-
[_u]: [, input[_uI]],
|
|
844
|
-
});
|
|
845
|
-
let body;
|
|
846
|
-
b.m("POST")
|
|
847
|
-
.h(headers)
|
|
848
|
-
.q(query)
|
|
849
|
-
.b(body);
|
|
850
|
-
return b.build();
|
|
851
|
-
};
|
|
852
|
-
exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
|
|
853
757
|
const se_UnpinChannelCommand = async (input, context) => {
|
|
854
758
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
855
759
|
const headers = {};
|
|
@@ -866,24 +770,6 @@ const se_UnpinChannelCommand = async (input, context) => {
|
|
|
866
770
|
return b.build();
|
|
867
771
|
};
|
|
868
772
|
exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
|
|
869
|
-
const se_UnpinMessageCommand = async (input, context) => {
|
|
870
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
871
|
-
const headers = {};
|
|
872
|
-
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
873
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
874
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
875
|
-
const query = (0, smithy_client_1.map)({
|
|
876
|
-
[_u]: [, input[_uI]],
|
|
877
|
-
[_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
|
|
878
|
-
});
|
|
879
|
-
let body;
|
|
880
|
-
b.m("DELETE")
|
|
881
|
-
.h(headers)
|
|
882
|
-
.q(query)
|
|
883
|
-
.b(body);
|
|
884
|
-
return b.build();
|
|
885
|
-
};
|
|
886
|
-
exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
|
|
887
773
|
const se_UntagChannelCommand = async (input, context) => {
|
|
888
774
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
889
775
|
const headers = {
|
|
@@ -967,11 +853,9 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
967
853
|
let body;
|
|
968
854
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
969
855
|
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
970
|
-
'elements': _ => (0, smithy_client_1._json)(_),
|
|
971
856
|
'forward': _ => (0, smithy_client_1._json)(_),
|
|
972
857
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
973
858
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
974
|
-
'silent': [],
|
|
975
859
|
'text': [],
|
|
976
860
|
}));
|
|
977
861
|
b.m("PUT")
|
|
@@ -1129,7 +1013,6 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
1129
1013
|
});
|
|
1130
1014
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1131
1015
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1132
|
-
'WebhookChatActionTriggeredEvent': smithy_client_1._json,
|
|
1133
1016
|
'WebhookChatChannelCreatedEvent': smithy_client_1._json,
|
|
1134
1017
|
'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
|
|
1135
1018
|
'WebhookChatMemberAddedEvent': smithy_client_1._json,
|
|
@@ -1144,22 +1027,6 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
1144
1027
|
return contents;
|
|
1145
1028
|
};
|
|
1146
1029
|
exports.de_DescribeEventCommand = de_DescribeEventCommand;
|
|
1147
|
-
const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
1148
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1149
|
-
return de_CommandError(output, context);
|
|
1150
|
-
}
|
|
1151
|
-
const contents = (0, smithy_client_1.map)({
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
});
|
|
1154
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1155
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1156
|
-
'result': smithy_client_1._json,
|
|
1157
|
-
'status': smithy_client_1.expectString,
|
|
1158
|
-
});
|
|
1159
|
-
Object.assign(contents, doc);
|
|
1160
|
-
return contents;
|
|
1161
|
-
};
|
|
1162
|
-
exports.de_GetActionTriggerResultCommand = de_GetActionTriggerResultCommand;
|
|
1163
1030
|
const de_GetChannelCommand = async (output, context) => {
|
|
1164
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1165
1032
|
return de_CommandError(output, context);
|
|
@@ -1425,21 +1292,6 @@ const de_ListMessagesCommand = async (output, context) => {
|
|
|
1425
1292
|
return contents;
|
|
1426
1293
|
};
|
|
1427
1294
|
exports.de_ListMessagesCommand = de_ListMessagesCommand;
|
|
1428
|
-
const de_ListPinnedMessagesCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return de_CommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const contents = (0, smithy_client_1.map)({
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
});
|
|
1435
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1436
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1437
|
-
'messages': smithy_client_1._json,
|
|
1438
|
-
});
|
|
1439
|
-
Object.assign(contents, doc);
|
|
1440
|
-
return contents;
|
|
1441
|
-
};
|
|
1442
|
-
exports.de_ListPinnedMessagesCommand = de_ListPinnedMessagesCommand;
|
|
1443
1295
|
const de_MarkReadCommand = async (output, context) => {
|
|
1444
1296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
1297
|
return de_CommandError(output, context);
|
|
@@ -1503,17 +1355,6 @@ const de_PinChannelCommand = async (output, context) => {
|
|
|
1503
1355
|
return contents;
|
|
1504
1356
|
};
|
|
1505
1357
|
exports.de_PinChannelCommand = de_PinChannelCommand;
|
|
1506
|
-
const de_PinMessageCommand = async (output, context) => {
|
|
1507
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1508
|
-
return de_CommandError(output, context);
|
|
1509
|
-
}
|
|
1510
|
-
const contents = (0, smithy_client_1.map)({
|
|
1511
|
-
$metadata: deserializeMetadata(output),
|
|
1512
|
-
});
|
|
1513
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1514
|
-
return contents;
|
|
1515
|
-
};
|
|
1516
|
-
exports.de_PinMessageCommand = de_PinMessageCommand;
|
|
1517
1358
|
const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
1518
1359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
1360
|
return de_CommandError(output, context);
|
|
@@ -1525,17 +1366,6 @@ const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
|
1525
1366
|
return contents;
|
|
1526
1367
|
};
|
|
1527
1368
|
exports.de_ScheduleExternalFlagAdjustmentJobCommand = de_ScheduleExternalFlagAdjustmentJobCommand;
|
|
1528
|
-
const de_SendActionTriggerResultCommand = async (output, context) => {
|
|
1529
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1530
|
-
return de_CommandError(output, context);
|
|
1531
|
-
}
|
|
1532
|
-
const contents = (0, smithy_client_1.map)({
|
|
1533
|
-
$metadata: deserializeMetadata(output),
|
|
1534
|
-
});
|
|
1535
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1536
|
-
return contents;
|
|
1537
|
-
};
|
|
1538
|
-
exports.de_SendActionTriggerResultCommand = de_SendActionTriggerResultCommand;
|
|
1539
1369
|
const de_SendGiphyCommand = async (output, context) => {
|
|
1540
1370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
1371
|
return de_CommandError(output, context);
|
|
@@ -1621,21 +1451,6 @@ const de_TagChannelCommand = async (output, context) => {
|
|
|
1621
1451
|
return contents;
|
|
1622
1452
|
};
|
|
1623
1453
|
exports.de_TagChannelCommand = de_TagChannelCommand;
|
|
1624
|
-
const de_TriggerMessageActionCommand = async (output, context) => {
|
|
1625
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
|
-
return de_CommandError(output, context);
|
|
1627
|
-
}
|
|
1628
|
-
const contents = (0, smithy_client_1.map)({
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
});
|
|
1631
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1632
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1633
|
-
'triggerId': smithy_client_1.expectString,
|
|
1634
|
-
});
|
|
1635
|
-
Object.assign(contents, doc);
|
|
1636
|
-
return contents;
|
|
1637
|
-
};
|
|
1638
|
-
exports.de_TriggerMessageActionCommand = de_TriggerMessageActionCommand;
|
|
1639
1454
|
const de_UnpinChannelCommand = async (output, context) => {
|
|
1640
1455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1641
1456
|
return de_CommandError(output, context);
|
|
@@ -1647,17 +1462,6 @@ const de_UnpinChannelCommand = async (output, context) => {
|
|
|
1647
1462
|
return contents;
|
|
1648
1463
|
};
|
|
1649
1464
|
exports.de_UnpinChannelCommand = de_UnpinChannelCommand;
|
|
1650
|
-
const de_UnpinMessageCommand = async (output, context) => {
|
|
1651
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
|
-
return de_CommandError(output, context);
|
|
1653
|
-
}
|
|
1654
|
-
const contents = (0, smithy_client_1.map)({
|
|
1655
|
-
$metadata: deserializeMetadata(output),
|
|
1656
|
-
});
|
|
1657
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1658
|
-
return contents;
|
|
1659
|
-
};
|
|
1660
|
-
exports.de_UnpinMessageCommand = de_UnpinMessageCommand;
|
|
1661
1465
|
const de_UntagChannelCommand = async (output, context) => {
|
|
1662
1466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1663
1467
|
return de_CommandError(output, context);
|
|
@@ -1764,9 +1568,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1764
1568
|
case "MessageNotFoundException":
|
|
1765
1569
|
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1766
1570
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "TriggerNotFoundException":
|
|
1768
|
-
case "wildix.xbees.conversations#TriggerNotFoundException":
|
|
1769
|
-
throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
|
|
1770
1571
|
case "FileNotFoundException":
|
|
1771
1572
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1772
1573
|
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1785,9 +1586,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1785
1586
|
case "TaggedChannelsLimitReachedException":
|
|
1786
1587
|
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1787
1588
|
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "MessageActionNotFoundException":
|
|
1789
|
-
case "wildix.xbees.conversations#MessageActionNotFoundException":
|
|
1790
|
-
throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
|
|
1791
1589
|
default:
|
|
1792
1590
|
const parsedBody = parsedOutput.body;
|
|
1793
1591
|
return throwDefaultError({
|
|
@@ -1933,19 +1731,6 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1933
1731
|
});
|
|
1934
1732
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1935
1733
|
};
|
|
1936
|
-
const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1937
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1938
|
-
const data = parsedOutput.body;
|
|
1939
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1940
|
-
'message': smithy_client_1.expectString,
|
|
1941
|
-
});
|
|
1942
|
-
Object.assign(contents, doc);
|
|
1943
|
-
const exception = new models_0_1.MessageActionNotFoundException({
|
|
1944
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1945
|
-
...contents
|
|
1946
|
-
});
|
|
1947
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1948
|
-
};
|
|
1949
1734
|
const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1950
1735
|
const contents = (0, smithy_client_1.map)({});
|
|
1951
1736
|
const data = parsedOutput.body;
|
|
@@ -2011,19 +1796,6 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
2011
1796
|
});
|
|
2012
1797
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2013
1798
|
};
|
|
2014
|
-
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2015
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2016
|
-
const data = parsedOutput.body;
|
|
2017
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2018
|
-
'message': smithy_client_1.expectString,
|
|
2019
|
-
});
|
|
2020
|
-
Object.assign(contents, doc);
|
|
2021
|
-
const exception = new models_0_1.TriggerNotFoundException({
|
|
2022
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2023
|
-
...contents
|
|
2024
|
-
});
|
|
2025
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2026
|
-
};
|
|
2027
1799
|
const deserializeMetadata = (output) => ({
|
|
2028
1800
|
httpStatusCode: output.statusCode,
|
|
2029
1801
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|