@aws-sdk/client-chime-sdk-messaging 3.100.0 → 3.110.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -2
  3. package/dist-cjs/ChimeSDKMessaging.js +15 -0
  4. package/dist-cjs/ChimeSDKMessagingClient.js +2 -0
  5. package/dist-cjs/commands/SearchChannelsCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +1 -0
  7. package/dist-cjs/models/models_0.js +32 -1
  8. package/dist-cjs/pagination/SearchChannelsPaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +145 -2
  11. package/dist-es/ChimeSDKMessaging.js +15 -0
  12. package/dist-es/ChimeSDKMessagingClient.js +2 -0
  13. package/dist-es/commands/SearchChannelsCommand.js +39 -0
  14. package/dist-es/commands/index.js +1 -0
  15. package/dist-es/models/models_0.js +22 -1
  16. package/dist-es/pagination/SearchChannelsPaginator.js +75 -0
  17. package/dist-es/pagination/index.js +1 -0
  18. package/dist-es/protocols/Aws_restJson1.js +159 -2
  19. package/dist-types/ChimeSDKMessaging.d.ts +9 -2
  20. package/dist-types/ChimeSDKMessagingClient.d.ts +4 -4
  21. package/dist-types/commands/SearchChannelsCommand.d.ts +36 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/models/models_0.d.ts +96 -17
  24. package/dist-types/pagination/SearchChannelsPaginator.d.ts +4 -0
  25. package/dist-types/pagination/index.d.ts +1 -0
  26. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  27. package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +5 -0
  28. package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +3 -2
  29. package/dist-types/ts3.4/commands/SearchChannelsCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +56 -14
  32. package/dist-types/ts3.4/pagination/SearchChannelsPaginator.d.ts +4 -0
  33. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  35. package/package.json +29 -28
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ChimeSDKMessaging } from "../ChimeSDKMessaging";
3
+ import { ChimeSDKMessagingClient } from "../ChimeSDKMessagingClient";
4
+ import { SearchChannelsCommand, } from "../commands/SearchChannelsCommand";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new SearchChannelsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.searchChannels.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateSearchChannels(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateSearchChannels_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof ChimeSDKMessaging)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof ChimeSDKMessagingClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected ChimeSDKMessaging | ChimeSDKMessagingClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.NextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -8,3 +8,4 @@ export * from "./ListChannelModeratorsPaginator";
8
8
  export * from "./ListChannelsAssociatedWithChannelFlowPaginator";
9
9
  export * from "./ListChannelsModeratedByAppInstanceUserPaginator";
10
10
  export * from "./ListChannelsPaginator";
11
+ export * from "./SearchChannelsPaginator";
@@ -127,8 +127,12 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
127
127
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
128
128
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
129
129
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
130
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined &&
131
- input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Privacy !== undefined && input.Privacy !== null && { Privacy: input.Privacy })), (input.Tags !== undefined &&
130
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined &&
131
+ input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId !== undefined && input.ChannelId !== null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.MemberArns !== undefined &&
132
+ input.MemberArns !== null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) })), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.ModeratorArns !== undefined &&
133
+ input.ModeratorArns !== null && {
134
+ ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
135
+ })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Privacy !== undefined && input.Privacy !== null && { Privacy: input.Privacy })), (input.Tags !== undefined &&
132
136
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
133
137
  return [2, new __HttpRequest({
134
138
  protocol: protocol,
@@ -1309,6 +1313,31 @@ export var serializeAws_restJson1RedactChannelMessageCommand = function (input,
1309
1313
  }
1310
1314
  });
1311
1315
  }); };
1316
+ export var serializeAws_restJson1SearchChannelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1317
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1318
+ return __generator(this, function (_c) {
1319
+ switch (_c.label) {
1320
+ case 0: return [4, context.endpoint()];
1321
+ case 1:
1322
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1323
+ headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1324
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1325
+ query = __assign(__assign({ operation: "search" }, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
1326
+ body = JSON.stringify(__assign({}, (input.Fields !== undefined &&
1327
+ input.Fields !== null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) })));
1328
+ return [2, new __HttpRequest({
1329
+ protocol: protocol,
1330
+ hostname: hostname,
1331
+ port: port,
1332
+ method: "POST",
1333
+ headers: headers,
1334
+ path: resolvedPath,
1335
+ query: query,
1336
+ body: body,
1337
+ })];
1338
+ }
1339
+ });
1340
+ }); };
1312
1341
  export var serializeAws_restJson1SendChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1313
1342
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1314
1343
  var _c;
@@ -4512,6 +4541,90 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
4512
4541
  });
