@aws-sdk/client-chime-sdk-messaging 3.474.0 → 3.477.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.
@@ -3,44 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_UpdateChannelMessageCommand = exports.se_UpdateChannelFlowCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendChannelMessageCommand = exports.se_SearchChannelsCommand = exports.se_RedactChannelMessageCommand = exports.se_PutMessagingStreamingConfigurationsCommand = exports.se_PutChannelMembershipPreferencesCommand = exports.se_PutChannelExpirationSettingsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubChannelsCommand = exports.se_ListChannelsModeratedByAppInstanceUserCommand = exports.se_ListChannelsAssociatedWithChannelFlowCommand = exports.se_ListChannelsCommand = exports.se_ListChannelModeratorsCommand = exports.se_ListChannelMessagesCommand = exports.se_ListChannelMembershipsForAppInstanceUserCommand = exports.se_ListChannelMembershipsCommand = exports.se_ListChannelFlowsCommand = exports.se_ListChannelBansCommand = exports.se_GetMessagingStreamingConfigurationsCommand = exports.se_GetMessagingSessionEndpointCommand = exports.se_GetChannelMessageStatusCommand = exports.se_GetChannelMessageCommand = exports.se_GetChannelMembershipPreferencesCommand = exports.se_DisassociateChannelFlowCommand = exports.se_DescribeChannelModeratorCommand = exports.se_DescribeChannelModeratedByAppInstanceUserCommand = exports.se_DescribeChannelMembershipForAppInstanceUserCommand = exports.se_DescribeChannelMembershipCommand = exports.se_DescribeChannelFlowCommand = exports.se_DescribeChannelBanCommand = exports.se_DescribeChannelCommand = exports.se_DeleteMessagingStreamingConfigurationsCommand = exports.se_DeleteChannelModeratorCommand = exports.se_DeleteChannelMessageCommand = exports.se_DeleteChannelMembershipCommand = exports.se_DeleteChannelFlowCommand = exports.se_DeleteChannelBanCommand = exports.se_DeleteChannelCommand = exports.se_CreateChannelModeratorCommand = exports.se_CreateChannelMembershipCommand = exports.se_CreateChannelFlowCommand = exports.se_CreateChannelBanCommand = exports.se_CreateChannelCommand = exports.se_ChannelFlowCallbackCommand = exports.se_BatchCreateChannelMembershipCommand = exports.se_AssociateChannelFlowCommand = void 0;
4
4
  exports.de_UpdateChannelFlowCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendChannelMessageCommand = exports.de_SearchChannelsCommand = exports.de_RedactChannelMessageCommand = exports.de_PutMessagingStreamingConfigurationsCommand = exports.de_PutChannelMembershipPreferencesCommand = exports.de_PutChannelExpirationSettingsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubChannelsCommand = exports.de_ListChannelsModeratedByAppInstanceUserCommand = exports.de_ListChannelsAssociatedWithChannelFlowCommand = exports.de_ListChannelsCommand = exports.de_ListChannelModeratorsCommand = exports.de_ListChannelMessagesCommand = exports.de_ListChannelMembershipsForAppInstanceUserCommand = exports.de_ListChannelMembershipsCommand = exports.de_ListChannelFlowsCommand = exports.de_ListChannelBansCommand = exports.de_GetMessagingStreamingConfigurationsCommand = exports.de_GetMessagingSessionEndpointCommand = exports.de_GetChannelMessageStatusCommand = exports.de_GetChannelMessageCommand = exports.de_GetChannelMembershipPreferencesCommand = exports.de_DisassociateChannelFlowCommand = exports.de_DescribeChannelModeratorCommand = exports.de_DescribeChannelModeratedByAppInstanceUserCommand = exports.de_DescribeChannelMembershipForAppInstanceUserCommand = exports.de_DescribeChannelMembershipCommand = exports.de_DescribeChannelFlowCommand = exports.de_DescribeChannelBanCommand = exports.de_DescribeChannelCommand = exports.de_DeleteMessagingStreamingConfigurationsCommand = exports.de_DeleteChannelModeratorCommand = exports.de_DeleteChannelMessageCommand = exports.de_DeleteChannelMembershipCommand = exports.de_DeleteChannelFlowCommand = exports.de_DeleteChannelBanCommand = exports.de_DeleteChannelCommand = exports.de_CreateChannelModeratorCommand = exports.de_CreateChannelMembershipCommand = exports.de_CreateChannelFlowCommand = exports.de_CreateChannelBanCommand = exports.de_CreateChannelCommand = exports.de_ChannelFlowCallbackCommand = exports.de_BatchCreateChannelMembershipCommand = exports.de_AssociateChannelFlowCommand = exports.se_UpdateChannelReadMarkerCommand = void 0;
5
5
  exports.de_UpdateChannelReadMarkerCommand = exports.de_UpdateChannelMessageCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const ChimeSDKMessagingServiceException_1 = require("../models/ChimeSDKMessagingServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AssociateChannelFlowCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
14
14
  "content-type": "application/json",
15
- "x-amz-chime-bearer": input.ChimeBearer,
15
+ [_xacb]: input[_CB],
16
16
  });
17
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/channel-flow";
18
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
17
+ b.bp("/channels/{ChannelArn}/channel-flow");
18
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
19
19
  let body;
20
20
  body = JSON.stringify((0, smithy_client_1.take)(input, {
21
21
  ChannelFlowArn: [],
22
22
  }));
23
- return new protocol_http_1.HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "PUT",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
23
+ b.m("PUT").h(headers).b(body);
24
+ return b.build();
32
25
  };
33
26
  exports.se_AssociateChannelFlowCommand = se_AssociateChannelFlowCommand;
34
27
  const se_BatchCreateChannelMembershipCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = (0, core_1.requestBuilder)(input, context);
36
29
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
37
30
  "content-type": "application/json",
38
- "x-amz-chime-bearer": input.ChimeBearer,
31
+ [_xacb]: input[_CB],
39
32
  });
40
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
41
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
33
+ b.bp("/channels/{ChannelArn}/memberships");
34
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
42
35
  const query = (0, smithy_client_1.map)({
43
- operation: [, "batch-create"],
36
+ [_o]: [, "batch-create"],
44
37
  });
45
38
  let body;
46
39
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -48,27 +41,19 @@ const se_BatchCreateChannelMembershipCommand = async (input, context) => {
48
41
  SubChannelId: [],
49
42
  Type: [],
50
43
  }));
51
- return new protocol_http_1.HttpRequest({
52
- protocol,
53
- hostname,
54
- port,
55
- method: "POST",
56
- headers,
57
- path: resolvedPath,
58
- query,
59
- body,
60
- });
44
+ b.m("POST").h(headers).q(query).b(body);
45
+ return b.build();
61
46
  };
62
47
  exports.se_BatchCreateChannelMembershipCommand = se_BatchCreateChannelMembershipCommand;
63
48
  const se_ChannelFlowCallbackCommand = async (input, context) => {
64
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = (0, core_1.requestBuilder)(input, context);
65
50
  const headers = {
66
51
  "content-type": "application/json",
67
52
  };
68
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
69
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
53
+ b.bp("/channels/{ChannelArn}");
54
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
70
55
  const query = (0, smithy_client_1.map)({
71
- operation: [, "channel-flow-callback"],
56
+ [_o]: [, "channel-flow-callback"],
72
57
  });
73
58
  let body;
74
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -76,25 +61,17 @@ const se_ChannelFlowCallbackCommand = async (input, context) => {
76
61
  ChannelMessage: (_) => (0, smithy_client_1._json)(_),
77
62
  DeleteResource: [],
78
63
  }));
