@aws-sdk/client-chime-sdk-voice 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.
@@ -4,146 +4,105 @@ exports.se_GetVoiceProfileDomainCommand = exports.se_GetVoiceProfileCommand = ex
4
4
  exports.de_CreateSipMediaApplicationCommand = exports.de_CreateProxySessionCommand = exports.de_CreatePhoneNumberOrderCommand = exports.de_BatchUpdatePhoneNumberCommand = exports.de_BatchDeletePhoneNumberCommand = exports.de_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = exports.de_AssociatePhoneNumbersWithVoiceConnectorCommand = exports.se_ValidateE911AddressCommand = exports.se_UpdateVoiceProfileDomainCommand = exports.se_UpdateVoiceProfileCommand = exports.se_UpdateVoiceConnectorGroupCommand = exports.se_UpdateVoiceConnectorCommand = exports.se_UpdateSipRuleCommand = exports.se_UpdateSipMediaApplicationCallCommand = exports.se_UpdateSipMediaApplicationCommand = exports.se_UpdateProxySessionCommand = exports.se_UpdatePhoneNumberSettingsCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopVoiceToneAnalysisTaskCommand = exports.se_StopSpeakerSearchTaskCommand = exports.se_StartVoiceToneAnalysisTaskCommand = exports.se_StartSpeakerSearchTaskCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_RestorePhoneNumberCommand = exports.se_PutVoiceConnectorTerminationCredentialsCommand = exports.se_PutVoiceConnectorTerminationCommand = exports.se_PutVoiceConnectorStreamingConfigurationCommand = exports.se_PutVoiceConnectorProxyCommand = exports.se_PutVoiceConnectorOriginationCommand = exports.se_PutVoiceConnectorLoggingConfigurationCommand = exports.se_PutVoiceConnectorEmergencyCallingConfigurationCommand = exports.se_PutSipMediaApplicationLoggingConfigurationCommand = exports.se_PutSipMediaApplicationAlexaSkillConfigurationCommand = exports.se_ListVoiceProfilesCommand = exports.se_ListVoiceProfileDomainsCommand = exports.se_ListVoiceConnectorTerminationCredentialsCommand = exports.se_ListVoiceConnectorsCommand = exports.se_ListVoiceConnectorGroupsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSupportedPhoneNumberCountriesCommand = exports.se_ListSipRulesCommand = exports.se_ListSipMediaApplicationsCommand = exports.se_ListProxySessionsCommand = exports.se_ListPhoneNumbersCommand = exports.se_ListPhoneNumberOrdersCommand = exports.se_ListAvailableVoiceConnectorRegionsCommand = exports.se_GetVoiceToneAnalysisTaskCommand = void 0;
5
5
  exports.de_ListSipRulesCommand = exports.de_ListSipMediaApplicationsCommand = exports.de_ListProxySessionsCommand = exports.de_ListPhoneNumbersCommand = exports.de_ListPhoneNumberOrdersCommand = exports.de_ListAvailableVoiceConnectorRegionsCommand = exports.de_GetVoiceToneAnalysisTaskCommand = exports.de_GetVoiceProfileDomainCommand = exports.de_GetVoiceProfileCommand = exports.de_GetVoiceConnectorTerminationHealthCommand = exports.de_GetVoiceConnectorTerminationCommand = exports.de_GetVoiceConnectorStreamingConfigurationCommand = exports.de_GetVoiceConnectorProxyCommand = exports.de_GetVoiceConnectorOriginationCommand = exports.de_GetVoiceConnectorLoggingConfigurationCommand = exports.de_GetVoiceConnectorGroupCommand = exports.de_GetVoiceConnectorEmergencyCallingConfigurationCommand = exports.de_GetVoiceConnectorCommand = exports.de_GetSpeakerSearchTaskCommand = exports.de_GetSipRuleCommand = exports.de_GetSipMediaApplicationLoggingConfigurationCommand = exports.de_GetSipMediaApplicationAlexaSkillConfigurationCommand = exports.de_GetSipMediaApplicationCommand = exports.de_GetProxySessionCommand = exports.de_GetPhoneNumberSettingsCommand = exports.de_GetPhoneNumberOrderCommand = exports.de_GetPhoneNumberCommand = exports.de_GetGlobalSettingsCommand = exports.de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = exports.de_DisassociatePhoneNumbersFromVoiceConnectorCommand = exports.de_DeleteVoiceProfileDomainCommand = exports.de_DeleteVoiceProfileCommand = exports.de_DeleteVoiceConnectorTerminationCredentialsCommand = exports.de_DeleteVoiceConnectorTerminationCommand = exports.de_DeleteVoiceConnectorStreamingConfigurationCommand = exports.de_DeleteVoiceConnectorProxyCommand = exports.de_DeleteVoiceConnectorOriginationCommand = exports.de_DeleteVoiceConnectorGroupCommand = exports.de_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = exports.de_DeleteVoiceConnectorCommand = exports.de_DeleteSipRuleCommand = exports.de_DeleteSipMediaApplicationCommand = exports.de_DeleteProxySessionCommand = exports.de_DeletePhoneNumberCommand = exports.de_CreateVoiceProfileDomainCommand = exports.de_CreateVoiceProfileCommand = exports.de_CreateVoiceConnectorGroupCommand = exports.de_CreateVoiceConnectorCommand = exports.de_CreateSipRuleCommand = exports.de_CreateSipMediaApplicationCallCommand = void 0;
6
6
  exports.de_ValidateE911AddressCommand = exports.de_UpdateVoiceProfileDomainCommand = exports.de_UpdateVoiceProfileCommand = exports.de_UpdateVoiceConnectorGroupCommand = exports.de_UpdateVoiceConnectorCommand = exports.de_UpdateSipRuleCommand = exports.de_UpdateSipMediaApplicationCallCommand = exports.de_UpdateSipMediaApplicationCommand = exports.de_UpdateProxySessionCommand = exports.de_UpdatePhoneNumberSettingsCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopVoiceToneAnalysisTaskCommand = exports.de_StopSpeakerSearchTaskCommand = exports.de_StartVoiceToneAnalysisTaskCommand = exports.de_StartSpeakerSearchTaskCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_RestorePhoneNumberCommand = exports.de_PutVoiceConnectorTerminationCredentialsCommand = exports.de_PutVoiceConnectorTerminationCommand = exports.de_PutVoiceConnectorStreamingConfigurationCommand = exports.de_PutVoiceConnectorProxyCommand = exports.de_PutVoiceConnectorOriginationCommand = exports.de_PutVoiceConnectorLoggingConfigurationCommand = exports.de_PutVoiceConnectorEmergencyCallingConfigurationCommand = exports.de_PutSipMediaApplicationLoggingConfigurationCommand = exports.de_PutSipMediaApplicationAlexaSkillConfigurationCommand = exports.de_ListVoiceProfilesCommand = exports.de_ListVoiceProfileDomainsCommand = exports.de_ListVoiceConnectorTerminationCredentialsCommand = exports.de_ListVoiceConnectorsCommand = exports.de_ListVoiceConnectorGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSupportedPhoneNumberCountriesCommand = void 0;
7
- const protocol_http_1 = require("@smithy/protocol-http");
7
+ const core_1 = require("@smithy/core");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const ChimeSDKVoiceServiceException_1 = require("../models/ChimeSDKVoiceServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AssociatePhoneNumbersWithVoiceConnectorCommand = 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 = {
14
14
  "content-type": "application/json",
15
15
  };
16
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
17
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
16
+ b.bp("/voice-connectors/{VoiceConnectorId}");
17
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
18
18
  const query = (0, smithy_client_1.map)({
19
- operation: [, "associate-phone-numbers"],
19
+ [_o]: [, "associate-phone-numbers"],
20
20
  });
21
21
  let body;
22
22
  body = JSON.stringify((0, smithy_client_1.take)(input, {
23
23
  E164PhoneNumbers: (_) => (0, smithy_client_1._json)(_),
24
24
  ForceAssociate: [],
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- query,
34
- body,
35
- });
26
+ b.m("POST").h(headers).q(query).b(body);
27
+ return b.build();
36
28
  };
37
29
  exports.se_AssociatePhoneNumbersWithVoiceConnectorCommand = se_AssociatePhoneNumbersWithVoiceConnectorCommand;
38
30
  const se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = async (input, context) => {
39
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_1.requestBuilder)(input, context);
40
32
  const headers = {
41
33
  "content-type": "application/json",
42
34
  };
43
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
44
- "/voice-connector-groups/{VoiceConnectorGroupId}";
45
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
35
+ b.bp("/voice-connector-groups/{VoiceConnectorGroupId}");
36
+ b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
46
37
  const query = (0, smithy_client_1.map)({
47
- operation: [, "associate-phone-numbers"],
38
+ [_o]: [, "associate-phone-numbers"],
48
39
  });
49
40
  let body;
50
41
  body = JSON.stringify((0, smithy_client_1.take)(input, {
51
42
  E164PhoneNumbers: (_) => (0, smithy_client_1._json)(_),
52
43
  ForceAssociate: [],
53
44
  }));
54
- return new protocol_http_1.HttpRequest({
55
- protocol,
56
- hostname,
57
- port,
58
- method: "POST",
59
- headers,
60
- path: resolvedPath,
61
- query,
62
- body,
63
- });
45
+ b.m("POST").h(headers).q(query).b(body);
46
+ return b.build();
64
47
  };
65
48
  exports.se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand;
66
49
  const se_BatchDeletePhoneNumberCommand = async (input, context) => {
67
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = (0, core_1.requestBuilder)(input, context);
68
51
  const headers = {
69
52
  "content-type": "application/json",
70
53
  };
71
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers";
54
+ b.bp("/phone-numbers");
72
55
  const query = (0, smithy_client_1.map)({
73
- operation: [, "batch-delete"],
56
+ [_o]: [, "batch-delete"],
74
57
  });
75
58
  let body;
76
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
77
60
  PhoneNumberIds: (_) => (0, smithy_client_1._json)(_),
78
61
  }));
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
- });
62
+ b.m("POST").h(headers).q(query).b(body);
63
+ return b.build();
89
64
  };
90
65
  exports.se_BatchDeletePhoneNumberCommand = se_BatchDeletePhoneNumberCommand;
91
66
  const se_BatchUpdatePhoneNumberCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
+ const b = (0, core_1.requestBuilder)(input, context);
93
68
  const headers = {
94
69
  "content-type": "application/json",
95
70
  };
96
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers";
71
+ b.bp("/phone-numbers");
97
72
  const query = (0, smithy_client_1.map)({
98
- operation: [, "batch-update"],
73
+ [_o]: [, "batch-update"],
99
74
  });
100
75
  let body;
101
76
  body = JSON.stringify((0, smithy_client_1.take)(input, {
102
77
  UpdatePhoneNumberRequestItems: (_) => (0, smithy_client_1._json)(_),
103
78
  }));
104
- return new protocol_http_1.HttpRequest({
105
- protocol,
106
- hostname,
107
- port,
108
- method: "POST",
109
- headers,
110
- path: resolvedPath,
111
- query,
112
- body,
113
- });
79
+ b.m("POST").h(headers).q(query).b(body);
80
+ return b.build();
114
81
  };
115
82
  exports.se_BatchUpdatePhoneNumberCommand = se_BatchUpdatePhoneNumberCommand;
116
83
  const se_CreatePhoneNumberOrderCommand = async (input, context) => {
117
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_1.requestBuilder)(input, context);
118
85
  const headers = {
119
86
  "content-type": "application/json",
120
87
  };
121
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders";
88
+ b.bp("/phone-number-orders");
122
89
  let body;
123
90
  body = JSON.stringify((0, smithy_client_1.take)(input, {
124
91
  E164PhoneNumbers: (_) => (0, smithy_client_1._json)(_),
125
92
  Name: [],
126
93
  ProductType: [],
127
94
  }));
128
- return new protocol_http_1.HttpRequest({
129
- protocol,
130
- hostname,
131
- port,
132
- method: "POST",
133
- headers,
134
- path: resolvedPath,
135
- body,
136
- });
95
+ b.m("POST").h(headers).b(body);
96
+ return b.build();
137
97
  };
138
98
  exports.se_CreatePhoneNumberOrderCommand = se_CreatePhoneNumberOrderCommand;