4513
4542
  }); };
4514
4543
  var deserializeAws_restJson1RedactChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4544
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
4545
+ var _c;
4546
+ return __generator(this, function (_d) {
4547
+ switch (_d.label) {
4548
+ case 0:
4549
+ _a = [__assign({}, output)];
4550
+ _c = {};
4551
+ return [4, parseBody(output.body, context)];
4552
+ case 1:
4553
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4554
+ errorCode = "UnknownError";
4555
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4556
+ _b = errorCode;
4557
+ switch (_b) {
4558
+ case "BadRequestException": return [3, 2];
4559
+ case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
4560
+ case "ConflictException": return [3, 4];
4561
+ case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
4562
+ case "ForbiddenException": return [3, 6];
4563
+ case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
4564
+ case "ServiceFailureException": return [3, 8];
4565
+ case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
4566
+ case "ServiceUnavailableException": return [3, 10];
4567
+ case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
4568
+ case "ThrottledClientException": return [3, 12];
4569
+ case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
4570
+ case "UnauthorizedClientException": return [3, 14];
4571
+ case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
4572
+ }
4573
+ return [3, 16];
4574
+ case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4575
+ case 3: throw _d.sent();
4576
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
4577
+ case 5: throw _d.sent();
4578
+ case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
4579
+ case 7: throw _d.sent();
4580
+ case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
4581
+ case 9: throw _d.sent();
4582
+ case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4583
+ case 11: throw _d.sent();
4584
+ case 12: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
4585
+ case 13: throw _d.sent();
4586
+ case 14: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
4587
+ case 15: throw _d.sent();
4588
+ case 16:
4589
+ parsedBody = parsedOutput.body;
4590
+ response = new __BaseException({
4591
+ name: parsedBody.code || parsedBody.Code || errorCode,
4592
+ $fault: "client",
4593
+ $metadata: deserializeMetadata(output),
4594
+ });
4595
+ throw __decorateServiceException(response, parsedBody);
4596
+ }
4597
+ });
4598
+ }); };
4599
+ export var deserializeAws_restJson1SearchChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4600
+ var contents, data, _a, _b;
4601
+ return __generator(this, function (_c) {
4602
+ switch (_c.label) {
4603
+ case 0:
4604
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4605
+ return [2, deserializeAws_restJson1SearchChannelsCommandError(output, context)];
4606
+ }
4607
+ contents = {
4608
+ $metadata: deserializeMetadata(output),
4609
+ Channels: undefined,
4610
+ NextToken: undefined,
4611
+ };
4612
+ _a = __expectNonNull;
4613
+ _b = __expectObject;
4614
+ return [4, parseBody(output.body, context)];
4615
+ case 1:
4616
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4617
+ if (data.Channels !== undefined && data.Channels !== null) {
4618
+ contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
4619
+ }
4620
+ if (data.NextToken !== undefined && data.NextToken !== null) {
4621
+ contents.NextToken = __expectString(data.NextToken);
4622
+ }
4623
+ return [2, Promise.resolve(contents)];
4624
+ }
4625
+ });
4626
+ }); };
4627
+ var deserializeAws_restJson1SearchChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4515
4628
  var parsedOutput, _a, response, errorCode, _b, parsedBody;
4516
4629
  var _c;
4517
4630
  return __generator(this, function (_d) {
@@ -5258,6 +5371,16 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
5258
5371
  return [2, __decorateServiceException(exception, parsedOutput.body)];
5259
5372
  });
5260
5373
  }); };
