@wildix/xbees-conversations-client 1.0.59 → 1.0.61
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 +126 -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 +119 -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 +73 -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 +382 -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
|
@@ -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",
|
|
@@ -102,7 +130,6 @@ export class ChannelAlreadyExistException extends __BaseException {
|
|
|
102
130
|
export const ConversationFileCategory = {
|
|
103
131
|
GENERAL: "channels",
|
|
104
132
|
RECORDING: "recordings",
|
|
105
|
-
WIZY_RECORDING: "wizyconfRecordings",
|
|
106
133
|
};
|
|
107
134
|
export class TagsLimitReachedException extends __BaseException {
|
|
108
135
|
constructor(opts) {
|
|
@@ -152,6 +179,7 @@ export const ReactionType = {
|
|
|
152
179
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
153
180
|
};
|
|
154
181
|
export const WebhookEventType = {
|
|
182
|
+
ACTION_TRIGGERED: "chat:action:triggered",
|
|
155
183
|
CHANNEL_CREATED: "chat:channel:created",
|
|
156
184
|
CHANNEL_UPDATED: "chat:channel:updated",
|
|
157
185
|
MEMBER_ADDED: "chat:member:added",
|
|
@@ -162,6 +190,24 @@ export const WebhookEventType = {
|
|
|
162
190
|
REACTION_DELETED: "chat:reaction:deleted",
|
|
163
191
|
REACTION_NEW: "chat:reaction:new",
|
|
164
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 = {}));
|
|
165
211
|
export const MessageSmsStatus = {
|
|
166
212
|
DELIVERED: "delivered",
|
|
167
213
|
ERROR: "error",
|
|
@@ -178,6 +224,18 @@ export const MessageWhatsAppStatus = {
|
|
|
178
224
|
SENT: "sent",
|
|
179
225
|
TRYING: "trying",
|
|
180
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
|
+
}
|
|
181
239
|
export class FileNotFoundException extends __BaseException {
|
|
182
240
|
constructor(opts) {
|
|
183
241
|
super({
|
|
@@ -264,3 +322,15 @@ export class TaggedChannelsLimitReachedException extends __BaseException {
|
|
|
264
322
|
Object.setPrototypeOf(this, TaggedChannelsLimitReachedException.prototype);
|
|
265
323
|
}
|
|
266
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 = {};
|
|
@@ -234,7 +249,6 @@ export const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
234
249
|
b.p('fileId', () => input.fileId, '{fileId}', false);
|
|
235
250
|
const query = map({
|
|
236
251
|
[_c]: [, input[_c]],
|
|
237
|
-
[_d]: [() => input.download !== void 0, () => (input[_d].toString())],
|
|
238
252
|
});
|
|
239
253
|
let body;
|
|
240
254
|
b.m("GET")
|
|
@@ -580,6 +594,23 @@ export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context
|
|
|
580
594
|
.b(body);
|
|
581
595
|
return b.build();
|
|
582
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
|
+
};
|
|
583
614
|
export const se_SendGiphyCommand = async (input, context) => {
|
|
584
615
|
const b = rb(input, context);
|
|
585
616
|
const headers = {
|
|
@@ -614,6 +645,7 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
614
645
|
let body;
|
|
615
646
|
body = JSON.stringify(take(input, {
|
|
616
647
|
'attachments': _ => _json(_),
|
|
648
|
+
'elements': _ => _json(_),
|
|
617
649
|
'forward': _ => _json(_),
|
|
618
650
|
'mentions': _ => _json(_),
|
|
619
651
|
'messageId': [],
|
|
@@ -709,6 +741,23 @@ export const se_TagChannelCommand = async (input, context) => {
|
|
|
709
741
|
.b(body);
|
|
710
742
|
return b.build();
|
|
711
743
|
};
|
|
744
|
+
export const se_TriggerMessageActionCommand = async (input, context) => {
|
|
745
|
+
const b = rb(input, context);
|
|
746
|
+
const headers = {};
|
|
747
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
748
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
749
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
750
|
+
b.p('actionId', () => input.actionId, '{actionId}', false);
|
|
751
|
+
const query = map({
|
|
752
|
+
[_u]: [, input[_uI]],
|
|
753
|
+
});
|
|
754
|
+
let body;
|
|
755
|
+
b.m("POST")
|
|
756
|
+
.h(headers)
|
|
757
|
+
.q(query)
|
|
758
|
+
.b(body);
|
|
759
|
+
return b.build();
|
|
760
|
+
};
|
|
712
761
|
export const se_UnpinChannelCommand = async (input, context) => {
|
|
713
762
|
const b = rb(input, context);
|
|
714
763
|
const headers = {};
|
|
@@ -804,6 +853,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
804
853
|
let body;
|
|
805
854
|
body = JSON.stringify(take(input, {
|
|
806
855
|
'attachments': _ => _json(_),
|
|
856
|
+
'elements': _ => _json(_),
|
|
807
857
|
'forward': _ => _json(_),
|
|
808
858
|
'mentions': _ => _json(_),
|
|
809
859
|
'quote': _ => _json(_),
|
|
@@ -966,6 +1016,21 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
966
1016
|
Object.assign(contents, doc);
|
|
967
1017
|
return contents;
|
|
968
1018
|
};
|
|
1019
|
+
export const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
1020
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1022
|
+
}
|
|
1023
|
+
const contents = map({
|
|
1024
|
+
$metadata: deserializeMetadata(output),
|
|
1025
|
+
});
|
|
1026
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1027
|
+
const doc = take(data, {
|
|
1028
|
+
'result': _json,
|
|
1029
|
+
'status': __expectString,
|
|
1030
|
+
});
|
|
1031
|
+
Object.assign(contents, doc);
|
|
1032
|
+
return contents;
|
|
1033
|
+
};
|
|
969
1034
|
export const de_GetChannelCommand = async (output, context) => {
|
|
970
1035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
1036
|
return de_CommandError(output, context);
|
|
@@ -1281,6 +1346,16 @@ export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, contex
|
|
|
1281
1346
|
await collectBody(output.body, context);
|
|
1282
1347
|
return contents;
|
|
1283
1348
|
};
|
|
1349
|
+
export const de_SendActionTriggerResultCommand = async (output, context) => {
|
|
1350
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
+
return de_CommandError(output, context);
|
|
1352
|
+
}
|
|
1353
|
+
const contents = map({
|
|
1354
|
+
$metadata: deserializeMetadata(output),
|
|
1355
|
+
});
|
|
1356
|
+
await collectBody(output.body, context);
|
|
1357
|
+
return contents;
|
|
1358
|
+
};
|
|
1284
1359
|
export const de_SendGiphyCommand = async (output, context) => {
|
|
1285
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1286
1361
|
return de_CommandError(output, context);
|
|
@@ -1359,6 +1434,16 @@ export const de_TagChannelCommand = async (output, context) => {
|
|
|
1359
1434
|
await collectBody(output.body, context);
|
|
1360
1435
|
return contents;
|
|
1361
1436
|
};
|
|
1437
|
+
export const de_TriggerMessageActionCommand = async (output, context) => {
|
|
1438
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1439
|
+
return de_CommandError(output, context);
|
|
1440
|
+
}
|
|
1441
|
+
const contents = map({
|
|
1442
|
+
$metadata: deserializeMetadata(output),
|
|
1443
|
+
});
|
|
1444
|
+
await collectBody(output.body, context);
|
|
1445
|
+
return contents;
|
|
1446
|
+
};
|
|
1362
1447
|
export const de_UnpinChannelCommand = async (output, context) => {
|
|
1363
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
1449
|
return de_CommandError(output, context);
|
|
@@ -1470,6 +1555,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1470
1555
|
case "MessageNotFoundException":
|
|
1471
1556
|
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1472
1557
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1558
|
+
case "TriggerNotFoundException":
|
|
1559
|
+
case "wildix.xbees.conversations#TriggerNotFoundException":
|
|
1560
|
+
throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
|
|
1473
1561
|
case "FileNotFoundException":
|
|
1474
1562
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1475
1563
|
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1488,6 +1576,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1488
1576
|
case "TaggedChannelsLimitReachedException":
|
|
1489
1577
|
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1490
1578
|
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1579
|
+
case "MessageActionNotFoundException":
|
|
1580
|
+
case "wildix.xbees.conversations#MessageActionNotFoundException":
|
|
1581
|
+
throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
|
|
1491
1582
|
default:
|
|
1492
1583
|
const parsedBody = parsedOutput.body;
|
|
1493
1584
|
return throwDefaultError({
|
|
@@ -1633,6 +1724,19 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1633
1724
|
});
|
|
1634
1725
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1635
1726
|
};
|
|
1727
|
+
const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1728
|
+
const contents = map({});
|
|
1729
|
+
const data = parsedOutput.body;
|
|
1730
|
+
const doc = take(data, {
|
|
1731
|
+
'message': __expectString,
|
|
1732
|
+
});
|
|
1733
|
+
Object.assign(contents, doc);
|
|
1734
|
+
const exception = new MessageActionNotFoundException({
|
|
1735
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1736
|
+
...contents
|
|
1737
|
+
});
|
|
1738
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1739
|
+
};
|
|
1636
1740
|
const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1637
1741
|
const contents = map({});
|
|
1638
1742
|
const data = parsedOutput.body;
|
|
@@ -1698,6 +1802,19 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
1698
1802
|
});
|
|
1699
1803
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1700
1804
|
};
|
|
1805
|
+
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1806
|
+
const contents = map({});
|
|
1807
|
+
const data = parsedOutput.body;
|
|
1808
|
+
const doc = take(data, {
|
|
1809
|
+
'message': __expectString,
|
|
1810
|
+
});
|
|
1811
|
+
Object.assign(contents, doc);
|
|
1812
|
+
const exception = new TriggerNotFoundException({
|
|
1813
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1814
|
+
...contents
|
|
1815
|
+
});
|
|
1816
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1817
|
+
};
|
|
1701
1818
|
const deserializeMetadata = (output) => ({
|
|
1702
1819
|
httpStatusCode: output.statusCode,
|
|
1703
1820
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1712,7 +1829,6 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1712
1829
|
value.length != 0) &&
|
|
1713
1830
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1714
1831
|
const _c = "category";
|
|
1715
|
-
const _d = "download";
|
|
1716
1832
|
const _f = "force";
|
|
1717
1833
|
const _l = "limit";
|
|
1718
1834
|
const _o = "offset";
|
|
@@ -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
|
*/
|