@wildix/xbees-conversations-client 1.0.64 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Conversations.js +0 -12
- package/dist-cjs/commands/index.js +0 -6
- package/dist-cjs/models/models_0.js +30 -103
- package/dist-cjs/protocols/Aws_restJson1.js +2 -230
- package/dist-es/Conversations.js +0 -12
- package/dist-es/commands/index.js +0 -6
- package/dist-es/models/models_0.js +28 -99
- package/dist-es/protocols/Aws_restJson1.js +1 -216
- package/dist-types/Conversations.d.ts +0 -42
- package/dist-types/ConversationsClient.d.ts +2 -8
- package/dist-types/commands/DescribeEventCommand.d.ts +19 -274
- package/dist-types/commands/GetMessageCommand.d.ts +23 -84
- package/dist-types/commands/ListMessagesCommand.d.ts +23 -84
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -169
- package/dist-types/commands/SendGiphyCommand.d.ts +23 -84
- package/dist-types/commands/SendMessageCommand.d.ts +46 -168
- package/dist-types/commands/UpdateMessageCommand.d.ts +46 -169
- package/dist-types/commands/index.d.ts +0 -6
- package/dist-types/models/models_0.d.ts +91 -597
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
- package/dist-types/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/runtimeConfig.d.ts +0 -1
- package/dist-types/runtimeConfig.native.d.ts +0 -1
- package/package.json +1 -1
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +0 -21
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +0 -21
- package/dist-cjs/commands/PinMessageCommand.js +0 -21
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +0 -21
- package/dist-cjs/commands/TriggerMessageActionCommand.js +0 -21
- package/dist-cjs/commands/UnpinMessageCommand.js +0 -21
- package/dist-es/commands/GetActionTriggerResultCommand.js +0 -17
- package/dist-es/commands/ListPinnedMessagesCommand.js +0 -17
- package/dist-es/commands/PinMessageCommand.js +0 -17
- package/dist-es/commands/SendActionTriggerResultCommand.js +0 -17
- package/dist-es/commands/TriggerMessageActionCommand.js +0 -17
- package/dist-es/commands/UnpinMessageCommand.js +0 -17
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +0 -70
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +0 -261
- package/dist-types/commands/PinMessageCommand.d.ts +0 -73
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +0 -68
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +0 -75
- package/dist-types/commands/UnpinMessageCommand.d.ts +0 -71
package/dist-es/Conversations.js
CHANGED
|
@@ -9,7 +9,6 @@ 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";
|
|
13
12
|
import { GetChannelCommand, } from "./commands/GetChannelCommand";
|
|
14
13
|
import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
|
|
15
14
|
import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -28,15 +27,12 @@ import { ListInboxTaggedChannelsCommand, } from "./commands/ListInboxTaggedChann
|
|
|
28
27
|
import { ListInboxTagsCommand, } from "./commands/ListInboxTagsCommand";
|
|
29
28
|
import { ListMessageReactionsCommand, } from "./commands/ListMessageReactionsCommand";
|
|
30
29
|
import { ListMessagesCommand, } from "./commands/ListMessagesCommand";
|
|
31
|
-
import { ListPinnedMessagesCommand, } from "./commands/ListPinnedMessagesCommand";
|
|
32
30
|
import { MarkReadCommand, } from "./commands/MarkReadCommand";
|
|
33
31
|
import { MarkUnreadCommand, } from "./commands/MarkUnreadCommand";
|
|
34
32
|
import { PartialUpdateChannelCommand, } from "./commands/PartialUpdateChannelCommand";
|
|
35
33
|
import { PartialUpdateMessageCommand, } from "./commands/PartialUpdateMessageCommand";
|
|
36
34
|
import { PinChannelCommand, } from "./commands/PinChannelCommand";
|
|
37
|
-
import { PinMessageCommand, } from "./commands/PinMessageCommand";
|
|
38
35
|
import { ScheduleExternalFlagAdjustmentJobCommand, } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
|
|
39
|
-
import { SendActionTriggerResultCommand, } from "./commands/SendActionTriggerResultCommand";
|
|
40
36
|
import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
|
|
41
37
|
import { SendMessageCommand, } from "./commands/SendMessageCommand";
|
|
42
38
|
import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
|
|
@@ -44,9 +40,7 @@ import { SendTypingStartCommand, } from "./commands/SendTypingStartCommand";
|
|
|
44
40
|
import { SendTypingStopCommand, } from "./commands/SendTypingStopCommand";
|
|
45
41
|
import { ShowChannelCommand, } from "./commands/ShowChannelCommand";
|
|
46
42
|
import { TagChannelCommand, } from "./commands/TagChannelCommand";
|
|
47
|
-
import { TriggerMessageActionCommand, } from "./commands/TriggerMessageActionCommand";
|
|
48
43
|
import { UnpinChannelCommand, } from "./commands/UnpinChannelCommand";
|
|
49
|
-
import { UnpinMessageCommand, } from "./commands/UnpinMessageCommand";
|
|
50
44
|
import { UntagChannelCommand, } from "./commands/UntagChannelCommand";
|
|
51
45
|
import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
|
|
52
46
|
import { UpdateInboxTagCommand, } from "./commands/UpdateInboxTagCommand";
|
|
@@ -64,7 +58,6 @@ const commands = {
|
|
|
64
58
|
DeleteMessageCommand,
|
|
65
59
|
DeleteMessageReactionCommand,
|
|
66
60
|
DescribeEventCommand,
|
|
67
|
-
GetActionTriggerResultCommand,
|
|
68
61
|
GetChannelCommand,
|
|
69
62
|
GetChannelMemberCommand,
|
|
70
63
|
GetDirectChannelIdCommand,
|
|
@@ -83,15 +76,12 @@ const commands = {
|
|
|
83
76
|
ListInboxTagsCommand,
|
|
84
77
|
ListMessageReactionsCommand,
|
|
85
78
|
ListMessagesCommand,
|
|
86
|
-
ListPinnedMessagesCommand,
|
|
87
79
|
MarkReadCommand,
|
|
88
80
|
MarkUnreadCommand,
|
|
89
81
|
PartialUpdateChannelCommand,
|
|
90
82
|
PartialUpdateMessageCommand,
|
|
91
83
|
PinChannelCommand,
|
|
92
|
-
PinMessageCommand,
|
|
93
84
|
ScheduleExternalFlagAdjustmentJobCommand,
|
|
94
|
-
SendActionTriggerResultCommand,
|
|
95
85
|
SendGiphyCommand,
|
|
96
86
|
SendMessageCommand,
|
|
97
87
|
SendMessageReactionCommand,
|
|
@@ -99,9 +89,7 @@ const commands = {
|
|
|
99
89
|
SendTypingStopCommand,
|
|
100
90
|
ShowChannelCommand,
|
|
101
91
|
TagChannelCommand,
|
|
102
|
-
TriggerMessageActionCommand,
|
|
103
92
|
UnpinChannelCommand,
|
|
104
|
-
UnpinMessageCommand,
|
|
105
93
|
UntagChannelCommand,
|
|
106
94
|
UpdateChannelCommand,
|
|
107
95
|
UpdateInboxTagCommand,
|
|
@@ -8,7 +8,6 @@ export * from "./DeleteInboxTagCommand";
|
|
|
8
8
|
export * from "./DeleteMessageCommand";
|
|
9
9
|
export * from "./DeleteMessageReactionCommand";
|
|
10
10
|
export * from "./DescribeEventCommand";
|
|
11
|
-
export * from "./GetActionTriggerResultCommand";
|
|
12
11
|
export * from "./GetChannelCommand";
|
|
13
12
|
export * from "./GetChannelMemberCommand";
|
|
14
13
|
export * from "./GetDirectChannelIdCommand";
|
|
@@ -27,15 +26,12 @@ export * from "./ListInboxTaggedChannelsCommand";
|
|
|
27
26
|
export * from "./ListInboxTagsCommand";
|
|
28
27
|
export * from "./ListMessageReactionsCommand";
|
|
29
28
|
export * from "./ListMessagesCommand";
|
|
30
|
-
export * from "./ListPinnedMessagesCommand";
|
|
31
29
|
export * from "./MarkReadCommand";
|
|
32
30
|
export * from "./MarkUnreadCommand";
|
|
33
31
|
export * from "./PartialUpdateChannelCommand";
|
|
34
32
|
export * from "./PartialUpdateMessageCommand";
|
|
35
33
|
export * from "./PinChannelCommand";
|
|
36
|
-
export * from "./PinMessageCommand";
|
|
37
34
|
export * from "./ScheduleExternalFlagAdjustmentJobCommand";
|
|
38
|
-
export * from "./SendActionTriggerResultCommand";
|
|
39
35
|
export * from "./SendGiphyCommand";
|
|
40
36
|
export * from "./SendMessageCommand";
|
|
41
37
|
export * from "./SendMessageReactionCommand";
|
|
@@ -43,9 +39,7 @@ export * from "./SendTypingStartCommand";
|
|
|
43
39
|
export * from "./SendTypingStopCommand";
|
|
44
40
|
export * from "./ShowChannelCommand";
|
|
45
41
|
export * from "./TagChannelCommand";
|
|
46
|
-
export * from "./TriggerMessageActionCommand";
|
|
47
42
|
export * from "./UnpinChannelCommand";
|
|
48
|
-
export * from "./UnpinMessageCommand";
|
|
49
43
|
export * from "./UntagChannelCommand";
|
|
50
44
|
export * from "./UpdateChannelCommand";
|
|
51
45
|
export * from "./UpdateInboxTagCommand";
|
|
@@ -39,38 +39,27 @@ export class RateLimitExceededException extends __BaseException {
|
|
|
39
39
|
this.retryAfter = opts.retryAfter;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
export const ConversationFileCategory = {
|
|
43
|
+
GENERAL: "channels",
|
|
44
|
+
RECORDING: "recordings",
|
|
45
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
46
|
+
};
|
|
47
|
+
export class FileNotFoundException extends __BaseException {
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "FileNotFoundException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts
|
|
53
|
+
});
|
|
54
|
+
this.name = "FileNotFoundException";
|
|
55
|
+
this.$fault = "client";
|
|
56
|
+
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
42
59
|
export const ChannelType = {
|
|
43
60
|
DIRECT: "direct",
|
|
44
61
|
GROUP: "group",
|
|
45
62
|
};
|
|
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
|
-
};
|
|
74
63
|
export const ChannelMemberRole = {
|
|
75
64
|
MEMBER: "member",
|
|
76
65
|
SUPERVISOR: "supervisor",
|
|
@@ -127,11 +116,6 @@ export class ChannelAlreadyExistException extends __BaseException {
|
|
|
127
116
|
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
128
117
|
}
|
|
129
118
|
}
|
|
130
|
-
export const ConversationFileCategory = {
|
|
131
|
-
GENERAL: "channels",
|
|
132
|
-
RECORDING: "recordings",
|
|
133
|
-
WIZY_RECORDING: "wizyconfRecordings",
|
|
134
|
-
};
|
|
135
119
|
export class TagsLimitReachedException extends __BaseException {
|
|
136
120
|
constructor(opts) {
|
|
137
121
|
super({
|
|
@@ -179,24 +163,17 @@ export const ReactionType = {
|
|
|
179
163
|
THUMBSUP: "thumbsup",
|
|
180
164
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
181
165
|
};
|
|
182
|
-
export
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if (value.mention !== undefined)
|
|
194
|
-
return visitor.mention(value.mention);
|
|
195
|
-
if (value.actions !== undefined)
|
|
196
|
-
return visitor.actions(value.actions);
|
|
197
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
198
|
-
};
|
|
199
|
-
})(Element || (Element = {}));
|
|
166
|
+
export const WebhookEventType = {
|
|
167
|
+
CHANNEL_CREATED: "chat:channel:created",
|
|
168
|
+
CHANNEL_UPDATED: "chat:channel:updated",
|
|
169
|
+
MEMBER_ADDED: "chat:member:added",
|
|
170
|
+
MEMBER_REMOVED: "chat:member:removed",
|
|
171
|
+
MESSAGE_DELETED: "chat:message:deleted",
|
|
172
|
+
MESSAGE_NEW: "chat:message:new",
|
|
173
|
+
MESSAGE_UPDATED: "chat:message:updated",
|
|
174
|
+
REACTION_DELETED: "chat:reaction:deleted",
|
|
175
|
+
REACTION_NEW: "chat:reaction:new",
|
|
176
|
+
};
|
|
200
177
|
export const MessageSmsStatus = {
|
|
201
178
|
DELIVERED: "delivered",
|
|
202
179
|
ERROR: "error",
|
|
@@ -213,42 +190,6 @@ export const MessageWhatsAppStatus = {
|
|
|
213
190
|
SENT: "sent",
|
|
214
191
|
TRYING: "trying",
|
|
215
192
|
};
|
|
216
|
-
export const WebhookEventType = {
|
|
217
|
-
ACTION_TRIGGERED: "chat:action:triggered",
|
|
218
|
-
CHANNEL_CREATED: "chat:channel:created",
|
|
219
|
-
CHANNEL_UPDATED: "chat:channel:updated",
|
|
220
|
-
MEMBER_ADDED: "chat:member:added",
|
|
221
|
-
MEMBER_REMOVED: "chat:member:removed",
|
|
222
|
-
MESSAGE_DELETED: "chat:message:deleted",
|
|
223
|
-
MESSAGE_NEW: "chat:message:new",
|
|
224
|
-
MESSAGE_UPDATED: "chat:message:updated",
|
|
225
|
-
REACTION_DELETED: "chat:reaction:deleted",
|
|
226
|
-
REACTION_NEW: "chat:reaction:new",
|
|
227
|
-
};
|
|
228
|
-
export class TriggerNotFoundException extends __BaseException {
|
|
229
|
-
constructor(opts) {
|
|
230
|
-
super({
|
|
231
|
-
name: "TriggerNotFoundException",
|
|
232
|
-
$fault: "client",
|
|
233
|
-
...opts
|
|
234
|
-
});
|
|
235
|
-
this.name = "TriggerNotFoundException";
|
|
236
|
-
this.$fault = "client";
|
|
237
|
-
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
export class FileNotFoundException extends __BaseException {
|
|
241
|
-
constructor(opts) {
|
|
242
|
-
super({
|
|
243
|
-
name: "FileNotFoundException",
|
|
244
|
-
$fault: "client",
|
|
245
|
-
...opts
|
|
246
|
-
});
|
|
247
|
-
this.name = "FileNotFoundException";
|
|
248
|
-
this.$fault = "client";
|
|
249
|
-
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
193
|
export class TagNotFoundException extends __BaseException {
|
|
253
194
|
constructor(opts) {
|
|
254
195
|
super({
|
|
@@ -323,15 +264,3 @@ export class TaggedChannelsLimitReachedException extends __BaseException {
|
|
|
323
264
|
Object.setPrototypeOf(this, TaggedChannelsLimitReachedException.prototype);
|
|
324
265
|
}
|
|
325
266
|
}
|
|
326
|
-
export class MessageActionNotFoundException extends __BaseException {
|
|
327
|
-
constructor(opts) {
|
|
328
|
-
super({
|
|
329
|
-
name: "MessageActionNotFoundException",
|
|
330
|
-
$fault: "client",
|
|
331
|
-
...opts
|
|
332
|
-
});
|
|
333
|
-
this.name = "MessageActionNotFoundException";
|
|
334
|
-
this.$fault = "client";
|
|
335
|
-
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException,
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, 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,21 +182,6 @@ 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
|
-
};
|
|
200
185
|
export const se_GetChannelCommand = async (input, context) => {
|
|
201
186
|
const b = rb(input, context);
|
|
202
187
|
const headers = {};
|
|
@@ -484,22 +469,6 @@ export const se_ListMessagesCommand = async (input, context) => {
|
|
|
484
469
|
.b(body);
|
|
485
470
|
return b.build();
|
|
486
471
|
};
|
|
487
|
-
export const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
488
|
-
const b = rb(input, context);
|
|
489
|
-
const headers = {};
|
|
490
|
-
b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
|
|
491
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
492
|
-
const query = map({
|
|
493
|
-
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
494
|
-
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
495
|
-
});
|
|
496
|
-
let body;
|
|
497
|
-
b.m("GET")
|
|
498
|
-
.h(headers)
|
|
499
|
-
.q(query)
|
|
500
|
-
.b(body);
|
|
501
|
-
return b.build();
|
|
502
|
-
};
|
|
503
472
|
export const se_MarkReadCommand = async (input, context) => {
|
|
504
473
|
const b = rb(input, context);
|
|
505
474
|
const headers = {};
|
|
@@ -572,7 +541,6 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
572
541
|
let body;
|
|
573
542
|
body = JSON.stringify(take(input, {
|
|
574
543
|
'set': _ => _json(_),
|
|
575
|
-
'silent': [],
|
|
576
544
|
'unset': _ => _json(_),
|
|
577
545
|
}));
|
|
578
546
|
b.m("PATCH")
|
|
@@ -597,29 +565,6 @@ export const se_PinChannelCommand = async (input, context) => {
|
|
|
597
565
|
.b(body);
|
|
598
566
|
return b.build();
|
|
599
567
|
};
|
|
600
|
-
export const se_PinMessageCommand = async (input, context) => {
|
|
601
|
-
const b = rb(input, context);
|
|
602
|
-
const headers = {
|
|
603
|
-
'content-type': 'application/json',
|
|
604
|
-
};
|
|
605
|
-
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
606
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
607
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
608
|
-
const query = map({
|
|
609
|
-
[_u]: [, input[_uI]],
|
|
610
|
-
});
|
|
611
|
-
let body;
|
|
612
|
-
body = JSON.stringify(take(input, {
|
|
613
|
-
'expiresAfter': [],
|
|
614
|
-
'expiresTill': [],
|
|
615
|
-
'silent': [],
|
|
616
|
-
}));
|
|
617
|
-
b.m("PUT")
|
|
618
|
-
.h(headers)
|
|
619
|
-
.q(query)
|
|
620
|
-
.b(body);
|
|
621
|
-
return b.build();
|
|
622
|
-
};
|
|
623
568
|
export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
624
569
|
const b = rb(input, context);
|
|
625
570
|
const headers = {
|
|
@@ -635,23 +580,6 @@ export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context
|
|
|
635
580
|
.b(body);
|
|
636
581
|
return b.build();
|
|
637
582
|
};
|
|
638
|
-
export const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
639
|
-
const b = rb(input, context);
|
|
640
|
-
const headers = {
|
|
641
|
-
'content-type': 'application/json',
|
|
642
|
-
};
|
|
643
|
-
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
644
|
-
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
645
|
-
let body;
|
|
646
|
-
body = JSON.stringify(take(input, {
|
|
647
|
-
'result': _ => _json(_),
|
|
648
|
-
'status': [],
|
|
649
|
-
}));
|
|
650
|
-
b.m("POST")
|
|
651
|
-
.h(headers)
|
|
652
|
-
.b(body);
|
|
653
|
-
return b.build();
|
|
654
|
-
};
|
|
655
583
|
export const se_SendGiphyCommand = async (input, context) => {
|
|
656
584
|
const b = rb(input, context);
|
|
657
585
|
const headers = {
|
|
@@ -686,7 +614,6 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
686
614
|
let body;
|
|
687
615
|
body = JSON.stringify(take(input, {
|
|
688
616
|
'attachments': _ => _json(_),
|
|
689
|
-
'elements': _ => _json(_),
|
|
690
617
|
'forward': _ => _json(_),
|
|
691
618
|
'mentions': _ => _json(_),
|
|
692
619
|
'messageId': [],
|
|
@@ -782,23 +709,6 @@ export const se_TagChannelCommand = async (input, context) => {
|
|
|
782
709
|
.b(body);
|
|
783
710
|
return b.build();
|
|
784
711
|
};
|
|
785
|
-
export const se_TriggerMessageActionCommand = async (input, context) => {
|
|
786
|
-
const b = rb(input, context);
|
|
787
|
-
const headers = {};
|
|
788
|
-
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
789
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
790
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
791
|
-
b.p('actionId', () => input.actionId, '{actionId}', false);
|
|
792
|
-
const query = map({
|
|
793
|
-
[_u]: [, input[_uI]],
|
|
794
|
-
});
|
|
795
|
-
let body;
|
|
796
|
-
b.m("POST")
|
|
797
|
-
.h(headers)
|
|
798
|
-
.q(query)
|
|
799
|
-
.b(body);
|
|
800
|
-
return b.build();
|
|
801
|
-
};
|
|
802
712
|
export const se_UnpinChannelCommand = async (input, context) => {
|
|
803
713
|
const b = rb(input, context);
|
|
804
714
|
const headers = {};
|
|
@@ -814,23 +724,6 @@ export const se_UnpinChannelCommand = async (input, context) => {
|
|
|
814
724
|
.b(body);
|
|
815
725
|
return b.build();
|
|
816
726
|
};
|
|
817
|
-
export const se_UnpinMessageCommand = async (input, context) => {
|
|
818
|
-
const b = rb(input, context);
|
|
819
|
-
const headers = {};
|
|
820
|
-
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
821
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
822
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
823
|
-
const query = map({
|
|
824
|
-
[_u]: [, input[_uI]],
|
|
825
|
-
[_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
|
|
826
|
-
});
|
|
827
|
-
let body;
|
|
828
|
-
b.m("DELETE")
|
|
829
|
-
.h(headers)
|
|
830
|
-
.q(query)
|
|
831
|
-
.b(body);
|
|
832
|
-
return b.build();
|
|
833
|
-
};
|
|
834
727
|
export const se_UntagChannelCommand = async (input, context) => {
|
|
835
728
|
const b = rb(input, context);
|
|
836
729
|
const headers = {
|
|
@@ -911,11 +804,9 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
911
804
|
let body;
|
|
912
805
|
body = JSON.stringify(take(input, {
|
|
913
806
|
'attachments': _ => _json(_),
|
|
914
|
-
'elements': _ => _json(_),
|
|
915
807
|
'forward': _ => _json(_),
|
|
916
808
|
'mentions': _ => _json(_),
|
|
917
809
|
'quote': _ => _json(_),
|
|
918
|
-
'silent': [],
|
|
919
810
|
'text': [],
|
|
920
811
|
}));
|
|
921
812
|
b.m("PUT")
|
|
@@ -1062,7 +953,6 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
1062
953
|
});
|
|
1063
954
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1064
955
|
const doc = take(data, {
|
|
1065
|
-
'WebhookChatActionTriggeredEvent': _json,
|
|
1066
956
|
'WebhookChatChannelCreatedEvent': _json,
|
|
1067
957
|
'WebhookChatChannelUpdatedEvent': _json,
|
|
1068
958
|
'WebhookChatMemberAddedEvent': _json,
|
|
@@ -1076,21 +966,6 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
1076
966
|
Object.assign(contents, doc);
|
|
1077
967
|
return contents;
|
|
1078
968
|
};
|
|
1079
|
-
export const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
1080
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
|
-
return de_CommandError(output, context);
|
|
1082
|
-
}
|
|
1083
|
-
const contents = map({
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
});
|
|
1086
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1087
|
-
const doc = take(data, {
|
|
1088
|
-
'result': _json,
|
|
1089
|
-
'status': __expectString,
|
|
1090
|
-
});
|
|
1091
|
-
Object.assign(contents, doc);
|
|
1092
|
-
return contents;
|
|
1093
|
-
};
|
|
1094
969
|
export const de_GetChannelCommand = async (output, context) => {
|
|
1095
970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1096
971
|
return de_CommandError(output, context);
|
|
@@ -1338,20 +1213,6 @@ export const de_ListMessagesCommand = async (output, context) => {
|
|
|
1338
1213
|
Object.assign(contents, doc);
|
|
1339
1214
|
return contents;
|
|
1340
1215
|
};
|
|
1341
|
-
export const de_ListPinnedMessagesCommand = async (output, context) => {
|
|
1342
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1343
|
-
return de_CommandError(output, context);
|
|
1344
|
-
}
|
|
1345
|
-
const contents = map({
|
|
1346
|
-
$metadata: deserializeMetadata(output),
|
|
1347
|
-
});
|
|
1348
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1349
|
-
const doc = take(data, {
|
|
1350
|
-
'messages': _json,
|
|
1351
|
-
});
|
|
1352
|
-
Object.assign(contents, doc);
|
|
1353
|
-
return contents;
|
|
1354
|
-
};
|
|
1355
1216
|
export const de_MarkReadCommand = async (output, context) => {
|
|
1356
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
1218
|
return de_CommandError(output, context);
|
|
@@ -1410,16 +1271,6 @@ export const de_PinChannelCommand = async (output, context) => {
|
|
|
1410
1271
|
await collectBody(output.body, context);
|
|
1411
1272
|
return contents;
|
|
1412
1273
|
};
|
|
1413
|
-
export const de_PinMessageCommand = async (output, context) => {
|
|
1414
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
-
return de_CommandError(output, context);
|
|
1416
|
-
}
|
|
1417
|
-
const contents = map({
|
|
1418
|
-
$metadata: deserializeMetadata(output),
|
|
1419
|
-
});
|
|
1420
|
-
await collectBody(output.body, context);
|
|
1421
|
-
return contents;
|
|
1422
|
-
};
|
|
1423
1274
|
export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
1424
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1425
1276
|
return de_CommandError(output, context);
|
|
@@ -1430,16 +1281,6 @@ export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, contex
|
|
|
1430
1281
|
await collectBody(output.body, context);
|
|
1431
1282
|
return contents;
|
|
1432
1283
|
};
|
|
1433
|
-
export const de_SendActionTriggerResultCommand = async (output, context) => {
|
|
1434
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1435
|
-
return de_CommandError(output, context);
|
|
1436
|
-
}
|
|
1437
|
-
const contents = map({
|
|
1438
|
-
$metadata: deserializeMetadata(output),
|
|
1439
|
-
});
|
|
1440
|
-
await collectBody(output.body, context);
|
|
1441
|
-
return contents;
|
|
1442
|
-
};
|
|
1443
1284
|
export const de_SendGiphyCommand = async (output, context) => {
|
|
1444
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
1286
|
return de_CommandError(output, context);
|
|
@@ -1518,20 +1359,6 @@ export const de_TagChannelCommand = async (output, context) => {
|
|
|
1518
1359
|
await collectBody(output.body, context);
|
|
1519
1360
|
return contents;
|
|
1520
1361
|
};
|
|
1521
|
-
export const de_TriggerMessageActionCommand = async (output, context) => {
|
|
1522
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1523
|
-
return de_CommandError(output, context);
|
|
1524
|
-
}
|
|
1525
|
-
const contents = map({
|
|
1526
|
-
$metadata: deserializeMetadata(output),
|
|
1527
|
-
});
|
|
1528
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1529
|
-
const doc = take(data, {
|
|
1530
|
-
'triggerId': __expectString,
|
|
1531
|
-
});
|
|
1532
|
-
Object.assign(contents, doc);
|
|
1533
|
-
return contents;
|
|
1534
|
-
};
|
|
1535
1362
|
export const de_UnpinChannelCommand = async (output, context) => {
|
|
1536
1363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
1364
|
return de_CommandError(output, context);
|
|
@@ -1542,16 +1369,6 @@ export const de_UnpinChannelCommand = async (output, context) => {
|
|
|
1542
1369
|
await collectBody(output.body, context);
|
|
1543
1370
|
return contents;
|
|
1544
1371
|
};
|
|
1545
|
-
export const de_UnpinMessageCommand = async (output, context) => {
|
|
1546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1547
|
-
return de_CommandError(output, context);
|
|
1548
|
-
}
|
|
1549
|
-
const contents = map({
|
|
1550
|
-
$metadata: deserializeMetadata(output),
|
|
1551
|
-
});
|
|
1552
|
-
await collectBody(output.body, context);
|
|
1553
|
-
return contents;
|
|
1554
|
-
};
|
|
1555
1372
|
export const de_UntagChannelCommand = async (output, context) => {
|
|
1556
1373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
1374
|
return de_CommandError(output, context);
|
|
@@ -1653,9 +1470,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1653
1470
|
case "MessageNotFoundException":
|
|
1654
1471
|
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1655
1472
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "TriggerNotFoundException":
|
|
1657
|
-
case "wildix.xbees.conversations#TriggerNotFoundException":
|
|
1658
|
-
throw await de_TriggerNotFoundExceptionRes(parsedOutput, context);
|
|
1659
1473
|
case "FileNotFoundException":
|
|
1660
1474
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1661
1475
|
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1674,9 +1488,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1674
1488
|
case "TaggedChannelsLimitReachedException":
|
|
1675
1489
|
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1676
1490
|
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "MessageActionNotFoundException":
|
|
1678
|
-
case "wildix.xbees.conversations#MessageActionNotFoundException":
|
|
1679
|
-
throw await de_MessageActionNotFoundExceptionRes(parsedOutput, context);
|
|
1680
1491
|
default:
|
|
1681
1492
|
const parsedBody = parsedOutput.body;
|
|
1682
1493
|
return throwDefaultError({
|
|
@@ -1822,19 +1633,6 @@ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1822
1633
|
});
|
|
1823
1634
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1824
1635
|
};
|
|
1825
|
-
const de_MessageActionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1826
|
-
const contents = map({});
|
|
1827
|
-
const data = parsedOutput.body;
|
|
1828
|
-
const doc = take(data, {
|
|
1829
|
-
'message': __expectString,
|
|
1830
|
-
});
|
|
1831
|
-
Object.assign(contents, doc);
|
|
1832
|
-
const exception = new MessageActionNotFoundException({
|
|
1833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1834
|
-
...contents
|
|
1835
|
-
});
|
|
1836
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1837
|
-
};
|
|
1838
1636
|
const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1839
1637
|
const contents = map({});
|
|
1840
1638
|
const data = parsedOutput.body;
|
|
@@ -1900,19 +1698,6 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
1900
1698
|
});
|
|
1901
1699
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1902
1700
|
};
|
|
1903
|
-
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1904
|
-
const contents = map({});
|
|
1905
|
-
const data = parsedOutput.body;
|
|
1906
|
-
const doc = take(data, {
|
|
1907
|
-
'message': __expectString,
|
|
1908
|
-
});
|
|
1909
|
-
Object.assign(contents, doc);
|
|
1910
|
-
const exception = new TriggerNotFoundException({
|
|
1911
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1912
|
-
...contents
|
|
1913
|
-
});
|
|
1914
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1915
|
-
};
|
|
1916
1701
|
const deserializeMetadata = (output) => ({
|
|
1917
1702
|
httpStatusCode: output.statusCode,
|
|
1918
1703
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|