@wildix/xbees-conversations-client 1.0.18
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 +27 -0
- package/dist-cjs/ConversationsClient.js +33 -0
- package/dist-cjs/commands/CreateChannelCommand.js +41 -0
- package/dist-cjs/commands/CreateMessageCommand.js +41 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +41 -0
- package/dist-cjs/commands/GetChannelCommand.js +41 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/GetMessageCommand.js +41 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +41 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +41 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/ConversationsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +96 -0
- package/dist-cjs/protocols/Aws_restJson1.js +597 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/Conversations.js +23 -0
- package/dist-es/ConversationsClient.js +29 -0
- package/dist-es/commands/CreateChannelCommand.js +37 -0
- package/dist-es/commands/CreateMessageCommand.js +37 -0
- package/dist-es/commands/DeleteChannelCommand.js +37 -0
- package/dist-es/commands/GetChannelCommand.js +37 -0
- package/dist-es/commands/GetChannelMemberCommand.js +37 -0
- package/dist-es/commands/GetMessageCommand.js +37 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +37 -0
- package/dist-es/commands/UpdateChannelCommand.js +37 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/ConversationsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +90 -0
- package/dist-es/protocols/Aws_restJson1.js +578 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/Conversations.d.ts +65 -0
- package/dist-types/ConversationsClient.d.ts +144 -0
- package/dist-types/commands/CreateChannelCommand.d.ts +194 -0
- package/dist-types/commands/CreateMessageCommand.d.ts +360 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +71 -0
- package/dist-types/commands/GetChannelCommand.d.ts +136 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +80 -0
- package/dist-types/commands/GetMessageCommand.d.ts +209 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +193 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/ConversationsServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +508 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +77 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { CreateMessageInput, CreateMessageOutput } 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 CreateMessageCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMessageCommandInput extends CreateMessageInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link CreateMessageCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateMessageCommandOutput extends CreateMessageOutput, __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, CreateMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, CreateMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // CreateMessageInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* userId: "STRING_VALUE", // required
|
|
35
|
+
* message: { // MessageCreateFields
|
|
36
|
+
* type: "regular", // required
|
|
37
|
+
* text: "STRING_VALUE",
|
|
38
|
+
* silent: true || false,
|
|
39
|
+
* event: "STRING_VALUE",
|
|
40
|
+
* attachments: [ // MessageAttachmentList
|
|
41
|
+
* { // MessageAttachment
|
|
42
|
+
* id: "STRING_VALUE", // required
|
|
43
|
+
* fsId: "STRING_VALUE", // required
|
|
44
|
+
* mime: "STRING_VALUE",
|
|
45
|
+
* name: "STRING_VALUE",
|
|
46
|
+
* size: Number("int"), // required
|
|
47
|
+
* width: Number("int"),
|
|
48
|
+
* height: Number("int"),
|
|
49
|
+
* thumbnail: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* giphy: { // MessageGiphy
|
|
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
|
|
61
|
+
* text: "STRING_VALUE",
|
|
62
|
+
* silent: true || false,
|
|
63
|
+
* event: "STRING_VALUE",
|
|
64
|
+
* attachments: [
|
|
65
|
+
* {
|
|
66
|
+
* id: "STRING_VALUE", // required
|
|
67
|
+
* fsId: "STRING_VALUE", // required
|
|
68
|
+
* mime: "STRING_VALUE",
|
|
69
|
+
* name: "STRING_VALUE",
|
|
70
|
+
* size: Number("int"), // required
|
|
71
|
+
* width: Number("int"),
|
|
72
|
+
* height: Number("int"),
|
|
73
|
+
* thumbnail: "STRING_VALUE",
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* giphy: {
|
|
77
|
+
* id: "STRING_VALUE",
|
|
78
|
+
* size: "STRING_VALUE",
|
|
79
|
+
* url: "STRING_VALUE",
|
|
80
|
+
* height: "STRING_VALUE",
|
|
81
|
+
* width: "STRING_VALUE",
|
|
82
|
+
* },
|
|
83
|
+
* quote: {
|
|
84
|
+
* type: "regular", // required
|
|
85
|
+
* text: "STRING_VALUE",
|
|
86
|
+
* silent: true || false,
|
|
87
|
+
* event: "STRING_VALUE",
|
|
88
|
+
* attachments: "<MessageAttachmentList>",
|
|
89
|
+
* giphy: "<MessageGiphy>",
|
|
90
|
+
* quote: "<Message>",
|
|
91
|
+
* forward: { // MessageForward
|
|
92
|
+
* forwardCompany: "STRING_VALUE",
|
|
93
|
+
* forwardDate: "STRING_VALUE", // required
|
|
94
|
+
* forwardEmail: "STRING_VALUE",
|
|
95
|
+
* forwardName: "STRING_VALUE",
|
|
96
|
+
* },
|
|
97
|
+
* sms: true || false,
|
|
98
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
99
|
+
* messageId: "STRING_VALUE", // required
|
|
100
|
+
* channelId: "STRING_VALUE", // required
|
|
101
|
+
* user: { // User
|
|
102
|
+
* id: "STRING_VALUE", // required
|
|
103
|
+
* name: "STRING_VALUE",
|
|
104
|
+
* email: "STRING_VALUE",
|
|
105
|
+
* phone: "STRING_VALUE",
|
|
106
|
+
* picture: "STRING_VALUE",
|
|
107
|
+
* company: "STRING_VALUE",
|
|
108
|
+
* pbxDomain: "STRING_VALUE",
|
|
109
|
+
* pbxPort: "STRING_VALUE",
|
|
110
|
+
* pbxExtension: "STRING_VALUE",
|
|
111
|
+
* pbxSerial: "STRING_VALUE",
|
|
112
|
+
* pbxUserId: "STRING_VALUE",
|
|
113
|
+
* createdAt: "STRING_VALUE",
|
|
114
|
+
* updatedAt: "STRING_VALUE",
|
|
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
|
+
* ],
|
|
163
|
+
* latestReactions: [
|
|
164
|
+
* {
|
|
165
|
+
* type: "STRING_VALUE",
|
|
166
|
+
* userId: "STRING_VALUE",
|
|
167
|
+
* messageId: "STRING_VALUE",
|
|
168
|
+
* user: "<User>",
|
|
169
|
+
* },
|
|
170
|
+
* ],
|
|
171
|
+
* reactionCounts: {
|
|
172
|
+
* "<keys>": Number("int"),
|
|
173
|
+
* },
|
|
174
|
+
* createdAt: "STRING_VALUE", // required
|
|
175
|
+
* updatedAt: "STRING_VALUE",
|
|
176
|
+
* },
|
|
177
|
+
* forward: "<MessageForward>",
|
|
178
|
+
* sms: true || false,
|
|
179
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
180
|
+
* messageId: "STRING_VALUE",
|
|
181
|
+
* mentions: [ // MessageCreateMentionsList
|
|
182
|
+
* "STRING_VALUE",
|
|
183
|
+
* ],
|
|
184
|
+
* },
|
|
185
|
+
* };
|
|
186
|
+
* const command = new CreateMessageCommand(input);
|
|
187
|
+
* const response = await client.send(command);
|
|
188
|
+
* // { // CreateMessageOutput
|
|
189
|
+
* // message: { // Message
|
|
190
|
+
* // type: "regular", // required
|
|
191
|
+
* // text: "STRING_VALUE",
|
|
192
|
+
* // silent: true || false,
|
|
193
|
+
* // event: "STRING_VALUE",
|
|
194
|
+
* // attachments: [ // MessageAttachmentList
|
|
195
|
+
* // { // MessageAttachment
|
|
196
|
+
* // id: "STRING_VALUE", // required
|
|
197
|
+
* // fsId: "STRING_VALUE", // required
|
|
198
|
+
* // mime: "STRING_VALUE",
|
|
199
|
+
* // name: "STRING_VALUE",
|
|
200
|
+
* // size: Number("int"), // required
|
|
201
|
+
* // width: Number("int"),
|
|
202
|
+
* // height: Number("int"),
|
|
203
|
+
* // thumbnail: "STRING_VALUE",
|
|
204
|
+
* // },
|
|
205
|
+
* // ],
|
|
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
|
+
* // quote: {
|
|
214
|
+
* // type: "regular", // required
|
|
215
|
+
* // text: "STRING_VALUE",
|
|
216
|
+
* // silent: true || false,
|
|
217
|
+
* // event: "STRING_VALUE",
|
|
218
|
+
* // attachments: [
|
|
219
|
+
* // {
|
|
220
|
+
* // id: "STRING_VALUE", // required
|
|
221
|
+
* // fsId: "STRING_VALUE", // required
|
|
222
|
+
* // mime: "STRING_VALUE",
|
|
223
|
+
* // name: "STRING_VALUE",
|
|
224
|
+
* // size: Number("int"), // required
|
|
225
|
+
* // width: Number("int"),
|
|
226
|
+
* // height: Number("int"),
|
|
227
|
+
* // thumbnail: "STRING_VALUE",
|
|
228
|
+
* // },
|
|
229
|
+
* // ],
|
|
230
|
+
* // giphy: {
|
|
231
|
+
* // id: "STRING_VALUE",
|
|
232
|
+
* // size: "STRING_VALUE",
|
|
233
|
+
* // url: "STRING_VALUE",
|
|
234
|
+
* // height: "STRING_VALUE",
|
|
235
|
+
* // width: "STRING_VALUE",
|
|
236
|
+
* // },
|
|
237
|
+
* // quote: "<Message>",
|
|
238
|
+
* // forward: { // MessageForward
|
|
239
|
+
* // forwardCompany: "STRING_VALUE",
|
|
240
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
241
|
+
* // forwardEmail: "STRING_VALUE",
|
|
242
|
+
* // forwardName: "STRING_VALUE",
|
|
243
|
+
* // },
|
|
244
|
+
* // sms: true || false,
|
|
245
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
246
|
+
* // messageId: "STRING_VALUE", // required
|
|
247
|
+
* // channelId: "STRING_VALUE", // required
|
|
248
|
+
* // user: { // User
|
|
249
|
+
* // id: "STRING_VALUE", // required
|
|
250
|
+
* // name: "STRING_VALUE",
|
|
251
|
+
* // email: "STRING_VALUE",
|
|
252
|
+
* // phone: "STRING_VALUE",
|
|
253
|
+
* // picture: "STRING_VALUE",
|
|
254
|
+
* // company: "STRING_VALUE",
|
|
255
|
+
* // pbxDomain: "STRING_VALUE",
|
|
256
|
+
* // pbxPort: "STRING_VALUE",
|
|
257
|
+
* // pbxExtension: "STRING_VALUE",
|
|
258
|
+
* // pbxSerial: "STRING_VALUE",
|
|
259
|
+
* // pbxUserId: "STRING_VALUE",
|
|
260
|
+
* // createdAt: "STRING_VALUE",
|
|
261
|
+
* // updatedAt: "STRING_VALUE",
|
|
262
|
+
* // },
|
|
263
|
+
* // edit: true || false,
|
|
264
|
+
* // mentions: [ // UserList
|
|
265
|
+
* // {
|
|
266
|
+
* // id: "STRING_VALUE", // required
|
|
267
|
+
* // name: "STRING_VALUE",
|
|
268
|
+
* // email: "STRING_VALUE",
|
|
269
|
+
* // phone: "STRING_VALUE",
|
|
270
|
+
* // picture: "STRING_VALUE",
|
|
271
|
+
* // company: "STRING_VALUE",
|
|
272
|
+
* // pbxDomain: "STRING_VALUE",
|
|
273
|
+
* // pbxPort: "STRING_VALUE",
|
|
274
|
+
* // pbxExtension: "STRING_VALUE",
|
|
275
|
+
* // pbxSerial: "STRING_VALUE",
|
|
276
|
+
* // pbxUserId: "STRING_VALUE",
|
|
277
|
+
* // createdAt: "STRING_VALUE",
|
|
278
|
+
* // updatedAt: "STRING_VALUE",
|
|
279
|
+
* // },
|
|
280
|
+
* // ],
|
|
281
|
+
* // latestReactions: [ // ReactionList
|
|
282
|
+
* // { // Reaction
|
|
283
|
+
* // type: "STRING_VALUE",
|
|
284
|
+
* // userId: "STRING_VALUE",
|
|
285
|
+
* // messageId: "STRING_VALUE",
|
|
286
|
+
* // user: "<User>",
|
|
287
|
+
* // },
|
|
288
|
+
* // ],
|
|
289
|
+
* // reactionCounts: { // ReactionCounts
|
|
290
|
+
* // "<keys>": Number("int"),
|
|
291
|
+
* // },
|
|
292
|
+
* // createdAt: "STRING_VALUE", // required
|
|
293
|
+
* // updatedAt: "STRING_VALUE",
|
|
294
|
+
* // },
|
|
295
|
+
* // forward: {
|
|
296
|
+
* // forwardCompany: "STRING_VALUE",
|
|
297
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
298
|
+
* // forwardEmail: "STRING_VALUE",
|
|
299
|
+
* // forwardName: "STRING_VALUE",
|
|
300
|
+
* // },
|
|
301
|
+
* // sms: true || false,
|
|
302
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
303
|
+
* // messageId: "STRING_VALUE", // required
|
|
304
|
+
* // channelId: "STRING_VALUE", // required
|
|
305
|
+
* // user: "<User>", // required
|
|
306
|
+
* // edit: true || false,
|
|
307
|
+
* // mentions: [
|
|
308
|
+
* // "<User>",
|
|
309
|
+
* // ],
|
|
310
|
+
* // latestReactions: [
|
|
311
|
+
* // {
|
|
312
|
+
* // type: "STRING_VALUE",
|
|
313
|
+
* // userId: "STRING_VALUE",
|
|
314
|
+
* // messageId: "STRING_VALUE",
|
|
315
|
+
* // user: "<User>",
|
|
316
|
+
* // },
|
|
317
|
+
* // ],
|
|
318
|
+
* // reactionCounts: {
|
|
319
|
+
* // "<keys>": Number("int"),
|
|
320
|
+
* // },
|
|
321
|
+
* // createdAt: "STRING_VALUE", // required
|
|
322
|
+
* // updatedAt: "STRING_VALUE",
|
|
323
|
+
* // },
|
|
324
|
+
* // };
|
|
325
|
+
*
|
|
326
|
+
* ```
|
|
327
|
+
*
|
|
328
|
+
* @param CreateMessageCommandInput - {@link CreateMessageCommandInput}
|
|
329
|
+
* @returns {@link CreateMessageCommandOutput}
|
|
330
|
+
* @see {@link CreateMessageCommandInput} for command's `input` shape.
|
|
331
|
+
* @see {@link CreateMessageCommandOutput} for command's `response` shape.
|
|
332
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
333
|
+
*
|
|
334
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
335
|
+
*
|
|
336
|
+
* @throws {@link ValidationException} (client fault)
|
|
337
|
+
*
|
|
338
|
+
* @throws {@link ConversationsServiceException}
|
|
339
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
340
|
+
*
|
|
341
|
+
*/
|
|
342
|
+
export declare class CreateMessageCommand extends $Command<CreateMessageCommandInput, CreateMessageCommandOutput, ConversationsClientResolvedConfig> {
|
|
343
|
+
readonly input: CreateMessageCommandInput;
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
constructor(input: CreateMessageCommandInput);
|
|
348
|
+
/**
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateMessageCommandInput, CreateMessageCommandOutput>;
|
|
352
|
+
/**
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
private serialize;
|
|
356
|
+
/**
|
|
357
|
+
* @internal
|
|
358
|
+
*/
|
|
359
|
+
private deserialize;
|
|
360
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { DeleteChannelInput, DeleteChannelOutput } 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 DeleteChannelCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteChannelCommandInput extends DeleteChannelInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteChannelCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteChannelCommandOutput extends DeleteChannelOutput, __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, DeleteChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, DeleteChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // DeleteChannelInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
35
|
+
* const command = new DeleteChannelCommand(input);
|
|
36
|
+
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @param DeleteChannelCommandInput - {@link DeleteChannelCommandInput}
|
|
42
|
+
* @returns {@link DeleteChannelCommandOutput}
|
|
43
|
+
* @see {@link DeleteChannelCommandInput} for command's `input` shape.
|
|
44
|
+
* @see {@link DeleteChannelCommandOutput} for command's `response` shape.
|
|
45
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link ValidationException} (client fault)
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ConversationsServiceException}
|
|
50
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export declare class DeleteChannelCommand extends $Command<DeleteChannelCommandInput, DeleteChannelCommandOutput, ConversationsClientResolvedConfig> {
|
|
54
|
+
readonly input: DeleteChannelCommandInput;
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
constructor(input: DeleteChannelCommandInput);
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteChannelCommandInput, DeleteChannelCommandOutput>;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
private serialize;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
private deserialize;
|
|
71
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { GetChannelInput, GetChannelOutput } 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 GetChannelCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetChannelCommandInput extends GetChannelInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetChannelCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetChannelCommandOutput extends GetChannelOutput, __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, GetChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, GetChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // GetChannelInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
35
|
+
* const command = new GetChannelCommand(input);
|
|
36
|
+
* const response = await client.send(command);
|
|
37
|
+
* // { // GetChannelOutput
|
|
38
|
+
* // channel: { // Channel
|
|
39
|
+
* // subject: "STRING_VALUE",
|
|
40
|
+
* // description: "STRING_VALUE",
|
|
41
|
+
* // picture: "STRING_VALUE",
|
|
42
|
+
* // pictureColor: "STRING_VALUE",
|
|
43
|
+
* // access: "private" || "public",
|
|
44
|
+
* // company: "STRING_VALUE",
|
|
45
|
+
* // context: { // ChannelContext
|
|
46
|
+
* // source: "kite",
|
|
47
|
+
* // target: "STRING_VALUE",
|
|
48
|
+
* // events: [ // ChannelContextEventList
|
|
49
|
+
* // { // ChannelContextEvent
|
|
50
|
+
* // id: "STRING_VALUE",
|
|
51
|
+
* // owner: "STRING_VALUE",
|
|
52
|
+
* // start: "STRING_VALUE",
|
|
53
|
+
* // end: "STRING_VALUE",
|
|
54
|
+
* // summary: "STRING_VALUE",
|
|
55
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
56
|
+
* // { // ChannelContextEventAttendee
|
|
57
|
+
* // email: "STRING_VALUE", // required
|
|
58
|
+
* // name: "STRING_VALUE",
|
|
59
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // },
|
|
65
|
+
* // kite: true || false,
|
|
66
|
+
* // kiteTarget: "STRING_VALUE",
|
|
67
|
+
* // kiteVariant: "STRING_VALUE",
|
|
68
|
+
* // kiteAssign: "STRING_VALUE",
|
|
69
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
70
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
71
|
+
* // service: "STRING_VALUE",
|
|
72
|
+
* // serviceTitle: "STRING_VALUE",
|
|
73
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
74
|
+
* // assignee: { // User
|
|
75
|
+
* // id: "STRING_VALUE", // required
|
|
76
|
+
* // name: "STRING_VALUE",
|
|
77
|
+
* // email: "STRING_VALUE",
|
|
78
|
+
* // phone: "STRING_VALUE",
|
|
79
|
+
* // picture: "STRING_VALUE",
|
|
80
|
+
* // company: "STRING_VALUE",
|
|
81
|
+
* // pbxDomain: "STRING_VALUE",
|
|
82
|
+
* // pbxPort: "STRING_VALUE",
|
|
83
|
+
* // pbxExtension: "STRING_VALUE",
|
|
84
|
+
* // pbxSerial: "STRING_VALUE",
|
|
85
|
+
* // pbxUserId: "STRING_VALUE",
|
|
86
|
+
* // createdAt: "STRING_VALUE",
|
|
87
|
+
* // updatedAt: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // telephony: true || false,
|
|
90
|
+
* // sms: true || false,
|
|
91
|
+
* // broadcast: true || false,
|
|
92
|
+
* // external: true || false,
|
|
93
|
+
* // channelId: "STRING_VALUE", // required
|
|
94
|
+
* // channelType: "direct" || "group", // required
|
|
95
|
+
* // memberCount: Number("int"), // required
|
|
96
|
+
* // createdAt: "STRING_VALUE", // required
|
|
97
|
+
* // createdBy: "STRING_VALUE", // required
|
|
98
|
+
* // updatedAt: "STRING_VALUE",
|
|
99
|
+
* // },
|
|
100
|
+
* // };
|
|
101
|
+
*
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @param GetChannelCommandInput - {@link GetChannelCommandInput}
|
|
105
|
+
* @returns {@link GetChannelCommandOutput}
|
|
106
|
+
* @see {@link GetChannelCommandInput} for command's `input` shape.
|
|
107
|
+
* @see {@link GetChannelCommandOutput} for command's `response` shape.
|
|
108
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ValidationException} (client fault)
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ConversationsServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
export declare class GetChannelCommand extends $Command<GetChannelCommandInput, GetChannelCommandOutput, ConversationsClientResolvedConfig> {
|
|
119
|
+
readonly input: GetChannelCommandInput;
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
constructor(input: GetChannelCommandInput);
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetChannelCommandInput, GetChannelCommandOutput>;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
private serialize;
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
private deserialize;
|
|
136
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { GetChannelMemberInput, GetChannelMemberOutput } 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 GetChannelMemberCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetChannelMemberCommandInput extends GetChannelMemberInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetChannelMemberCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetChannelMemberCommandOutput extends GetChannelMemberOutput, __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, GetChannelMemberCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, GetChannelMemberCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // GetChannelMemberInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* memberId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new GetChannelMemberCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // GetChannelMemberOutput
|
|
39
|
+
* // member: { // ChannelMember
|
|
40
|
+
* // id: "STRING_VALUE", // required
|
|
41
|
+
* // createdAt: "STRING_VALUE", // required
|
|
42
|
+
* // role: "member" || "supervisor", // required
|
|
43
|
+
* // },
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param GetChannelMemberCommandInput - {@link GetChannelMemberCommandInput}
|
|
49
|
+
* @returns {@link GetChannelMemberCommandOutput}
|
|
50
|
+
* @see {@link GetChannelMemberCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link GetChannelMemberCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link MemberNotFoundException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ValidationException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConversationsServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export declare class GetChannelMemberCommand extends $Command<GetChannelMemberCommandInput, GetChannelMemberCommandOutput, ConversationsClientResolvedConfig> {
|
|
63
|
+
readonly input: GetChannelMemberCommandInput;
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
constructor(input: GetChannelMemberCommandInput);
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetChannelMemberCommandInput, GetChannelMemberCommandOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
private serialize;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
private deserialize;
|
|
80
|
+
}
|