79
- return new protocol_http_1.HttpRequest({
80
- protocol,
81
- hostname,
82
- port,
83
- method: "POST",
84
- headers,
85
- path: resolvedPath,
86
- query,
87
- body,
88
- });
64
+ b.m("POST").h(headers).q(query).b(body);
65
+ return b.build();
89
66
  };
90
67
  exports.se_ChannelFlowCallbackCommand = se_ChannelFlowCallbackCommand;
91
68
  const se_CreateChannelCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
93
70
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
94
71
  "content-type": "application/json",
95
- "x-amz-chime-bearer": input.ChimeBearer,
72
+ [_xacb]: input[_CB],
96
73
  });
97
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
74
+ b.bp("/channels");
98
75
  let body;
99
76
  body = JSON.stringify((0, smithy_client_1.take)(input, {
100
77
  AppInstanceArn: [],
@@ -110,46 +87,32 @@ const se_CreateChannelCommand = async (input, context) => {
110
87
  Privacy: [],
111
88
  Tags: (_) => (0, smithy_client_1._json)(_),
112
89
  }));
113
- return new protocol_http_1.HttpRequest({
114
- protocol,
115
- hostname,
116
- port,
117
- method: "POST",
118
- headers,
119
- path: resolvedPath,
120
- body,
121
- });
90
+ b.m("POST").h(headers).b(body);
91
+ return b.build();
122
92
  };
123
93
  exports.se_CreateChannelCommand = se_CreateChannelCommand;
124
94
  const se_CreateChannelBanCommand = async (input, context) => {
125
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
+ const b = (0, core_1.requestBuilder)(input, context);
126
96
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
127
97
  "content-type": "application/json",
128
- "x-amz-chime-bearer": input.ChimeBearer,
98
+ [_xacb]: input[_CB],
129
99
  });
130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans";
131
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
100
+ b.bp("/channels/{ChannelArn}/bans");
101
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
132
102
  let body;
133
103
  body = JSON.stringify((0, smithy_client_1.take)(input, {
134
104
  MemberArn: [],
135
105
  }));
136
- return new protocol_http_1.HttpRequest({
137
- protocol,
138
- hostname,
139
- port,
140
- method: "POST",
141
- headers,
142
- path: resolvedPath,
143
- body,
144
- });
106
+ b.m("POST").h(headers).b(body);
107
+ return b.build();
145
108
  };
146
109
  exports.se_CreateChannelBanCommand = se_CreateChannelBanCommand;
147
110
  const se_CreateChannelFlowCommand = async (input, context) => {
148
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const b = (0, core_1.requestBuilder)(input, context);
149
112
  const headers = {
150
113
  "content-type": "application/json",
151
114
  };
152
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
115
+ b.bp("/channel-flows");
153
116
  let body;
154
117
  body = JSON.stringify((0, smithy_client_1.take)(input, {
155
118
  AppInstanceArn: [],
@@ -158,899 +121,585 @@ const se_CreateChannelFlowCommand = async (input, context) => {
158
121
  Processors: (_) => (0, smithy_client_1._json)(_),
159
122
  Tags: (_) => (0, smithy_client_1._json)(_),
160
123
  }));
161
- return new protocol_http_1.HttpRequest({
162
- protocol,
163
- hostname,
164
- port,
165
- method: "POST",
166
- headers,
167
- path: resolvedPath,
168
- body,
169
- });
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
170
126
  };
171
127
  exports.se_CreateChannelFlowCommand = se_CreateChannelFlowCommand;
172
128
  const se_CreateChannelMembershipCommand = async (input, context) => {
173
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
129
+ const b = (0, core_1.requestBuilder)(input, context);
174
130
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
175
131
  "content-type": "application/json",
176
- "x-amz-chime-bearer": input.ChimeBearer,
132
+ [_xacb]: input[_CB],
177
133
  });
178
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
179
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
134
+ b.bp("/channels/{ChannelArn}/memberships");
135
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
180
136
  let body;
181
137
  body = JSON.stringify((0, smithy_client_1.take)(input, {
182
138
  MemberArn: [],
183
139
  SubChannelId: [],
184
140
  Type: [],
185
141
  }));
186
- return new protocol_http_1.HttpRequest({
187
- protocol,
188
- hostname,
189
- port,
190
- method: "POST",
191
- headers,
192
- path: resolvedPath,
193
- body,
194
- });
142
+ b.m("POST").h(headers).b(body);
143
+ return b.build();
195
144
  };
196
145
  exports.se_CreateChannelMembershipCommand = se_CreateChannelMembershipCommand;
197
146
  const se_CreateChannelModeratorCommand = async (input, context) => {
198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = (0, core_1.requestBuilder)(input, context);
199
148
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
200
149
  "content-type": "application/json",
201
- "x-amz-chime-bearer": input.ChimeBearer,
150
+ [_xacb]: input[_CB],
202
151
  });
203
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators";
204
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
152
+ b.bp("/channels/{ChannelArn}/moderators");
153
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
205
154
  let body;
206
155
  body = JSON.stringify((0, smithy_client_1.take)(input, {
207
156
  ChannelModeratorArn: [],
208
157
  }));
209
- return new protocol_http_1.HttpRequest({
210
- protocol,
211
- hostname,
212
- port,
213
- method: "POST",
214
- headers,
215
- path: resolvedPath,
216
- body,
217
- });
158
+ b.m("POST").h(headers).b(body);
159
+ return b.build();
218
160
  };
219
161
  exports.se_CreateChannelModeratorCommand = se_CreateChannelModeratorCommand;
220
162
  const se_DeleteChannelCommand = async (input, context) => {
221
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_1.requestBuilder)(input, context);
222
164
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
223
- "x-amz-chime-bearer": input.ChimeBearer,
165
+ [_xacb]: input[_CB],
224
166
  });
225
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
226
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
167
+ b.bp("/channels/{ChannelArn}");
168
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
227
169
  let body;
228
- return new protocol_http_1.HttpRequest({
229
- protocol,
230
- hostname,
231
- port,
232
- method: "DELETE",
233
- headers,
234
- path: resolvedPath,
235
- body,
236
- });
170
+ b.m("DELETE").h(headers).b(body);
171
+ return b.build();
237
172
  };
238
173
  exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
239
174
  const se_DeleteChannelBanCommand = async (input, context) => {
240
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_1.requestBuilder)(input, context);
241
176
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
242
- "x-amz-chime-bearer": input.ChimeBearer,
177
+ [_xacb]: input[_CB],
243
178
  });
244
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}";
245
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
246
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
179
+ b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
180
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
181
+ b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
247
182
  let body;
248
- return new protocol_http_1.HttpRequest({
249
- protocol,
250
- hostname,
251
- port,
252
- method: "DELETE",
253
- headers,
254
- path: resolvedPath,
255
- body,
256
- });
183
+ b.m("DELETE").h(headers).b(body);
184
+ return b.build();
257
185
  };
258
186
  exports.se_DeleteChannelBanCommand = se_DeleteChannelBanCommand;