139
99
  const se_CreateProxySessionCommand = async (input, context) => {
140
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
+ const b = (0, core_1.requestBuilder)(input, context);
141
101
  const headers = {
142
102
  "content-type": "application/json",
143
103
  };
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
145
- "/voice-connectors/{VoiceConnectorId}/proxy-sessions";
146
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
104
+ b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions");
105
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
147
106
  let body;
148
107
  body = JSON.stringify((0, smithy_client_1.take)(input, {
149
108
  Capabilities: (_) => (0, smithy_client_1._json)(_),
@@ -154,23 +113,16 @@ const se_CreateProxySessionCommand = async (input, context) => {
154
113
  NumberSelectionBehavior: [],
155
114
  ParticipantPhoneNumbers: (_) => (0, smithy_client_1._json)(_),
156
115
  }));
157
- return new protocol_http_1.HttpRequest({
158
- protocol,
159
- hostname,
160
- port,
161
- method: "POST",
162
- headers,
163
- path: resolvedPath,
164
- body,
165
- });
116
+ b.m("POST").h(headers).b(body);
117
+ return b.build();
166
118
  };
167
119
  exports.se_CreateProxySessionCommand = se_CreateProxySessionCommand;
168
120
  const se_CreateSipMediaApplicationCommand = async (input, context) => {
169
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = (0, core_1.requestBuilder)(input, context);
170
122
  const headers = {
171
123
  "content-type": "application/json",
172
124
  };
173
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications";
125
+ b.bp("/sip-media-applications");
174
126
  let body;
175
127
  body = JSON.stringify((0, smithy_client_1.take)(input, {
176
128
  AwsRegion: [],
@@ -178,25 +130,17 @@ const se_CreateSipMediaApplicationCommand = async (input, context) => {
178
130
  Name: [],
179
131
  Tags: (_) => (0, smithy_client_1._json)(_),
180
132
  }));
181
- return new protocol_http_1.HttpRequest({
182
- protocol,
183
- hostname,
184
- port,
185
- method: "POST",
186
- headers,
187
- path: resolvedPath,
188
- body,
189
- });
133
+ b.m("POST").h(headers).b(body);
134
+ return b.build();
190
135
  };
191
136
  exports.se_CreateSipMediaApplicationCommand = se_CreateSipMediaApplicationCommand;
192
137
  const se_CreateSipMediaApplicationCallCommand = async (input, context) => {
193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
138
+ const b = (0, core_1.requestBuilder)(input, context);
194
139
  const headers = {
195
140
  "content-type": "application/json",
196
141
  };
197
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
198
- "/sip-media-applications/{SipMediaApplicationId}/calls";
199
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
142
+ b.bp("/sip-media-applications/{SipMediaApplicationId}/calls");
143
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
200
144
  let body;
201
145
  body = JSON.stringify((0, smithy_client_1.take)(input, {
202
146
  ArgumentsMap: (_) => (0, smithy_client_1._json)(_),
@@ -204,23 +148,16 @@ const se_CreateSipMediaApplicationCallCommand = async (input, context) => {
204
148
  SipHeaders: (_) => (0, smithy_client_1._json)(_),
205
149
  ToPhoneNumber: [],
206
150
  }));
207
- return new protocol_http_1.HttpRequest({
208
- protocol,
209
- hostname,
210
- port,
211
- method: "POST",
212
- headers,
213
- path: resolvedPath,
214
- body,
215
- });
151
+ b.m("POST").h(headers).b(body);
152
+ return b.build();
216
153
  };
217
154
  exports.se_CreateSipMediaApplicationCallCommand = se_CreateSipMediaApplicationCallCommand;
218
155
  const se_CreateSipRuleCommand = async (input, context) => {
219
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
+ const b = (0, core_1.requestBuilder)(input, context);
220
157
  const headers = {
221
158
  "content-type": "application/json",
222
159
  };
223
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules";
160
+ b.bp("/sip-rules");
224
161
  let body;
225
162
  body = JSON.stringify((0, smithy_client_1.take)(input, {
226
163
  Disabled: [],
@@ -229,23 +166,16 @@ const se_CreateSipRuleCommand = async (input, context) => {
229
166
  TriggerType: [],
230
167
  TriggerValue: [],
231
168
  }));
232
- return new protocol_http_1.HttpRequest({
233
- protocol,
234
- hostname,
235
- port,
236
- method: "POST",
237
- headers,
238
- path: resolvedPath,
239
- body,
240
- });
169
+ b.m("POST").h(headers).b(body);
170
+ return b.build();
241
171
  };
242
172
  exports.se_CreateSipRuleCommand = se_CreateSipRuleCommand;
243
173
  const se_CreateVoiceConnectorCommand = async (input, context) => {
244
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
245
175
  const headers = {
246
176
  "content-type": "application/json",
247
177
  };
248
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors";
178
+ b.bp("/voice-connectors");
249
179
  let body;
250
180
  body = JSON.stringify((0, smithy_client_1.take)(input, {
251
181
  AwsRegion: [],
@@ -253,66 +183,45 @@ const se_CreateVoiceConnectorCommand = async (input, context) => {
253
183
  RequireEncryption: [],
254
184
  Tags: (_) => (0, smithy_client_1._json)(_),
255
185
  }));
256
- return new protocol_http_1.HttpRequest({
257
- protocol,
258
- hostname,
259
- port,
260
- method: "POST",
261
- headers,
262
- path: resolvedPath,
263
- body,
264
- });
186
+ b.m("POST").h(headers).b(body);
187
+ return b.build();
265
188
  };
266
189
  exports.se_CreateVoiceConnectorCommand = se_CreateVoiceConnectorCommand;
267
190
  const se_CreateVoiceConnectorGroupCommand = async (input, context) => {
268
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = (0, core_1.requestBuilder)(input, context);
269
192
  const headers = {
270
193
  "content-type": "application/json",
271
194
  };
272
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups";
195
+ b.bp("/voice-connector-groups");
273
196
  let body;
274
197
  body = JSON.stringify((0, smithy_client_1.take)(input, {
275
198
  Name: [],
276
199
  VoiceConnectorItems: (_) => (0, smithy_client_1._json)(_),
277
200
  }));
278
- return new protocol_http_1.HttpRequest({
279
- protocol,
280
- hostname,
281
- port,
282
- method: "POST",
283
- headers,
284
- path: resolvedPath,
285
- body,
286
- });
201
+ b.m("POST").h(headers).b(body);
202
+ return b.build();
287
203
  };
288
204
  exports.se_CreateVoiceConnectorGroupCommand = se_CreateVoiceConnectorGroupCommand;
289
205
  const se_CreateVoiceProfileCommand = async (input, context) => {
290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
+ const b = (0, core_1.requestBuilder)(input, context);
291
207
  const headers = {
292
208
  "content-type": "application/json",
293
209
  };
294
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles";
210
+ b.bp("/voice-profiles");
295
211
  let body;
296
212
  body = JSON.stringify((0, smithy_client_1.take)(input, {
297
213
  SpeakerSearchTaskId: [],
298
214
  }));
299
- return new protocol_http_1.HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "POST",
304
- headers,
305
- path: resolvedPath,
306
- body,
307
- });
215
+ b.m("POST").h(headers).b(body);
216
+ return b.build();
308
217
  };
309
218
  exports.se_CreateVoiceProfileCommand = se_CreateVoiceProfileCommand;
310
219
  const se_CreateVoiceProfileDomainCommand = async (input, context) => {
311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
+ const b = (0, core_1.requestBuilder)(input, context);
312
221
  const headers = {
313
222
  "content-type": "application/json",
314
223
  };
315
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains";
224
+ b.bp("/voice-profile-domains");
316
225
  let body;
317
226
  body = JSON.stringify((0, smithy_client_1.take)(input, {
318
227
  ClientRequestToken: [],
@@ -321,1126 +230,678 @@ const se_CreateVoiceProfileDomainCommand = async (input, context) => {
321
230
  ServerSideEncryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
322
231
  Tags: (_) => (0, smithy_client_1._json)(_),
323
232
  }));
324
- return new protocol_http_1.HttpRequest({
325
- protocol,
326
- hostname,
327
- port,
328
- method: "POST",
329
- headers,
330
- path: resolvedPath,
331
- body,
332
- });
233
+ b.m("POST").h(headers).b(body);
234
+ return b.build();
333
235
  };
334
236
  exports.se_CreateVoiceProfileDomainCommand = se_CreateVoiceProfileDomainCommand;
335
237
  const se_DeletePhoneNumberCommand = async (input, context) => {
336
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = (0, core_1.requestBuilder)(input, context);
337
239
  const headers = {};
338
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
339
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
240
+ b.bp("/phone-numbers/{PhoneNumberId}");
241
+ b.p("PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
340
242
  let body;
341
- return new protocol_http_1.HttpRequest({
342
- protocol,
343
- hostname,
344
- port,
345
- method: "DELETE",
346
- headers,
347
- path: resolvedPath,
348
- body,
349
- });
243
+ b.m("DELETE").h(headers).b(body);
244
+ return b.build();
350
245
  };
351
246
  exports.se_DeletePhoneNumberCommand = se_DeletePhoneNumberCommand;
352
247
  const se_DeleteProxySessionCommand = async (input, context) => {
353
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = (0, core_1.requestBuilder)(input, context);
354
249
  const headers = {};
355
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
356
- "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}";
357
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
358
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
250
+ b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}");
251
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
252
+ b.p("ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
359
253
  let body;
360
- return new protocol_http_1.HttpRequest({
361
- protocol,
362
- hostname,
363
- port,
364
- method: "DELETE",
365
- headers,
366
- path: resolvedPath,
367
- body,
368
- });
254
+ b.m("DELETE").h(headers).b(body);
255
+ return b.build();
369
256
  };
370
257
  exports.se_DeleteProxySessionCommand = se_DeleteProxySessionCommand;
371
258
  const se_DeleteSipMediaApplicationCommand = async (input, context) => {
372
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
259
+ const b = (0, core_1.requestBuilder)(input, context);
373
260
  const headers = {};
374
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
375
- "/sip-media-applications/{SipMediaApplicationId}";
376
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
261
+ b.bp("/sip-media-applications/{SipMediaApplicationId}");
262
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
377
263
  let body;
378
- return new protocol_http_1.HttpRequest({
379
- protocol,
380
- hostname,
381
- port,
382
- method: "DELETE",
383
- headers,
384
- path: resolvedPath,
385
- body,
386
- });
264
+ b.m("DELETE").h(headers).b(body);
265
+ return b.build();
387
266
  };
388
267
  exports.se_DeleteSipMediaApplicationCommand = se_DeleteSipMediaApplicationCommand;
389
268
  const se_DeleteSipRuleCommand = async (input, context) => {
390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
269
+ const b = (0, core_1.requestBuilder)(input, context);
391
270
  const headers = {};
392
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}";
393
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
271
+ b.bp("/sip-rules/{SipRuleId}");
272
+ b.p("SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
394
273
  let body;
395
- return new protocol_http_1.HttpRequest({
396
- protocol,
397
- hostname,
398
- port,
399
- method: "DELETE",
400
- headers,
401
- path: resolvedPath,
402
- body,
403
- });
274
+ b.m("DELETE").h(headers).b(body);
275
+ return b.build();
404
276
  };
405
277
  exports.se_DeleteSipRuleCommand = se_DeleteSipRuleCommand;
406
278
  const se_DeleteVoiceConnectorCommand = async (input, context) => {
407
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
279
+ const b = (0, core_1.requestBuilder)(input, context);
408
280
  const headers = {};
409
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
410
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
281
+ b.bp("/voice-connectors/{VoiceConnectorId}");
282
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
411
283
  let body;
412
- return new protocol_http_1.HttpRequest({
413
- protocol,
414
- hostname,
415
- port,
416
- method: "DELETE",
417
- headers,
418
- path: resolvedPath,
419
- body,
420
- });
284
+ b.m("DELETE").h(headers).b(body);
285
+ return b.build();
421
286
  };
422
287
  exports.se_DeleteVoiceConnectorCommand = se_DeleteVoiceConnectorCommand;
423
288
  const se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = async (input, context) => {
424
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
+ const b = (0, core_1.requestBuilder)(input, context);
425
290
  const headers = {};
426
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
427
- "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration";
428
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
291
+ b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration");
292
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
429
293
  let body;
430
- return new protocol_http_1.HttpRequest({
431
- protocol,
432
- hostname,
433
- port,
434
- method: "DELETE",
435
- headers,
436
- path: resolvedPath,
437
- body,
438
- });
294
+ b.m("DELETE").h(headers).b(body);
295
+ return b.build();
439
296
  };
440
297
  exports.se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand;
441
298
  const se_DeleteVoiceConnectorGroupCommand = async (input, context) => {
442
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = (0, core_1.requestBuilder)(input, context);
443
300
  const headers = {};
444
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
445
- "/voice-connector-groups/{VoiceConnectorGroupId}";
446
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
301
+ b.bp("/voice-connector-groups/{VoiceConnectorGroupId}");
302
+ b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
447
303
  let body;
448
- return new protocol_http_1.HttpRequest({
449
- protocol,
450
- hostname,
451
- port,
452
- method: "DELETE",
453
- headers,
454
- path: resolvedPath,
455
- body,
456
- });
304
+ b.m("DELETE").h(headers).b(body);
305
+ return b.build();
457
306
  };
458
307
  exports.se_DeleteVoiceConnectorGroupCommand = se_DeleteVoiceConnectorGroupCommand;
459
308
  const se_DeleteVoiceConnectorOriginationCommand = async (input, context) => {
460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
309
+ const b = (0, core_1.requestBuilder)(input, context);
461
310
  const headers = {};
462
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
463
- "/voice-connectors/{VoiceConnectorId}/origination";
464
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
311
+ b.bp("/voice-connectors/{VoiceConnectorId}/origination");
312
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
465
313
  let body;
466
- return new protocol_http_1.HttpRequest({
467
- protocol,
468
- hostname,
469
- port,
470
- method: "DELETE",
471
- headers,
472
- path: resolvedPath,
473
- body,
474
- });
314
+ b.m("DELETE").h(headers).b(body);
315
+ return b.build();
475
316
  };
476
317
  exports.se_DeleteVoiceConnectorOriginationCommand = se_DeleteVoiceConnectorOriginationCommand;
477
318
  const se_DeleteVoiceConnectorProxyCommand = async (input, context) => {
478
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
319
+ const b = (0, core_1.requestBuilder)(input, context);
479
320
  const headers = {};
480
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
481
- "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy";
482
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
321
+ b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy");
322
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
483
323
  let body;
484
- return new protocol_http_1.HttpRequest({
485
- protocol,
486
- hostname,
487
- port,
488
- method: "DELETE",
489
- headers,
490
- path: resolvedPath,
491
- body,
492
- });
324
+ b.m("DELETE").h(headers).b(body);
325
+ return b.build();
493
326
  };
494
327
  exports.se_DeleteVoiceConnectorProxyCommand = se_DeleteVoiceConnectorProxyCommand;
495
328
  const se_DeleteVoiceConnectorStreamingConfigurationCommand = async (input, context) => {
496
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
329
+ const b = (0, core_1.requestBuilder)(input, context);
497
330
  const headers = {};
498
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
499
- "/voice-connectors/{VoiceConnectorId}/streaming-configuration";
500
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
331
+ b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration");
332
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
501
333
  let body;
502
- return new protocol_http_1.HttpRequest({
503
- protocol,
504
- hostname,
505
- port,
506
- method: "DELETE",
507
- headers,
508
- path: resolvedPath,
509
- body,
510
- });
334
+ b.m("DELETE").h(headers).b(body);
335
+ return b.build();
511
336
  };
512
337
  exports.se_DeleteVoiceConnectorStreamingConfigurationCommand = se_DeleteVoiceConnectorStreamingConfigurationCommand;
513
338
  const se_DeleteVoiceConnectorTerminationCommand = async (input, context) => {
514
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const b = (0, core_1.requestBuilder)(input, context);
515
340
  const headers = {};
516
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
517
- "/voice-connectors/{VoiceConnectorId}/termination";
518
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
341
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination");
342
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
519
343
  let body;
520
- return new protocol_http_1.HttpRequest({
521
- protocol,
522
- hostname,
523
- port,
524
- method: "DELETE",
525
- headers,
526
- path: resolvedPath,
527
- body,
528
- });
344
+ b.m("DELETE").h(headers).b(body);
345
+ return b.build();
529
346
  };
530
347
  exports.se_DeleteVoiceConnectorTerminationCommand = se_DeleteVoiceConnectorTerminationCommand;
531
348
  const se_DeleteVoiceConnectorTerminationCredentialsCommand = async (input, context) => {
532
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
349
+ const b = (0, core_1.requestBuilder)(input, context);
533
350
  const headers = {
534
351
  "content-type": "application/json",
535
352
  };
536
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
537
- "/voice-connectors/{VoiceConnectorId}/termination/credentials";
538
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
353
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials");
354
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
539
355
  const query = (0, smithy_client_1.map)({
540
- operation: [, "delete"],
356
+ [_o]: [, "delete"],
541
357
  });
542
358
  let body;
543
359
  body = JSON.stringify((0, smithy_client_1.take)(input, {
544
360
  Usernames: (_) => (0, smithy_client_1._json)(_),
545
361
  }));
546
- return new protocol_http_1.HttpRequest({
547
- protocol,
548
- hostname,
549
- port,
550
- method: "POST",
551
- headers,
552
- path: resolvedPath,
553
- query,
554
- body,
555
- });
362
+ b.m("POST").h(headers).q(query).b(body);
363
+ return b.build();
556
364
  };
557
365
  exports.se_DeleteVoiceConnectorTerminationCredentialsCommand = se_DeleteVoiceConnectorTerminationCredentialsCommand;
558
366
  const se_DeleteVoiceProfileCommand = async (input, context) => {
559
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
+ const b = (0, core_1.requestBuilder)(input, context);
560
368
  const headers = {};
561
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
562
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
369
+ b.bp("/voice-profiles/{VoiceProfileId}");
370
+ b.p("VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
563
371
  let body;
564
- return new protocol_http_1.HttpRequest({
565
- protocol,
566
- hostname,
567
- port,
568
- method: "DELETE",
569
- headers,
570
- path: resolvedPath,
571
- body,
572
- });
372
+ b.m("DELETE").h(headers).b(body);
373
+ return b.build();
573
374
  };
574
375
  exports.se_DeleteVoiceProfileCommand = se_DeleteVoiceProfileCommand;
575
376
  const se_DeleteVoiceProfileDomainCommand = async (input, context) => {
576
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
+ const b = (0, core_1.requestBuilder)(input, context);
577
378
  const headers = {};
578
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
579
- "/voice-profile-domains/{VoiceProfileDomainId}";
580
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
379
+ b.bp("/voice-profile-domains/{VoiceProfileDomainId}");
380
+ b.p("VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
581
381
  let body;
582
- return new protocol_http_1.HttpRequest({
583
- protocol,
584
- hostname,
585
- port,
586
- method: "DELETE",
587
- headers,
588
- path: resolvedPath,
589
- body,
590
- });
382
+ b.m("DELETE").h(headers).b(body);
383
+ return b.build();
591
384
  };
592
385
  exports.se_DeleteVoiceProfileDomainCommand = se_DeleteVoiceProfileDomainCommand;
593
386
  const se_DisassociatePhoneNumbersFromVoiceConnectorCommand = async (input, context) => {
594
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
387
+ const b = (0, core_1.requestBuilder)(input, context);
595
388
  const headers = {
596
389
  "content-type": "application/json",
597
390
  };
598
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
599
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
391
+ b.bp("/voice-connectors/{VoiceConnectorId}");
392
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
600
393
  const query = (0, smithy_client_1.map)({
601
- operation: [, "disassociate-phone-numbers"],
394
+ [_o]: [, "disassociate-phone-numbers"],
602
395
  });
603
396
  let body;
604
397
  body = JSON.stringify((0, smithy_client_1.take)(input, {
605
398
  E164PhoneNumbers: (_) => (0, smithy_client_1._json)(_),
606
399
  }));
607
- return new protocol_http_1.HttpRequest({
608
- protocol,
609
- hostname,
610
- port,
611
- method: "POST",
612
- headers,
613
- path: resolvedPath,
614
- query,
615
- body,
616
- });
400
+ b.m("POST").h(headers).q(query).b(body);
401
+ return b.build();
617
402
  };
618
403
  exports.se_DisassociatePhoneNumbersFromVoiceConnectorCommand = se_DisassociatePhoneNumbersFromVoiceConnectorCommand;
619
404
  const se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = async (input, context) => {
620
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = (0, core_1.requestBuilder)(input, context);
621
406
  const headers = {
622
407
  "content-type": "application/json",
623
408
  };
624
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
625
- "/voice-connector-groups/{VoiceConnectorGroupId}";
626
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
409
+ b.bp("/voice-connector-groups/{VoiceConnectorGroupId}");
410
+ b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
627
411
  const query = (0, smithy_client_1.map)({
628
- operation: [, "disassociate-phone-numbers"],
412
+ [_o]: [, "disassociate-phone-numbers"],
629
413
  });
630
414
  let body;
631
415
  body = JSON.stringify((0, smithy_client_1.take)(input, {
632
416
  E164PhoneNumbers: (_) => (0, smithy_client_1._json)(_),
633
417
  }));
634
- return new protocol_http_1.HttpRequest({
635
- protocol,
636
- hostname,
637
- port,
638
- method: "POST",
639
- headers,
640
- path: resolvedPath,
641
- query,
642
- body,
643
- });
418
+ b.m("POST").h(headers).q(query).b(body);
419
+ return b.build();
644
420
  };
645
421
  exports.se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand;
646
422
  const se_GetGlobalSettingsCommand = async (input, context) => {
647
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
+ const b = (0, core_1.requestBuilder)(input, context);
648
424
  const headers = {
649
425
  "content-type": "application/json",
650
426
  };
651
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
427
+ b.bp("/settings");
652
428
  let body;
653
429
  body = "";
654
- return new protocol_http_1.HttpRequest({
655
- protocol,
656
- hostname,
657
- port,
658
- method: "GET",
659
- headers,
660
- path: resolvedPath,
661
- body,
662
- });
430
+ b.m("GET").h(headers).b(body);
431
+ return b.build();
663
432
  };
664
433
  exports.se_GetGlobalSettingsCommand = se_GetGlobalSettingsCommand;
665
434
  const se_GetPhoneNumberCommand = async (input, context) => {
666
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
435
+ const b = (0, core_1.requestBuilder)(input, context);
667
436
  const headers = {};
668
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
669
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
437
+ b.bp("/phone-numbers/{PhoneNumberId}");
438
+ b.p("PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
670
439
  let body;
671
- return new protocol_http_1.HttpRequest({
672
- protocol,
673
- hostname,
674
- port,
675
- method: "GET",
676
- headers,
677
- path: resolvedPath,
678
- body,
679
- });
440
+ b.m("GET").h(headers).b(body);
441
+ return b.build();
680
442
  };
681
443
  exports.se_GetPhoneNumberCommand = se_GetPhoneNumberCommand;
682
444
  const se_GetPhoneNumberOrderCommand = async (input, context) => {
683
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
445
+ const b = (0, core_1.requestBuilder)(input, context);
684
446
  const headers = {};
685
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders/{PhoneNumberOrderId}";
686
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberOrderId", () => input.PhoneNumberOrderId, "{PhoneNumberOrderId}", false);
447
+ b.bp("/phone-number-orders/{PhoneNumberOrderId}");
448
+ b.p("PhoneNumberOrderId", () => input.PhoneNumberOrderId, "{PhoneNumberOrderId}", false);
687
449
  let body;
688
- return new protocol_http_1.HttpRequest({
689
- protocol,
690
- hostname,
691
- port,
692
- method: "GET",
693
- headers,
694
- path: resolvedPath,
695
- body,
696
- });
450
+ b.m("GET").h(headers).b(body);
451
+ return b.build();
697
452
  };
698
453
  exports.se_GetPhoneNumberOrderCommand = se_GetPhoneNumberOrderCommand;
699
454
  const se_GetPhoneNumberSettingsCommand = async (input, context) => {
700
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = (0, core_1.requestBuilder)(input, context);
701
456
  const headers = {
702
457
  "content-type": "application/json",
703
458
  };
704
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number";
459
+ b.bp("/settings/phone-number");
705
460
  let body;
706
461
  body = "";
707
- return new protocol_http_1.HttpRequest({
708
- protocol,
709
- hostname,
710
- port,
711
- method: "GET",
712
- headers,
713
- path: resolvedPath,
714
- body,
715
- });
462
+ b.m("GET").h(headers).b(body);
463
+ return b.build();
716
464
  };
717
465
  exports.se_GetPhoneNumberSettingsCommand = se_GetPhoneNumberSettingsCommand;
718
466
  const se_GetProxySessionCommand = async (input, context) => {
719
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
467
+ const b = (0, core_1.requestBuilder)(input, context);
720
468
  const headers = {};
721
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
722
- "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}";
723
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
724
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
469
+ b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}");
470
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
471
+ b.p("ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
725
472
  let body;
726
- return new protocol_http_1.HttpRequest({
727
- protocol,
728
- hostname,
729
- port,
730
- method: "GET",
731
- headers,
732
- path: resolvedPath,
733
- body,
734
- });
473
+ b.m("GET").h(headers).b(body);
474
+ return b.build();
735
475
  };
736
476
  exports.se_GetProxySessionCommand = se_GetProxySessionCommand;
737
477
  const se_GetSipMediaApplicationCommand = async (input, context) => {
738
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
+ const b = (0, core_1.requestBuilder)(input, context);
739
479
  const headers = {};
740
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
741
- "/sip-media-applications/{SipMediaApplicationId}";
742
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
480
+ b.bp("/sip-media-applications/{SipMediaApplicationId}");
481
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
743
482
  let body;
744
- return new protocol_http_1.HttpRequest({
745
- protocol,
746
- hostname,
747
- port,
748
- method: "GET",
749
- headers,
750
- path: resolvedPath,
751
- body,
752
- });
483
+ b.m("GET").h(headers).b(body);
484
+ return b.build();
753
485
  };
754
486
  exports.se_GetSipMediaApplicationCommand = se_GetSipMediaApplicationCommand;
755
487
  const se_GetSipMediaApplicationAlexaSkillConfigurationCommand = async (input, context) => {
756
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
488
+ const b = (0, core_1.requestBuilder)(input, context);
757
489
  const headers = {};
758
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
759
- "/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration";
760
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
490
+ b.bp("/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration");
491
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
761
492
  let body;
762
- return new protocol_http_1.HttpRequest({
763
- protocol,
764
- hostname,
765
- port,
766
- method: "GET",
767
- headers,
768
- path: resolvedPath,
769
- body,
770
- });
493
+ b.m("GET").h(headers).b(body);
494
+ return b.build();
771
495
  };
772
496
  exports.se_GetSipMediaApplicationAlexaSkillConfigurationCommand = se_GetSipMediaApplicationAlexaSkillConfigurationCommand;
773
497
  const se_GetSipMediaApplicationLoggingConfigurationCommand = async (input, context) => {
774
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
498
+ const b = (0, core_1.requestBuilder)(input, context);
775
499
  const headers = {};
776
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
777
- "/sip-media-applications/{SipMediaApplicationId}/logging-configuration";
778
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
500
+ b.bp("/sip-media-applications/{SipMediaApplicationId}/logging-configuration");
501
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
779
502
  let body;
780
- return new protocol_http_1.HttpRequest({
781
- protocol,
782
- hostname,
783
- port,
784
- method: "GET",
785
- headers,
786
- path: resolvedPath,
787
- body,
788
- });
503
+ b.m("GET").h(headers).b(body);
504
+ return b.build();
789
505
  };
790
506
  exports.se_GetSipMediaApplicationLoggingConfigurationCommand = se_GetSipMediaApplicationLoggingConfigurationCommand;
791
507
  const se_GetSipRuleCommand = async (input, context) => {
792
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
508
+ const b = (0, core_1.requestBuilder)(input, context);
793
509
  const headers = {};
794
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}";
795
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
510
+ b.bp("/sip-rules/{SipRuleId}");
511
+ b.p("SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
796
512
  let body;
797
- return new protocol_http_1.HttpRequest({
798
- protocol,
799
- hostname,
800
- port,
801
- method: "GET",
802
- headers,
803
- path: resolvedPath,
804
- body,
805
- });
513
+ b.m("GET").h(headers).b(body);
514
+ return b.build();
806
515
  };
807
516
  exports.se_GetSipRuleCommand = se_GetSipRuleCommand;
808
517
  const se_GetSpeakerSearchTaskCommand = async (input, context) => {
809
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
518
+ const b = (0, core_1.requestBuilder)(input, context);
810
519
  const headers = {};
811
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
812
- "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}";
813
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
814
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
520
+ b.bp("/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}");
521
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
522
+ b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
815
523
  let body;
816
- return new protocol_http_1.HttpRequest({
817
- protocol,
818
- hostname,
819
- port,
820
- method: "GET",
821
- headers,
822
- path: resolvedPath,
823
- body,
824
- });
524
+ b.m("GET").h(headers).b(body);
525
+ return b.build();
825
526
  };
826
527
  exports.se_GetSpeakerSearchTaskCommand = se_GetSpeakerSearchTaskCommand;
827
528
  const se_GetVoiceConnectorCommand = async (input, context) => {
828
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
529
+ const b = (0, core_1.requestBuilder)(input, context);
829
530
  const headers = {};
830
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
831
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
531
+ b.bp("/voice-connectors/{VoiceConnectorId}");
532
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
832
533
  let body;
833
- return new protocol_http_1.HttpRequest({
834
- protocol,
835
- hostname,
836
- port,
837
- method: "GET",
838
- headers,
839
- path: resolvedPath,
840
- body,
841
- });
534
+ b.m("GET").h(headers).b(body);
535
+ return b.build();
842
536
  };
843
537
  exports.se_GetVoiceConnectorCommand = se_GetVoiceConnectorCommand;
844
538
  const se_GetVoiceConnectorEmergencyCallingConfigurationCommand = async (input, context) => {
845
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
539
+ const b = (0, core_1.requestBuilder)(input, context);
846
540
  const headers = {};
847
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
848
- "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration";
849
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
541
+ b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration");
542
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
850
543
  let body;
851
- return new protocol_http_1.HttpRequest({
852
- protocol,
853
- hostname,
854
- port,
855
- method: "GET",
856
- headers,
857
- path: resolvedPath,
858
- body,
859
- });
544
+ b.m("GET").h(headers).b(body);
545
+ return b.build();
860
546
  };
861
547
  exports.se_GetVoiceConnectorEmergencyCallingConfigurationCommand = se_GetVoiceConnectorEmergencyCallingConfigurationCommand;
862
548
  const se_GetVoiceConnectorGroupCommand = async (input, context) => {
863
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
549
+ const b = (0, core_1.requestBuilder)(input, context);
864
550
  const headers = {};
865
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
866
- "/voice-connector-groups/{VoiceConnectorGroupId}";
867
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
551
+ b.bp("/voice-connector-groups/{VoiceConnectorGroupId}");
552
+ b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
868
553
  let body;
869
- return new protocol_http_1.HttpRequest({
870
- protocol,
871
- hostname,
872
- port,
873
- method: "GET",
874
- headers,
875
- path: resolvedPath,
876
- body,
877
- });
554
+ b.m("GET").h(headers).b(body);
555
+ return b.build();
878
556
  };
879
557
  exports.se_GetVoiceConnectorGroupCommand = se_GetVoiceConnectorGroupCommand;
880
558
  const se_GetVoiceConnectorLoggingConfigurationCommand = async (input, context) => {
881
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
+ const b = (0, core_1.requestBuilder)(input, context);
882
560
  const headers = {};
883
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
884
- "/voice-connectors/{VoiceConnectorId}/logging-configuration";
885
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
561
+ b.bp("/voice-connectors/{VoiceConnectorId}/logging-configuration");
562
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
886
563
  let body;
887
- return new protocol_http_1.HttpRequest({
888
- protocol,
889
- hostname,
890
- port,
891
- method: "GET",
892
- headers,
893
- path: resolvedPath,
894
- body,
895
- });
564
+ b.m("GET").h(headers).b(body);
565
+ return b.build();
896
566
  };
897
567
  exports.se_GetVoiceConnectorLoggingConfigurationCommand = se_GetVoiceConnectorLoggingConfigurationCommand;
898
568
  const se_GetVoiceConnectorOriginationCommand = async (input, context) => {
899
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
569
+ const b = (0, core_1.requestBuilder)(input, context);
900
570
  const headers = {};
901
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
902
- "/voice-connectors/{VoiceConnectorId}/origination";
903
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
571
+ b.bp("/voice-connectors/{VoiceConnectorId}/origination");
572
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
904
573
  let body;
905
- return new protocol_http_1.HttpRequest({
906
- protocol,
907
- hostname,
908
- port,
909
- method: "GET",
910
- headers,
911
- path: resolvedPath,
912
- body,
913
- });
574
+ b.m("GET").h(headers).b(body);
575
+ return b.build();
914
576
  };
915
577
  exports.se_GetVoiceConnectorOriginationCommand = se_GetVoiceConnectorOriginationCommand;
916
578
  const se_GetVoiceConnectorProxyCommand = async (input, context) => {
917
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
579
+ const b = (0, core_1.requestBuilder)(input, context);
918
580
  const headers = {};
919
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
920
- "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy";
921
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
581
+ b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy");
582
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
922
583
  let body;
923
- return new protocol_http_1.HttpRequest({
924
- protocol,
925
- hostname,
926
- port,
927
- method: "GET",
928
- headers,
929
- path: resolvedPath,
930
- body,
931
- });
584
+ b.m("GET").h(headers).b(body);
585
+ return b.build();
932
586
  };
933
587
  exports.se_GetVoiceConnectorProxyCommand = se_GetVoiceConnectorProxyCommand;
934
588
  const se_GetVoiceConnectorStreamingConfigurationCommand = async (input, context) => {
935
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
+ const b = (0, core_1.requestBuilder)(input, context);
936
590
  const headers = {};
937
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
938
- "/voice-connectors/{VoiceConnectorId}/streaming-configuration";
939
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
591
+ b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration");
592
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
940
593
  let body;
941
- return new protocol_http_1.HttpRequest({
942
- protocol,
943
- hostname,
944
- port,
945
- method: "GET",
946
- headers,
947
- path: resolvedPath,
948
- body,
949
- });
594
+ b.m("GET").h(headers).b(body);
595
+ return b.build();
950
596
  };
951
597
  exports.se_GetVoiceConnectorStreamingConfigurationCommand = se_GetVoiceConnectorStreamingConfigurationCommand;
952
598
  const se_GetVoiceConnectorTerminationCommand = async (input, context) => {
953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
599
+ const b = (0, core_1.requestBuilder)(input, context);
954
600
  const headers = {};
955
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
956
- "/voice-connectors/{VoiceConnectorId}/termination";
957
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
601
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination");
602
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
958
603
  let body;
959
- return new protocol_http_1.HttpRequest({
960
- protocol,
961
- hostname,
962
- port,
963
- method: "GET",
964
- headers,
965
- path: resolvedPath,
966
- body,
967
- });
604
+ b.m("GET").h(headers).b(body);
605
+ return b.build();
968
606
  };
969
607
  exports.se_GetVoiceConnectorTerminationCommand = se_GetVoiceConnectorTerminationCommand;
970
608
  const se_GetVoiceConnectorTerminationHealthCommand = async (input, context) => {
971
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
609
+ const b = (0, core_1.requestBuilder)(input, context);
972
610
  const headers = {};
973
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
974
- "/voice-connectors/{VoiceConnectorId}/termination/health";
975
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
611
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination/health");
612
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
976
613
  let body;
977
- return new protocol_http_1.HttpRequest({
978
- protocol,
979
- hostname,
980
- port,
981
- method: "GET",
982
- headers,
983
- path: resolvedPath,
984
- body,
985
- });
614
+ b.m("GET").h(headers).b(body);
615
+ return b.build();
986
616
  };
987
617
  exports.se_GetVoiceConnectorTerminationHealthCommand = se_GetVoiceConnectorTerminationHealthCommand;
988
618
  const se_GetVoiceProfileCommand = async (input, context) => {
989
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
619
+ const b = (0, core_1.requestBuilder)(input, context);
990
620
  const headers = {};
991
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
992
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
621
+ b.bp("/voice-profiles/{VoiceProfileId}");
622
+ b.p("VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
993
623
  let body;
994
- return new protocol_http_1.HttpRequest({
995
- protocol,
996
- hostname,
997
- port,
998
- method: "GET",
999
- headers,
1000
- path: resolvedPath,
1001
- body,
1002
- });
624
+ b.m("GET").h(headers).b(body);
625
+ return b.build();
1003
626
  };
1004
627
  exports.se_GetVoiceProfileCommand = se_GetVoiceProfileCommand;
1005
628
  const se_GetVoiceProfileDomainCommand = async (input, context) => {
1006
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
629
+ const b = (0, core_1.requestBuilder)(input, context);
1007
630
  const headers = {};
1008
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1009
- "/voice-profile-domains/{VoiceProfileDomainId}";
1010
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
631
+ b.bp("/voice-profile-domains/{VoiceProfileDomainId}");
632
+ b.p("VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
1011
633
  let body;
1012
- return new protocol_http_1.HttpRequest({
1013
- protocol,
1014
- hostname,
1015
- port,
1016
- method: "GET",
1017
- headers,
1018
- path: resolvedPath,
1019
- body,
1020
- });
634
+ b.m("GET").h(headers).b(body);
635
+ return b.build();
1021
636
  };
1022
637
  exports.se_GetVoiceProfileDomainCommand = se_GetVoiceProfileDomainCommand;
1023
638
  const se_GetVoiceToneAnalysisTaskCommand = async (input, context) => {
1024
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
639
+ const b = (0, core_1.requestBuilder)(input, context);
1025
640
  const headers = {};
1026
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1027
- "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
1028
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1029
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
641
+ b.bp("/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
642
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
643
+ b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
1030
644
  const query = (0, smithy_client_1.map)({
1031
- isCaller: [(0, smithy_client_1.expectNonNull)(input.IsCaller, `IsCaller`) != null, () => input.IsCaller.toString()],
645
+ [_iC]: [(0, smithy_client_1.expectNonNull)(input.IsCaller, `IsCaller`) != null, () => input[_IC].toString()],
1032
646
  });
1033
647
  let body;
1034
- return new protocol_http_1.HttpRequest({
1035
- protocol,
1036
- hostname,
1037
- port,
1038
- method: "GET",
1039
- headers,
1040
- path: resolvedPath,
1041
- query,
1042
- body,
1043
- });
648
+ b.m("GET").h(headers).q(query).b(body);
649
+ return b.build();
1044
650
  };
1045
651
  exports.se_GetVoiceToneAnalysisTaskCommand = se_GetVoiceToneAnalysisTaskCommand;
1046
652
  const se_ListAvailableVoiceConnectorRegionsCommand = async (input, context) => {
1047
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
653
+ const b = (0, core_1.requestBuilder)(input, context);
1048
654
  const headers = {
1049
655
  "content-type": "application/json",
1050
656
  };
1051
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-regions";
657
+ b.bp("/voice-connector-regions");
1052
658
  let body;
1053
659
  body = "";
1054
- return new protocol_http_1.HttpRequest({
1055
- protocol,
1056
- hostname,
1057
- port,
1058
- method: "GET",
1059
- headers,
1060
- path: resolvedPath,
1061
- body,
1062
- });
660
+ b.m("GET").h(headers).b(body);
661
+ return b.build();
1063
662
  };
1064
663
  exports.se_ListAvailableVoiceConnectorRegionsCommand = se_ListAvailableVoiceConnectorRegionsCommand;
1065
664
  const se_ListPhoneNumberOrdersCommand = async (input, context) => {
1066
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
+ const b = (0, core_1.requestBuilder)(input, context);
1067
666
  const headers = {};
1068
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders";
667
+ b.bp("/phone-number-orders");
1069
668
  const query = (0, smithy_client_1.map)({
1070
- "next-token": [, input.NextToken],
1071
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
669
+ [_nt]: [, input[_NT]],
670
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1072
671
  });
1073
672
  let body;
1074
- return new protocol_http_1.HttpRequest({
1075
- protocol,
1076
- hostname,
1077
- port,
1078
- method: "GET",
1079
- headers,
1080
- path: resolvedPath,
1081
- query,
1082
- body,
1083
- });
673
+ b.m("GET").h(headers).q(query).b(body);
674
+ return b.build();
1084
675
  };
1085
676
  exports.se_ListPhoneNumberOrdersCommand = se_ListPhoneNumberOrdersCommand;
1086
677
  const se_ListPhoneNumbersCommand = async (input, context) => {
1087
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
678
+ const b = (0, core_1.requestBuilder)(input, context);
1088
679
  const headers = {};
1089
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers";
680
+ b.bp("/phone-numbers");
1090
681
  const query = (0, smithy_client_1.map)({
1091
- status: [, input.Status],
1092
- "product-type": [, input.ProductType],
1093
- "filter-name": [, input.FilterName],
1094
- "filter-value": [, input.FilterValue],
1095
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1096
- "next-token": [, input.NextToken],
682
+ [_s]: [, input[_S]],
683
+ [_pt]: [, input[_PT]],
684
+ [_fn]: [, input[_FN]],
685
+ [_fv]: [, input[_FV]],
686
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
687
+ [_nt]: [, input[_NT]],
1097
688
  });
1098
689
  let body;
1099
- return new protocol_http_1.HttpRequest({
1100
- protocol,
1101
- hostname,
1102
- port,
1103
- method: "GET",
1104
- headers,
1105
- path: resolvedPath,
1106
- query,
1107
- body,
1108
- });
690
+ b.m("GET").h(headers).q(query).b(body);
691
+ return b.build();
1109
692
  };
1110
693
  exports.se_ListPhoneNumbersCommand = se_ListPhoneNumbersCommand;
1111
694
  const se_ListProxySessionsCommand = async (input, context) => {
1112
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
695
+ const b = (0, core_1.requestBuilder)(input, context);
1113
696
  const headers = {};
1114
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1115
- "/voice-connectors/{VoiceConnectorId}/proxy-sessions";
1116
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
697
+ b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions");
698
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1117
699
  const query = (0, smithy_client_1.map)({
1118
- status: [, input.Status],
1119
- "next-token": [, input.NextToken],
1120
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
700
+ [_s]: [, input[_S]],
701
+ [_nt]: [, input[_NT]],
702
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1121
703
  });
1122
704
  let body;
1123
- return new protocol_http_1.HttpRequest({
1124
- protocol,
1125
- hostname,
1126
- port,
1127
- method: "GET",
1128
- headers,
1129
- path: resolvedPath,
1130
- query,
1131
- body,
1132
- });
705
+ b.m("GET").h(headers).q(query).b(body);
706
+ return b.build();
1133
707
  };
1134
708
  exports.se_ListProxySessionsCommand = se_ListProxySessionsCommand;
1135
709
  const se_ListSipMediaApplicationsCommand = async (input, context) => {
1136
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
710
+ const b = (0, core_1.requestBuilder)(input, context);
1137
711
  const headers = {};
1138
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications";
712
+ b.bp("/sip-media-applications");
1139
713
  const query = (0, smithy_client_1.map)({
1140
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1141
- "next-token": [, input.NextToken],
714
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
715
+ [_nt]: [, input[_NT]],
1142
716
  });
1143
717
  let body;
1144
- return new protocol_http_1.HttpRequest({
1145
- protocol,
1146
- hostname,
1147
- port,
1148
- method: "GET",
1149
- headers,
1150
- path: resolvedPath,
1151
- query,
1152
- body,
1153
- });
718
+ b.m("GET").h(headers).q(query).b(body);
719
+ return b.build();
1154
720
  };
1155
721
  exports.se_ListSipMediaApplicationsCommand = se_ListSipMediaApplicationsCommand;
1156
722
  const se_ListSipRulesCommand = async (input, context) => {
1157
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
723
+ const b = (0, core_1.requestBuilder)(input, context);
1158
724
  const headers = {};
1159
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules";
725
+ b.bp("/sip-rules");
1160
726
  const query = (0, smithy_client_1.map)({
1161
- "sip-media-application": [, input.SipMediaApplicationId],
1162
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1163
- "next-token": [, input.NextToken],
727
+ [_sma]: [, input[_SMAI]],
728
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
729
+ [_nt]: [, input[_NT]],
1164
730
  });
1165
731
  let body;
1166
- return new protocol_http_1.HttpRequest({
1167
- protocol,
1168
- hostname,
1169
- port,
1170
- method: "GET",
1171
- headers,
1172
- path: resolvedPath,
1173
- query,
1174
- body,
1175
- });
732
+ b.m("GET").h(headers).q(query).b(body);
733
+ return b.build();
1176
734
  };
1177
735
  exports.se_ListSipRulesCommand = se_ListSipRulesCommand;
1178
736
  const se_ListSupportedPhoneNumberCountriesCommand = async (input, context) => {
1179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
737
+ const b = (0, core_1.requestBuilder)(input, context);
1180
738
  const headers = {};
1181
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-countries";
739
+ b.bp("/phone-number-countries");
1182
740
  const query = (0, smithy_client_1.map)({
1183
- "product-type": [, (0, smithy_client_1.expectNonNull)(input.ProductType, `ProductType`)],
741
+ [_pt]: [, (0, smithy_client_1.expectNonNull)(input[_PT], `ProductType`)],
1184
742
  });
1185
743
  let body;
1186
- return new protocol_http_1.HttpRequest({
1187
- protocol,
1188
- hostname,
1189
- port,
1190
- method: "GET",
1191
- headers,
1192
- path: resolvedPath,
1193
- query,
1194
- body,
1195
- });
744
+ b.m("GET").h(headers).q(query).b(body);
745
+ return b.build();
1196
746
  };
1197
747
  exports.se_ListSupportedPhoneNumberCountriesCommand = se_ListSupportedPhoneNumberCountriesCommand;
1198
748
  const se_ListTagsForResourceCommand = async (input, context) => {
1199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
749
+ const b = (0, core_1.requestBuilder)(input, context);
1200
750
  const headers = {};
1201
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
751
+ b.bp("/tags");
1202
752
  const query = (0, smithy_client_1.map)({
1203
- arn: [, (0, smithy_client_1.expectNonNull)(input.ResourceARN, `ResourceARN`)],
753
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
1204
754
  });
1205
755
  let body;
1206
- return new protocol_http_1.HttpRequest({
1207
- protocol,
1208
- hostname,
1209
- port,
1210
- method: "GET",
1211
- headers,
1212
- path: resolvedPath,
1213
- query,
1214
- body,
1215
- });
756
+ b.m("GET").h(headers).q(query).b(body);
757
+ return b.build();
1216
758
  };
1217
759
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1218
760
  const se_ListVoiceConnectorGroupsCommand = async (input, context) => {
1219
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
761
+ const b = (0, core_1.requestBuilder)(input, context);
1220
762
  const headers = {};
1221
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups";
763
+ b.bp("/voice-connector-groups");
1222
764
  const query = (0, smithy_client_1.map)({
1223
- "next-token": [, input.NextToken],
1224
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
765
+ [_nt]: [, input[_NT]],
766
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1225
767
  });
1226
768
  let body;
1227
- return new protocol_http_1.HttpRequest({
1228
- protocol,
1229
- hostname,
1230
- port,
1231
- method: "GET",
1232
- headers,
1233
- path: resolvedPath,
1234
- query,
1235
- body,
1236
- });
769
+ b.m("GET").h(headers).q(query).b(body);
770
+ return b.build();
1237
771
  };
1238
772
  exports.se_ListVoiceConnectorGroupsCommand = se_ListVoiceConnectorGroupsCommand;
1239
773
  const se_ListVoiceConnectorsCommand = async (input, context) => {
1240
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
774
+ const b = (0, core_1.requestBuilder)(input, context);
1241
775
  const headers = {};
1242
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors";
776
+ b.bp("/voice-connectors");
1243
777
  const query = (0, smithy_client_1.map)({
1244
- "next-token": [, input.NextToken],
1245
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
778
+ [_nt]: [, input[_NT]],
779
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1246
780
  });
1247
781
  let body;
1248
- return new protocol_http_1.HttpRequest({
1249
- protocol,
1250
- hostname,
1251
- port,
1252
- method: "GET",
1253
- headers,
1254
- path: resolvedPath,
1255
- query,
1256
- body,
1257
- });
782
+ b.m("GET").h(headers).q(query).b(body);
783
+ return b.build();
1258
784
  };
1259
785
  exports.se_ListVoiceConnectorsCommand = se_ListVoiceConnectorsCommand;
1260
786
  const se_ListVoiceConnectorTerminationCredentialsCommand = async (input, context) => {
1261
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
787
+ const b = (0, core_1.requestBuilder)(input, context);
1262
788
  const headers = {};
1263
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1264
- "/voice-connectors/{VoiceConnectorId}/termination/credentials";
1265
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
789
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials");
790
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1266
791
  let body;
1267
- return new protocol_http_1.HttpRequest({
1268
- protocol,
1269
- hostname,
1270
- port,
1271
- method: "GET",
1272
- headers,
1273
- path: resolvedPath,
1274
- body,
1275
- });
792
+ b.m("GET").h(headers).b(body);
793
+ return b.build();
1276
794
  };
1277
795
  exports.se_ListVoiceConnectorTerminationCredentialsCommand = se_ListVoiceConnectorTerminationCredentialsCommand;
1278
796
  const se_ListVoiceProfileDomainsCommand = async (input, context) => {
1279
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
797
+ const b = (0, core_1.requestBuilder)(input, context);
1280
798
  const headers = {};
1281
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains";
799
+ b.bp("/voice-profile-domains");
1282
800
  const query = (0, smithy_client_1.map)({
1283
- "next-token": [, input.NextToken],
1284
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
801
+ [_nt]: [, input[_NT]],
802
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1285
803
  });
1286
804
  let body;
1287
- return new protocol_http_1.HttpRequest({
1288
- protocol,
1289
- hostname,
1290
- port,
1291
- method: "GET",
1292
- headers,
1293
- path: resolvedPath,
1294
- query,
1295
- body,
1296
- });
805
+ b.m("GET").h(headers).q(query).b(body);
806
+ return b.build();
1297
807
  };
1298
808
  exports.se_ListVoiceProfileDomainsCommand = se_ListVoiceProfileDomainsCommand;
1299
809
  const se_ListVoiceProfilesCommand = async (input, context) => {
1300
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
810
+ const b = (0, core_1.requestBuilder)(input, context);
1301
811
  const headers = {};
1302
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles";
812
+ b.bp("/voice-profiles");
1303
813
  const query = (0, smithy_client_1.map)({
1304
- "voice-profile-domain-id": [, (0, smithy_client_1.expectNonNull)(input.VoiceProfileDomainId, `VoiceProfileDomainId`)],
1305
- "next-token": [, input.NextToken],
1306
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
814
+ [_vpdi]: [, (0, smithy_client_1.expectNonNull)(input[_VPDI], `VoiceProfileDomainId`)],
815
+ [_nt]: [, input[_NT]],
816
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1307
817
  });
1308
818
  let body;
1309
- return new protocol_http_1.HttpRequest({
1310
- protocol,
1311
- hostname,
1312
- port,
1313
- method: "GET",
1314
- headers,
1315
- path: resolvedPath,
1316
- query,
1317
- body,
1318
- });
819
+ b.m("GET").h(headers).q(query).b(body);
820
+ return b.build();
1319
821
  };
1320
822
  exports.se_ListVoiceProfilesCommand = se_ListVoiceProfilesCommand;
1321
823
  const se_PutSipMediaApplicationAlexaSkillConfigurationCommand = async (input, context) => {
1322
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
824
+ const b = (0, core_1.requestBuilder)(input, context);
1323
825
  const headers = {
1324
826
  "content-type": "application/json",
1325
827
  };
1326
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1327
- "/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration";
1328
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
828
+ b.bp("/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration");
829
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
1329
830
  let body;
1330
831
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1331
832
  SipMediaApplicationAlexaSkillConfiguration: (_) => (0, smithy_client_1._json)(_),
1332
833
  }));
1333
- return new protocol_http_1.HttpRequest({
1334
- protocol,
1335
- hostname,
1336
- port,
1337
- method: "PUT",
1338
- headers,
1339
- path: resolvedPath,
1340
- body,
1341
- });
834
+ b.m("PUT").h(headers).b(body);
835
+ return b.build();
1342
836
  };
1343
837
  exports.se_PutSipMediaApplicationAlexaSkillConfigurationCommand = se_PutSipMediaApplicationAlexaSkillConfigurationCommand;
1344
838
  const se_PutSipMediaApplicationLoggingConfigurationCommand = async (input, context) => {
1345
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
839
+ const b = (0, core_1.requestBuilder)(input, context);
1346
840
  const headers = {
1347
841
  "content-type": "application/json",
1348
842
  };
1349
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1350
- "/sip-media-applications/{SipMediaApplicationId}/logging-configuration";
1351
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
843
+ b.bp("/sip-media-applications/{SipMediaApplicationId}/logging-configuration");
844
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
1352
845
  let body;
1353
846
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1354
847
  SipMediaApplicationLoggingConfiguration: (_) => (0, smithy_client_1._json)(_),
1355
848
  }));
1356
- return new protocol_http_1.HttpRequest({
1357
- protocol,
1358
- hostname,
1359
- port,
1360
- method: "PUT",
1361
- headers,
1362
- path: resolvedPath,
1363
- body,
1364
- });
849
+ b.m("PUT").h(headers).b(body);
850
+ return b.build();
1365
851
  };
1366
852
  exports.se_PutSipMediaApplicationLoggingConfigurationCommand = se_PutSipMediaApplicationLoggingConfigurationCommand;
1367
853
  const se_PutVoiceConnectorEmergencyCallingConfigurationCommand = async (input, context) => {
1368
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
854
+ const b = (0, core_1.requestBuilder)(input, context);
1369
855
  const headers = {
1370
856
  "content-type": "application/json",
1371
857
  };
1372
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1373
- "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration";
1374
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
858
+ b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration");
859
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1375
860
  let body;
1376
861
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1377
862
  EmergencyCallingConfiguration: (_) => (0, smithy_client_1._json)(_),
1378
863
  }));
1379
- return new protocol_http_1.HttpRequest({
1380
- protocol,
1381
- hostname,
1382
- port,
1383
- method: "PUT",
1384
- headers,
1385
- path: resolvedPath,
1386
- body,
1387
- });
864
+ b.m("PUT").h(headers).b(body);
865
+ return b.build();
1388
866
  };
1389
867
  exports.se_PutVoiceConnectorEmergencyCallingConfigurationCommand = se_PutVoiceConnectorEmergencyCallingConfigurationCommand;
1390
868
  const se_PutVoiceConnectorLoggingConfigurationCommand = async (input, context) => {
1391
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
869
+ const b = (0, core_1.requestBuilder)(input, context);
1392
870
  const headers = {
1393
871
  "content-type": "application/json",
1394
872
  };
1395
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1396
- "/voice-connectors/{VoiceConnectorId}/logging-configuration";
1397
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
873
+ b.bp("/voice-connectors/{VoiceConnectorId}/logging-configuration");
874
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1398
875
  let body;
1399
876
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1400
877
  LoggingConfiguration: (_) => (0, smithy_client_1._json)(_),
1401
878
  }));
