@aws-sdk/client-chime-sdk-messaging 3.54.1 → 3.55.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 (66) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-cjs/ChimeSDKMessagingClient.js +13 -13
  3. package/dist-cjs/commands/AssociateChannelFlowCommand.js +3 -3
  4. package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +3 -3
  5. package/dist-cjs/commands/ChannelFlowCallbackCommand.js +3 -3
  6. package/dist-cjs/commands/CreateChannelBanCommand.js +3 -3
  7. package/dist-cjs/commands/CreateChannelCommand.js +3 -3
  8. package/dist-cjs/commands/CreateChannelFlowCommand.js +3 -3
  9. package/dist-cjs/commands/CreateChannelMembershipCommand.js +3 -3
  10. package/dist-cjs/commands/CreateChannelModeratorCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteChannelBanCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteChannelCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteChannelFlowCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteChannelMembershipCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteChannelMessageCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteChannelModeratorCommand.js +3 -3
  17. package/dist-cjs/commands/DescribeChannelBanCommand.js +3 -3
  18. package/dist-cjs/commands/DescribeChannelCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeChannelFlowCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeChannelMembershipCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeChannelModeratorCommand.js +3 -3
  24. package/dist-cjs/commands/DisassociateChannelFlowCommand.js +3 -3
  25. package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +3 -3
  26. package/dist-cjs/commands/GetChannelMessageCommand.js +3 -3
  27. package/dist-cjs/commands/GetChannelMessageStatusCommand.js +3 -3
  28. package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +3 -3
  29. package/dist-cjs/commands/ListChannelBansCommand.js +3 -3
  30. package/dist-cjs/commands/ListChannelFlowsCommand.js +3 -3
  31. package/dist-cjs/commands/ListChannelMembershipsCommand.js +3 -3
  32. package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
  33. package/dist-cjs/commands/ListChannelMessagesCommand.js +3 -3
  34. package/dist-cjs/commands/ListChannelModeratorsCommand.js +3 -3
  35. package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +3 -3
  36. package/dist-cjs/commands/ListChannelsCommand.js +3 -3
  37. package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
  38. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  39. package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +3 -3
  40. package/dist-cjs/commands/RedactChannelMessageCommand.js +3 -3
  41. package/dist-cjs/commands/SendChannelMessageCommand.js +3 -3
  42. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  43. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  44. package/dist-cjs/commands/UpdateChannelCommand.js +3 -3
  45. package/dist-cjs/commands/UpdateChannelFlowCommand.js +3 -3
  46. package/dist-cjs/commands/UpdateChannelMessageCommand.js +3 -3
  47. package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +3 -3
  48. package/dist-cjs/endpoints.js +1 -1
  49. package/dist-cjs/protocols/Aws_restJson1.js +263 -263
  50. package/dist-cjs/runtimeConfig.browser.js +4 -4
  51. package/dist-cjs/runtimeConfig.js +9 -9
  52. package/dist-cjs/runtimeConfig.native.js +1 -1
  53. package/dist-es/ChimeSDKMessaging.js +45 -45
  54. package/dist-es/pagination/ListChannelBansPaginator.js +4 -4
  55. package/dist-es/pagination/ListChannelFlowsPaginator.js +4 -4
  56. package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +4 -4
  57. package/dist-es/pagination/ListChannelMembershipsPaginator.js +4 -4
  58. package/dist-es/pagination/ListChannelMessagesPaginator.js +4 -4
  59. package/dist-es/pagination/ListChannelModeratorsPaginator.js +4 -4
  60. package/dist-es/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +4 -4
  61. package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +4 -4
  62. package/dist-es/pagination/ListChannelsPaginator.js +4 -4
  63. package/dist-es/protocols/Aws_restJson1.js +45 -45
  64. package/dist-types/runtimeConfig.native.d.ts +2 -2
  65. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  66. package/package.json +34 -34
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelModeratorsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelModeratorsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listChannelModerators.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listChannelModerators.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListChannelModerators(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ChimeSDKMessaging)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof ChimeSDKMessagingClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsAssociatedWithChannelFlowCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsAssociatedWithChannelFlowCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listChannelsAssociatedWithChannelFlow.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listChannelsAssociatedWithChannelFlow.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListChannelsAssociatedWithChannelFlow(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ChimeSDKMessaging)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof ChimeSDKMessagingClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsModeratedByAppInstanceUserCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsModeratedByAppInstanceUserCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listChannelsModeratedByAppInstanceUser.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listChannelsModeratedByAppInstanceUser.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListChannelsModeratedByAppInstanceUser(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ChimeSDKMessaging)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof ChimeSDKMessagingClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listChannels.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listChannels.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListChannels(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ChimeSDKMessaging)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof ChimeSDKMessagingClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -12,7 +12,7 @@ export var serializeAws_restJson1AssociateChannelFlowCommand = function (input,
12
12
  case 1:
13
13
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
14
14
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
15
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/channel-flow";
15
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/channel-flow";
16
16
  if (input.ChannelArn !== undefined) {
17
17
  labelValue = input.ChannelArn;
18
18
  if (labelValue.length <= 0) {
@@ -45,7 +45,7 @@ export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function
45
45
  case 1:
46
46
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
47
47
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
48
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
48
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
49
49
  if (input.ChannelArn !== undefined) {
50
50
  labelValue = input.ChannelArn;
51
51
  if (labelValue.length <= 0) {
@@ -85,7 +85,7 @@ export var serializeAws_restJson1ChannelFlowCallbackCommand = function (input, c
85
85
  headers = {
86
86
  "content-type": "application/json",
87
87
  };
88
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
88
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
89
89
  if (input.ChannelArn !== undefined) {
90
90
  labelValue = input.ChannelArn;
91
91
  if (labelValue.length <= 0) {
@@ -126,7 +126,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
126
126
  case 1:
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
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
129
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
130
130
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined &&
131
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 &&
132
132
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
@@ -150,7 +150,7 @@ export var serializeAws_restJson1CreateChannelBanCommand = function (input, cont
150
150
  case 1:
151
151
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
152
152
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
153
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans";
153
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans";
154
154
  if (input.ChannelArn !== undefined) {
155
155
  labelValue = input.ChannelArn;
156
156
  if (labelValue.length <= 0) {
@@ -184,7 +184,7 @@ export var serializeAws_restJson1CreateChannelFlowCommand = function (input, con
184
184
  headers = {
185
185
  "content-type": "application/json",
186
186
  };
187
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
187
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
188
188
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined &&
189
189
  input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.ClientRequestToken !== undefined &&
190
190
  input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Processors !== undefined &&
@@ -210,7 +210,7 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
210
210
  case 1:
211
211
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
212
212
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
213
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
213
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
214
214
  if (input.ChannelArn !== undefined) {
215
215
  labelValue = input.ChannelArn;
216
216
  if (labelValue.length <= 0) {
@@ -242,7 +242,7 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
242
242
  case 1:
243
243
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
244
244
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
245
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/moderators";
245
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/moderators";
246
246
  if (input.ChannelArn !== undefined) {
247
247
  labelValue = input.ChannelArn;
248
248
  if (labelValue.length <= 0) {
@@ -275,7 +275,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
275
275
  case 1:
276
276
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
277
277
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
278
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
278
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
279
279
  if (input.ChannelArn !== undefined) {
280
280
  labelValue = input.ChannelArn;
281
281
  if (labelValue.length <= 0) {
@@ -306,7 +306,7 @@ export var serializeAws_restJson1DeleteChannelBanCommand = function (input, cont
306
306
  case 1:
307
307
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
308
308
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
309
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans/{MemberArn}";
309
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans/{MemberArn}";
310
310
  if (input.ChannelArn !== undefined) {
311
311
  labelValue = input.ChannelArn;
312
312
  if (labelValue.length <= 0) {
@@ -347,7 +347,7 @@ export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, con
347
347
  case 1:
348
348
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
349
349
  headers = {};
350
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
350
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
351
351
  if (input.ChannelFlowArn !== undefined) {
352
352
  labelValue = input.ChannelFlowArn;
353
353
  if (labelValue.length <= 0) {
@@ -378,7 +378,7 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
378
378
  case 1:
379
379
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
380
380
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
381
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
381
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
382
382
  "/channels/{ChannelArn}/memberships/{MemberArn}";
383
383
  if (input.ChannelArn !== undefined) {
384
384
  labelValue = input.ChannelArn;
@@ -420,7 +420,7 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
420
420
  case 1:
421
421
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
422
422
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
423
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
423
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
424
424
  "/channels/{ChannelArn}/messages/{MessageId}";
425
425
  if (input.ChannelArn !== undefined) {
426
426
  labelValue = input.ChannelArn;
@@ -462,7 +462,7 @@ export var serializeAws_restJson1DeleteChannelModeratorCommand = function (input
462
462
  case 1:
463
463
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
464
464
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
465
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
465
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
466
466
  "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}";
467
467
  if (input.ChannelArn !== undefined) {
468
468
  labelValue = input.ChannelArn;
@@ -504,7 +504,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
504
504
  case 1:
505
505
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
506
506
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
507
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
507
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
508
508
  if (input.ChannelArn !== undefined) {
509
509
  labelValue = input.ChannelArn;
510
510
  if (labelValue.length <= 0) {
@@ -535,7 +535,7 @@ export var serializeAws_restJson1DescribeChannelBanCommand = function (input, co
535
535
  case 1:
536
536
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
537
537
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
538
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans/{MemberArn}";
538
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans/{MemberArn}";
539
539
  if (input.ChannelArn !== undefined) {
540
540
  labelValue = input.ChannelArn;
541
541
  if (labelValue.length <= 0) {
@@ -576,7 +576,7 @@ export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, c
576
576
  case 1:
577
577
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
578
578
  headers = {};
579
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
579
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
580
580
  if (input.ChannelFlowArn !== undefined) {
581
581
  labelValue = input.ChannelFlowArn;
582
582
  if (labelValue.length <= 0) {
@@ -607,7 +607,7 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
607
607
  case 1:
608
608
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
609
609
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
610
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
610
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
611
611
  "/channels/{ChannelArn}/memberships/{MemberArn}";
612
612
  if (input.ChannelArn !== undefined) {
613
613
  labelValue = input.ChannelArn;
@@ -649,7 +649,7 @@ export var serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserComm
649
649
  case 1:
650
650
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
651
651
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
652
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
652
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
653
653
  if (input.ChannelArn !== undefined) {
654
654
  labelValue = input.ChannelArn;
655
655
  if (labelValue.length <= 0) {
@@ -682,7 +682,7 @@ export var serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComman
682
682
  case 1:
683
683
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
684
684
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
685
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
685
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
686
686
  if (input.ChannelArn !== undefined) {
687
687
  labelValue = input.ChannelArn;
688
688
  if (labelValue.length <= 0) {
@@ -715,7 +715,7 @@ export var serializeAws_restJson1DescribeChannelModeratorCommand = function (inp
715
715
  case 1:
716
716
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
717
717
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
718
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
718
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
719
719
  "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}";
720
720
  if (input.ChannelArn !== undefined) {
721
721
  labelValue = input.ChannelArn;
@@ -757,7 +757,7 @@ export var serializeAws_restJson1DisassociateChannelFlowCommand = function (inpu
757
757
  case 1:
758
758
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
759
759
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
760
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
760
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
761
761
  "/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}";
762
762
  if (input.ChannelArn !== undefined) {
763
763
  labelValue = input.ChannelArn;
@@ -799,7 +799,7 @@ export var serializeAws_restJson1GetChannelMembershipPreferencesCommand = functi
799
799
  case 1:
800
800
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
801
801
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
802
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
802
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
803
803
  "/channels/{ChannelArn}/memberships/{MemberArn}/preferences";
804
804
  if (input.ChannelArn !== undefined) {
805
805
  labelValue = input.ChannelArn;
@@ -841,7 +841,7 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
841
841
  case 1:
842
842
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
843
843
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
844
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
844
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
845
845
  "/channels/{ChannelArn}/messages/{MessageId}";
846
846
  if (input.ChannelArn !== undefined) {
847
847
  labelValue = input.ChannelArn;
@@ -883,7 +883,7 @@ export var serializeAws_restJson1GetChannelMessageStatusCommand = function (inpu
883
883
  case 1:
884
884
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
885
885
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
886
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
886
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
887
887
  "/channels/{ChannelArn}/messages/{MessageId}";
888
888
  if (input.ChannelArn !== undefined) {
889
889
  labelValue = input.ChannelArn;
@@ -931,7 +931,7 @@ export var serializeAws_restJson1GetMessagingSessionEndpointCommand = function (
931
931
  headers = {
932
932
  "content-type": "application/json",
933
933
  };
934
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/endpoints/messaging-session";
934
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/endpoints/messaging-session";
935
935
  body = "";
936
936
  return [2, new __HttpRequest({
937
937
  protocol: protocol,
@@ -953,7 +953,7 @@ export var serializeAws_restJson1ListChannelBansCommand = function (input, conte
953
953
  case 1:
954
954
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
955
955
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
956
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans";
956
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans";
957
957
  if (input.ChannelArn !== undefined) {
958
958
  labelValue = input.ChannelArn;
959
959
  if (labelValue.length <= 0) {
@@ -986,7 +986,7 @@ export var serializeAws_restJson1ListChannelFlowsCommand = function (input, cont
986
986
  case 1:
987
987
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
988
988
  headers = {};
989
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
989
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
990
990
  query = __assign(__assign(__assign({}, (input.AppInstanceArn !== undefined && { "app-instance-arn": input.AppInstanceArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
991
991
  return [2, new __HttpRequest({
992
992
  protocol: protocol,
@@ -1009,7 +1009,7 @@ export var serializeAws_restJson1ListChannelMembershipsCommand = function (input
1009
1009
  case 1:
1010
1010
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1011
1011
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1012
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
1012
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
1013
1013
  if (input.ChannelArn !== undefined) {
1014
1014
  labelValue = input.ChannelArn;
1015
1015
  if (labelValue.length <= 0) {
@@ -1042,7 +1042,7 @@ export var serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
1042
1042
  case 1:
1043
1043
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1044
1044
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1045
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1045
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1046
1046
  query = __assign(__assign(__assign({ scope: "app-instance-user-memberships" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
1047
1047
  return [2, new __HttpRequest({
1048
1048
  protocol: protocol,
@@ -1065,7 +1065,7 @@ export var serializeAws_restJson1ListChannelMessagesCommand = function (input, c
1065
1065
  case 1:
1066
1066
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1067
1067
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1068
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
1068
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
1069
1069
  if (input.ChannelArn !== undefined) {
1070
1070
  labelValue = input.ChannelArn;
1071
1071
  if (labelValue.length <= 0) {
@@ -1100,7 +1100,7 @@ export var serializeAws_restJson1ListChannelModeratorsCommand = function (input,
1100
1100
  case 1:
1101
1101
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1102
1102
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1103
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/moderators";
1103
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/moderators";
1104
1104
  if (input.ChannelArn !== undefined) {
1105
1105
  labelValue = input.ChannelArn;
1106
1106
  if (labelValue.length <= 0) {
@@ -1133,7 +1133,7 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
1133
1133
  case 1:
1134
1134
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1135
1135
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1136
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1136
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1137
1137
  query = __assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined && { "app-instance-arn": input.AppInstanceArn })), (input.Privacy !== undefined && { privacy: input.Privacy })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
1138
1138
  return [2, new __HttpRequest({
1139
1139
  protocol: protocol,
@@ -1156,7 +1156,7 @@ export var serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand =
1156
1156
  case 1:
1157
1157
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1158
1158
  headers = {};
1159
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1159
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1160
1160
  query = __assign(__assign(__assign({ scope: "channel-flow-associations" }, (input.ChannelFlowArn !== undefined && { "channel-flow-arn": input.ChannelFlowArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
1161
1161
  return [2, new __HttpRequest({
1162
1162
  protocol: protocol,
@@ -1179,7 +1179,7 @@ export var serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand =
1179
1179
  case 1:
1180
1180
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1181
1181
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1182
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1182
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
1183
1183
  query = __assign(__assign(__assign({ scope: "app-instance-user-moderated-channels" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
1184
1184
  return [2, new __HttpRequest({
1185
1185
  protocol: protocol,
@@ -1202,7 +1202,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
1202
1202
  case 1:
1203
1203
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1204
1204
  headers = {};
1205
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1205
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1206
1206
  query = __assign({}, (input.ResourceARN !== undefined && { arn: input.ResourceARN }));
1207
1207
  return [2, new __HttpRequest({
1208
1208
  protocol: protocol,
@@ -1225,7 +1225,7 @@ export var serializeAws_restJson1PutChannelMembershipPreferencesCommand = functi
1225
1225
  case 1:
1226
1226
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1227
1227
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1228
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1228
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1229
1229
  "/channels/{ChannelArn}/memberships/{MemberArn}/preferences";
1230
1230
  if (input.ChannelArn !== undefined) {
1231
1231
  labelValue = input.ChannelArn;
@@ -1271,7 +1271,7 @@ export var serializeAws_restJson1RedactChannelMessageCommand = function (input,
1271
1271
  case 1:
1272
1272
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1273
1273
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1274
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1274
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1275
1275
  "/channels/{ChannelArn}/messages/{MessageId}";
1276
1276
  if (input.ChannelArn !== undefined) {
1277
1277
  labelValue = input.ChannelArn;
@@ -1318,7 +1318,7 @@ export var serializeAws_restJson1SendChannelMessageCommand = function (input, co
1318
1318
  case 1:
1319
1319
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1320
1320
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1321
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
1321
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
1322
1322
  if (input.ChannelArn !== undefined) {
1323
1323
  labelValue = input.ChannelArn;
1324
1324
  if (labelValue.length <= 0) {
@@ -1358,7 +1358,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1358
1358
  headers = {
1359
1359
  "content-type": "application/json",
1360
1360
  };
1361
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1361
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1362
1362
  query = {
1363
1363
  operation: "tag-resource",
1364
1364
  };
@@ -1387,7 +1387,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1387
1387
  headers = {
1388
1388
  "content-type": "application/json",
1389
1389
  };
1390
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1390
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1391
1391
  query = {
1392
1392
  operation: "untag-resource",
1393
1393
  };
@@ -1414,7 +1414,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
1414
1414
  case 1:
1415
1415
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1416
1416
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1417
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
1417
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
1418
1418
  if (input.ChannelArn !== undefined) {
1419
1419
  labelValue = input.ChannelArn;
1420
1420
  if (labelValue.length <= 0) {
@@ -1448,7 +1448,7 @@ export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, con
1448
1448
  headers = {
1449
1449
  "content-type": "application/json",
1450
1450
  };
1451
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
1451
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
1452
1452
  if (input.ChannelFlowArn !== undefined) {
1453
1453
  labelValue = input.ChannelFlowArn;
1454
1454
  if (labelValue.length <= 0) {
@@ -1481,7 +1481,7 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
1481
1481
  case 1:
1482
1482
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1483
1483
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1484
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1484
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1485
1485
  "/channels/{ChannelArn}/messages/{MessageId}";
1486
1486
  if (input.ChannelArn !== undefined) {
1487
1487
  labelValue = input.ChannelArn;
@@ -1524,7 +1524,7 @@ export var serializeAws_restJson1UpdateChannelReadMarkerCommand = function (inpu
1524
1524
  case 1:
1525
1525
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1526
1526
  headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
1527
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/readMarker";
1527
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/readMarker";
1528
1528
  if (input.ChannelArn !== undefined) {
1529
1529
  labelValue = input.ChannelArn;
1530
1530
  if (labelValue.length <= 0) {
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: ChimeSDKMessagingClientConfig) =
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: ChimeSDKMessagingClientConfig) =
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;