259
187
  const se_DeleteChannelFlowCommand = async (input, context) => {
260
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const b = (0, core_1.requestBuilder)(input, context);
261
189
  const headers = {};
262
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
263
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
190
+ b.bp("/channel-flows/{ChannelFlowArn}");
191
+ b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
264
192
  let body;
265
- return new protocol_http_1.HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "DELETE",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
193
+ b.m("DELETE").h(headers).b(body);
194
+ return b.build();
274
195
  };
275
196
  exports.se_DeleteChannelFlowCommand = se_DeleteChannelFlowCommand;
276
197
  const se_DeleteChannelMembershipCommand = async (input, context) => {
277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = (0, core_1.requestBuilder)(input, context);
278
199
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
279
- "x-amz-chime-bearer": input.ChimeBearer,
200
+ [_xacb]: input[_CB],
280
201
  });
281
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
282
- "/channels/{ChannelArn}/memberships/{MemberArn}";
283
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
284
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
202
+ b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
203
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
204
+ b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
285
205
  const query = (0, smithy_client_1.map)({
286
- "sub-channel-id": [, input.SubChannelId],
206
+ [_sci]: [, input[_SCI]],
287
207
  });
288
208
  let body;
289
- return new protocol_http_1.HttpRequest({
290
- protocol,
291
- hostname,
292
- port,
293
- method: "DELETE",
294
- headers,
295
- path: resolvedPath,
296
- query,
297
- body,
298
- });
209
+ b.m("DELETE").h(headers).q(query).b(body);
210
+ return b.build();
299
211
  };
300
212
  exports.se_DeleteChannelMembershipCommand = se_DeleteChannelMembershipCommand;
301
213
  const se_DeleteChannelMessageCommand = async (input, context) => {
302
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = (0, core_1.requestBuilder)(input, context);
303
215
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
304
- "x-amz-chime-bearer": input.ChimeBearer,
216
+ [_xacb]: input[_CB],
305
217
  });
306
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
307
- "/channels/{ChannelArn}/messages/{MessageId}";
308
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
309
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
218
+ b.bp("/channels/{ChannelArn}/messages/{MessageId}");
219
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
220
+ b.p("MessageId", () => input.MessageId, "{MessageId}", false);
310
221
  const query = (0, smithy_client_1.map)({
311
- "sub-channel-id": [, input.SubChannelId],
222
+ [_sci]: [, input[_SCI]],
312
223
  });
313
224
  let body;
314
- return new protocol_http_1.HttpRequest({
315
- protocol,
316
- hostname,
317
- port,
318
- method: "DELETE",
319
- headers,
320
- path: resolvedPath,
321
- query,
322
- body,
323
- });
225
+ b.m("DELETE").h(headers).q(query).b(body);
226
+ return b.build();
324
227
  };
325
228
  exports.se_DeleteChannelMessageCommand = se_DeleteChannelMessageCommand;
326
229
  const se_DeleteChannelModeratorCommand = async (input, context) => {
327
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
230
+ const b = (0, core_1.requestBuilder)(input, context);
328
231
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
329
- "x-amz-chime-bearer": input.ChimeBearer,
232
+ [_xacb]: input[_CB],
330
233
  });
331
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
332
- "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}";
333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
334
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
234
+ b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
235
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
236
+ b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
335
237
  let body;
336
- return new protocol_http_1.HttpRequest({
337
- protocol,
338
- hostname,
339
- port,
340
- method: "DELETE",
341
- headers,
342
- path: resolvedPath,
343
- body,
344
- });
238
+ b.m("DELETE").h(headers).b(body);
239
+ return b.build();
345
240
  };
346
241
  exports.se_DeleteChannelModeratorCommand = se_DeleteChannelModeratorCommand;
347
242
  const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
349
244
  const headers = {};
350
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
351
- "/app-instances/{AppInstanceArn}/streaming-configurations";
352
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
245
+ b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
246
+ b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
353
247
  let body;
354
- return new protocol_http_1.HttpRequest({
355
- protocol,
356
- hostname,
357
- port,
358
- method: "DELETE",
359
- headers,
360
- path: resolvedPath,
361
- body,
362
- });
248
+ b.m("DELETE").h(headers).b(body);
249
+ return b.build();
363
250
  };
364
251
  exports.se_DeleteMessagingStreamingConfigurationsCommand = se_DeleteMessagingStreamingConfigurationsCommand;
365
252
  const se_DescribeChannelCommand = async (input, context) => {
366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = (0, core_1.requestBuilder)(input, context);
367
254
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
368
- "x-amz-chime-bearer": input.ChimeBearer,
255
+ [_xacb]: input[_CB],
369
256
  });
370
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
371
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
257
+ b.bp("/channels/{ChannelArn}");
258
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
372
259
  let body;
373
- return new protocol_http_1.HttpRequest({
374
- protocol,
375
- hostname,
376
- port,
377
- method: "GET",
378
- headers,
379
- path: resolvedPath,
380
- body,
381
- });
260
+ b.m("GET").h(headers).b(body);
261
+ return b.build();
382
262
  };
383
263
  exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
384
264
  const se_DescribeChannelBanCommand = async (input, context) => {
385
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
265
+ const b = (0, core_1.requestBuilder)(input, context);
386
266
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
387
- "x-amz-chime-bearer": input.ChimeBearer,
267
+ [_xacb]: input[_CB],
388
268
  });
389
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}";
390
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
391
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
269
+ b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
270
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
271
+ b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
392
272
  let body;
393
- return new protocol_http_1.HttpRequest({
394
- protocol,
395
- hostname,
396
- port,
397
- method: "GET",
398
- headers,
399
- path: resolvedPath,
400
- body,
401
- });
273
+ b.m("GET").h(headers).b(body);
274
+ return b.build();
402
275
  };
403
276
  exports.se_DescribeChannelBanCommand = se_DescribeChannelBanCommand;
404
277
  const se_DescribeChannelFlowCommand = async (input, context) => {
405
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
278
+ const b = (0, core_1.requestBuilder)(input, context);
406
279
  const headers = {};
407
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
408
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
280
+ b.bp("/channel-flows/{ChannelFlowArn}");
281
+ b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
409
282
  let body;
410
- return new protocol_http_1.HttpRequest({
411
- protocol,
412
- hostname,
413
- port,
414
- method: "GET",
415
- headers,
416
- path: resolvedPath,
417
- body,
418
- });
283
+ b.m("GET").h(headers).b(body);
284
+ return b.build();
419
285
  };
420
286
  exports.se_DescribeChannelFlowCommand = se_DescribeChannelFlowCommand;
421
287
  const se_DescribeChannelMembershipCommand = async (input, context) => {
422
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
+ const b = (0, core_1.requestBuilder)(input, context);
423
289
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
424
- "x-amz-chime-bearer": input.ChimeBearer,
290
+ [_xacb]: input[_CB],
425
291
  });
426
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
427
- "/channels/{ChannelArn}/memberships/{MemberArn}";
428
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
429
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
292
+ b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
293
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
294
+ b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
430
295
  const query = (0, smithy_client_1.map)({
431
- "sub-channel-id": [, input.SubChannelId],
296
+ [_sci]: [, input[_SCI]],
432
297
  });
433
298
  let body;