1402
- return new protocol_http_1.HttpRequest({
1403
- protocol,
1404
- hostname,
1405
- port,
1406
- method: "PUT",
1407
- headers,
1408
- path: resolvedPath,
1409
- body,
1410
- });
879
+ b.m("PUT").h(headers).b(body);
880
+ return b.build();
1411
881
  };
1412
882
  exports.se_PutVoiceConnectorLoggingConfigurationCommand = se_PutVoiceConnectorLoggingConfigurationCommand;
1413
883
  const se_PutVoiceConnectorOriginationCommand = async (input, context) => {
1414
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
884
+ const b = (0, core_1.requestBuilder)(input, context);
1415
885
  const headers = {
1416
886
  "content-type": "application/json",
1417
887
  };
1418
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1419
- "/voice-connectors/{VoiceConnectorId}/origination";
1420
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
888
+ b.bp("/voice-connectors/{VoiceConnectorId}/origination");
889
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1421
890
  let body;
1422
891
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1423
892
  Origination: (_) => (0, smithy_client_1._json)(_),
1424
893
  }));
1425
- return new protocol_http_1.HttpRequest({
1426
- protocol,
1427
- hostname,
1428
- port,
1429
- method: "PUT",
1430
- headers,
1431
- path: resolvedPath,
1432
- body,
1433
- });
894
+ b.m("PUT").h(headers).b(body);
895
+ return b.build();
1434
896
  };
