@wildix/xbees-conversations-client 1.0.55 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Conversations.js +22 -0
- package/dist-cjs/commands/CreateInboxTagCommand.js +21 -0
- package/dist-cjs/commands/DeleteInboxTagCommand.js +21 -0
- package/dist-cjs/commands/GetInboxStateCommand.js +21 -0
- package/dist-cjs/commands/ListInboxTaggedChannelsCommand.js +21 -0
- package/dist-cjs/commands/ListInboxTagsCommand.js +21 -0
- package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
- package/dist-cjs/commands/PinChannelCommand.js +21 -0
- package/dist-cjs/commands/TagChannelCommand.js +21 -0
- package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
- package/dist-cjs/commands/UntagChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateInboxTagCommand.js +21 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/models/models_0.js +66 -1
- package/dist-cjs/protocols/Aws_restJson1.js +423 -2
- package/dist-es/Conversations.js +22 -0
- package/dist-es/commands/CreateInboxTagCommand.js +17 -0
- package/dist-es/commands/DeleteInboxTagCommand.js +17 -0
- package/dist-es/commands/GetInboxStateCommand.js +17 -0
- package/dist-es/commands/ListInboxTaggedChannelsCommand.js +17 -0
- package/dist-es/commands/ListInboxTagsCommand.js +17 -0
- package/dist-es/commands/MarkUnreadCommand.js +17 -0
- package/dist-es/commands/PinChannelCommand.js +17 -0
- package/dist-es/commands/TagChannelCommand.js +17 -0
- package/dist-es/commands/UnpinChannelCommand.js +17 -0
- package/dist-es/commands/UntagChannelCommand.js +17 -0
- package/dist-es/commands/UpdateInboxTagCommand.js +17 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/models_0.js +60 -0
- package/dist-es/protocols/Aws_restJson1.js +400 -1
- package/dist-types/Conversations.d.ts +79 -0
- package/dist-types/ConversationsClient.d.ts +13 -2
- package/dist-types/commands/CreateInboxTagCommand.d.ts +73 -0
- package/dist-types/commands/DeleteInboxTagCommand.d.ts +65 -0
- package/dist-types/commands/GetInboxStateCommand.d.ts +92 -0
- package/dist-types/commands/ListInboxTaggedChannelsCommand.d.ts +74 -0
- package/dist-types/commands/ListInboxTagsCommand.d.ts +71 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +76 -0
- package/dist-types/commands/PinChannelCommand.d.ts +75 -0
- package/dist-types/commands/TagChannelCommand.d.ts +76 -0
- package/dist-types/commands/UnpinChannelCommand.d.ts +67 -0
- package/dist-types/commands/UntagChannelCommand.d.ts +68 -0
- package/dist-types/commands/UpdateInboxTagCommand.d.ts +73 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +352 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
@@ -73,6 +73,26 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
73
73
|
.b(body);
|
|
74
74
|
return b.build();
|
|
75
75
|
};
|
|
76
|
+
export const se_CreateInboxTagCommand = async (input, context) => {
|
|
77
|
+
const b = rb(input, context);
|
|
78
|
+
const headers = {
|
|
79
|
+
'content-type': 'application/json',
|
|
80
|
+
};
|
|
81
|
+
b.bp("/v2/conversations/inbox/tags");
|
|
82
|
+
const query = map({
|
|
83
|
+
[_u]: [, input[_uI]],
|
|
84
|
+
});
|
|
85
|
+
let body;
|
|
86
|
+
body = JSON.stringify(take(input, {
|
|
87
|
+
'name': [],
|
|
88
|
+
'tagId': [],
|
|
89
|
+
}));
|
|
90
|
+
b.m("POST")
|
|
91
|
+
.h(headers)
|
|
92
|
+
.q(query)
|
|
93
|
+
.b(body);
|
|
94
|
+
return b.build();
|
|
95
|
+
};
|
|
76
96
|
export const se_DeleteChannelCommand = async (input, context) => {
|
|
77
97
|
const b = rb(input, context);
|
|
78
98
|
const headers = {};
|
|
@@ -101,6 +121,21 @@ export const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
|
101
121
|
.b(body);
|
|
102
122
|
return b.build();
|
|
103
123
|
};
|
|
124
|
+
export const se_DeleteInboxTagCommand = async (input, context) => {
|
|
125
|
+
const b = rb(input, context);
|
|
126
|
+
const headers = {};
|
|
127
|
+
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
128
|
+
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
129
|
+
const query = map({
|
|
130
|
+
[_u]: [, input[_uI]],
|
|
131
|
+
});
|
|
132
|
+
let body;
|
|
133
|
+
b.m("DELETE")
|
|
134
|
+
.h(headers)
|
|
135
|
+
.q(query)
|
|
136
|
+
.b(body);
|
|
137
|
+
return b.build();
|
|
138
|
+
};
|
|
104
139
|
export const se_DeleteMessageCommand = async (input, context) => {
|
|
105
140
|
const b = rb(input, context);
|
|
106
141
|
const headers = {};
|
|
@@ -207,6 +242,20 @@ export const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
207
242
|
.b(body);
|
|
208
243
|
return b.build();
|
|
209
244
|
};
|
|
245
|
+
export const se_GetInboxStateCommand = async (input, context) => {
|
|
246
|
+
const b = rb(input, context);
|
|
247
|
+
const headers = {};
|
|
248
|
+
b.bp("/v2/conversations/inbox/state");
|
|
249
|
+
const query = map({
|
|
250
|
+
[_u]: [, input[_uI]],
|
|
251
|
+
});
|
|
252
|
+
let body;
|
|
253
|
+
b.m("GET")
|
|
254
|
+
.h(headers)
|
|
255
|
+
.q(query)
|
|
256
|
+
.b(body);
|
|
257
|
+
return b.build();
|
|
258
|
+
};
|
|
210
259
|
export const se_GetMessageCommand = async (input, context) => {
|
|
211
260
|
const b = rb(input, context);
|
|
212
261
|
const headers = {};
|
|
@@ -357,6 +406,35 @@ export const se_ListChannelsCommand = async (input, context) => {
|
|
|
357
406
|
.b(body);
|
|
358
407
|
return b.build();
|
|
359
408
|
};
|
|
409
|
+
export const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
410
|
+
const b = rb(input, context);
|
|
411
|
+
const headers = {};
|
|
412
|
+
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
413
|
+
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
414
|
+
const query = map({
|
|
415
|
+
[_u]: [, input[_uI]],
|
|
416
|
+
});
|
|
417
|
+
let body;
|
|
418
|
+
b.m("GET")
|
|
419
|
+
.h(headers)
|
|
420
|
+
.q(query)
|
|
421
|
+
.b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
};
|
|
424
|
+
export const se_ListInboxTagsCommand = async (input, context) => {
|
|
425
|
+
const b = rb(input, context);
|
|
426
|
+
const headers = {};
|
|
427
|
+
b.bp("/v2/conversations/inbox/tags");
|
|
428
|
+
const query = map({
|
|
429
|
+
[_u]: [, input[_uI]],
|
|
430
|
+
});
|
|
431
|
+
let body;
|
|
432
|
+
b.m("GET")
|
|
433
|
+
.h(headers)
|
|
434
|
+
.q(query)
|
|
435
|
+
.b(body);
|
|
436
|
+
return b.build();
|
|
437
|
+
};
|
|
360
438
|
export const se_ListMessageReactionsCommand = async (input, context) => {
|
|
361
439
|
const b = rb(input, context);
|
|
362
440
|
const headers = {};
|
|
@@ -405,6 +483,27 @@ export const se_MarkReadCommand = async (input, context) => {
|
|
|
405
483
|
.b(body);
|
|
406
484
|
return b.build();
|
|
407
485
|
};
|
|
486
|
+
export const se_MarkUnreadCommand = async (input, context) => {
|
|
487
|
+
const b = rb(input, context);
|
|
488
|
+
const headers = {
|
|
489
|
+
'content-type': 'application/json',
|
|
490
|
+
};
|
|
491
|
+
b.bp("/v2/conversations/channels/{channelId}/unread");
|
|
492
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
493
|
+
const query = map({
|
|
494
|
+
[_u]: [, input[_uI]],
|
|
495
|
+
[_f]: [() => input.force !== void 0, () => (input[_f].toString())],
|
|
496
|
+
});
|
|
497
|
+
let body;
|
|
498
|
+
body = JSON.stringify(take(input, {
|
|
499
|
+
'messageId': [],
|
|
500
|
+
}));
|
|
501
|
+
b.m("PUT")
|
|
502
|
+
.h(headers)
|
|
503
|
+
.q(query)
|
|
504
|
+
.b(body);
|
|
505
|
+
return b.build();
|
|
506
|
+
};
|
|
408
507
|
export const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
409
508
|
const b = rb(input, context);
|
|
410
509
|
const headers = {
|
|
@@ -449,6 +548,22 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
449
548
|
.b(body);
|
|
450
549
|
return b.build();
|
|
451
550
|
};
|
|
551
|
+
export const se_PinChannelCommand = async (input, context) => {
|
|
552
|
+
const b = rb(input, context);
|
|
553
|
+
const headers = {};
|
|
554
|
+
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
555
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
556
|
+
const query = map({
|
|
557
|
+
[_u]: [, input[_uI]],
|
|
558
|
+
[_f]: [() => input.force !== void 0, () => (input[_f].toString())],
|
|
559
|
+
});
|
|
560
|
+
let body;
|
|
561
|
+
b.m("POST")
|
|
562
|
+
.h(headers)
|
|
563
|
+
.q(query)
|
|
564
|
+
.b(body);
|
|
565
|
+
return b.build();
|
|
566
|
+
};
|
|
452
567
|
export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
453
568
|
const b = rb(input, context);
|
|
454
569
|
const headers = {
|
|
@@ -576,6 +691,58 @@ export const se_ShowChannelCommand = async (input, context) => {
|
|
|
576
691
|
.b(body);
|
|
577
692
|
return b.build();
|
|
578
693
|
};
|
|
694
|
+
export const se_TagChannelCommand = async (input, context) => {
|
|
695
|
+
const b = rb(input, context);
|
|
696
|
+
const headers = {};
|
|
697
|
+
b.bp("/v2/conversations/channels/{channelId}/tags/{tagId}");
|
|
698
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
699
|
+
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
700
|
+
const query = map({
|
|
701
|
+
[_u]: [, input[_uI]],
|
|
702
|
+
[_f]: [() => input.force !== void 0, () => (input[_f].toString())],
|
|
703
|
+
});
|
|
704
|
+
let body;
|
|
705
|
+
b.m("PUT")
|
|
706
|
+
.h(headers)
|
|
707
|
+
.q(query)
|
|
708
|
+
.b(body);
|
|
709
|
+
return b.build();
|
|
710
|
+
};
|
|
711
|
+
export const se_UnpinChannelCommand = async (input, context) => {
|
|
712
|
+
const b = rb(input, context);
|
|
713
|
+
const headers = {};
|
|
714
|
+
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
715
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
716
|
+
const query = map({
|
|
717
|
+
[_u]: [, input[_uI]],
|
|
718
|
+
});
|
|
719
|
+
let body;
|
|
720
|
+
b.m("DELETE")
|
|
721
|
+
.h(headers)
|
|
722
|
+
.q(query)
|
|
723
|
+
.b(body);
|
|
724
|
+
return b.build();
|
|
725
|
+
};
|
|
726
|
+
export const se_UntagChannelCommand = async (input, context) => {
|
|
727
|
+
const b = rb(input, context);
|
|
728
|
+
const headers = {
|
|
729
|
+
'content-type': 'application/json',
|
|
730
|
+
};
|
|
731
|
+
b.bp("/v2/conversations/channels/{channelId}/untag");
|
|
732
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
733
|
+
const query = map({
|
|
734
|
+
[_u]: [, input[_uI]],
|
|
735
|
+
});
|
|
736
|
+
let body;
|
|
737
|
+
body = JSON.stringify(take(input, {
|
|
738
|
+
'tagId': [],
|
|
739
|
+
}));
|
|
740
|
+
b.m("POST")
|
|
741
|
+
.h(headers)
|
|
742
|
+
.q(query)
|
|
743
|
+
.b(body);
|
|
744
|
+
return b.build();
|
|
745
|
+
};
|
|
579
746
|
export const se_UpdateChannelCommand = async (input, context) => {
|
|
580
747
|
const b = rb(input, context);
|
|
581
748
|
const headers = {
|
|
@@ -602,6 +769,26 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
602
769
|
.b(body);
|
|
603
770
|
return b.build();
|
|
604
771
|
};
|
|
772
|
+
export const se_UpdateInboxTagCommand = async (input, context) => {
|
|
773
|
+
const b = rb(input, context);
|
|
774
|
+
const headers = {
|
|
775
|
+
'content-type': 'application/json',
|
|
776
|
+
};
|
|
777
|
+
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
778
|
+
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
779
|
+
const query = map({
|
|
780
|
+
[_u]: [, input[_uI]],
|
|
781
|
+
});
|
|
782
|
+
let body;
|
|
783
|
+
body = JSON.stringify(take(input, {
|
|
784
|
+
'name': [],
|
|
785
|
+
}));
|
|
786
|
+
b.m("PUT")
|
|
787
|
+
.h(headers)
|
|
788
|
+
.q(query)
|
|
789
|
+
.b(body);
|
|
790
|
+
return b.build();
|
|
791
|
+
};
|
|
605
792
|
export const se_UpdateMessageCommand = async (input, context) => {
|
|
606
793
|
const b = rb(input, context);
|
|
607
794
|
const headers = {
|
|
@@ -692,6 +879,20 @@ export const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
692
879
|
Object.assign(contents, doc);
|
|
693
880
|
return contents;
|
|
694
881
|
};
|
|
882
|
+
export const de_CreateInboxTagCommand = async (output, context) => {
|
|
883
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
|
+
return de_CommandError(output, context);
|
|
885
|
+
}
|
|
886
|
+
const contents = map({
|
|
887
|
+
$metadata: deserializeMetadata(output),
|
|
888
|
+
});
|
|
889
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
890
|
+
const doc = take(data, {
|
|
891
|
+
'tag': _json,
|
|
892
|
+
});
|
|
893
|
+
Object.assign(contents, doc);
|
|
894
|
+
return contents;
|
|
895
|
+
};
|
|
695
896
|
export const de_DeleteChannelCommand = async (output, context) => {
|
|
696
897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
898
|
return de_CommandError(output, context);
|
|
@@ -712,6 +913,16 @@ export const de_DeleteChannelMemberCommand = async (output, context) => {
|
|
|
712
913
|
await collectBody(output.body, context);
|
|
713
914
|
return contents;
|
|
714
915
|
};
|
|
916
|
+
export const de_DeleteInboxTagCommand = async (output, context) => {
|
|
917
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
918
|
+
return de_CommandError(output, context);
|
|
919
|
+
}
|
|
920
|
+
const contents = map({
|
|
921
|
+
$metadata: deserializeMetadata(output),
|
|
922
|
+
});
|
|
923
|
+
await collectBody(output.body, context);
|
|
924
|
+
return contents;
|
|
925
|
+
};
|
|
715
926
|
export const de_DeleteMessageCommand = async (output, context) => {
|
|
716
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
928
|
return de_CommandError(output, context);
|
|
@@ -811,6 +1022,21 @@ export const de_GetFilePresignedDownloadUrlCommand = async (output, context) =>
|
|
|
811
1022
|
Object.assign(contents, doc);
|
|
812
1023
|
return contents;
|
|
813
1024
|
};
|
|
1025
|
+
export const de_GetInboxStateCommand = async (output, context) => {
|
|
1026
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
+
return de_CommandError(output, context);
|
|
1028
|
+
}
|
|
1029
|
+
const contents = map({
|
|
1030
|
+
$metadata: deserializeMetadata(output),
|
|
1031
|
+
});
|
|
1032
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1033
|
+
const doc = take(data, {
|
|
1034
|
+
'channels': _json,
|
|
1035
|
+
'tags': _json,
|
|
1036
|
+
});
|
|
1037
|
+
Object.assign(contents, doc);
|
|
1038
|
+
return contents;
|
|
1039
|
+
};
|
|
814
1040
|
export const de_GetMessageCommand = async (output, context) => {
|
|
815
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
1042
|
return de_CommandError(output, context);
|
|
@@ -930,6 +1156,34 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
930
1156
|
Object.assign(contents, doc);
|
|
931
1157
|
return contents;
|
|
932
1158
|
};
|
|
1159
|
+
export const de_ListInboxTaggedChannelsCommand = async (output, context) => {
|
|
1160
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1161
|
+
return de_CommandError(output, context);
|
|
1162
|
+
}
|
|
1163
|
+
const contents = map({
|
|
1164
|
+
$metadata: deserializeMetadata(output),
|
|
1165
|
+
});
|
|
1166
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1167
|
+
const doc = take(data, {
|
|
1168
|
+
'channels': _json,
|
|
1169
|
+
});
|
|
1170
|
+
Object.assign(contents, doc);
|
|
1171
|
+
return contents;
|
|
1172
|
+
};
|
|
1173
|
+
export const de_ListInboxTagsCommand = async (output, context) => {
|
|
1174
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
+
return de_CommandError(output, context);
|
|
1176
|
+
}
|
|
1177
|
+
const contents = map({
|
|
1178
|
+
$metadata: deserializeMetadata(output),
|
|
1179
|
+
});
|
|
1180
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1181
|
+
const doc = take(data, {
|
|
1182
|
+
'tags': _json,
|
|
1183
|
+
});
|
|
1184
|
+
Object.assign(contents, doc);
|
|
1185
|
+
return contents;
|
|
1186
|
+
};
|
|
933
1187
|
export const de_ListMessageReactionsCommand = async (output, context) => {
|
|
934
1188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
1189
|
return de_CommandError(output, context);
|
|
@@ -968,6 +1222,16 @@ export const de_MarkReadCommand = async (output, context) => {
|
|
|
968
1222
|
await collectBody(output.body, context);
|
|
969
1223
|
return contents;
|
|
970
1224
|
};
|
|
1225
|
+
export const de_MarkUnreadCommand = async (output, context) => {
|
|
1226
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1227
|
+
return de_CommandError(output, context);
|
|
1228
|
+
}
|
|
1229
|
+
const contents = map({
|
|
1230
|
+
$metadata: deserializeMetadata(output),
|
|
1231
|
+
});
|
|
1232
|
+
await collectBody(output.body, context);
|
|
1233
|
+
return contents;
|
|
1234
|
+
};
|
|
971
1235
|
export const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
972
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
1237
|
return de_CommandError(output, context);
|
|
@@ -996,6 +1260,16 @@ export const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
|
996
1260
|
Object.assign(contents, doc);
|
|
997
1261
|
return contents;
|
|
998
1262
|
};
|
|
1263
|
+
export const de_PinChannelCommand = async (output, context) => {
|
|
1264
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
+
return de_CommandError(output, context);
|
|
1266
|
+
}
|
|
1267
|
+
const contents = map({
|
|
1268
|
+
$metadata: deserializeMetadata(output),
|
|
1269
|
+
});
|
|
1270
|
+
await collectBody(output.body, context);
|
|
1271
|
+
return contents;
|
|
1272
|
+
};
|
|
999
1273
|
export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
1000
1274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
1275
|
return de_CommandError(output, context);
|
|
@@ -1074,6 +1348,36 @@ export const de_ShowChannelCommand = async (output, context) => {
|
|
|
1074
1348
|
await collectBody(output.body, context);
|
|
1075
1349
|
return contents;
|
|
1076
1350
|
};
|
|
1351
|
+
export const de_TagChannelCommand = async (output, context) => {
|
|
1352
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
+
return de_CommandError(output, context);
|
|
1354
|
+
}
|
|
1355
|
+
const contents = map({
|
|
1356
|
+
$metadata: deserializeMetadata(output),
|
|
1357
|
+
});
|
|
1358
|
+
await collectBody(output.body, context);
|
|
1359
|
+
return contents;
|
|
1360
|
+
};
|
|
1361
|
+
export const de_UnpinChannelCommand = async (output, context) => {
|
|
1362
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
|
+
return de_CommandError(output, context);
|
|
1364
|
+
}
|
|
1365
|
+
const contents = map({
|
|
1366
|
+
$metadata: deserializeMetadata(output),
|
|
1367
|
+
});
|
|
1368
|
+
await collectBody(output.body, context);
|
|
1369
|
+
return contents;
|
|
1370
|
+
};
|
|
1371
|
+
export const de_UntagChannelCommand = async (output, context) => {
|
|
1372
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1373
|
+
return de_CommandError(output, context);
|
|
1374
|
+
}
|
|
1375
|
+
const contents = map({
|
|
1376
|
+
$metadata: deserializeMetadata(output),
|
|
1377
|
+
});
|
|
1378
|
+
await collectBody(output.body, context);
|
|
1379
|
+
return contents;
|
|
1380
|
+
};
|
|
1077
1381
|
export const de_UpdateChannelCommand = async (output, context) => {
|
|
1078
1382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
1383
|
return de_CommandError(output, context);
|
|
@@ -1088,6 +1392,20 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1088
1392
|
Object.assign(contents, doc);
|
|
1089
1393
|
return contents;
|
|
1090
1394
|
};
|
|
1395
|
+
export const de_UpdateInboxTagCommand = 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
|
+
'tag': _json,
|
|
1405
|
+
});
|
|
1406
|
+
Object.assign(contents, doc);
|
|
1407
|
+
return contents;
|
|
1408
|
+
};
|
|
1091
1409
|
export const de_UpdateMessageCommand = async (output, context) => {
|
|
1092
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1093
1411
|
return de_CommandError(output, context);
|
|
@@ -1142,6 +1460,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1142
1460
|
case "ChannelAlreadyExistException":
|
|
1143
1461
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1144
1462
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
1463
|
+
case "TagsLimitReachedException":
|
|
1464
|
+
case "wildix.xbees.conversations#TagsLimitReachedException":
|
|
1465
|
+
throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
|
|
1145
1466
|
case "MemberNotFoundException":
|
|
1146
1467
|
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1147
1468
|
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1151,9 +1472,21 @@ const de_CommandError = async (output, context) => {
|
|
|
1151
1472
|
case "FileNotFoundException":
|
|
1152
1473
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1153
1474
|
throw await de_FileNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "TagNotFoundException":
|
|
1476
|
+
case "wildix.xbees.conversations#TagNotFoundException":
|
|
1477
|
+
throw await de_TagNotFoundExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "MarkUnreadChannelsLimitReachedException":
|
|
1479
|
+
case "wildix.xbees.conversations#MarkUnreadChannelsLimitReachedException":
|
|
1480
|
+
throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1481
|
+
case "PinnedChannelsLimitReachedException":
|
|
1482
|
+
case "wildix.xbees.conversations#PinnedChannelsLimitReachedException":
|
|
1483
|
+
throw await de_PinnedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1154
1484
|
case "ConversationsServiceException":
|
|
1155
1485
|
case "wildix.xbees.conversations#ConversationsServiceException":
|
|
1156
1486
|
throw await de_ConversationsServiceExceptionRes(parsedOutput, context);
|
|
1487
|
+
case "TaggedChannelsLimitReachedException":
|
|
1488
|
+
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1489
|
+
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1157
1490
|
default:
|
|
1158
1491
|
const parsedBody = parsedOutput.body;
|
|
1159
1492
|
return throwDefaultError({
|
|
@@ -1260,6 +1593,19 @@ const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1260
1593
|
});
|
|
1261
1594
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1262
1595
|
};
|
|
1596
|
+
const de_MarkUnreadChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
1597
|
+
const contents = map({});
|
|
1598
|
+
const data = parsedOutput.body;
|
|
1599
|
+
const doc = take(data, {
|
|
1600
|
+
'message': __expectString,
|
|
1601
|
+
});
|
|
1602
|
+
Object.assign(contents, doc);
|
|
1603
|
+
const exception = new MarkUnreadChannelsLimitReachedException({
|
|
1604
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1605
|
+
...contents
|
|
1606
|
+
});
|
|
1607
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1608
|
+
};
|
|
1263
1609
|
const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
1264
1610
|
const contents = map({});
|
|
1265
1611
|
const data = parsedOutput.body;
|
|
@@ -1299,6 +1645,58 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1299
1645
|
});
|
|
1300
1646
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1301
1647
|
};
|
|
1648
|
+
const de_PinnedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
1649
|
+
const contents = map({});
|
|
1650
|
+
const data = parsedOutput.body;
|
|
1651
|
+
const doc = take(data, {
|
|
1652
|
+
'message': __expectString,
|
|
1653
|
+
});
|
|
1654
|
+
Object.assign(contents, doc);
|
|
1655
|
+
const exception = new PinnedChannelsLimitReachedException({
|
|
1656
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1657
|
+
...contents
|
|
1658
|
+
});
|
|
1659
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1660
|
+
};
|
|
1661
|
+
const de_TaggedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
1662
|
+
const contents = map({});
|
|
1663
|
+
const data = parsedOutput.body;
|
|
1664
|
+
const doc = take(data, {
|
|
1665
|
+
'message': __expectString,
|
|
1666
|
+
});
|
|
1667
|
+
Object.assign(contents, doc);
|
|
1668
|
+
const exception = new TaggedChannelsLimitReachedException({
|
|
1669
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1670
|
+
...contents
|
|
1671
|
+
});
|
|
1672
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1673
|
+
};
|
|
1674
|
+
const de_TagNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1675
|
+
const contents = map({});
|
|
1676
|
+
const data = parsedOutput.body;
|
|
1677
|
+
const doc = take(data, {
|
|
1678
|
+
'message': __expectString,
|
|
1679
|
+
});
|
|
1680
|
+
Object.assign(contents, doc);
|
|
1681
|
+
const exception = new TagNotFoundException({
|
|
1682
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1683
|
+
...contents
|
|
1684
|
+
});
|
|
1685
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1686
|
+
};
|
|
1687
|
+
const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
1688
|
+
const contents = map({});
|
|
1689
|
+
const data = parsedOutput.body;
|
|
1690
|
+
const doc = take(data, {
|
|
1691
|
+
'message': __expectString,
|
|
1692
|
+
});
|
|
1693
|
+
Object.assign(contents, doc);
|
|
1694
|
+
const exception = new TagsLimitReachedException({
|
|
1695
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1696
|
+
...contents
|
|
1697
|
+
});
|
|
1698
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1699
|
+
};
|
|
1302
1700
|
const deserializeMetadata = (output) => ({
|
|
1303
1701
|
httpStatusCode: output.statusCode,
|
|
1304
1702
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1313,6 +1711,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1313
1711
|
value.length != 0) &&
|
|
1314
1712
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1315
1713
|
const _c = "category";
|
|
1714
|
+
const _f = "force";
|
|
1316
1715
|
const _l = "limit";
|
|
1317
1716
|
const _o = "offset";
|
|
1318
1717
|
const _rA = "retryAfter";
|