434
- return new protocol_http_1.HttpRequest({
435
- protocol,
436
- hostname,
437
- port,
438
- method: "GET",
439
- headers,
440
- path: resolvedPath,
441
- query,
442
- body,
443
- });
299
+ b.m("GET").h(headers).q(query).b(body);
300
+ return b.build();
444
301
  };
445
302
  exports.se_DescribeChannelMembershipCommand = se_DescribeChannelMembershipCommand;
446
303
  const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
447
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
448
305
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
449
- "x-amz-chime-bearer": input.ChimeBearer,
306
+ [_xacb]: input[_CB],
450
307
  });
451
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
452
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
308
+ b.bp("/channels/{ChannelArn}");
309
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
453
310
  const query = (0, smithy_client_1.map)({
454
- scope: [, "app-instance-user-membership"],
455
- "app-instance-user-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceUserArn, `AppInstanceUserArn`)],
311
+ [_s]: [, "app-instance-user-membership"],
312
+ [_aiua]: [, (0, smithy_client_1.expectNonNull)(input[_AIUA], `AppInstanceUserArn`)],
456
313
  });
457
314
  let body;
458
- return new protocol_http_1.HttpRequest({
459
- protocol,
460
- hostname,
461
- port,
462
- method: "GET",
463
- headers,
464
- path: resolvedPath,
465
- query,
466
- body,
467
- });
315
+ b.m("GET").h(headers).q(query).b(body);
316
+ return b.build();
468
317
  };
469
318
  exports.se_DescribeChannelMembershipForAppInstanceUserCommand = se_DescribeChannelMembershipForAppInstanceUserCommand;
470
319
  const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
471
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
320
+ const b = (0, core_1.requestBuilder)(input, context);
472
321
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
473
- "x-amz-chime-bearer": input.ChimeBearer,
322
+ [_xacb]: input[_CB],
474
323
  });
475
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
476
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
324
+ b.bp("/channels/{ChannelArn}");
325
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
477
326
  const query = (0, smithy_client_1.map)({
478
- scope: [, "app-instance-user-moderated-channel"],
479
- "app-instance-user-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceUserArn, `AppInstanceUserArn`)],
327
+ [_s]: [, "app-instance-user-moderated-channel"],
328
+ [_aiua]: [, (0, smithy_client_1.expectNonNull)(input[_AIUA], `AppInstanceUserArn`)],
480
329
  });
481
330
  let body;
482
- return new protocol_http_1.HttpRequest({
483
- protocol,
484
- hostname,
485
- port,
486
- method: "GET",
487
- headers,
488
- path: resolvedPath,
489
- query,
490
- body,
491
- });
331
+ b.m("GET").h(headers).q(query).b(body);
332
+ return b.build();
492
333
  };
493
334
  exports.se_DescribeChannelModeratedByAppInstanceUserCommand = se_DescribeChannelModeratedByAppInstanceUserCommand;
494
335
  const se_DescribeChannelModeratorCommand = async (input, context) => {
495
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
336
+ const b = (0, core_1.requestBuilder)(input, context);
496
337
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
497
- "x-amz-chime-bearer": input.ChimeBearer,
338
+ [_xacb]: input[_CB],
498
339
  });
499
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
500
- "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}";
501
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
502
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
340
+ b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
341
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
342
+ b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
503
343
  let body;
504
- return new protocol_http_1.HttpRequest({
505
- protocol,
506
- hostname,
507
- port,
508
- method: "GET",
509
- headers,
510
- path: resolvedPath,
511
- body,
512
- });
344
+ b.m("GET").h(headers).b(body);
345
+ return b.build();
513
346
  };
514
347
  exports.se_DescribeChannelModeratorCommand = se_DescribeChannelModeratorCommand;
515
348
  const se_DisassociateChannelFlowCommand = async (input, context) => {
516
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
349
+ const b = (0, core_1.requestBuilder)(input, context);
517
350
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
518
- "x-amz-chime-bearer": input.ChimeBearer,
351
+ [_xacb]: input[_CB],
519
352
  });
520
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
521
- "/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}";
522
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
523
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
353
+ b.bp("/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}");
354
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
355
+ b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
524
356
  let body;
525
- return new protocol_http_1.HttpRequest({
526
- protocol,
527
- hostname,
528
- port,
529
- method: "DELETE",
530
- headers,
531
- path: resolvedPath,
532
- body,
533
- });
357
+ b.m("DELETE").h(headers).b(body);
358
+ return b.build();
534
359
  };
535
360
  exports.se_DisassociateChannelFlowCommand = se_DisassociateChannelFlowCommand;
536
361
  const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
537
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
362
+ const b = (0, core_1.requestBuilder)(input, context);
538
363
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
539
- "x-amz-chime-bearer": input.ChimeBearer,
364
+ [_xacb]: input[_CB],
540
365
  });
541
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
542
- "/channels/{ChannelArn}/memberships/{MemberArn}/preferences";
543
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
544
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
366
+ b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
367
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
368
+ b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
545
369
  let body;
546
- return new protocol_http_1.HttpRequest({
547
- protocol,
548
- hostname,
549
- port,
550
- method: "GET",
551
- headers,
552
- path: resolvedPath,
553
- body,
554
- });
370
+ b.m("GET").h(headers).b(body);
371
+ return b.build();
555
372
  };
556
373
  exports.se_GetChannelMembershipPreferencesCommand = se_GetChannelMembershipPreferencesCommand;
557
374
  const se_GetChannelMessageCommand = async (input, context) => {
558
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
+ const b = (0, core_1.requestBuilder)(input, context);
559
376
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
560
- "x-amz-chime-bearer": input.ChimeBearer,
377
+ [_xacb]: input[_CB],
561
378
  });
562
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
563
- "/channels/{ChannelArn}/messages/{MessageId}";
564
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
565
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
379
+ b.bp("/channels/{ChannelArn}/messages/{MessageId}");
380
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
381
+ b.p("MessageId", () => input.MessageId, "{MessageId}", false);
566
382
  const query = (0, smithy_client_1.map)({
567
- "sub-channel-id": [, input.SubChannelId],
383
+ [_sci]: [, input[_SCI]],
568
384
  });
569
385
  let body;
570
- return new protocol_http_1.HttpRequest({
571
- protocol,
572
- hostname,
573
- port,
574
- method: "GET",
575
- headers,
576
- path: resolvedPath,
577
- query,
578
- body,
579
- });
386
+ b.m("GET").h(headers).q(query).b(body);
387
+ return b.build();
580
388
  };
581
389
  exports.se_GetChannelMessageCommand = se_GetChannelMessageCommand;
582
390
  const se_GetChannelMessageStatusCommand = async (input, context) => {
583
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const b = (0, core_1.requestBuilder)(input, context);
584
392
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
585
- "x-amz-chime-bearer": input.ChimeBearer,
393
+ [_xacb]: input[_CB],
586
394
  });
587
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
588
- "/channels/{ChannelArn}/messages/{MessageId}";
589
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
590
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
395
+ b.bp("/channels/{ChannelArn}/messages/{MessageId}");
396
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
397
+ b.p("MessageId", () => input.MessageId, "{MessageId}", false);
591
398
  const query = (0, smithy_client_1.map)({
592
- scope: [, "message-status"],
593
- "sub-channel-id": [, input.SubChannelId],
399
+ [_s]: [, "message-status"],
400
+ [_sci]: [, input[_SCI]],
594
401
  });
595
402
  let body;