1435
897
  exports.se_PutVoiceConnectorOriginationCommand = se_PutVoiceConnectorOriginationCommand;
1436
898
  const se_PutVoiceConnectorProxyCommand = async (input, context) => {
1437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
899
+ const b = (0, core_1.requestBuilder)(input, context);
1438
900
  const headers = {
1439
901
  "content-type": "application/json",
1440
902
  };
1441
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1442
- "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy";
1443
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
903
+ b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy");
904
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1444
905
  let body;
1445
906
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1446
907
  DefaultSessionExpiryMinutes: [],
@@ -1448,147 +909,98 @@ const se_PutVoiceConnectorProxyCommand = async (input, context) => {
1448
909
  FallBackPhoneNumber: [],
1449
910
  PhoneNumberPoolCountries: (_) => (0, smithy_client_1._json)(_),
1450
911
  }));
1451
- return new protocol_http_1.HttpRequest({
1452
- protocol,
1453
- hostname,
1454
- port,
1455
- method: "PUT",
1456
- headers,
1457
- path: resolvedPath,
1458
- body,
1459
- });
912
+ b.m("PUT").h(headers).b(body);
913
+ return b.build();
1460
914
  };
1461
915
  exports.se_PutVoiceConnectorProxyCommand = se_PutVoiceConnectorProxyCommand;
