@wildix/stream-client 0.0.1 → 0.0.5
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/StreamService.js +98 -6
- package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateSectionCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
- package/dist-cjs/commands/GetChannelCommand.js +21 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTokenCommand.js +21 -0
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
- package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
- package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
- package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
- package/dist-cjs/commands/MarkReadCommand.js +21 -0
- package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
- package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
- package/dist-cjs/commands/MuteChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/PinChannelCommand.js +21 -0
- package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
- package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
- package/dist-cjs/commands/RenameSectionCommand.js +21 -0
- package/dist-cjs/commands/SendGiphyCommand.js +21 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
- package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/ShowChannelCommand.js +21 -0
- package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
- package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/UploadFileCommand.js +21 -0
- package/dist-cjs/commands/index.js +49 -3
- package/dist-cjs/models/models_0.js +293 -26
- package/dist-cjs/protocols/Aws_restJson1.js +1955 -131
- package/dist-es/StreamService.js +98 -6
- package/dist-es/commands/AddChannelMemberCommand.js +17 -0
- package/dist-es/commands/AddChannelMembersCommand.js +17 -0
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
- package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
- package/dist-es/commands/CreateSectionCommand.js +17 -0
- package/dist-es/commands/DeleteChannelCommand.js +17 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
- package/dist-es/commands/DeleteSectionCommand.js +17 -0
- package/dist-es/commands/GetChannelCommand.js +17 -0
- package/dist-es/commands/GetChannelMemberCommand.js +17 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
- package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTokenCommand.js +17 -0
- package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
- package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
- package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
- package/dist-es/commands/LeaveChannelCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
- package/dist-es/commands/MarkReadCommand.js +17 -0
- package/dist-es/commands/MarkUnreadCommand.js +17 -0
- package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
- package/dist-es/commands/MuteChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
- package/dist-es/commands/PinChannelCommand.js +17 -0
- package/dist-es/commands/QueryChannelsCommand.js +17 -0
- package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
- package/dist-es/commands/RenameSectionCommand.js +17 -0
- package/dist-es/commands/SendGiphyCommand.js +17 -0
- package/dist-es/commands/SendMessageReactionCommand.js +17 -0
- package/dist-es/commands/SendSystemMessageCommand.js +17 -0
- package/dist-es/commands/SendTypingStartCommand.js +17 -0
- package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
- package/dist-es/commands/ShowChannelCommand.js +17 -0
- package/dist-es/commands/UnmuteChannelCommand.js +17 -0
- package/dist-es/commands/UnpinChannelCommand.js +17 -0
- package/dist-es/commands/UpdateChannelCommand.js +17 -0
- package/dist-es/commands/UpdateMessageCommand.js +17 -0
- package/dist-es/commands/UploadFileCommand.js +17 -0
- package/dist-es/commands/index.js +49 -3
- package/dist-es/models/models_0.js +281 -23
- package/dist-es/protocols/Aws_restJson1.js +1843 -113
- package/dist-types/StreamService.d.ts +341 -15
- package/dist-types/StreamServiceClient.d.ts +51 -5
- package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
- package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
- package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +193 -0
- package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
- package/dist-types/commands/GetChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
- package/dist-types/commands/GetInboxCommand.d.ts +53 -6
- package/dist-types/commands/GetMessageCommand.d.ts +57 -1
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTokenCommand.d.ts +85 -0
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/HideChannelCommand.d.ts +84 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +53 -6
- package/dist-types/commands/ListMentionsCommand.d.ts +58 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +57 -1
- package/dist-types/commands/MarkReadCommand.d.ts +99 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
- package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
- package/dist-types/commands/PinChannelCommand.d.ts +87 -0
- package/dist-types/commands/PinMessageCommand.d.ts +57 -1
- package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
- package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +207 -0
- package/dist-types/commands/SendMessageCommand.d.ts +105 -8
- package/dist-types/commands/SendMessageReactionCommand.d.ts +193 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
- package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
- package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +57 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
- package/dist-types/commands/UploadFileCommand.d.ts +94 -0
- package/dist-types/commands/index.d.ts +49 -3
- package/dist-types/models/models_0.d.ts +3256 -403
- package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
- package/package.json +1 -1
- package/dist-types/commands/AddReactionCommand.d.ts +0 -137
- package/dist-types/commands/EditMessageCommand.d.ts +0 -151
- package/dist-types/commands/RemoveReactionCommand.d.ts +0 -137
|
@@ -1,83 +1,201 @@
|
|
|
1
1
|
import { StreamServiceServiceException as __BaseException } from "../models/StreamServiceServiceException";
|
|
2
|
-
import { ChannelNotFoundException, ForbiddenException,
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, SectionNotFoundException, StreamServiceException, TargetNotEligibleException, TargetNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
|
-
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";
|
|
6
|
-
export const
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
|
+
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
|
|
8
|
+
const headers = {
|
|
9
|
+
'content-type': 'application/json',
|
|
10
|
+
};
|
|
11
|
+
b.bp("/api/v1/channels/{channelId}/members");
|
|
10
12
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
11
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
12
|
-
b.p('type', () => input.type, '{type}', false);
|
|
13
13
|
const query = map({
|
|
14
14
|
[_c]: [, input[_cI]],
|
|
15
15
|
[_uI]: [, input[_uI]],
|
|
16
16
|
});
|
|
17
17
|
let body;
|
|
18
|
-
|
|
18
|
+
body = JSON.stringify(take(input, {
|
|
19
|
+
'hideHistory': [],
|
|
20
|
+
'memberId': [],
|
|
21
|
+
'memberToInvite': _ => _json(_),
|
|
22
|
+
'silent': [],
|
|
23
|
+
}));
|
|
24
|
+
b.m("POST")
|
|
19
25
|
.h(headers)
|
|
20
26
|
.q(query)
|
|
21
27
|
.b(body);
|
|
22
28
|
return b.build();
|
|
23
29
|
};
|
|
24
|
-
export const
|
|
30
|
+
export const se_AddChannelMembersCommand = async (input, context) => {
|
|
25
31
|
const b = rb(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
|
|
32
|
+
const headers = {
|
|
33
|
+
'content-type': 'application/json',
|
|
34
|
+
};
|
|
35
|
+
b.bp("/api/v1/channels/{channelId}/members");
|
|
28
36
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
29
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
30
37
|
const query = map({
|
|
31
38
|
[_c]: [, input[_cI]],
|
|
32
39
|
[_uI]: [, input[_uI]],
|
|
33
40
|
});
|
|
34
41
|
let body;
|
|
35
|
-
|
|
42
|
+
body = JSON.stringify(take(input, {
|
|
43
|
+
'hideHistory': [],
|
|
44
|
+
'members': _ => _json(_),
|
|
45
|
+
'membersToInvite': _ => _json(_),
|
|
46
|
+
'silent': [],
|
|
47
|
+
'unreadMessageId': [],
|
|
48
|
+
}));
|
|
49
|
+
b.m("PUT")
|
|
36
50
|
.h(headers)
|
|
37
51
|
.q(query)
|
|
38
52
|
.b(body);
|
|
39
53
|
return b.build();
|
|
40
54
|
};
|
|
41
|
-
export const
|
|
55
|
+
export const se_AssignChannelCommand = async (input, context) => {
|
|
42
56
|
const b = rb(input, context);
|
|
43
57
|
const headers = {
|
|
44
58
|
'content-type': 'application/json',
|
|
45
59
|
};
|
|
46
|
-
b.bp("/api/v1/channels/{channelId}/
|
|
60
|
+
b.bp("/api/v1/channels/{channelId}/assign");
|
|
47
61
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
48
|
-
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
49
62
|
const query = map({
|
|
50
63
|
[_c]: [, input[_cI]],
|
|
51
64
|
[_uI]: [, input[_uI]],
|
|
52
65
|
});
|
|
53
66
|
let body;
|
|
54
67
|
body = JSON.stringify(take(input, {
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
68
|
+
'assignee': _ => _json(_),
|
|
69
|
+
'service': _ => _json(_),
|
|
70
|
+
'silent': [],
|
|
71
|
+
'variant': [],
|
|
58
72
|
}));
|
|
59
|
-
b.m("
|
|
73
|
+
b.m("POST")
|
|
60
74
|
.h(headers)
|
|
61
75
|
.q(query)
|
|
62
76
|
.b(body);
|
|
63
77
|
return b.build();
|
|
64
78
|
};
|
|
65
|
-
export const
|
|
79
|
+
export const se_CreateGroupChannelCommand = async (input, context) => {
|
|
80
|
+
const b = rb(input, context);
|
|
81
|
+
const headers = {
|
|
82
|
+
'content-type': 'application/json',
|
|
83
|
+
};
|
|
84
|
+
b.bp("/api/v1/channels/group");
|
|
85
|
+
const query = map({
|
|
86
|
+
[_c]: [, input[_cI]],
|
|
87
|
+
[_uI]: [, input[_uI]],
|
|
88
|
+
});
|
|
89
|
+
let body;
|
|
90
|
+
body = JSON.stringify(take(input, {
|
|
91
|
+
'access': [],
|
|
92
|
+
'assigneeId': [],
|
|
93
|
+
'autoRecord': [],
|
|
94
|
+
'broadcast': [],
|
|
95
|
+
'channelId': [],
|
|
96
|
+
'context': _ => _json(_),
|
|
97
|
+
'creationEventType': [],
|
|
98
|
+
'description': [],
|
|
99
|
+
'kiteAssign': [],
|
|
100
|
+
'members': _ => _json(_),
|
|
101
|
+
'membersToInvite': _ => _json(_),
|
|
102
|
+
'mms': [],
|
|
103
|
+
'picture': [],
|
|
104
|
+
'pictureColor': [],
|
|
105
|
+
'serviceTitle': [],
|
|
106
|
+
'sms': [],
|
|
107
|
+
'subject': [],
|
|
108
|
+
'transcriptionLanguage': [],
|
|
109
|
+
'whatsapp': [],
|
|
110
|
+
'whatsappStatus': [],
|
|
111
|
+
'wizyGuestViewOnly': [],
|
|
112
|
+
}));
|
|
113
|
+
b.m("POST")
|
|
114
|
+
.h(headers)
|
|
115
|
+
.q(query)
|
|
116
|
+
.b(body);
|
|
117
|
+
return b.build();
|
|
118
|
+
};
|
|
119
|
+
export const se_CreateKiteChannelCommand = async (input, context) => {
|
|
120
|
+
const b = rb(input, context);
|
|
121
|
+
const headers = {
|
|
122
|
+
'content-type': 'application/json',
|
|
123
|
+
};
|
|
124
|
+
b.bp("/api/v1/channels/kite");
|
|
125
|
+
const query = map({
|
|
126
|
+
[_c]: [, input[_cI]],
|
|
127
|
+
[_uI]: [, input[_uI]],
|
|
128
|
+
});
|
|
129
|
+
let body;
|
|
130
|
+
body = JSON.stringify(take(input, {
|
|
131
|
+
'channelId': [],
|
|
132
|
+
'initialMessage': _ => _json(_),
|
|
133
|
+
'targetId': [],
|
|
134
|
+
'targetRouteId': [],
|
|
135
|
+
'welcomeMessages': _ => _json(_),
|
|
136
|
+
}));
|
|
137
|
+
b.m("POST")
|
|
138
|
+
.h(headers)
|
|
139
|
+
.q(query)
|
|
140
|
+
.b(body);
|
|
141
|
+
return b.build();
|
|
142
|
+
};
|
|
143
|
+
export const se_CreateSectionCommand = async (input, context) => {
|
|
144
|
+
const b = rb(input, context);
|
|
145
|
+
const headers = {
|
|
146
|
+
'content-type': 'application/json',
|
|
147
|
+
};
|
|
148
|
+
b.bp("/api/v1/sections");
|
|
149
|
+
const query = map({
|
|
150
|
+
[_c]: [, input[_cI]],
|
|
151
|
+
[_uI]: [, input[_uI]],
|
|
152
|
+
});
|
|
153
|
+
let body;
|
|
154
|
+
body = JSON.stringify(take(input, {
|
|
155
|
+
'name': [],
|
|
156
|
+
'sectionId': [],
|
|
157
|
+
}));
|
|
158
|
+
b.m("POST")
|
|
159
|
+
.h(headers)
|
|
160
|
+
.q(query)
|
|
161
|
+
.b(body);
|
|
162
|
+
return b.build();
|
|
163
|
+
};
|
|
164
|
+
export const se_DeleteChannelCommand = async (input, context) => {
|
|
66
165
|
const b = rb(input, context);
|
|
67
166
|
const headers = {};
|
|
68
|
-
b.bp("/api/v1/
|
|
167
|
+
b.bp("/api/v1/channels/{channelId}");
|
|
168
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
69
169
|
const query = map({
|
|
70
170
|
[_c]: [, input[_cI]],
|
|
71
171
|
[_uI]: [, input[_uI]],
|
|
72
172
|
});
|
|
73
173
|
let body;
|
|
74
|
-
b.m("
|
|
174
|
+
b.m("DELETE")
|
|
75
175
|
.h(headers)
|
|
76
176
|
.q(query)
|
|
77
177
|
.b(body);
|
|
78
178
|
return b.build();
|
|
79
179
|
};
|
|
80
|
-
export const
|
|
180
|
+
export const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
181
|
+
const b = rb(input, context);
|
|
182
|
+
const headers = {};
|
|
183
|
+
b.bp("/api/v1/channels/{channelId}/members/{memberId}");
|
|
184
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
185
|
+
b.p('memberId', () => input.memberId, '{memberId}', false);
|
|
186
|
+
const query = map({
|
|
187
|
+
[_c]: [, input[_cI]],
|
|
188
|
+
[_uI]: [, input[_uI]],
|
|
189
|
+
[_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
|
|
190
|
+
});
|
|
191
|
+
let body;
|
|
192
|
+
b.m("DELETE")
|
|
193
|
+
.h(headers)
|
|
194
|
+
.q(query)
|
|
195
|
+
.b(body);
|
|
196
|
+
return b.build();
|
|
197
|
+
};
|
|
198
|
+
export const se_DeleteMessageCommand = async (input, context) => {
|
|
81
199
|
const b = rb(input, context);
|
|
82
200
|
const headers = {};
|
|
83
201
|
b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
|
|
@@ -88,39 +206,54 @@ export const se_GetMessageCommand = async (input, context) => {
|
|
|
88
206
|
[_uI]: [, input[_uI]],
|
|
89
207
|
});
|
|
90
208
|
let body;
|
|
91
|
-
b.m("
|
|
209
|
+
b.m("DELETE")
|
|
92
210
|
.h(headers)
|
|
93
211
|
.q(query)
|
|
94
212
|
.b(body);
|
|
95
213
|
return b.build();
|
|
96
214
|
};
|
|
97
|
-
export const
|
|
215
|
+
export const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
98
216
|
const b = rb(input, context);
|
|
99
217
|
const headers = {};
|
|
100
|
-
b.bp("/api/v1/channels");
|
|
218
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
|
|
219
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
220
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
221
|
+
b.p('type', () => input.type, '{type}', false);
|
|
101
222
|
const query = map({
|
|
102
223
|
[_c]: [, input[_cI]],
|
|
103
224
|
[_uI]: [, input[_uI]],
|
|
104
|
-
[_s]: [, input[_s]],
|
|
105
|
-
[_f]: [, input[_f]],
|
|
106
|
-
[_cu]: [, input[_cu]],
|
|
107
225
|
});
|
|
108
226
|
let body;
|
|
109
|
-
b.m("
|
|
227
|
+
b.m("DELETE")
|
|
110
228
|
.h(headers)
|
|
111
229
|
.q(query)
|
|
112
230
|
.b(body);
|
|
113
231
|
return b.build();
|
|
114
232
|
};
|
|
115
|
-
export const
|
|
233
|
+
export const se_DeleteSectionCommand = async (input, context) => {
|
|
116
234
|
const b = rb(input, context);
|
|
117
235
|
const headers = {};
|
|
118
|
-
b.bp("/api/v1/
|
|
236
|
+
b.bp("/api/v1/sections/{sectionId}");
|
|
237
|
+
b.p('sectionId', () => input.sectionId, '{sectionId}', false);
|
|
238
|
+
const query = map({
|
|
239
|
+
[_c]: [, input[_cI]],
|
|
240
|
+
[_uI]: [, input[_uI]],
|
|
241
|
+
});
|
|
242
|
+
let body;
|
|
243
|
+
b.m("DELETE")
|
|
244
|
+
.h(headers)
|
|
245
|
+
.q(query)
|
|
246
|
+
.b(body);
|
|
247
|
+
return b.build();
|
|
248
|
+
};
|
|
249
|
+
export const se_GetChannelCommand = async (input, context) => {
|
|
250
|
+
const b = rb(input, context);
|
|
251
|
+
const headers = {};
|
|
252
|
+
b.bp("/api/v1/channels/{channelId}");
|
|
253
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
119
254
|
const query = map({
|
|
120
255
|
[_c]: [, input[_cI]],
|
|
121
256
|
[_uI]: [, input[_uI]],
|
|
122
|
-
[_f]: [, input[_f]],
|
|
123
|
-
[_cu]: [, input[_cu]],
|
|
124
257
|
});
|
|
125
258
|
let body;
|
|
126
259
|
b.m("GET")
|
|
@@ -129,16 +262,15 @@ export const se_ListMentionsCommand = async (input, context) => {
|
|
|
129
262
|
.b(body);
|
|
130
263
|
return b.build();
|
|
131
264
|
};
|
|
132
|
-
export const
|
|
265
|
+
export const se_GetChannelMemberCommand = async (input, context) => {
|
|
133
266
|
const b = rb(input, context);
|
|
134
267
|
const headers = {};
|
|
135
|
-
b.bp("/api/v1/channels/{channelId}/
|
|
268
|
+
b.bp("/api/v1/channels/{channelId}/members/{memberId}");
|
|
136
269
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
270
|
+
b.p('memberId', () => input.memberId, '{memberId}', false);
|
|
137
271
|
const query = map({
|
|
138
272
|
[_c]: [, input[_cI]],
|
|
139
273
|
[_uI]: [, input[_uI]],
|
|
140
|
-
[_fr]: [() => input.from !== void 0, () => (input[_fr].toString())],
|
|
141
|
-
[_t]: [() => input.to !== void 0, () => (input[_t].toString())],
|
|
142
274
|
});
|
|
143
275
|
let body;
|
|
144
276
|
b.m("GET")
|
|
@@ -147,61 +279,183 @@ export const se_ListMessagesCommand = async (input, context) => {
|
|
|
147
279
|
.b(body);
|
|
148
280
|
return b.build();
|
|
149
281
|
};
|
|
150
|
-
export const
|
|
282
|
+
export const se_GetDirectChannelIdCommand = async (input, context) => {
|
|
283
|
+
const b = rb(input, context);
|
|
284
|
+
const headers = {
|
|
285
|
+
'content-type': 'application/json',
|
|
286
|
+
};
|
|
287
|
+
b.bp("/api/v1/channels/direct/resolve-id");
|
|
288
|
+
const query = map({
|
|
289
|
+
[_c]: [, input[_cI]],
|
|
290
|
+
[_uI]: [, input[_uI]],
|
|
291
|
+
});
|
|
292
|
+
let body;
|
|
293
|
+
body = JSON.stringify(take(input, {
|
|
294
|
+
'memberId': [],
|
|
295
|
+
'memberToInvite': _ => _json(_),
|
|
296
|
+
}));
|
|
297
|
+
b.m("POST")
|
|
298
|
+
.h(headers)
|
|
299
|
+
.q(query)
|
|
300
|
+
.b(body);
|
|
301
|
+
return b.build();
|
|
302
|
+
};
|
|
303
|
+
export const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
151
304
|
const b = rb(input, context);
|
|
152
305
|
const headers = {};
|
|
153
|
-
b.bp("/api/v1/channels/{channelId}/messages/{messageId}/
|
|
306
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}/files/{fsId}/download-url");
|
|
154
307
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
155
308
|
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
309
|
+
b.p('fsId', () => input.fsId, '{fsId}', false);
|
|
156
310
|
const query = map({
|
|
157
311
|
[_c]: [, input[_cI]],
|
|
158
312
|
[_uI]: [, input[_uI]],
|
|
313
|
+
[_ca]: [, input[_ca]],
|
|
314
|
+
[_d]: [() => input.download !== void 0, () => (input[_d].toString())],
|
|
159
315
|
});
|
|
160
316
|
let body;
|
|
161
|
-
b.m("
|
|
317
|
+
b.m("GET")
|
|
162
318
|
.h(headers)
|
|
163
319
|
.q(query)
|
|
164
320
|
.b(body);
|
|
165
321
|
return b.build();
|
|
166
322
|
};
|
|
167
|
-
export const
|
|
323
|
+
export const se_GetInboxCommand = async (input, context) => {
|
|
168
324
|
const b = rb(input, context);
|
|
169
325
|
const headers = {};
|
|
170
|
-
b.bp("/api/v1/
|
|
326
|
+
b.bp("/api/v1/inbox");
|
|
327
|
+
const query = map({
|
|
328
|
+
[_c]: [, input[_cI]],
|
|
329
|
+
[_uI]: [, input[_uI]],
|
|
330
|
+
});
|
|
331
|
+
let body;
|
|
332
|
+
b.m("GET")
|
|
333
|
+
.h(headers)
|
|
334
|
+
.q(query)
|
|
335
|
+
.b(body);
|
|
336
|
+
return b.build();
|
|
337
|
+
};
|
|
338
|
+
export const se_GetMessageCommand = async (input, context) => {
|
|
339
|
+
const b = rb(input, context);
|
|
340
|
+
const headers = {};
|
|
341
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
|
|
171
342
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
172
343
|
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
173
|
-
b.p('type', () => input.type, '{type}', false);
|
|
174
344
|
const query = map({
|
|
175
345
|
[_c]: [, input[_cI]],
|
|
176
346
|
[_uI]: [, input[_uI]],
|
|
177
347
|
});
|
|
178
348
|
let body;
|
|
179
|
-
b.m("
|
|
349
|
+
b.m("GET")
|
|
180
350
|
.h(headers)
|
|
181
351
|
.q(query)
|
|
182
352
|
.b(body);
|
|
183
353
|
return b.build();
|
|
184
354
|
};
|
|
185
|
-
export const
|
|
355
|
+
export const se_GetOrCreateDirectChannelCommand = async (input, context) => {
|
|
186
356
|
const b = rb(input, context);
|
|
187
357
|
const headers = {
|
|
188
358
|
'content-type': 'application/json',
|
|
189
359
|
};
|
|
190
|
-
b.bp("/api/v1/channels/
|
|
191
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
360
|
+
b.bp("/api/v1/channels/direct/get-or-create");
|
|
192
361
|
const query = map({
|
|
193
362
|
[_c]: [, input[_cI]],
|
|
194
363
|
[_uI]: [, input[_uI]],
|
|
195
364
|
});
|
|
196
365
|
let body;
|
|
197
366
|
body = JSON.stringify(take(input, {
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
367
|
+
'memberId': [],
|
|
368
|
+
'memberToInvite': _ => _json(_),
|
|
369
|
+
}));
|
|
370
|
+
b.m("POST")
|
|
371
|
+
.h(headers)
|
|
372
|
+
.q(query)
|
|
373
|
+
.b(body);
|
|
374
|
+
return b.build();
|
|
375
|
+
};
|
|
376
|
+
export const se_GetOrCreateSmsChannelCommand = async (input, context) => {
|
|
377
|
+
const b = rb(input, context);
|
|
378
|
+
const headers = {
|
|
379
|
+
'content-type': 'application/json',
|
|
380
|
+
};
|
|
381
|
+
b.bp("/api/v1/channels/sms/get-or-create");
|
|
382
|
+
const query = map({
|
|
383
|
+
[_c]: [, input[_cI]],
|
|
384
|
+
[_uI]: [, input[_uI]],
|
|
385
|
+
});
|
|
386
|
+
let body;
|
|
387
|
+
body = JSON.stringify(take(input, {
|
|
388
|
+
'outgoing': [],
|
|
389
|
+
'recipientId': [],
|
|
390
|
+
'recipientNumber': [],
|
|
391
|
+
'serviceUri': [],
|
|
392
|
+
}));
|
|
393
|
+
b.m("POST")
|
|
394
|
+
.h(headers)
|
|
395
|
+
.q(query)
|
|
396
|
+
.b(body);
|
|
397
|
+
return b.build();
|
|
398
|
+
};
|
|
399
|
+
export const se_GetOrCreateTelephonyChannelCommand = async (input, context) => {
|
|
400
|
+
const b = rb(input, context);
|
|
401
|
+
const headers = {
|
|
402
|
+
'content-type': 'application/json',
|
|
403
|
+
};
|
|
404
|
+
b.bp("/api/v1/channels/telephony/get-or-create");
|
|
405
|
+
const query = map({
|
|
406
|
+
[_c]: [, input[_cI]],
|
|
407
|
+
[_uI]: [, input[_uI]],
|
|
408
|
+
});
|
|
409
|
+
let body;
|
|
410
|
+
body = JSON.stringify(take(input, {
|
|
411
|
+
'recipientId': [],
|
|
412
|
+
'recipientNumber': [],
|
|
413
|
+
'serviceUri': [],
|
|
414
|
+
}));
|
|
415
|
+
b.m("POST")
|
|
416
|
+
.h(headers)
|
|
417
|
+
.q(query)
|
|
418
|
+
.b(body);
|
|
419
|
+
return b.build();
|
|
420
|
+
};
|
|
421
|
+
export const se_GetOrCreateWhatsAppChannelCommand = async (input, context) => {
|
|
422
|
+
const b = rb(input, context);
|
|
423
|
+
const headers = {
|
|
424
|
+
'content-type': 'application/json',
|
|
425
|
+
};
|
|
426
|
+
b.bp("/api/v1/channels/whatsapp/get-or-create");
|
|
427
|
+
const query = map({
|
|
428
|
+
[_c]: [, input[_cI]],
|
|
429
|
+
[_uI]: [, input[_uI]],
|
|
430
|
+
});
|
|
431
|
+
let body;
|
|
432
|
+
body = JSON.stringify(take(input, {
|
|
433
|
+
'outgoing': [],
|
|
434
|
+
'recipientId': [],
|
|
435
|
+
'recipientNumber': [],
|
|
436
|
+
'serviceUri': [],
|
|
437
|
+
}));
|
|
438
|
+
b.m("POST")
|
|
439
|
+
.h(headers)
|
|
440
|
+
.q(query)
|
|
441
|
+
.b(body);
|
|
442
|
+
return b.build();
|
|
443
|
+
};
|
|
444
|
+
export const se_GetSmsChannelIdCommand = async (input, context) => {
|
|
445
|
+
const b = rb(input, context);
|
|
446
|
+
const headers = {
|
|
447
|
+
'content-type': 'application/json',
|
|
448
|
+
};
|
|
449
|
+
b.bp("/api/v1/channels/sms/resolve-id");
|
|
450
|
+
const query = map({
|
|
451
|
+
[_c]: [, input[_cI]],
|
|
452
|
+
[_uI]: [, input[_uI]],
|
|
453
|
+
});
|
|
454
|
+
let body;
|
|
455
|
+
body = JSON.stringify(take(input, {
|
|
456
|
+
'recipientId': [],
|
|
457
|
+
'recipientNumber': [],
|
|
458
|
+
'serviceUri': [],
|
|
205
459
|
}));
|
|
206
460
|
b.m("POST")
|
|
207
461
|
.h(headers)
|
|
@@ -209,24 +463,1268 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
209
463
|
.b(body);
|
|
210
464
|
return b.build();
|
|
211
465
|
};
|
|
212
|
-
export const
|
|
213
|
-
const b = rb(input, context);
|
|
214
|
-
const headers = {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
b.
|
|
218
|
-
const query = map({
|
|
219
|
-
[_c]: [, input[_cI]],
|
|
220
|
-
[_uI]: [, input[_uI]],
|
|
466
|
+
export const se_GetTelephonyChannelIdCommand = async (input, context) => {
|
|
467
|
+
const b = rb(input, context);
|
|
468
|
+
const headers = {
|
|
469
|
+
'content-type': 'application/json',
|
|
470
|
+
};
|
|
471
|
+
b.bp("/api/v1/channels/telephony/resolve-id");
|
|
472
|
+
const query = map({
|
|
473
|
+
[_c]: [, input[_cI]],
|
|
474
|
+
[_uI]: [, input[_uI]],
|
|
475
|
+
});
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify(take(input, {
|
|
478
|
+
'recipientId': [],
|
|
479
|
+
'recipientNumber': [],
|
|
480
|
+
'serviceUri': [],
|
|
481
|
+
}));
|
|
482
|
+
b.m("POST")
|
|
483
|
+
.h(headers)
|
|
484
|
+
.q(query)
|
|
485
|
+
.b(body);
|
|
486
|
+
return b.build();
|
|
487
|
+
};
|
|
488
|
+
export const se_GetTokenCommand = async (input, context) => {
|
|
489
|
+
const b = rb(input, context);
|
|
490
|
+
const headers = {};
|
|
491
|
+
b.bp("/api/v1/token");
|
|
492
|
+
const query = map({
|
|
493
|
+
[_c]: [, input[_cI]],
|
|
494
|
+
[_uI]: [, input[_uI]],
|
|
495
|
+
[_cIl]: [, input[_cIl]],
|
|
496
|
+
});
|
|
497
|
+
let body;
|
|
498
|
+
b.m("GET")
|
|
499
|
+
.h(headers)
|
|
500
|
+
.q(query)
|
|
501
|
+
.b(body);
|
|
502
|
+
return b.build();
|
|
503
|
+
};
|
|
504
|
+
export const se_GetUploadedFileInfoCommand = async (input, context) => {
|
|
505
|
+
const b = rb(input, context);
|
|
506
|
+
const headers = {};
|
|
507
|
+
b.bp("/api/v1/channels/{channelId}/files/{fsId}");
|
|
508
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
509
|
+
b.p('fsId', () => input.fsId, '{fsId}', false);
|
|
510
|
+
const query = map({
|
|
511
|
+
[_c]: [, input[_cI]],
|
|
512
|
+
[_uI]: [, input[_uI]],
|
|
513
|
+
[_ca]: [, input[_ca]],
|
|
514
|
+
});
|
|
515
|
+
let body;
|
|
516
|
+
b.m("GET")
|
|
517
|
+
.h(headers)
|
|
518
|
+
.q(query)
|
|
519
|
+
.b(body);
|
|
520
|
+
return b.build();
|
|
521
|
+
};
|
|
522
|
+
export const se_GetWhatsAppChannelIdCommand = async (input, context) => {
|
|
523
|
+
const b = rb(input, context);
|
|
524
|
+
const headers = {
|
|
525
|
+
'content-type': 'application/json',
|
|
526
|
+
};
|
|
527
|
+
b.bp("/api/v1/channels/whatsapp/resolve-id");
|
|
528
|
+
const query = map({
|
|
529
|
+
[_c]: [, input[_cI]],
|
|
530
|
+
[_uI]: [, input[_uI]],
|
|
531
|
+
});
|
|
532
|
+
let body;
|
|
533
|
+
body = JSON.stringify(take(input, {
|
|
534
|
+
'recipientId': [],
|
|
535
|
+
'recipientNumber': [],
|
|
536
|
+
'serviceUri': [],
|
|
537
|
+
}));
|
|
538
|
+
b.m("POST")
|
|
539
|
+
.h(headers)
|
|
540
|
+
.q(query)
|
|
541
|
+
.b(body);
|
|
542
|
+
return b.build();
|
|
543
|
+
};
|
|
544
|
+
export const se_HideChannelCommand = async (input, context) => {
|
|
545
|
+
const b = rb(input, context);
|
|
546
|
+
const headers = {};
|
|
547
|
+
b.bp("/api/v1/channels/{channelId}/hide");
|
|
548
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
549
|
+
const query = map({
|
|
550
|
+
[_c]: [, input[_cI]],
|
|
551
|
+
[_uI]: [, input[_uI]],
|
|
552
|
+
});
|
|
553
|
+
let body;
|
|
554
|
+
b.m("POST")
|
|
555
|
+
.h(headers)
|
|
556
|
+
.q(query)
|
|
557
|
+
.b(body);
|
|
558
|
+
return b.build();
|
|
559
|
+
};
|
|
560
|
+
export const se_JoinChannelCommand = async (input, context) => {
|
|
561
|
+
const b = rb(input, context);
|
|
562
|
+
const headers = {
|
|
563
|
+
'content-type': 'application/json',
|
|
564
|
+
};
|
|
565
|
+
b.bp("/api/v1/channels/{channelId}/join");
|
|
566
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
567
|
+
const query = map({
|
|
568
|
+
[_c]: [, input[_cI]],
|
|
569
|
+
[_uI]: [, input[_uI]],
|
|
570
|
+
});
|
|
571
|
+
let body;
|
|
572
|
+
body = JSON.stringify(take(input, {
|
|
573
|
+
'silent': [],
|
|
574
|
+
}));
|
|
575
|
+
b.m("POST")
|
|
576
|
+
.h(headers)
|
|
577
|
+
.q(query)
|
|
578
|
+
.b(body);
|
|
579
|
+
return b.build();
|
|
580
|
+
};
|
|
581
|
+
export const se_LeaveChannelCommand = async (input, context) => {
|
|
582
|
+
const b = rb(input, context);
|
|
583
|
+
const headers = {
|
|
584
|
+
'content-type': 'application/json',
|
|
585
|
+
};
|
|
586
|
+
b.bp("/api/v1/channels/{channelId}/leave");
|
|
587
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
588
|
+
const query = map({
|
|
589
|
+
[_c]: [, input[_cI]],
|
|
590
|
+
[_uI]: [, input[_uI]],
|
|
591
|
+
});
|
|
592
|
+
let body;
|
|
593
|
+
body = JSON.stringify(take(input, {
|
|
594
|
+
'silent': [],
|
|
595
|
+
}));
|
|
596
|
+
b.m("POST")
|
|
597
|
+
.h(headers)
|
|
598
|
+
.q(query)
|
|
599
|
+
.b(body);
|
|
600
|
+
return b.build();
|
|
601
|
+
};
|
|
602
|
+
export const se_ListChannelMembersCommand = async (input, context) => {
|
|
603
|
+
const b = rb(input, context);
|
|
604
|
+
const headers = {};
|
|
605
|
+
b.bp("/api/v1/channels/{channelId}/members");
|
|
606
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
607
|
+
const query = map({
|
|
608
|
+
[_c]: [, input[_cI]],
|
|
609
|
+
[_uI]: [, input[_uI]],
|
|
610
|
+
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
611
|
+
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
612
|
+
});
|
|
613
|
+
let body;
|
|
614
|
+
b.m("GET")
|
|
615
|
+
.h(headers)
|
|
616
|
+
.q(query)
|
|
617
|
+
.b(body);
|
|
618
|
+
return b.build();
|
|
619
|
+
};
|
|
620
|
+
export const se_ListChannelMembersReadStatusCommand = async (input, context) => {
|
|
621
|
+
const b = rb(input, context);
|
|
622
|
+
const headers = {};
|
|
623
|
+
b.bp("/api/v1/channels/{channelId}/read-status");
|
|
624
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
625
|
+
const query = map({
|
|
626
|
+
[_c]: [, input[_cI]],
|
|
627
|
+
[_uI]: [, input[_uI]],
|
|
628
|
+
});
|
|
629
|
+
let body;
|
|
630
|
+
b.m("GET")
|
|
631
|
+
.h(headers)
|
|
632
|
+
.q(query)
|
|
633
|
+
.b(body);
|
|
634
|
+
return b.build();
|
|
635
|
+
};
|
|
636
|
+
export const se_ListChannelsCommand = async (input, context) => {
|
|
637
|
+
const b = rb(input, context);
|
|
638
|
+
const headers = {};
|
|
639
|
+
b.bp("/api/v1/channels");
|
|
640
|
+
const query = map({
|
|
641
|
+
[_c]: [, input[_cI]],
|
|
642
|
+
[_uI]: [, input[_uI]],
|
|
643
|
+
[_se]: [, input[_se]],
|
|
644
|
+
[_f]: [, input[_f]],
|
|
645
|
+
[_cu]: [, input[_cu]],
|
|
646
|
+
});
|
|
647
|
+
let body;
|
|
648
|
+
b.m("GET")
|
|
649
|
+
.h(headers)
|
|
650
|
+
.q(query)
|
|
651
|
+
.b(body);
|
|
652
|
+
return b.build();
|
|
653
|
+
};
|
|
654
|
+
export const se_ListMentionsCommand = async (input, context) => {
|
|
655
|
+
const b = rb(input, context);
|
|
656
|
+
const headers = {};
|
|
657
|
+
b.bp("/api/v1/mentions");
|
|
658
|
+
const query = map({
|
|
659
|
+
[_c]: [, input[_cI]],
|
|
660
|
+
[_uI]: [, input[_uI]],
|
|
661
|
+
[_f]: [, input[_f]],
|
|
662
|
+
[_cu]: [, input[_cu]],
|
|
663
|
+
});
|
|
664
|
+
let body;
|
|
665
|
+
b.m("GET")
|
|
666
|
+
.h(headers)
|
|
667
|
+
.q(query)
|
|
668
|
+
.b(body);
|
|
669
|
+
return b.build();
|
|
670
|
+
};
|
|
671
|
+
export const se_ListMessagesCommand = async (input, context) => {
|
|
672
|
+
const b = rb(input, context);
|
|
673
|
+
const headers = {};
|
|
674
|
+
b.bp("/api/v1/channels/{channelId}/messages");
|
|
675
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
676
|
+
const query = map({
|
|
677
|
+
[_c]: [, input[_cI]],
|
|
678
|
+
[_uI]: [, input[_uI]],
|
|
679
|
+
[_fr]: [() => input.from !== void 0, () => (input[_fr].toString())],
|
|
680
|
+
[_t]: [() => input.to !== void 0, () => (input[_t].toString())],
|
|
681
|
+
});
|
|
682
|
+
let body;
|
|
683
|
+
b.m("GET")
|
|
684
|
+
.h(headers)
|
|
685
|
+
.q(query)
|
|
686
|
+
.b(body);
|
|
687
|
+
return b.build();
|
|
688
|
+
};
|
|
689
|
+
export const se_MarkReadCommand = async (input, context) => {
|
|
690
|
+
const b = rb(input, context);
|
|
691
|
+
const headers = {
|
|
692
|
+
'content-type': 'application/json',
|
|
693
|
+
};
|
|
694
|
+
b.bp("/api/v1/channels/{channelId}/read");
|
|
695
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
696
|
+
const query = map({
|
|
697
|
+
[_c]: [, input[_cI]],
|
|
698
|
+
[_uI]: [, input[_uI]],
|
|
699
|
+
});
|
|
700
|
+
let body;
|
|
701
|
+
body = JSON.stringify(take(input, {
|
|
702
|
+
'lastReadVisibleSeq': [],
|
|
703
|
+
}));
|
|
704
|
+
b.m("POST")
|
|
705
|
+
.h(headers)
|
|
706
|
+
.q(query)
|
|
707
|
+
.b(body);
|
|
708
|
+
return b.build();
|
|
709
|
+
};
|
|
710
|
+
export const se_MarkUnreadCommand = async (input, context) => {
|
|
711
|
+
const b = rb(input, context);
|
|
712
|
+
const headers = {
|
|
713
|
+
'content-type': 'application/json',
|
|
714
|
+
};
|
|
715
|
+
b.bp("/api/v1/channels/{channelId}/unread");
|
|
716
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
717
|
+
const query = map({
|
|
718
|
+
[_c]: [, input[_cI]],
|
|
719
|
+
[_uI]: [, input[_uI]],
|
|
720
|
+
[_fo]: [() => input.force !== void 0, () => (input[_fo].toString())],
|
|
721
|
+
});
|
|
722
|
+
let body;
|
|
723
|
+
body = JSON.stringify(take(input, {
|
|
724
|
+
'messageId': [],
|
|
725
|
+
'unreadMarkAt': [],
|
|
726
|
+
}));
|
|
727
|
+
b.m("PUT")
|
|
728
|
+
.h(headers)
|
|
729
|
+
.q(query)
|
|
730
|
+
.b(body);
|
|
731
|
+
return b.build();
|
|
732
|
+
};
|
|
733
|
+
export const se_MoveChannelToSectionCommand = async (input, context) => {
|
|
734
|
+
const b = rb(input, context);
|
|
735
|
+
const headers = {};
|
|
736
|
+
b.bp("/api/v1/channels/{channelId}/sections/{sectionId}");
|
|
737
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
738
|
+
b.p('sectionId', () => input.sectionId, '{sectionId}', false);
|
|
739
|
+
const query = map({
|
|
740
|
+
[_c]: [, input[_cI]],
|
|
741
|
+
[_uI]: [, input[_uI]],
|
|
742
|
+
});
|
|
743
|
+
let body;
|
|
744
|
+
b.m("PUT")
|
|
745
|
+
.h(headers)
|
|
746
|
+
.q(query)
|
|
747
|
+
.b(body);
|
|
748
|
+
return b.build();
|
|
749
|
+
};
|
|
750
|
+
export const se_MuteChannelCommand = async (input, context) => {
|
|
751
|
+
const b = rb(input, context);
|
|
752
|
+
const headers = {
|
|
753
|
+
'content-type': 'application/json',
|
|
754
|
+
};
|
|
755
|
+
b.bp("/api/v1/channels/{channelId}/mute");
|
|
756
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
757
|
+
const query = map({
|
|
758
|
+
[_c]: [, input[_cI]],
|
|
759
|
+
[_uI]: [, input[_uI]],
|
|
760
|
+
});
|
|
761
|
+
let body;
|
|
762
|
+
body = JSON.stringify(take(input, {
|
|
763
|
+
'mutedUntil': [],
|
|
764
|
+
}));
|
|
765
|
+
b.m("POST")
|
|
766
|
+
.h(headers)
|
|
767
|
+
.q(query)
|
|
768
|
+
.b(body);
|
|
769
|
+
return b.build();
|
|
770
|
+
};
|
|
771
|
+
export const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
772
|
+
const b = rb(input, context);
|
|
773
|
+
const headers = {
|
|
774
|
+
'content-type': 'application/json',
|
|
775
|
+
};
|
|
776
|
+
b.bp("/api/v1/channels/{channelId}");
|
|
777
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
778
|
+
const query = map({
|
|
779
|
+
[_c]: [, input[_cI]],
|
|
780
|
+
[_uI]: [, input[_uI]],
|
|
781
|
+
});
|
|
782
|
+
let body;
|
|
783
|
+
body = JSON.stringify(take(input, {
|
|
784
|
+
'set': _ => _json(_),
|
|
785
|
+
'silent': [],
|
|
786
|
+
'unset': _ => _json(_),
|
|
787
|
+
}));
|
|
788
|
+
b.m("PATCH")
|
|
789
|
+
.h(headers)
|
|
790
|
+
.q(query)
|
|
791
|
+
.b(body);
|
|
792
|
+
return b.build();
|
|
793
|
+
};
|
|
794
|
+
export const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
795
|
+
const b = rb(input, context);
|
|
796
|
+
const headers = {
|
|
797
|
+
'content-type': 'application/json',
|
|
798
|
+
};
|
|
799
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
|
|
800
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
801
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
802
|
+
const query = map({
|
|
803
|
+
[_c]: [, input[_cI]],
|
|
804
|
+
[_uI]: [, input[_uI]],
|
|
805
|
+
});
|
|
806
|
+
let body;
|
|
807
|
+
body = JSON.stringify(take(input, {
|
|
808
|
+
'set': _ => _json(_),
|
|
809
|
+
'silent': [],
|
|
810
|
+
'unset': _ => _json(_),
|
|
811
|
+
}));
|
|
812
|
+
b.m("PATCH")
|
|
813
|
+
.h(headers)
|
|
814
|
+
.q(query)
|
|
815
|
+
.b(body);
|
|
816
|
+
return b.build();
|
|
817
|
+
};
|
|
818
|
+
export const se_PinChannelCommand = async (input, context) => {
|
|
819
|
+
const b = rb(input, context);
|
|
820
|
+
const headers = {};
|
|
821
|
+
b.bp("/api/v1/channels/{channelId}/pin");
|
|
822
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
823
|
+
const query = map({
|
|
824
|
+
[_c]: [, input[_cI]],
|
|
825
|
+
[_uI]: [, input[_uI]],
|
|
826
|
+
[_fo]: [() => input.force !== void 0, () => (input[_fo].toString())],
|
|
827
|
+
});
|
|
828
|
+
let body;
|
|
829
|
+
b.m("POST")
|
|
830
|
+
.h(headers)
|
|
831
|
+
.q(query)
|
|
832
|
+
.b(body);
|
|
833
|
+
return b.build();
|
|
834
|
+
};
|
|
835
|
+
export const se_PinMessageCommand = async (input, context) => {
|
|
836
|
+
const b = rb(input, context);
|
|
837
|
+
const headers = {};
|
|
838
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
|
|
839
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
840
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
841
|
+
const query = map({
|
|
842
|
+
[_c]: [, input[_cI]],
|
|
843
|
+
[_uI]: [, input[_uI]],
|
|
844
|
+
});
|
|
845
|
+
let body;
|
|
846
|
+
b.m("PUT")
|
|
847
|
+
.h(headers)
|
|
848
|
+
.q(query)
|
|
849
|
+
.b(body);
|
|
850
|
+
return b.build();
|
|
851
|
+
};
|
|
852
|
+
export const se_QueryChannelsCommand = async (input, context) => {
|
|
853
|
+
const b = rb(input, context);
|
|
854
|
+
const headers = {
|
|
855
|
+
'content-type': 'application/json',
|
|
856
|
+
};
|
|
857
|
+
b.bp("/api/v1/channels/query");
|
|
858
|
+
const query = map({
|
|
859
|
+
[_c]: [, input[_cI]],
|
|
860
|
+
[_uI]: [, input[_uI]],
|
|
861
|
+
});
|
|
862
|
+
let body;
|
|
863
|
+
body = JSON.stringify(take(input, {
|
|
864
|
+
'query': _ => _json(_),
|
|
865
|
+
}));
|
|
866
|
+
b.m("POST")
|
|
867
|
+
.h(headers)
|
|
868
|
+
.q(query)
|
|
869
|
+
.b(body);
|
|
870
|
+
return b.build();
|
|
871
|
+
};
|
|
872
|
+
export const se_RemoveChannelFromSectionCommand = async (input, context) => {
|
|
873
|
+
const b = rb(input, context);
|
|
874
|
+
const headers = {};
|
|
875
|
+
b.bp("/api/v1/channels/{channelId}/sections/{sectionId}");
|
|
876
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
877
|
+
b.p('sectionId', () => input.sectionId, '{sectionId}', false);
|
|
878
|
+
const query = map({
|
|
879
|
+
[_c]: [, input[_cI]],
|
|
880
|
+
[_uI]: [, input[_uI]],
|
|
881
|
+
});
|
|
882
|
+
let body;
|
|
883
|
+
b.m("DELETE")
|
|
884
|
+
.h(headers)
|
|
885
|
+
.q(query)
|
|
886
|
+
.b(body);
|
|
887
|
+
return b.build();
|
|
888
|
+
};
|
|
889
|
+
export const se_RenameSectionCommand = async (input, context) => {
|
|
890
|
+
const b = rb(input, context);
|
|
891
|
+
const headers = {
|
|
892
|
+
'content-type': 'application/json',
|
|
893
|
+
};
|
|
894
|
+
b.bp("/api/v1/sections/{sectionId}");
|
|
895
|
+
b.p('sectionId', () => input.sectionId, '{sectionId}', false);
|
|
896
|
+
const query = map({
|
|
897
|
+
[_c]: [, input[_cI]],
|
|
898
|
+
[_uI]: [, input[_uI]],
|
|
899
|
+
});
|
|
900
|
+
let body;
|
|
901
|
+
body = JSON.stringify(take(input, {
|
|
902
|
+
'name': [],
|
|
903
|
+
}));
|
|
904
|
+
b.m("PATCH")
|
|
905
|
+
.h(headers)
|
|
906
|
+
.q(query)
|
|
907
|
+
.b(body);
|
|
908
|
+
return b.build();
|
|
909
|
+
};
|
|
910
|
+
export const se_SendGiphyCommand = async (input, context) => {
|
|
911
|
+
const b = rb(input, context);
|
|
912
|
+
const headers = {
|
|
913
|
+
'content-type': 'application/json',
|
|
914
|
+
};
|
|
915
|
+
b.bp("/api/v1/channels/{channelId}/giphys");
|
|
916
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
917
|
+
const query = map({
|
|
918
|
+
[_c]: [, input[_cI]],
|
|
919
|
+
[_uI]: [, input[_uI]],
|
|
920
|
+
});
|
|
921
|
+
let body;
|
|
922
|
+
body = JSON.stringify(take(input, {
|
|
923
|
+
'giphy': _ => _json(_),
|
|
924
|
+
'mentions': _ => _json(_),
|
|
925
|
+
'messageId': [],
|
|
926
|
+
'quote': _ => _json(_),
|
|
927
|
+
'silent': [],
|
|
928
|
+
}));
|
|
929
|
+
b.m("POST")
|
|
930
|
+
.h(headers)
|
|
931
|
+
.q(query)
|
|
932
|
+
.b(body);
|
|
933
|
+
return b.build();
|
|
934
|
+
};
|
|
935
|
+
export const se_SendMessageCommand = async (input, context) => {
|
|
936
|
+
const b = rb(input, context);
|
|
937
|
+
const headers = {
|
|
938
|
+
'content-type': 'application/json',
|
|
939
|
+
};
|
|
940
|
+
b.bp("/api/v1/channels/{channelId}/messages");
|
|
941
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
942
|
+
const query = map({
|
|
943
|
+
[_c]: [, input[_cI]],
|
|
944
|
+
[_uI]: [, input[_uI]],
|
|
945
|
+
});
|
|
946
|
+
let body;
|
|
947
|
+
body = JSON.stringify(take(input, {
|
|
948
|
+
'attachments': _ => _json(_),
|
|
949
|
+
'elements': _ => _json(_),
|
|
950
|
+
'forward': _ => _json(_),
|
|
951
|
+
'markdown': [],
|
|
952
|
+
'mentions': _ => _json(_),
|
|
953
|
+
'messageId': [],
|
|
954
|
+
'messageType': [],
|
|
955
|
+
'quote': _ => _json(_),
|
|
956
|
+
'silent': [],
|
|
957
|
+
'sms': [],
|
|
958
|
+
'smsStatus': [],
|
|
959
|
+
'text': [],
|
|
960
|
+
'whatsapp': [],
|
|
961
|
+
'whatsappStatus': [],
|
|
962
|
+
}));
|
|
963
|
+
b.m("POST")
|
|
964
|
+
.h(headers)
|
|
965
|
+
.q(query)
|
|
966
|
+
.b(body);
|
|
967
|
+
return b.build();
|
|
968
|
+
};
|
|
969
|
+
export const se_SendMessageReactionCommand = async (input, context) => {
|
|
970
|
+
const b = rb(input, context);
|
|
971
|
+
const headers = {};
|
|
972
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
|
|
973
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
974
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
975
|
+
b.p('type', () => input.type, '{type}', false);
|
|
976
|
+
const query = map({
|
|
977
|
+
[_c]: [, input[_cI]],
|
|
978
|
+
[_uI]: [, input[_uI]],
|
|
979
|
+
});
|
|
980
|
+
let body;
|
|
981
|
+
b.m("PUT")
|
|
982
|
+
.h(headers)
|
|
983
|
+
.q(query)
|
|
984
|
+
.b(body);
|
|
985
|
+
return b.build();
|
|
986
|
+
};
|
|
987
|
+
export const se_SendSystemMessageCommand = async (input, context) => {
|
|
988
|
+
const b = rb(input, context);
|
|
989
|
+
const headers = {
|
|
990
|
+
'content-type': 'application/json',
|
|
991
|
+
};
|
|
992
|
+
b.bp("/api/v1/channels/{channelId}/system-messages");
|
|
993
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
994
|
+
const query = map({
|
|
995
|
+
[_c]: [, input[_cI]],
|
|
996
|
+
[_uI]: [, input[_uI]],
|
|
997
|
+
});
|
|
998
|
+
let body;
|
|
999
|
+
body = JSON.stringify(take(input, {
|
|
1000
|
+
'event': [],
|
|
1001
|
+
'message': _ => _json(_),
|
|
1002
|
+
'silent': [],
|
|
1003
|
+
}));
|
|
1004
|
+
b.m("POST")
|
|
1005
|
+
.h(headers)
|
|
1006
|
+
.q(query)
|
|
1007
|
+
.b(body);
|
|
1008
|
+
return b.build();
|
|
1009
|
+
};
|
|
1010
|
+
export const se_SendTypingStartCommand = async (input, context) => {
|
|
1011
|
+
const b = rb(input, context);
|
|
1012
|
+
const headers = {};
|
|
1013
|
+
b.bp("/api/v1/channels/{channelId}/typing/start");
|
|
1014
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1015
|
+
const query = map({
|
|
1016
|
+
[_c]: [, input[_cI]],
|
|
1017
|
+
[_uI]: [, input[_uI]],
|
|
1018
|
+
});
|
|
1019
|
+
let body;
|
|
1020
|
+
b.m("POST")
|
|
1021
|
+
.h(headers)
|
|
1022
|
+
.q(query)
|
|
1023
|
+
.b(body);
|
|
1024
|
+
return b.build();
|
|
1025
|
+
};
|
|
1026
|
+
export const se_SendTypingStopCommand = async (input, context) => {
|
|
1027
|
+
const b = rb(input, context);
|
|
1028
|
+
const headers = {};
|
|
1029
|
+
b.bp("/api/v1/channels/{channelId}/typing/stop");
|
|
1030
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1031
|
+
const query = map({
|
|
1032
|
+
[_c]: [, input[_cI]],
|
|
1033
|
+
[_uI]: [, input[_uI]],
|
|
1034
|
+
});
|
|
1035
|
+
let body;
|
|
1036
|
+
b.m("POST")
|
|
1037
|
+
.h(headers)
|
|
1038
|
+
.q(query)
|
|
1039
|
+
.b(body);
|
|
1040
|
+
return b.build();
|
|
1041
|
+
};
|
|
1042
|
+
export const se_ShowChannelCommand = async (input, context) => {
|
|
1043
|
+
const b = rb(input, context);
|
|
1044
|
+
const headers = {};
|
|
1045
|
+
b.bp("/api/v1/channels/{channelId}/show");
|
|
1046
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1047
|
+
const query = map({
|
|
1048
|
+
[_c]: [, input[_cI]],
|
|
1049
|
+
[_uI]: [, input[_uI]],
|
|
1050
|
+
});
|
|
1051
|
+
let body;
|
|
1052
|
+
b.m("POST")
|
|
1053
|
+
.h(headers)
|
|
1054
|
+
.q(query)
|
|
1055
|
+
.b(body);
|
|
1056
|
+
return b.build();
|
|
1057
|
+
};
|
|
1058
|
+
export const se_UnmuteChannelCommand = async (input, context) => {
|
|
1059
|
+
const b = rb(input, context);
|
|
1060
|
+
const headers = {};
|
|
1061
|
+
b.bp("/api/v1/channels/{channelId}/mute");
|
|
1062
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1063
|
+
const query = map({
|
|
1064
|
+
[_c]: [, input[_cI]],
|
|
1065
|
+
[_uI]: [, input[_uI]],
|
|
1066
|
+
});
|
|
1067
|
+
let body;
|
|
1068
|
+
b.m("DELETE")
|
|
1069
|
+
.h(headers)
|
|
1070
|
+
.q(query)
|
|
1071
|
+
.b(body);
|
|
1072
|
+
return b.build();
|
|
1073
|
+
};
|
|
1074
|
+
export const se_UnpinChannelCommand = async (input, context) => {
|
|
1075
|
+
const b = rb(input, context);
|
|
1076
|
+
const headers = {};
|
|
1077
|
+
b.bp("/api/v1/channels/{channelId}/pin");
|
|
1078
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1079
|
+
const query = map({
|
|
1080
|
+
[_c]: [, input[_cI]],
|
|
1081
|
+
[_uI]: [, input[_uI]],
|
|
1082
|
+
});
|
|
1083
|
+
let body;
|
|
1084
|
+
b.m("DELETE")
|
|
1085
|
+
.h(headers)
|
|
1086
|
+
.q(query)
|
|
1087
|
+
.b(body);
|
|
1088
|
+
return b.build();
|
|
1089
|
+
};
|
|
1090
|
+
export const se_UnpinMessageCommand = async (input, context) => {
|
|
1091
|
+
const b = rb(input, context);
|
|
1092
|
+
const headers = {};
|
|
1093
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
|
|
1094
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1095
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
1096
|
+
const query = map({
|
|
1097
|
+
[_c]: [, input[_cI]],
|
|
1098
|
+
[_uI]: [, input[_uI]],
|
|
1099
|
+
});
|
|
1100
|
+
let body;
|
|
1101
|
+
b.m("DELETE")
|
|
1102
|
+
.h(headers)
|
|
1103
|
+
.q(query)
|
|
1104
|
+
.b(body);
|
|
1105
|
+
return b.build();
|
|
1106
|
+
};
|
|
1107
|
+
export const se_UpdateChannelCommand = async (input, context) => {
|
|
1108
|
+
const b = rb(input, context);
|
|
1109
|
+
const headers = {
|
|
1110
|
+
'content-type': 'application/json',
|
|
1111
|
+
};
|
|
1112
|
+
b.bp("/api/v1/channels/{channelId}");
|
|
1113
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1114
|
+
const query = map({
|
|
1115
|
+
[_c]: [, input[_cI]],
|
|
1116
|
+
[_uI]: [, input[_uI]],
|
|
1117
|
+
});
|
|
1118
|
+
let body;
|
|
1119
|
+
body = JSON.stringify(take(input, {
|
|
1120
|
+
'access': [],
|
|
1121
|
+
'assigneeId': [],
|
|
1122
|
+
'autoRecord': [],
|
|
1123
|
+
'broadcast': [],
|
|
1124
|
+
'context': _ => _json(_),
|
|
1125
|
+
'description': [],
|
|
1126
|
+
'kiteAssign': [],
|
|
1127
|
+
'mms': [],
|
|
1128
|
+
'picture': [],
|
|
1129
|
+
'pictureColor': [],
|
|
1130
|
+
'serviceTitle': [],
|
|
1131
|
+
'silent': [],
|
|
1132
|
+
'sms': [],
|
|
1133
|
+
'subject': [],
|
|
1134
|
+
'transcriptionLanguage': [],
|
|
1135
|
+
'whatsapp': [],
|
|
1136
|
+
'whatsappStatus': [],
|
|
1137
|
+
'wizyGuestViewOnly': [],
|
|
1138
|
+
}));
|
|
1139
|
+
b.m("PUT")
|
|
1140
|
+
.h(headers)
|
|
1141
|
+
.q(query)
|
|
1142
|
+
.b(body);
|
|
1143
|
+
return b.build();
|
|
1144
|
+
};
|
|
1145
|
+
export const se_UpdateMessageCommand = async (input, context) => {
|
|
1146
|
+
const b = rb(input, context);
|
|
1147
|
+
const headers = {
|
|
1148
|
+
'content-type': 'application/json',
|
|
1149
|
+
};
|
|
1150
|
+
b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
|
|
1151
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1152
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
1153
|
+
const query = map({
|
|
1154
|
+
[_c]: [, input[_cI]],
|
|
1155
|
+
[_uI]: [, input[_uI]],
|
|
1156
|
+
});
|
|
1157
|
+
let body;
|
|
1158
|
+
body = JSON.stringify(take(input, {
|
|
1159
|
+
'attachments': _ => _json(_),
|
|
1160
|
+
'elements': _ => _json(_),
|
|
1161
|
+
'forward': _ => _json(_),
|
|
1162
|
+
'markdown': [],
|
|
1163
|
+
'mentions': _ => _json(_),
|
|
1164
|
+
'quote': _ => _json(_),
|
|
1165
|
+
'silent': [],
|
|
1166
|
+
'sms': [],
|
|
1167
|
+
'smsStatus': [],
|
|
1168
|
+
'text': [],
|
|
1169
|
+
'whatsapp': [],
|
|
1170
|
+
'whatsappStatus': [],
|
|
1171
|
+
}));
|
|
1172
|
+
b.m("PUT")
|
|
1173
|
+
.h(headers)
|
|
1174
|
+
.q(query)
|
|
1175
|
+
.b(body);
|
|
1176
|
+
return b.build();
|
|
1177
|
+
};
|
|
1178
|
+
export const se_UploadFileCommand = async (input, context) => {
|
|
1179
|
+
const b = rb(input, context);
|
|
1180
|
+
const headers = {
|
|
1181
|
+
'content-type': 'application/json',
|
|
1182
|
+
};
|
|
1183
|
+
b.bp("/api/v1/channels/{channelId}/files");
|
|
1184
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1185
|
+
const query = map({
|
|
1186
|
+
[_c]: [, input[_cI]],
|
|
1187
|
+
[_uI]: [, input[_uI]],
|
|
1188
|
+
});
|
|
1189
|
+
let body;
|
|
1190
|
+
body = JSON.stringify(take(input, {
|
|
1191
|
+
'name': [],
|
|
1192
|
+
'options': _ => _json(_),
|
|
1193
|
+
}));
|
|
1194
|
+
b.m("POST")
|
|
1195
|
+
.h(headers)
|
|
1196
|
+
.q(query)
|
|
1197
|
+
.b(body);
|
|
1198
|
+
return b.build();
|
|
1199
|
+
};
|
|
1200
|
+
export const de_AddChannelMemberCommand = async (output, context) => {
|
|
1201
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1202
|
+
return de_CommandError(output, context);
|
|
1203
|
+
}
|
|
1204
|
+
const contents = map({
|
|
1205
|
+
$metadata: deserializeMetadata(output),
|
|
1206
|
+
});
|
|
1207
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1208
|
+
const doc = take(data, {
|
|
1209
|
+
'member': _json,
|
|
1210
|
+
});
|
|
1211
|
+
Object.assign(contents, doc);
|
|
1212
|
+
return contents;
|
|
1213
|
+
};
|
|
1214
|
+
export const de_AddChannelMembersCommand = async (output, context) => {
|
|
1215
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
|
+
return de_CommandError(output, context);
|
|
1217
|
+
}
|
|
1218
|
+
const contents = map({
|
|
1219
|
+
$metadata: deserializeMetadata(output),
|
|
1220
|
+
});
|
|
1221
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1222
|
+
const doc = take(data, {
|
|
1223
|
+
'members': _json,
|
|
1224
|
+
});
|
|
1225
|
+
Object.assign(contents, doc);
|
|
1226
|
+
return contents;
|
|
1227
|
+
};
|
|
1228
|
+
export const de_AssignChannelCommand = async (output, context) => {
|
|
1229
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
+
return de_CommandError(output, context);
|
|
1231
|
+
}
|
|
1232
|
+
const contents = map({
|
|
1233
|
+
$metadata: deserializeMetadata(output),
|
|
1234
|
+
});
|
|
1235
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1236
|
+
const doc = take(data, {
|
|
1237
|
+
'assigneeId': __expectString,
|
|
1238
|
+
'serviceUri': __expectString,
|
|
1239
|
+
});
|
|
1240
|
+
Object.assign(contents, doc);
|
|
1241
|
+
return contents;
|
|
1242
|
+
};
|
|
1243
|
+
export const de_CreateGroupChannelCommand = async (output, context) => {
|
|
1244
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
|
+
return de_CommandError(output, context);
|
|
1246
|
+
}
|
|
1247
|
+
const contents = map({
|
|
1248
|
+
$metadata: deserializeMetadata(output),
|
|
1249
|
+
});
|
|
1250
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1251
|
+
const doc = take(data, {
|
|
1252
|
+
'channel': _json,
|
|
1253
|
+
});
|
|
1254
|
+
Object.assign(contents, doc);
|
|
1255
|
+
return contents;
|
|
1256
|
+
};
|
|
1257
|
+
export const de_CreateKiteChannelCommand = async (output, context) => {
|
|
1258
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
+
return de_CommandError(output, context);
|
|
1260
|
+
}
|
|
1261
|
+
const contents = map({
|
|
1262
|
+
$metadata: deserializeMetadata(output),
|
|
1263
|
+
});
|
|
1264
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1265
|
+
const doc = take(data, {
|
|
1266
|
+
'channel': _json,
|
|
1267
|
+
});
|
|
1268
|
+
Object.assign(contents, doc);
|
|
1269
|
+
return contents;
|
|
1270
|
+
};
|
|
1271
|
+
export const de_CreateSectionCommand = async (output, context) => {
|
|
1272
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1273
|
+
return de_CommandError(output, context);
|
|
1274
|
+
}
|
|
1275
|
+
const contents = map({
|
|
1276
|
+
$metadata: deserializeMetadata(output),
|
|
1277
|
+
});
|
|
1278
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1279
|
+
const doc = take(data, {
|
|
1280
|
+
'section': _json,
|
|
1281
|
+
});
|
|
1282
|
+
Object.assign(contents, doc);
|
|
1283
|
+
return contents;
|
|
1284
|
+
};
|
|
1285
|
+
export const de_DeleteChannelCommand = async (output, context) => {
|
|
1286
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1287
|
+
return de_CommandError(output, context);
|
|
1288
|
+
}
|
|
1289
|
+
const contents = map({
|
|
1290
|
+
$metadata: deserializeMetadata(output),
|
|
1291
|
+
});
|
|
1292
|
+
await collectBody(output.body, context);
|
|
1293
|
+
return contents;
|
|
1294
|
+
};
|
|
1295
|
+
export const de_DeleteChannelMemberCommand = async (output, context) => {
|
|
1296
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1297
|
+
return de_CommandError(output, context);
|
|
1298
|
+
}
|
|
1299
|
+
const contents = map({
|
|
1300
|
+
$metadata: deserializeMetadata(output),
|
|
1301
|
+
});
|
|
1302
|
+
await collectBody(output.body, context);
|
|
1303
|
+
return contents;
|
|
1304
|
+
};
|
|
1305
|
+
export const de_DeleteMessageCommand = async (output, context) => {
|
|
1306
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1307
|
+
return de_CommandError(output, context);
|
|
1308
|
+
}
|
|
1309
|
+
const contents = map({
|
|
1310
|
+
$metadata: deserializeMetadata(output),
|
|
1311
|
+
});
|
|
1312
|
+
await collectBody(output.body, context);
|
|
1313
|
+
return contents;
|
|
1314
|
+
};
|
|
1315
|
+
export const de_DeleteMessageReactionCommand = async (output, context) => {
|
|
1316
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1317
|
+
return de_CommandError(output, context);
|
|
1318
|
+
}
|
|
1319
|
+
const contents = map({
|
|
1320
|
+
$metadata: deserializeMetadata(output),
|
|
1321
|
+
});
|
|
1322
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1323
|
+
const doc = take(data, {
|
|
1324
|
+
'message': _json,
|
|
1325
|
+
});
|
|
1326
|
+
Object.assign(contents, doc);
|
|
1327
|
+
return contents;
|
|
1328
|
+
};
|
|
1329
|
+
export const de_DeleteSectionCommand = async (output, context) => {
|
|
1330
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1331
|
+
return de_CommandError(output, context);
|
|
1332
|
+
}
|
|
1333
|
+
const contents = map({
|
|
1334
|
+
$metadata: deserializeMetadata(output),
|
|
1335
|
+
});
|
|
1336
|
+
await collectBody(output.body, context);
|
|
1337
|
+
return contents;
|
|
1338
|
+
};
|
|
1339
|
+
export const de_GetChannelCommand = async (output, context) => {
|
|
1340
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
+
return de_CommandError(output, context);
|
|
1342
|
+
}
|
|
1343
|
+
const contents = map({
|
|
1344
|
+
$metadata: deserializeMetadata(output),
|
|
1345
|
+
});
|
|
1346
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1347
|
+
const doc = take(data, {
|
|
1348
|
+
'channel': _json,
|
|
1349
|
+
});
|
|
1350
|
+
Object.assign(contents, doc);
|
|
1351
|
+
return contents;
|
|
1352
|
+
};
|
|
1353
|
+
export const de_GetChannelMemberCommand = async (output, context) => {
|
|
1354
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1355
|
+
return de_CommandError(output, context);
|
|
1356
|
+
}
|
|
1357
|
+
const contents = map({
|
|
1358
|
+
$metadata: deserializeMetadata(output),
|
|
1359
|
+
});
|
|
1360
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1361
|
+
const doc = take(data, {
|
|
1362
|
+
'member': _json,
|
|
1363
|
+
});
|
|
1364
|
+
Object.assign(contents, doc);
|
|
1365
|
+
return contents;
|
|
1366
|
+
};
|
|
1367
|
+
export const de_GetDirectChannelIdCommand = async (output, context) => {
|
|
1368
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1369
|
+
return de_CommandError(output, context);
|
|
1370
|
+
}
|
|
1371
|
+
const contents = map({
|
|
1372
|
+
$metadata: deserializeMetadata(output),
|
|
1373
|
+
});
|
|
1374
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1375
|
+
const doc = take(data, {
|
|
1376
|
+
'channelId': __expectString,
|
|
1377
|
+
});
|
|
1378
|
+
Object.assign(contents, doc);
|
|
1379
|
+
return contents;
|
|
1380
|
+
};
|
|
1381
|
+
export const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
|
|
1382
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1383
|
+
return de_CommandError(output, context);
|
|
1384
|
+
}
|
|
1385
|
+
const contents = map({
|
|
1386
|
+
$metadata: deserializeMetadata(output),
|
|
1387
|
+
});
|
|
1388
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1389
|
+
const doc = take(data, {
|
|
1390
|
+
'presignedDownloadUrl': __expectString,
|
|
1391
|
+
});
|
|
1392
|
+
Object.assign(contents, doc);
|
|
1393
|
+
return contents;
|
|
1394
|
+
};
|
|
1395
|
+
export const de_GetInboxCommand = async (output, context) => {
|
|
1396
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1397
|
+
return de_CommandError(output, context);
|
|
1398
|
+
}
|
|
1399
|
+
const contents = map({
|
|
1400
|
+
$metadata: deserializeMetadata(output),
|
|
1401
|
+
});
|
|
1402
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1403
|
+
const doc = take(data, {
|
|
1404
|
+
'channels': _json,
|
|
1405
|
+
'sections': _json,
|
|
1406
|
+
});
|
|
1407
|
+
Object.assign(contents, doc);
|
|
1408
|
+
return contents;
|
|
1409
|
+
};
|
|
1410
|
+
export const de_GetMessageCommand = async (output, context) => {
|
|
1411
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1412
|
+
return de_CommandError(output, context);
|
|
1413
|
+
}
|
|
1414
|
+
const contents = map({
|
|
1415
|
+
$metadata: deserializeMetadata(output),
|
|
1416
|
+
});
|
|
1417
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1418
|
+
const doc = take(data, {
|
|
1419
|
+
'message': _json,
|
|
1420
|
+
});
|
|
1421
|
+
Object.assign(contents, doc);
|
|
1422
|
+
return contents;
|
|
1423
|
+
};
|
|
1424
|
+
export const de_GetOrCreateDirectChannelCommand = async (output, context) => {
|
|
1425
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
+
return de_CommandError(output, context);
|
|
1427
|
+
}
|
|
1428
|
+
const contents = map({
|
|
1429
|
+
$metadata: deserializeMetadata(output),
|
|
1430
|
+
});
|
|
1431
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1432
|
+
const doc = take(data, {
|
|
1433
|
+
'channel': _json,
|
|
1434
|
+
});
|
|
1435
|
+
Object.assign(contents, doc);
|
|
1436
|
+
return contents;
|
|
1437
|
+
};
|
|
1438
|
+
export const de_GetOrCreateSmsChannelCommand = async (output, context) => {
|
|
1439
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
+
return de_CommandError(output, context);
|
|
1441
|
+
}
|
|
1442
|
+
const contents = map({
|
|
1443
|
+
$metadata: deserializeMetadata(output),
|
|
1444
|
+
});
|
|
1445
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1446
|
+
const doc = take(data, {
|
|
1447
|
+
'channel': _json,
|
|
1448
|
+
});
|
|
1449
|
+
Object.assign(contents, doc);
|
|
1450
|
+
return contents;
|
|
1451
|
+
};
|
|
1452
|
+
export const de_GetOrCreateTelephonyChannelCommand = async (output, context) => {
|
|
1453
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
+
return de_CommandError(output, context);
|
|
1455
|
+
}
|
|
1456
|
+
const contents = map({
|
|
1457
|
+
$metadata: deserializeMetadata(output),
|
|
1458
|
+
});
|
|
1459
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1460
|
+
const doc = take(data, {
|
|
1461
|
+
'channel': _json,
|
|
1462
|
+
});
|
|
1463
|
+
Object.assign(contents, doc);
|
|
1464
|
+
return contents;
|
|
1465
|
+
};
|
|
1466
|
+
export const de_GetOrCreateWhatsAppChannelCommand = async (output, context) => {
|
|
1467
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1468
|
+
return de_CommandError(output, context);
|
|
1469
|
+
}
|
|
1470
|
+
const contents = map({
|
|
1471
|
+
$metadata: deserializeMetadata(output),
|
|
1472
|
+
});
|
|
1473
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1474
|
+
const doc = take(data, {
|
|
1475
|
+
'channel': _json,
|
|
1476
|
+
});
|
|
1477
|
+
Object.assign(contents, doc);
|
|
1478
|
+
return contents;
|
|
1479
|
+
};
|
|
1480
|
+
export const de_GetSmsChannelIdCommand = async (output, context) => {
|
|
1481
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
|
+
return de_CommandError(output, context);
|
|
1483
|
+
}
|
|
1484
|
+
const contents = map({
|
|
1485
|
+
$metadata: deserializeMetadata(output),
|
|
1486
|
+
});
|
|
1487
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1488
|
+
const doc = take(data, {
|
|
1489
|
+
'channelId': __expectString,
|
|
1490
|
+
});
|
|
1491
|
+
Object.assign(contents, doc);
|
|
1492
|
+
return contents;
|
|
1493
|
+
};
|
|
1494
|
+
export const de_GetTelephonyChannelIdCommand = async (output, context) => {
|
|
1495
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
+
return de_CommandError(output, context);
|
|
1497
|
+
}
|
|
1498
|
+
const contents = map({
|
|
1499
|
+
$metadata: deserializeMetadata(output),
|
|
1500
|
+
});
|
|
1501
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1502
|
+
const doc = take(data, {
|
|
1503
|
+
'channelId': __expectString,
|
|
1504
|
+
});
|
|
1505
|
+
Object.assign(contents, doc);
|
|
1506
|
+
return contents;
|
|
1507
|
+
};
|
|
1508
|
+
export const de_GetTokenCommand = async (output, context) => {
|
|
1509
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1510
|
+
return de_CommandError(output, context);
|
|
1511
|
+
}
|
|
1512
|
+
const contents = map({
|
|
1513
|
+
$metadata: deserializeMetadata(output),
|
|
1514
|
+
});
|
|
1515
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1516
|
+
const doc = take(data, {
|
|
1517
|
+
'expires': __expectLong,
|
|
1518
|
+
'token': __expectString,
|
|
1519
|
+
});
|
|
1520
|
+
Object.assign(contents, doc);
|
|
1521
|
+
return contents;
|
|
1522
|
+
};
|
|
1523
|
+
export const de_GetUploadedFileInfoCommand = async (output, context) => {
|
|
1524
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
+
return de_CommandError(output, context);
|
|
1526
|
+
}
|
|
1527
|
+
const contents = map({
|
|
1528
|
+
$metadata: deserializeMetadata(output),
|
|
1529
|
+
});
|
|
1530
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1531
|
+
const doc = take(data, {
|
|
1532
|
+
'file': _json,
|
|
1533
|
+
});
|
|
1534
|
+
Object.assign(contents, doc);
|
|
1535
|
+
return contents;
|
|
1536
|
+
};
|
|
1537
|
+
export const de_GetWhatsAppChannelIdCommand = async (output, context) => {
|
|
1538
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1539
|
+
return de_CommandError(output, context);
|
|
1540
|
+
}
|
|
1541
|
+
const contents = map({
|
|
1542
|
+
$metadata: deserializeMetadata(output),
|
|
1543
|
+
});
|
|
1544
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1545
|
+
const doc = take(data, {
|
|
1546
|
+
'channelId': __expectString,
|
|
1547
|
+
});
|
|
1548
|
+
Object.assign(contents, doc);
|
|
1549
|
+
return contents;
|
|
1550
|
+
};
|
|
1551
|
+
export const de_HideChannelCommand = async (output, context) => {
|
|
1552
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1553
|
+
return de_CommandError(output, context);
|
|
1554
|
+
}
|
|
1555
|
+
const contents = map({
|
|
1556
|
+
$metadata: deserializeMetadata(output),
|
|
1557
|
+
});
|
|
1558
|
+
await collectBody(output.body, context);
|
|
1559
|
+
return contents;
|
|
1560
|
+
};
|
|
1561
|
+
export const de_JoinChannelCommand = async (output, context) => {
|
|
1562
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
+
return de_CommandError(output, context);
|
|
1564
|
+
}
|
|
1565
|
+
const contents = map({
|
|
1566
|
+
$metadata: deserializeMetadata(output),
|
|
1567
|
+
});
|
|
1568
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1569
|
+
const doc = take(data, {
|
|
1570
|
+
'channel': _json,
|
|
1571
|
+
});
|
|
1572
|
+
Object.assign(contents, doc);
|
|
1573
|
+
return contents;
|
|
1574
|
+
};
|
|
1575
|
+
export const de_LeaveChannelCommand = async (output, context) => {
|
|
1576
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1577
|
+
return de_CommandError(output, context);
|
|
1578
|
+
}
|
|
1579
|
+
const contents = map({
|
|
1580
|
+
$metadata: deserializeMetadata(output),
|
|
1581
|
+
});
|
|
1582
|
+
await collectBody(output.body, context);
|
|
1583
|
+
return contents;
|
|
1584
|
+
};
|
|
1585
|
+
export const de_ListChannelMembersCommand = async (output, context) => {
|
|
1586
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1587
|
+
return de_CommandError(output, context);
|
|
1588
|
+
}
|
|
1589
|
+
const contents = map({
|
|
1590
|
+
$metadata: deserializeMetadata(output),
|
|
1591
|
+
});
|
|
1592
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1593
|
+
const doc = take(data, {
|
|
1594
|
+
'members': _json,
|
|
1595
|
+
});
|
|
1596
|
+
Object.assign(contents, doc);
|
|
1597
|
+
return contents;
|
|
1598
|
+
};
|
|
1599
|
+
export const de_ListChannelMembersReadStatusCommand = async (output, context) => {
|
|
1600
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1601
|
+
return de_CommandError(output, context);
|
|
1602
|
+
}
|
|
1603
|
+
const contents = map({
|
|
1604
|
+
$metadata: deserializeMetadata(output),
|
|
1605
|
+
});
|
|
1606
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1607
|
+
const doc = take(data, {
|
|
1608
|
+
'members': _json,
|
|
1609
|
+
});
|
|
1610
|
+
Object.assign(contents, doc);
|
|
1611
|
+
return contents;
|
|
1612
|
+
};
|
|
1613
|
+
export const de_ListChannelsCommand = async (output, context) => {
|
|
1614
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1615
|
+
return de_CommandError(output, context);
|
|
1616
|
+
}
|
|
1617
|
+
const contents = map({
|
|
1618
|
+
$metadata: deserializeMetadata(output),
|
|
1619
|
+
});
|
|
1620
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1621
|
+
const doc = take(data, {
|
|
1622
|
+
'channels': _json,
|
|
1623
|
+
'nextCursor': __expectString,
|
|
1624
|
+
});
|
|
1625
|
+
Object.assign(contents, doc);
|
|
1626
|
+
return contents;
|
|
1627
|
+
};
|
|
1628
|
+
export const de_ListMentionsCommand = async (output, context) => {
|
|
1629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
+
return de_CommandError(output, context);
|
|
1631
|
+
}
|
|
1632
|
+
const contents = map({
|
|
1633
|
+
$metadata: deserializeMetadata(output),
|
|
1634
|
+
});
|
|
1635
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1636
|
+
const doc = take(data, {
|
|
1637
|
+
'mentions': _json,
|
|
1638
|
+
'nextCursor': __expectString,
|
|
1639
|
+
});
|
|
1640
|
+
Object.assign(contents, doc);
|
|
1641
|
+
return contents;
|
|
1642
|
+
};
|
|
1643
|
+
export const de_ListMessagesCommand = async (output, context) => {
|
|
1644
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1645
|
+
return de_CommandError(output, context);
|
|
1646
|
+
}
|
|
1647
|
+
const contents = map({
|
|
1648
|
+
$metadata: deserializeMetadata(output),
|
|
1649
|
+
});
|
|
1650
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1651
|
+
const doc = take(data, {
|
|
1652
|
+
'messages': _json,
|
|
1653
|
+
});
|
|
1654
|
+
Object.assign(contents, doc);
|
|
1655
|
+
return contents;
|
|
1656
|
+
};
|
|
1657
|
+
export const de_MarkReadCommand = async (output, context) => {
|
|
1658
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
|
+
return de_CommandError(output, context);
|
|
1660
|
+
}
|
|
1661
|
+
const contents = map({
|
|
1662
|
+
$metadata: deserializeMetadata(output),
|
|
1663
|
+
});
|
|
1664
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1665
|
+
const doc = take(data, {
|
|
1666
|
+
'inbox': _json,
|
|
1667
|
+
});
|
|
1668
|
+
Object.assign(contents, doc);
|
|
1669
|
+
return contents;
|
|
1670
|
+
};
|
|
1671
|
+
export const de_MarkUnreadCommand = async (output, context) => {
|
|
1672
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
|
+
return de_CommandError(output, context);
|
|
1674
|
+
}
|
|
1675
|
+
const contents = map({
|
|
1676
|
+
$metadata: deserializeMetadata(output),
|
|
1677
|
+
});
|
|
1678
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1679
|
+
const doc = take(data, {
|
|
1680
|
+
'inbox': _json,
|
|
1681
|
+
});
|
|
1682
|
+
Object.assign(contents, doc);
|
|
1683
|
+
return contents;
|
|
1684
|
+
};
|
|
1685
|
+
export const de_MoveChannelToSectionCommand = async (output, context) => {
|
|
1686
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1687
|
+
return de_CommandError(output, context);
|
|
1688
|
+
}
|
|
1689
|
+
const contents = map({
|
|
1690
|
+
$metadata: deserializeMetadata(output),
|
|
1691
|
+
});
|
|
1692
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1693
|
+
const doc = take(data, {
|
|
1694
|
+
'inbox': _json,
|
|
1695
|
+
});
|
|
1696
|
+
Object.assign(contents, doc);
|
|
1697
|
+
return contents;
|
|
1698
|
+
};
|
|
1699
|
+
export const de_MuteChannelCommand = async (output, context) => {
|
|
1700
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1701
|
+
return de_CommandError(output, context);
|
|
1702
|
+
}
|
|
1703
|
+
const contents = map({
|
|
1704
|
+
$metadata: deserializeMetadata(output),
|
|
1705
|
+
});
|
|
1706
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1707
|
+
const doc = take(data, {
|
|
1708
|
+
'inbox': _json,
|
|
1709
|
+
});
|
|
1710
|
+
Object.assign(contents, doc);
|
|
1711
|
+
return contents;
|
|
1712
|
+
};
|
|
1713
|
+
export const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
1714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1715
|
+
return de_CommandError(output, context);
|
|
1716
|
+
}
|
|
1717
|
+
const contents = map({
|
|
1718
|
+
$metadata: deserializeMetadata(output),
|
|
221
1719
|
});
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return
|
|
1720
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1721
|
+
const doc = take(data, {
|
|
1722
|
+
'channel': _json,
|
|
1723
|
+
});
|
|
1724
|
+
Object.assign(contents, doc);
|
|
1725
|
+
return contents;
|
|
228
1726
|
};
|
|
229
|
-
export const
|
|
1727
|
+
export const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
230
1728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
1729
|
return de_CommandError(output, context);
|
|
232
1730
|
}
|
|
@@ -240,8 +1738,8 @@ export const de_AddReactionCommand = async (output, context) => {
|
|
|
240
1738
|
Object.assign(contents, doc);
|
|
241
1739
|
return contents;
|
|
242
1740
|
};
|
|
243
|
-
export const
|
|
244
|
-
if (output.statusCode !==
|
|
1741
|
+
export const de_PinChannelCommand = async (output, context) => {
|
|
1742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
245
1743
|
return de_CommandError(output, context);
|
|
246
1744
|
}
|
|
247
1745
|
const contents = map({
|
|
@@ -250,7 +1748,7 @@ export const de_DeleteMessageCommand = async (output, context) => {
|
|
|
250
1748
|
await collectBody(output.body, context);
|
|
251
1749
|
return contents;
|
|
252
1750
|
};
|
|
253
|
-
export const
|
|
1751
|
+
export const de_PinMessageCommand = async (output, context) => {
|
|
254
1752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
255
1753
|
return de_CommandError(output, context);
|
|
256
1754
|
}
|
|
@@ -264,7 +1762,7 @@ export const de_EditMessageCommand = async (output, context) => {
|
|
|
264
1762
|
Object.assign(contents, doc);
|
|
265
1763
|
return contents;
|
|
266
1764
|
};
|
|
267
|
-
export const
|
|
1765
|
+
export const de_QueryChannelsCommand = async (output, context) => {
|
|
268
1766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
269
1767
|
return de_CommandError(output, context);
|
|
270
1768
|
}
|
|
@@ -274,13 +1772,12 @@ export const de_GetInboxCommand = async (output, context) => {
|
|
|
274
1772
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
275
1773
|
const doc = take(data, {
|
|
276
1774
|
'channels': _json,
|
|
277
|
-
'sections': _json,
|
|
278
1775
|
});
|
|
279
1776
|
Object.assign(contents, doc);
|
|
280
1777
|
return contents;
|
|
281
1778
|
};
|
|
282
|
-
export const
|
|
283
|
-
if (output.statusCode !==
|
|
1779
|
+
export const de_RemoveChannelFromSectionCommand = async (output, context) => {
|
|
1780
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
284
1781
|
return de_CommandError(output, context);
|
|
285
1782
|
}
|
|
286
1783
|
const contents = map({
|
|
@@ -288,12 +1785,12 @@ export const de_GetMessageCommand = async (output, context) => {
|
|
|
288
1785
|
});
|
|
289
1786
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
290
1787
|
const doc = take(data, {
|
|
291
|
-
'
|
|
1788
|
+
'inbox': _json,
|
|
292
1789
|
});
|
|
293
1790
|
Object.assign(contents, doc);
|
|
294
1791
|
return contents;
|
|
295
1792
|
};
|
|
296
|
-
export const
|
|
1793
|
+
export const de_RenameSectionCommand = async (output, context) => {
|
|
297
1794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
298
1795
|
return de_CommandError(output, context);
|
|
299
1796
|
}
|
|
@@ -302,13 +1799,12 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
302
1799
|
});
|
|
303
1800
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
304
1801
|
const doc = take(data, {
|
|
305
|
-
'
|
|
306
|
-
'nextCursor': __expectString,
|
|
1802
|
+
'section': _json,
|
|
307
1803
|
});
|
|
308
1804
|
Object.assign(contents, doc);
|
|
309
1805
|
return contents;
|
|
310
1806
|
};
|
|
311
|
-
export const
|
|
1807
|
+
export const de_SendGiphyCommand = async (output, context) => {
|
|
312
1808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
313
1809
|
return de_CommandError(output, context);
|
|
314
1810
|
}
|
|
@@ -317,13 +1813,12 @@ export const de_ListMentionsCommand = async (output, context) => {
|
|
|
317
1813
|
});
|
|
318
1814
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
319
1815
|
const doc = take(data, {
|
|
320
|
-
'
|
|
321
|
-
'nextCursor': __expectString,
|
|
1816
|
+
'message': _json,
|
|
322
1817
|
});
|
|
323
1818
|
Object.assign(contents, doc);
|
|
324
1819
|
return contents;
|
|
325
1820
|
};
|
|
326
|
-
export const
|
|
1821
|
+
export const de_SendMessageCommand = async (output, context) => {
|
|
327
1822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
1823
|
return de_CommandError(output, context);
|
|
329
1824
|
}
|
|
@@ -332,12 +1827,12 @@ export const de_ListMessagesCommand = async (output, context) => {
|
|
|
332
1827
|
});
|
|
333
1828
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
334
1829
|
const doc = take(data, {
|
|
335
|
-
'
|
|
1830
|
+
'message': _json,
|
|
336
1831
|
});
|
|
337
1832
|
Object.assign(contents, doc);
|
|
338
1833
|
return contents;
|
|
339
1834
|
};
|
|
340
|
-
export const
|
|
1835
|
+
export const de_SendMessageReactionCommand = async (output, context) => {
|
|
341
1836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
342
1837
|
return de_CommandError(output, context);
|
|
343
1838
|
}
|
|
@@ -351,7 +1846,7 @@ export const de_PinMessageCommand = async (output, context) => {
|
|
|
351
1846
|
Object.assign(contents, doc);
|
|
352
1847
|
return contents;
|
|
353
1848
|
};
|
|
354
|
-
export const
|
|
1849
|
+
export const de_SendSystemMessageCommand = async (output, context) => {
|
|
355
1850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
356
1851
|
return de_CommandError(output, context);
|
|
357
1852
|
}
|
|
@@ -365,20 +1860,60 @@ export const de_RemoveReactionCommand = async (output, context) => {
|
|
|
365
1860
|
Object.assign(contents, doc);
|
|
366
1861
|
return contents;
|
|
367
1862
|
};
|
|
368
|
-
export const
|
|
1863
|
+
export const de_SendTypingStartCommand = async (output, context) => {
|
|
1864
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1865
|
+
return de_CommandError(output, context);
|
|
1866
|
+
}
|
|
1867
|
+
const contents = map({
|
|
1868
|
+
$metadata: deserializeMetadata(output),
|
|
1869
|
+
});
|
|
1870
|
+
await collectBody(output.body, context);
|
|
1871
|
+
return contents;
|
|
1872
|
+
};
|
|
1873
|
+
export const de_SendTypingStopCommand = async (output, context) => {
|
|
369
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
1875
|
return de_CommandError(output, context);
|
|
371
1876
|
}
|
|
372
1877
|
const contents = map({
|
|
373
1878
|
$metadata: deserializeMetadata(output),
|
|
374
1879
|
});
|
|
1880
|
+
await collectBody(output.body, context);
|
|
1881
|
+
return contents;
|
|
1882
|
+
};
|
|
1883
|
+
export const de_ShowChannelCommand = async (output, context) => {
|
|
1884
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1885
|
+
return de_CommandError(output, context);
|
|
1886
|
+
}
|
|
1887
|
+
const contents = map({
|
|
1888
|
+
$metadata: deserializeMetadata(output),
|
|
1889
|
+
});
|
|
1890
|
+
await collectBody(output.body, context);
|
|
1891
|
+
return contents;
|
|
1892
|
+
};
|
|
1893
|
+
export const de_UnmuteChannelCommand = async (output, context) => {
|
|
1894
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1895
|
+
return de_CommandError(output, context);
|
|
1896
|
+
}
|
|
1897
|
+
const contents = map({
|
|
1898
|
+
$metadata: deserializeMetadata(output),
|
|
1899
|
+
});
|
|
375
1900
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
376
1901
|
const doc = take(data, {
|
|
377
|
-
'
|
|
1902
|
+
'inbox': _json,
|
|
378
1903
|
});
|
|
379
1904
|
Object.assign(contents, doc);
|
|
380
1905
|
return contents;
|
|
381
1906
|
};
|
|
1907
|
+
export const de_UnpinChannelCommand = async (output, context) => {
|
|
1908
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1909
|
+
return de_CommandError(output, context);
|
|
1910
|
+
}
|
|
1911
|
+
const contents = map({
|
|
1912
|
+
$metadata: deserializeMetadata(output),
|
|
1913
|
+
});
|
|
1914
|
+
await collectBody(output.body, context);
|
|
1915
|
+
return contents;
|
|
1916
|
+
};
|
|
382
1917
|
export const de_UnpinMessageCommand = async (output, context) => {
|
|
383
1918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
1919
|
return de_CommandError(output, context);
|
|
@@ -393,6 +1928,49 @@ export const de_UnpinMessageCommand = async (output, context) => {
|
|
|
393
1928
|
Object.assign(contents, doc);
|
|
394
1929
|
return contents;
|
|
395
1930
|
};
|
|
1931
|
+
export const de_UpdateChannelCommand = async (output, context) => {
|
|
1932
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1933
|
+
return de_CommandError(output, context);
|
|
1934
|
+
}
|
|
1935
|
+
const contents = map({
|
|
1936
|
+
$metadata: deserializeMetadata(output),
|
|
1937
|
+
});
|
|
1938
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1939
|
+
const doc = take(data, {
|
|
1940
|
+
'channel': _json,
|
|
1941
|
+
});
|
|
1942
|
+
Object.assign(contents, doc);
|
|
1943
|
+
return contents;
|
|
1944
|
+
};
|
|
1945
|
+
export const de_UpdateMessageCommand = async (output, context) => {
|
|
1946
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1947
|
+
return de_CommandError(output, context);
|
|
1948
|
+
}
|
|
1949
|
+
const contents = map({
|
|
1950
|
+
$metadata: deserializeMetadata(output),
|
|
1951
|
+
});
|
|
1952
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1953
|
+
const doc = take(data, {
|
|
1954
|
+
'message': _json,
|
|
1955
|
+
});
|
|
1956
|
+
Object.assign(contents, doc);
|
|
1957
|
+
return contents;
|
|
1958
|
+
};
|
|
1959
|
+
export const de_UploadFileCommand = async (output, context) => {
|
|
1960
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1961
|
+
return de_CommandError(output, context);
|
|
1962
|
+
}
|
|
1963
|
+
const contents = map({
|
|
1964
|
+
$metadata: deserializeMetadata(output),
|
|
1965
|
+
});
|
|
1966
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1967
|
+
const doc = take(data, {
|
|
1968
|
+
'fsId': __expectString,
|
|
1969
|
+
'presignedUploadUrl': __expectString,
|
|
1970
|
+
});
|
|
1971
|
+
Object.assign(contents, doc);
|
|
1972
|
+
return contents;
|
|
1973
|
+
};
|
|
396
1974
|
const de_CommandError = async (output, context) => {
|
|
397
1975
|
const parsedOutput = {
|
|
398
1976
|
...output,
|
|
@@ -401,26 +1979,53 @@ const de_CommandError = async (output, context) => {
|
|
|
401
1979
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
402
1980
|
switch (errorCode) {
|
|
403
1981
|
case "ChannelNotFoundException":
|
|
404
|
-
case "wildix.
|
|
1982
|
+
case "wildix.stream#ChannelNotFoundException":
|
|
405
1983
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
406
1984
|
case "ForbiddenException":
|
|
407
1985
|
case "smithy.framework#ForbiddenException":
|
|
408
1986
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
409
|
-
case "
|
|
410
|
-
case "
|
|
411
|
-
throw await
|
|
412
|
-
case "MessageNotFoundException":
|
|
413
|
-
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
414
|
-
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1987
|
+
case "MemberAlreadyExistException":
|
|
1988
|
+
case "wildix.stream#MemberAlreadyExistException":
|
|
1989
|
+
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
415
1990
|
case "RateLimitExceededException":
|
|
416
1991
|
case "smithy.framework#RateLimitExceededException":
|
|
417
1992
|
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1993
|
+
case "StreamServiceException":
|
|
1994
|
+
case "wildix.stream#StreamServiceException":
|
|
1995
|
+
throw await de_StreamServiceExceptionRes(parsedOutput, context);
|
|
418
1996
|
case "UnauthorizedException":
|
|
419
1997
|
case "smithy.framework#UnauthorizedException":
|
|
420
1998
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
421
1999
|
case "ValidationException":
|
|
422
2000
|
case "smithy.framework#ValidationException":
|
|
423
2001
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2002
|
+
case "ChannelAlreadyExistException":
|
|
2003
|
+
case "wildix.stream#ChannelAlreadyExistException":
|
|
2004
|
+
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
2005
|
+
case "TargetNotEligibleException":
|
|
2006
|
+
case "wildix.xbees.kite#TargetNotEligibleException":
|
|
2007
|
+
throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
|
|
2008
|
+
case "TargetNotFoundException":
|
|
2009
|
+
case "wildix.xbees.kite#TargetNotFoundException":
|
|
2010
|
+
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
2011
|
+
case "MemberNotFoundException":
|
|
2012
|
+
case "wildix.stream#MemberNotFoundException":
|
|
2013
|
+
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
2014
|
+
case "MessageNotFoundException":
|
|
2015
|
+
case "wildix.stream#MessageNotFoundException":
|
|
2016
|
+
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
2017
|
+
case "SectionNotFoundException":
|
|
2018
|
+
case "wildix.stream#SectionNotFoundException":
|
|
2019
|
+
throw await de_SectionNotFoundExceptionRes(parsedOutput, context);
|
|
2020
|
+
case "FileNotFoundException":
|
|
2021
|
+
case "wildix.stream#FileNotFoundException":
|
|
2022
|
+
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
2023
|
+
case "MarkUnreadChannelsLimitReachedException":
|
|
2024
|
+
case "wildix.stream#MarkUnreadChannelsLimitReachedException":
|
|
2025
|
+
throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
2026
|
+
case "PinnedChannelsLimitReachedException":
|
|
2027
|
+
case "wildix.stream#PinnedChannelsLimitReachedException":
|
|
2028
|
+
throw await de_PinnedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
424
2029
|
default:
|
|
425
2030
|
const parsedBody = parsedOutput.body;
|
|
426
2031
|
return throwDefaultError({
|
|
@@ -444,19 +2049,6 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
444
2049
|
});
|
|
445
2050
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
446
2051
|
};
|
|
447
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
448
|
-
const contents = map({});
|
|
449
|
-
const data = parsedOutput.body;
|
|
450
|
-
const doc = take(data, {
|
|
451
|
-
'message': __expectString,
|
|
452
|
-
});
|
|
453
|
-
Object.assign(contents, doc);
|
|
454
|
-
const exception = new InternalServerError({
|
|
455
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
456
|
-
...contents
|
|
457
|
-
});
|
|
458
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
459
|
-
};
|
|
460
2052
|
const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
461
2053
|
const contents = map({
|
|
462
2054
|
[_rL]: [, parsedOutput.headers[_xrl]],
|
|
@@ -501,6 +2093,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
501
2093
|
});
|
|
502
2094
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
503
2095
|
};
|
|
2096
|
+
const de_ChannelAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
2097
|
+
const contents = map({});
|
|
2098
|
+
const data = parsedOutput.body;
|
|
2099
|
+
const doc = take(data, {
|
|
2100
|
+
'message': __expectString,
|
|
2101
|
+
});
|
|
2102
|
+
Object.assign(contents, doc);
|
|
2103
|
+
const exception = new ChannelAlreadyExistException({
|
|
2104
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2105
|
+
...contents
|
|
2106
|
+
});
|
|
2107
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2108
|
+
};
|
|
504
2109
|
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
505
2110
|
const contents = map({});
|
|
506
2111
|
const data = parsedOutput.body;
|
|
@@ -514,6 +2119,58 @@ const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
514
2119
|
});
|
|
515
2120
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
516
2121
|
};
|
|
2122
|
+
const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2123
|
+
const contents = map({});
|
|
2124
|
+
const data = parsedOutput.body;
|
|
2125
|
+
const doc = take(data, {
|
|
2126
|
+
'message': __expectString,
|
|
2127
|
+
});
|
|
2128
|
+
Object.assign(contents, doc);
|
|
2129
|
+
const exception = new FileNotFoundException({
|
|
2130
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2131
|
+
...contents
|
|
2132
|
+
});
|
|
2133
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2134
|
+
};
|
|
2135
|
+
const de_MarkUnreadChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
2136
|
+
const contents = map({});
|
|
2137
|
+
const data = parsedOutput.body;
|
|
2138
|
+
const doc = take(data, {
|
|
2139
|
+
'message': __expectString,
|
|
2140
|
+
});
|
|
2141
|
+
Object.assign(contents, doc);
|
|
2142
|
+
const exception = new MarkUnreadChannelsLimitReachedException({
|
|
2143
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2144
|
+
...contents
|
|
2145
|
+
});
|
|
2146
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2147
|
+
};
|
|
2148
|
+
const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
2149
|
+
const contents = map({});
|
|
2150
|
+
const data = parsedOutput.body;
|
|
2151
|
+
const doc = take(data, {
|
|
2152
|
+
'message': __expectString,
|
|
2153
|
+
});
|
|
2154
|
+
Object.assign(contents, doc);
|
|
2155
|
+
const exception = new MemberAlreadyExistException({
|
|
2156
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2157
|
+
...contents
|
|
2158
|
+
});
|
|
2159
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2160
|
+
};
|
|
2161
|
+
const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2162
|
+
const contents = map({});
|
|
2163
|
+
const data = parsedOutput.body;
|
|
2164
|
+
const doc = take(data, {
|
|
2165
|
+
'message': __expectString,
|
|
2166
|
+
});
|
|
2167
|
+
Object.assign(contents, doc);
|
|
2168
|
+
const exception = new MemberNotFoundException({
|
|
2169
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2170
|
+
...contents
|
|
2171
|
+
});
|
|
2172
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2173
|
+
};
|
|
517
2174
|
const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
518
2175
|
const contents = map({});
|
|
519
2176
|
const data = parsedOutput.body;
|
|
@@ -527,6 +2184,72 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
527
2184
|
});
|
|
528
2185
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
529
2186
|
};
|
|
2187
|
+
const de_PinnedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
2188
|
+
const contents = map({});
|
|
2189
|
+
const data = parsedOutput.body;
|
|
2190
|
+
const doc = take(data, {
|
|
2191
|
+
'message': __expectString,
|
|
2192
|
+
});
|
|
2193
|
+
Object.assign(contents, doc);
|
|
2194
|
+
const exception = new PinnedChannelsLimitReachedException({
|
|
2195
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2196
|
+
...contents
|
|
2197
|
+
});
|
|
2198
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2199
|
+
};
|
|
2200
|
+
const de_SectionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2201
|
+
const contents = map({});
|
|
2202
|
+
const data = parsedOutput.body;
|
|
2203
|
+
const doc = take(data, {
|
|
2204
|
+
'message': __expectString,
|
|
2205
|
+
});
|
|
2206
|
+
Object.assign(contents, doc);
|
|
2207
|
+
const exception = new SectionNotFoundException({
|
|
2208
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2209
|
+
...contents
|
|
2210
|
+
});
|
|
2211
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2212
|
+
};
|
|
2213
|
+
const de_StreamServiceExceptionRes = async (parsedOutput, context) => {
|
|
2214
|
+
const contents = map({});
|
|
2215
|
+
const data = parsedOutput.body;
|
|
2216
|
+
const doc = take(data, {
|
|
2217
|
+
'message': __expectString,
|
|
2218
|
+
});
|
|
2219
|
+
Object.assign(contents, doc);
|
|
2220
|
+
const exception = new StreamServiceException({
|
|
2221
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2222
|
+
...contents
|
|
2223
|
+
});
|
|
2224
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2225
|
+
};
|
|
2226
|
+
const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
|
|
2227
|
+
const contents = map({});
|
|
2228
|
+
const data = parsedOutput.body;
|
|
2229
|
+
const doc = take(data, {
|
|
2230
|
+
'message': __expectString,
|
|
2231
|
+
'reason': __expectString,
|
|
2232
|
+
});
|
|
2233
|
+
Object.assign(contents, doc);
|
|
2234
|
+
const exception = new TargetNotEligibleException({
|
|
2235
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2236
|
+
...contents
|
|
2237
|
+
});
|
|
2238
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2239
|
+
};
|
|
2240
|
+
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2241
|
+
const contents = map({});
|
|
2242
|
+
const data = parsedOutput.body;
|
|
2243
|
+
const doc = take(data, {
|
|
2244
|
+
'message': __expectString,
|
|
2245
|
+
});
|
|
2246
|
+
Object.assign(contents, doc);
|
|
2247
|
+
const exception = new TargetNotFoundException({
|
|
2248
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2249
|
+
...contents
|
|
2250
|
+
});
|
|
2251
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2252
|
+
};
|
|
530
2253
|
const deserializeMetadata = (output) => ({
|
|
531
2254
|
httpStatusCode: output.statusCode,
|
|
532
2255
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -536,15 +2259,22 @@ const deserializeMetadata = (output) => ({
|
|
|
536
2259
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
537
2260
|
const _c = "company";
|
|
538
2261
|
const _cI = "companyId";
|
|
2262
|
+
const _cIl = "clientId";
|
|
2263
|
+
const _ca = "category";
|
|
539
2264
|
const _cu = "cursor";
|
|
2265
|
+
const _d = "download";
|
|
540
2266
|
const _f = "filter";
|
|
2267
|
+
const _fo = "force";
|
|
541
2268
|
const _fr = "from";
|
|
2269
|
+
const _l = "limit";
|
|
2270
|
+
const _o = "offset";
|
|
542
2271
|
const _rA = "retryAfter";
|
|
543
2272
|
const _rL = "rateLimit";
|
|
544
2273
|
const _rLR = "rateLimitRemaining";
|
|
545
2274
|
const _rLRa = "rateLimitReset";
|
|
546
2275
|
const _ra = "retry-after";
|
|
547
|
-
const _s = "
|
|
2276
|
+
const _s = "silent";
|
|
2277
|
+
const _se = "section";
|
|
548
2278
|
const _t = "to";
|
|
549
2279
|
const _uI = "userId";
|
|
550
2280
|
const _xrl = "x-ratelimit-limit";
|