@wildix/xbees-conversations-client 1.0.30 → 1.0.31

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 (80) hide show
  1. package/dist-cjs/Conversations.js +36 -4
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
  4. package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
  6. package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
  7. package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
  8. package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
  9. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
  10. package/dist-cjs/commands/InviteCommand.js +41 -0
  11. package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
  12. package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
  13. package/dist-cjs/commands/MarkReadCommand.js +41 -0
  14. package/dist-cjs/commands/SendGiphyCommand.js +41 -0
  15. package/dist-cjs/commands/SendMessageCommand.js +41 -0
  16. package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
  17. package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
  18. package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
  19. package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
  20. package/dist-cjs/commands/index.js +18 -2
  21. package/dist-cjs/models/models_0.js +71 -52
  22. package/dist-cjs/protocols/Aws_restJson1.js +1204 -145
  23. package/dist-es/Conversations.js +36 -4
  24. package/dist-es/commands/AddChannelMemberCommand.js +37 -0
  25. package/dist-es/commands/AddChannelMembersCommand.js +37 -0
  26. package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
  27. package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
  28. package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
  29. package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
  30. package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
  31. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
  32. package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
  33. package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
  34. package/dist-es/commands/ListChannelMembersCommand.js +37 -0
  35. package/dist-es/commands/MarkReadCommand.js +37 -0
  36. package/dist-es/commands/SendGiphyCommand.js +37 -0
  37. package/dist-es/commands/SendMessageCommand.js +37 -0
  38. package/dist-es/commands/SendMessageReactionCommand.js +37 -0
  39. package/dist-es/commands/SendSystemMessageCommand.js +37 -0
  40. package/dist-es/commands/SendTypingStartCommand.js +37 -0
  41. package/dist-es/commands/SendTypingStopCommand.js +37 -0
  42. package/dist-es/commands/index.js +18 -2
  43. package/dist-es/models/models_0.js +67 -50
  44. package/dist-es/protocols/Aws_restJson1.js +1174 -148
  45. package/dist-types/Conversations.d.ts +122 -10
  46. package/dist-types/ConversationsClient.d.ts +20 -4
  47. package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
  48. package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
  49. package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
  50. package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
  51. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
  52. package/dist-types/commands/DeleteMessageCommand.d.ts +2 -0
  53. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
  54. package/dist-types/commands/GetChannelCommand.d.ts +2 -0
  55. package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
  56. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
  57. package/dist-types/commands/GetMessageCommand.d.ts +23 -21
  58. package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
  59. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
  60. package/dist-types/commands/InviteCommand.d.ts +98 -0
  61. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  62. package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
  63. package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
  64. package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
  65. package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
  66. package/dist-types/commands/MarkReadCommand.d.ts +76 -0
  67. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
  68. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
  69. package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
  70. package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
  71. package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
  72. package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
  73. package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
  74. package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
  75. package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
  76. package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
  77. package/dist-types/commands/index.d.ts +18 -2
  78. package/dist-types/models/models_0.d.ts +450 -172
  79. package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
  80. package/package.json +1 -1
@@ -30,16 +30,23 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
30
30
  * // const { ConversationsClient, UpdateMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // UpdateMessageInput
