@wildix/xbees-conversations-client 1.0.56 → 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 -2
- package/dist-cjs/commands/{CreateKiteChannelCommand.js → CreateInboxTagCommand.js} +7 -7
- 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 -1
- package/dist-cjs/models/models_0.js +74 -39
- package/dist-cjs/protocols/Aws_restJson1.js +373 -26
- package/dist-es/Conversations.js +22 -2
- 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 -1
- package/dist-es/models/models_0.js +68 -36
- package/dist-es/protocols/Aws_restJson1.js +350 -23
- package/dist-types/Conversations.d.ts +77 -5
- package/dist-types/ConversationsClient.d.ts +13 -3
- package/dist-types/commands/CreateInboxTagCommand.d.ts +73 -0
- package/dist-types/commands/DeleteInboxTagCommand.d.ts +65 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +0 -30
- package/dist-types/commands/GetInboxStateCommand.d.ts +92 -0
- package/dist-types/commands/GetMessageCommand.d.ts +0 -6
- package/dist-types/commands/ListInboxTaggedChannelsCommand.d.ts +74 -0
- package/dist-types/commands/ListInboxTagsCommand.d.ts +71 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +0 -6
- package/dist-types/commands/MarkUnreadCommand.d.ts +76 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +0 -12
- package/dist-types/commands/PinChannelCommand.d.ts +75 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +0 -6
- package/dist-types/commands/SendMessageCommand.d.ts +0 -12
- 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/UpdateMessageCommand.d.ts +0 -12
- package/dist-types/commands/index.d.ts +11 -1
- package/dist-types/models/models_0.d.ts +412 -217
- package/dist-types/protocols/Aws_restJson1.d.ts +95 -5
- package/package.json +1 -1
- package/dist-es/commands/CreateKiteChannelCommand.js +0 -17
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +0 -300
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException,
|
|
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,22 +73,19 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
73
73
|
.b(body);
|
|
74
74
|
return b.build();
|
|
75
75
|
};
|
|
76
|
-
export const
|
|
76
|
+
export const se_CreateInboxTagCommand = async (input, context) => {
|
|
77
77
|
const b = rb(input, context);
|
|
78
78
|
const headers = {
|
|
79
79
|
'content-type': 'application/json',
|
|
80
80
|
};
|
|
81
|
-
b.bp("/v2/conversations/
|
|
81
|
+
b.bp("/v2/conversations/inbox/tags");
|
|
82
82
|
const query = map({
|
|
83
83
|
[_u]: [, input[_uI]],
|
|
84
84
|
});
|
|
85
85
|
let body;
|
|
86
86
|
body = JSON.stringify(take(input, {
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'targetId': [],
|
|
90
|
-
'targetRouteId': [],
|
|
91
|
-
'welcomeMessages': _ => _json(_),
|
|
87
|
+
'name': [],
|
|
88
|
+
'tagId': [],
|
|
92
89
|
}));
|
|
93
90
|
b.m("POST")
|
|
94
91
|
.h(headers)
|
|
@@ -124,6 +121,21 @@ export const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
|
124
121
|
.b(body);
|
|
125
122
|
return b.build();
|
|
126
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
|
+
};
|
|
127
139
|
export const se_DeleteMessageCommand = async (input, context) => {
|
|
128
140
|
const b = rb(input, context);
|
|
129
141
|
const headers = {};
|
|
@@ -230,6 +242,20 @@ export const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
230
242
|
.b(body);
|
|
231
243
|
return b.build();
|
|
232
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
|
+
};
|
|
233
259
|
export const se_GetMessageCommand = async (input, context) => {
|
|
234
260
|
const b = rb(input, context);
|
|
235
261
|
const headers = {};
|
|
@@ -380,6 +406,35 @@ export const se_ListChannelsCommand = async (input, context) => {
|
|
|
380
406
|
.b(body);
|
|
381
407
|
return b.build();
|
|
382
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
|
+
};
|
|
383
438
|
export const se_ListMessageReactionsCommand = async (input, context) => {
|
|
384
439
|
const b = rb(input, context);
|
|
385
440
|
const headers = {};
|
|
@@ -428,6 +483,27 @@ export const se_MarkReadCommand = async (input, context) => {
|
|
|
428
483
|
.b(body);
|
|
429
484
|
return b.build();
|
|
430
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
|
+
};
|
|
431
507
|
export const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
432
508
|
const b = rb(input, context);
|
|
433
509
|
const headers = {
|
|
@@ -472,6 +548,22 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
472
548
|
.b(body);
|
|
473
549
|
return b.build();
|
|
474
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
|
+
};
|
|
475
567
|
export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
476
568
|
const b = rb(input, context);
|
|
477
569
|
const headers = {
|
|
@@ -524,7 +616,6 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
524
616
|
'forward': _ => _json(_),
|
|
525
617
|
'mentions': _ => _json(_),
|
|
526
618
|
'messageId': [],
|
|
527
|
-
'predefinedReplies': _ => _json(_),
|
|
528
619
|
'quote': _ => _json(_),
|
|
529
620
|
'text': [],
|
|
530
621
|
}));
|
|
@@ -600,6 +691,58 @@ export const se_ShowChannelCommand = async (input, context) => {
|
|
|
600
691
|
.b(body);
|
|
601
692
|
return b.build();
|
|
602
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
|
+
};
|
|
603
746
|
export const se_UpdateChannelCommand = async (input, context) => {
|
|
604
747
|
const b = rb(input, context);
|
|
605
748
|
const headers = {
|
|
@@ -626,6 +769,26 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
626
769
|
.b(body);
|
|
627
770
|
return b.build();
|
|
628
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
|
+
};
|
|
629
792
|
export const se_UpdateMessageCommand = async (input, context) => {
|
|
630
793
|
const b = rb(input, context);
|
|
631
794
|
const headers = {
|
|
@@ -642,7 +805,6 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
642
805
|
'attachments': _ => _json(_),
|
|
643
806
|
'forward': _ => _json(_),
|
|
644
807
|
'mentions': _ => _json(_),
|
|
645
|
-
'predefinedReplies': _ => _json(_),
|
|
646
808
|
'quote': _ => _json(_),
|
|
647
809
|
'text': [],
|
|
648
810
|
}));
|
|
@@ -717,7 +879,7 @@ export const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
717
879
|
Object.assign(contents, doc);
|
|
718
880
|
return contents;
|
|
719
881
|
};
|
|
720
|
-
export const
|
|
882
|
+
export const de_CreateInboxTagCommand = async (output, context) => {
|
|
721
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
884
|
return de_CommandError(output, context);
|
|
723
885
|
}
|
|
@@ -726,7 +888,7 @@ export const de_CreateKiteChannelCommand = async (output, context) => {
|
|
|
726
888
|
});
|
|
727
889
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
728
890
|
const doc = take(data, {
|
|
729
|
-
'
|
|
891
|
+
'tag': _json,
|
|
730
892
|
});
|
|
731
893
|
Object.assign(contents, doc);
|
|
732
894
|
return contents;
|
|
@@ -751,6 +913,16 @@ export const de_DeleteChannelMemberCommand = async (output, context) => {
|
|
|
751
913
|
await collectBody(output.body, context);
|
|
752
914
|
return contents;
|
|
753
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
|
+
};
|
|
754
926
|
export const de_DeleteMessageCommand = async (output, context) => {
|
|
755
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
756
928
|
return de_CommandError(output, context);
|
|
@@ -850,6 +1022,21 @@ export const de_GetFilePresignedDownloadUrlCommand = async (output, context) =>
|
|
|
850
1022
|
Object.assign(contents, doc);
|
|
851
1023
|
return contents;
|
|
852
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
|
+
};
|
|
853
1040
|
export const de_GetMessageCommand = async (output, context) => {
|
|
854
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
1042
|
return de_CommandError(output, context);
|
|
@@ -969,6 +1156,34 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
969
1156
|
Object.assign(contents, doc);
|
|
970
1157
|
return contents;
|
|
971
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
|
+
};
|
|
972
1187
|
export const de_ListMessageReactionsCommand = async (output, context) => {
|
|
973
1188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
1189
|
return de_CommandError(output, context);
|
|
@@ -1007,6 +1222,16 @@ export const de_MarkReadCommand = async (output, context) => {
|
|
|
1007
1222
|
await collectBody(output.body, context);
|
|
1008
1223
|
return contents;
|
|
1009
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
|
+
};
|
|
1010
1235
|
export const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
1011
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1012
1237
|
return de_CommandError(output, context);
|
|
@@ -1035,6 +1260,16 @@ export const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
|
1035
1260
|
Object.assign(contents, doc);
|
|
1036
1261
|
return contents;
|
|
1037
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
|
+
};
|
|
1038
1273
|
export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
1039
1274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1040
1275
|
return de_CommandError(output, context);
|
|
@@ -1113,6 +1348,36 @@ export const de_ShowChannelCommand = async (output, context) => {
|
|
|
1113
1348
|
await collectBody(output.body, context);
|
|
1114
1349
|
return contents;
|
|
1115
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
|
+
};
|
|
1116
1381
|
export const de_UpdateChannelCommand = async (output, context) => {
|
|
1117
1382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
1383
|
return de_CommandError(output, context);
|
|
@@ -1127,6 +1392,20 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1127
1392
|
Object.assign(contents, doc);
|
|
1128
1393
|
return contents;
|
|
1129
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
|
+
};
|
|
1130
1409
|
export const de_UpdateMessageCommand = async (output, context) => {
|
|
1131
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
1411
|
return de_CommandError(output, context);
|
|
@@ -1181,12 +1460,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1181
1460
|
case "ChannelAlreadyExistException":
|
|
1182
1461
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1183
1462
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "
|
|
1185
|
-
case "wildix.xbees.conversations#
|
|
1186
|
-
throw await
|
|
1187
|
-
case "TargetNotFoundException":
|
|
1188
|
-
case "wildix.xbees.conversations#TargetNotFoundException":
|
|
1189
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1463
|
+
case "TagsLimitReachedException":
|
|
1464
|
+
case "wildix.xbees.conversations#TagsLimitReachedException":
|
|
1465
|
+
throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
|
|
1190
1466
|
case "MemberNotFoundException":
|
|
1191
1467
|
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1192
1468
|
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1196,9 +1472,21 @@ const de_CommandError = async (output, context) => {
|
|
|
1196
1472
|
case "FileNotFoundException":
|
|
1197
1473
|
case "wildix.xbees.conversations#FileNotFoundException":
|
|
1198
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);
|
|
1199
1484
|
case "ConversationsServiceException":
|
|
1200
1485
|
case "wildix.xbees.conversations#ConversationsServiceException":
|
|
1201
1486
|
throw await de_ConversationsServiceExceptionRes(parsedOutput, context);
|
|
1487
|
+
case "TaggedChannelsLimitReachedException":
|
|
1488
|
+
case "wildix.xbees.conversations#TaggedChannelsLimitReachedException":
|
|
1489
|
+
throw await de_TaggedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
1202
1490
|
default:
|
|
1203
1491
|
const parsedBody = parsedOutput.body;
|
|
1204
1492
|
return throwDefaultError({
|
|
@@ -1305,6 +1593,19 @@ const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1305
1593
|
});
|
|
1306
1594
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1307
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
|
+
};
|
|
1308
1609
|
const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
1309
1610
|
const contents = map({});
|
|
1310
1611
|
const data = parsedOutput.body;
|
|
@@ -1344,28 +1645,53 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1344
1645
|
});
|
|
1345
1646
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1346
1647
|
};
|
|
1347
|
-
const
|
|
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) => {
|
|
1348
1675
|
const contents = map({});
|
|
1349
1676
|
const data = parsedOutput.body;
|
|
1350
1677
|
const doc = take(data, {
|
|
1351
1678
|
'message': __expectString,
|
|
1352
|
-
'reason': __expectString,
|
|
1353
1679
|
});
|
|
1354
1680
|
Object.assign(contents, doc);
|
|
1355
|
-
const exception = new
|
|
1681
|
+
const exception = new TagNotFoundException({
|
|
1356
1682
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
1683
|
...contents
|
|
1358
1684
|
});
|
|
1359
1685
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1360
1686
|
};
|
|
1361
|
-
const
|
|
1687
|
+
const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
1362
1688
|
const contents = map({});
|
|
1363
1689
|
const data = parsedOutput.body;
|
|
1364
1690
|
const doc = take(data, {
|
|
1365
1691
|
'message': __expectString,
|
|
1366
1692
|
});
|
|
1367
1693
|
Object.assign(contents, doc);
|
|
1368
|
-
const exception = new
|
|
1694
|
+
const exception = new TagsLimitReachedException({
|
|
1369
1695
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1370
1696
|
...contents
|
|
1371
1697
|
});
|
|
@@ -1385,6 +1711,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1385
1711
|
value.length != 0) &&
|
|
1386
1712
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1387
1713
|
const _c = "category";
|
|
1714
|
+
const _f = "force";
|
|
1388
1715
|
const _l = "limit";
|
|
1389
1716
|
const _o = "offset";
|
|
1390
1717
|
const _rA = "retryAfter";
|