@wildix/xbees-conversations-client 1.0.58 → 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 -1
- package/dist-cjs/protocols/Aws_restJson1.js +135 -2
- 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 -0
- package/dist-es/protocols/Aws_restJson1.js +128 -1
- 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/GetMessageCommand.d.ts +84 -19
- 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/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +387 -0
- 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 +2 -2
|
@@ -43,6 +43,34 @@ export const ChannelType = {
|
|
|
43
43
|
DIRECT: "direct",
|
|
44
44
|
GROUP: "group",
|
|
45
45
|
};
|
|
46
|
+
export var ButtonHandler;
|
|
47
|
+
(function (ButtonHandler) {
|
|
48
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
49
|
+
if (value.link !== undefined)
|
|
50
|
+
return visitor.link(value.link);
|
|
51
|
+
if (value.reply !== undefined)
|
|
52
|
+
return visitor.reply(value.reply);
|
|
53
|
+
if (value.action !== undefined)
|
|
54
|
+
return visitor.action(value.action);
|
|
55
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
56
|
+
};
|
|
57
|
+
})(ButtonHandler || (ButtonHandler = {}));
|
|
58
|
+
export const ButtonVariant = {
|
|
59
|
+
CONTAINED: "contained",
|
|
60
|
+
OUTLINED: "outlined",
|
|
61
|
+
};
|
|
62
|
+
export var ActionElement;
|
|
63
|
+
(function (ActionElement) {
|
|
64
|
+
ActionElement.visit = (value, visitor) => {
|
|
65
|
+
if (value.button !== undefined)
|
|
66
|
+
return visitor.button(value.button);
|
|
67
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
|
+
};
|
|
69
|
+
})(ActionElement || (ActionElement = {}));
|
|
70
|
+
export const ActionTriggerStatus = {
|
|
71
|
+
COMPLETED: "completed",
|
|
72
|
+
PENDING: "pending",
|
|
73
|
+
};
|
|
46
74
|
export const ChannelMemberRole = {
|
|
47
75
|
MEMBER: "member",
|
|
48
76
|
SUPERVISOR: "supervisor",
|
|
@@ -151,6 +179,7 @@ export const ReactionType = {
|
|
|
151
179
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
152
180
|
};
|
|
153
181
|
export const WebhookEventType = {
|
|
182
|
+
ACTION_TRIGGERED: "chat:action:triggered",
|
|
154
183
|
CHANNEL_CREATED: "chat:channel:created",
|
|
155
184
|
CHANNEL_UPDATED: "chat:channel:updated",
|
|
156
185
|
MEMBER_ADDED: "chat:member:added",
|
|
@@ -161,6 +190,24 @@ export const WebhookEventType = {
|
|
|
161
190
|
REACTION_DELETED: "chat:reaction:deleted",
|
|
162
191
|
REACTION_NEW: "chat:reaction:new",
|
|
163
192
|
};
|
|
193
|
+
export var Element;
|
|
194
|
+
(function (Element) {
|
|
195
|
+
Element.visit = (value, visitor) => {
|
|
196
|
+
if (value.text !== undefined)
|
|
197
|
+
return visitor.text(value.text);
|
|
198
|
+
if (value.link !== undefined)
|
|
199
|
+
return visitor.link(value.link);
|
|
200
|
+
if (value.email !== undefined)
|
|
201
|
+
return visitor.email(value.email);
|
|
202
|
+
if (value.phone !== undefined)
|
|
203
|
+
return visitor.phone(value.phone);
|
|
204
|
+
if (value.mention !== undefined)
|
|
205
|
+
return visitor.mention(value.mention);
|
|
206
|
+
if (value.actions !== undefined)
|
|
207
|
+
return visitor.actions(value.actions);
|
|
208
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
209
|
+
};
|
|
210
|
+
})(Element || (Element = {}));
|
|
164
211
|
export const MessageSmsStatus = {
|
|
165
212
|
DELIVERED: "delivered",
|
|
166
213
|
ERROR: "error",
|
|
@@ -177,6 +224,18 @@ export const MessageWhatsAppStatus = {
|
|
|
177
224
|
SENT: "sent",
|
|
178
225
|
TRYING: "trying",
|
|
179
226
|
};
|
|
227
|
+
export class TriggerNotFoundException extends __BaseException {
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "TriggerNotFoundException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts
|
|
233
|
+
});
|
|
234
|
+
this.name = "TriggerNotFoundException";
|
|
235
|
+
this.$fault = "client";
|
|
236
|
+
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
180
239
|
export class FileNotFoundException extends __BaseException {
|
|
181
240
|
constructor(opts) {
|
|
182
241
|
super({
|
|
@@ -263,3 +322,15 @@ export class TaggedChannelsLimitReachedException extends __BaseException {
|
|
|
263
322
|
Object.setPrototypeOf(this, TaggedChannelsLimitReachedException.prototype);
|
|
264
323
|
}
|
|
265
324
|
}
|
|
325
|
+
export class MessageActionNotFoundException extends __BaseException {
|
|
326
|
+
constructor(opts) {
|
|
327
|
+
super({
|
|
328
|
+
name: "MessageActionNotFoundException",
|
|
329
|
+
$fault: "client",
|
|
330
|
+
...opts
|
|
331
|
+
});
|
|
332
|
+
this.name = "MessageActionNotFoundException";
|
|
333
|
+
this.$fault = "client";
|
|
334
|
+
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageActionNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, TriggerNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
@@ -182,6 +182,21 @@ export const se_DescribeEventCommand = async (input, context) => {
|
|
|
182
182
|
.b(body);
|
|
183
183
|
return b.build();
|
|
184
184
|
};
|
|
185
|
+
export const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
186
|
+
const b = rb(input, context);
|
|
187
|
+
const headers = {};
|
|
188
|
+
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
189
|
+
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
190
|
+
const query = map({
|
|
191
|
+
[_u]: [, input[_uI]],
|
|
192
|
+
});
|
|
193
|
+
let body;
|
|
194
|
+
b.m("GET")
|
|
195
|
+
.h(headers)
|
|
196
|
+
.q(query)
|
|
197
|
+
.b(body);
|
|
198
|
+
return b.build();
|
|
199
|
+
};
|
|
185
200
|
export const se_GetChannelCommand = async (input, context) => {
|
|
186
201
|
const b = rb(input, context);
|
|
187
202
|
const headers = {};
|
|
@@ -579,6 +594,23 @@ export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context
|
|
|
579
594
|
.b(body);
|
|
580
595
|
return b.build();
|
|
581
596
|
};
|
|
597
|
+
export const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
598
|
+
const b = rb(input, context);
|
|
599
|
+
const headers = {
|
|
600
|
+
'content-type': 'application/json',
|
|
601
|
+
};
|
|
602
|
+
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
603
|
+
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
604
|
+
let body;
|
|
605
|
+
body = JSON.stringify(take(input, {
|
|
606
|
+
'result': _ => _json(_),
|
|
607
|
+
'status': [],
|
|
608
|
+
}));
|
|
609
|
+
b.m("POST")
|
|
610
|
+
.h(headers)
|
|
611
|
+
.b(body);
|
|
612
|
+
return b.build();
|
|
613
|
+
};
|
|
582
614
|
export const se_SendGiphyCommand = async (input, context) => {
|
|
583
615
|
const b = rb(input, context);
|
|
584
616
|
const headers = {
|
|
@@ -613,6 +645,7 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
613
645
|
let body;
|
|
614
646
|
body = JSON.stringify(take(input, {
|
|
615
647
|
'attachments': _ => _json(_),
|
|
648
|
+
'elements': _ => _json(_),
|
|
616
649
|
'forward': _ => _json(_),
|
|
617
650
|
'mentions': _ => _json(_),
|
|
618
651
|
'messageId': [],
|
|
@@ -708,6 +741,32 @@ export const se_TagChannelCommand = async (input, context) => {
|
|
|
708
741
|
.b(body);
|
|
709
742
|
return b.build();
|
|
710
743
|
};
|
|
744
|
+
export const se_TriggerMessageActionCommand = async (input, context) => {
|
|
745
|
+
const b = rb(input, context);
|
|
746
|
+
const headers = {
|
|
747
|
+
'content-type': 'application/json',
|
|
748
|
+
};
|
|
749
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
750
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
751
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
752
|
+
b.p('actionId', () => input.actionId, '{actionId}', false);
|
|
753
|
+
const query = map({
|
|
754
|
+
[_u]: [, input[_uI]],
|
|
755
|
+
});
|
|
756
|
+
let body;
|
|
757
|
+
body = JSON.stringify(take(input, {
|
|
758
|
+
'attachments': _ => _json(_),
|
|
759
|
+
'elements': _ => _json(_),
|
|
760
|
+
'forward': _ => _json(_),
|
|
761
|
+
'quote': _ => _json(_),
|
|
762
|
+
'text': [],
|
|
763
|
+
}));
|
|
764
|
+
b.m("POST")
|
|
765
|
+
.h(headers)
|
|
766
|
+
.q(query)
|
|
767
|
+
.b(body);
|
|
768
|
+
return b.build();
|
|
769
|
+
};
|
|
711
770
|
export const se_UnpinChannelCommand = async (input, context) => {
|
|
712
771
|
const b = rb(input, context);
|
|
713
772
|
const headers = {};
|
|
@@ -803,6 +862,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
803
862
|
let body;
|
|
804
863
|
body = JSON.stringify(take(input, {
|
|
805
864
|
'attachments': _ => _json(_),
|
|
865
|
+
'elements': _ => _json(_),
|
|
806
866
|
'forward': _ => _json(_),
|
|
807
867
|
'mentions': _ => _json(_),
|
|
808
868
|
'quote': _ => _json(_),
|
|
@@ -965,6 +1025,21 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
965
1025
|
Object.assign(contents, doc);
|
|
966
1026
|
return contents;
|
|
967
1027
|
};
|
|
1028
|
+
export const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
1029
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
+
return de_CommandError(output, context);
|
|
1031
|
+
}
|
|
1032
|
+
const contents = map({
|
|
1033
|
+
$metadata: deserializeMetadata(output),
|
|
1034
|
+
});
|
|
1035
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1036
|
+
const doc = take(data, {
|
|
1037
|
+
'result': _json,
|
|
1038
|
+
'status': __expectString,
|
|
1039
|
+
});
|
|
1040
|
+
Object.assign(contents, doc);
|
|
1041
|
+
return contents;
|
|
1042
|
+
};
|
|
968
1043
|
export const de_GetChannelCommand = async (output, context) => {
|
|
969
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
970
1045
|
return de_CommandError(output, context);
|
|
@@ -1280,6 +1355,16 @@ export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, contex
|
|
|
1280
1355
|
await collectBody(output.body, context);
|
|
1281
1356
|
return contents;
|
|
1282
1357
|
};
|
|
1358
|
+
export const de_SendActionTriggerResultCommand = async (output, context) => {
|
|
1359
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
+
return de_CommandError(output, context);
|
|
1361
|
+
}
|
|
1362
|
+
const contents = map({
|
|
1363
|
+
$metadata: deserializeMetadata(output),
|
|
1364
|
+
});
|
|
1365
|
+
await collectBody(output.body, context);
|
|
1366
|
+
return contents;
|
|
1367
|
+
};
|
|
1283
1368
|
export const de_SendGiphyCommand = async (output, context) => {
|
|
1284
1369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
1370
|
return de_CommandError(output, context);
|
|
@@ -1358,6 +1443,16 @@ export const de_TagChannelCommand = async (output, context) => {
|
|
|
1358
1443
|
await collectBody(output.body, context);
|
|
1359
1444
|
return contents;
|
|
1360
1445
|
};
|
|
1446
|
+
export const de_TriggerMessageActionCommand = async (output, context) => {
|
|
1447
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
|
+
return de_CommandError(output, context);
|
|
1449
|
+
}
|
|
1450
|
+
const contents = map({
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
});
|
|
1453
|
+
await collectBody(output.body, context);
|
|
1454
|
+
return contents;
|
|
1455
|
+
};
|
|
1361
1456
|
export const de_UnpinChannelCommand = async (output, context) => {
|
|
1362
1457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
1458
|
return de_CommandError(output, context);
|
|
@@ -1469,6 +1564,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1469
1564
|
case "MessageNotFoundException":
|
|
1470
1565
|
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1471
1566
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1567
|
+
case "TriggerNotFoundException":
|
|
1568
|
+
case "wildix.xbees.conversations#TriggerNotFoundException":
|
|
1569
|
+
throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
|
|
1472
1570
|
case "FileNotFoundException":
|
|
1473
1571
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1474
1572
|
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1487,6 +1585,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1487
1585
|
case "TaggedChannelsLimitReachedException":
|
|
1488
1586
|
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1489
1587
|
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1588
|
+
case "MessageActionNotFoundException":
|
|
1589
|
+
case "wildix.xbees.conversations#MessageActionNotFoundException":
|
|
1590
|
+
throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
|
|
1490
1591
|
default:
|
|
1491
1592
|
const parsedBody = parsedOutput.body;
|
|
1492
1593
|
return throwDefaultError({
|
|
@@ -1632,6 +1733,19 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1632
1733
|
});
|
|
1633
1734
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1634
1735
|
};
|
|
1736
|
+
const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1737
|
+
const contents = map({});
|
|
1738
|
+
const data = parsedOutput.body;
|
|
1739
|
+
const doc = take(data, {
|
|
1740
|
+
'message': __expectString,
|
|
1741
|
+
});
|
|
1742
|
+
Object.assign(contents, doc);
|
|
1743
|
+
const exception = new MessageActionNotFoundException({
|
|
1744
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1745
|
+
...contents
|
|
1746
|
+
});
|
|
1747
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1748
|
+
};
|
|
1635
1749
|
const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1636
1750
|
const contents = map({});
|
|
1637
1751
|
const data = parsedOutput.body;
|
|
@@ -1697,6 +1811,19 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
1697
1811
|
});
|
|
1698
1812
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1699
1813
|
};
|
|
1814
|
+
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1815
|
+
const contents = map({});
|
|
1816
|
+
const data = parsedOutput.body;
|
|
1817
|
+
const doc = take(data, {
|
|
1818
|
+
'message': __expectString,
|
|
1819
|
+
});
|
|
1820
|
+
Object.assign(contents, doc);
|
|
1821
|
+
const exception = new TriggerNotFoundException({
|
|
1822
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1823
|
+
...contents
|
|
1824
|
+
});
|
|
1825
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1826
|
+
};
|
|
1700
1827
|
const deserializeMetadata = (output) => ({
|
|
1701
1828
|
httpStatusCode: output.statusCode,
|
|
1702
1829
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -9,6 +9,7 @@ import { DeleteInboxTagCommandInput, DeleteInboxTagCommandOutput } from "./comma
|
|
|
9
9
|
import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
|
|
10
10
|
import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput } from "./commands/DeleteMessageReactionCommand";
|
|
11
11
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
12
|
+
import { GetActionTriggerResultCommandInput, GetActionTriggerResultCommandOutput } from "./commands/GetActionTriggerResultCommand";
|
|
12
13
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
13
14
|
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
|
|
14
15
|
import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -33,6 +34,7 @@ import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } f
|
|
|
33
34
|
import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
|
|
34
35
|
import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
|
|
35
36
|
import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
|
|
37
|
+
import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
|
|
36
38
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
37
39
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
38
40
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
|
|
@@ -40,6 +42,7 @@ import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./com
|
|
|
40
42
|
import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
|
|
41
43
|
import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
|
|
42
44
|
import { TagChannelCommandInput, TagChannelCommandOutput } from "./commands/TagChannelCommand";
|
|
45
|
+
import { TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput } from "./commands/TriggerMessageActionCommand";
|
|
43
46
|
import { UnpinChannelCommandInput, UnpinChannelCommandOutput } from "./commands/UnpinChannelCommand";
|
|
44
47
|
import { UntagChannelCommandInput, UntagChannelCommandOutput } from "./commands/UntagChannelCommand";
|
|
45
48
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
@@ -110,6 +113,12 @@ export interface Conversations {
|
|
|
110
113
|
describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
|
|
111
114
|
describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
112
115
|
describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
116
|
+
/**
|
|
117
|
+
* @see {@link GetActionTriggerResultCommand}
|
|
118
|
+
*/
|
|
119
|
+
getActionTriggerResult(args: GetActionTriggerResultCommandInput, options?: __HttpHandlerOptions): Promise<GetActionTriggerResultCommandOutput>;
|
|
120
|
+
getActionTriggerResult(args: GetActionTriggerResultCommandInput, cb: (err: any, data?: GetActionTriggerResultCommandOutput) => void): void;
|
|
121
|
+
getActionTriggerResult(args: GetActionTriggerResultCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetActionTriggerResultCommandOutput) => void): void;
|
|
113
122
|
/**
|
|
114
123
|
* @see {@link GetChannelCommand}
|
|
115
124
|
*/
|
|
@@ -259,6 +268,12 @@ export interface Conversations {
|
|
|
259
268
|
scheduleExternalFlagAdjustmentJob(args: ScheduleExternalFlagAdjustmentJobCommandInput, options?: __HttpHandlerOptions): Promise<ScheduleExternalFlagAdjustmentJobCommandOutput>;
|
|
260
269
|
scheduleExternalFlagAdjustmentJob(args: ScheduleExternalFlagAdjustmentJobCommandInput, cb: (err: any, data?: ScheduleExternalFlagAdjustmentJobCommandOutput) => void): void;
|
|
261
270
|
scheduleExternalFlagAdjustmentJob(args: ScheduleExternalFlagAdjustmentJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ScheduleExternalFlagAdjustmentJobCommandOutput) => void): void;
|
|
271
|
+
/**
|
|
272
|
+
* @see {@link SendActionTriggerResultCommand}
|
|
273
|
+
*/
|
|
274
|
+
sendActionTriggerResult(args: SendActionTriggerResultCommandInput, options?: __HttpHandlerOptions): Promise<SendActionTriggerResultCommandOutput>;
|
|
275
|
+
sendActionTriggerResult(args: SendActionTriggerResultCommandInput, cb: (err: any, data?: SendActionTriggerResultCommandOutput) => void): void;
|
|
276
|
+
sendActionTriggerResult(args: SendActionTriggerResultCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendActionTriggerResultCommandOutput) => void): void;
|
|
262
277
|
/**
|
|
263
278
|
* @see {@link SendGiphyCommand}
|
|
264
279
|
*/
|
|
@@ -301,6 +316,12 @@ export interface Conversations {
|
|
|
301
316
|
tagChannel(args: TagChannelCommandInput, options?: __HttpHandlerOptions): Promise<TagChannelCommandOutput>;
|
|
302
317
|
tagChannel(args: TagChannelCommandInput, cb: (err: any, data?: TagChannelCommandOutput) => void): void;
|
|
303
318
|
tagChannel(args: TagChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagChannelCommandOutput) => void): void;
|
|
319
|
+
/**
|
|
320
|
+
* @see {@link TriggerMessageActionCommand}
|
|
321
|
+
*/
|
|
322
|
+
triggerMessageAction(args: TriggerMessageActionCommandInput, options?: __HttpHandlerOptions): Promise<TriggerMessageActionCommandOutput>;
|
|
323
|
+
triggerMessageAction(args: TriggerMessageActionCommandInput, cb: (err: any, data?: TriggerMessageActionCommandOutput) => void): void;
|
|
324
|
+
triggerMessageAction(args: TriggerMessageActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TriggerMessageActionCommandOutput) => void): void;
|
|
304
325
|
/**
|
|
305
326
|
* @see {@link UnpinChannelCommand}
|
|
306
327
|
*/
|
|
@@ -8,6 +8,7 @@ import { DeleteInboxTagCommandInput, DeleteInboxTagCommandOutput } from "./comma
|
|
|
8
8
|
import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
|
|
9
9
|
import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput } from "./commands/DeleteMessageReactionCommand";
|
|
10
10
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
11
|
+
import { GetActionTriggerResultCommandInput, GetActionTriggerResultCommandOutput } from "./commands/GetActionTriggerResultCommand";
|
|
11
12
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
12
13
|
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
|
|
13
14
|
import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -32,6 +33,7 @@ import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } f
|
|
|
32
33
|
import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
|
|
33
34
|
import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
|
|
34
35
|
import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
|
|
36
|
+
import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
|
|
35
37
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
36
38
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
37
39
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
|
|
@@ -39,6 +41,7 @@ import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./com
|
|
|
39
41
|
import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
|
|
40
42
|
import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
|
|
41
43
|
import { TagChannelCommandInput, TagChannelCommandOutput } from "./commands/TagChannelCommand";
|
|
44
|
+
import { TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput } from "./commands/TriggerMessageActionCommand";
|
|
42
45
|
import { UnpinChannelCommandInput, UnpinChannelCommandOutput } from "./commands/UnpinChannelCommand";
|
|
43
46
|
import { UntagChannelCommandInput, UntagChannelCommandOutput } from "./commands/UntagChannelCommand";
|
|
44
47
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
@@ -56,11 +59,11 @@ export { __Client };
|
|
|
56
59
|
/**
|
|
57
60
|
* @public
|
|
58
61
|
*/
|
|
59
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | UnpinChannelCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
62
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
60
63
|
/**
|
|
61
64
|
* @public
|
|
62
65
|
*/
|
|
63
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | UnpinChannelCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
66
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
64
67
|
/**
|
|
65
68
|
* @public
|
|
66
69
|
*/
|