33
- * channelId: "STRING_VALUE", // required
34
- * messageId: "STRING_VALUE", // required
35
- * userId: "STRING_VALUE",
36
- * message: { // MessageUpdateFields
37
- * type: "regular", // required
33
+ * text: "STRING_VALUE",
34
+ * attachments: [ // MessageAttachmentList
35
+ * { // MessageAttachment
36
+ * id: "STRING_VALUE", // required
37
+ * fsId: "STRING_VALUE", // required
38
+ * mime: "STRING_VALUE",
39
+ * name: "STRING_VALUE",
40
+ * size: Number("int"), // required
41
+ * width: Number("int"),
42
+ * height: Number("int"),
43
+ * thumbnail: "STRING_VALUE",
44
+ * },
45
+ * ],
46
+ * quote: { // Message
38
47
  * text: "STRING_VALUE",
39
- * silent: true || false,
40
- * event: "STRING_VALUE",
41
- * attachments: [ // MessageAttachmentList
42
- * { // MessageAttachment
48
+ * attachments: [
49
+ * {
43
50
  * id: "STRING_VALUE", // required
44
51
  * fsId: "STRING_VALUE", // required
45
52
  * mime: "STRING_VALUE",
@@ -50,56 +57,48 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
50
57
  * thumbnail: "STRING_VALUE",
51
58
  * },
52
59
  * ],
53
- * giphy: { // MessageGiphy
54
- * id: "STRING_VALUE",
55
- * size: "STRING_VALUE",
56
- * url: "STRING_VALUE",
57
- * height: "STRING_VALUE",
58
- * width: "STRING_VALUE",
59
- * },
60
- * quote: { // Message
61
- * type: "regular", // required
60
+ * quote: {
62
61
  * text: "STRING_VALUE",
63
- * silent: true || false,
64
- * event: "STRING_VALUE",
65
- * attachments: [
66
- * {
67
- * id: "STRING_VALUE", // required
68
- * fsId: "STRING_VALUE", // required
69
- * mime: "STRING_VALUE",
70
- * name: "STRING_VALUE",
71
- * size: Number("int"), // required
72
- * width: Number("int"),
73
- * height: Number("int"),
74
- * thumbnail: "STRING_VALUE",
75
- * },
76
- * ],
77
- * giphy: {
62
+ * attachments: "<MessageAttachmentList>",
63
+ * quote: "<Message>",
64
+ * forward: { // MessageForward
65
+ * forwardCompany: "STRING_VALUE",
66
+ * forwardDate: "STRING_VALUE", // required
67
+ * forwardEmail: "STRING_VALUE",
68
+ * forwardName: "STRING_VALUE",
69
+ * },
70
+ * type: "regular", // required
71
+ * giphy: { // MessageGiphy
78
72
  * id: "STRING_VALUE",
79
73
  * size: "STRING_VALUE",
80
74
  * url: "STRING_VALUE",
81
75
  * height: "STRING_VALUE",
82
76
  * width: "STRING_VALUE",
83
77
  * },
84
- * quote: {
85
- * type: "regular", // required
86
- * text: "STRING_VALUE",
87
- * silent: true || false,
88
- * event: "STRING_VALUE",
89
- * attachments: "<MessageAttachmentList>",
90
- * giphy: "<MessageGiphy>",
91
- * quote: "<Message>",
92
- * forward: { // MessageForward
93
- * forwardCompany: "STRING_VALUE",
94
- * forwardDate: "STRING_VALUE", // required
95
- * forwardEmail: "STRING_VALUE",
96
- * forwardName: "STRING_VALUE",
97
- * },
98
- * sms: true || false,
99
- * smsStatus: "sent" || "delivered" || "trying" || "error",
100
- * messageId: "STRING_VALUE", // required
101
- * channelId: "STRING_VALUE", // required
102
- * user: { // User
78
+ * silent: true || false,
79
+ * event: "STRING_VALUE",
80
+ * sms: true || false,
81
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
82
+ * messageId: "STRING_VALUE", // required
83
+ * channelId: "STRING_VALUE", // required
84
+ * user: { // User
85
+ * id: "STRING_VALUE", // required
86
+ * name: "STRING_VALUE",
87
+ * email: "STRING_VALUE",
88
+ * phone: "STRING_VALUE",
89
+ * picture: "STRING_VALUE",
90
+ * company: "STRING_VALUE",
91
+ * pbxDomain: "STRING_VALUE",
92
+ * pbxPort: "STRING_VALUE",
93
+ * pbxExtension: "STRING_VALUE",
94
+ * pbxSerial: "STRING_VALUE",
95
+ * pbxUserId: "STRING_VALUE",
96
+ * createdAt: "STRING_VALUE",
97
+ * updatedAt: "STRING_VALUE",
98
+ * },
99
+ * edit: true || false,
100
+ * mentions: [ // UsersList
101
+ * {
103
102
  * id: "STRING_VALUE", // required
104
103
  * name: "STRING_VALUE",
105
104
  * email: "STRING_VALUE",
@@ -114,83 +113,72 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
114
113
  * createdAt: "STRING_VALUE",
115
114
  * updatedAt: "STRING_VALUE",
116
115
  * },
117
- * edit: true || false,
118
- * mentions: [ // UserList
119
- * {
120
- * id: "STRING_VALUE", // required
121
- * name: "STRING_VALUE",
122
- * email: "STRING_VALUE",
123
- * phone: "STRING_VALUE",
124
- * picture: "STRING_VALUE",
125
- * company: "STRING_VALUE",
126
- * pbxDomain: "STRING_VALUE",
127
- * pbxPort: "STRING_VALUE",
128
- * pbxExtension: "STRING_VALUE",
129
- * pbxSerial: "STRING_VALUE",
130
- * pbxUserId: "STRING_VALUE",
131
- * createdAt: "STRING_VALUE",
132
- * updatedAt: "STRING_VALUE",
133
- * },
134
- * ],
135
- * latestReactions: [ // ReactionList
136
- * { // Reaction
137
- * type: "STRING_VALUE",
138
- * userId: "STRING_VALUE",
139
- * messageId: "STRING_VALUE",
140
- * user: "<User>",
141
- * },
142
- * ],
143
- * reactionCounts: { // ReactionCounts
144
- * "<keys>": Number("int"),
145
- * },
146
- * createdAt: "STRING_VALUE", // required
147
- * updatedAt: "STRING_VALUE",
148
- * },
149
- * forward: {
150
- * forwardCompany: "STRING_VALUE",
151
- * forwardDate: "STRING_VALUE", // required
152
- * forwardEmail: "STRING_VALUE",
153
- * forwardName: "STRING_VALUE",
154
- * },
155
- * sms: true || false,
156
- * smsStatus: "sent" || "delivered" || "trying" || "error",
157
- * messageId: "STRING_VALUE", // required
158
- * channelId: "STRING_VALUE", // required
159
- * user: "<User>", // required
160
- * edit: true || false,
161
- * mentions: [
162
- * "<User>",
163
116
  * ],
164
- * latestReactions: [
165
- * {
117
+ * latestReactions: [ // ReactionList
118
+ * { // Reaction
166
119
  * type: "STRING_VALUE",
167
120
  * userId: "STRING_VALUE",
168
121
  * messageId: "STRING_VALUE",
169
122
  * user: "<User>",
170
123
  * },
171
124
  * ],
172
- * reactionCounts: {
125
+ * reactionCounts: { // ReactionCounts
173
126
  * "<keys>": Number("int"),
174
127
  * },
175
128
  * createdAt: "STRING_VALUE", // required
176
129
  * updatedAt: "STRING_VALUE",
177
130
  * },
178
- * forward: "<MessageForward>",
131
+ * forward: {
132
+ * forwardCompany: "STRING_VALUE",
133
+ * forwardDate: "STRING_VALUE", // required
134
+ * forwardEmail: "STRING_VALUE",
135
+ * forwardName: "STRING_VALUE",
136
+ * },
137
+ * type: "regular", // required
138
+ * giphy: {
139
+ * id: "STRING_VALUE",
140
+ * size: "STRING_VALUE",
141
+ * url: "STRING_VALUE",
142
+ * height: "STRING_VALUE",
143
+ * width: "STRING_VALUE",
144
+ * },
145
+ * silent: true || false,
146
+ * event: "STRING_VALUE",
179
147
  * sms: true || false,
180
148
  * smsStatus: "sent" || "delivered" || "trying" || "error",
181
- * mentions: [ // MessageCreateMentionsList
182
- * "STRING_VALUE",
149
+ * messageId: "STRING_VALUE", // required
150
+ * channelId: "STRING_VALUE", // required
151
+ * user: "<User>", // required
152
+ * edit: true || false,
153
+ * mentions: [
154
+ * "<User>",
183
155
  * ],
156
+ * latestReactions: [
157
+ * {
158
+ * type: "STRING_VALUE",
159
+ * userId: "STRING_VALUE",
160
+ * messageId: "STRING_VALUE",
161
+ * user: "<User>",
162
+ * },
163
+ * ],
164
+ * reactionCounts: {
165
+ * "<keys>": Number("int"),
166
+ * },
167
+ * createdAt: "STRING_VALUE", // required
168
+ * updatedAt: "STRING_VALUE",
184
169
  * },
170
+ * forward: "<MessageForward>",
171
+ * channelId: "STRING_VALUE", // required
172
+ * messageId: "STRING_VALUE", // required
173
+ * mentions: [ // UsersIdList
174
+ * "STRING_VALUE",
175
+ * ],
185
176
  * };
186
177
  * const command = new UpdateMessageCommand(input);
187
178
  * const response = await client.send(command);
188
179
  * // { // UpdateMessageOutput
189
180
  * // message: { // Message
190
- * // type: "regular", // required
191
181
  * // text: "STRING_VALUE",
192
- * // silent: true || false,
193
- * // event: "STRING_VALUE",
194
182
  * // attachments: [ // MessageAttachmentList
195
183
  * // { // MessageAttachment
196
184
  * // id: "STRING_VALUE", // required
@@ -203,18 +191,8 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
203
191
  * // thumbnail: "STRING_VALUE",
204
192
  * // },
205
193
  * // ],
206
- * // giphy: { // MessageGiphy
207
- * // id: "STRING_VALUE",
208
- * // size: "STRING_VALUE",
209
- * // url: "STRING_VALUE",
210
- * // height: "STRING_VALUE",
211
- * // width: "STRING_VALUE",
212
- * // },
213
194
  * // quote: {
214
- * // type: "regular", // required
215
195
  * // text: "STRING_VALUE",
216
- * // silent: true || false,
217
- * // event: "STRING_VALUE",
218
196
  * // attachments: [
219
197
  * // {
220
198
  * // id: "STRING_VALUE", // required
@@ -227,13 +205,6 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
227
205
  * // thumbnail: "STRING_VALUE",
228
206
  * // },
229
207
  * // ],
230
- * // giphy: {
231
- * // id: "STRING_VALUE",
232
- * // size: "STRING_VALUE",
233
- * // url: "STRING_VALUE",
234
- * // height: "STRING_VALUE",
235
- * // width: "STRING_VALUE",
236
- * // },
237
208
  * // quote: "<Message>",
238
209
  * // forward: { // MessageForward
239
210
  * // forwardCompany: "STRING_VALUE",
@@ -241,6 +212,16 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
241
212
  * // forwardEmail: "STRING_VALUE",
242
213
  * // forwardName: "STRING_VALUE",
243
214
  * // },
215
+ * // type: "regular", // required
216
+ * // giphy: { // MessageGiphy
217
+ * // id: "STRING_VALUE",
218
+ * // size: "STRING_VALUE",
219
+ * // url: "STRING_VALUE",
220
+ * // height: "STRING_VALUE",
221
+ * // width: "STRING_VALUE",
222
+ * // },
223
+ * // silent: true || false,
224
+ * // event: "STRING_VALUE",
244
225
  * // sms: true || false,
245
226
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
246
227
  * // messageId: "STRING_VALUE", // required
@@ -261,7 +242,7 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
261
242
  * // updatedAt: "STRING_VALUE",
262
243
  * // },
263
244
  * // edit: true || false,
264
- * // mentions: [ // UserList
245
+ * // mentions: [ // UsersList
265
246
  * // {
266
247
  * // id: "STRING_VALUE", // required
267
248
  * // name: "STRING_VALUE",
@@ -298,6 +279,16 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
298
279
  * // forwardEmail: "STRING_VALUE",
299
280
  * // forwardName: "STRING_VALUE",
300
281
  * // },
282
+ * // type: "regular", // required
283
+ * // giphy: {
284
+ * // id: "STRING_VALUE",
285
+ * // size: "STRING_VALUE",
286
+ * // url: "STRING_VALUE",
287
+ * // height: "STRING_VALUE",
288
+ * // width: "STRING_VALUE",
289
+ * // },
290
+ * // silent: true || false,
291
+ * // event: "STRING_VALUE",
301
292
  * // sms: true || false,
302
293
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
303
294
  * // messageId: "STRING_VALUE", // required
@@ -337,6 +328,8 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
337
328
  *
338
329
  * @throws {@link ValidationException} (client fault)
339
330
  *
331
+ * @throws {@link ForbiddenException} (client fault)
332
+ *
340
333
  * @throws {@link ConversationsServiceException}
341
334
  * <p>Base exception class for all service exceptions from Conversations service.</p>
342
335
  *
@@ -1,15 +1,31 @@
1
- export * from "./CreateChannelCommand";
2
- export * from "./CreateMessageCommand";
1
+ export * from "./AddChannelMemberCommand";
2
+ export * from "./AddChannelMembersCommand";
3
+ export * from "./CreateGroupChannelCommand";
3
4
  export * from "./DeleteChannelCommand";
5
+ export * from "./DeleteChannelMemberCommand";
4
6
  export * from "./DeleteMessageCommand";
7
+ export * from "./DeleteMessageReactionCommand";
5
8
  export * from "./GetChannelCommand";
6
9
  export * from "./GetChannelMemberCommand";
10
+ export * from "./GetDirectChannelIdCommand";
7
11
  export * from "./GetMessageCommand";
12
+ export * from "./GetMessageReactionsCommand";
13
+ export * from "./GetOrCreateDirectChannelCommand";
14
+ export * from "./InviteCommand";
8
15
  export * from "./JoinChannelCommand";
16
+ export * from "./LeaveChannelCommand";
17
+ export * from "./ListChannelMembersCommand";
9
18
  export * from "./ListChannelsCommand";
10
19
  export * from "./ListMessagesCommand";
20
+ export * from "./MarkReadCommand";
11
21
  export * from "./PartialUpdateChannelCommand";
12
22
  export * from "./PartialUpdateMessageCommand";
13
23
  export * from "./ScheduleExternalFlagAdjustmentJobCommand";
24
+ export * from "./SendGiphyCommand";
25
+ export * from "./SendMessageCommand";
26
+ export * from "./SendMessageReactionCommand";
27
+ export * from "./SendSystemMessageCommand";
28
+ export * from "./SendTypingStartCommand";
29
+ export * from "./SendTypingStopCommand";
14
30
  export * from "./UpdateChannelCommand";
15
31
  export * from "./UpdateMessageCommand";