596
- return new protocol_http_1.HttpRequest({
597
- protocol,
598
- hostname,
599
- port,
600
- method: "GET",
601
- headers,
602
- path: resolvedPath,
603
- query,
604
- body,
605
- });
403
+ b.m("GET").h(headers).q(query).b(body);
404
+ return b.build();
606
405
  };
607
406
  exports.se_GetChannelMessageStatusCommand = se_GetChannelMessageStatusCommand;
608
407
  const se_GetMessagingSessionEndpointCommand = async (input, context) => {
609
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
408
+ const b = (0, core_1.requestBuilder)(input, context);
610
409
  const headers = {
611
410
  "content-type": "application/json",
612
411
  };
613
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoints/messaging-session";
412
+ b.bp("/endpoints/messaging-session");
614
413
  let body;
615
414
  body = "";
616
- return new protocol_http_1.HttpRequest({
617
- protocol,
618
- hostname,
619
- port,
620
- method: "GET",
621
- headers,
622
- path: resolvedPath,
623
- body,
624
- });
415
+ b.m("GET").h(headers).b(body);
416
+ return b.build();
625
417
  };
626
418
  exports.se_GetMessagingSessionEndpointCommand = se_GetMessagingSessionEndpointCommand;
627
419
  const se_GetMessagingStreamingConfigurationsCommand = async (input, context) => {
628
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
420
+ const b = (0, core_1.requestBuilder)(input, context);
629
421
  const headers = {};
630
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
631
- "/app-instances/{AppInstanceArn}/streaming-configurations";
632
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
422
+ b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
423
+ b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
633
424
  let body;
634
- return new protocol_http_1.HttpRequest({
635
- protocol,
636
- hostname,
637
- port,
638
- method: "GET",
639
- headers,
640
- path: resolvedPath,
641
- body,
642
- });
425
+ b.m("GET").h(headers).b(body);
426
+ return b.build();
643
427
  };
644
428
  exports.se_GetMessagingStreamingConfigurationsCommand = se_GetMessagingStreamingConfigurationsCommand;
645
429
  const se_ListChannelBansCommand = async (input, context) => {
646
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
430
+ const b = (0, core_1.requestBuilder)(input, context);
647
431
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
648
- "x-amz-chime-bearer": input.ChimeBearer,
432
+ [_xacb]: input[_CB],
649
433
  });
650
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans";
651
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
434
+ b.bp("/channels/{ChannelArn}/bans");
435
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
652
436
  const query = (0, smithy_client_1.map)({
653
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
654
- "next-token": [, input.NextToken],
437
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
438
+ [_nt]: [, input[_NT]],
655
439
  });
656
440
  let body;
657
- return new protocol_http_1.HttpRequest({
658
- protocol,
659
- hostname,
660
- port,
661
- method: "GET",
662
- headers,
663
- path: resolvedPath,
664
- query,
665
- body,
666
- });
441
+ b.m("GET").h(headers).q(query).b(body);
442
+ return b.build();
667
443
  };
668
444
  exports.se_ListChannelBansCommand = se_ListChannelBansCommand;
669
445
  const se_ListChannelFlowsCommand = async (input, context) => {
670
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
446
+ const b = (0, core_1.requestBuilder)(input, context);
671
447
  const headers = {};
672
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
448
+ b.bp("/channel-flows");
673
449
  const query = (0, smithy_client_1.map)({
674
- "app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
675
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
676
- "next-token": [, input.NextToken],
450
+ [_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
451
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
452
+ [_nt]: [, input[_NT]],
677
453
  });
678
454
  let body;
679
- return new protocol_http_1.HttpRequest({
680
- protocol,
681
- hostname,
682
- port,
683
- method: "GET",
684
- headers,
685
- path: resolvedPath,
686
- query,
687
- body,
688
- });
455
+ b.m("GET").h(headers).q(query).b(body);
456
+ return b.build();
689
457
  };
690
458
  exports.se_ListChannelFlowsCommand = se_ListChannelFlowsCommand;
691
459
  const se_ListChannelMembershipsCommand = async (input, context) => {
692
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
460
+ const b = (0, core_1.requestBuilder)(input, context);
693
461
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
694
- "x-amz-chime-bearer": input.ChimeBearer,
462
+ [_xacb]: input[_CB],
695
463
  });
696
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
697
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
464
+ b.bp("/channels/{ChannelArn}/memberships");
465
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
698
466
  const query = (0, smithy_client_1.map)({
699
- type: [, input.Type],
700
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
701
- "next-token": [, input.NextToken],
702
- "sub-channel-id": [, input.SubChannelId],
467
+ [_t]: [, input[_T]],
468
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
469
+ [_nt]: [, input[_NT]],
470
+ [_sci]: [, input[_SCI]],
703
471
  });
704
472
  let body;
705
- return new protocol_http_1.HttpRequest({
706
- protocol,
707
- hostname,
708
- port,
709
- method: "GET",
710
- headers,
711
- path: resolvedPath,
712
- query,
713
- body,
714
- });
473
+ b.m("GET").h(headers).q(query).b(body);
474
+ return b.build();
715
475
  };
716
476
  exports.se_ListChannelMembershipsCommand = se_ListChannelMembershipsCommand;
717
477
  const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
718
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
+ const b = (0, core_1.requestBuilder)(input, context);
719
479
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
720
- "x-amz-chime-bearer": input.ChimeBearer,
480
+ [_xacb]: input[_CB],
721
481
  });
722
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
482
+ b.bp("/channels");
723
483
  const query = (0, smithy_client_1.map)({
724
- scope: [, "app-instance-user-memberships"],
725
- "app-instance-user-arn": [, input.AppInstanceUserArn],
726
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
727
- "next-token": [, input.NextToken],
484
+ [_s]: [, "app-instance-user-memberships"],
485
+ [_aiua]: [, input[_AIUA]],
486
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
487
+ [_nt]: [, input[_NT]],
728
488
  });
729
489
  let body;
730
- return new protocol_http_1.HttpRequest({
731
- protocol,
732
- hostname,
733
- port,
734
- method: "GET",
735
- headers,
736
- path: resolvedPath,
737
- query,
738
- body,
739
- });
490
+ b.m("GET").h(headers).q(query).b(body);
491
+ return b.build();
740
492
  };
741
493
  exports.se_ListChannelMembershipsForAppInstanceUserCommand = se_ListChannelMembershipsForAppInstanceUserCommand;
742
494
  const se_ListChannelMessagesCommand = async (input, context) => {
743
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
495
+ const b = (0, core_1.requestBuilder)(input, context);
744
496
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
745
- "x-amz-chime-bearer": input.ChimeBearer,
497
+ [_xacb]: input[_CB],
746
498
  });
747
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages";
748
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
499
+ b.bp("/channels/{ChannelArn}/messages");
500
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
749
501
  const query = (0, smithy_client_1.map)({
750
- "sort-order": [, input.SortOrder],
751
- "not-before": [
752
- () => input.NotBefore !== void 0,
753
- () => (input.NotBefore.toISOString().split(".")[0] + "Z").toString(),
754
- ],
755
- "not-after": [
756
- () => input.NotAfter !== void 0,
757
- () => (input.NotAfter.toISOString().split(".")[0] + "Z").toString(),
758
- ],
759
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
760
- "next-token": [, input.NextToken],
761
- "sub-channel-id": [, input.SubChannelId],
502
+ [_so]: [, input[_SO]],
503
+ [_nb]: [() => input.NotBefore !== void 0, () => (input[_NB].toISOString().split(".")[0] + "Z").toString()],
504
+ [_na]: [() => input.NotAfter !== void 0, () => (input[_NA].toISOString().split(".")[0] + "Z").toString()],
505
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
506
+ [_nt]: [, input[_NT]],
507
+ [_sci]: [, input[_SCI]],
762
508
  });