1462
916
  const se_PutVoiceConnectorStreamingConfigurationCommand = async (input, context) => {
1463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
917
+ const b = (0, core_1.requestBuilder)(input, context);
1464
918
  const headers = {
1465
919
  "content-type": "application/json",
1466
920
  };
1467
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1468
- "/voice-connectors/{VoiceConnectorId}/streaming-configuration";
1469
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
921
+ b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration");
922
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1470
923
  let body;
1471
924
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1472
925
  StreamingConfiguration: (_) => (0, smithy_client_1._json)(_),
1473
926
  }));
1474
- return new protocol_http_1.HttpRequest({
1475
- protocol,
1476
- hostname,
1477
- port,
1478
- method: "PUT",
1479
- headers,
1480
- path: resolvedPath,
1481
- body,
1482
- });
927
+ b.m("PUT").h(headers).b(body);
928
+ return b.build();
1483
929
  };
1484
930
  exports.se_PutVoiceConnectorStreamingConfigurationCommand = se_PutVoiceConnectorStreamingConfigurationCommand;
1485
931
  const se_PutVoiceConnectorTerminationCommand = async (input, context) => {
1486
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
932
+ const b = (0, core_1.requestBuilder)(input, context);
1487
933
  const headers = {
1488
934
  "content-type": "application/json",
1489
935
  };
1490
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1491
- "/voice-connectors/{VoiceConnectorId}/termination";
1492
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
936
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination");
937
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1493
938
  let body;
1494
939
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1495
940
  Termination: (_) => (0, smithy_client_1._json)(_),
1496
941
  }));