5374
+ var serializeAws_restJson1ChannelMemberArns = function (input, context) {
5375
+ return input
5376
+ .filter(function (e) { return e != null; })
5377
+ .map(function (entry) {
5378
+ if (entry === null) {
5379
+ return null;
5380
+ }
5381
+ return entry;
5382
+ });
5383
+ };
5261
5384
  var serializeAws_restJson1ChannelMembershipPreferences = function (input, context) {
5262
5385
  return __assign({}, (input.PushNotifications !== undefined &&
5263
5386
  input.PushNotifications !== null && {
@@ -5273,6 +5396,16 @@ var serializeAws_restJson1ChannelMessageCallback = function (input, context) {
5273
5396
  PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
5274
5397
  }));
5275
5398
  };
5399
+ var serializeAws_restJson1ChannelModeratorArns = function (input, context) {
5400
+ return input
5401
+ .filter(function (e) { return e != null; })
5402
+ .map(function (entry) {
5403
+ if (entry === null) {
5404
+ return null;
5405
+ }
5406
+ return entry;
5407
+ });
5408
+ };
5276
5409
  var serializeAws_restJson1LambdaConfiguration = function (input, context) {
5277
5410
  return __assign(__assign({}, (input.InvocationType !== undefined &&
5278
5411
  input.InvocationType !== null && { InvocationType: input.InvocationType })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
@@ -5342,6 +5475,30 @@ var serializeAws_restJson1PushNotificationPreferences = function (input, context
5342
5475
  return __assign(__assign({}, (input.AllowNotifications !== undefined &&
5343
5476
  input.AllowNotifications !== null && { AllowNotifications: input.AllowNotifications })), (input.FilterRule !== undefined && input.FilterRule !== null && { FilterRule: input.FilterRule }));
5344
5477
  };
5478
+ var serializeAws_restJson1SearchField = function (input, context) {
5479
+ return __assign(__assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator })), (input.Values !== undefined &&
5480
+ input.Values !== null && { Values: serializeAws_restJson1SearchFieldValues(input.Values, context) }));
5481
+ };
5482
+ var serializeAws_restJson1SearchFields = function (input, context) {
5483
+ return input
5484
+ .filter(function (e) { return e != null; })
5485
+ .map(function (entry) {
5486
+ if (entry === null) {
5487
+ return null;
5488
+ }
5489
+ return serializeAws_restJson1SearchField(entry, context);
5490
+ });
5491
+ };
5492
+ var serializeAws_restJson1SearchFieldValues = function (input, context) {
5493
+ return input
5494
+ .filter(function (e) { return e != null; })
5495
+ .map(function (entry) {
5496
+ if (entry === null) {
5497
+ return null;
5498
+ }
5499
+ return entry;
5500
+ });
5501
+ };
5345
5502
  var serializeAws_restJson1Tag = function (input, context) {
5346
5503
  return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
5347
5504
  };
@@ -38,6 +38,7 @@ import { ListChannelsModeratedByAppInstanceUserCommandInput, ListChannelsModerat
38
38
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
39
39
  import { PutChannelMembershipPreferencesCommandInput, PutChannelMembershipPreferencesCommandOutput } from "./commands/PutChannelMembershipPreferencesCommand";
40
40
  import { RedactChannelMessageCommandInput, RedactChannelMessageCommandOutput } from "./commands/RedactChannelMessageCommand";
41
+ import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "./commands/SearchChannelsCommand";
41
42
  import { SendChannelMessageCommandInput, SendChannelMessageCommandOutput } from "./commands/SendChannelMessageCommand";
42
43
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
43
44
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -49,8 +50,7 @@ import { UpdateChannelReadMarkerCommandInput, UpdateChannelReadMarkerCommandOutp
49
50
  * <p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send
50
51
  * and receive messages in custom messaging applications. These APIs depend on the frameworks
51
52
  * provided by the Amazon Chime SDK Identity APIs. For more information about the messaging
52
- * APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon Chime SDK messaging</a>
53
- * </p>
53
+ * APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging.html">Amazon Chime SDK messaging</a>.</p>
54
54
  */
55
55
  export declare class ChimeSDKMessaging extends ChimeSDKMessagingClient {
56
56
  /**
@@ -600,6 +600,13 @@ export declare class ChimeSDKMessaging extends ChimeSDKMessagingClient {
600
600
  redactChannelMessage(args: RedactChannelMessageCommandInput, options?: __HttpHandlerOptions): Promise<RedactChannelMessageCommandOutput>;
601
601
  redactChannelMessage(args: RedactChannelMessageCommandInput, cb: (err: any, data?: RedactChannelMessageCommandOutput) => void): void;
602
602
  redactChannelMessage(args: RedactChannelMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RedactChannelMessageCommandOutput) => void): void;
603
+ /**
604
+ * <p>Allows an <code>AppInstanceUser</code> to search the channels that they belong to. The <code>AppInstanceUser</code> can search by membership or external ID.
605
+ * An <code>AppInstanceAdmin</code> can search across all channels within the <code>AppInstance</code>.</p>
606
+ */
607
+ searchChannels(args: SearchChannelsCommandInput, options?: __HttpHandlerOptions): Promise<SearchChannelsCommandOutput>;
608
+ searchChannels(args: SearchChannelsCommandInput, cb: (err: any, data?: SearchChannelsCommandOutput) => void): void;
609
+ searchChannels(args: SearchChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchChannelsCommandOutput) => void): void;
603
610
  /**
604
611
  * <p>Sends a message to a particular channel that the member is a part of.</p>
605
612
  *
@@ -44,6 +44,7 @@ import { ListChannelsModeratedByAppInstanceUserCommandInput, ListChannelsModerat
44
44
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
45
45
  import { PutChannelMembershipPreferencesCommandInput, PutChannelMembershipPreferencesCommandOutput } from "./commands/PutChannelMembershipPreferencesCommand";
46
46
  import { RedactChannelMessageCommandInput, RedactChannelMessageCommandOutput } from "./commands/RedactChannelMessageCommand";
47
+ import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "./commands/SearchChannelsCommand";
47
48
  import { SendChannelMessageCommandInput, SendChannelMessageCommandOutput } from "./commands/SendChannelMessageCommand";
48
49
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
49
50
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -51,8 +52,8 @@ import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./command
51
52
  import { UpdateChannelFlowCommandInput, UpdateChannelFlowCommandOutput } from "./commands/UpdateChannelFlowCommand";
52
53
  import { UpdateChannelMessageCommandInput, UpdateChannelMessageCommandOutput } from "./commands/UpdateChannelMessageCommand";
53
54
  import { UpdateChannelReadMarkerCommandInput, UpdateChannelReadMarkerCommandOutput } from "./commands/UpdateChannelReadMarkerCommand";
54
- export declare type ServiceInputTypes = AssociateChannelFlowCommandInput | BatchCreateChannelMembershipCommandInput | ChannelFlowCallbackCommandInput | CreateChannelBanCommandInput | CreateChannelCommandInput | CreateChannelFlowCommandInput | CreateChannelMembershipCommandInput | CreateChannelModeratorCommandInput | DeleteChannelBanCommandInput | DeleteChannelCommandInput | DeleteChannelFlowCommandInput | DeleteChannelMembershipCommandInput | DeleteChannelMessageCommandInput | DeleteChannelModeratorCommandInput | DescribeChannelBanCommandInput | DescribeChannelCommandInput | DescribeChannelFlowCommandInput | DescribeChannelMembershipCommandInput | DescribeChannelMembershipForAppInstanceUserCommandInput | DescribeChannelModeratedByAppInstanceUserCommandInput | DescribeChannelModeratorCommandInput | DisassociateChannelFlowCommandInput | GetChannelMembershipPreferencesCommandInput | GetChannelMessageCommandInput | GetChannelMessageStatusCommandInput | GetMessagingSessionEndpointCommandInput | ListChannelBansCommandInput | ListChannelFlowsCommandInput | ListChannelMembershipsCommandInput | ListChannelMembershipsForAppInstanceUserCommandInput | ListChannelMessagesCommandInput | ListChannelModeratorsCommandInput | ListChannelsAssociatedWithChannelFlowCommandInput | ListChannelsCommandInput | ListChannelsModeratedByAppInstanceUserCommandInput | ListTagsForResourceCommandInput | PutChannelMembershipPreferencesCommandInput | RedactChannelMessageCommandInput | SendChannelMessageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput | UpdateChannelFlowCommandInput | UpdateChannelMessageCommandInput | UpdateChannelReadMarkerCommandInput;
55
- export declare type ServiceOutputTypes = AssociateChannelFlowCommandOutput | BatchCreateChannelMembershipCommandOutput | ChannelFlowCallbackCommandOutput | CreateChannelBanCommandOutput | CreateChannelCommandOutput | CreateChannelFlowCommandOutput | CreateChannelMembershipCommandOutput | CreateChannelModeratorCommandOutput | DeleteChannelBanCommandOutput | DeleteChannelCommandOutput | DeleteChannelFlowCommandOutput | DeleteChannelMembershipCommandOutput | DeleteChannelMessageCommandOutput | DeleteChannelModeratorCommandOutput | DescribeChannelBanCommandOutput | DescribeChannelCommandOutput | DescribeChannelFlowCommandOutput | DescribeChannelMembershipCommandOutput | DescribeChannelMembershipForAppInstanceUserCommandOutput | DescribeChannelModeratedByAppInstanceUserCommandOutput | DescribeChannelModeratorCommandOutput | DisassociateChannelFlowCommandOutput | GetChannelMembershipPreferencesCommandOutput | GetChannelMessageCommandOutput | GetChannelMessageStatusCommandOutput | GetMessagingSessionEndpointCommandOutput | ListChannelBansCommandOutput | ListChannelFlowsCommandOutput | ListChannelMembershipsCommandOutput | ListChannelMembershipsForAppInstanceUserCommandOutput | ListChannelMessagesCommandOutput | ListChannelModeratorsCommandOutput | ListChannelsAssociatedWithChannelFlowCommandOutput | ListChannelsCommandOutput | ListChannelsModeratedByAppInstanceUserCommandOutput | ListTagsForResourceCommandOutput | PutChannelMembershipPreferencesCommandOutput | RedactChannelMessageCommandOutput | SendChannelMessageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput | UpdateChannelFlowCommandOutput | UpdateChannelMessageCommandOutput | UpdateChannelReadMarkerCommandOutput;
55
+ export declare type ServiceInputTypes = AssociateChannelFlowCommandInput | BatchCreateChannelMembershipCommandInput | ChannelFlowCallbackCommandInput | CreateChannelBanCommandInput | CreateChannelCommandInput | CreateChannelFlowCommandInput | CreateChannelMembershipCommandInput | CreateChannelModeratorCommandInput | DeleteChannelBanCommandInput | DeleteChannelCommandInput | DeleteChannelFlowCommandInput | DeleteChannelMembershipCommandInput | DeleteChannelMessageCommandInput | DeleteChannelModeratorCommandInput | DescribeChannelBanCommandInput | DescribeChannelCommandInput | DescribeChannelFlowCommandInput | DescribeChannelMembershipCommandInput | DescribeChannelMembershipForAppInstanceUserCommandInput | DescribeChannelModeratedByAppInstanceUserCommandInput | DescribeChannelModeratorCommandInput | DisassociateChannelFlowCommandInput | GetChannelMembershipPreferencesCommandInput | GetChannelMessageCommandInput | GetChannelMessageStatusCommandInput | GetMessagingSessionEndpointCommandInput | ListChannelBansCommandInput | ListChannelFlowsCommandInput | ListChannelMembershipsCommandInput | ListChannelMembershipsForAppInstanceUserCommandInput | ListChannelMessagesCommandInput | ListChannelModeratorsCommandInput | ListChannelsAssociatedWithChannelFlowCommandInput | ListChannelsCommandInput | ListChannelsModeratedByAppInstanceUserCommandInput | ListTagsForResourceCommandInput | PutChannelMembershipPreferencesCommandInput | RedactChannelMessageCommandInput | SearchChannelsCommandInput | SendChannelMessageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput | UpdateChannelFlowCommandInput | UpdateChannelMessageCommandInput | UpdateChannelReadMarkerCommandInput;
56
+ export declare type ServiceOutputTypes = AssociateChannelFlowCommandOutput | BatchCreateChannelMembershipCommandOutput | ChannelFlowCallbackCommandOutput | CreateChannelBanCommandOutput | CreateChannelCommandOutput | CreateChannelFlowCommandOutput | CreateChannelMembershipCommandOutput | CreateChannelModeratorCommandOutput | DeleteChannelBanCommandOutput | DeleteChannelCommandOutput | DeleteChannelFlowCommandOutput | DeleteChannelMembershipCommandOutput | DeleteChannelMessageCommandOutput | DeleteChannelModeratorCommandOutput | DescribeChannelBanCommandOutput | DescribeChannelCommandOutput | DescribeChannelFlowCommandOutput | DescribeChannelMembershipCommandOutput | DescribeChannelMembershipForAppInstanceUserCommandOutput | DescribeChannelModeratedByAppInstanceUserCommandOutput | DescribeChannelModeratorCommandOutput | DisassociateChannelFlowCommandOutput | GetChannelMembershipPreferencesCommandOutput | GetChannelMessageCommandOutput | GetChannelMessageStatusCommandOutput | GetMessagingSessionEndpointCommandOutput | ListChannelBansCommandOutput | ListChannelFlowsCommandOutput | ListChannelMembershipsCommandOutput | ListChannelMembershipsForAppInstanceUserCommandOutput | ListChannelMessagesCommandOutput | ListChannelModeratorsCommandOutput | ListChannelsAssociatedWithChannelFlowCommandOutput | ListChannelsCommandOutput | ListChannelsModeratedByAppInstanceUserCommandOutput | ListTagsForResourceCommandOutput | PutChannelMembershipPreferencesCommandOutput | RedactChannelMessageCommandOutput | SearchChannelsCommandOutput | SendChannelMessageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput | UpdateChannelFlowCommandOutput | UpdateChannelMessageCommandOutput | UpdateChannelReadMarkerCommandOutput;
56
57
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
57
58
  /**
58
59
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -174,8 +175,7 @@ export interface ChimeSDKMessagingClientResolvedConfig extends ChimeSDKMessaging
174
175
  * <p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send
175
176
  * and receive messages in custom messaging applications. These APIs depend on the frameworks
176
177
  * provided by the Amazon Chime SDK Identity APIs. For more information about the messaging
177
- * APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon Chime SDK messaging</a>
178
- * </p>
178
+ * APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging.html">Amazon Chime SDK messaging</a>.</p>
179
179
  */
180
180
  export declare class ChimeSDKMessagingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ChimeSDKMessagingClientResolvedConfig> {
181
181
  /**
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ChimeSDKMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMessagingClient";
4
+ import { SearchChannelsRequest, SearchChannelsResponse } from "../models/models_0";
5
+ export interface SearchChannelsCommandInput extends SearchChannelsRequest {
6
+ }
7
+ export interface SearchChannelsCommandOutput extends SearchChannelsResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Allows an <code>AppInstanceUser</code> to search the channels that they belong to. The <code>AppInstanceUser</code> can search by membership or external ID.
11
+ * An <code>AppInstanceAdmin</code> can search across all channels within the <code>AppInstance</code>.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { ChimeSDKMessagingClient, SearchChannelsCommand } from "@aws-sdk/client-chime-sdk-messaging"; // ES Modules import
16
+ * // const { ChimeSDKMessagingClient, SearchChannelsCommand } = require("@aws-sdk/client-chime-sdk-messaging"); // CommonJS import
17
+ * const client = new ChimeSDKMessagingClient(config);
18
+ * const command = new SearchChannelsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link SearchChannelsCommandInput} for command's `input` shape.
23
+ * @see {@link SearchChannelsCommandOutput} for command's `response` shape.
24
+ * @see {@link ChimeSDKMessagingClientResolvedConfig | config} for ChimeSDKMessagingClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class SearchChannelsCommand extends $Command<SearchChannelsCommandInput, SearchChannelsCommandOutput, ChimeSDKMessagingClientResolvedConfig> {
28
+ readonly input: SearchChannelsCommandInput;
29
+ constructor(input: SearchChannelsCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ChimeSDKMessagingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchChannelsCommandInput, SearchChannelsCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -36,6 +36,7 @@ export * from "./ListChannelsModeratedByAppInstanceUserCommand";
36
36
  export * from "./ListTagsForResourceCommand";
37
37
  export * from "./PutChannelMembershipPreferencesCommand";
38
38
  export * from "./RedactChannelMessageCommand";
39
+ export * from "./SearchChannelsCommand";
39
40
  export * from "./SendChannelMessageCommand";
40
41
  export * from "./TagResourceCommand";
41
42
  export * from "./UntagResourceCommand";
@@ -18,7 +18,7 @@ export interface AppInstanceUserMembershipSummary {
18
18
  */
19
19
  Type?: ChannelMembershipType | string;
20
20
  /**
21
- * <p>The time at which a message was last read.</p>
21
+ * <p>The time at which an <code>AppInstanceUser</code> last marked a channel as read.</p>
22
22
  */
23
23
  ReadMarkerTimestamp?: Date;
24
24
  }
@@ -586,9 +586,7 @@ export interface ChannelMessageCallback {
586
586
  /**
587
587
  * <p>The attributes for the message, used for message filtering along with a <code>FilterRule</code> defined in the <code>PushNotificationPreferences</code>. </p>
588
588
  */
589
- MessageAttributes?: {
590
- [key: string]: MessageAttributeValue;
591
- };
589
+ MessageAttributes?: Record<string, MessageAttributeValue>;
592
590
  }
593
591
  export declare namespace ChannelMessageCallback {
594
592
  /**
@@ -759,7 +757,7 @@ export interface PushNotificationPreferences {
759
757
  */
760
758
  AllowNotifications: AllowNotifications | string | undefined;
761
759
  /**
762
- * <p>The simple JSON object used to send a subset of a push notification to the requsted member.</p>
760
+ * <p>The simple JSON object used to send a subset of a push notification to the requested member.</p>
763
761
  */
764
762
  FilterRule?: string;
765
763
  }
@@ -887,9 +885,7 @@ export interface ChannelMessage {
887
885
  /**
888
886
  * <p>The attributes for the message, used for message filtering along with a <code>FilterRule</code> defined in the <code>PushNotificationPreferences</code>.</p>
889
887
  */
890
- MessageAttributes?: {
891
- [key: string]: MessageAttributeValue;
892
- };
888
+ MessageAttributes?: Record<string, MessageAttributeValue>;
893
889
  }
894
890
  export declare namespace ChannelMessage {
895
891
  /**
@@ -945,9 +941,7 @@ export interface ChannelMessageSummary {
945
941
  /**
946
942
  * <p>The message attribues listed in a the summary of a channel message.</p>
947
943
  */
948
- MessageAttributes?: {
949
- [key: string]: MessageAttributeValue;
950
- };
944
+ MessageAttributes?: Record<string, MessageAttributeValue>;
951
945
  }
952
946
  export declare namespace ChannelMessageSummary {
953
947
  /**
@@ -1068,6 +1062,18 @@ export interface CreateChannelRequest {
1068
1062
  * <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
1069
1063
  */
1070
1064
  ChimeBearer: string | undefined;
1065
+ /**
1066
+ * <p>The ID of the channel in the request.</p>
1067
+ */
1068
+ ChannelId?: string;
1069
+ /**
1070
+ * <p>The ARNs of the channel members in the request.</p>
1071
+ */
1072
+ MemberArns?: string[];
1073
+ /**
1074
+ * <p>The ARNs of the channel moderators in the request.</p>
1075
+ */
1076
+ ModeratorArns?: string[];
1071
1077
  }
1072
1078
  export declare namespace CreateChannelRequest {
1073
1079
  /**
@@ -1896,7 +1902,7 @@ export declare namespace ListChannelMembershipsForAppInstanceUserRequest {
1896
1902
  }
1897
1903
  export interface ListChannelMembershipsForAppInstanceUserResponse {
1898
1904
  /**
1899
- * <p>The token passed by previous API calls until all requested users are returned.</p>
1905
+ * <p>The information for the requested channel memberships.</p>
1900
1906
  */
1901
1907
  ChannelMemberships?: ChannelMembershipForAppInstanceUserSummary[];
1902
1908
  /**
@@ -2246,6 +2252,81 @@ export declare namespace RedactChannelMessageResponse {
2246
2252
  */
2247
2253
  const filterSensitiveLog: (obj: RedactChannelMessageResponse) => any;
2248
2254
  }
2255
+ export declare enum SearchFieldKey {
2256
+ MEMBERS = "MEMBERS"
2257
+ }
2258
+ export declare enum SearchFieldOperator {
2259
+ EQUALS = "EQUALS",
2260
+ INCLUDES = "INCLUDES"
2261
+ }
2262
+ /**
2263
+ * <p>A <code>Field</code> of the channel that you want to search.</p>
2264
+ */
2265
+ export interface SearchField {
2266
+ /**
2267
+ * <p>An <code>enum</code> value that indicates the key to search the channel on. <code>MEMBERS</code> allows you to search channels based on memberships. You can use it with the <code>EQUALS</code>
2268
+ * operator to get channels whose memberships are equal to the specified values, and with the <code>INCLUDES</code> operator to get channels whose memberships include the specified values.</p>
2269
+ */
2270
+ Key: SearchFieldKey | string | undefined;
2271
+ /**
2272
+ * <p>The values that you want to search for, a list of strings. The values must be <code>AppInstanceUserArns</code> specified as a list of strings.</p>
2273
+ * <note>
2274
+ * <p>This operation isn't supported for <code>AppInstanceUsers</code> with large number of memberships.</p>
2275
+ * </note>
2276
+ */
2277
+ Values: string[] | undefined;
2278
+ /**
2279
+ * <p>The operator used to compare field values, currently <code>EQUALS</code> or <code>INCLUDES</code>. Use the <code>EQUALS</code> operator to find channels whose memberships equal the specified values.
2280
+ * Use the <code>INCLUDES</code> operator to find channels whose memberships include the specified values.</p>
2281
+ */
2282
+ Operator: SearchFieldOperator | string | undefined;
2283
+ }
2284
+ export declare namespace SearchField {
2285
+ /**
2286
+ * @internal
2287
+ */
2288
+ const filterSensitiveLog: (obj: SearchField) => any;
2289
+ }
2290
+ export interface SearchChannelsRequest {
2291
+ /**
2292
+ * <p>The <code>AppInstanceUserArn</code> of the user making the API call.</p>
2293
+ */
2294
+ ChimeBearer?: string;
2295
+ /**
2296
+ * <p>A list of the <code>Field</code> objects in the channel being searched.</p>
2297
+ */
2298
+ Fields: SearchField[] | undefined;
2299
+ /**
2300
+ * <p>The maximum number of channels that you want returned.</p>
2301
+ */
2302
+ MaxResults?: number;
2303
+ /**
2304
+ * <p>The token returned from previous API requests until the number of channels is reached.</p>
2305
+ */
2306
+ NextToken?: string;
2307
+ }
2308
+ export declare namespace SearchChannelsRequest {
2309
+ /**
2310
+ * @internal
2311
+ */
2312
+ const filterSensitiveLog: (obj: SearchChannelsRequest) => any;
2313
+ }
2314
+ export interface SearchChannelsResponse {
2315
+ /**
2316
+ * <p>A list of the channels in the request.</p>
2317
+ */
2318
+ Channels?: ChannelSummary[];
2319
+ /**
2320
+ * <p>The token returned from previous API responses until the number of channels is reached.</p>
2321
+ */
2322
+ NextToken?: string;
2323
+ }
2324
+ export declare namespace SearchChannelsResponse {
2325
+ /**
2326
+ * @internal
2327
+ */
2328
+ const filterSensitiveLog: (obj: SearchChannelsResponse) => any;
2329
+ }
2249
2330
  export interface SendChannelMessageRequest {
2250
2331
  /**
2251
2332
  * <p>The ARN of the channel.</p>
@@ -2282,9 +2363,7 @@ export interface SendChannelMessageRequest {
2282
2363
  /**
2283
2364
  * <p>The attributes for the message, used for message filtering along with a <code>FilterRule</code> defined in the <code>PushNotificationPreferences</code>.</p>
2284
2365
  */
2285
- MessageAttributes?: {
2286
- [key: string]: MessageAttributeValue;
2287
- };
2366
+ MessageAttributes?: Record<string, MessageAttributeValue>;
2288
2367
  }
2289
2368
  export declare namespace SendChannelMessageRequest {
2290
2369
  /**
@@ -2352,11 +2431,11 @@ export interface UpdateChannelRequest {
2352
2431
  /**
2353
2432
  * <p>The name of the channel.</p>
2354
2433
  */
2355
- Name: string | undefined;
2434
+ Name?: string;
2356
2435
  /**
2357
2436
  * <p>The mode of the update request.</p>
2358
2437
  */
2359
- Mode: ChannelMode | string | undefined;
2438
+ Mode?: ChannelMode | string;
2360
2439
  /**
2361
2440
  * <p>The metadata for the update request.</p>
2362
2441
  */
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "../commands/SearchChannelsCommand";
3
+ import { ChimeSDKMessagingPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateSearchChannels(config: ChimeSDKMessagingPaginationConfiguration, input: SearchChannelsCommandInput, ...additionalArguments: any): Paginator<SearchChannelsCommandOutput>;
@@ -8,3 +8,4 @@ export * from "./ListChannelModeratorsPaginator";
8
8
  export * from "./ListChannelsAssociatedWithChannelFlowPaginator";
9
9
  export * from "./ListChannelsModeratedByAppInstanceUserPaginator";
10
10
  export * from "./ListChannelsPaginator";
11
+ export * from "./SearchChannelsPaginator";
@@ -38,6 +38,7 @@ import { ListChannelsModeratedByAppInstanceUserCommandInput, ListChannelsModerat
38
38
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
39
39
  import { PutChannelMembershipPreferencesCommandInput, PutChannelMembershipPreferencesCommandOutput } from "../commands/PutChannelMembershipPreferencesCommand";
40
40
  import { RedactChannelMessageCommandInput, RedactChannelMessageCommandOutput } from "../commands/RedactChannelMessageCommand";
41
+ import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "../commands/SearchChannelsCommand";
41
42
  import { SendChannelMessageCommandInput, SendChannelMessageCommandOutput } from "../commands/SendChannelMessageCommand";
42
43
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
43
44
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
@@ -83,6 +84,7 @@ export declare const serializeAws_restJson1ListChannelsModeratedByAppInstanceUse
83
84
  export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
84
85
  export declare const serializeAws_restJson1PutChannelMembershipPreferencesCommand: (input: PutChannelMembershipPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
85
86
  export declare const serializeAws_restJson1RedactChannelMessageCommand: (input: RedactChannelMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
+ export declare const serializeAws_restJson1SearchChannelsCommand: (input: SearchChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
86
88
  export declare const serializeAws_restJson1SendChannelMessageCommand: (input: SendChannelMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
89
  export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
88
90
  export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -128,6 +130,7 @@ export declare const deserializeAws_restJson1ListChannelsModeratedByAppInstanceU
128
130
  export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
129
131
  export declare const deserializeAws_restJson1PutChannelMembershipPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutChannelMembershipPreferencesCommandOutput>;
130
132
  export declare const deserializeAws_restJson1RedactChannelMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RedactChannelMessageCommandOutput>;
133
+ export declare const deserializeAws_restJson1SearchChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchChannelsCommandOutput>;
131
134
  export declare const deserializeAws_restJson1SendChannelMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendChannelMessageCommandOutput>;
132
135
  export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
133
136
  export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;