@wildix/xbees-conversations-client 1.0.32 → 1.0.34

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.
Files changed (30) hide show
  1. package/dist-cjs/Conversations.js +6 -4
  2. package/dist-cjs/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +7 -7
  3. package/dist-cjs/commands/ListMessageReactionsCommand.js +41 -0
  4. package/dist-cjs/commands/{GetMessageReactionsCommand.js → ShowChannelCommand.js} +7 -7
  5. package/dist-cjs/commands/index.js +3 -2
  6. package/dist-cjs/protocols/Aws_restJson1.js +138 -135
  7. package/dist-es/Conversations.js +6 -4
  8. package/dist-es/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +6 -6
  9. package/dist-es/commands/ListMessageReactionsCommand.js +37 -0
  10. package/dist-es/commands/{GetMessageReactionsCommand.js → ShowChannelCommand.js} +6 -6
  11. package/dist-es/commands/index.js +3 -2
  12. package/dist-es/protocols/Aws_restJson1.js +125 -124
  13. package/dist-types/Conversations.d.ts +21 -14
  14. package/dist-types/ConversationsClient.d.ts +5 -4
  15. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
  16. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
  17. package/dist-types/commands/GetMessageCommand.d.ts +29 -47
  18. package/dist-types/commands/HideChannelCommand.d.ts +140 -0
  19. package/dist-types/commands/{GetMessageReactionsCommand.d.ts → ListMessageReactionsCommand.d.ts} +18 -18
  20. package/dist-types/commands/ListMessagesCommand.d.ts +31 -47
  21. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +65 -138
  22. package/dist-types/commands/SendGiphyCommand.d.ts +29 -47
  23. package/dist-types/commands/SendMessageCommand.d.ts +65 -138
  24. package/dist-types/commands/ShowChannelCommand.d.ts +140 -0
  25. package/dist-types/commands/UpdateMessageCommand.d.ts +65 -138
  26. package/dist-types/commands/index.d.ts +3 -2
  27. package/dist-types/models/models_0.d.ts +150 -119
  28. package/dist-types/protocols/Aws_restJson1.d.ts +27 -18
  29. package/package.json +1 -1
  30. package/dist-types/commands/SendSystemMessageCommand.d.ts +0 -213
@@ -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
  }