1497
- return new protocol_http_1.HttpRequest({
1498
- protocol,
1499
- hostname,
1500
- port,
1501
- method: "PUT",
1502
- headers,
1503
- path: resolvedPath,
1504
- body,
1505
- });
942
+ b.m("PUT").h(headers).b(body);
943
+ return b.build();
1506
944
  };
1507
945
  exports.se_PutVoiceConnectorTerminationCommand = se_PutVoiceConnectorTerminationCommand;
1508
946
  const se_PutVoiceConnectorTerminationCredentialsCommand = async (input, context) => {
1509
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
947
+ const b = (0, core_1.requestBuilder)(input, context);
1510
948
  const headers = {
1511
949
  "content-type": "application/json",
1512
950
  };
1513
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1514
- "/voice-connectors/{VoiceConnectorId}/termination/credentials";
1515
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
951
+ b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials");
952
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1516
953
  const query = (0, smithy_client_1.map)({
1517
- operation: [, "put"],
954
+ [_o]: [, "put"],
1518
955
  });
1519
956
  let body;
1520
957
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1521
958
  Credentials: (_) => (0, smithy_client_1._json)(_),
1522
959
  }));
1523
- return new protocol_http_1.HttpRequest({
1524
- protocol,
1525
- hostname,
1526
- port,
1527
- method: "POST",
1528
- headers,
1529
- path: resolvedPath,
1530
- query,
1531
- body,
1532
- });
960
+ b.m("POST").h(headers).q(query).b(body);
961
+ return b.build();
1533
962
  };