763
509
  let body;
764
- return new protocol_http_1.HttpRequest({
765
- protocol,
766
- hostname,
767
- port,
768
- method: "GET",
769
- headers,
770
- path: resolvedPath,
771
- query,
772
- body,
773
- });
510
+ b.m("GET").h(headers).q(query).b(body);
511
+ return b.build();
774
512
  };
775
513
  exports.se_ListChannelMessagesCommand = se_ListChannelMessagesCommand;
776
514
  const se_ListChannelModeratorsCommand = async (input, context) => {
777
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
+ const b = (0, core_1.requestBuilder)(input, context);
778
516
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
779
- "x-amz-chime-bearer": input.ChimeBearer,
517
+ [_xacb]: input[_CB],
780
518
  });
781
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators";
782
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
519
+ b.bp("/channels/{ChannelArn}/moderators");
520
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
783
521
  const query = (0, smithy_client_1.map)({
784
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
785
- "next-token": [, input.NextToken],
522
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
523
+ [_nt]: [, input[_NT]],
786
524
  });
787
525
  let body;
788
- return new protocol_http_1.HttpRequest({
789
- protocol,
790
- hostname,
791
- port,
792
- method: "GET",
793
- headers,
794
- path: resolvedPath,
795
- query,
796
- body,
797
- });
526
+ b.m("GET").h(headers).q(query).b(body);
527
+ return b.build();
798
528
  };
799
529
  exports.se_ListChannelModeratorsCommand = se_ListChannelModeratorsCommand;
800
530
  const se_ListChannelsCommand = async (input, context) => {
801
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
531
+ const b = (0, core_1.requestBuilder)(input, context);
802
532
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
803
- "x-amz-chime-bearer": input.ChimeBearer,
533
+ [_xacb]: input[_CB],
804
534
  });
805
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
535
+ b.bp("/channels");
806
536
  const query = (0, smithy_client_1.map)({
807
- "app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
808
- privacy: [, input.Privacy],
809
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
810
- "next-token": [, input.NextToken],
537
+ [_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
538
+ [_p]: [, input[_P]],
539
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
540
+ [_nt]: [, input[_NT]],
811
541
  });
812
542
  let body;
813
- return new protocol_http_1.HttpRequest({
814
- protocol,
815
- hostname,
816
- port,
817
- method: "GET",
818
- headers,
819
- path: resolvedPath,
820
- query,
821
- body,
822
- });
543
+ b.m("GET").h(headers).q(query).b(body);
544
+ return b.build();
823
545
  };
824
546
  exports.se_ListChannelsCommand = se_ListChannelsCommand;
825
547
  const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
826
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
548
+ const b = (0, core_1.requestBuilder)(input, context);
827
549
  const headers = {};
828
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
550
+ b.bp("/channels");
829
551
  const query = (0, smithy_client_1.map)({
830
- scope: [, "channel-flow-associations"],
831
- "channel-flow-arn": [, (0, smithy_client_1.expectNonNull)(input.ChannelFlowArn, `ChannelFlowArn`)],
832
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
833
- "next-token": [, input.NextToken],
552
+ [_s]: [, "channel-flow-associations"],
553
+ [_cfa]: [, (0, smithy_client_1.expectNonNull)(input[_CFA], `ChannelFlowArn`)],
554
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
555
+ [_nt]: [, input[_NT]],
834
556
  });
835
557
  let body;
836
- return new protocol_http_1.HttpRequest({
837
- protocol,
838
- hostname,
839
- port,
840
- method: "GET",
841
- headers,
842
- path: resolvedPath,
843
- query,
844
- body,
845
- });
558
+ b.m("GET").h(headers).q(query).b(body);
559
+ return b.build();
846
560
  };
847
561
  exports.se_ListChannelsAssociatedWithChannelFlowCommand = se_ListChannelsAssociatedWithChannelFlowCommand;
848
562
  const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
849
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
563
+ const b = (0, core_1.requestBuilder)(input, context);
850
564
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
851
- "x-amz-chime-bearer": input.ChimeBearer,
565
+ [_xacb]: input[_CB],
852
566
  });
853
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
567
+ b.bp("/channels");
854
568
  const query = (0, smithy_client_1.map)({
855
- scope: [, "app-instance-user-moderated-channels"],
856
- "app-instance-user-arn": [, input.AppInstanceUserArn],
857
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
858
- "next-token": [, input.NextToken],
569
+ [_s]: [, "app-instance-user-moderated-channels"],
570
+ [_aiua]: [, input[_AIUA]],
571
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
572
+ [_nt]: [, input[_NT]],
859
573
  });
860
574
  let body;
861
- return new protocol_http_1.HttpRequest({
862
- protocol,
863
- hostname,
864
- port,
865
- method: "GET",
866
- headers,
867
- path: resolvedPath,
868
- query,
869
- body,
870
- });
575
+ b.m("GET").h(headers).q(query).b(body);
576
+ return b.build();
871
577
  };
872
578
  exports.se_ListChannelsModeratedByAppInstanceUserCommand = se_ListChannelsModeratedByAppInstanceUserCommand;
873
579
  const se_ListSubChannelsCommand = async (input, context) => {
874
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
580
+ const b = (0, core_1.requestBuilder)(input, context);
875
581
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
876
- "x-amz-chime-bearer": input.ChimeBearer,
582
+ [_xacb]: input[_CB],
877
583
  });
878
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/subchannels";
879
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
584
+ b.bp("/channels/{ChannelArn}/subchannels");
585
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
880
586
  const query = (0, smithy_client_1.map)({
881
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
882
- "next-token": [, input.NextToken],
587
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
588
+ [_nt]: [, input[_NT]],
883
589
  });
884
590
  let body;
885
- return new protocol_http_1.HttpRequest({
886
- protocol,
887
- hostname,
888
- port,
889
- method: "GET",
890
- headers,
891
- path: resolvedPath,
892
- query,
893
- body,
894
- });
591
+ b.m("GET").h(headers).q(query).b(body);
592
+ return b.build();
895
593
  };
896
594
  exports.se_ListSubChannelsCommand = se_ListSubChannelsCommand;
897
595
  const se_ListTagsForResourceCommand = async (input, context) => {
898
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
596
+ const b = (0, core_1.requestBuilder)(input, context);
899
597
  const headers = {};
900
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
598
+ b.bp("/tags");
901
599
  const query = (0, smithy_client_1.map)({
902
- arn: [, (0, smithy_client_1.expectNonNull)(input.ResourceARN, `ResourceARN`)],
600
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
903
601
  });
904
602
  let body;
905
- return new protocol_http_1.HttpRequest({
906
- protocol,
907
- hostname,
908
- port,
909
- method: "GET",
910
- headers,
911
- path: resolvedPath,
912
- query,
913
- body,
914
- });
603
+ b.m("GET").h(headers).q(query).b(body);
604
+ return b.build();
915
605
  };
