@wildix/xbees-conversations-client 1.0.59 → 1.0.60
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 +6 -0
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
- package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +74 -2
- package/dist-cjs/protocols/Aws_restJson1.js +135 -4
- package/dist-es/Conversations.js +6 -0
- package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
- package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
- package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +71 -1
- package/dist-es/protocols/Aws_restJson1.js +128 -3
- package/dist-types/Conversations.d.ts +21 -0
- package/dist-types/ConversationsClient.d.ts +5 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +259 -9
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -2
- package/dist-types/commands/GetMessageCommand.d.ts +84 -19
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +84 -19
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +168 -38
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +84 -19
- package/dist-types/commands/SendMessageCommand.d.ts +168 -38
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +227 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +168 -38
- package/dist-types/commands/UploadFileCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +387 -6
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ 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");
|
|
15
16
|
const GetChannelCommand_1 = require("./commands/GetChannelCommand");
|
|
16
17
|
const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
|
|
17
18
|
const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
|
|
@@ -36,6 +37,7 @@ const PartialUpdateChannelCommand_1 = require("./commands/PartialUpdateChannelCo
|
|
|
36
37
|
const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCommand");
|
|
37
38
|
const PinChannelCommand_1 = require("./commands/PinChannelCommand");
|
|
38
39
|
const ScheduleExternalFlagAdjustmentJobCommand_1 = require("./commands/ScheduleExternalFlagAdjustmentJobCommand");
|
|
40
|
+
const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerResultCommand");
|
|
39
41
|
const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
|
|
40
42
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
41
43
|
const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
|
|
@@ -43,6 +45,7 @@ const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
|
|
|
43
45
|
const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
|
|
44
46
|
const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
|
|
45
47
|
const TagChannelCommand_1 = require("./commands/TagChannelCommand");
|
|
48
|
+
const TriggerMessageActionCommand_1 = require("./commands/TriggerMessageActionCommand");
|
|
46
49
|
const UnpinChannelCommand_1 = require("./commands/UnpinChannelCommand");
|
|
47
50
|
const UntagChannelCommand_1 = require("./commands/UntagChannelCommand");
|
|
48
51
|
const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
|
|
@@ -61,6 +64,7 @@ const commands = {
|
|
|
61
64
|
DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
|
|
62
65
|
DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
|
|
63
66
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
67
|
+
GetActionTriggerResultCommand: GetActionTriggerResultCommand_1.GetActionTriggerResultCommand,
|
|
64
68
|
GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
|
|
65
69
|
GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
|
|
66
70
|
GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
|
|
@@ -85,6 +89,7 @@ const commands = {
|
|
|
85
89
|
PartialUpdateMessageCommand: PartialUpdateMessageCommand_1.PartialUpdateMessageCommand,
|
|
86
90
|
PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
|
|
87
91
|
ScheduleExternalFlagAdjustmentJobCommand: ScheduleExternalFlagAdjustmentJobCommand_1.ScheduleExternalFlagAdjustmentJobCommand,
|
|
92
|
+
SendActionTriggerResultCommand: SendActionTriggerResultCommand_1.SendActionTriggerResultCommand,
|
|
88
93
|
SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
|
|
89
94
|
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
90
95
|
SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
|
|
@@ -92,6 +97,7 @@ const commands = {
|
|
|
92
97
|
SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
|
|
93
98
|
ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
|
|
94
99
|
TagChannelCommand: TagChannelCommand_1.TagChannelCommand,
|
|
100
|
+
TriggerMessageActionCommand: TriggerMessageActionCommand_1.TriggerMessageActionCommand,
|
|
95
101
|
UnpinChannelCommand: UnpinChannelCommand_1.UnpinChannelCommand,
|
|
96
102
|
UntagChannelCommand: UntagChannelCommand_1.UntagChannelCommand,
|
|
97
103
|
UpdateChannelCommand: UpdateChannelCommand_1.UpdateChannelCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetActionTriggerResultCommand = 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 GetActionTriggerResultCommand 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", "GetActionTriggerResult", {})
|
|
15
|
+
.n("ConversationsClient", "GetActionTriggerResultCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetActionTriggerResultCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetActionTriggerResultCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetActionTriggerResultCommand = GetActionTriggerResultCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendActionTriggerResultCommand = 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 SendActionTriggerResultCommand 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", "SendActionTriggerResult", {})
|
|
15
|
+
.n("ConversationsClient", "SendActionTriggerResultCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendActionTriggerResultCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendActionTriggerResultCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SendActionTriggerResultCommand = SendActionTriggerResultCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerMessageActionCommand = 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 TriggerMessageActionCommand 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", "TriggerMessageAction", {})
|
|
15
|
+
.n("ConversationsClient", "TriggerMessageActionCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_TriggerMessageActionCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_TriggerMessageActionCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.TriggerMessageActionCommand = TriggerMessageActionCommand;
|
|
@@ -11,6 +11,7 @@ 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);
|
|
14
15
|
tslib_1.__exportStar(require("./GetChannelCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
|
|
@@ -35,6 +36,7 @@ tslib_1.__exportStar(require("./PartialUpdateChannelCommand"), exports);
|
|
|
35
36
|
tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
|
|
36
37
|
tslib_1.__exportStar(require("./PinChannelCommand"), exports);
|
|
37
38
|
tslib_1.__exportStar(require("./ScheduleExternalFlagAdjustmentJobCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
|
|
38
40
|
tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
|
|
39
41
|
tslib_1.__exportStar(require("./SendMessageCommand"), exports);
|
|
40
42
|
tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
|
|
@@ -42,6 +44,7 @@ tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
|
|
|
42
44
|
tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
|
|
43
45
|
tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
|
|
44
46
|
tslib_1.__exportStar(require("./TagChannelCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./TriggerMessageActionCommand"), exports);
|
|
45
48
|
tslib_1.__exportStar(require("./UnpinChannelCommand"), exports);
|
|
46
49
|
tslib_1.__exportStar(require("./UntagChannelCommand"), exports);
|
|
47
50
|
tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.FileNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = 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.FileNotFoundException = exports.TriggerNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = 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) {
|
|
@@ -49,6 +49,34 @@ exports.ChannelType = {
|
|
|
49
49
|
DIRECT: "direct",
|
|
50
50
|
GROUP: "group",
|
|
51
51
|
};
|
|
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
|
+
};
|
|
52
80
|
exports.ChannelMemberRole = {
|
|
53
81
|
MEMBER: "member",
|
|
54
82
|
SUPERVISOR: "supervisor",
|
|
@@ -111,7 +139,6 @@ exports.ChannelAlreadyExistException = ChannelAlreadyExistException;
|
|
|
111
139
|
exports.ConversationFileCategory = {
|
|
112
140
|
GENERAL: "channels",
|
|
113
141
|
RECORDING: "recordings",
|
|
114
|
-
WIZY_RECORDING: "wizyconfRecordings",
|
|
115
142
|
};
|
|
116
143
|
class TagsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
117
144
|
constructor(opts) {
|
|
@@ -164,6 +191,7 @@ exports.ReactionType = {
|
|
|
164
191
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
165
192
|
};
|
|
166
193
|
exports.WebhookEventType = {
|
|
194
|
+
ACTION_TRIGGERED: "chat:action:triggered",
|
|
167
195
|
CHANNEL_CREATED: "chat:channel:created",
|
|
168
196
|
CHANNEL_UPDATED: "chat:channel:updated",
|
|
169
197
|
MEMBER_ADDED: "chat:member:added",
|
|
@@ -174,6 +202,24 @@ exports.WebhookEventType = {
|
|
|
174
202
|
REACTION_DELETED: "chat:reaction:deleted",
|
|
175
203
|
REACTION_NEW: "chat:reaction:new",
|
|
176
204
|
};
|
|
205
|
+
var Element;
|
|
206
|
+
(function (Element) {
|
|
207
|
+
Element.visit = (value, visitor) => {
|
|
208
|
+
if (value.text !== undefined)
|
|
209
|
+
return visitor.text(value.text);
|
|
210
|
+
if (value.link !== undefined)
|
|
211
|
+
return visitor.link(value.link);
|
|
212
|
+
if (value.email !== undefined)
|
|
213
|
+
return visitor.email(value.email);
|
|
214
|
+
if (value.phone !== undefined)
|
|
215
|
+
return visitor.phone(value.phone);
|
|
216
|
+
if (value.mention !== undefined)
|
|
217
|
+
return visitor.mention(value.mention);
|
|
218
|
+
if (value.actions !== undefined)
|
|
219
|
+
return visitor.actions(value.actions);
|
|
220
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
221
|
+
};
|
|
222
|
+
})(Element = exports.Element || (exports.Element = {}));
|
|
177
223
|
exports.MessageSmsStatus = {
|
|
178
224
|
DELIVERED: "delivered",
|
|
179
225
|
ERROR: "error",
|
|
@@ -190,6 +236,19 @@ exports.MessageWhatsAppStatus = {
|
|
|
190
236
|
SENT: "sent",
|
|
191
237
|
TRYING: "trying",
|
|
192
238
|
};
|
|
239
|
+
class TriggerNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
240
|
+
constructor(opts) {
|
|
241
|
+
super({
|
|
242
|
+
name: "TriggerNotFoundException",
|
|
243
|
+
$fault: "client",
|
|
244
|
+
...opts
|
|
245
|
+
});
|
|
246
|
+
this.name = "TriggerNotFoundException";
|
|
247
|
+
this.$fault = "client";
|
|
248
|
+
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
exports.TriggerNotFoundException = TriggerNotFoundException;
|
|
193
252
|
class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
194
253
|
constructor(opts) {
|
|
195
254
|
super({
|
|
@@ -282,3 +341,16 @@ class TaggedChannelsLimitReachedException extends ConversationsServiceException_
|
|
|
282
341
|
}
|
|
283
342
|
}
|
|
284
343
|
exports.TaggedChannelsLimitReachedException = TaggedChannelsLimitReachedException;
|
|
344
|
+
class MessageActionNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
345
|
+
constructor(opts) {
|
|
346
|
+
super({
|
|
347
|
+
name: "MessageActionNotFoundException",
|
|
348
|
+
$fault: "client",
|
|
349
|
+
...opts
|
|
350
|
+
});
|
|
351
|
+
this.name = "MessageActionNotFoundException";
|
|
352
|
+
this.$fault = "client";
|
|
353
|
+
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
exports.MessageActionNotFoundException = MessageActionNotFoundException;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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;
|
|
3
|
+
exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinChannelCommand = exports.se_TriggerMessageActionCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_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_GetActionTriggerResultCommand = 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_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_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_GetActionTriggerResultCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = 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");
|
|
@@ -196,6 +196,22 @@ const se_DescribeEventCommand = async (input, context) => {
|
|
|
196
196
|
return b.build();
|
|
197
197
|
};
|
|
198
198
|
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
199
|
+
const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
200
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
201
|
+
const headers = {};
|
|
202
|
+
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
203
|
+
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
204
|
+
const query = (0, smithy_client_1.map)({
|
|
205
|
+
[_u]: [, input[_uI]],
|
|
206
|
+
});
|
|
207
|
+
let body;
|
|
208
|
+
b.m("GET")
|
|
209
|
+
.h(headers)
|
|
210
|
+
.q(query)
|
|
211
|
+
.b(body);
|
|
212
|
+
return b.build();
|
|
213
|
+
};
|
|
214
|
+
exports.se_GetActionTriggerResultCommand = se_GetActionTriggerResultCommand;
|
|
199
215
|
const se_GetChannelCommand = async (input, context) => {
|
|
200
216
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
201
217
|
const headers = {};
|
|
@@ -251,7 +267,6 @@ const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
251
267
|
b.p('fileId', () => input.fileId, '{fileId}', false);
|
|
252
268
|
const query = (0, smithy_client_1.map)({
|
|
253
269
|
[_c]: [, input[_c]],
|
|
254
|
-
[_d]: [() => input.download !== void 0, () => (input[_d].toString())],
|
|
255
270
|
});
|
|
256
271
|
let body;
|
|
257
272
|
b.m("GET")
|
|
@@ -618,6 +633,24 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
|
618
633
|
return b.build();
|
|
619
634
|
};
|
|
620
635
|
exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
|
|
636
|
+
const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
637
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
638
|
+
const headers = {
|
|
639
|
+
'content-type': 'application/json',
|
|
640
|
+
};
|
|
641
|
+
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
642
|
+
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
643
|
+
let body;
|
|
644
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
645
|
+
'result': _ => (0, smithy_client_1._json)(_),
|
|
646
|
+
'status': [],
|
|
647
|
+
}));
|
|
648
|
+
b.m("POST")
|
|
649
|
+
.h(headers)
|
|
650
|
+
.b(body);
|
|
651
|
+
return b.build();
|
|
652
|
+
};
|
|
653
|
+
exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
|
|
621
654
|
const se_SendGiphyCommand = async (input, context) => {
|
|
622
655
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
623
656
|
const headers = {
|
|
@@ -653,6 +686,7 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
653
686
|
let body;
|
|
654
687
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
655
688
|
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
689
|
+
'elements': _ => (0, smithy_client_1._json)(_),
|
|
656
690
|
'forward': _ => (0, smithy_client_1._json)(_),
|
|
657
691
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
658
692
|
'messageId': [],
|
|
@@ -754,6 +788,33 @@ const se_TagChannelCommand = async (input, context) => {
|
|
|
754
788
|
return b.build();
|
|
755
789
|
};
|
|
756
790
|
exports.se_TagChannelCommand = se_TagChannelCommand;
|
|
791
|
+
const se_TriggerMessageActionCommand = async (input, context) => {
|
|
792
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
793
|
+
const headers = {
|
|
794
|
+
'content-type': 'application/json',
|
|
795
|
+
};
|
|
796
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
797
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
798
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
799
|
+
b.p('actionId', () => input.actionId, '{actionId}', false);
|
|
800
|
+
const query = (0, smithy_client_1.map)({
|
|
801
|
+
[_u]: [, input[_uI]],
|
|
802
|
+
});
|
|
803
|
+
let body;
|
|
804
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
805
|
+
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
806
|
+
'elements': _ => (0, smithy_client_1._json)(_),
|
|
807
|
+
'forward': _ => (0, smithy_client_1._json)(_),
|
|
808
|
+
'quote': _ => (0, smithy_client_1._json)(_),
|
|
809
|
+
'text': [],
|
|
810
|
+
}));
|
|
811
|
+
b.m("POST")
|
|
812
|
+
.h(headers)
|
|
813
|
+
.q(query)
|
|
814
|
+
.b(body);
|
|
815
|
+
return b.build();
|
|
816
|
+
};
|
|
817
|
+
exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
|
|
757
818
|
const se_UnpinChannelCommand = async (input, context) => {
|
|
758
819
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
759
820
|
const headers = {};
|
|
@@ -853,6 +914,7 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
853
914
|
let body;
|
|
854
915
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
855
916
|
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
917
|
+
'elements': _ => (0, smithy_client_1._json)(_),
|
|
856
918
|
'forward': _ => (0, smithy_client_1._json)(_),
|
|
857
919
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
858
920
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
@@ -1027,6 +1089,22 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
1027
1089
|
return contents;
|
|
1028
1090
|
};
|
|
1029
1091
|
exports.de_DescribeEventCommand = de_DescribeEventCommand;
|
|
1092
|
+
const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
1093
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1095
|
+
}
|
|
1096
|
+
const contents = (0, smithy_client_1.map)({
|
|
1097
|
+
$metadata: deserializeMetadata(output),
|
|
1098
|
+
});
|
|
1099
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1100
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1101
|
+
'result': smithy_client_1._json,
|
|
1102
|
+
'status': smithy_client_1.expectString,
|
|
1103
|
+
});
|
|
1104
|
+
Object.assign(contents, doc);
|
|
1105
|
+
return contents;
|
|
1106
|
+
};
|
|
1107
|
+
exports.de_GetActionTriggerResultCommand = de_GetActionTriggerResultCommand;
|
|
1030
1108
|
const de_GetChannelCommand = async (output, context) => {
|
|
1031
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
1110
|
return de_CommandError(output, context);
|
|
@@ -1366,6 +1444,17 @@ const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
|
1366
1444
|
return contents;
|
|
1367
1445
|
};
|
|
1368
1446
|
exports.de_ScheduleExternalFlagAdjustmentJobCommand = de_ScheduleExternalFlagAdjustmentJobCommand;
|
|
1447
|
+
const de_SendActionTriggerResultCommand = async (output, context) => {
|
|
1448
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
|
+
return de_CommandError(output, context);
|
|
1450
|
+
}
|
|
1451
|
+
const contents = (0, smithy_client_1.map)({
|
|
1452
|
+
$metadata: deserializeMetadata(output),
|
|
1453
|
+
});
|
|
1454
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1455
|
+
return contents;
|
|
1456
|
+
};
|
|
1457
|
+
exports.de_SendActionTriggerResultCommand = de_SendActionTriggerResultCommand;
|
|
1369
1458
|
const de_SendGiphyCommand = async (output, context) => {
|
|
1370
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1371
1460
|
return de_CommandError(output, context);
|
|
@@ -1451,6 +1540,17 @@ const de_TagChannelCommand = async (output, context) => {
|
|
|
1451
1540
|
return contents;
|
|
1452
1541
|
};
|
|
1453
1542
|
exports.de_TagChannelCommand = de_TagChannelCommand;
|
|
1543
|
+
const de_TriggerMessageActionCommand = async (output, context) => {
|
|
1544
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
|
+
return de_CommandError(output, context);
|
|
1546
|
+
}
|
|
1547
|
+
const contents = (0, smithy_client_1.map)({
|
|
1548
|
+
$metadata: deserializeMetadata(output),
|
|
1549
|
+
});
|
|
1550
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1551
|
+
return contents;
|
|
1552
|
+
};
|
|
1553
|
+
exports.de_TriggerMessageActionCommand = de_TriggerMessageActionCommand;
|
|
1454
1554
|
const de_UnpinChannelCommand = async (output, context) => {
|
|
1455
1555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1456
1556
|
return de_CommandError(output, context);
|
|
@@ -1568,6 +1668,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1568
1668
|
case "MessageNotFoundException":
|
|
1569
1669
|
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1570
1670
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1671
|
+
case "TriggerNotFoundException":
|
|
1672
|
+
case "wildix.xbees.conversations#TriggerNotFoundException":
|
|
1673
|
+
throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
|
|
1571
1674
|
case "FileNotFoundException":
|
|
1572
1675
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1573
1676
|
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1586,6 +1689,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1586
1689
|
case "TaggedChannelsLimitReachedException":
|
|
1587
1690
|
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1588
1691
|
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1692
|
+
case "MessageActionNotFoundException":
|
|
1693
|
+
case "wildix.xbees.conversations#MessageActionNotFoundException":
|
|
1694
|
+
throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
|
|
1589
1695
|
default:
|
|
1590
1696
|
const parsedBody = parsedOutput.body;
|
|
1591
1697
|
return throwDefaultError({
|
|
@@ -1731,6 +1837,19 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1731
1837
|
});
|
|
1732
1838
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1733
1839
|
};
|
|
1840
|
+
const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1841
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1842
|
+
const data = parsedOutput.body;
|
|
1843
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1844
|
+
'message': smithy_client_1.expectString,
|
|
1845
|
+
});
|
|
1846
|
+
Object.assign(contents, doc);
|
|
1847
|
+
const exception = new models_0_1.MessageActionNotFoundException({
|
|
1848
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1849
|
+
...contents
|
|
1850
|
+
});
|
|
1851
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1852
|
+
};
|
|
1734
1853
|
const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1735
1854
|
const contents = (0, smithy_client_1.map)({});
|
|
1736
1855
|
const data = parsedOutput.body;
|
|
@@ -1796,6 +1915,19 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
1796
1915
|
});
|
|
1797
1916
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1798
1917
|
};
|
|
1918
|
+
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1919
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1920
|
+
const data = parsedOutput.body;
|
|
1921
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1922
|
+
'message': smithy_client_1.expectString,
|
|
1923
|
+
});
|
|
1924
|
+
Object.assign(contents, doc);
|
|
1925
|
+
const exception = new models_0_1.TriggerNotFoundException({
|
|
1926
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1927
|
+
...contents
|
|
1928
|
+
});
|
|
1929
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1930
|
+
};
|
|
1799
1931
|
const deserializeMetadata = (output) => ({
|
|
1800
1932
|
httpStatusCode: output.statusCode,
|
|
1801
1933
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1810,7 +1942,6 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1810
1942
|
value.length != 0) &&
|
|
1811
1943
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1812
1944
|
const _c = "category";
|
|
1813
|
-
const _d = "download";
|
|
1814
1945
|
const _f = "force";
|
|
1815
1946
|
const _l = "limit";
|
|
1816
1947
|
const _o = "offset";
|
package/dist-es/Conversations.js
CHANGED
|
@@ -9,6 +9,7 @@ import { DeleteInboxTagCommand, } from "./commands/DeleteInboxTagCommand";
|
|
|
9
9
|
import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
|
|
10
10
|
import { DeleteMessageReactionCommand, } from "./commands/DeleteMessageReactionCommand";
|
|
11
11
|
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
12
|
+
import { GetActionTriggerResultCommand, } from "./commands/GetActionTriggerResultCommand";
|
|
12
13
|
import { GetChannelCommand, } from "./commands/GetChannelCommand";
|
|
13
14
|
import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
|
|
14
15
|
import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -33,6 +34,7 @@ import { PartialUpdateChannelCommand, } from "./commands/PartialUpdateChannelCom
|
|
|
33
34
|
import { PartialUpdateMessageCommand, } from "./commands/PartialUpdateMessageCommand";
|
|
34
35
|
import { PinChannelCommand, } from "./commands/PinChannelCommand";
|
|
35
36
|
import { ScheduleExternalFlagAdjustmentJobCommand, } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
|
|
37
|
+
import { SendActionTriggerResultCommand, } from "./commands/SendActionTriggerResultCommand";
|
|
36
38
|
import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
|
|
37
39
|
import { SendMessageCommand, } from "./commands/SendMessageCommand";
|
|
38
40
|
import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
|
|
@@ -40,6 +42,7 @@ import { SendTypingStartCommand, } from "./commands/SendTypingStartCommand";
|
|
|
40
42
|
import { SendTypingStopCommand, } from "./commands/SendTypingStopCommand";
|
|
41
43
|
import { ShowChannelCommand, } from "./commands/ShowChannelCommand";
|
|
42
44
|
import { TagChannelCommand, } from "./commands/TagChannelCommand";
|
|
45
|
+
import { TriggerMessageActionCommand, } from "./commands/TriggerMessageActionCommand";
|
|
43
46
|
import { UnpinChannelCommand, } from "./commands/UnpinChannelCommand";
|
|
44
47
|
import { UntagChannelCommand, } from "./commands/UntagChannelCommand";
|
|
45
48
|
import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
|
|
@@ -58,6 +61,7 @@ const commands = {
|
|
|
58
61
|
DeleteMessageCommand,
|
|
59
62
|
DeleteMessageReactionCommand,
|
|
60
63
|
DescribeEventCommand,
|
|
64
|
+
GetActionTriggerResultCommand,
|
|
61
65
|
GetChannelCommand,
|
|
62
66
|
GetChannelMemberCommand,
|
|
63
67
|
GetDirectChannelIdCommand,
|
|
@@ -82,6 +86,7 @@ const commands = {
|
|
|
82
86
|
PartialUpdateMessageCommand,
|
|
83
87
|
PinChannelCommand,
|
|
84
88
|
ScheduleExternalFlagAdjustmentJobCommand,
|
|
89
|
+
SendActionTriggerResultCommand,
|
|
85
90
|
SendGiphyCommand,
|
|
86
91
|
SendMessageCommand,
|
|
87
92
|
SendMessageReactionCommand,
|
|
@@ -89,6 +94,7 @@ const commands = {
|
|
|
89
94
|
SendTypingStopCommand,
|
|
90
95
|
ShowChannelCommand,
|
|
91
96
|
TagChannelCommand,
|
|
97
|
+
TriggerMessageActionCommand,
|
|
92
98
|
UnpinChannelCommand,
|
|
93
99
|
UntagChannelCommand,
|
|
94
100
|
UpdateChannelCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetActionTriggerResultCommand, se_GetActionTriggerResultCommand, } 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 GetActionTriggerResultCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "GetActionTriggerResult", {})
|
|
12
|
+
.n("ConversationsClient", "GetActionTriggerResultCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetActionTriggerResultCommand)
|
|
15
|
+
.de(de_GetActionTriggerResultCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendActionTriggerResultCommand, se_SendActionTriggerResultCommand, } 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 SendActionTriggerResultCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "SendActionTriggerResult", {})
|
|
12
|
+
.n("ConversationsClient", "SendActionTriggerResultCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendActionTriggerResultCommand)
|
|
15
|
+
.de(de_SendActionTriggerResultCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_TriggerMessageActionCommand, se_TriggerMessageActionCommand, } 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 TriggerMessageActionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "TriggerMessageAction", {})
|
|
12
|
+
.n("ConversationsClient", "TriggerMessageActionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_TriggerMessageActionCommand)
|
|
15
|
+
.de(de_TriggerMessageActionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./DeleteInboxTagCommand";
|
|
|
8
8
|
export * from "./DeleteMessageCommand";
|
|
9
9
|
export * from "./DeleteMessageReactionCommand";
|
|
10
10
|
export * from "./DescribeEventCommand";
|
|
11
|
+
export * from "./GetActionTriggerResultCommand";
|
|
11
12
|
export * from "./GetChannelCommand";
|
|
12
13
|
export * from "./GetChannelMemberCommand";
|
|
13
14
|
export * from "./GetDirectChannelIdCommand";
|
|
@@ -32,6 +33,7 @@ export * from "./PartialUpdateChannelCommand";
|
|
|
32
33
|
export * from "./PartialUpdateMessageCommand";
|
|
33
34
|
export * from "./PinChannelCommand";
|
|
34
35
|
export * from "./ScheduleExternalFlagAdjustmentJobCommand";
|
|
36
|
+
export * from "./SendActionTriggerResultCommand";
|
|
35
37
|
export * from "./SendGiphyCommand";
|
|
36
38
|
export * from "./SendMessageCommand";
|
|
37
39
|
export * from "./SendMessageReactionCommand";
|
|
@@ -39,6 +41,7 @@ export * from "./SendTypingStartCommand";
|
|
|
39
41
|
export * from "./SendTypingStopCommand";
|
|
40
42
|
export * from "./ShowChannelCommand";
|
|
41
43
|
export * from "./TagChannelCommand";
|
|
44
|
+
export * from "./TriggerMessageActionCommand";
|
|
42
45
|
export * from "./UnpinChannelCommand";
|
|
43
46
|
export * from "./UntagChannelCommand";
|
|
44
47
|
export * from "./UpdateChannelCommand";
|