1534
963
  exports.se_PutVoiceConnectorTerminationCredentialsCommand = se_PutVoiceConnectorTerminationCredentialsCommand;
1535
964
  const se_RestorePhoneNumberCommand = async (input, context) => {
1536
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
965
+ const b = (0, core_1.requestBuilder)(input, context);
1537
966
  const headers = {};
1538
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
1539
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
967
+ b.bp("/phone-numbers/{PhoneNumberId}");
968
+ b.p("PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1540
969
  const query = (0, smithy_client_1.map)({
1541
- operation: [, "restore"],
970
+ [_o]: [, "restore"],
1542
971
  });
1543
972
  let body;
1544
- return new protocol_http_1.HttpRequest({
1545
- protocol,
1546
- hostname,
1547
- port,
1548
- method: "POST",
1549
- headers,
1550
- path: resolvedPath,
1551
- query,
1552
- body,
1553
- });
973
+ b.m("POST").h(headers).q(query).b(body);
974
+ return b.build();
1554
975
  };
1555
976
  exports.se_RestorePhoneNumberCommand = se_RestorePhoneNumberCommand;
1556
977
  const se_SearchAvailablePhoneNumbersCommand = async (input, context) => {
1557
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
978
+ const b = (0, core_1.requestBuilder)(input, context);
1558
979
  const headers = {};
1559
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search";
980
+ b.bp("/search");
1560
981
  const query = (0, smithy_client_1.map)({
1561
- type: [, "phone-numbers"],
1562
- "area-code": [, input.AreaCode],
1563
- city: [, input.City],
1564
- country: [, input.Country],
1565
- state: [, input.State],
1566
- "toll-free-prefix": [, input.TollFreePrefix],
1567
- "phone-number-type": [, input.PhoneNumberType],
1568
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1569
- "next-token": [, input.NextToken],
982
+ [_t]: [, "phone-numbers"],
983
+ [_ac]: [, input[_AC]],
984
+ [_c]: [, input[_C]],
985
+ [_co]: [, input[_Co]],
986
+ [_st]: [, input[_St]],
987
+ [_tfp]: [, input[_TFP]],
988
+ [_pnt]: [, input[_PNT]],
989
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
990
+ [_nt]: [, input[_NT]],
1570
991
  });
1571
992
  let body;
1572
- return new protocol_http_1.HttpRequest({
1573
- protocol,
1574
- hostname,
1575
- port,
1576
- method: "GET",
1577
- headers,
1578
- path: resolvedPath,
1579
- query,
1580
- body,
1581
- });
993
+ b.m("GET").h(headers).q(query).b(body);
994
+ return b.build();
1582
995
  };
1583
996
  exports.se_SearchAvailablePhoneNumbersCommand = se_SearchAvailablePhoneNumbersCommand;
1584
997
  const se_StartSpeakerSearchTaskCommand = async (input, context) => {
1585
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
998
+ const b = (0, core_1.requestBuilder)(input, context);
1586
999
  const headers = {
1587
1000
  "content-type": "application/json",
1588
1001
  };
1589
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1590
- "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks";
1591
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1002
+ b.bp("/voice-connectors/{VoiceConnectorId}/speaker-search-tasks");
1003
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1592
1004
  let body;
1593
1005
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1594
1006
  CallLeg: [],
@@ -1596,402 +1008,271 @@ const se_StartSpeakerSearchTaskCommand = async (input, context) => {
1596
1008
  TransactionId: [],
1597
1009
  VoiceProfileDomainId: [],
1598
1010
  }));
1599
- return new protocol_http_1.HttpRequest({
1600
- protocol,
1601
- hostname,
1602
- port,
1603
- method: "POST",
1604
- headers,
1605
- path: resolvedPath,
1606
- body,
1607
- });
1011
+ b.m("POST").h(headers).b(body);
1012
+ return b.build();
1608
1013
  };
1609
1014
  exports.se_StartSpeakerSearchTaskCommand = se_StartSpeakerSearchTaskCommand;
1610
1015
  const se_StartVoiceToneAnalysisTaskCommand = async (input, context) => {
1611
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1016
+ const b = (0, core_1.requestBuilder)(input, context);
1612
1017
  const headers = {
1613
1018
  "content-type": "application/json",
1614
1019
  };
1615
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1616
- "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks";
1617
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1020
+ b.bp("/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks");
1021
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1618
1022
  let body;
1619
1023
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1620
1024
  ClientRequestToken: [],
1621
1025
  LanguageCode: [],
1622
1026
  TransactionId: [],
1623
1027
  }));
1624
- return new protocol_http_1.HttpRequest({
1625
- protocol,
1626
- hostname,
1627
- port,
1628
- method: "POST",
1629
- headers,
1630
- path: resolvedPath,
1631
- body,
1632
- });
1028
+ b.m("POST").h(headers).b(body);
1029
+ return b.build();
1633
1030
  };
1634
1031
  exports.se_StartVoiceToneAnalysisTaskCommand = se_StartVoiceToneAnalysisTaskCommand;
1635
1032
  const se_StopSpeakerSearchTaskCommand = async (input, context) => {
1636
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1033
+ const b = (0, core_1.requestBuilder)(input, context);
1637
1034
  const headers = {};
1638
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1639
- "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}";
1640
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1641
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
1035
+ b.bp("/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}");
1036
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1037
+ b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
1642
1038
  const query = (0, smithy_client_1.map)({
1643
- operation: [, "stop"],
1039
+ [_o]: [, "stop"],
1644
1040
  });
1645
1041
  let body;
1646
- return new protocol_http_1.HttpRequest({
1647
- protocol,
1648
- hostname,
1649
- port,
1650
- method: "POST",
1651
- headers,
1652
- path: resolvedPath,
1653
- query,
1654
- body,
1655
- });
1042
+ b.m("POST").h(headers).q(query).b(body);
1043
+ return b.build();
1656
1044
  };
1657
1045
  exports.se_StopSpeakerSearchTaskCommand = se_StopSpeakerSearchTaskCommand;
1658
1046
  const se_StopVoiceToneAnalysisTaskCommand = async (input, context) => {
1659
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1047
+ const b = (0, core_1.requestBuilder)(input, context);
1660
1048
  const headers = {};
1661
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1662
- "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
1663
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1664
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
1049
+ b.bp("/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
1050
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1051
+ b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
1665
1052
  const query = (0, smithy_client_1.map)({
1666
- operation: [, "stop"],
1053
+ [_o]: [, "stop"],
1667
1054
  });
1668
1055
  let body;
1669
- return new protocol_http_1.HttpRequest({
1670
- protocol,
1671
- hostname,
1672
- port,
1673
- method: "POST",
1674
- headers,
1675
- path: resolvedPath,
1676
- query,
1677
- body,
1678
- });
1056
+ b.m("POST").h(headers).q(query).b(body);
1057
+ return b.build();
1679
1058
  };
1680
1059
  exports.se_StopVoiceToneAnalysisTaskCommand = se_StopVoiceToneAnalysisTaskCommand;
1681
1060
  const se_TagResourceCommand = async (input, context) => {
1682
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1061
+ const b = (0, core_1.requestBuilder)(input, context);
1683
1062
  const headers = {
1684
1063
  "content-type": "application/json",
1685
1064
  };
1686
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1065
+ b.bp("/tags");
1687
1066
  const query = (0, smithy_client_1.map)({
1688
- operation: [, "tag-resource"],
1067
+ [_o]: [, "tag-resource"],
1689
1068
  });
1690
1069
  let body;
1691
1070
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1692
1071
  ResourceARN: [],
1693
1072
  Tags: (_) => (0, smithy_client_1._json)(_),
1694
1073
  }));
1695
- return new protocol_http_1.HttpRequest({
1696
- protocol,
1697
- hostname,
1698
- port,
1699
- method: "POST",
1700
- headers,
1701
- path: resolvedPath,
1702
- query,
1703
- body,
1704
- });
1074
+ b.m("POST").h(headers).q(query).b(body);
1075
+ return b.build();
1705
1076
  };
1706
1077
  exports.se_TagResourceCommand = se_TagResourceCommand;
1707
1078
  const se_UntagResourceCommand = async (input, context) => {
1708
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1079
+ const b = (0, core_1.requestBuilder)(input, context);
1709
1080
  const headers = {
1710
1081
  "content-type": "application/json",
1711
1082
  };
1712
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1083
+ b.bp("/tags");
1713
1084
  const query = (0, smithy_client_1.map)({
1714
- operation: [, "untag-resource"],
1085
+ [_o]: [, "untag-resource"],
1715
1086
  });
1716
1087
  let body;
1717
1088
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1718
1089
  ResourceARN: [],
1719
1090
  TagKeys: (_) => (0, smithy_client_1._json)(_),
1720
1091
  }));
1721
- return new protocol_http_1.HttpRequest({
1722
- protocol,
1723
- hostname,
1724
- port,
1725
- method: "POST",
1726
- headers,
1727
- path: resolvedPath,
1728
- query,
1729
- body,
1730
- });
1092
+ b.m("POST").h(headers).q(query).b(body);
1093
+ return b.build();
1731
1094
  };
1732
1095
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1733
1096
  const se_UpdateGlobalSettingsCommand = async (input, context) => {
1734
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1097
+ const b = (0, core_1.requestBuilder)(input, context);
1735
1098
  const headers = {
1736
1099
  "content-type": "application/json",
1737
1100
  };
1738
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
1101
+ b.bp("/settings");
1739
1102
  let body;
1740
1103
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1741
1104
  VoiceConnector: (_) => (0, smithy_client_1._json)(_),
1742
1105
  }));
1743
- return new protocol_http_1.HttpRequest({
1744
- protocol,
1745
- hostname,
1746
- port,
1747
- method: "PUT",
1748
- headers,
1749
- path: resolvedPath,
1750
- body,
1751
- });
1106
+ b.m("PUT").h(headers).b(body);
1107
+ return b.build();
1752
1108
  };
1753
1109
  exports.se_UpdateGlobalSettingsCommand = se_UpdateGlobalSettingsCommand;
1754
1110
  const se_UpdatePhoneNumberCommand = async (input, context) => {
1755
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1111
+ const b = (0, core_1.requestBuilder)(input, context);
1756
1112
  const headers = {
1757
1113
  "content-type": "application/json",
1758
1114
  };
1759
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}";
1760
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1115
+ b.bp("/phone-numbers/{PhoneNumberId}");
1116
+ b.p("PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1761
1117
  let body;
1762
1118
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1763
1119
  CallingName: [],
1764
1120
  Name: [],
1765
1121
  ProductType: [],
1766
1122
  }));
1767
- return new protocol_http_1.HttpRequest({
1768
- protocol,
1769
- hostname,
1770
- port,
1771
- method: "POST",
1772
- headers,
1773
- path: resolvedPath,
1774
- body,
1775
- });
1123
+ b.m("POST").h(headers).b(body);
1124
+ return b.build();
1776
1125
  };
1777
1126
  exports.se_UpdatePhoneNumberCommand = se_UpdatePhoneNumberCommand;
1778
1127
  const se_UpdatePhoneNumberSettingsCommand = async (input, context) => {
1779
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1128
+ const b = (0, core_1.requestBuilder)(input, context);
1780
1129
  const headers = {
1781
1130
  "content-type": "application/json",
1782
1131
  };
1783
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number";
1132
+ b.bp("/settings/phone-number");
1784
1133
  let body;
1785
1134
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1786
1135
  CallingName: [],
1787
1136
  }));