@@ -464,7 +474,7 @@ export interface MessageAttachment {
464
474
  */
465
475
  fsId: string;
466
476
  mime?: string;
467
- name?: string;
477
+ name: string;
468
478
  size: number;
469
479
  width?: number;
470
480
  height?: number;
@@ -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
@@ -526,17 +551,32 @@ export type MessageType = typeof MessageType[keyof typeof MessageType];
526
551
  /**
527
552
  * @public
528
553
  */
529
- export interface GetMessageReactionsInput {
530
- channelId: string;
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;
531
565
  messageId: string;
532
- limit?: number;
533
- offset?: number;
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;
534
574
  }
535
575
  /**
536
576
  * @public
537
577
  */
538
- export interface GetMessageReactionsOutput {
539
- reactions: (Reaction)[];
578
+ export interface GetMessageOutput {
579
+ message?: Message;
540
580
  }
541
581
  /**
542
582
  * @public
@@ -552,6 +592,19 @@ export interface GetOrCreateDirectChannelInput {
552
592
  export interface GetOrCreateDirectChannelOutput {
553
593
  channel: Channel;
554
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
+ }
555
608
  /**
556
609
  * @public
557
610
  */
@@ -628,11 +681,34 @@ export interface ListChannelsInput {
628
681
  export interface ListChannelsOutput {
629
682
  channels: (Channel)[];
630
683
  }
684
+ /**
685
+ * @public
686
+ */
687
+ export interface ListMessageReactionsInput {
688
+ channelId: string;
689
+ messageId: string;
690
+ limit?: number;
691
+ offset?: number;
692
+ }
693
+ /**
694
+ * @public
695
+ */
696
+ export interface ListMessageReactionsOutput {
697
+ reactions: (Reaction)[];
698
+ }
631
699
  /**
632
700
  * @public
633
701
  */
634
702
  export interface ListMessagesInput {
635
703
  channelId: string;
704
+ limit?: number;
705
+ offset?: number;
706
+ }
707
+ /**
708
+ * @public
709
+ */
710
+ export interface ListMessagesOutput {
711
+ messages?: (Message)[];
636
712
  }
637
713
  /**
638
714
  * @public
@@ -696,6 +772,15 @@ export interface PartialUpdateChannelInput {
696
772
  export interface PartialUpdateChannelOutput {
697
773
  channel: Channel;
698
774
  }
775
+ /**
776
+ * @public
777
+ */
778
+ export interface PartialUpdateMessageSetInput {
779
+ text?: string;
780
+ attachments?: (MessageAttachment)[];
781
+ quote?: MessageQuote;
782
+ forward?: MessageForward;
783
+ }
699
784
  /**
700
785
  * @public
701
786
  * @enum
@@ -710,6 +795,21 @@ export declare const MessageUnsetFields: {
710
795
  * @public
711
796
  */
712
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
+ }
713
813
  /**
714
814
  * @public
715
815
  */
@@ -756,40 +856,57 @@ export interface SendGiphyInput {
756
856
  /**
757
857
  * @public
758
858
  */
759
- export interface SendMessageReactionInput {
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;
760
870
  channelId: string;
761
- messageId: string;
762
871
  /**
763
872
  * @public
764
- * Type of the reaction. User could have only 1 reaction of each type per message.
873
+ * User ID for server side calls
765
874
  */
766
- reactionType: ReactionType | string;
875
+ userId?: string;
767
876
  /**
768
877
  * @public
769
- * User ID for server side calls
878
+ * Message ID if empty ID will be auto-generated.
770
879
  */
771
- userId?: string;
880
+ messageId?: string;
881
+ mentions?: (string)[];
772
882
  }
773
883
  /**
774
884
  * @public
775
885
  */
776
- export interface SendMessageReactionOutput {
886
+ export interface SendMessageOutput {
887
+ message?: Message;
777
888
  }
778
889
  /**
779
890
  * @public
780
891
  */
781
- export interface SendSystemMessageInput {
892
+ export interface SendMessageReactionInput {
782
893
  channelId: string;
894
+ messageId: string;
783
895
  /**
784
896
  * @public
785
- * User ID for server side calls
897
+ * Type of the reaction. User could have only 1 reaction of each type per message.
786
898
  */
787
- userId?: string;
899
+ reactionType: ReactionType | string;
788
900
  /**
789
901
  * @public
790
- * Message ID if empty ID will be auto-generated.
902
+ * User ID for server side calls
791
903
  */
792
- messageId?: string;
904
+ userId?: string;
905
+ }
906
+ /**
907
+ * @public
908
+ */
909
+ export interface SendMessageReactionOutput {
793
910
  }
794
911
  /**
795
912
  * @public
@@ -815,6 +932,19 @@ export interface SendTypingStopInput {
815
932
  */
816
933
  export interface SendTypingStopOutput {
817
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
+ }
818
948
  /**
819
949
  * @public
820
950
  */
@@ -842,97 +972,13 @@ export interface UpdateChannelInput {
842
972
  export interface UpdateChannelOutput {
843
973
  channel: Channel;
844
974
  }
845
- /**
846
- * @public
847
- */
848
- export interface Message {
849
- text?: string;
850
- attachments?: (MessageAttachment)[];
851
- quote?: Message;
852
- forward?: MessageForward;
853
- type: MessageType | string;
854
- giphy?: MessageGiphy;
855
- silent?: boolean;
856
- event?: string;
857
- sms?: boolean;
858
- smsStatus?: MessageSmsStatus | string;
859
- messageId: string;
860
- channelId: string;
861
- user: User;
862
- edit?: boolean;
863
- mentions?: (User)[];
864
- latestReactions?: (Reaction)[];
865
- reactionCounts?: Record<string, number>;
866
- createdAt: string;
867
- updatedAt?: string;
868
- }
869
- /**
870
- * @public
871
- */
872
- export interface GetMessageOutput {
873
- message?: Message;
874
- }
875
- /**
876
- * @public
877
- */
878
- export interface PartialUpdateMessageOutput {
879
- message?: Message;
880
- }
881
- /**
882
- * @public
883
- */
884
- export interface PartialUpdateMessageSetInput {
885
- text?: string;
886
- attachments?: (MessageAttachment)[];
887
- quote?: Message;
888
- forward?: MessageForward;
889
- }
890
- /**
891
- * @public
892
- */
893
- export interface SendGiphyOutput {
894
- message?: Message;
895
- }
896
- /**
897
- * @public
898
- */
899
- export interface SendMessageInput {
900
- text?: string;
901
- attachments?: (MessageAttachment)[];
902
- quote?: Message;
903
- forward?: MessageForward;
904
- channelId: string;
905
- /**
906
- * @public
907
- * User ID for server side calls
908
- */
909
- userId?: string;
910
- /**
911
- * @public
912
- * Message ID if empty ID will be auto-generated.
913
- */
914
- messageId?: string;
915
- mentions?: (string)[];
916
- }
917
- /**
918
- * @public
919
- */
920
- export interface SendMessageOutput {
921
- message?: Message;
922
- }
923
- /**
924
- * @public
925
- */
926
- export interface SendSystemMessageOutput {
927
- message?: Message;
928
- }
929
975
  /**
930
976
  * @public
931
977
  */
932
978
  export interface UpdateMessageInput {
933
979
  text?: string;
934
980
  attachments?: (MessageAttachment)[];
935
- quote?: Message;
981
+ quote?: MessageQuote;
936
982
  forward?: MessageForward;
937
983
  channelId: string;
938
984
  messageId: string;
@@ -944,18 +990,3 @@ export interface UpdateMessageInput {
944
990
  export interface UpdateMessageOutput {
945
991
  message?: Message;
946
992
  }
947
- /**
948
- * @public
949
- */
950
- export interface ListMessagesOutput {
951
- messages?: (Message)[];
952
- }
953
- /**
954
- * @public
955
- */
956
- export interface PartialUpdateMessageInput {
957
- channelId: string;
958
- messageId: string;
959
- set?: PartialUpdateMessageSetInput;
960
- unset?: (MessageUnsetFields | string)[];
961
- }
@@ -9,13 +9,14 @@ import { GetChannelCommandInput, GetChannelCommandOutput } from "../commands/Get
9
9
  import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "../commands/GetChannelMemberCommand";
10
10
  import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "../commands/GetDirectChannelIdCommand";
11
11
  import { GetMessageCommandInput, GetMessageCommandOutput } from "../commands/GetMessageCommand";
12
- import { GetMessageReactionsCommandInput, GetMessageReactionsCommandOutput } from "../commands/GetMessageReactionsCommand";
13
12
  import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "../commands/GetOrCreateDirectChannelCommand";
13
+ import { HideChannelCommandInput, HideChannelCommandOutput } from "../commands/HideChannelCommand";
14
14
  import { InviteCommandInput, InviteCommandOutput } from "../commands/InviteCommand";
15
15
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "../commands/JoinChannelCommand";
16
16
  import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "../commands/LeaveChannelCommand";
17
17
  import { ListChannelMembersCommandInput, ListChannelMembersCommandOutput } from "../commands/ListChannelMembersCommand";
18
18
  import { ListChannelsCommandInput, ListChannelsCommandOutput } from "../commands/ListChannelsCommand";
19
+ import { ListMessageReactionsCommandInput, ListMessageReactionsCommandOutput } from "../commands/ListMessageReactionsCommand";
19
20
  import { ListMessagesCommandInput, ListMessagesCommandOutput } from "../commands/ListMessagesCommand";
20
21
  import { MarkReadCommandInput, MarkReadCommandOutput } from "../commands/MarkReadCommand";
21
22
  import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "../commands/PartialUpdateChannelCommand";
@@ -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";
@@ -75,14 +76,14 @@ export declare const se_GetDirectChannelIdCommand: (input: GetDirectChannelIdCom
75
76
  * serializeAws_restJson1GetMessageCommand
76
77
  */
77
78
  export declare const se_GetMessageCommand: (input: GetMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
- /**
79
- * serializeAws_restJson1GetMessageReactionsCommand
80
- */
81
- export declare const se_GetMessageReactionsCommand: (input: GetMessageReactionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
82
79
  /**
83
80
  * serializeAws_restJson1GetOrCreateDirectChannelCommand
84
81
  */
85
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>;
86
87
  /**
87
88
  * serializeAws_restJson1InviteCommand
88
89
  */
@@ -103,6 +104,10 @@ export declare const se_ListChannelMembersCommand: (input: ListChannelMembersCom
103
104
  * serializeAws_restJson1ListChannelsCommand
104
105
  */
105
106
  export declare const se_ListChannelsCommand: (input: ListChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
107
+ /**
108
+ * serializeAws_restJson1ListMessageReactionsCommand
109
+ */
110
+ export declare const se_ListMessageReactionsCommand: (input: ListMessageReactionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
106
111
  /**
107
112
  * serializeAws_restJson1ListMessagesCommand
108
113
  */
@@ -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
  */
@@ -199,14 +204,14 @@ export declare const de_GetDirectChannelIdCommand: (output: __HttpResponse, cont
199
204
  * deserializeAws_restJson1GetMessageCommand
200
205
  */
201
206
  export declare const de_GetMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMessageCommandOutput>;
202
- /**
203
- * deserializeAws_restJson1GetMessageReactionsCommand
204
- */
205
- export declare const de_GetMessageReactionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMessageReactionsCommandOutput>;
206
207
  /**
207
208
  * deserializeAws_restJson1GetOrCreateDirectChannelCommand
208
209
  */
209
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>;
210
215
  /**
211
216
  * deserializeAws_restJson1InviteCommand
212
217
  */
@@ -227,6 +232,10 @@ export declare const de_ListChannelMembersCommand: (output: __HttpResponse, cont
227
232
  * deserializeAws_restJson1ListChannelsCommand
228
233
  */
229
234
  export declare const de_ListChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelsCommandOutput>;
235
+ /**
236
+ * deserializeAws_restJson1ListMessageReactionsCommand
237
+ */
238
+ export declare const de_ListMessageReactionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListMessageReactionsCommandOutput>;
230
239
  /**
231
240
  * deserializeAws_restJson1ListMessagesCommand
232
241
  */
@@ -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.32",
4
+ "version": "1.0.34",
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",