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