@aws-sdk/client-chime-sdk-messaging 3.312.0 → 3.316.0

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChimeSDKMessaging = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const ChimeSDKMessagingClient_1 = require("./ChimeSDKMessagingClient");
5
6
  const AssociateChannelFlowCommand_1 = require("./commands/AssociateChannelFlowCommand");
6
7
  const BatchCreateChannelMembershipCommand_1 = require("./commands/BatchCreateChannelMembershipCommand");
@@ -53,720 +54,60 @@ const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
53
54
  const UpdateChannelFlowCommand_1 = require("./commands/UpdateChannelFlowCommand");
54
55
  const UpdateChannelMessageCommand_1 = require("./commands/UpdateChannelMessageCommand");
55
56
  const UpdateChannelReadMarkerCommand_1 = require("./commands/UpdateChannelReadMarkerCommand");
57
+ const commands = {
58
+ AssociateChannelFlowCommand: AssociateChannelFlowCommand_1.AssociateChannelFlowCommand,
59
+ BatchCreateChannelMembershipCommand: BatchCreateChannelMembershipCommand_1.BatchCreateChannelMembershipCommand,
60
+ ChannelFlowCallbackCommand: ChannelFlowCallbackCommand_1.ChannelFlowCallbackCommand,
61
+ CreateChannelCommand: CreateChannelCommand_1.CreateChannelCommand,
62
+ CreateChannelBanCommand: CreateChannelBanCommand_1.CreateChannelBanCommand,
63
+ CreateChannelFlowCommand: CreateChannelFlowCommand_1.CreateChannelFlowCommand,
64
+ CreateChannelMembershipCommand: CreateChannelMembershipCommand_1.CreateChannelMembershipCommand,
65
+ CreateChannelModeratorCommand: CreateChannelModeratorCommand_1.CreateChannelModeratorCommand,
66
+ DeleteChannelCommand: DeleteChannelCommand_1.DeleteChannelCommand,
67
+ DeleteChannelBanCommand: DeleteChannelBanCommand_1.DeleteChannelBanCommand,
68
+ DeleteChannelFlowCommand: DeleteChannelFlowCommand_1.DeleteChannelFlowCommand,
69
+ DeleteChannelMembershipCommand: DeleteChannelMembershipCommand_1.DeleteChannelMembershipCommand,
70
+ DeleteChannelMessageCommand: DeleteChannelMessageCommand_1.DeleteChannelMessageCommand,
71
+ DeleteChannelModeratorCommand: DeleteChannelModeratorCommand_1.DeleteChannelModeratorCommand,
72
+ DeleteMessagingStreamingConfigurationsCommand: DeleteMessagingStreamingConfigurationsCommand_1.DeleteMessagingStreamingConfigurationsCommand,
73
+ DescribeChannelCommand: DescribeChannelCommand_1.DescribeChannelCommand,
74
+ DescribeChannelBanCommand: DescribeChannelBanCommand_1.DescribeChannelBanCommand,
75
+ DescribeChannelFlowCommand: DescribeChannelFlowCommand_1.DescribeChannelFlowCommand,
76
+ DescribeChannelMembershipCommand: DescribeChannelMembershipCommand_1.DescribeChannelMembershipCommand,
77
+ DescribeChannelMembershipForAppInstanceUserCommand: DescribeChannelMembershipForAppInstanceUserCommand_1.DescribeChannelMembershipForAppInstanceUserCommand,
78
+ DescribeChannelModeratedByAppInstanceUserCommand: DescribeChannelModeratedByAppInstanceUserCommand_1.DescribeChannelModeratedByAppInstanceUserCommand,
79
+ DescribeChannelModeratorCommand: DescribeChannelModeratorCommand_1.DescribeChannelModeratorCommand,
80
+ DisassociateChannelFlowCommand: DisassociateChannelFlowCommand_1.DisassociateChannelFlowCommand,
81
+ GetChannelMembershipPreferencesCommand: GetChannelMembershipPreferencesCommand_1.GetChannelMembershipPreferencesCommand,
82
+ GetChannelMessageCommand: GetChannelMessageCommand_1.GetChannelMessageCommand,
83
+ GetChannelMessageStatusCommand: GetChannelMessageStatusCommand_1.GetChannelMessageStatusCommand,
84
+ GetMessagingSessionEndpointCommand: GetMessagingSessionEndpointCommand_1.GetMessagingSessionEndpointCommand,
85
+ GetMessagingStreamingConfigurationsCommand: GetMessagingStreamingConfigurationsCommand_1.GetMessagingStreamingConfigurationsCommand,
86
+ ListChannelBansCommand: ListChannelBansCommand_1.ListChannelBansCommand,
87
+ ListChannelFlowsCommand: ListChannelFlowsCommand_1.ListChannelFlowsCommand,
88
+ ListChannelMembershipsCommand: ListChannelMembershipsCommand_1.ListChannelMembershipsCommand,
89
+ ListChannelMembershipsForAppInstanceUserCommand: ListChannelMembershipsForAppInstanceUserCommand_1.ListChannelMembershipsForAppInstanceUserCommand,
90
+ ListChannelMessagesCommand: ListChannelMessagesCommand_1.ListChannelMessagesCommand,
91
+ ListChannelModeratorsCommand: ListChannelModeratorsCommand_1.ListChannelModeratorsCommand,
92
+ ListChannelsCommand: ListChannelsCommand_1.ListChannelsCommand,
93
+ ListChannelsAssociatedWithChannelFlowCommand: ListChannelsAssociatedWithChannelFlowCommand_1.ListChannelsAssociatedWithChannelFlowCommand,
94
+ ListChannelsModeratedByAppInstanceUserCommand: ListChannelsModeratedByAppInstanceUserCommand_1.ListChannelsModeratedByAppInstanceUserCommand,
95
+ ListSubChannelsCommand: ListSubChannelsCommand_1.ListSubChannelsCommand,
96
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
97
+ PutChannelExpirationSettingsCommand: PutChannelExpirationSettingsCommand_1.PutChannelExpirationSettingsCommand,
98
+ PutChannelMembershipPreferencesCommand: PutChannelMembershipPreferencesCommand_1.PutChannelMembershipPreferencesCommand,
99
+ PutMessagingStreamingConfigurationsCommand: PutMessagingStreamingConfigurationsCommand_1.PutMessagingStreamingConfigurationsCommand,
100
+ RedactChannelMessageCommand: RedactChannelMessageCommand_1.RedactChannelMessageCommand,
101
+ SearchChannelsCommand: SearchChannelsCommand_1.SearchChannelsCommand,
102
+ SendChannelMessageCommand: SendChannelMessageCommand_1.SendChannelMessageCommand,
103
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
104
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
105
+ UpdateChannelCommand: UpdateChannelCommand_1.UpdateChannelCommand,
106
+ UpdateChannelFlowCommand: UpdateChannelFlowCommand_1.UpdateChannelFlowCommand,
107
+ UpdateChannelMessageCommand: UpdateChannelMessageCommand_1.UpdateChannelMessageCommand,
108
+ UpdateChannelReadMarkerCommand: UpdateChannelReadMarkerCommand_1.UpdateChannelReadMarkerCommand,
109
+ };
56
110
  class ChimeSDKMessaging extends ChimeSDKMessagingClient_1.ChimeSDKMessagingClient {
57
- associateChannelFlow(args, optionsOrCb, cb) {
58
- const command = new AssociateChannelFlowCommand_1.AssociateChannelFlowCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- batchCreateChannelMembership(args, optionsOrCb, cb) {
72
- const command = new BatchCreateChannelMembershipCommand_1.BatchCreateChannelMembershipCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- channelFlowCallback(args, optionsOrCb, cb) {
86
- const command = new ChannelFlowCallbackCommand_1.ChannelFlowCallbackCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- createChannel(args, optionsOrCb, cb) {
100
- const command = new CreateChannelCommand_1.CreateChannelCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- createChannelBan(args, optionsOrCb, cb) {
114
- const command = new CreateChannelBanCommand_1.CreateChannelBanCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- createChannelFlow(args, optionsOrCb, cb) {
128
- const command = new CreateChannelFlowCommand_1.CreateChannelFlowCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- createChannelMembership(args, optionsOrCb, cb) {
142
- const command = new CreateChannelMembershipCommand_1.CreateChannelMembershipCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- createChannelModerator(args, optionsOrCb, cb) {
156
- const command = new CreateChannelModeratorCommand_1.CreateChannelModeratorCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- deleteChannel(args, optionsOrCb, cb) {
170
- const command = new DeleteChannelCommand_1.DeleteChannelCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- deleteChannelBan(args, optionsOrCb, cb) {
184
- const command = new DeleteChannelBanCommand_1.DeleteChannelBanCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- deleteChannelFlow(args, optionsOrCb, cb) {
198
- const command = new DeleteChannelFlowCommand_1.DeleteChannelFlowCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- deleteChannelMembership(args, optionsOrCb, cb) {
212
- const command = new DeleteChannelMembershipCommand_1.DeleteChannelMembershipCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- deleteChannelMessage(args, optionsOrCb, cb) {
226
- const command = new DeleteChannelMessageCommand_1.DeleteChannelMessageCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- deleteChannelModerator(args, optionsOrCb, cb) {
240
- const command = new DeleteChannelModeratorCommand_1.DeleteChannelModeratorCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- deleteMessagingStreamingConfigurations(args, optionsOrCb, cb) {
254
- const command = new DeleteMessagingStreamingConfigurationsCommand_1.DeleteMessagingStreamingConfigurationsCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- describeChannel(args, optionsOrCb, cb) {
268
- const command = new DescribeChannelCommand_1.DescribeChannelCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- describeChannelBan(args, optionsOrCb, cb) {
282
- const command = new DescribeChannelBanCommand_1.DescribeChannelBanCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- describeChannelFlow(args, optionsOrCb, cb) {
296
- const command = new DescribeChannelFlowCommand_1.DescribeChannelFlowCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- describeChannelMembership(args, optionsOrCb, cb) {
310
- const command = new DescribeChannelMembershipCommand_1.DescribeChannelMembershipCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- describeChannelMembershipForAppInstanceUser(args, optionsOrCb, cb) {
324
- const command = new DescribeChannelMembershipForAppInstanceUserCommand_1.DescribeChannelMembershipForAppInstanceUserCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- describeChannelModeratedByAppInstanceUser(args, optionsOrCb, cb) {
338
- const command = new DescribeChannelModeratedByAppInstanceUserCommand_1.DescribeChannelModeratedByAppInstanceUserCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
- describeChannelModerator(args, optionsOrCb, cb) {
352
- const command = new DescribeChannelModeratorCommand_1.DescribeChannelModeratorCommand(args);
353
- if (typeof optionsOrCb === "function") {
354
- this.send(command, optionsOrCb);
355
- }
356
- else if (typeof cb === "function") {
357
- if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
359
- this.send(command, optionsOrCb || {}, cb);
360
- }
361
- else {
362
- return this.send(command, optionsOrCb);
363
- }
364
- }
365
- disassociateChannelFlow(args, optionsOrCb, cb) {
366
- const command = new DisassociateChannelFlowCommand_1.DisassociateChannelFlowCommand(args);
367
- if (typeof optionsOrCb === "function") {
368
- this.send(command, optionsOrCb);
369
- }
370
- else if (typeof cb === "function") {
371
- if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
- this.send(command, optionsOrCb || {}, cb);
374
- }
375
- else {
376
- return this.send(command, optionsOrCb);
377
- }
378
- }
379
- getChannelMembershipPreferences(args, optionsOrCb, cb) {
380
- const command = new GetChannelMembershipPreferencesCommand_1.GetChannelMembershipPreferencesCommand(args);
381
- if (typeof optionsOrCb === "function") {
382
- this.send(command, optionsOrCb);
383
- }
384
- else if (typeof cb === "function") {
385
- if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
387
- this.send(command, optionsOrCb || {}, cb);
388
- }
389
- else {
390
- return this.send(command, optionsOrCb);
391
- }
392
- }
393
- getChannelMessage(args, optionsOrCb, cb) {
394
- const command = new GetChannelMessageCommand_1.GetChannelMessageCommand(args);
395
- if (typeof optionsOrCb === "function") {
396
- this.send(command, optionsOrCb);
397
- }
398
- else if (typeof cb === "function") {
399
- if (typeof optionsOrCb !== "object")
400
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
401
- this.send(command, optionsOrCb || {}, cb);
402
- }
403
- else {
404
- return this.send(command, optionsOrCb);
405
- }
406
- }
407
- getChannelMessageStatus(args, optionsOrCb, cb) {
408
- const command = new GetChannelMessageStatusCommand_1.GetChannelMessageStatusCommand(args);
409
- if (typeof optionsOrCb === "function") {
410
- this.send(command, optionsOrCb);
411
- }
412
- else if (typeof cb === "function") {
413
- if (typeof optionsOrCb !== "object")
414
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
415
- this.send(command, optionsOrCb || {}, cb);
416
- }
417
- else {
418
- return this.send(command, optionsOrCb);
419
- }
420
- }
421
- getMessagingSessionEndpoint(args, optionsOrCb, cb) {
422
- const command = new GetMessagingSessionEndpointCommand_1.GetMessagingSessionEndpointCommand(args);
423
- if (typeof optionsOrCb === "function") {
424
- this.send(command, optionsOrCb);
425
- }
426
- else if (typeof cb === "function") {
427
- if (typeof optionsOrCb !== "object")
428
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
429
- this.send(command, optionsOrCb || {}, cb);
430
- }
431
- else {
432
- return this.send(command, optionsOrCb);
433
- }
434
- }
435
- getMessagingStreamingConfigurations(args, optionsOrCb, cb) {
436
- const command = new GetMessagingStreamingConfigurationsCommand_1.GetMessagingStreamingConfigurationsCommand(args);
437
- if (typeof optionsOrCb === "function") {
438
- this.send(command, optionsOrCb);
439
- }
440
- else if (typeof cb === "function") {
441
- if (typeof optionsOrCb !== "object")
442
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
443
- this.send(command, optionsOrCb || {}, cb);
444
- }
445
- else {
446
- return this.send(command, optionsOrCb);
447
- }
448
- }
449
- listChannelBans(args, optionsOrCb, cb) {
450
- const command = new ListChannelBansCommand_1.ListChannelBansCommand(args);
451
- if (typeof optionsOrCb === "function") {
452
- this.send(command, optionsOrCb);
453
- }
454
- else if (typeof cb === "function") {
455
- if (typeof optionsOrCb !== "object")
456
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
457
- this.send(command, optionsOrCb || {}, cb);
458
- }
459
- else {
460
- return this.send(command, optionsOrCb);
461
- }
462
- }
463
- listChannelFlows(args, optionsOrCb, cb) {
464
- const command = new ListChannelFlowsCommand_1.ListChannelFlowsCommand(args);
465
- if (typeof optionsOrCb === "function") {
466
- this.send(command, optionsOrCb);
467
- }
468
- else if (typeof cb === "function") {
469
- if (typeof optionsOrCb !== "object")
470
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
471
- this.send(command, optionsOrCb || {}, cb);
472
- }
473
- else {
474
- return this.send(command, optionsOrCb);
475
- }
476
- }
477
- listChannelMemberships(args, optionsOrCb, cb) {
478
- const command = new ListChannelMembershipsCommand_1.ListChannelMembershipsCommand(args);
479
- if (typeof optionsOrCb === "function") {
480
- this.send(command, optionsOrCb);
481
- }
482
- else if (typeof cb === "function") {
483
- if (typeof optionsOrCb !== "object")
484
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
485
- this.send(command, optionsOrCb || {}, cb);
486
- }
487
- else {
488
- return this.send(command, optionsOrCb);
489
- }
490
- }
491
- listChannelMembershipsForAppInstanceUser(args, optionsOrCb, cb) {
492
- const command = new ListChannelMembershipsForAppInstanceUserCommand_1.ListChannelMembershipsForAppInstanceUserCommand(args);
493
- if (typeof optionsOrCb === "function") {
494
- this.send(command, optionsOrCb);
495
- }
496
- else if (typeof cb === "function") {
497
- if (typeof optionsOrCb !== "object")
498
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
499
- this.send(command, optionsOrCb || {}, cb);
500
- }
501
- else {
502
- return this.send(command, optionsOrCb);
503
- }
504
- }
505
- listChannelMessages(args, optionsOrCb, cb) {
506
- const command = new ListChannelMessagesCommand_1.ListChannelMessagesCommand(args);
507
- if (typeof optionsOrCb === "function") {
508
- this.send(command, optionsOrCb);
509
- }
510
- else if (typeof cb === "function") {
511
- if (typeof optionsOrCb !== "object")
512
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
513
- this.send(command, optionsOrCb || {}, cb);
514
- }
515
- else {
516
- return this.send(command, optionsOrCb);
517
- }
518
- }
519
- listChannelModerators(args, optionsOrCb, cb) {
520
- const command = new ListChannelModeratorsCommand_1.ListChannelModeratorsCommand(args);
521
- if (typeof optionsOrCb === "function") {
522
- this.send(command, optionsOrCb);
523
- }
524
- else if (typeof cb === "function") {
525
- if (typeof optionsOrCb !== "object")
526
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
527
- this.send(command, optionsOrCb || {}, cb);
528
- }
529
- else {
530
- return this.send(command, optionsOrCb);
531
- }
532
- }
533
- listChannels(args, optionsOrCb, cb) {
534
- const command = new ListChannelsCommand_1.ListChannelsCommand(args);
535
- if (typeof optionsOrCb === "function") {
536
- this.send(command, optionsOrCb);
537
- }
538
- else if (typeof cb === "function") {
539
- if (typeof optionsOrCb !== "object")
540
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
541
- this.send(command, optionsOrCb || {}, cb);
542
- }
543
- else {
544
- return this.send(command, optionsOrCb);
545
- }
546
- }
547
- listChannelsAssociatedWithChannelFlow(args, optionsOrCb, cb) {
548
- const command = new ListChannelsAssociatedWithChannelFlowCommand_1.ListChannelsAssociatedWithChannelFlowCommand(args);
549
- if (typeof optionsOrCb === "function") {
550
- this.send(command, optionsOrCb);
551
- }
552
- else if (typeof cb === "function") {
553
- if (typeof optionsOrCb !== "object")
554
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
555
- this.send(command, optionsOrCb || {}, cb);
556
- }
557
- else {
558
- return this.send(command, optionsOrCb);
559
- }
560
- }
561
- listChannelsModeratedByAppInstanceUser(args, optionsOrCb, cb) {
562
- const command = new ListChannelsModeratedByAppInstanceUserCommand_1.ListChannelsModeratedByAppInstanceUserCommand(args);
563
- if (typeof optionsOrCb === "function") {
564
- this.send(command, optionsOrCb);
565
- }
566
- else if (typeof cb === "function") {
567
- if (typeof optionsOrCb !== "object")
568
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
569
- this.send(command, optionsOrCb || {}, cb);
570
- }
571
- else {
572
- return this.send(command, optionsOrCb);
573
- }
574
- }
575
- listSubChannels(args, optionsOrCb, cb) {
576
- const command = new ListSubChannelsCommand_1.ListSubChannelsCommand(args);
577
- if (typeof optionsOrCb === "function") {
578
- this.send(command, optionsOrCb);
579
- }
580
- else if (typeof cb === "function") {
581
- if (typeof optionsOrCb !== "object")
582
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
583
- this.send(command, optionsOrCb || {}, cb);
584
- }
585
- else {
586
- return this.send(command, optionsOrCb);
587
- }
588
- }
589
- listTagsForResource(args, optionsOrCb, cb) {
590
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
591
- if (typeof optionsOrCb === "function") {
592
- this.send(command, optionsOrCb);
593
- }
594
- else if (typeof cb === "function") {
595
- if (typeof optionsOrCb !== "object")
596
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
597
- this.send(command, optionsOrCb || {}, cb);
598
- }
599
- else {
600
- return this.send(command, optionsOrCb);
601
- }
602
- }
603
- putChannelExpirationSettings(args, optionsOrCb, cb) {
604
- const command = new PutChannelExpirationSettingsCommand_1.PutChannelExpirationSettingsCommand(args);
605
- if (typeof optionsOrCb === "function") {
606
- this.send(command, optionsOrCb);
607
- }
608
- else if (typeof cb === "function") {
609
- if (typeof optionsOrCb !== "object")
610
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
611
- this.send(command, optionsOrCb || {}, cb);
612
- }
613
- else {
614
- return this.send(command, optionsOrCb);
615
- }
616
- }
617
- putChannelMembershipPreferences(args, optionsOrCb, cb) {
618
- const command = new PutChannelMembershipPreferencesCommand_1.PutChannelMembershipPreferencesCommand(args);
619
- if (typeof optionsOrCb === "function") {
620
- this.send(command, optionsOrCb);
621
- }
622
- else if (typeof cb === "function") {
623
- if (typeof optionsOrCb !== "object")
624
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
625
- this.send(command, optionsOrCb || {}, cb);
626
- }
627
- else {
628
- return this.send(command, optionsOrCb);
629
- }
630
- }
631
- putMessagingStreamingConfigurations(args, optionsOrCb, cb) {
632
- const command = new PutMessagingStreamingConfigurationsCommand_1.PutMessagingStreamingConfigurationsCommand(args);
633
- if (typeof optionsOrCb === "function") {
634
- this.send(command, optionsOrCb);
635
- }
636
- else if (typeof cb === "function") {
637
- if (typeof optionsOrCb !== "object")
638
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
639
- this.send(command, optionsOrCb || {}, cb);
640
- }
641
- else {
642
- return this.send(command, optionsOrCb);
643
- }
644
- }
645
- redactChannelMessage(args, optionsOrCb, cb) {
646
- const command = new RedactChannelMessageCommand_1.RedactChannelMessageCommand(args);
647
- if (typeof optionsOrCb === "function") {
648
- this.send(command, optionsOrCb);
649
- }
650
- else if (typeof cb === "function") {
651
- if (typeof optionsOrCb !== "object")
652
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
653
- this.send(command, optionsOrCb || {}, cb);
654
- }
655
- else {
656
- return this.send(command, optionsOrCb);
657
- }
658
- }
659
- searchChannels(args, optionsOrCb, cb) {
660
- const command = new SearchChannelsCommand_1.SearchChannelsCommand(args);
661
- if (typeof optionsOrCb === "function") {
662
- this.send(command, optionsOrCb);
663
- }
664
- else if (typeof cb === "function") {
665
- if (typeof optionsOrCb !== "object")
666
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
667
- this.send(command, optionsOrCb || {}, cb);
668
- }
669
- else {
670
- return this.send(command, optionsOrCb);
671
- }
672
- }
673
- sendChannelMessage(args, optionsOrCb, cb) {
674
- const command = new SendChannelMessageCommand_1.SendChannelMessageCommand(args);
675
- if (typeof optionsOrCb === "function") {
676
- this.send(command, optionsOrCb);
677
- }
678
- else if (typeof cb === "function") {
679
- if (typeof optionsOrCb !== "object")
680
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
681
- this.send(command, optionsOrCb || {}, cb);
682
- }
683
- else {
684
- return this.send(command, optionsOrCb);
685
- }
686
- }
687
- tagResource(args, optionsOrCb, cb) {
688
- const command = new TagResourceCommand_1.TagResourceCommand(args);
689
- if (typeof optionsOrCb === "function") {
690
- this.send(command, optionsOrCb);
691
- }
692
- else if (typeof cb === "function") {
693
- if (typeof optionsOrCb !== "object")
694
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
- this.send(command, optionsOrCb || {}, cb);
696
- }
697
- else {
698
- return this.send(command, optionsOrCb);
699
- }
700
- }
701
- untagResource(args, optionsOrCb, cb) {
702
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
703
- if (typeof optionsOrCb === "function") {
704
- this.send(command, optionsOrCb);
705
- }
706
- else if (typeof cb === "function") {
707
- if (typeof optionsOrCb !== "object")
708
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
709
- this.send(command, optionsOrCb || {}, cb);
710
- }
711
- else {
712
- return this.send(command, optionsOrCb);
713
- }
714
- }
715
- updateChannel(args, optionsOrCb, cb) {
716
- const command = new UpdateChannelCommand_1.UpdateChannelCommand(args);
717
- if (typeof optionsOrCb === "function") {
718
- this.send(command, optionsOrCb);
719
- }
720
- else if (typeof cb === "function") {
721
- if (typeof optionsOrCb !== "object")
722
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
723
- this.send(command, optionsOrCb || {}, cb);
724
- }
725
- else {
726
- return this.send(command, optionsOrCb);
727
- }
728
- }
729
- updateChannelFlow(args, optionsOrCb, cb) {
730
- const command = new UpdateChannelFlowCommand_1.UpdateChannelFlowCommand(args);
731
- if (typeof optionsOrCb === "function") {
732
- this.send(command, optionsOrCb);
733
- }
734
- else if (typeof cb === "function") {
735
- if (typeof optionsOrCb !== "object")
736
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
737
- this.send(command, optionsOrCb || {}, cb);
738
- }
739
- else {
740
- return this.send(command, optionsOrCb);
741
- }
742
- }
743
- updateChannelMessage(args, optionsOrCb, cb) {
744
- const command = new UpdateChannelMessageCommand_1.UpdateChannelMessageCommand(args);
745
- if (typeof optionsOrCb === "function") {
746
- this.send(command, optionsOrCb);
747
- }
748
- else if (typeof cb === "function") {
749
- if (typeof optionsOrCb !== "object")
750
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
751
- this.send(command, optionsOrCb || {}, cb);
752
- }
753
- else {
754
- return this.send(command, optionsOrCb);
755
- }
756
- }
757
- updateChannelReadMarker(args, optionsOrCb, cb) {
758
- const command = new UpdateChannelReadMarkerCommand_1.UpdateChannelReadMarkerCommand(args);
759
- if (typeof optionsOrCb === "function") {
760
- this.send(command, optionsOrCb);
761
- }
762
- else if (typeof cb === "function") {
763
- if (typeof optionsOrCb !== "object")
764
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
765
- this.send(command, optionsOrCb || {}, cb);
766
- }
767
- else {
768
- return this.send(command, optionsOrCb);
769
- }
770
- }
771
111
  }
772
112
  exports.ChimeSDKMessaging = ChimeSDKMessaging;
113
+ (0, smithy_client_1.createAggregatedClient)(commands, ChimeSDKMessaging);