916
606
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
917
607
  const se_PutChannelExpirationSettingsCommand = async (input, context) => {
918
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
+ const b = (0, core_1.requestBuilder)(input, context);
919
609
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
920
610
  "content-type": "application/json",
921
- "x-amz-chime-bearer": input.ChimeBearer,
611
+ [_xacb]: input[_CB],
922
612
  });
923
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
924
- "/channels/{ChannelArn}/expiration-settings";
925
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
613
+ b.bp("/channels/{ChannelArn}/expiration-settings");
614
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
926
615
  let body;
927
616
  body = JSON.stringify((0, smithy_client_1.take)(input, {
928
617
  ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
929
618
  }));
930
- return new protocol_http_1.HttpRequest({
931
- protocol,
932
- hostname,
933
- port,
934
- method: "PUT",
935
- headers,
936
- path: resolvedPath,
937
- body,
938
- });
619
+ b.m("PUT").h(headers).b(body);
620
+ return b.build();
939
621
  };
940
622
  exports.se_PutChannelExpirationSettingsCommand = se_PutChannelExpirationSettingsCommand;
941
623
  const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
942
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
624
+ const b = (0, core_1.requestBuilder)(input, context);
943
625
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
944
626
  "content-type": "application/json",
945
- "x-amz-chime-bearer": input.ChimeBearer,
627
+ [_xacb]: input[_CB],
946
628
  });
947
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
948
- "/channels/{ChannelArn}/memberships/{MemberArn}/preferences";
949
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
950
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
629
+ b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
630
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
631
+ b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
951
632
  let body;
952
633
  body = JSON.stringify((0, smithy_client_1.take)(input, {
953
634
  Preferences: (_) => (0, smithy_client_1._json)(_),
954
635
  }));
955
- return new protocol_http_1.HttpRequest({
956
- protocol,
957
- hostname,
958
- port,
959
- method: "PUT",
960
- headers,
961
- path: resolvedPath,
962
- body,
963
- });
636
+ b.m("PUT").h(headers).b(body);
637
+ return b.build();
964
638
  };
965
639
  exports.se_PutChannelMembershipPreferencesCommand = se_PutChannelMembershipPreferencesCommand;
966
640
  const se_PutMessagingStreamingConfigurationsCommand = async (input, context) => {
967
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
641
+ const b = (0, core_1.requestBuilder)(input, context);
968
642
  const headers = {
969
643
  "content-type": "application/json",
970
644
  };
971
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
972
- "/app-instances/{AppInstanceArn}/streaming-configurations";
973
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
645
+ b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
646
+ b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
974
647
  let body;
975
648
  body = JSON.stringify((0, smithy_client_1.take)(input, {
976
649
  StreamingConfigurations: (_) => (0, smithy_client_1._json)(_),
977
650
  }));
978
- return new protocol_http_1.HttpRequest({
979
- protocol,
980
- hostname,
981
- port,
982
- method: "PUT",
983
- headers,
984
- path: resolvedPath,
985
- body,
986
- });
651
+ b.m("PUT").h(headers).b(body);
652
+ return b.build();
987
653
  };
988
654
  exports.se_PutMessagingStreamingConfigurationsCommand = se_PutMessagingStreamingConfigurationsCommand;
989
655
  const se_RedactChannelMessageCommand = async (input, context) => {
990
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
656
+ const b = (0, core_1.requestBuilder)(input, context);
991
657
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
992
658
  "content-type": "application/json",
993
- "x-amz-chime-bearer": input.ChimeBearer,
659
+ [_xacb]: input[_CB],
994
660
  });
995
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
996
- "/channels/{ChannelArn}/messages/{MessageId}";
997
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
998
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
661
+ b.bp("/channels/{ChannelArn}/messages/{MessageId}");
662
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
663
+ b.p("MessageId", () => input.MessageId, "{MessageId}", false);
999
664
  const query = (0, smithy_client_1.map)({
1000
- operation: [, "redact"],
665
+ [_o]: [, "redact"],
1001
666
  });
1002
667
  let body;
1003
668
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1004
669
  SubChannelId: [],
1005
670
  }));
1006
- return new protocol_http_1.HttpRequest({
1007
- protocol,
1008
- hostname,
1009
- port,
1010
- method: "POST",
1011
- headers,
1012
- path: resolvedPath,
1013
- query,
1014
- body,
1015
- });
671
+ b.m("POST").h(headers).q(query).b(body);
672
+ return b.build();
1016
673
  };
1017
674
  exports.se_RedactChannelMessageCommand = se_RedactChannelMessageCommand;
1018
675
  const se_SearchChannelsCommand = async (input, context) => {
1019
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
676
+ const b = (0, core_1.requestBuilder)(input, context);
1020
677
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1021
678
  "content-type": "application/json",
1022
- "x-amz-chime-bearer": input.ChimeBearer,
679
+ [_xacb]: input[_CB],
1023
680
  });
1024
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
681
+ b.bp("/channels");
1025
682
  const query = (0, smithy_client_1.map)({
1026
- operation: [, "search"],
1027
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1028
- "next-token": [, input.NextToken],
683
+ [_o]: [, "search"],
684
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
685
+ [_nt]: [, input[_NT]],
1029
686
  });
1030
687
  let body;
1031
688
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1032
689
  Fields: (_) => (0, smithy_client_1._json)(_),
1033
690
  }));
1034
- return new protocol_http_1.HttpRequest({
1035
- protocol,
1036
- hostname,
1037
- port,
1038
- method: "POST",
1039
- headers,
1040
- path: resolvedPath,
1041
- query,
1042
- body,
1043
- });
691
+ b.m("POST").h(headers).q(query).b(body);
692
+ return b.build();
1044
693
  };
1045
694
  exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
1046
695
  const se_SendChannelMessageCommand = async (input, context) => {
1047
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
696
+ const b = (0, core_1.requestBuilder)(input, context);
1048
697
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1049
698
  "content-type": "application/json",
1050
- "x-amz-chime-bearer": input.ChimeBearer,
699
+ [_xacb]: input[_CB],
1051
700
  });
1052
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages";
1053
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
701
+ b.bp("/channels/{ChannelArn}/messages");
702
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
1054
703
  let body;
1055
704
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1056
705
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1064,127 +713,89 @@ const se_SendChannelMessageCommand = async (input, context) => {
1064
713
  Target: (_) => (0, smithy_client_1._json)(_),
1065
714
  Type: [],
1066
715
  }));
1067
- return new protocol_http_1.HttpRequest({
1068
- protocol,
1069
- hostname,
1070
- port,
1071
- method: "POST",
1072
- headers,
1073
- path: resolvedPath,
1074
- body,
1075
- });
716
+ b.m("POST").h(headers).b(body);
717
+ return b.build();
1076
718
  };
1077
719
  exports.se_SendChannelMessageCommand = se_SendChannelMessageCommand;
1078
720
  const se_TagResourceCommand = async (input, context) => {
1079
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
721
+ const b = (0, core_1.requestBuilder)(input, context);
1080
722
  const headers = {
1081
723
  "content-type": "application/json",
1082
724
  };
1083
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
725
+ b.bp("/tags");
1084
726
  const query = (0, smithy_client_1.map)({
1085
- operation: [, "tag-resource"],
727
+ [_o]: [, "tag-resource"],
1086
728
  });
1087
729
  let body;
1088
730
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1089
731
  ResourceARN: [],
1090
732
  Tags: (_) => (0, smithy_client_1._json)(_),
1091
733
  }));
