@wildix/xbees-conversations-client 1.0.33 → 1.0.35
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 +4 -2
- package/dist-cjs/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +7 -7
- package/dist-cjs/commands/ShowChannelCommand.js +41 -0
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/protocols/Aws_restJson1.js +102 -104
- package/dist-es/Conversations.js +4 -2
- package/dist-es/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +6 -6
- package/dist-es/commands/ShowChannelCommand.js +37 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/protocols/Aws_restJson1.js +93 -97
- package/dist-types/Conversations.d.ts +14 -7
- package/dist-types/ConversationsClient.d.ts +4 -3
- package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/GetMessageCommand.d.ts +27 -45
- package/dist-types/commands/HideChannelCommand.d.ts +140 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +27 -45
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +61 -134
- package/dist-types/commands/SendGiphyCommand.d.ts +27 -45
- package/dist-types/commands/SendMessageCommand.d.ts +61 -134
- package/dist-types/commands/ShowChannelCommand.d.ts +140 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +61 -134
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +141 -112
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -9
- package/package.json +1 -1
- package/dist-types/commands/SendSystemMessageCommand.d.ts +0 -213
|
@@ -10,6 +10,7 @@ export * from "./GetChannelMemberCommand";
|
|
|
10
10
|
export * from "./GetDirectChannelIdCommand";
|
|
11
11
|
export * from "./GetMessageCommand";
|
|
12
12
|
export * from "./GetOrCreateDirectChannelCommand";
|
|
13
|
+
export * from "./HideChannelCommand";
|
|
13
14
|
export * from "./InviteCommand";
|
|
14
15
|
export * from "./JoinChannelCommand";
|
|
15
16
|
export * from "./LeaveChannelCommand";
|
|
@@ -24,8 +25,8 @@ export * from "./ScheduleExternalFlagAdjustmentJobCommand";
|
|
|
24
25
|
export * from "./SendGiphyCommand";
|
|
25
26
|
export * from "./SendMessageCommand";
|
|
26
27
|
export * from "./SendMessageReactionCommand";
|
|
27
|
-
export * from "./SendSystemMessageCommand";
|
|
28
28
|
export * from "./SendTypingStartCommand";
|
|
29
29
|
export * from "./SendTypingStopCommand";
|
|
30
|
+
export * from "./ShowChannelCommand";
|
|
30
31
|
export * from "./UpdateChannelCommand";
|
|
31
32
|
export * from "./UpdateMessageCommand";
|
|
@@ -66,6 +66,11 @@ export interface UserToInvite {
|
|
|
66
66
|
*/
|
|
67
67
|
export interface AddChannelMemberInput {
|
|
68
68
|
channelId: string;
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
* True to not send a system message that members added from the conversartion. Default - false.
|
|
72
|
+
*/
|
|
73
|
+
silent?: boolean;
|
|
69
74
|
memberId?: string;
|
|
70
75
|
memberToInvite?: UserToInvite;
|
|
71
76
|
}
|
|
@@ -131,6 +136,11 @@ export declare class MemberAlreadyExistException extends __BaseException {
|
|
|
131
136
|
*/
|
|
132
137
|
export interface AddChannelMembersInput {
|
|
133
138
|
channelId: string;
|
|
139
|
+
/**
|
|
140
|
+
* @public
|
|
141
|
+
* True to not send a system message that members added from the conversartion. Default - false.
|
|
142
|
+
*/
|
|
143
|
+
silent?: boolean;
|
|
134
144
|
members?: (string)[];
|
|
135
145
|
membersToInvite?: (UserToInvite)[];
|
|
136
146
|
}
|
|
@@ -498,6 +508,21 @@ export interface Reaction {
|
|
|
498
508
|
messageId?: string;
|
|
499
509
|
user?: User;
|
|
500
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
514
|
+
export interface MessageQuote {
|
|
515
|
+
messageId: string;
|
|
516
|
+
channelId: string;
|
|
517
|
+
user: User;
|
|
518
|
+
text?: string;
|
|
519
|
+
attachments?: (MessageAttachment)[];
|
|
520
|
+
forward?: MessageForward;
|
|
521
|
+
mentions?: (User)[];
|
|
522
|
+
giphy?: MessageGiphy;
|
|
523
|
+
createdAt: string;
|
|
524
|
+
updatedAt?: string;
|
|
525
|
+
}
|
|
501
526
|
/**
|
|
502
527
|
* @public
|
|
503
528
|
* @enum
|
|
@@ -523,6 +548,36 @@ export declare const MessageType: {
|
|
|
523
548
|
* @public
|
|
524
549
|
*/
|
|
525
550
|
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
551
|
+
/**
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
export interface Message {
|
|
555
|
+
text?: string;
|
|
556
|
+
attachments?: (MessageAttachment)[];
|
|
557
|
+
quote?: MessageQuote;
|
|
558
|
+
forward?: MessageForward;
|
|
559
|
+
type: MessageType | string;
|
|
560
|
+
giphy?: MessageGiphy;
|
|
561
|
+
silent?: boolean;
|
|
562
|
+
event?: string;
|
|
563
|
+
sms?: boolean;
|
|
564
|
+
smsStatus?: MessageSmsStatus | string;
|
|
565
|
+
messageId: string;
|
|
566
|
+
channelId: string;
|
|
567
|
+
user: User;
|
|
568
|
+
edit?: boolean;
|
|
569
|
+
mentions?: (User)[];
|
|
570
|
+
latestReactions?: (Reaction)[];
|
|
571
|
+
reactionCounts?: Record<string, number>;
|
|
572
|
+
createdAt: string;
|
|
573
|
+
updatedAt?: string;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @public
|
|
577
|
+
*/
|
|
578
|
+
export interface GetMessageOutput {
|
|
579
|
+
message?: Message;
|
|
580
|
+
}
|
|
526
581
|
/**
|
|
527
582
|
* @public
|
|
528
583
|
*/
|
|
@@ -537,6 +592,19 @@ export interface GetOrCreateDirectChannelInput {
|
|
|
537
592
|
export interface GetOrCreateDirectChannelOutput {
|
|
538
593
|
channel: Channel;
|
|
539
594
|
}
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
*/
|
|
598
|
+
export interface HideChannelInput {
|
|
599
|
+
channelId: string;
|
|
600
|
+
userId?: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @public
|
|
604
|
+
*/
|
|
605
|
+
export interface HideChannelOutput {
|
|
606
|
+
channel: Channel;
|
|
607
|
+
}
|
|
540
608
|
/**
|
|
541
609
|
* @public
|
|
542
610
|
*/
|
|
@@ -636,6 +704,12 @@ export interface ListMessagesInput {
|
|
|
636
704
|
limit?: number;
|
|
637
705
|
offset?: number;
|
|
638
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* @public
|
|
709
|
+
*/
|
|
710
|
+
export interface ListMessagesOutput {
|
|
711
|
+
messages?: (Message)[];
|
|
712
|
+
}
|
|
639
713
|
/**
|
|
640
714
|
* @public
|
|
641
715
|
*/
|
|
@@ -698,6 +772,15 @@ export interface PartialUpdateChannelInput {
|
|
|
698
772
|
export interface PartialUpdateChannelOutput {
|
|
699
773
|
channel: Channel;
|
|
700
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
export interface PartialUpdateMessageSetInput {
|
|
779
|
+
text?: string;
|
|
780
|
+
attachments?: (MessageAttachment)[];
|
|
781
|
+
quote?: MessageQuote;
|
|
782
|
+
forward?: MessageForward;
|
|
783
|
+
}
|
|
701
784
|
/**
|
|
702
785
|
* @public
|
|
703
786
|
* @enum
|
|
@@ -712,6 +795,21 @@ export declare const MessageUnsetFields: {
|
|
|
712
795
|
* @public
|
|
713
796
|
*/
|
|
714
797
|
export type MessageUnsetFields = typeof MessageUnsetFields[keyof typeof MessageUnsetFields];
|
|
798
|
+
/**
|
|
799
|
+
* @public
|
|
800
|
+
*/
|
|
801
|
+
export interface PartialUpdateMessageInput {
|
|
802
|
+
channelId: string;
|
|
803
|
+
messageId: string;
|
|
804
|
+
set?: PartialUpdateMessageSetInput;
|
|
805
|
+
unset?: (MessageUnsetFields | string)[];
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* @public
|
|
809
|
+
*/
|
|
810
|
+
export interface PartialUpdateMessageOutput {
|
|
811
|
+
message?: Message;
|
|
812
|
+
}
|
|
715
813
|
/**
|
|
716
814
|
* @public
|
|
717
815
|
*/
|
|
@@ -758,40 +856,57 @@ export interface SendGiphyInput {
|
|
|
758
856
|
/**
|
|
759
857
|
* @public
|
|
760
858
|
*/
|
|
761
|
-
export interface
|
|
859
|
+
export interface SendGiphyOutput {
|
|
860
|
+
message?: Message;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* @public
|
|
864
|
+
*/
|
|
865
|
+
export interface SendMessageInput {
|
|
866
|
+
text?: string;
|
|
867
|
+
attachments?: (MessageAttachment)[];
|
|
868
|
+
quote?: MessageQuote;
|
|
869
|
+
forward?: MessageForward;
|
|
762
870
|
channelId: string;
|
|
763
|
-
messageId: string;
|
|
764
871
|
/**
|
|
765
872
|
* @public
|
|
766
|
-
*
|
|
873
|
+
* User ID for server side calls
|
|
767
874
|
*/
|
|
768
|
-
|
|
875
|
+
userId?: string;
|
|
769
876
|
/**
|
|
770
877
|
* @public
|
|
771
|
-
*
|
|
878
|
+
* Message ID if empty ID will be auto-generated.
|
|
772
879
|
*/
|
|
773
|
-
|
|
880
|
+
messageId?: string;
|
|
881
|
+
mentions?: (string)[];
|
|
774
882
|
}
|
|
775
883
|
/**
|
|
776
884
|
* @public
|
|
777
885
|
*/
|
|
778
|
-
export interface
|
|
886
|
+
export interface SendMessageOutput {
|
|
887
|
+
message?: Message;
|
|
779
888
|
}
|
|
780
889
|
/**
|
|
781
890
|
* @public
|
|
782
891
|
*/
|
|
783
|
-
export interface
|
|
892
|
+
export interface SendMessageReactionInput {
|
|
784
893
|
channelId: string;
|
|
894
|
+
messageId: string;
|
|
785
895
|
/**
|
|
786
896
|
* @public
|
|
787
|
-
* User
|
|
897
|
+
* Type of the reaction. User could have only 1 reaction of each type per message.
|
|
788
898
|
*/
|
|
789
|
-
|
|
899
|
+
reactionType: ReactionType | string;
|
|
790
900
|
/**
|
|
791
901
|
* @public
|
|
792
|
-
*
|
|
902
|
+
* User ID for server side calls
|
|
793
903
|
*/
|
|
794
|
-
|
|
904
|
+
userId?: string;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* @public
|
|
908
|
+
*/
|
|
909
|
+
export interface SendMessageReactionOutput {
|
|
795
910
|
}
|
|
796
911
|
/**
|
|
797
912
|
* @public
|
|
@@ -817,6 +932,19 @@ export interface SendTypingStopInput {
|
|
|
817
932
|
*/
|
|
818
933
|
export interface SendTypingStopOutput {
|
|
819
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* @public
|
|
937
|
+
*/
|
|
938
|
+
export interface ShowChannelInput {
|
|
939
|
+
channelId: string;
|
|
940
|
+
userId?: string;
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* @public
|
|
944
|
+
*/
|
|
945
|
+
export interface ShowChannelOutput {
|
|
946
|
+
channel: Channel;
|
|
947
|
+
}
|
|
820
948
|
/**
|
|
821
949
|
* @public
|
|
822
950
|
*/
|
|
@@ -844,97 +972,13 @@ export interface UpdateChannelInput {
|
|
|
844
972
|
export interface UpdateChannelOutput {
|
|
845
973
|
channel: Channel;
|
|
846
974
|
}
|
|
847
|
-
/**
|
|
848
|
-
* @public
|
|
849
|
-
*/
|
|
850
|
-
export interface Message {
|
|
851
|
-
text?: string;
|
|
852
|
-
attachments?: (MessageAttachment)[];
|
|
853
|
-
quote?: Message;
|
|
854
|
-
forward?: MessageForward;
|
|
855
|
-
type: MessageType | string;
|
|
856
|
-
giphy?: MessageGiphy;
|
|
857
|
-
silent?: boolean;
|
|
858
|
-
event?: string;
|
|
859
|
-
sms?: boolean;
|
|
860
|
-
smsStatus?: MessageSmsStatus | string;
|
|
861
|
-
messageId: string;
|
|
862
|
-
channelId: string;
|
|
863
|
-
user: User;
|
|
864
|
-
edit?: boolean;
|
|
865
|
-
mentions?: (User)[];
|
|
866
|
-
latestReactions?: (Reaction)[];
|
|
867
|
-
reactionCounts?: Record<string, number>;
|
|
868
|
-
createdAt: string;
|
|
869
|
-
updatedAt?: string;
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* @public
|
|
873
|
-
*/
|
|
874
|
-
export interface GetMessageOutput {
|
|
875
|
-
message?: Message;
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* @public
|
|
879
|
-
*/
|
|
880
|
-
export interface PartialUpdateMessageOutput {
|
|
881
|
-
message?: Message;
|
|
882
|
-
}
|
|
883
|
-
/**
|
|
884
|
-
* @public
|
|
885
|
-
*/
|
|
886
|
-
export interface PartialUpdateMessageSetInput {
|
|
887
|
-
text?: string;
|
|
888
|
-
attachments?: (MessageAttachment)[];
|
|
889
|
-
quote?: Message;
|
|
890
|
-
forward?: MessageForward;
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* @public
|
|
894
|
-
*/
|
|
895
|
-
export interface SendGiphyOutput {
|
|
896
|
-
message?: Message;
|
|
897
|
-
}
|
|
898
|
-
/**
|
|
899
|
-
* @public
|
|
900
|
-
*/
|
|
901
|
-
export interface SendMessageInput {
|
|
902
|
-
text?: string;
|
|
903
|
-
attachments?: (MessageAttachment)[];
|
|
904
|
-
quote?: Message;
|
|
905
|
-
forward?: MessageForward;
|
|
906
|
-
channelId: string;
|
|
907
|
-
/**
|
|
908
|
-
* @public
|
|
909
|
-
* User ID for server side calls
|
|
910
|
-
*/
|
|
911
|
-
userId?: string;
|
|
912
|
-
/**
|
|
913
|
-
* @public
|
|
914
|
-
* Message ID if empty ID will be auto-generated.
|
|
915
|
-
*/
|
|
916
|
-
messageId?: string;
|
|
917
|
-
mentions?: (string)[];
|
|
918
|
-
}
|
|
919
|
-
/**
|
|
920
|
-
* @public
|
|
921
|
-
*/
|
|
922
|
-
export interface SendMessageOutput {
|
|
923
|
-
message?: Message;
|
|
924
|
-
}
|
|
925
|
-
/**
|
|
926
|
-
* @public
|
|
927
|
-
*/
|
|
928
|
-
export interface SendSystemMessageOutput {
|
|
929
|
-
message?: Message;
|
|
930
|
-
}
|
|
931
975
|
/**
|
|
932
976
|
* @public
|
|
933
977
|
*/
|
|
934
978
|
export interface UpdateMessageInput {
|
|
935
979
|
text?: string;
|
|
936
980
|
attachments?: (MessageAttachment)[];
|
|
937
|
-
quote?:
|
|
981
|
+
quote?: MessageQuote;
|
|
938
982
|
forward?: MessageForward;
|
|
939
983
|
channelId: string;
|
|
940
984
|
messageId: string;
|
|
@@ -946,18 +990,3 @@ export interface UpdateMessageInput {
|
|
|
946
990
|
export interface UpdateMessageOutput {
|
|
947
991
|
message?: Message;
|
|
948
992
|
}
|
|
949
|
-
/**
|
|
950
|
-
* @public
|
|
951
|
-
*/
|
|
952
|
-
export interface ListMessagesOutput {
|
|
953
|
-
messages?: (Message)[];
|
|
954
|
-
}
|
|
955
|
-
/**
|
|
956
|
-
* @public
|
|
957
|
-
*/
|
|
958
|
-
export interface PartialUpdateMessageInput {
|
|
959
|
-
channelId: string;
|
|
960
|
-
messageId: string;
|
|
961
|
-
set?: PartialUpdateMessageSetInput;
|
|
962
|
-
unset?: (MessageUnsetFields | string)[];
|
|
963
|
-
}
|
|
@@ -10,6 +10,7 @@ import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "../
|
|
|
10
10
|
import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "../commands/GetDirectChannelIdCommand";
|
|
11
11
|
import { GetMessageCommandInput, GetMessageCommandOutput } from "../commands/GetMessageCommand";
|
|
12
12
|
import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "../commands/GetOrCreateDirectChannelCommand";
|
|
13
|
+
import { HideChannelCommandInput, HideChannelCommandOutput } from "../commands/HideChannelCommand";
|
|
13
14
|
import { InviteCommandInput, InviteCommandOutput } from "../commands/InviteCommand";
|
|
14
15
|
import { JoinChannelCommandInput, JoinChannelCommandOutput } from "../commands/JoinChannelCommand";
|
|
15
16
|
import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "../commands/LeaveChannelCommand";
|
|
@@ -24,9 +25,9 @@ import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdju
|
|
|
24
25
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "../commands/SendGiphyCommand";
|
|
25
26
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "../commands/SendMessageCommand";
|
|
26
27
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "../commands/SendMessageReactionCommand";
|
|
27
|
-
import { SendSystemMessageCommandInput, SendSystemMessageCommandOutput } from "../commands/SendSystemMessageCommand";
|
|
28
28
|
import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "../commands/SendTypingStartCommand";
|
|
29
29
|
import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "../commands/SendTypingStopCommand";
|
|
30
|
+
import { ShowChannelCommandInput, ShowChannelCommandOutput } from "../commands/ShowChannelCommand";
|
|
30
31
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "../commands/UpdateChannelCommand";
|
|
31
32
|
import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "../commands/UpdateMessageCommand";
|
|
32
33
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
@@ -79,6 +80,10 @@ export declare const se_GetMessageCommand: (input: GetMessageCommandInput, conte
|
|
|
79
80
|
* serializeAws_restJson1GetOrCreateDirectChannelCommand
|
|
80
81
|
*/
|
|
81
82
|
export declare const se_GetOrCreateDirectChannelCommand: (input: GetOrCreateDirectChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
83
|
+
/**
|
|
84
|
+
* serializeAws_restJson1HideChannelCommand
|
|
85
|
+
*/
|
|
86
|
+
export declare const se_HideChannelCommand: (input: HideChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
82
87
|
/**
|
|
83
88
|
* serializeAws_restJson1InviteCommand
|
|
84
89
|
*/
|
|
@@ -135,10 +140,6 @@ export declare const se_SendMessageCommand: (input: SendMessageCommandInput, con
|
|
|
135
140
|
* serializeAws_restJson1SendMessageReactionCommand
|
|
136
141
|
*/
|
|
137
142
|
export declare const se_SendMessageReactionCommand: (input: SendMessageReactionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
138
|
-
/**
|
|
139
|
-
* serializeAws_restJson1SendSystemMessageCommand
|
|
140
|
-
*/
|
|
141
|
-
export declare const se_SendSystemMessageCommand: (input: SendSystemMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
142
143
|
/**
|
|
143
144
|
* serializeAws_restJson1SendTypingStartCommand
|
|
144
145
|
*/
|
|
@@ -147,6 +148,10 @@ export declare const se_SendTypingStartCommand: (input: SendTypingStartCommandIn
|
|
|
147
148
|
* serializeAws_restJson1SendTypingStopCommand
|
|
148
149
|
*/
|
|
149
150
|
export declare const se_SendTypingStopCommand: (input: SendTypingStopCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
151
|
+
/**
|
|
152
|
+
* serializeAws_restJson1ShowChannelCommand
|
|
153
|
+
*/
|
|
154
|
+
export declare const se_ShowChannelCommand: (input: ShowChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
150
155
|
/**
|
|
151
156
|
* serializeAws_restJson1UpdateChannelCommand
|
|
152
157
|
*/
|
|
@@ -203,6 +208,10 @@ export declare const de_GetMessageCommand: (output: __HttpResponse, context: __S
|
|
|
203
208
|
* deserializeAws_restJson1GetOrCreateDirectChannelCommand
|
|
204
209
|
*/
|
|
205
210
|
export declare const de_GetOrCreateDirectChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOrCreateDirectChannelCommandOutput>;
|
|
211
|
+
/**
|
|
212
|
+
* deserializeAws_restJson1HideChannelCommand
|
|
213
|
+
*/
|
|
214
|
+
export declare const de_HideChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<HideChannelCommandOutput>;
|
|
206
215
|
/**
|
|
207
216
|
* deserializeAws_restJson1InviteCommand
|
|
208
217
|
*/
|
|
@@ -259,10 +268,6 @@ export declare const de_SendMessageCommand: (output: __HttpResponse, context: __
|
|
|
259
268
|
* deserializeAws_restJson1SendMessageReactionCommand
|
|
260
269
|
*/
|
|
261
270
|
export declare const de_SendMessageReactionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendMessageReactionCommandOutput>;
|
|
262
|
-
/**
|
|
263
|
-
* deserializeAws_restJson1SendSystemMessageCommand
|
|
264
|
-
*/
|
|
265
|
-
export declare const de_SendSystemMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendSystemMessageCommandOutput>;
|
|
266
271
|
/**
|
|
267
272
|
* deserializeAws_restJson1SendTypingStartCommand
|
|
268
273
|
*/
|
|
@@ -271,6 +276,10 @@ export declare const de_SendTypingStartCommand: (output: __HttpResponse, context
|
|
|
271
276
|
* deserializeAws_restJson1SendTypingStopCommand
|
|
272
277
|
*/
|
|
273
278
|
export declare const de_SendTypingStopCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendTypingStopCommandOutput>;
|
|
279
|
+
/**
|
|
280
|
+
* deserializeAws_restJson1ShowChannelCommand
|
|
281
|
+
*/
|
|
282
|
+
export declare const de_ShowChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ShowChannelCommandOutput>;
|
|
274
283
|
/**
|
|
275
284
|
* deserializeAws_restJson1UpdateChannelCommand
|
|
276
285
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.35",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
-
import { SendSystemMessageInput, SendSystemMessageOutput } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export { __MetadataBearer, $Command };
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*
|
|
12
|
-
* The input for {@link SendSystemMessageCommand}.
|
|
13
|
-
*/
|
|
14
|
-
export interface SendSystemMessageCommandInput extends SendSystemMessageInput {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*
|
|
19
|
-
* The output of {@link SendSystemMessageCommand}.
|
|
20
|
-
*/
|
|
21
|
-
export interface SendSystemMessageCommandOutput extends SendSystemMessageOutput, __MetadataBearer {
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @public
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { ConversationsClient, SendSystemMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
-
* // const { ConversationsClient, SendSystemMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
-
* const client = new ConversationsClient(config);
|
|
32
|
-
* const input = { // SendSystemMessageInput
|
|
33
|
-
* channelId: "STRING_VALUE", // required
|
|
34
|
-
* userId: "STRING_VALUE",
|
|
35
|
-
* messageId: "STRING_VALUE",
|
|
36
|
-
* };
|
|
37
|
-
* const command = new SendSystemMessageCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* // { // SendSystemMessageOutput
|
|
40
|
-
* // message: { // Message
|
|
41
|
-
* // text: "STRING_VALUE",
|
|
42
|
-
* // attachments: [ // MessageAttachmentList
|
|
43
|
-
* // { // MessageAttachment
|
|
44
|
-
* // id: "STRING_VALUE", // required
|
|
45
|
-
* // fsId: "STRING_VALUE", // required
|
|
46
|
-
* // mime: "STRING_VALUE",
|
|
47
|
-
* // name: "STRING_VALUE", // required
|
|
48
|
-
* // size: Number("int"), // required
|
|
49
|
-
* // width: Number("int"),
|
|
50
|
-
* // height: Number("int"),
|
|
51
|
-
* // thumbnail: "STRING_VALUE",
|
|
52
|
-
* // },
|
|
53
|
-
* // ],
|
|
54
|
-
* // quote: {
|
|
55
|
-
* // text: "STRING_VALUE",
|
|
56
|
-
* // attachments: [
|
|
57
|
-
* // {
|
|
58
|
-
* // id: "STRING_VALUE", // required
|
|
59
|
-
* // fsId: "STRING_VALUE", // required
|
|
60
|
-
* // mime: "STRING_VALUE",
|
|
61
|
-
* // name: "STRING_VALUE", // required
|
|
62
|
-
* // size: Number("int"), // required
|
|
63
|
-
* // width: Number("int"),
|
|
64
|
-
* // height: Number("int"),
|
|
65
|
-
* // thumbnail: "STRING_VALUE",
|
|
66
|
-
* // },
|
|
67
|
-
* // ],
|
|
68
|
-
* // quote: "<Message>",
|
|
69
|
-
* // forward: { // MessageForward
|
|
70
|
-
* // forwardCompany: "STRING_VALUE",
|
|
71
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
72
|
-
* // forwardEmail: "STRING_VALUE",
|
|
73
|
-
* // forwardName: "STRING_VALUE",
|
|
74
|
-
* // },
|
|
75
|
-
* // type: "regular", // required
|
|
76
|
-
* // giphy: { // MessageGiphy
|
|
77
|
-
* // id: "STRING_VALUE",
|
|
78
|
-
* // size: "STRING_VALUE",
|
|
79
|
-
* // url: "STRING_VALUE",
|
|
80
|
-
* // height: "STRING_VALUE",
|
|
81
|
-
* // width: "STRING_VALUE",
|
|
82
|
-
* // },
|
|
83
|
-
* // silent: true || false,
|
|
84
|
-
* // event: "STRING_VALUE",
|
|
85
|
-
* // sms: true || false,
|
|
86
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
87
|
-
* // messageId: "STRING_VALUE", // required
|
|
88
|
-
* // channelId: "STRING_VALUE", // required
|
|
89
|
-
* // user: { // User
|
|
90
|
-
* // id: "STRING_VALUE", // required
|
|
91
|
-
* // name: "STRING_VALUE",
|
|
92
|
-
* // email: "STRING_VALUE",
|
|
93
|
-
* // phone: "STRING_VALUE",
|
|
94
|
-
* // picture: "STRING_VALUE",
|
|
95
|
-
* // company: "STRING_VALUE",
|
|
96
|
-
* // pbxDomain: "STRING_VALUE",
|
|
97
|
-
* // pbxPort: "STRING_VALUE",
|
|
98
|
-
* // pbxExtension: "STRING_VALUE",
|
|
99
|
-
* // pbxSerial: "STRING_VALUE",
|
|
100
|
-
* // pbxUserId: "STRING_VALUE",
|
|
101
|
-
* // createdAt: "STRING_VALUE",
|
|
102
|
-
* // updatedAt: "STRING_VALUE",
|
|
103
|
-
* // },
|
|
104
|
-
* // edit: true || false,
|
|
105
|
-
* // mentions: [ // UsersList
|
|
106
|
-
* // {
|
|
107
|
-
* // id: "STRING_VALUE", // required
|
|
108
|
-
* // name: "STRING_VALUE",
|
|
109
|
-
* // email: "STRING_VALUE",
|
|
110
|
-
* // phone: "STRING_VALUE",
|
|
111
|
-
* // picture: "STRING_VALUE",
|
|
112
|
-
* // company: "STRING_VALUE",
|
|
113
|
-
* // pbxDomain: "STRING_VALUE",
|
|
114
|
-
* // pbxPort: "STRING_VALUE",
|
|
115
|
-
* // pbxExtension: "STRING_VALUE",
|
|
116
|
-
* // pbxSerial: "STRING_VALUE",
|
|
117
|
-
* // pbxUserId: "STRING_VALUE",
|
|
118
|
-
* // createdAt: "STRING_VALUE",
|
|
119
|
-
* // updatedAt: "STRING_VALUE",
|
|
120
|
-
* // },
|
|
121
|
-
* // ],
|
|
122
|
-
* // latestReactions: [ // ReactionList
|
|
123
|
-
* // { // Reaction
|
|
124
|
-
* // type: "STRING_VALUE",
|
|
125
|
-
* // userId: "STRING_VALUE",
|
|
126
|
-
* // messageId: "STRING_VALUE",
|
|
127
|
-
* // user: "<User>",
|
|
128
|
-
* // },
|
|
129
|
-
* // ],
|
|
130
|
-
* // reactionCounts: { // ReactionCounts
|
|
131
|
-
* // "<keys>": Number("int"),
|
|
132
|
-
* // },
|
|
133
|
-
* // createdAt: "STRING_VALUE", // required
|
|
134
|
-
* // updatedAt: "STRING_VALUE",
|
|
135
|
-
* // },
|
|
136
|
-
* // forward: {
|
|
137
|
-
* // forwardCompany: "STRING_VALUE",
|
|
138
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
139
|
-
* // forwardEmail: "STRING_VALUE",
|
|
140
|
-
* // forwardName: "STRING_VALUE",
|
|
141
|
-
* // },
|
|
142
|
-
* // type: "regular", // required
|
|
143
|
-
* // giphy: {
|
|
144
|
-
* // id: "STRING_VALUE",
|
|
145
|
-
* // size: "STRING_VALUE",
|
|
146
|
-
* // url: "STRING_VALUE",
|
|
147
|
-
* // height: "STRING_VALUE",
|
|
148
|
-
* // width: "STRING_VALUE",
|
|
149
|
-
* // },
|
|
150
|
-
* // silent: true || false,
|
|
151
|
-
* // event: "STRING_VALUE",
|
|
152
|
-
* // sms: true || false,
|
|
153
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
154
|
-
* // messageId: "STRING_VALUE", // required
|
|
155
|
-
* // channelId: "STRING_VALUE", // required
|
|
156
|
-
* // user: "<User>", // required
|
|
157
|
-
* // edit: true || false,
|
|
158
|
-
* // mentions: [
|
|
159
|
-
* // "<User>",
|
|
160
|
-
* // ],
|
|
161
|
-
* // latestReactions: [
|
|
162
|
-
* // {
|
|
163
|
-
* // type: "STRING_VALUE",
|
|
164
|
-
* // userId: "STRING_VALUE",
|
|
165
|
-
* // messageId: "STRING_VALUE",
|
|
166
|
-
* // user: "<User>",
|
|
167
|
-
* // },
|
|
168
|
-
* // ],
|
|
169
|
-
* // reactionCounts: {
|
|
170
|
-
* // "<keys>": Number("int"),
|
|
171
|
-
* // },
|
|
172
|
-
* // createdAt: "STRING_VALUE", // required
|
|
173
|
-
* // updatedAt: "STRING_VALUE",
|
|
174
|
-
* // },
|
|
175
|
-
* // };
|
|
176
|
-
*
|
|
177
|
-
* ```
|
|
178
|
-
*
|
|
179
|
-
* @param SendSystemMessageCommandInput - {@link SendSystemMessageCommandInput}
|
|
180
|
-
* @returns {@link SendSystemMessageCommandOutput}
|
|
181
|
-
* @see {@link SendSystemMessageCommandInput} for command's `input` shape.
|
|
182
|
-
* @see {@link SendSystemMessageCommandOutput} for command's `response` shape.
|
|
183
|
-
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
184
|
-
*
|
|
185
|
-
* @throws {@link ChannelNotFoundException} (client fault)
|
|
186
|
-
*
|
|
187
|
-
* @throws {@link ValidationException} (client fault)
|
|
188
|
-
*
|
|
189
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
190
|
-
*
|
|
191
|
-
* @throws {@link ConversationsServiceException}
|
|
192
|
-
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
195
|
-
export declare class SendSystemMessageCommand extends $Command<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, ConversationsClientResolvedConfig> {
|
|
196
|
-
readonly input: SendSystemMessageCommandInput;
|
|
197
|
-
/**
|
|
198
|
-
* @public
|
|
199
|
-
*/
|
|
200
|
-
constructor(input: SendSystemMessageCommandInput);
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendSystemMessageCommandInput, SendSystemMessageCommandOutput>;
|
|
205
|
-
/**
|
|
206
|
-
* @internal
|
|
207
|
-
*/
|
|
208
|
-
private serialize;
|
|
209
|
-
/**
|
|
210
|
-
* @internal
|
|
211
|
-
*/
|
|
212
|
-
private deserialize;
|
|
213
|
-
}
|