1788
- return new protocol_http_1.HttpRequest({
1789
- protocol,
1790
- hostname,
1791
- port,
1792
- method: "PUT",
1793
- headers,
1794
- path: resolvedPath,
1795
- body,
1796
- });
1137
+ b.m("PUT").h(headers).b(body);
1138
+ return b.build();
1797
1139
  };
1798
1140
  exports.se_UpdatePhoneNumberSettingsCommand = se_UpdatePhoneNumberSettingsCommand;
1799
1141
  const se_UpdateProxySessionCommand = async (input, context) => {
1800
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1142
+ const b = (0, core_1.requestBuilder)(input, context);
1801
1143
  const headers = {
1802
1144
  "content-type": "application/json",
1803
1145
  };
1804
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1805
- "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}";
1806
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1807
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
1146
+ b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}");
1147
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1148
+ b.p("ProxySessionId", () => input.ProxySessionId, "{ProxySessionId}", false);
1808
1149
  let body;
1809
1150
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1810
1151
  Capabilities: (_) => (0, smithy_client_1._json)(_),
1811
1152
  ExpiryMinutes: [],
1812
1153
  }));
1813
- return new protocol_http_1.HttpRequest({
1814
- protocol,
1815
- hostname,
1816
- port,
1817
- method: "POST",
1818
- headers,
1819
- path: resolvedPath,
1820
- body,
1821
- });
1154
+ b.m("POST").h(headers).b(body);
1155
+ return b.build();
1822
1156
  };
1823
1157
  exports.se_UpdateProxySessionCommand = se_UpdateProxySessionCommand;
1824
1158
  const se_UpdateSipMediaApplicationCommand = async (input, context) => {
1825
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1159
+ const b = (0, core_1.requestBuilder)(input, context);
1826
1160
  const headers = {
1827
1161
  "content-type": "application/json",
1828
1162
  };
1829
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1830
- "/sip-media-applications/{SipMediaApplicationId}";
1831
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
1163
+ b.bp("/sip-media-applications/{SipMediaApplicationId}");
1164
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
1832
1165
  let body;
1833
1166
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1834
1167
  Endpoints: (_) => (0, smithy_client_1._json)(_),
1835
1168
  Name: [],
1836
1169
  }));
1837
- return new protocol_http_1.HttpRequest({
1838
- protocol,
1839
- hostname,
1840
- port,
1841
- method: "PUT",
1842
- headers,
1843
- path: resolvedPath,
1844
- body,
1845
- });
1170
+ b.m("PUT").h(headers).b(body);
1171
+ return b.build();
1846
1172
  };
1847
1173
  exports.se_UpdateSipMediaApplicationCommand = se_UpdateSipMediaApplicationCommand;
1848
1174
  const se_UpdateSipMediaApplicationCallCommand = async (input, context) => {
1849
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1175
+ const b = (0, core_1.requestBuilder)(input, context);
1850
1176
  const headers = {
1851
1177
  "content-type": "application/json",
1852
1178
  };
1853
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1854
- "/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}";
1855
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
1856
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransactionId", () => input.TransactionId, "{TransactionId}", false);
1179
+ b.bp("/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}");
1180
+ b.p("SipMediaApplicationId", () => input.SipMediaApplicationId, "{SipMediaApplicationId}", false);
1181
+ b.p("TransactionId", () => input.TransactionId, "{TransactionId}", false);
1857
1182
  let body;
1858
1183
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1859
1184
  Arguments: (_) => (0, smithy_client_1._json)(_),
1860
1185
  }));
1861
- return new protocol_http_1.HttpRequest({
1862
- protocol,
1863
- hostname,
1864
- port,
1865
- method: "POST",
1866
- headers,
1867
- path: resolvedPath,
1868
- body,
1869
- });
1186
+ b.m("POST").h(headers).b(body);
1187
+ return b.build();
1870
1188
  };
1871
1189
  exports.se_UpdateSipMediaApplicationCallCommand = se_UpdateSipMediaApplicationCallCommand;
1872
1190
  const se_UpdateSipRuleCommand = async (input, context) => {
1873
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1191
+ const b = (0, core_1.requestBuilder)(input, context);
1874
1192
  const headers = {
1875
1193
  "content-type": "application/json",
1876
1194
  };
1877
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}";
1878
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
1195
+ b.bp("/sip-rules/{SipRuleId}");
1196
+ b.p("SipRuleId", () => input.SipRuleId, "{SipRuleId}", false);
1879
1197
  let body;
1880
1198
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1881
1199
  Disabled: [],
1882
1200
  Name: [],
1883
1201
  TargetApplications: (_) => (0, smithy_client_1._json)(_),
1884
1202
  }));
1885
- return new protocol_http_1.HttpRequest({
1886
- protocol,
1887
- hostname,
1888
- port,
1889
- method: "PUT",
1890
- headers,
1891
- path: resolvedPath,
1892
- body,
1893
- });
1203
+ b.m("PUT").h(headers).b(body);
1204
+ return b.build();
1894
1205
  };
1895
1206
  exports.se_UpdateSipRuleCommand = se_UpdateSipRuleCommand;
1896
1207
  const se_UpdateVoiceConnectorCommand = async (input, context) => {
1897
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1208
+ const b = (0, core_1.requestBuilder)(input, context);
1898
1209
  const headers = {
1899
1210
  "content-type": "application/json",
1900
1211
  };
1901
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}";
1902
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1212
+ b.bp("/voice-connectors/{VoiceConnectorId}");
1213
+ b.p("VoiceConnectorId", () => input.VoiceConnectorId, "{VoiceConnectorId}", false);
1903
1214
  let body;
1904
1215
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1905
1216
  Name: [],
1906
1217
  RequireEncryption: [],
1907
1218
  }));
1908
- return new protocol_http_1.HttpRequest({
1909
- protocol,
1910
- hostname,
1911
- port,
1912
- method: "PUT",
1913
- headers,
1914
- path: resolvedPath,
1915
- body,
1916
- });
1219
+ b.m("PUT").h(headers).b(body);
1220
+ return b.build();
1917
1221
  };
1918
1222
  exports.se_UpdateVoiceConnectorCommand = se_UpdateVoiceConnectorCommand;
1919
1223
  const se_UpdateVoiceConnectorGroupCommand = async (input, context) => {
1920
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1224
+ const b = (0, core_1.requestBuilder)(input, context);
1921
1225
  const headers = {
1922
1226
  "content-type": "application/json",
1923
1227
  };
1924
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1925
- "/voice-connector-groups/{VoiceConnectorGroupId}";
1926
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
1228
+ b.bp("/voice-connector-groups/{VoiceConnectorGroupId}");
1229
+ b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId, "{VoiceConnectorGroupId}", false);
1927
1230
  let body;
1928
1231
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1929
1232
  Name: [],
1930
1233
  VoiceConnectorItems: (_) => (0, smithy_client_1._json)(_),
1931
1234
  }));
1932
- return new protocol_http_1.HttpRequest({
1933
- protocol,
1934
- hostname,
1935
- port,
1936
- method: "PUT",
1937
- headers,
1938
- path: resolvedPath,
1939
- body,
1940
- });
1235
+ b.m("PUT").h(headers).b(body);
1236
+ return b.build();
1941
1237
  };
1942
1238
  exports.se_UpdateVoiceConnectorGroupCommand = se_UpdateVoiceConnectorGroupCommand;
1943
1239
  const se_UpdateVoiceProfileCommand = async (input, context) => {
1944
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1240
+ const b = (0, core_1.requestBuilder)(input, context);
1945
1241
  const headers = {
1946
1242
  "content-type": "application/json",
1947
1243
  };
1948
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}";
1949
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
1244
+ b.bp("/voice-profiles/{VoiceProfileId}");
1245
+ b.p("VoiceProfileId", () => input.VoiceProfileId, "{VoiceProfileId}", false);
1950
1246
  let body;
1951
1247
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1952
1248
  SpeakerSearchTaskId: [],
1953
1249
  }));
1954
- return new protocol_http_1.HttpRequest({
1955
- protocol,
1956
- hostname,
1957
- port,
1958
- method: "PUT",
1959
- headers,
1960
- path: resolvedPath,
1961
- body,
1962
- });
1250
+ b.m("PUT").h(headers).b(body);
1251
+ return b.build();
1963
1252
  };
1964
1253
  exports.se_UpdateVoiceProfileCommand = se_UpdateVoiceProfileCommand;
1965
1254
  const se_UpdateVoiceProfileDomainCommand = async (input, context) => {
1966
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1255
+ const b = (0, core_1.requestBuilder)(input, context);
1967
1256
  const headers = {
1968
1257
  "content-type": "application/json",
1969
1258
  };
1970
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1971
- "/voice-profile-domains/{VoiceProfileDomainId}";
1972
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
1259
+ b.bp("/voice-profile-domains/{VoiceProfileDomainId}");
1260
+ b.p("VoiceProfileDomainId", () => input.VoiceProfileDomainId, "{VoiceProfileDomainId}", false);
1973
1261
  let body;
1974
1262
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1975
1263
  Description: [],
1976
1264
  Name: [],
1977
1265
  }));
1978
- return new protocol_http_1.HttpRequest({
1979
- protocol,
1980
- hostname,
1981
- port,
1982
- method: "PUT",
1983
- headers,
1984
- path: resolvedPath,
1985
- body,
1986
- });
1266
+ b.m("PUT").h(headers).b(body);
1267
+ return b.build();
1987
1268
  };
1988
1269
  exports.se_UpdateVoiceProfileDomainCommand = se_UpdateVoiceProfileDomainCommand;
1989
1270
  const se_ValidateE911AddressCommand = async (input, context) => {
1990
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1271
+ const b = (0, core_1.requestBuilder)(input, context);
1991
1272
  const headers = {
1992
1273
  "content-type": "application/json",
1993
1274
  };
1994
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/emergency-calling/address";
1275
+ b.bp("/emergency-calling/address");
1995
1276
  let body;
1996
1277
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1997
1278
  AwsAccountId: [],
@@ -2002,15 +1283,8 @@ const se_ValidateE911AddressCommand = async (input, context) => {
2002
1283
  StreetInfo: [],
2003
1284
  StreetNumber: [],
2004
1285
  }));
2005
- return new protocol_http_1.HttpRequest({
2006
- protocol,
2007
- hostname,
2008
- port,
2009
- method: "POST",
2010
- headers,
2011
- path: resolvedPath,
2012
- body,
2013
- });
1286
+ b.m("POST").h(headers).b(body);
1287
+ return b.build();
2014
1288
  };
2015
1289
  exports.se_ValidateE911AddressCommand = se_ValidateE911AddressCommand;
2016
1290
  const de_AssociatePhoneNumbersWithVoiceConnectorCommand = async (output, context) => {
@@ -7370,6 +6644,40 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
7370
6644
  value !== "" &&
7371
6645
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
7372
6646
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
6647
+ const _AC = "AreaCode";
6648
+ const _C = "City";
6649
+ const _Co = "Country";
6650
+ const _FN = "FilterName";
6651
+ const _FV = "FilterValue";
6652
+ const _IC = "IsCaller";
6653
+ const _MR = "MaxResults";
6654
+ const _NT = "NextToken";
6655
+ const _PNT = "PhoneNumberType";
6656
+ const _PT = "ProductType";
6657
+ const _RARN = "ResourceARN";
6658
+ const _S = "Status";
6659
+ const _SMAI = "SipMediaApplicationId";
6660
+ const _St = "State";
6661
+ const _TFP = "TollFreePrefix";
6662
+ const _VPDI = "VoiceProfileDomainId";
6663
+ const _a = "arn";
6664
+ const _ac = "area-code";
6665
+ const _c = "city";
6666
+ const _co = "country";
6667
+ const _fn = "filter-name";
6668
+ const _fv = "filter-value";
6669
+ const _iC = "isCaller";
6670
+ const _mr = "max-results";
6671
+ const _nt = "next-token";
6672
+ const _o = "operation";
6673
+ const _pnt = "phone-number-type";
6674
+ const _pt = "product-type";
6675
+ const _s = "status";
6676
+ const _sma = "sip-media-application";
6677
+ const _st = "state";
6678
+ const _t = "type";
6679
+ const _tfp = "toll-free-prefix";
6680
+ const _vpdi = "voice-profile-domain-id";
7373
6681
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7374
6682
  if (encoded.length) {
7375
6683
  return JSON.parse(encoded);