1092
- return new protocol_http_1.HttpRequest({
1093
- protocol,
1094
- hostname,
1095
- port,
1096
- method: "POST",
1097
- headers,
1098
- path: resolvedPath,
1099
- query,
1100
- body,
1101
- });
734
+ b.m("POST").h(headers).q(query).b(body);
735
+ return b.build();
1102
736
  };
1103
737
  exports.se_TagResourceCommand = se_TagResourceCommand;
1104
738
  const se_UntagResourceCommand = async (input, context) => {
1105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
739
+ const b = (0, core_1.requestBuilder)(input, context);
1106
740
  const headers = {
1107
741
  "content-type": "application/json",
1108
742
  };
1109
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
743
+ b.bp("/tags");
1110
744
  const query = (0, smithy_client_1.map)({
1111
- operation: [, "untag-resource"],
745
+ [_o]: [, "untag-resource"],
1112
746
  });
1113
747
  let body;
1114
748
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1115
749
  ResourceARN: [],
1116
750
  TagKeys: (_) => (0, smithy_client_1._json)(_),
1117
751
  }));
1118
- return new protocol_http_1.HttpRequest({
1119
- protocol,
1120
- hostname,
1121
- port,
1122
- method: "POST",
1123
- headers,
1124
- path: resolvedPath,
1125
- query,
1126
- body,
1127
- });
752
+ b.m("POST").h(headers).q(query).b(body);
753
+ return b.build();
1128
754
  };
1129
755
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1130
756
  const se_UpdateChannelCommand = async (input, context) => {
1131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
757
+ const b = (0, core_1.requestBuilder)(input, context);
1132
758
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1133
759
  "content-type": "application/json",
1134
- "x-amz-chime-bearer": input.ChimeBearer,
760
+ [_xacb]: input[_CB],
1135
761
  });
1136
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
1137
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
762
+ b.bp("/channels/{ChannelArn}");
763
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
1138
764
  let body;
1139
765
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1140
766
  Metadata: [],
1141
767
  Mode: [],
1142
768
  Name: [],
1143
769
  }));
1144
- return new protocol_http_1.HttpRequest({
1145
- protocol,
1146
- hostname,
1147
- port,
1148
- method: "PUT",
1149
- headers,
1150
- path: resolvedPath,
1151
- body,
1152
- });
770
+ b.m("PUT").h(headers).b(body);
771
+ return b.build();
1153
772
  };
1154
773
  exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
1155
774
  const se_UpdateChannelFlowCommand = async (input, context) => {
1156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
775
+ const b = (0, core_1.requestBuilder)(input, context);
1157
776
  const headers = {
1158
777
  "content-type": "application/json",
1159
778
  };
1160
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
1161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
779
+ b.bp("/channel-flows/{ChannelFlowArn}");
780
+ b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
1162
781
  let body;
1163
782
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1164
783
  Name: [],
1165
784
  Processors: (_) => (0, smithy_client_1._json)(_),
1166
785
  }));
1167
- return new protocol_http_1.HttpRequest({
1168
- protocol,
1169
- hostname,
1170
- port,
1171
- method: "PUT",
1172
- headers,
1173
- path: resolvedPath,
1174
- body,
1175
- });
786
+ b.m("PUT").h(headers).b(body);
787
+ return b.build();
1176
788
  };
1177
789
  exports.se_UpdateChannelFlowCommand = se_UpdateChannelFlowCommand;
1178
790
  const se_UpdateChannelMessageCommand = async (input, context) => {
1179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
791
+ const b = (0, core_1.requestBuilder)(input, context);
1180
792
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1181
793
  "content-type": "application/json",
1182
- "x-amz-chime-bearer": input.ChimeBearer,
794
+ [_xacb]: input[_CB],
1183
795
  });
1184
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1185
- "/channels/{ChannelArn}/messages/{MessageId}";
1186
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
1187
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
796
+ b.bp("/channels/{ChannelArn}/messages/{MessageId}");
797
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
798
+ b.p("MessageId", () => input.MessageId, "{MessageId}", false);
1188
799
  let body;
1189
800
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1190
801
  Content: [],
@@ -1192,34 +803,20 @@ const se_UpdateChannelMessageCommand = async (input, context) => {
1192
803
  Metadata: [],
1193
804
  SubChannelId: [],
1194
805
  }));
1195
- return new protocol_http_1.HttpRequest({
1196
- protocol,
1197
- hostname,
1198
- port,
1199
- method: "PUT",
1200
- headers,
1201
- path: resolvedPath,
1202
- body,
1203
- });
806
+ b.m("PUT").h(headers).b(body);
807
+ return b.build();
1204
808
  };
1205
809
  exports.se_UpdateChannelMessageCommand = se_UpdateChannelMessageCommand;
1206
810
  const se_UpdateChannelReadMarkerCommand = async (input, context) => {
1207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
811
+ const b = (0, core_1.requestBuilder)(input, context);
1208
812
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1209
- "x-amz-chime-bearer": input.ChimeBearer,
813
+ [_xacb]: input[_CB],
1210
814
  });
1211
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker";
1212
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
815
+ b.bp("/channels/{ChannelArn}/readMarker");
816
+ b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
1213
817
  let body;
1214
- return new protocol_http_1.HttpRequest({
1215
- protocol,
1216
- hostname,
1217
- port,
1218
- method: "PUT",
1219
- headers,
1220
- path: resolvedPath,
1221
- body,
1222
- });
818
+ b.m("PUT").h(headers).b(body);
819
+ return b.build();
1223
820
  };
1224
821
  exports.se_UpdateChannelReadMarkerCommand = se_UpdateChannelReadMarkerCommand;
1225
822
  const de_AssociateChannelFlowCommand = async (output, context) => {
@@ -4109,6 +3706,34 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4109
3706
  value !== "" &&
4110
3707
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4111
3708
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3709
+ const _AIA = "AppInstanceArn";
3710
+ const _AIUA = "AppInstanceUserArn";
3711
+ const _CB = "ChimeBearer";
3712
+ const _CFA = "ChannelFlowArn";
3713
+ const _MR = "MaxResults";
3714
+ const _NA = "NotAfter";
3715
+ const _NB = "NotBefore";
3716
+ const _NT = "NextToken";
3717
+ const _P = "Privacy";
3718
+ const _RARN = "ResourceARN";
3719
+ const _SCI = "SubChannelId";
3720
+ const _SO = "SortOrder";
3721
+ const _T = "Type";
3722
+ const _a = "arn";
3723
+ const _aia = "app-instance-arn";
3724
+ const _aiua = "app-instance-user-arn";
3725
+ const _cfa = "channel-flow-arn";
3726
+ const _mr = "max-results";
3727
+ const _na = "not-after";
3728
+ const _nb = "not-before";
3729
+ const _nt = "next-token";
3730
+ const _o = "operation";
3731
+ const _p = "privacy";
3732
+ const _s = "scope";
3733
+ const _sci = "sub-channel-id";
3734
+ const _so = "sort-order";
3735
+ const _t = "type";
3736
+ const _xacb = "x-amz-chime-bearer";
4112
3737
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4113
3738
  if (encoded.length) {
4114
3739
  return JSON.parse(encoded);